@orq-ai/node 4.0.4 → 4.0.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/bin/mcp-server.js +213 -213
- package/bin/mcp-server.js.map +36 -36
- package/examples/package-lock.json +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 +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.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- 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.js +2 -2
- 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.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- 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/packages/orq-rc/README.md +38 -47
- package/packages/orq-rc/docs/sdks/agents/README.md +230 -529
- package/packages/orq-rc/docs/sdks/responses/README.md +60 -65
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsCreate.ts +16 -14
- package/packages/orq-rc/src/funcs/agentsDelete.ts +10 -6
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +16 -6
- package/packages/orq-rc/src/funcs/agentsList.ts +18 -6
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +23 -12
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +21 -16
- package/packages/orq-rc/src/funcs/agentsRun.ts +4 -2
- package/packages/orq-rc/src/funcs/agentsStream.ts +16 -6
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -2
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +14 -6
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -9
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +3 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +5 -5
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +7 -4
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +9 -5
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +8 -4
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +5 -5
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +7 -4
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +8 -4
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +67 -0
- package/packages/orq-rc/src/models/errors/deleteagent.ts +2 -2
- package/packages/orq-rc/src/models/errors/index.ts +2 -3
- package/packages/orq-rc/src/models/errors/{listagenttasks.ts → retrieveagentrequest.ts} +15 -15
- package/packages/orq-rc/src/models/errors/updateagent.ts +2 -2
- package/packages/orq-rc/src/models/operations/{createagent.ts → createagentrequest.ts} +1643 -1485
- package/packages/orq-rc/src/models/operations/{createagentresponse.ts → createagentresponserequest.ts} +141 -127
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +3 -7
- package/packages/orq-rc/src/models/operations/invokeagent.ts +153 -190
- package/packages/orq-rc/src/models/operations/listagents.ts +9 -21
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3741 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
- package/packages/orq-rc/src/models/operations/runagent.ts +53 -57
- package/packages/orq-rc/src/models/operations/streamagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +68 -82
- package/packages/orq-rc/src/models/operations/updateagent.ts +17 -17
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/src/sdk/agents.ts +51 -99
- package/packages/orq-rc/src/sdk/responses.ts +7 -5
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -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 +12 -12
- 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/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- 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/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
- package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
- package/packages/orq-rc/src/models/errors/createagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/getagent.ts +0 -67
- package/packages/orq-rc/src/models/operations/getagent.ts +0 -3480
- package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -2389
- package/packages/orq-rc/src/models/operations/listactions.ts +0 -427
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -2614
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -354
|
@@ -1,2614 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type ListAgentTasksRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* The unique key of the agent
|
|
15
|
-
*/
|
|
16
|
-
agentKey: string;
|
|
17
|
-
/**
|
|
18
|
-
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
19
|
-
*/
|
|
20
|
-
limit?: number | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
23
|
-
*/
|
|
24
|
-
startingAfter?: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
27
|
-
*/
|
|
28
|
-
endingBefore?: string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Comma-separated list of task statuses to filter by. Available values: submitted, working, input-required, auth-required, completed, failed, canceled, rejected
|
|
31
|
-
*/
|
|
32
|
-
status?: string | undefined;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* A2A entity type
|
|
37
|
-
*/
|
|
38
|
-
export const ListAgentTasksKind = {
|
|
39
|
-
Task: "task",
|
|
40
|
-
} as const;
|
|
41
|
-
/**
|
|
42
|
-
* A2A entity type
|
|
43
|
-
*/
|
|
44
|
-
export type ListAgentTasksKind = ClosedEnum<typeof ListAgentTasksKind>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 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.
|
|
48
|
-
*/
|
|
49
|
-
export const ListAgentTasksTaskState = {
|
|
50
|
-
Submitted: "submitted",
|
|
51
|
-
Working: "working",
|
|
52
|
-
InputRequired: "input-required",
|
|
53
|
-
AuthRequired: "auth-required",
|
|
54
|
-
Completed: "completed",
|
|
55
|
-
Failed: "failed",
|
|
56
|
-
Canceled: "canceled",
|
|
57
|
-
Rejected: "rejected",
|
|
58
|
-
} as const;
|
|
59
|
-
/**
|
|
60
|
-
* 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.
|
|
61
|
-
*/
|
|
62
|
-
export type ListAgentTasksTaskState = ClosedEnum<
|
|
63
|
-
typeof ListAgentTasksTaskState
|
|
64
|
-
>;
|
|
65
|
-
|
|
66
|
-
export const ListAgentTasksAgentsResponseKind = {
|
|
67
|
-
Message: "message",
|
|
68
|
-
} as const;
|
|
69
|
-
export type ListAgentTasksAgentsResponseKind = ClosedEnum<
|
|
70
|
-
typeof ListAgentTasksAgentsResponseKind
|
|
71
|
-
>;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
75
|
-
*/
|
|
76
|
-
export const ListAgentTasksAgentsExtendedMessageRole = {
|
|
77
|
-
User: "user",
|
|
78
|
-
Agent: "agent",
|
|
79
|
-
Tool: "tool",
|
|
80
|
-
System: "system",
|
|
81
|
-
} as const;
|
|
82
|
-
/**
|
|
83
|
-
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
84
|
-
*/
|
|
85
|
-
export type ListAgentTasksAgentsExtendedMessageRole = ClosedEnum<
|
|
86
|
-
typeof ListAgentTasksAgentsExtendedMessageRole
|
|
87
|
-
>;
|
|
88
|
-
|
|
89
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind =
|
|
90
|
-
{
|
|
91
|
-
ToolResult: "tool_result",
|
|
92
|
-
} as const;
|
|
93
|
-
export type ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind =
|
|
94
|
-
ClosedEnum<
|
|
95
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind
|
|
96
|
-
>;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
|
|
100
|
-
*/
|
|
101
|
-
export type ListAgentTasksPartsAgentsToolResultPart = {
|
|
102
|
-
kind:
|
|
103
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind;
|
|
104
|
-
toolCallId: string;
|
|
105
|
-
result?: any | undefined;
|
|
106
|
-
metadata?: { [k: string]: any } | undefined;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind =
|
|
110
|
-
{
|
|
111
|
-
ToolCall: "tool_call",
|
|
112
|
-
} as const;
|
|
113
|
-
export type ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind =
|
|
114
|
-
ClosedEnum<
|
|
115
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind
|
|
116
|
-
>;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
120
|
-
*/
|
|
121
|
-
export type ListAgentTasksPartsToolCallPart = {
|
|
122
|
-
kind:
|
|
123
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind;
|
|
124
|
-
toolName: string;
|
|
125
|
-
toolCallId: string;
|
|
126
|
-
arguments: { [k: string]: any };
|
|
127
|
-
metadata?: { [k: string]: any } | undefined;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind =
|
|
131
|
-
{
|
|
132
|
-
File: "file",
|
|
133
|
-
} as const;
|
|
134
|
-
export type ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind =
|
|
135
|
-
ClosedEnum<
|
|
136
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind
|
|
137
|
-
>;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
141
|
-
*/
|
|
142
|
-
export type ListAgentTasksFileAgentsResponseFileInURIFormat = {
|
|
143
|
-
/**
|
|
144
|
-
* URL for the File content
|
|
145
|
-
*/
|
|
146
|
-
uri: string;
|
|
147
|
-
/**
|
|
148
|
-
* Optional mimeType for the file
|
|
149
|
-
*/
|
|
150
|
-
mimeType?: string | undefined;
|
|
151
|
-
/**
|
|
152
|
-
* Optional name for the file
|
|
153
|
-
*/
|
|
154
|
-
name?: string | undefined;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
159
|
-
*/
|
|
160
|
-
export type ListAgentTasksFileAgentsResponseBinaryFormat = {
|
|
161
|
-
/**
|
|
162
|
-
* base64 encoded content of the file
|
|
163
|
-
*/
|
|
164
|
-
bytes: string;
|
|
165
|
-
/**
|
|
166
|
-
* Optional mimeType for the file
|
|
167
|
-
*/
|
|
168
|
-
mimeType?: string | undefined;
|
|
169
|
-
/**
|
|
170
|
-
* Optional name for the file
|
|
171
|
-
*/
|
|
172
|
-
name?: string | undefined;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export type ListAgentTasksPartsAgentsResponseFile =
|
|
176
|
-
| ListAgentTasksFileAgentsResponseBinaryFormat
|
|
177
|
-
| ListAgentTasksFileAgentsResponseFileInURIFormat;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
181
|
-
*/
|
|
182
|
-
export type ListAgentTasksPartsAgentsResponseFilePart = {
|
|
183
|
-
kind:
|
|
184
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind;
|
|
185
|
-
file:
|
|
186
|
-
| ListAgentTasksFileAgentsResponseBinaryFormat
|
|
187
|
-
| ListAgentTasksFileAgentsResponseFileInURIFormat;
|
|
188
|
-
metadata?: { [k: string]: any } | undefined;
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind =
|
|
192
|
-
{
|
|
193
|
-
Data: "data",
|
|
194
|
-
} as const;
|
|
195
|
-
export type ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind =
|
|
196
|
-
ClosedEnum<
|
|
197
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind
|
|
198
|
-
>;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
202
|
-
*/
|
|
203
|
-
export type ListAgentTasksPartsAgentsResponseDataPart = {
|
|
204
|
-
kind:
|
|
205
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind;
|
|
206
|
-
data: { [k: string]: any };
|
|
207
|
-
metadata?: { [k: string]: any } | undefined;
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind =
|
|
211
|
-
{
|
|
212
|
-
Text: "text",
|
|
213
|
-
} as const;
|
|
214
|
-
export type ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind =
|
|
215
|
-
ClosedEnum<
|
|
216
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind
|
|
217
|
-
>;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
221
|
-
*/
|
|
222
|
-
export type ListAgentTasksPartsAgentsResponseTextPart = {
|
|
223
|
-
kind:
|
|
224
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind;
|
|
225
|
-
text: string;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
export type ListAgentTasksAgentsResponseParts =
|
|
229
|
-
| ListAgentTasksPartsToolCallPart
|
|
230
|
-
| ListAgentTasksPartsAgentsResponseTextPart
|
|
231
|
-
| ListAgentTasksPartsAgentsResponseDataPart
|
|
232
|
-
| ListAgentTasksPartsAgentsResponseFilePart
|
|
233
|
-
| ListAgentTasksPartsAgentsToolResultPart;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Optional A2A message providing additional context about the current status
|
|
237
|
-
*/
|
|
238
|
-
export type ListAgentTasksTaskStatusMessage = {
|
|
239
|
-
kind: ListAgentTasksAgentsResponseKind;
|
|
240
|
-
messageId: string;
|
|
241
|
-
/**
|
|
242
|
-
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
243
|
-
*/
|
|
244
|
-
role: ListAgentTasksAgentsExtendedMessageRole;
|
|
245
|
-
parts: Array<
|
|
246
|
-
| ListAgentTasksPartsToolCallPart
|
|
247
|
-
| ListAgentTasksPartsAgentsResponseTextPart
|
|
248
|
-
| ListAgentTasksPartsAgentsResponseDataPart
|
|
249
|
-
| ListAgentTasksPartsAgentsResponseFilePart
|
|
250
|
-
| ListAgentTasksPartsAgentsToolResultPart
|
|
251
|
-
>;
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Current task execution status
|
|
256
|
-
*/
|
|
257
|
-
export type ListAgentTasksTaskStatus = {
|
|
258
|
-
/**
|
|
259
|
-
* 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.
|
|
260
|
-
*/
|
|
261
|
-
state: ListAgentTasksTaskState;
|
|
262
|
-
/**
|
|
263
|
-
* ISO 8601 timestamp of when the status was updated
|
|
264
|
-
*/
|
|
265
|
-
timestamp?: string | undefined;
|
|
266
|
-
/**
|
|
267
|
-
* Optional A2A message providing additional context about the current status
|
|
268
|
-
*/
|
|
269
|
-
message?: ListAgentTasksTaskStatusMessage | undefined;
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
export const ListAgentTasksAgentsKind = {
|
|
273
|
-
Message: "message",
|
|
274
|
-
} as const;
|
|
275
|
-
export type ListAgentTasksAgentsKind = ClosedEnum<
|
|
276
|
-
typeof ListAgentTasksAgentsKind
|
|
277
|
-
>;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
281
|
-
*/
|
|
282
|
-
export const ListAgentTasksExtendedMessageRole = {
|
|
283
|
-
User: "user",
|
|
284
|
-
Agent: "agent",
|
|
285
|
-
Tool: "tool",
|
|
286
|
-
System: "system",
|
|
287
|
-
} as const;
|
|
288
|
-
/**
|
|
289
|
-
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
290
|
-
*/
|
|
291
|
-
export type ListAgentTasksExtendedMessageRole = ClosedEnum<
|
|
292
|
-
typeof ListAgentTasksExtendedMessageRole
|
|
293
|
-
>;
|
|
294
|
-
|
|
295
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONKind = {
|
|
296
|
-
ToolResult: "tool_result",
|
|
297
|
-
} as const;
|
|
298
|
-
export type ListAgentTasksPartsAgentsResponse200ApplicationJSONKind =
|
|
299
|
-
ClosedEnum<typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONKind>;
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
|
|
303
|
-
*/
|
|
304
|
-
export type ListAgentTasksPartsToolResultPart = {
|
|
305
|
-
kind: ListAgentTasksPartsAgentsResponse200ApplicationJSONKind;
|
|
306
|
-
toolCallId: string;
|
|
307
|
-
result?: any | undefined;
|
|
308
|
-
metadata?: { [k: string]: any } | undefined;
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
export const ListAgentTasksPartsAgentsResponse200Kind = {
|
|
312
|
-
ToolCall: "tool_call",
|
|
313
|
-
} as const;
|
|
314
|
-
export type ListAgentTasksPartsAgentsResponse200Kind = ClosedEnum<
|
|
315
|
-
typeof ListAgentTasksPartsAgentsResponse200Kind
|
|
316
|
-
>;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
320
|
-
*/
|
|
321
|
-
export type PartsToolCallPart = {
|
|
322
|
-
kind: ListAgentTasksPartsAgentsResponse200Kind;
|
|
323
|
-
toolName: string;
|
|
324
|
-
toolCallId: string;
|
|
325
|
-
arguments: { [k: string]: any };
|
|
326
|
-
metadata?: { [k: string]: any } | undefined;
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
export const ListAgentTasksPartsAgentsResponseKind = {
|
|
330
|
-
File: "file",
|
|
331
|
-
} as const;
|
|
332
|
-
export type ListAgentTasksPartsAgentsResponseKind = ClosedEnum<
|
|
333
|
-
typeof ListAgentTasksPartsAgentsResponseKind
|
|
334
|
-
>;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
338
|
-
*/
|
|
339
|
-
export type ListAgentTasksFileFileInURIFormat = {
|
|
340
|
-
/**
|
|
341
|
-
* URL for the File content
|
|
342
|
-
*/
|
|
343
|
-
uri: string;
|
|
344
|
-
/**
|
|
345
|
-
* Optional mimeType for the file
|
|
346
|
-
*/
|
|
347
|
-
mimeType?: string | undefined;
|
|
348
|
-
/**
|
|
349
|
-
* Optional name for the file
|
|
350
|
-
*/
|
|
351
|
-
name?: string | undefined;
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
356
|
-
*/
|
|
357
|
-
export type ListAgentTasksFileBinaryFormat = {
|
|
358
|
-
/**
|
|
359
|
-
* base64 encoded content of the file
|
|
360
|
-
*/
|
|
361
|
-
bytes: string;
|
|
362
|
-
/**
|
|
363
|
-
* Optional mimeType for the file
|
|
364
|
-
*/
|
|
365
|
-
mimeType?: string | undefined;
|
|
366
|
-
/**
|
|
367
|
-
* Optional name for the file
|
|
368
|
-
*/
|
|
369
|
-
name?: string | undefined;
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
export type ListAgentTasksPartsFile =
|
|
373
|
-
| ListAgentTasksFileBinaryFormat
|
|
374
|
-
| ListAgentTasksFileFileInURIFormat;
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
378
|
-
*/
|
|
379
|
-
export type ListAgentTasksPartsFilePart = {
|
|
380
|
-
kind: ListAgentTasksPartsAgentsResponseKind;
|
|
381
|
-
file: ListAgentTasksFileBinaryFormat | ListAgentTasksFileFileInURIFormat;
|
|
382
|
-
metadata?: { [k: string]: any } | undefined;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
export const ListAgentTasksPartsAgentsKind = {
|
|
386
|
-
Data: "data",
|
|
387
|
-
} as const;
|
|
388
|
-
export type ListAgentTasksPartsAgentsKind = ClosedEnum<
|
|
389
|
-
typeof ListAgentTasksPartsAgentsKind
|
|
390
|
-
>;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
394
|
-
*/
|
|
395
|
-
export type ListAgentTasksPartsAgentsDataPart = {
|
|
396
|
-
kind: ListAgentTasksPartsAgentsKind;
|
|
397
|
-
data: { [k: string]: any };
|
|
398
|
-
metadata?: { [k: string]: any } | undefined;
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
export const ListAgentTasksPartsKind = {
|
|
402
|
-
Text: "text",
|
|
403
|
-
} as const;
|
|
404
|
-
export type ListAgentTasksPartsKind = ClosedEnum<
|
|
405
|
-
typeof ListAgentTasksPartsKind
|
|
406
|
-
>;
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
410
|
-
*/
|
|
411
|
-
export type ListAgentTasksPartsTextPart = {
|
|
412
|
-
kind: ListAgentTasksPartsKind;
|
|
413
|
-
text: string;
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
export type ListAgentTasksParts =
|
|
417
|
-
| PartsToolCallPart
|
|
418
|
-
| ListAgentTasksPartsTextPart
|
|
419
|
-
| ListAgentTasksPartsAgentsDataPart
|
|
420
|
-
| ListAgentTasksPartsFilePart
|
|
421
|
-
| ListAgentTasksPartsToolResultPart;
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Extended Agent-to-Agent protocol message with support for tool calls and tool results. Extends the base A2A message format with Orquesta-specific features.
|
|
425
|
-
*/
|
|
426
|
-
export type ListAgentTasksExtendedA2AMessage = {
|
|
427
|
-
kind: ListAgentTasksAgentsKind;
|
|
428
|
-
/**
|
|
429
|
-
* Unique identifier for the message
|
|
430
|
-
*/
|
|
431
|
-
messageId: string;
|
|
432
|
-
/**
|
|
433
|
-
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
434
|
-
*/
|
|
435
|
-
role: ListAgentTasksExtendedMessageRole;
|
|
436
|
-
/**
|
|
437
|
-
* Array of message parts (text, file, tool_call, tool_result)
|
|
438
|
-
*/
|
|
439
|
-
parts: Array<
|
|
440
|
-
| PartsToolCallPart
|
|
441
|
-
| ListAgentTasksPartsTextPart
|
|
442
|
-
| ListAgentTasksPartsAgentsDataPart
|
|
443
|
-
| ListAgentTasksPartsFilePart
|
|
444
|
-
| ListAgentTasksPartsToolResultPart
|
|
445
|
-
>;
|
|
446
|
-
/**
|
|
447
|
-
* Associated task ID if applicable
|
|
448
|
-
*/
|
|
449
|
-
taskId?: string | undefined;
|
|
450
|
-
/**
|
|
451
|
-
* Correlation ID for execution tracking
|
|
452
|
-
*/
|
|
453
|
-
contextId?: string | undefined;
|
|
454
|
-
/**
|
|
455
|
-
* Additional message metadata
|
|
456
|
-
*/
|
|
457
|
-
metadata?: { [k: string]: any } | undefined;
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind =
|
|
461
|
-
{
|
|
462
|
-
Data: "data",
|
|
463
|
-
} as const;
|
|
464
|
-
export type ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind =
|
|
465
|
-
ClosedEnum<
|
|
466
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind
|
|
467
|
-
>;
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
471
|
-
*/
|
|
472
|
-
export type ListAgentTasksPartsDataPart = {
|
|
473
|
-
kind:
|
|
474
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind;
|
|
475
|
-
data: { [k: string]: any };
|
|
476
|
-
metadata?: { [k: string]: any } | undefined;
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind =
|
|
480
|
-
{
|
|
481
|
-
File: "file",
|
|
482
|
-
} as const;
|
|
483
|
-
export type ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind =
|
|
484
|
-
ClosedEnum<
|
|
485
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind
|
|
486
|
-
>;
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
490
|
-
*/
|
|
491
|
-
export type ListAgentTasksFileAgentsFileInURIFormat = {
|
|
492
|
-
/**
|
|
493
|
-
* URL for the File content
|
|
494
|
-
*/
|
|
495
|
-
uri: string;
|
|
496
|
-
/**
|
|
497
|
-
* Optional mimeType for the file
|
|
498
|
-
*/
|
|
499
|
-
mimeType?: string | undefined;
|
|
500
|
-
/**
|
|
501
|
-
* Optional name for the file
|
|
502
|
-
*/
|
|
503
|
-
name?: string | undefined;
|
|
504
|
-
};
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
508
|
-
*/
|
|
509
|
-
export type ListAgentTasksFileAgentsBinaryFormat = {
|
|
510
|
-
/**
|
|
511
|
-
* base64 encoded content of the file
|
|
512
|
-
*/
|
|
513
|
-
bytes: string;
|
|
514
|
-
/**
|
|
515
|
-
* Optional mimeType for the file
|
|
516
|
-
*/
|
|
517
|
-
mimeType?: string | undefined;
|
|
518
|
-
/**
|
|
519
|
-
* Optional name for the file
|
|
520
|
-
*/
|
|
521
|
-
name?: string | undefined;
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
export type ListAgentTasksPartsAgentsFile =
|
|
525
|
-
| ListAgentTasksFileAgentsBinaryFormat
|
|
526
|
-
| ListAgentTasksFileAgentsFileInURIFormat;
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
|
|
530
|
-
*/
|
|
531
|
-
export type ListAgentTasksPartsAgentsFilePart = {
|
|
532
|
-
kind:
|
|
533
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind;
|
|
534
|
-
file:
|
|
535
|
-
| ListAgentTasksFileAgentsBinaryFormat
|
|
536
|
-
| ListAgentTasksFileAgentsFileInURIFormat;
|
|
537
|
-
metadata?: { [k: string]: any } | undefined;
|
|
538
|
-
};
|
|
539
|
-
|
|
540
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind =
|
|
541
|
-
{
|
|
542
|
-
Text: "text",
|
|
543
|
-
} as const;
|
|
544
|
-
export type ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind =
|
|
545
|
-
ClosedEnum<
|
|
546
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind
|
|
547
|
-
>;
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
551
|
-
*/
|
|
552
|
-
export type ListAgentTasksPartsAgentsTextPart = {
|
|
553
|
-
kind: ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind;
|
|
554
|
-
text: string;
|
|
555
|
-
};
|
|
556
|
-
|
|
557
|
-
export type ListAgentTasksAgentsParts =
|
|
558
|
-
| ListAgentTasksPartsAgentsTextPart
|
|
559
|
-
| ListAgentTasksPartsAgentsFilePart
|
|
560
|
-
| ListAgentTasksPartsDataPart;
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* A file or data artifact produced by the agent during task execution. Follows the A2A SDK Artifact structure with required name field.
|
|
564
|
-
*/
|
|
565
|
-
export type ListAgentTasksTaskArtifact = {
|
|
566
|
-
/**
|
|
567
|
-
* Unique identifier for the artifact (ULID format)
|
|
568
|
-
*/
|
|
569
|
-
artifactId: string;
|
|
570
|
-
/**
|
|
571
|
-
* Required name for the artifact (e.g., filename or descriptive title)
|
|
572
|
-
*/
|
|
573
|
-
name: string;
|
|
574
|
-
/**
|
|
575
|
-
* Optional human-readable description of the artifact
|
|
576
|
-
*/
|
|
577
|
-
description?: string | undefined;
|
|
578
|
-
/**
|
|
579
|
-
* Array of artifact content parts (text, file, or data). Does not include tool_call or tool_result parts.
|
|
580
|
-
*/
|
|
581
|
-
parts: Array<
|
|
582
|
-
| ListAgentTasksPartsAgentsTextPart
|
|
583
|
-
| ListAgentTasksPartsAgentsFilePart
|
|
584
|
-
| ListAgentTasksPartsDataPart
|
|
585
|
-
>;
|
|
586
|
-
/**
|
|
587
|
-
* File extensions associated with this artifact (e.g., [".pdf"])
|
|
588
|
-
*/
|
|
589
|
-
extensions?: Array<string> | undefined;
|
|
590
|
-
/**
|
|
591
|
-
* Additional artifact metadata as key-value pairs
|
|
592
|
-
*/
|
|
593
|
-
metadata?: { [k: string]: any } | undefined;
|
|
594
|
-
};
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* Agent task execution response format with full conversation history and artifacts. Used for API responses when retrieving task details.
|
|
598
|
-
*/
|
|
599
|
-
export type ExtendedTaskResponse = {
|
|
600
|
-
/**
|
|
601
|
-
* Unique task execution identifier
|
|
602
|
-
*/
|
|
603
|
-
id: string;
|
|
604
|
-
/**
|
|
605
|
-
* Correlation ID for tracking
|
|
606
|
-
*/
|
|
607
|
-
contextId: string;
|
|
608
|
-
/**
|
|
609
|
-
* A2A entity type
|
|
610
|
-
*/
|
|
611
|
-
kind: ListAgentTasksKind;
|
|
612
|
-
/**
|
|
613
|
-
* Current task execution status
|
|
614
|
-
*/
|
|
615
|
-
status: ListAgentTasksTaskStatus;
|
|
616
|
-
/**
|
|
617
|
-
* Conversation history with all messages exchanged
|
|
618
|
-
*/
|
|
619
|
-
history: Array<ListAgentTasksExtendedA2AMessage>;
|
|
620
|
-
/**
|
|
621
|
-
* Optional files or data produced during execution
|
|
622
|
-
*/
|
|
623
|
-
artifacts?: Array<ListAgentTasksTaskArtifact> | undefined;
|
|
624
|
-
/**
|
|
625
|
-
* Additional task metadata
|
|
626
|
-
*/
|
|
627
|
-
metadata?: { [k: string]: any } | undefined;
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Response format for listing all tasks associated with an agent. Includes paginated task array and total count.
|
|
632
|
-
*/
|
|
633
|
-
export type ListAgentTasksAgentTasksListResponse = {
|
|
634
|
-
/**
|
|
635
|
-
* Array of agent tasks with full execution details
|
|
636
|
-
*/
|
|
637
|
-
tasks: Array<ExtendedTaskResponse>;
|
|
638
|
-
/**
|
|
639
|
-
* Total count of tasks for this agent (across all pages, unfiltered)
|
|
640
|
-
*/
|
|
641
|
-
overallTotal: number;
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
/** @internal */
|
|
645
|
-
export const ListAgentTasksRequest$inboundSchema: z.ZodType<
|
|
646
|
-
ListAgentTasksRequest,
|
|
647
|
-
z.ZodTypeDef,
|
|
648
|
-
unknown
|
|
649
|
-
> = z.object({
|
|
650
|
-
agent_key: z.string(),
|
|
651
|
-
limit: z.number().default(10),
|
|
652
|
-
starting_after: z.string().optional(),
|
|
653
|
-
ending_before: z.string().optional(),
|
|
654
|
-
status: z.string().optional(),
|
|
655
|
-
}).transform((v) => {
|
|
656
|
-
return remap$(v, {
|
|
657
|
-
"agent_key": "agentKey",
|
|
658
|
-
"starting_after": "startingAfter",
|
|
659
|
-
"ending_before": "endingBefore",
|
|
660
|
-
});
|
|
661
|
-
});
|
|
662
|
-
/** @internal */
|
|
663
|
-
export type ListAgentTasksRequest$Outbound = {
|
|
664
|
-
agent_key: string;
|
|
665
|
-
limit: number;
|
|
666
|
-
starting_after?: string | undefined;
|
|
667
|
-
ending_before?: string | undefined;
|
|
668
|
-
status?: string | undefined;
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
/** @internal */
|
|
672
|
-
export const ListAgentTasksRequest$outboundSchema: z.ZodType<
|
|
673
|
-
ListAgentTasksRequest$Outbound,
|
|
674
|
-
z.ZodTypeDef,
|
|
675
|
-
ListAgentTasksRequest
|
|
676
|
-
> = z.object({
|
|
677
|
-
agentKey: z.string(),
|
|
678
|
-
limit: z.number().default(10),
|
|
679
|
-
startingAfter: z.string().optional(),
|
|
680
|
-
endingBefore: z.string().optional(),
|
|
681
|
-
status: z.string().optional(),
|
|
682
|
-
}).transform((v) => {
|
|
683
|
-
return remap$(v, {
|
|
684
|
-
agentKey: "agent_key",
|
|
685
|
-
startingAfter: "starting_after",
|
|
686
|
-
endingBefore: "ending_before",
|
|
687
|
-
});
|
|
688
|
-
});
|
|
689
|
-
|
|
690
|
-
export function listAgentTasksRequestToJSON(
|
|
691
|
-
listAgentTasksRequest: ListAgentTasksRequest,
|
|
692
|
-
): string {
|
|
693
|
-
return JSON.stringify(
|
|
694
|
-
ListAgentTasksRequest$outboundSchema.parse(listAgentTasksRequest),
|
|
695
|
-
);
|
|
696
|
-
}
|
|
697
|
-
export function listAgentTasksRequestFromJSON(
|
|
698
|
-
jsonString: string,
|
|
699
|
-
): SafeParseResult<ListAgentTasksRequest, SDKValidationError> {
|
|
700
|
-
return safeParse(
|
|
701
|
-
jsonString,
|
|
702
|
-
(x) => ListAgentTasksRequest$inboundSchema.parse(JSON.parse(x)),
|
|
703
|
-
`Failed to parse 'ListAgentTasksRequest' from JSON`,
|
|
704
|
-
);
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
/** @internal */
|
|
708
|
-
export const ListAgentTasksKind$inboundSchema: z.ZodNativeEnum<
|
|
709
|
-
typeof ListAgentTasksKind
|
|
710
|
-
> = z.nativeEnum(ListAgentTasksKind);
|
|
711
|
-
/** @internal */
|
|
712
|
-
export const ListAgentTasksKind$outboundSchema: z.ZodNativeEnum<
|
|
713
|
-
typeof ListAgentTasksKind
|
|
714
|
-
> = ListAgentTasksKind$inboundSchema;
|
|
715
|
-
|
|
716
|
-
/** @internal */
|
|
717
|
-
export const ListAgentTasksTaskState$inboundSchema: z.ZodNativeEnum<
|
|
718
|
-
typeof ListAgentTasksTaskState
|
|
719
|
-
> = z.nativeEnum(ListAgentTasksTaskState);
|
|
720
|
-
/** @internal */
|
|
721
|
-
export const ListAgentTasksTaskState$outboundSchema: z.ZodNativeEnum<
|
|
722
|
-
typeof ListAgentTasksTaskState
|
|
723
|
-
> = ListAgentTasksTaskState$inboundSchema;
|
|
724
|
-
|
|
725
|
-
/** @internal */
|
|
726
|
-
export const ListAgentTasksAgentsResponseKind$inboundSchema: z.ZodNativeEnum<
|
|
727
|
-
typeof ListAgentTasksAgentsResponseKind
|
|
728
|
-
> = z.nativeEnum(ListAgentTasksAgentsResponseKind);
|
|
729
|
-
/** @internal */
|
|
730
|
-
export const ListAgentTasksAgentsResponseKind$outboundSchema: z.ZodNativeEnum<
|
|
731
|
-
typeof ListAgentTasksAgentsResponseKind
|
|
732
|
-
> = ListAgentTasksAgentsResponseKind$inboundSchema;
|
|
733
|
-
|
|
734
|
-
/** @internal */
|
|
735
|
-
export const ListAgentTasksAgentsExtendedMessageRole$inboundSchema:
|
|
736
|
-
z.ZodNativeEnum<typeof ListAgentTasksAgentsExtendedMessageRole> = z
|
|
737
|
-
.nativeEnum(ListAgentTasksAgentsExtendedMessageRole);
|
|
738
|
-
/** @internal */
|
|
739
|
-
export const ListAgentTasksAgentsExtendedMessageRole$outboundSchema:
|
|
740
|
-
z.ZodNativeEnum<typeof ListAgentTasksAgentsExtendedMessageRole> =
|
|
741
|
-
ListAgentTasksAgentsExtendedMessageRole$inboundSchema;
|
|
742
|
-
|
|
743
|
-
/** @internal */
|
|
744
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$inboundSchema:
|
|
745
|
-
z.ZodNativeEnum<
|
|
746
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind
|
|
747
|
-
> = z.nativeEnum(
|
|
748
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind,
|
|
749
|
-
);
|
|
750
|
-
/** @internal */
|
|
751
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$outboundSchema:
|
|
752
|
-
z.ZodNativeEnum<
|
|
753
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind
|
|
754
|
-
> =
|
|
755
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$inboundSchema;
|
|
756
|
-
|
|
757
|
-
/** @internal */
|
|
758
|
-
export const ListAgentTasksPartsAgentsToolResultPart$inboundSchema: z.ZodType<
|
|
759
|
-
ListAgentTasksPartsAgentsToolResultPart,
|
|
760
|
-
z.ZodTypeDef,
|
|
761
|
-
unknown
|
|
762
|
-
> = z.object({
|
|
763
|
-
kind:
|
|
764
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$inboundSchema,
|
|
765
|
-
tool_call_id: z.string(),
|
|
766
|
-
result: z.any().optional(),
|
|
767
|
-
metadata: z.record(z.any()).optional(),
|
|
768
|
-
}).transform((v) => {
|
|
769
|
-
return remap$(v, {
|
|
770
|
-
"tool_call_id": "toolCallId",
|
|
771
|
-
});
|
|
772
|
-
});
|
|
773
|
-
/** @internal */
|
|
774
|
-
export type ListAgentTasksPartsAgentsToolResultPart$Outbound = {
|
|
775
|
-
kind: string;
|
|
776
|
-
tool_call_id: string;
|
|
777
|
-
result?: any | undefined;
|
|
778
|
-
metadata?: { [k: string]: any } | undefined;
|
|
779
|
-
};
|
|
780
|
-
|
|
781
|
-
/** @internal */
|
|
782
|
-
export const ListAgentTasksPartsAgentsToolResultPart$outboundSchema: z.ZodType<
|
|
783
|
-
ListAgentTasksPartsAgentsToolResultPart$Outbound,
|
|
784
|
-
z.ZodTypeDef,
|
|
785
|
-
ListAgentTasksPartsAgentsToolResultPart
|
|
786
|
-
> = z.object({
|
|
787
|
-
kind:
|
|
788
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage5Kind$outboundSchema,
|
|
789
|
-
toolCallId: z.string(),
|
|
790
|
-
result: z.any().optional(),
|
|
791
|
-
metadata: z.record(z.any()).optional(),
|
|
792
|
-
}).transform((v) => {
|
|
793
|
-
return remap$(v, {
|
|
794
|
-
toolCallId: "tool_call_id",
|
|
795
|
-
});
|
|
796
|
-
});
|
|
797
|
-
|
|
798
|
-
export function listAgentTasksPartsAgentsToolResultPartToJSON(
|
|
799
|
-
listAgentTasksPartsAgentsToolResultPart:
|
|
800
|
-
ListAgentTasksPartsAgentsToolResultPart,
|
|
801
|
-
): string {
|
|
802
|
-
return JSON.stringify(
|
|
803
|
-
ListAgentTasksPartsAgentsToolResultPart$outboundSchema.parse(
|
|
804
|
-
listAgentTasksPartsAgentsToolResultPart,
|
|
805
|
-
),
|
|
806
|
-
);
|
|
807
|
-
}
|
|
808
|
-
export function listAgentTasksPartsAgentsToolResultPartFromJSON(
|
|
809
|
-
jsonString: string,
|
|
810
|
-
): SafeParseResult<
|
|
811
|
-
ListAgentTasksPartsAgentsToolResultPart,
|
|
812
|
-
SDKValidationError
|
|
813
|
-
> {
|
|
814
|
-
return safeParse(
|
|
815
|
-
jsonString,
|
|
816
|
-
(x) =>
|
|
817
|
-
ListAgentTasksPartsAgentsToolResultPart$inboundSchema.parse(
|
|
818
|
-
JSON.parse(x),
|
|
819
|
-
),
|
|
820
|
-
`Failed to parse 'ListAgentTasksPartsAgentsToolResultPart' from JSON`,
|
|
821
|
-
);
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
/** @internal */
|
|
825
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$inboundSchema:
|
|
826
|
-
z.ZodNativeEnum<
|
|
827
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind
|
|
828
|
-
> = z.nativeEnum(
|
|
829
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind,
|
|
830
|
-
);
|
|
831
|
-
/** @internal */
|
|
832
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$outboundSchema:
|
|
833
|
-
z.ZodNativeEnum<
|
|
834
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind
|
|
835
|
-
> =
|
|
836
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$inboundSchema;
|
|
837
|
-
|
|
838
|
-
/** @internal */
|
|
839
|
-
export const ListAgentTasksPartsToolCallPart$inboundSchema: z.ZodType<
|
|
840
|
-
ListAgentTasksPartsToolCallPart,
|
|
841
|
-
z.ZodTypeDef,
|
|
842
|
-
unknown
|
|
843
|
-
> = z.object({
|
|
844
|
-
kind:
|
|
845
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$inboundSchema,
|
|
846
|
-
tool_name: z.string(),
|
|
847
|
-
tool_call_id: z.string(),
|
|
848
|
-
arguments: z.record(z.any()),
|
|
849
|
-
metadata: z.record(z.any()).optional(),
|
|
850
|
-
}).transform((v) => {
|
|
851
|
-
return remap$(v, {
|
|
852
|
-
"tool_name": "toolName",
|
|
853
|
-
"tool_call_id": "toolCallId",
|
|
854
|
-
});
|
|
855
|
-
});
|
|
856
|
-
/** @internal */
|
|
857
|
-
export type ListAgentTasksPartsToolCallPart$Outbound = {
|
|
858
|
-
kind: string;
|
|
859
|
-
tool_name: string;
|
|
860
|
-
tool_call_id: string;
|
|
861
|
-
arguments: { [k: string]: any };
|
|
862
|
-
metadata?: { [k: string]: any } | undefined;
|
|
863
|
-
};
|
|
864
|
-
|
|
865
|
-
/** @internal */
|
|
866
|
-
export const ListAgentTasksPartsToolCallPart$outboundSchema: z.ZodType<
|
|
867
|
-
ListAgentTasksPartsToolCallPart$Outbound,
|
|
868
|
-
z.ZodTypeDef,
|
|
869
|
-
ListAgentTasksPartsToolCallPart
|
|
870
|
-
> = z.object({
|
|
871
|
-
kind:
|
|
872
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessageKind$outboundSchema,
|
|
873
|
-
toolName: z.string(),
|
|
874
|
-
toolCallId: z.string(),
|
|
875
|
-
arguments: z.record(z.any()),
|
|
876
|
-
metadata: z.record(z.any()).optional(),
|
|
877
|
-
}).transform((v) => {
|
|
878
|
-
return remap$(v, {
|
|
879
|
-
toolName: "tool_name",
|
|
880
|
-
toolCallId: "tool_call_id",
|
|
881
|
-
});
|
|
882
|
-
});
|
|
883
|
-
|
|
884
|
-
export function listAgentTasksPartsToolCallPartToJSON(
|
|
885
|
-
listAgentTasksPartsToolCallPart: ListAgentTasksPartsToolCallPart,
|
|
886
|
-
): string {
|
|
887
|
-
return JSON.stringify(
|
|
888
|
-
ListAgentTasksPartsToolCallPart$outboundSchema.parse(
|
|
889
|
-
listAgentTasksPartsToolCallPart,
|
|
890
|
-
),
|
|
891
|
-
);
|
|
892
|
-
}
|
|
893
|
-
export function listAgentTasksPartsToolCallPartFromJSON(
|
|
894
|
-
jsonString: string,
|
|
895
|
-
): SafeParseResult<ListAgentTasksPartsToolCallPart, SDKValidationError> {
|
|
896
|
-
return safeParse(
|
|
897
|
-
jsonString,
|
|
898
|
-
(x) => ListAgentTasksPartsToolCallPart$inboundSchema.parse(JSON.parse(x)),
|
|
899
|
-
`Failed to parse 'ListAgentTasksPartsToolCallPart' from JSON`,
|
|
900
|
-
);
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
/** @internal */
|
|
904
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$inboundSchema:
|
|
905
|
-
z.ZodNativeEnum<
|
|
906
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind
|
|
907
|
-
> = z.nativeEnum(
|
|
908
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind,
|
|
909
|
-
);
|
|
910
|
-
/** @internal */
|
|
911
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$outboundSchema:
|
|
912
|
-
z.ZodNativeEnum<
|
|
913
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind
|
|
914
|
-
> =
|
|
915
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$inboundSchema;
|
|
916
|
-
|
|
917
|
-
/** @internal */
|
|
918
|
-
export const ListAgentTasksFileAgentsResponseFileInURIFormat$inboundSchema:
|
|
919
|
-
z.ZodType<
|
|
920
|
-
ListAgentTasksFileAgentsResponseFileInURIFormat,
|
|
921
|
-
z.ZodTypeDef,
|
|
922
|
-
unknown
|
|
923
|
-
> = z.object({
|
|
924
|
-
uri: z.string(),
|
|
925
|
-
mimeType: z.string().optional(),
|
|
926
|
-
name: z.string().optional(),
|
|
927
|
-
});
|
|
928
|
-
/** @internal */
|
|
929
|
-
export type ListAgentTasksFileAgentsResponseFileInURIFormat$Outbound = {
|
|
930
|
-
uri: string;
|
|
931
|
-
mimeType?: string | undefined;
|
|
932
|
-
name?: string | undefined;
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
/** @internal */
|
|
936
|
-
export const ListAgentTasksFileAgentsResponseFileInURIFormat$outboundSchema:
|
|
937
|
-
z.ZodType<
|
|
938
|
-
ListAgentTasksFileAgentsResponseFileInURIFormat$Outbound,
|
|
939
|
-
z.ZodTypeDef,
|
|
940
|
-
ListAgentTasksFileAgentsResponseFileInURIFormat
|
|
941
|
-
> = z.object({
|
|
942
|
-
uri: z.string(),
|
|
943
|
-
mimeType: z.string().optional(),
|
|
944
|
-
name: z.string().optional(),
|
|
945
|
-
});
|
|
946
|
-
|
|
947
|
-
export function listAgentTasksFileAgentsResponseFileInURIFormatToJSON(
|
|
948
|
-
listAgentTasksFileAgentsResponseFileInURIFormat:
|
|
949
|
-
ListAgentTasksFileAgentsResponseFileInURIFormat,
|
|
950
|
-
): string {
|
|
951
|
-
return JSON.stringify(
|
|
952
|
-
ListAgentTasksFileAgentsResponseFileInURIFormat$outboundSchema.parse(
|
|
953
|
-
listAgentTasksFileAgentsResponseFileInURIFormat,
|
|
954
|
-
),
|
|
955
|
-
);
|
|
956
|
-
}
|
|
957
|
-
export function listAgentTasksFileAgentsResponseFileInURIFormatFromJSON(
|
|
958
|
-
jsonString: string,
|
|
959
|
-
): SafeParseResult<
|
|
960
|
-
ListAgentTasksFileAgentsResponseFileInURIFormat,
|
|
961
|
-
SDKValidationError
|
|
962
|
-
> {
|
|
963
|
-
return safeParse(
|
|
964
|
-
jsonString,
|
|
965
|
-
(x) =>
|
|
966
|
-
ListAgentTasksFileAgentsResponseFileInURIFormat$inboundSchema.parse(
|
|
967
|
-
JSON.parse(x),
|
|
968
|
-
),
|
|
969
|
-
`Failed to parse 'ListAgentTasksFileAgentsResponseFileInURIFormat' from JSON`,
|
|
970
|
-
);
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
/** @internal */
|
|
974
|
-
export const ListAgentTasksFileAgentsResponseBinaryFormat$inboundSchema:
|
|
975
|
-
z.ZodType<
|
|
976
|
-
ListAgentTasksFileAgentsResponseBinaryFormat,
|
|
977
|
-
z.ZodTypeDef,
|
|
978
|
-
unknown
|
|
979
|
-
> = z.object({
|
|
980
|
-
bytes: z.string(),
|
|
981
|
-
mimeType: z.string().optional(),
|
|
982
|
-
name: z.string().optional(),
|
|
983
|
-
});
|
|
984
|
-
/** @internal */
|
|
985
|
-
export type ListAgentTasksFileAgentsResponseBinaryFormat$Outbound = {
|
|
986
|
-
bytes: string;
|
|
987
|
-
mimeType?: string | undefined;
|
|
988
|
-
name?: string | undefined;
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
/** @internal */
|
|
992
|
-
export const ListAgentTasksFileAgentsResponseBinaryFormat$outboundSchema:
|
|
993
|
-
z.ZodType<
|
|
994
|
-
ListAgentTasksFileAgentsResponseBinaryFormat$Outbound,
|
|
995
|
-
z.ZodTypeDef,
|
|
996
|
-
ListAgentTasksFileAgentsResponseBinaryFormat
|
|
997
|
-
> = z.object({
|
|
998
|
-
bytes: z.string(),
|
|
999
|
-
mimeType: z.string().optional(),
|
|
1000
|
-
name: z.string().optional(),
|
|
1001
|
-
});
|
|
1002
|
-
|
|
1003
|
-
export function listAgentTasksFileAgentsResponseBinaryFormatToJSON(
|
|
1004
|
-
listAgentTasksFileAgentsResponseBinaryFormat:
|
|
1005
|
-
ListAgentTasksFileAgentsResponseBinaryFormat,
|
|
1006
|
-
): string {
|
|
1007
|
-
return JSON.stringify(
|
|
1008
|
-
ListAgentTasksFileAgentsResponseBinaryFormat$outboundSchema.parse(
|
|
1009
|
-
listAgentTasksFileAgentsResponseBinaryFormat,
|
|
1010
|
-
),
|
|
1011
|
-
);
|
|
1012
|
-
}
|
|
1013
|
-
export function listAgentTasksFileAgentsResponseBinaryFormatFromJSON(
|
|
1014
|
-
jsonString: string,
|
|
1015
|
-
): SafeParseResult<
|
|
1016
|
-
ListAgentTasksFileAgentsResponseBinaryFormat,
|
|
1017
|
-
SDKValidationError
|
|
1018
|
-
> {
|
|
1019
|
-
return safeParse(
|
|
1020
|
-
jsonString,
|
|
1021
|
-
(x) =>
|
|
1022
|
-
ListAgentTasksFileAgentsResponseBinaryFormat$inboundSchema.parse(
|
|
1023
|
-
JSON.parse(x),
|
|
1024
|
-
),
|
|
1025
|
-
`Failed to parse 'ListAgentTasksFileAgentsResponseBinaryFormat' from JSON`,
|
|
1026
|
-
);
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
/** @internal */
|
|
1030
|
-
export const ListAgentTasksPartsAgentsResponseFile$inboundSchema: z.ZodType<
|
|
1031
|
-
ListAgentTasksPartsAgentsResponseFile,
|
|
1032
|
-
z.ZodTypeDef,
|
|
1033
|
-
unknown
|
|
1034
|
-
> = z.union([
|
|
1035
|
-
z.lazy(() => ListAgentTasksFileAgentsResponseBinaryFormat$inboundSchema),
|
|
1036
|
-
z.lazy(() => ListAgentTasksFileAgentsResponseFileInURIFormat$inboundSchema),
|
|
1037
|
-
]);
|
|
1038
|
-
/** @internal */
|
|
1039
|
-
export type ListAgentTasksPartsAgentsResponseFile$Outbound =
|
|
1040
|
-
| ListAgentTasksFileAgentsResponseBinaryFormat$Outbound
|
|
1041
|
-
| ListAgentTasksFileAgentsResponseFileInURIFormat$Outbound;
|
|
1042
|
-
|
|
1043
|
-
/** @internal */
|
|
1044
|
-
export const ListAgentTasksPartsAgentsResponseFile$outboundSchema: z.ZodType<
|
|
1045
|
-
ListAgentTasksPartsAgentsResponseFile$Outbound,
|
|
1046
|
-
z.ZodTypeDef,
|
|
1047
|
-
ListAgentTasksPartsAgentsResponseFile
|
|
1048
|
-
> = z.union([
|
|
1049
|
-
z.lazy(() => ListAgentTasksFileAgentsResponseBinaryFormat$outboundSchema),
|
|
1050
|
-
z.lazy(() => ListAgentTasksFileAgentsResponseFileInURIFormat$outboundSchema),
|
|
1051
|
-
]);
|
|
1052
|
-
|
|
1053
|
-
export function listAgentTasksPartsAgentsResponseFileToJSON(
|
|
1054
|
-
listAgentTasksPartsAgentsResponseFile: ListAgentTasksPartsAgentsResponseFile,
|
|
1055
|
-
): string {
|
|
1056
|
-
return JSON.stringify(
|
|
1057
|
-
ListAgentTasksPartsAgentsResponseFile$outboundSchema.parse(
|
|
1058
|
-
listAgentTasksPartsAgentsResponseFile,
|
|
1059
|
-
),
|
|
1060
|
-
);
|
|
1061
|
-
}
|
|
1062
|
-
export function listAgentTasksPartsAgentsResponseFileFromJSON(
|
|
1063
|
-
jsonString: string,
|
|
1064
|
-
): SafeParseResult<ListAgentTasksPartsAgentsResponseFile, SDKValidationError> {
|
|
1065
|
-
return safeParse(
|
|
1066
|
-
jsonString,
|
|
1067
|
-
(x) =>
|
|
1068
|
-
ListAgentTasksPartsAgentsResponseFile$inboundSchema.parse(JSON.parse(x)),
|
|
1069
|
-
`Failed to parse 'ListAgentTasksPartsAgentsResponseFile' from JSON`,
|
|
1070
|
-
);
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
/** @internal */
|
|
1074
|
-
export const ListAgentTasksPartsAgentsResponseFilePart$inboundSchema: z.ZodType<
|
|
1075
|
-
ListAgentTasksPartsAgentsResponseFilePart,
|
|
1076
|
-
z.ZodTypeDef,
|
|
1077
|
-
unknown
|
|
1078
|
-
> = z.object({
|
|
1079
|
-
kind:
|
|
1080
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$inboundSchema,
|
|
1081
|
-
file: z.union([
|
|
1082
|
-
z.lazy(() => ListAgentTasksFileAgentsResponseBinaryFormat$inboundSchema),
|
|
1083
|
-
z.lazy(() => ListAgentTasksFileAgentsResponseFileInURIFormat$inboundSchema),
|
|
1084
|
-
]),
|
|
1085
|
-
metadata: z.record(z.any()).optional(),
|
|
1086
|
-
});
|
|
1087
|
-
/** @internal */
|
|
1088
|
-
export type ListAgentTasksPartsAgentsResponseFilePart$Outbound = {
|
|
1089
|
-
kind: string;
|
|
1090
|
-
file:
|
|
1091
|
-
| ListAgentTasksFileAgentsResponseBinaryFormat$Outbound
|
|
1092
|
-
| ListAgentTasksFileAgentsResponseFileInURIFormat$Outbound;
|
|
1093
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1094
|
-
};
|
|
1095
|
-
|
|
1096
|
-
/** @internal */
|
|
1097
|
-
export const ListAgentTasksPartsAgentsResponseFilePart$outboundSchema:
|
|
1098
|
-
z.ZodType<
|
|
1099
|
-
ListAgentTasksPartsAgentsResponseFilePart$Outbound,
|
|
1100
|
-
z.ZodTypeDef,
|
|
1101
|
-
ListAgentTasksPartsAgentsResponseFilePart
|
|
1102
|
-
> = z.object({
|
|
1103
|
-
kind:
|
|
1104
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusKind$outboundSchema,
|
|
1105
|
-
file: z.union([
|
|
1106
|
-
z.lazy(() => ListAgentTasksFileAgentsResponseBinaryFormat$outboundSchema),
|
|
1107
|
-
z.lazy(() =>
|
|
1108
|
-
ListAgentTasksFileAgentsResponseFileInURIFormat$outboundSchema
|
|
1109
|
-
),
|
|
1110
|
-
]),
|
|
1111
|
-
metadata: z.record(z.any()).optional(),
|
|
1112
|
-
});
|
|
1113
|
-
|
|
1114
|
-
export function listAgentTasksPartsAgentsResponseFilePartToJSON(
|
|
1115
|
-
listAgentTasksPartsAgentsResponseFilePart:
|
|
1116
|
-
ListAgentTasksPartsAgentsResponseFilePart,
|
|
1117
|
-
): string {
|
|
1118
|
-
return JSON.stringify(
|
|
1119
|
-
ListAgentTasksPartsAgentsResponseFilePart$outboundSchema.parse(
|
|
1120
|
-
listAgentTasksPartsAgentsResponseFilePart,
|
|
1121
|
-
),
|
|
1122
|
-
);
|
|
1123
|
-
}
|
|
1124
|
-
export function listAgentTasksPartsAgentsResponseFilePartFromJSON(
|
|
1125
|
-
jsonString: string,
|
|
1126
|
-
): SafeParseResult<
|
|
1127
|
-
ListAgentTasksPartsAgentsResponseFilePart,
|
|
1128
|
-
SDKValidationError
|
|
1129
|
-
> {
|
|
1130
|
-
return safeParse(
|
|
1131
|
-
jsonString,
|
|
1132
|
-
(x) =>
|
|
1133
|
-
ListAgentTasksPartsAgentsResponseFilePart$inboundSchema.parse(
|
|
1134
|
-
JSON.parse(x),
|
|
1135
|
-
),
|
|
1136
|
-
`Failed to parse 'ListAgentTasksPartsAgentsResponseFilePart' from JSON`,
|
|
1137
|
-
);
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
/** @internal */
|
|
1141
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$inboundSchema:
|
|
1142
|
-
z.ZodNativeEnum<
|
|
1143
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind
|
|
1144
|
-
> = z.nativeEnum(
|
|
1145
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind,
|
|
1146
|
-
);
|
|
1147
|
-
/** @internal */
|
|
1148
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$outboundSchema:
|
|
1149
|
-
z.ZodNativeEnum<
|
|
1150
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind
|
|
1151
|
-
> =
|
|
1152
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$inboundSchema;
|
|
1153
|
-
|
|
1154
|
-
/** @internal */
|
|
1155
|
-
export const ListAgentTasksPartsAgentsResponseDataPart$inboundSchema: z.ZodType<
|
|
1156
|
-
ListAgentTasksPartsAgentsResponseDataPart,
|
|
1157
|
-
z.ZodTypeDef,
|
|
1158
|
-
unknown
|
|
1159
|
-
> = z.object({
|
|
1160
|
-
kind:
|
|
1161
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$inboundSchema,
|
|
1162
|
-
data: z.record(z.any()),
|
|
1163
|
-
metadata: z.record(z.any()).optional(),
|
|
1164
|
-
});
|
|
1165
|
-
/** @internal */
|
|
1166
|
-
export type ListAgentTasksPartsAgentsResponseDataPart$Outbound = {
|
|
1167
|
-
kind: string;
|
|
1168
|
-
data: { [k: string]: any };
|
|
1169
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1170
|
-
};
|
|
1171
|
-
|
|
1172
|
-
/** @internal */
|
|
1173
|
-
export const ListAgentTasksPartsAgentsResponseDataPart$outboundSchema:
|
|
1174
|
-
z.ZodType<
|
|
1175
|
-
ListAgentTasksPartsAgentsResponseDataPart$Outbound,
|
|
1176
|
-
z.ZodTypeDef,
|
|
1177
|
-
ListAgentTasksPartsAgentsResponseDataPart
|
|
1178
|
-
> = z.object({
|
|
1179
|
-
kind:
|
|
1180
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage2Kind$outboundSchema,
|
|
1181
|
-
data: z.record(z.any()),
|
|
1182
|
-
metadata: z.record(z.any()).optional(),
|
|
1183
|
-
});
|
|
1184
|
-
|
|
1185
|
-
export function listAgentTasksPartsAgentsResponseDataPartToJSON(
|
|
1186
|
-
listAgentTasksPartsAgentsResponseDataPart:
|
|
1187
|
-
ListAgentTasksPartsAgentsResponseDataPart,
|
|
1188
|
-
): string {
|
|
1189
|
-
return JSON.stringify(
|
|
1190
|
-
ListAgentTasksPartsAgentsResponseDataPart$outboundSchema.parse(
|
|
1191
|
-
listAgentTasksPartsAgentsResponseDataPart,
|
|
1192
|
-
),
|
|
1193
|
-
);
|
|
1194
|
-
}
|
|
1195
|
-
export function listAgentTasksPartsAgentsResponseDataPartFromJSON(
|
|
1196
|
-
jsonString: string,
|
|
1197
|
-
): SafeParseResult<
|
|
1198
|
-
ListAgentTasksPartsAgentsResponseDataPart,
|
|
1199
|
-
SDKValidationError
|
|
1200
|
-
> {
|
|
1201
|
-
return safeParse(
|
|
1202
|
-
jsonString,
|
|
1203
|
-
(x) =>
|
|
1204
|
-
ListAgentTasksPartsAgentsResponseDataPart$inboundSchema.parse(
|
|
1205
|
-
JSON.parse(x),
|
|
1206
|
-
),
|
|
1207
|
-
`Failed to parse 'ListAgentTasksPartsAgentsResponseDataPart' from JSON`,
|
|
1208
|
-
);
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
/** @internal */
|
|
1212
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$inboundSchema:
|
|
1213
|
-
z.ZodNativeEnum<
|
|
1214
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind
|
|
1215
|
-
> = z.nativeEnum(
|
|
1216
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind,
|
|
1217
|
-
);
|
|
1218
|
-
/** @internal */
|
|
1219
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$outboundSchema:
|
|
1220
|
-
z.ZodNativeEnum<
|
|
1221
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind
|
|
1222
|
-
> =
|
|
1223
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$inboundSchema;
|
|
1224
|
-
|
|
1225
|
-
/** @internal */
|
|
1226
|
-
export const ListAgentTasksPartsAgentsResponseTextPart$inboundSchema: z.ZodType<
|
|
1227
|
-
ListAgentTasksPartsAgentsResponseTextPart,
|
|
1228
|
-
z.ZodTypeDef,
|
|
1229
|
-
unknown
|
|
1230
|
-
> = z.object({
|
|
1231
|
-
kind:
|
|
1232
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$inboundSchema,
|
|
1233
|
-
text: z.string(),
|
|
1234
|
-
});
|
|
1235
|
-
/** @internal */
|
|
1236
|
-
export type ListAgentTasksPartsAgentsResponseTextPart$Outbound = {
|
|
1237
|
-
kind: string;
|
|
1238
|
-
text: string;
|
|
1239
|
-
};
|
|
1240
|
-
|
|
1241
|
-
/** @internal */
|
|
1242
|
-
export const ListAgentTasksPartsAgentsResponseTextPart$outboundSchema:
|
|
1243
|
-
z.ZodType<
|
|
1244
|
-
ListAgentTasksPartsAgentsResponseTextPart$Outbound,
|
|
1245
|
-
z.ZodTypeDef,
|
|
1246
|
-
ListAgentTasksPartsAgentsResponseTextPart
|
|
1247
|
-
> = z.object({
|
|
1248
|
-
kind:
|
|
1249
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksStatusMessage1Kind$outboundSchema,
|
|
1250
|
-
text: z.string(),
|
|
1251
|
-
});
|
|
1252
|
-
|
|
1253
|
-
export function listAgentTasksPartsAgentsResponseTextPartToJSON(
|
|
1254
|
-
listAgentTasksPartsAgentsResponseTextPart:
|
|
1255
|
-
ListAgentTasksPartsAgentsResponseTextPart,
|
|
1256
|
-
): string {
|
|
1257
|
-
return JSON.stringify(
|
|
1258
|
-
ListAgentTasksPartsAgentsResponseTextPart$outboundSchema.parse(
|
|
1259
|
-
listAgentTasksPartsAgentsResponseTextPart,
|
|
1260
|
-
),
|
|
1261
|
-
);
|
|
1262
|
-
}
|
|
1263
|
-
export function listAgentTasksPartsAgentsResponseTextPartFromJSON(
|
|
1264
|
-
jsonString: string,
|
|
1265
|
-
): SafeParseResult<
|
|
1266
|
-
ListAgentTasksPartsAgentsResponseTextPart,
|
|
1267
|
-
SDKValidationError
|
|
1268
|
-
> {
|
|
1269
|
-
return safeParse(
|
|
1270
|
-
jsonString,
|
|
1271
|
-
(x) =>
|
|
1272
|
-
ListAgentTasksPartsAgentsResponseTextPart$inboundSchema.parse(
|
|
1273
|
-
JSON.parse(x),
|
|
1274
|
-
),
|
|
1275
|
-
`Failed to parse 'ListAgentTasksPartsAgentsResponseTextPart' from JSON`,
|
|
1276
|
-
);
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
/** @internal */
|
|
1280
|
-
export const ListAgentTasksAgentsResponseParts$inboundSchema: z.ZodType<
|
|
1281
|
-
ListAgentTasksAgentsResponseParts,
|
|
1282
|
-
z.ZodTypeDef,
|
|
1283
|
-
unknown
|
|
1284
|
-
> = z.union([
|
|
1285
|
-
z.lazy(() => ListAgentTasksPartsToolCallPart$inboundSchema),
|
|
1286
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseTextPart$inboundSchema),
|
|
1287
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseDataPart$inboundSchema),
|
|
1288
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseFilePart$inboundSchema),
|
|
1289
|
-
z.lazy(() => ListAgentTasksPartsAgentsToolResultPart$inboundSchema),
|
|
1290
|
-
]);
|
|
1291
|
-
/** @internal */
|
|
1292
|
-
export type ListAgentTasksAgentsResponseParts$Outbound =
|
|
1293
|
-
| ListAgentTasksPartsToolCallPart$Outbound
|
|
1294
|
-
| ListAgentTasksPartsAgentsResponseTextPart$Outbound
|
|
1295
|
-
| ListAgentTasksPartsAgentsResponseDataPart$Outbound
|
|
1296
|
-
| ListAgentTasksPartsAgentsResponseFilePart$Outbound
|
|
1297
|
-
| ListAgentTasksPartsAgentsToolResultPart$Outbound;
|
|
1298
|
-
|
|
1299
|
-
/** @internal */
|
|
1300
|
-
export const ListAgentTasksAgentsResponseParts$outboundSchema: z.ZodType<
|
|
1301
|
-
ListAgentTasksAgentsResponseParts$Outbound,
|
|
1302
|
-
z.ZodTypeDef,
|
|
1303
|
-
ListAgentTasksAgentsResponseParts
|
|
1304
|
-
> = z.union([
|
|
1305
|
-
z.lazy(() => ListAgentTasksPartsToolCallPart$outboundSchema),
|
|
1306
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseTextPart$outboundSchema),
|
|
1307
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseDataPart$outboundSchema),
|
|
1308
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseFilePart$outboundSchema),
|
|
1309
|
-
z.lazy(() => ListAgentTasksPartsAgentsToolResultPart$outboundSchema),
|
|
1310
|
-
]);
|
|
1311
|
-
|
|
1312
|
-
export function listAgentTasksAgentsResponsePartsToJSON(
|
|
1313
|
-
listAgentTasksAgentsResponseParts: ListAgentTasksAgentsResponseParts,
|
|
1314
|
-
): string {
|
|
1315
|
-
return JSON.stringify(
|
|
1316
|
-
ListAgentTasksAgentsResponseParts$outboundSchema.parse(
|
|
1317
|
-
listAgentTasksAgentsResponseParts,
|
|
1318
|
-
),
|
|
1319
|
-
);
|
|
1320
|
-
}
|
|
1321
|
-
export function listAgentTasksAgentsResponsePartsFromJSON(
|
|
1322
|
-
jsonString: string,
|
|
1323
|
-
): SafeParseResult<ListAgentTasksAgentsResponseParts, SDKValidationError> {
|
|
1324
|
-
return safeParse(
|
|
1325
|
-
jsonString,
|
|
1326
|
-
(x) => ListAgentTasksAgentsResponseParts$inboundSchema.parse(JSON.parse(x)),
|
|
1327
|
-
`Failed to parse 'ListAgentTasksAgentsResponseParts' from JSON`,
|
|
1328
|
-
);
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
/** @internal */
|
|
1332
|
-
export const ListAgentTasksTaskStatusMessage$inboundSchema: z.ZodType<
|
|
1333
|
-
ListAgentTasksTaskStatusMessage,
|
|
1334
|
-
z.ZodTypeDef,
|
|
1335
|
-
unknown
|
|
1336
|
-
> = z.object({
|
|
1337
|
-
kind: ListAgentTasksAgentsResponseKind$inboundSchema,
|
|
1338
|
-
messageId: z.string(),
|
|
1339
|
-
role: ListAgentTasksAgentsExtendedMessageRole$inboundSchema,
|
|
1340
|
-
parts: z.array(
|
|
1341
|
-
z.union([
|
|
1342
|
-
z.lazy(() => ListAgentTasksPartsToolCallPart$inboundSchema),
|
|
1343
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseTextPart$inboundSchema),
|
|
1344
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseDataPart$inboundSchema),
|
|
1345
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseFilePart$inboundSchema),
|
|
1346
|
-
z.lazy(() => ListAgentTasksPartsAgentsToolResultPart$inboundSchema),
|
|
1347
|
-
]),
|
|
1348
|
-
),
|
|
1349
|
-
});
|
|
1350
|
-
/** @internal */
|
|
1351
|
-
export type ListAgentTasksTaskStatusMessage$Outbound = {
|
|
1352
|
-
kind: string;
|
|
1353
|
-
messageId: string;
|
|
1354
|
-
role: string;
|
|
1355
|
-
parts: Array<
|
|
1356
|
-
| ListAgentTasksPartsToolCallPart$Outbound
|
|
1357
|
-
| ListAgentTasksPartsAgentsResponseTextPart$Outbound
|
|
1358
|
-
| ListAgentTasksPartsAgentsResponseDataPart$Outbound
|
|
1359
|
-
| ListAgentTasksPartsAgentsResponseFilePart$Outbound
|
|
1360
|
-
| ListAgentTasksPartsAgentsToolResultPart$Outbound
|
|
1361
|
-
>;
|
|
1362
|
-
};
|
|
1363
|
-
|
|
1364
|
-
/** @internal */
|
|
1365
|
-
export const ListAgentTasksTaskStatusMessage$outboundSchema: z.ZodType<
|
|
1366
|
-
ListAgentTasksTaskStatusMessage$Outbound,
|
|
1367
|
-
z.ZodTypeDef,
|
|
1368
|
-
ListAgentTasksTaskStatusMessage
|
|
1369
|
-
> = z.object({
|
|
1370
|
-
kind: ListAgentTasksAgentsResponseKind$outboundSchema,
|
|
1371
|
-
messageId: z.string(),
|
|
1372
|
-
role: ListAgentTasksAgentsExtendedMessageRole$outboundSchema,
|
|
1373
|
-
parts: z.array(
|
|
1374
|
-
z.union([
|
|
1375
|
-
z.lazy(() => ListAgentTasksPartsToolCallPart$outboundSchema),
|
|
1376
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseTextPart$outboundSchema),
|
|
1377
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseDataPart$outboundSchema),
|
|
1378
|
-
z.lazy(() => ListAgentTasksPartsAgentsResponseFilePart$outboundSchema),
|
|
1379
|
-
z.lazy(() => ListAgentTasksPartsAgentsToolResultPart$outboundSchema),
|
|
1380
|
-
]),
|
|
1381
|
-
),
|
|
1382
|
-
});
|
|
1383
|
-
|
|
1384
|
-
export function listAgentTasksTaskStatusMessageToJSON(
|
|
1385
|
-
listAgentTasksTaskStatusMessage: ListAgentTasksTaskStatusMessage,
|
|
1386
|
-
): string {
|
|
1387
|
-
return JSON.stringify(
|
|
1388
|
-
ListAgentTasksTaskStatusMessage$outboundSchema.parse(
|
|
1389
|
-
listAgentTasksTaskStatusMessage,
|
|
1390
|
-
),
|
|
1391
|
-
);
|
|
1392
|
-
}
|
|
1393
|
-
export function listAgentTasksTaskStatusMessageFromJSON(
|
|
1394
|
-
jsonString: string,
|
|
1395
|
-
): SafeParseResult<ListAgentTasksTaskStatusMessage, SDKValidationError> {
|
|
1396
|
-
return safeParse(
|
|
1397
|
-
jsonString,
|
|
1398
|
-
(x) => ListAgentTasksTaskStatusMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1399
|
-
`Failed to parse 'ListAgentTasksTaskStatusMessage' from JSON`,
|
|
1400
|
-
);
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
/** @internal */
|
|
1404
|
-
export const ListAgentTasksTaskStatus$inboundSchema: z.ZodType<
|
|
1405
|
-
ListAgentTasksTaskStatus,
|
|
1406
|
-
z.ZodTypeDef,
|
|
1407
|
-
unknown
|
|
1408
|
-
> = z.object({
|
|
1409
|
-
state: ListAgentTasksTaskState$inboundSchema,
|
|
1410
|
-
timestamp: z.string().optional(),
|
|
1411
|
-
message: z.lazy(() => ListAgentTasksTaskStatusMessage$inboundSchema)
|
|
1412
|
-
.optional(),
|
|
1413
|
-
});
|
|
1414
|
-
/** @internal */
|
|
1415
|
-
export type ListAgentTasksTaskStatus$Outbound = {
|
|
1416
|
-
state: string;
|
|
1417
|
-
timestamp?: string | undefined;
|
|
1418
|
-
message?: ListAgentTasksTaskStatusMessage$Outbound | undefined;
|
|
1419
|
-
};
|
|
1420
|
-
|
|
1421
|
-
/** @internal */
|
|
1422
|
-
export const ListAgentTasksTaskStatus$outboundSchema: z.ZodType<
|
|
1423
|
-
ListAgentTasksTaskStatus$Outbound,
|
|
1424
|
-
z.ZodTypeDef,
|
|
1425
|
-
ListAgentTasksTaskStatus
|
|
1426
|
-
> = z.object({
|
|
1427
|
-
state: ListAgentTasksTaskState$outboundSchema,
|
|
1428
|
-
timestamp: z.string().optional(),
|
|
1429
|
-
message: z.lazy(() => ListAgentTasksTaskStatusMessage$outboundSchema)
|
|
1430
|
-
.optional(),
|
|
1431
|
-
});
|
|
1432
|
-
|
|
1433
|
-
export function listAgentTasksTaskStatusToJSON(
|
|
1434
|
-
listAgentTasksTaskStatus: ListAgentTasksTaskStatus,
|
|
1435
|
-
): string {
|
|
1436
|
-
return JSON.stringify(
|
|
1437
|
-
ListAgentTasksTaskStatus$outboundSchema.parse(listAgentTasksTaskStatus),
|
|
1438
|
-
);
|
|
1439
|
-
}
|
|
1440
|
-
export function listAgentTasksTaskStatusFromJSON(
|
|
1441
|
-
jsonString: string,
|
|
1442
|
-
): SafeParseResult<ListAgentTasksTaskStatus, SDKValidationError> {
|
|
1443
|
-
return safeParse(
|
|
1444
|
-
jsonString,
|
|
1445
|
-
(x) => ListAgentTasksTaskStatus$inboundSchema.parse(JSON.parse(x)),
|
|
1446
|
-
`Failed to parse 'ListAgentTasksTaskStatus' from JSON`,
|
|
1447
|
-
);
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
/** @internal */
|
|
1451
|
-
export const ListAgentTasksAgentsKind$inboundSchema: z.ZodNativeEnum<
|
|
1452
|
-
typeof ListAgentTasksAgentsKind
|
|
1453
|
-
> = z.nativeEnum(ListAgentTasksAgentsKind);
|
|
1454
|
-
/** @internal */
|
|
1455
|
-
export const ListAgentTasksAgentsKind$outboundSchema: z.ZodNativeEnum<
|
|
1456
|
-
typeof ListAgentTasksAgentsKind
|
|
1457
|
-
> = ListAgentTasksAgentsKind$inboundSchema;
|
|
1458
|
-
|
|
1459
|
-
/** @internal */
|
|
1460
|
-
export const ListAgentTasksExtendedMessageRole$inboundSchema: z.ZodNativeEnum<
|
|
1461
|
-
typeof ListAgentTasksExtendedMessageRole
|
|
1462
|
-
> = z.nativeEnum(ListAgentTasksExtendedMessageRole);
|
|
1463
|
-
/** @internal */
|
|
1464
|
-
export const ListAgentTasksExtendedMessageRole$outboundSchema: z.ZodNativeEnum<
|
|
1465
|
-
typeof ListAgentTasksExtendedMessageRole
|
|
1466
|
-
> = ListAgentTasksExtendedMessageRole$inboundSchema;
|
|
1467
|
-
|
|
1468
|
-
/** @internal */
|
|
1469
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema:
|
|
1470
|
-
z.ZodNativeEnum<
|
|
1471
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONKind
|
|
1472
|
-
> = z.nativeEnum(ListAgentTasksPartsAgentsResponse200ApplicationJSONKind);
|
|
1473
|
-
/** @internal */
|
|
1474
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$outboundSchema:
|
|
1475
|
-
z.ZodNativeEnum<
|
|
1476
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONKind
|
|
1477
|
-
> = ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema;
|
|
1478
|
-
|
|
1479
|
-
/** @internal */
|
|
1480
|
-
export const ListAgentTasksPartsToolResultPart$inboundSchema: z.ZodType<
|
|
1481
|
-
ListAgentTasksPartsToolResultPart,
|
|
1482
|
-
z.ZodTypeDef,
|
|
1483
|
-
unknown
|
|
1484
|
-
> = z.object({
|
|
1485
|
-
kind: ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema,
|
|
1486
|
-
tool_call_id: z.string(),
|
|
1487
|
-
result: z.any().optional(),
|
|
1488
|
-
metadata: z.record(z.any()).optional(),
|
|
1489
|
-
}).transform((v) => {
|
|
1490
|
-
return remap$(v, {
|
|
1491
|
-
"tool_call_id": "toolCallId",
|
|
1492
|
-
});
|
|
1493
|
-
});
|
|
1494
|
-
/** @internal */
|
|
1495
|
-
export type ListAgentTasksPartsToolResultPart$Outbound = {
|
|
1496
|
-
kind: string;
|
|
1497
|
-
tool_call_id: string;
|
|
1498
|
-
result?: any | undefined;
|
|
1499
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1500
|
-
};
|
|
1501
|
-
|
|
1502
|
-
/** @internal */
|
|
1503
|
-
export const ListAgentTasksPartsToolResultPart$outboundSchema: z.ZodType<
|
|
1504
|
-
ListAgentTasksPartsToolResultPart$Outbound,
|
|
1505
|
-
z.ZodTypeDef,
|
|
1506
|
-
ListAgentTasksPartsToolResultPart
|
|
1507
|
-
> = z.object({
|
|
1508
|
-
kind: ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$outboundSchema,
|
|
1509
|
-
toolCallId: z.string(),
|
|
1510
|
-
result: z.any().optional(),
|
|
1511
|
-
metadata: z.record(z.any()).optional(),
|
|
1512
|
-
}).transform((v) => {
|
|
1513
|
-
return remap$(v, {
|
|
1514
|
-
toolCallId: "tool_call_id",
|
|
1515
|
-
});
|
|
1516
|
-
});
|
|
1517
|
-
|
|
1518
|
-
export function listAgentTasksPartsToolResultPartToJSON(
|
|
1519
|
-
listAgentTasksPartsToolResultPart: ListAgentTasksPartsToolResultPart,
|
|
1520
|
-
): string {
|
|
1521
|
-
return JSON.stringify(
|
|
1522
|
-
ListAgentTasksPartsToolResultPart$outboundSchema.parse(
|
|
1523
|
-
listAgentTasksPartsToolResultPart,
|
|
1524
|
-
),
|
|
1525
|
-
);
|
|
1526
|
-
}
|
|
1527
|
-
export function listAgentTasksPartsToolResultPartFromJSON(
|
|
1528
|
-
jsonString: string,
|
|
1529
|
-
): SafeParseResult<ListAgentTasksPartsToolResultPart, SDKValidationError> {
|
|
1530
|
-
return safeParse(
|
|
1531
|
-
jsonString,
|
|
1532
|
-
(x) => ListAgentTasksPartsToolResultPart$inboundSchema.parse(JSON.parse(x)),
|
|
1533
|
-
`Failed to parse 'ListAgentTasksPartsToolResultPart' from JSON`,
|
|
1534
|
-
);
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
/** @internal */
|
|
1538
|
-
export const ListAgentTasksPartsAgentsResponse200Kind$inboundSchema:
|
|
1539
|
-
z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponse200Kind> = z
|
|
1540
|
-
.nativeEnum(ListAgentTasksPartsAgentsResponse200Kind);
|
|
1541
|
-
/** @internal */
|
|
1542
|
-
export const ListAgentTasksPartsAgentsResponse200Kind$outboundSchema:
|
|
1543
|
-
z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponse200Kind> =
|
|
1544
|
-
ListAgentTasksPartsAgentsResponse200Kind$inboundSchema;
|
|
1545
|
-
|
|
1546
|
-
/** @internal */
|
|
1547
|
-
export const PartsToolCallPart$inboundSchema: z.ZodType<
|
|
1548
|
-
PartsToolCallPart,
|
|
1549
|
-
z.ZodTypeDef,
|
|
1550
|
-
unknown
|
|
1551
|
-
> = z.object({
|
|
1552
|
-
kind: ListAgentTasksPartsAgentsResponse200Kind$inboundSchema,
|
|
1553
|
-
tool_name: z.string(),
|
|
1554
|
-
tool_call_id: z.string(),
|
|
1555
|
-
arguments: z.record(z.any()),
|
|
1556
|
-
metadata: z.record(z.any()).optional(),
|
|
1557
|
-
}).transform((v) => {
|
|
1558
|
-
return remap$(v, {
|
|
1559
|
-
"tool_name": "toolName",
|
|
1560
|
-
"tool_call_id": "toolCallId",
|
|
1561
|
-
});
|
|
1562
|
-
});
|
|
1563
|
-
/** @internal */
|
|
1564
|
-
export type PartsToolCallPart$Outbound = {
|
|
1565
|
-
kind: string;
|
|
1566
|
-
tool_name: string;
|
|
1567
|
-
tool_call_id: string;
|
|
1568
|
-
arguments: { [k: string]: any };
|
|
1569
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1570
|
-
};
|
|
1571
|
-
|
|
1572
|
-
/** @internal */
|
|
1573
|
-
export const PartsToolCallPart$outboundSchema: z.ZodType<
|
|
1574
|
-
PartsToolCallPart$Outbound,
|
|
1575
|
-
z.ZodTypeDef,
|
|
1576
|
-
PartsToolCallPart
|
|
1577
|
-
> = z.object({
|
|
1578
|
-
kind: ListAgentTasksPartsAgentsResponse200Kind$outboundSchema,
|
|
1579
|
-
toolName: z.string(),
|
|
1580
|
-
toolCallId: z.string(),
|
|
1581
|
-
arguments: z.record(z.any()),
|
|
1582
|
-
metadata: z.record(z.any()).optional(),
|
|
1583
|
-
}).transform((v) => {
|
|
1584
|
-
return remap$(v, {
|
|
1585
|
-
toolName: "tool_name",
|
|
1586
|
-
toolCallId: "tool_call_id",
|
|
1587
|
-
});
|
|
1588
|
-
});
|
|
1589
|
-
|
|
1590
|
-
export function partsToolCallPartToJSON(
|
|
1591
|
-
partsToolCallPart: PartsToolCallPart,
|
|
1592
|
-
): string {
|
|
1593
|
-
return JSON.stringify(
|
|
1594
|
-
PartsToolCallPart$outboundSchema.parse(partsToolCallPart),
|
|
1595
|
-
);
|
|
1596
|
-
}
|
|
1597
|
-
export function partsToolCallPartFromJSON(
|
|
1598
|
-
jsonString: string,
|
|
1599
|
-
): SafeParseResult<PartsToolCallPart, SDKValidationError> {
|
|
1600
|
-
return safeParse(
|
|
1601
|
-
jsonString,
|
|
1602
|
-
(x) => PartsToolCallPart$inboundSchema.parse(JSON.parse(x)),
|
|
1603
|
-
`Failed to parse 'PartsToolCallPart' from JSON`,
|
|
1604
|
-
);
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
/** @internal */
|
|
1608
|
-
export const ListAgentTasksPartsAgentsResponseKind$inboundSchema:
|
|
1609
|
-
z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponseKind> = z.nativeEnum(
|
|
1610
|
-
ListAgentTasksPartsAgentsResponseKind,
|
|
1611
|
-
);
|
|
1612
|
-
/** @internal */
|
|
1613
|
-
export const ListAgentTasksPartsAgentsResponseKind$outboundSchema:
|
|
1614
|
-
z.ZodNativeEnum<typeof ListAgentTasksPartsAgentsResponseKind> =
|
|
1615
|
-
ListAgentTasksPartsAgentsResponseKind$inboundSchema;
|
|
1616
|
-
|
|
1617
|
-
/** @internal */
|
|
1618
|
-
export const ListAgentTasksFileFileInURIFormat$inboundSchema: z.ZodType<
|
|
1619
|
-
ListAgentTasksFileFileInURIFormat,
|
|
1620
|
-
z.ZodTypeDef,
|
|
1621
|
-
unknown
|
|
1622
|
-
> = z.object({
|
|
1623
|
-
uri: z.string(),
|
|
1624
|
-
mimeType: z.string().optional(),
|
|
1625
|
-
name: z.string().optional(),
|
|
1626
|
-
});
|
|
1627
|
-
/** @internal */
|
|
1628
|
-
export type ListAgentTasksFileFileInURIFormat$Outbound = {
|
|
1629
|
-
uri: string;
|
|
1630
|
-
mimeType?: string | undefined;
|
|
1631
|
-
name?: string | undefined;
|
|
1632
|
-
};
|
|
1633
|
-
|
|
1634
|
-
/** @internal */
|
|
1635
|
-
export const ListAgentTasksFileFileInURIFormat$outboundSchema: z.ZodType<
|
|
1636
|
-
ListAgentTasksFileFileInURIFormat$Outbound,
|
|
1637
|
-
z.ZodTypeDef,
|
|
1638
|
-
ListAgentTasksFileFileInURIFormat
|
|
1639
|
-
> = z.object({
|
|
1640
|
-
uri: z.string(),
|
|
1641
|
-
mimeType: z.string().optional(),
|
|
1642
|
-
name: z.string().optional(),
|
|
1643
|
-
});
|
|
1644
|
-
|
|
1645
|
-
export function listAgentTasksFileFileInURIFormatToJSON(
|
|
1646
|
-
listAgentTasksFileFileInURIFormat: ListAgentTasksFileFileInURIFormat,
|
|
1647
|
-
): string {
|
|
1648
|
-
return JSON.stringify(
|
|
1649
|
-
ListAgentTasksFileFileInURIFormat$outboundSchema.parse(
|
|
1650
|
-
listAgentTasksFileFileInURIFormat,
|
|
1651
|
-
),
|
|
1652
|
-
);
|
|
1653
|
-
}
|
|
1654
|
-
export function listAgentTasksFileFileInURIFormatFromJSON(
|
|
1655
|
-
jsonString: string,
|
|
1656
|
-
): SafeParseResult<ListAgentTasksFileFileInURIFormat, SDKValidationError> {
|
|
1657
|
-
return safeParse(
|
|
1658
|
-
jsonString,
|
|
1659
|
-
(x) => ListAgentTasksFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1660
|
-
`Failed to parse 'ListAgentTasksFileFileInURIFormat' from JSON`,
|
|
1661
|
-
);
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
/** @internal */
|
|
1665
|
-
export const ListAgentTasksFileBinaryFormat$inboundSchema: z.ZodType<
|
|
1666
|
-
ListAgentTasksFileBinaryFormat,
|
|
1667
|
-
z.ZodTypeDef,
|
|
1668
|
-
unknown
|
|
1669
|
-
> = z.object({
|
|
1670
|
-
bytes: z.string(),
|
|
1671
|
-
mimeType: z.string().optional(),
|
|
1672
|
-
name: z.string().optional(),
|
|
1673
|
-
});
|
|
1674
|
-
/** @internal */
|
|
1675
|
-
export type ListAgentTasksFileBinaryFormat$Outbound = {
|
|
1676
|
-
bytes: string;
|
|
1677
|
-
mimeType?: string | undefined;
|
|
1678
|
-
name?: string | undefined;
|
|
1679
|
-
};
|
|
1680
|
-
|
|
1681
|
-
/** @internal */
|
|
1682
|
-
export const ListAgentTasksFileBinaryFormat$outboundSchema: z.ZodType<
|
|
1683
|
-
ListAgentTasksFileBinaryFormat$Outbound,
|
|
1684
|
-
z.ZodTypeDef,
|
|
1685
|
-
ListAgentTasksFileBinaryFormat
|
|
1686
|
-
> = z.object({
|
|
1687
|
-
bytes: z.string(),
|
|
1688
|
-
mimeType: z.string().optional(),
|
|
1689
|
-
name: z.string().optional(),
|
|
1690
|
-
});
|
|
1691
|
-
|
|
1692
|
-
export function listAgentTasksFileBinaryFormatToJSON(
|
|
1693
|
-
listAgentTasksFileBinaryFormat: ListAgentTasksFileBinaryFormat,
|
|
1694
|
-
): string {
|
|
1695
|
-
return JSON.stringify(
|
|
1696
|
-
ListAgentTasksFileBinaryFormat$outboundSchema.parse(
|
|
1697
|
-
listAgentTasksFileBinaryFormat,
|
|
1698
|
-
),
|
|
1699
|
-
);
|
|
1700
|
-
}
|
|
1701
|
-
export function listAgentTasksFileBinaryFormatFromJSON(
|
|
1702
|
-
jsonString: string,
|
|
1703
|
-
): SafeParseResult<ListAgentTasksFileBinaryFormat, SDKValidationError> {
|
|
1704
|
-
return safeParse(
|
|
1705
|
-
jsonString,
|
|
1706
|
-
(x) => ListAgentTasksFileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1707
|
-
`Failed to parse 'ListAgentTasksFileBinaryFormat' from JSON`,
|
|
1708
|
-
);
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
/** @internal */
|
|
1712
|
-
export const ListAgentTasksPartsFile$inboundSchema: z.ZodType<
|
|
1713
|
-
ListAgentTasksPartsFile,
|
|
1714
|
-
z.ZodTypeDef,
|
|
1715
|
-
unknown
|
|
1716
|
-
> = z.union([
|
|
1717
|
-
z.lazy(() => ListAgentTasksFileBinaryFormat$inboundSchema),
|
|
1718
|
-
z.lazy(() => ListAgentTasksFileFileInURIFormat$inboundSchema),
|
|
1719
|
-
]);
|
|
1720
|
-
/** @internal */
|
|
1721
|
-
export type ListAgentTasksPartsFile$Outbound =
|
|
1722
|
-
| ListAgentTasksFileBinaryFormat$Outbound
|
|
1723
|
-
| ListAgentTasksFileFileInURIFormat$Outbound;
|
|
1724
|
-
|
|
1725
|
-
/** @internal */
|
|
1726
|
-
export const ListAgentTasksPartsFile$outboundSchema: z.ZodType<
|
|
1727
|
-
ListAgentTasksPartsFile$Outbound,
|
|
1728
|
-
z.ZodTypeDef,
|
|
1729
|
-
ListAgentTasksPartsFile
|
|
1730
|
-
> = z.union([
|
|
1731
|
-
z.lazy(() => ListAgentTasksFileBinaryFormat$outboundSchema),
|
|
1732
|
-
z.lazy(() => ListAgentTasksFileFileInURIFormat$outboundSchema),
|
|
1733
|
-
]);
|
|
1734
|
-
|
|
1735
|
-
export function listAgentTasksPartsFileToJSON(
|
|
1736
|
-
listAgentTasksPartsFile: ListAgentTasksPartsFile,
|
|
1737
|
-
): string {
|
|
1738
|
-
return JSON.stringify(
|
|
1739
|
-
ListAgentTasksPartsFile$outboundSchema.parse(listAgentTasksPartsFile),
|
|
1740
|
-
);
|
|
1741
|
-
}
|
|
1742
|
-
export function listAgentTasksPartsFileFromJSON(
|
|
1743
|
-
jsonString: string,
|
|
1744
|
-
): SafeParseResult<ListAgentTasksPartsFile, SDKValidationError> {
|
|
1745
|
-
return safeParse(
|
|
1746
|
-
jsonString,
|
|
1747
|
-
(x) => ListAgentTasksPartsFile$inboundSchema.parse(JSON.parse(x)),
|
|
1748
|
-
`Failed to parse 'ListAgentTasksPartsFile' from JSON`,
|
|
1749
|
-
);
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
/** @internal */
|
|
1753
|
-
export const ListAgentTasksPartsFilePart$inboundSchema: z.ZodType<
|
|
1754
|
-
ListAgentTasksPartsFilePart,
|
|
1755
|
-
z.ZodTypeDef,
|
|
1756
|
-
unknown
|
|
1757
|
-
> = z.object({
|
|
1758
|
-
kind: ListAgentTasksPartsAgentsResponseKind$inboundSchema,
|
|
1759
|
-
file: z.union([
|
|
1760
|
-
z.lazy(() => ListAgentTasksFileBinaryFormat$inboundSchema),
|
|
1761
|
-
z.lazy(() => ListAgentTasksFileFileInURIFormat$inboundSchema),
|
|
1762
|
-
]),
|
|
1763
|
-
metadata: z.record(z.any()).optional(),
|
|
1764
|
-
});
|
|
1765
|
-
/** @internal */
|
|
1766
|
-
export type ListAgentTasksPartsFilePart$Outbound = {
|
|
1767
|
-
kind: string;
|
|
1768
|
-
file:
|
|
1769
|
-
| ListAgentTasksFileBinaryFormat$Outbound
|
|
1770
|
-
| ListAgentTasksFileFileInURIFormat$Outbound;
|
|
1771
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1772
|
-
};
|
|
1773
|
-
|
|
1774
|
-
/** @internal */
|
|
1775
|
-
export const ListAgentTasksPartsFilePart$outboundSchema: z.ZodType<
|
|
1776
|
-
ListAgentTasksPartsFilePart$Outbound,
|
|
1777
|
-
z.ZodTypeDef,
|
|
1778
|
-
ListAgentTasksPartsFilePart
|
|
1779
|
-
> = z.object({
|
|
1780
|
-
kind: ListAgentTasksPartsAgentsResponseKind$outboundSchema,
|
|
1781
|
-
file: z.union([
|
|
1782
|
-
z.lazy(() => ListAgentTasksFileBinaryFormat$outboundSchema),
|
|
1783
|
-
z.lazy(() => ListAgentTasksFileFileInURIFormat$outboundSchema),
|
|
1784
|
-
]),
|
|
1785
|
-
metadata: z.record(z.any()).optional(),
|
|
1786
|
-
});
|
|
1787
|
-
|
|
1788
|
-
export function listAgentTasksPartsFilePartToJSON(
|
|
1789
|
-
listAgentTasksPartsFilePart: ListAgentTasksPartsFilePart,
|
|
1790
|
-
): string {
|
|
1791
|
-
return JSON.stringify(
|
|
1792
|
-
ListAgentTasksPartsFilePart$outboundSchema.parse(
|
|
1793
|
-
listAgentTasksPartsFilePart,
|
|
1794
|
-
),
|
|
1795
|
-
);
|
|
1796
|
-
}
|
|
1797
|
-
export function listAgentTasksPartsFilePartFromJSON(
|
|
1798
|
-
jsonString: string,
|
|
1799
|
-
): SafeParseResult<ListAgentTasksPartsFilePart, SDKValidationError> {
|
|
1800
|
-
return safeParse(
|
|
1801
|
-
jsonString,
|
|
1802
|
-
(x) => ListAgentTasksPartsFilePart$inboundSchema.parse(JSON.parse(x)),
|
|
1803
|
-
`Failed to parse 'ListAgentTasksPartsFilePart' from JSON`,
|
|
1804
|
-
);
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
/** @internal */
|
|
1808
|
-
export const ListAgentTasksPartsAgentsKind$inboundSchema: z.ZodNativeEnum<
|
|
1809
|
-
typeof ListAgentTasksPartsAgentsKind
|
|
1810
|
-
> = z.nativeEnum(ListAgentTasksPartsAgentsKind);
|
|
1811
|
-
/** @internal */
|
|
1812
|
-
export const ListAgentTasksPartsAgentsKind$outboundSchema: z.ZodNativeEnum<
|
|
1813
|
-
typeof ListAgentTasksPartsAgentsKind
|
|
1814
|
-
> = ListAgentTasksPartsAgentsKind$inboundSchema;
|
|
1815
|
-
|
|
1816
|
-
/** @internal */
|
|
1817
|
-
export const ListAgentTasksPartsAgentsDataPart$inboundSchema: z.ZodType<
|
|
1818
|
-
ListAgentTasksPartsAgentsDataPart,
|
|
1819
|
-
z.ZodTypeDef,
|
|
1820
|
-
unknown
|
|
1821
|
-
> = z.object({
|
|
1822
|
-
kind: ListAgentTasksPartsAgentsKind$inboundSchema,
|
|
1823
|
-
data: z.record(z.any()),
|
|
1824
|
-
metadata: z.record(z.any()).optional(),
|
|
1825
|
-
});
|
|
1826
|
-
/** @internal */
|
|
1827
|
-
export type ListAgentTasksPartsAgentsDataPart$Outbound = {
|
|
1828
|
-
kind: string;
|
|
1829
|
-
data: { [k: string]: any };
|
|
1830
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1831
|
-
};
|
|
1832
|
-
|
|
1833
|
-
/** @internal */
|
|
1834
|
-
export const ListAgentTasksPartsAgentsDataPart$outboundSchema: z.ZodType<
|
|
1835
|
-
ListAgentTasksPartsAgentsDataPart$Outbound,
|
|
1836
|
-
z.ZodTypeDef,
|
|
1837
|
-
ListAgentTasksPartsAgentsDataPart
|
|
1838
|
-
> = z.object({
|
|
1839
|
-
kind: ListAgentTasksPartsAgentsKind$outboundSchema,
|
|
1840
|
-
data: z.record(z.any()),
|
|
1841
|
-
metadata: z.record(z.any()).optional(),
|
|
1842
|
-
});
|
|
1843
|
-
|
|
1844
|
-
export function listAgentTasksPartsAgentsDataPartToJSON(
|
|
1845
|
-
listAgentTasksPartsAgentsDataPart: ListAgentTasksPartsAgentsDataPart,
|
|
1846
|
-
): string {
|
|
1847
|
-
return JSON.stringify(
|
|
1848
|
-
ListAgentTasksPartsAgentsDataPart$outboundSchema.parse(
|
|
1849
|
-
listAgentTasksPartsAgentsDataPart,
|
|
1850
|
-
),
|
|
1851
|
-
);
|
|
1852
|
-
}
|
|
1853
|
-
export function listAgentTasksPartsAgentsDataPartFromJSON(
|
|
1854
|
-
jsonString: string,
|
|
1855
|
-
): SafeParseResult<ListAgentTasksPartsAgentsDataPart, SDKValidationError> {
|
|
1856
|
-
return safeParse(
|
|
1857
|
-
jsonString,
|
|
1858
|
-
(x) => ListAgentTasksPartsAgentsDataPart$inboundSchema.parse(JSON.parse(x)),
|
|
1859
|
-
`Failed to parse 'ListAgentTasksPartsAgentsDataPart' from JSON`,
|
|
1860
|
-
);
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
/** @internal */
|
|
1864
|
-
export const ListAgentTasksPartsKind$inboundSchema: z.ZodNativeEnum<
|
|
1865
|
-
typeof ListAgentTasksPartsKind
|
|
1866
|
-
> = z.nativeEnum(ListAgentTasksPartsKind);
|
|
1867
|
-
/** @internal */
|
|
1868
|
-
export const ListAgentTasksPartsKind$outboundSchema: z.ZodNativeEnum<
|
|
1869
|
-
typeof ListAgentTasksPartsKind
|
|
1870
|
-
> = ListAgentTasksPartsKind$inboundSchema;
|
|
1871
|
-
|
|
1872
|
-
/** @internal */
|
|
1873
|
-
export const ListAgentTasksPartsTextPart$inboundSchema: z.ZodType<
|
|
1874
|
-
ListAgentTasksPartsTextPart,
|
|
1875
|
-
z.ZodTypeDef,
|
|
1876
|
-
unknown
|
|
1877
|
-
> = z.object({
|
|
1878
|
-
kind: ListAgentTasksPartsKind$inboundSchema,
|
|
1879
|
-
text: z.string(),
|
|
1880
|
-
});
|
|
1881
|
-
/** @internal */
|
|
1882
|
-
export type ListAgentTasksPartsTextPart$Outbound = {
|
|
1883
|
-
kind: string;
|
|
1884
|
-
text: string;
|
|
1885
|
-
};
|
|
1886
|
-
|
|
1887
|
-
/** @internal */
|
|
1888
|
-
export const ListAgentTasksPartsTextPart$outboundSchema: z.ZodType<
|
|
1889
|
-
ListAgentTasksPartsTextPart$Outbound,
|
|
1890
|
-
z.ZodTypeDef,
|
|
1891
|
-
ListAgentTasksPartsTextPart
|
|
1892
|
-
> = z.object({
|
|
1893
|
-
kind: ListAgentTasksPartsKind$outboundSchema,
|
|
1894
|
-
text: z.string(),
|
|
1895
|
-
});
|
|
1896
|
-
|
|
1897
|
-
export function listAgentTasksPartsTextPartToJSON(
|
|
1898
|
-
listAgentTasksPartsTextPart: ListAgentTasksPartsTextPart,
|
|
1899
|
-
): string {
|
|
1900
|
-
return JSON.stringify(
|
|
1901
|
-
ListAgentTasksPartsTextPart$outboundSchema.parse(
|
|
1902
|
-
listAgentTasksPartsTextPart,
|
|
1903
|
-
),
|
|
1904
|
-
);
|
|
1905
|
-
}
|
|
1906
|
-
export function listAgentTasksPartsTextPartFromJSON(
|
|
1907
|
-
jsonString: string,
|
|
1908
|
-
): SafeParseResult<ListAgentTasksPartsTextPart, SDKValidationError> {
|
|
1909
|
-
return safeParse(
|
|
1910
|
-
jsonString,
|
|
1911
|
-
(x) => ListAgentTasksPartsTextPart$inboundSchema.parse(JSON.parse(x)),
|
|
1912
|
-
`Failed to parse 'ListAgentTasksPartsTextPart' from JSON`,
|
|
1913
|
-
);
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
/** @internal */
|
|
1917
|
-
export const ListAgentTasksParts$inboundSchema: z.ZodType<
|
|
1918
|
-
ListAgentTasksParts,
|
|
1919
|
-
z.ZodTypeDef,
|
|
1920
|
-
unknown
|
|
1921
|
-
> = z.union([
|
|
1922
|
-
z.lazy(() => PartsToolCallPart$inboundSchema),
|
|
1923
|
-
z.lazy(() => ListAgentTasksPartsTextPart$inboundSchema),
|
|
1924
|
-
z.lazy(() => ListAgentTasksPartsAgentsDataPart$inboundSchema),
|
|
1925
|
-
z.lazy(() => ListAgentTasksPartsFilePart$inboundSchema),
|
|
1926
|
-
z.lazy(() => ListAgentTasksPartsToolResultPart$inboundSchema),
|
|
1927
|
-
]);
|
|
1928
|
-
/** @internal */
|
|
1929
|
-
export type ListAgentTasksParts$Outbound =
|
|
1930
|
-
| PartsToolCallPart$Outbound
|
|
1931
|
-
| ListAgentTasksPartsTextPart$Outbound
|
|
1932
|
-
| ListAgentTasksPartsAgentsDataPart$Outbound
|
|
1933
|
-
| ListAgentTasksPartsFilePart$Outbound
|
|
1934
|
-
| ListAgentTasksPartsToolResultPart$Outbound;
|
|
1935
|
-
|
|
1936
|
-
/** @internal */
|
|
1937
|
-
export const ListAgentTasksParts$outboundSchema: z.ZodType<
|
|
1938
|
-
ListAgentTasksParts$Outbound,
|
|
1939
|
-
z.ZodTypeDef,
|
|
1940
|
-
ListAgentTasksParts
|
|
1941
|
-
> = z.union([
|
|
1942
|
-
z.lazy(() => PartsToolCallPart$outboundSchema),
|
|
1943
|
-
z.lazy(() => ListAgentTasksPartsTextPart$outboundSchema),
|
|
1944
|
-
z.lazy(() => ListAgentTasksPartsAgentsDataPart$outboundSchema),
|
|
1945
|
-
z.lazy(() => ListAgentTasksPartsFilePart$outboundSchema),
|
|
1946
|
-
z.lazy(() => ListAgentTasksPartsToolResultPart$outboundSchema),
|
|
1947
|
-
]);
|
|
1948
|
-
|
|
1949
|
-
export function listAgentTasksPartsToJSON(
|
|
1950
|
-
listAgentTasksParts: ListAgentTasksParts,
|
|
1951
|
-
): string {
|
|
1952
|
-
return JSON.stringify(
|
|
1953
|
-
ListAgentTasksParts$outboundSchema.parse(listAgentTasksParts),
|
|
1954
|
-
);
|
|
1955
|
-
}
|
|
1956
|
-
export function listAgentTasksPartsFromJSON(
|
|
1957
|
-
jsonString: string,
|
|
1958
|
-
): SafeParseResult<ListAgentTasksParts, SDKValidationError> {
|
|
1959
|
-
return safeParse(
|
|
1960
|
-
jsonString,
|
|
1961
|
-
(x) => ListAgentTasksParts$inboundSchema.parse(JSON.parse(x)),
|
|
1962
|
-
`Failed to parse 'ListAgentTasksParts' from JSON`,
|
|
1963
|
-
);
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
/** @internal */
|
|
1967
|
-
export const ListAgentTasksExtendedA2AMessage$inboundSchema: z.ZodType<
|
|
1968
|
-
ListAgentTasksExtendedA2AMessage,
|
|
1969
|
-
z.ZodTypeDef,
|
|
1970
|
-
unknown
|
|
1971
|
-
> = z.object({
|
|
1972
|
-
kind: ListAgentTasksAgentsKind$inboundSchema,
|
|
1973
|
-
messageId: z.string(),
|
|
1974
|
-
role: ListAgentTasksExtendedMessageRole$inboundSchema,
|
|
1975
|
-
parts: z.array(
|
|
1976
|
-
z.union([
|
|
1977
|
-
z.lazy(() => PartsToolCallPart$inboundSchema),
|
|
1978
|
-
z.lazy(() => ListAgentTasksPartsTextPart$inboundSchema),
|
|
1979
|
-
z.lazy(() => ListAgentTasksPartsAgentsDataPart$inboundSchema),
|
|
1980
|
-
z.lazy(() => ListAgentTasksPartsFilePart$inboundSchema),
|
|
1981
|
-
z.lazy(() => ListAgentTasksPartsToolResultPart$inboundSchema),
|
|
1982
|
-
]),
|
|
1983
|
-
),
|
|
1984
|
-
taskId: z.string().optional(),
|
|
1985
|
-
contextId: z.string().optional(),
|
|
1986
|
-
metadata: z.record(z.any()).optional(),
|
|
1987
|
-
});
|
|
1988
|
-
/** @internal */
|
|
1989
|
-
export type ListAgentTasksExtendedA2AMessage$Outbound = {
|
|
1990
|
-
kind: string;
|
|
1991
|
-
messageId: string;
|
|
1992
|
-
role: string;
|
|
1993
|
-
parts: Array<
|
|
1994
|
-
| PartsToolCallPart$Outbound
|
|
1995
|
-
| ListAgentTasksPartsTextPart$Outbound
|
|
1996
|
-
| ListAgentTasksPartsAgentsDataPart$Outbound
|
|
1997
|
-
| ListAgentTasksPartsFilePart$Outbound
|
|
1998
|
-
| ListAgentTasksPartsToolResultPart$Outbound
|
|
1999
|
-
>;
|
|
2000
|
-
taskId?: string | undefined;
|
|
2001
|
-
contextId?: string | undefined;
|
|
2002
|
-
metadata?: { [k: string]: any } | undefined;
|
|
2003
|
-
};
|
|
2004
|
-
|
|
2005
|
-
/** @internal */
|
|
2006
|
-
export const ListAgentTasksExtendedA2AMessage$outboundSchema: z.ZodType<
|
|
2007
|
-
ListAgentTasksExtendedA2AMessage$Outbound,
|
|
2008
|
-
z.ZodTypeDef,
|
|
2009
|
-
ListAgentTasksExtendedA2AMessage
|
|
2010
|
-
> = z.object({
|
|
2011
|
-
kind: ListAgentTasksAgentsKind$outboundSchema,
|
|
2012
|
-
messageId: z.string(),
|
|
2013
|
-
role: ListAgentTasksExtendedMessageRole$outboundSchema,
|
|
2014
|
-
parts: z.array(
|
|
2015
|
-
z.union([
|
|
2016
|
-
z.lazy(() => PartsToolCallPart$outboundSchema),
|
|
2017
|
-
z.lazy(() => ListAgentTasksPartsTextPart$outboundSchema),
|
|
2018
|
-
z.lazy(() => ListAgentTasksPartsAgentsDataPart$outboundSchema),
|
|
2019
|
-
z.lazy(() => ListAgentTasksPartsFilePart$outboundSchema),
|
|
2020
|
-
z.lazy(() => ListAgentTasksPartsToolResultPart$outboundSchema),
|
|
2021
|
-
]),
|
|
2022
|
-
),
|
|
2023
|
-
taskId: z.string().optional(),
|
|
2024
|
-
contextId: z.string().optional(),
|
|
2025
|
-
metadata: z.record(z.any()).optional(),
|
|
2026
|
-
});
|
|
2027
|
-
|
|
2028
|
-
export function listAgentTasksExtendedA2AMessageToJSON(
|
|
2029
|
-
listAgentTasksExtendedA2AMessage: ListAgentTasksExtendedA2AMessage,
|
|
2030
|
-
): string {
|
|
2031
|
-
return JSON.stringify(
|
|
2032
|
-
ListAgentTasksExtendedA2AMessage$outboundSchema.parse(
|
|
2033
|
-
listAgentTasksExtendedA2AMessage,
|
|
2034
|
-
),
|
|
2035
|
-
);
|
|
2036
|
-
}
|
|
2037
|
-
export function listAgentTasksExtendedA2AMessageFromJSON(
|
|
2038
|
-
jsonString: string,
|
|
2039
|
-
): SafeParseResult<ListAgentTasksExtendedA2AMessage, SDKValidationError> {
|
|
2040
|
-
return safeParse(
|
|
2041
|
-
jsonString,
|
|
2042
|
-
(x) => ListAgentTasksExtendedA2AMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2043
|
-
`Failed to parse 'ListAgentTasksExtendedA2AMessage' from JSON`,
|
|
2044
|
-
);
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
/** @internal */
|
|
2048
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$inboundSchema:
|
|
2049
|
-
z.ZodNativeEnum<
|
|
2050
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind
|
|
2051
|
-
> = z.nativeEnum(
|
|
2052
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind,
|
|
2053
|
-
);
|
|
2054
|
-
/** @internal */
|
|
2055
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$outboundSchema:
|
|
2056
|
-
z.ZodNativeEnum<
|
|
2057
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind
|
|
2058
|
-
> =
|
|
2059
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$inboundSchema;
|
|
2060
|
-
|
|
2061
|
-
/** @internal */
|
|
2062
|
-
export const ListAgentTasksPartsDataPart$inboundSchema: z.ZodType<
|
|
2063
|
-
ListAgentTasksPartsDataPart,
|
|
2064
|
-
z.ZodTypeDef,
|
|
2065
|
-
unknown
|
|
2066
|
-
> = z.object({
|
|
2067
|
-
kind:
|
|
2068
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$inboundSchema,
|
|
2069
|
-
data: z.record(z.any()),
|
|
2070
|
-
metadata: z.record(z.any()).optional(),
|
|
2071
|
-
});
|
|
2072
|
-
/** @internal */
|
|
2073
|
-
export type ListAgentTasksPartsDataPart$Outbound = {
|
|
2074
|
-
kind: string;
|
|
2075
|
-
data: { [k: string]: any };
|
|
2076
|
-
metadata?: { [k: string]: any } | undefined;
|
|
2077
|
-
};
|
|
2078
|
-
|
|
2079
|
-
/** @internal */
|
|
2080
|
-
export const ListAgentTasksPartsDataPart$outboundSchema: z.ZodType<
|
|
2081
|
-
ListAgentTasksPartsDataPart$Outbound,
|
|
2082
|
-
z.ZodTypeDef,
|
|
2083
|
-
ListAgentTasksPartsDataPart
|
|
2084
|
-
> = z.object({
|
|
2085
|
-
kind:
|
|
2086
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksArtifactsKind$outboundSchema,
|
|
2087
|
-
data: z.record(z.any()),
|
|
2088
|
-
metadata: z.record(z.any()).optional(),
|
|
2089
|
-
});
|
|
2090
|
-
|
|
2091
|
-
export function listAgentTasksPartsDataPartToJSON(
|
|
2092
|
-
listAgentTasksPartsDataPart: ListAgentTasksPartsDataPart,
|
|
2093
|
-
): string {
|
|
2094
|
-
return JSON.stringify(
|
|
2095
|
-
ListAgentTasksPartsDataPart$outboundSchema.parse(
|
|
2096
|
-
listAgentTasksPartsDataPart,
|
|
2097
|
-
),
|
|
2098
|
-
);
|
|
2099
|
-
}
|
|
2100
|
-
export function listAgentTasksPartsDataPartFromJSON(
|
|
2101
|
-
jsonString: string,
|
|
2102
|
-
): SafeParseResult<ListAgentTasksPartsDataPart, SDKValidationError> {
|
|
2103
|
-
return safeParse(
|
|
2104
|
-
jsonString,
|
|
2105
|
-
(x) => ListAgentTasksPartsDataPart$inboundSchema.parse(JSON.parse(x)),
|
|
2106
|
-
`Failed to parse 'ListAgentTasksPartsDataPart' from JSON`,
|
|
2107
|
-
);
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
/** @internal */
|
|
2111
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$inboundSchema:
|
|
2112
|
-
z.ZodNativeEnum<
|
|
2113
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind
|
|
2114
|
-
> = z.nativeEnum(
|
|
2115
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind,
|
|
2116
|
-
);
|
|
2117
|
-
/** @internal */
|
|
2118
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$outboundSchema:
|
|
2119
|
-
z.ZodNativeEnum<
|
|
2120
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind
|
|
2121
|
-
> =
|
|
2122
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$inboundSchema;
|
|
2123
|
-
|
|
2124
|
-
/** @internal */
|
|
2125
|
-
export const ListAgentTasksFileAgentsFileInURIFormat$inboundSchema: z.ZodType<
|
|
2126
|
-
ListAgentTasksFileAgentsFileInURIFormat,
|
|
2127
|
-
z.ZodTypeDef,
|
|
2128
|
-
unknown
|
|
2129
|
-
> = z.object({
|
|
2130
|
-
uri: z.string(),
|
|
2131
|
-
mimeType: z.string().optional(),
|
|
2132
|
-
name: z.string().optional(),
|
|
2133
|
-
});
|
|
2134
|
-
/** @internal */
|
|
2135
|
-
export type ListAgentTasksFileAgentsFileInURIFormat$Outbound = {
|
|
2136
|
-
uri: string;
|
|
2137
|
-
mimeType?: string | undefined;
|
|
2138
|
-
name?: string | undefined;
|
|
2139
|
-
};
|
|
2140
|
-
|
|
2141
|
-
/** @internal */
|
|
2142
|
-
export const ListAgentTasksFileAgentsFileInURIFormat$outboundSchema: z.ZodType<
|
|
2143
|
-
ListAgentTasksFileAgentsFileInURIFormat$Outbound,
|
|
2144
|
-
z.ZodTypeDef,
|
|
2145
|
-
ListAgentTasksFileAgentsFileInURIFormat
|
|
2146
|
-
> = z.object({
|
|
2147
|
-
uri: z.string(),
|
|
2148
|
-
mimeType: z.string().optional(),
|
|
2149
|
-
name: z.string().optional(),
|
|
2150
|
-
});
|
|
2151
|
-
|
|
2152
|
-
export function listAgentTasksFileAgentsFileInURIFormatToJSON(
|
|
2153
|
-
listAgentTasksFileAgentsFileInURIFormat:
|
|
2154
|
-
ListAgentTasksFileAgentsFileInURIFormat,
|
|
2155
|
-
): string {
|
|
2156
|
-
return JSON.stringify(
|
|
2157
|
-
ListAgentTasksFileAgentsFileInURIFormat$outboundSchema.parse(
|
|
2158
|
-
listAgentTasksFileAgentsFileInURIFormat,
|
|
2159
|
-
),
|
|
2160
|
-
);
|
|
2161
|
-
}
|
|
2162
|
-
export function listAgentTasksFileAgentsFileInURIFormatFromJSON(
|
|
2163
|
-
jsonString: string,
|
|
2164
|
-
): SafeParseResult<
|
|
2165
|
-
ListAgentTasksFileAgentsFileInURIFormat,
|
|
2166
|
-
SDKValidationError
|
|
2167
|
-
> {
|
|
2168
|
-
return safeParse(
|
|
2169
|
-
jsonString,
|
|
2170
|
-
(x) =>
|
|
2171
|
-
ListAgentTasksFileAgentsFileInURIFormat$inboundSchema.parse(
|
|
2172
|
-
JSON.parse(x),
|
|
2173
|
-
),
|
|
2174
|
-
`Failed to parse 'ListAgentTasksFileAgentsFileInURIFormat' from JSON`,
|
|
2175
|
-
);
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
/** @internal */
|
|
2179
|
-
export const ListAgentTasksFileAgentsBinaryFormat$inboundSchema: z.ZodType<
|
|
2180
|
-
ListAgentTasksFileAgentsBinaryFormat,
|
|
2181
|
-
z.ZodTypeDef,
|
|
2182
|
-
unknown
|
|
2183
|
-
> = z.object({
|
|
2184
|
-
bytes: z.string(),
|
|
2185
|
-
mimeType: z.string().optional(),
|
|
2186
|
-
name: z.string().optional(),
|
|
2187
|
-
});
|
|
2188
|
-
/** @internal */
|
|
2189
|
-
export type ListAgentTasksFileAgentsBinaryFormat$Outbound = {
|
|
2190
|
-
bytes: string;
|
|
2191
|
-
mimeType?: string | undefined;
|
|
2192
|
-
name?: string | undefined;
|
|
2193
|
-
};
|
|
2194
|
-
|
|
2195
|
-
/** @internal */
|
|
2196
|
-
export const ListAgentTasksFileAgentsBinaryFormat$outboundSchema: z.ZodType<
|
|
2197
|
-
ListAgentTasksFileAgentsBinaryFormat$Outbound,
|
|
2198
|
-
z.ZodTypeDef,
|
|
2199
|
-
ListAgentTasksFileAgentsBinaryFormat
|
|
2200
|
-
> = z.object({
|
|
2201
|
-
bytes: z.string(),
|
|
2202
|
-
mimeType: z.string().optional(),
|
|
2203
|
-
name: z.string().optional(),
|
|
2204
|
-
});
|
|
2205
|
-
|
|
2206
|
-
export function listAgentTasksFileAgentsBinaryFormatToJSON(
|
|
2207
|
-
listAgentTasksFileAgentsBinaryFormat: ListAgentTasksFileAgentsBinaryFormat,
|
|
2208
|
-
): string {
|
|
2209
|
-
return JSON.stringify(
|
|
2210
|
-
ListAgentTasksFileAgentsBinaryFormat$outboundSchema.parse(
|
|
2211
|
-
listAgentTasksFileAgentsBinaryFormat,
|
|
2212
|
-
),
|
|
2213
|
-
);
|
|
2214
|
-
}
|
|
2215
|
-
export function listAgentTasksFileAgentsBinaryFormatFromJSON(
|
|
2216
|
-
jsonString: string,
|
|
2217
|
-
): SafeParseResult<ListAgentTasksFileAgentsBinaryFormat, SDKValidationError> {
|
|
2218
|
-
return safeParse(
|
|
2219
|
-
jsonString,
|
|
2220
|
-
(x) =>
|
|
2221
|
-
ListAgentTasksFileAgentsBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
2222
|
-
`Failed to parse 'ListAgentTasksFileAgentsBinaryFormat' from JSON`,
|
|
2223
|
-
);
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
/** @internal */
|
|
2227
|
-
export const ListAgentTasksPartsAgentsFile$inboundSchema: z.ZodType<
|
|
2228
|
-
ListAgentTasksPartsAgentsFile,
|
|
2229
|
-
z.ZodTypeDef,
|
|
2230
|
-
unknown
|
|
2231
|
-
> = z.union([
|
|
2232
|
-
z.lazy(() => ListAgentTasksFileAgentsBinaryFormat$inboundSchema),
|
|
2233
|
-
z.lazy(() => ListAgentTasksFileAgentsFileInURIFormat$inboundSchema),
|
|
2234
|
-
]);
|
|
2235
|
-
/** @internal */
|
|
2236
|
-
export type ListAgentTasksPartsAgentsFile$Outbound =
|
|
2237
|
-
| ListAgentTasksFileAgentsBinaryFormat$Outbound
|
|
2238
|
-
| ListAgentTasksFileAgentsFileInURIFormat$Outbound;
|
|
2239
|
-
|
|
2240
|
-
/** @internal */
|
|
2241
|
-
export const ListAgentTasksPartsAgentsFile$outboundSchema: z.ZodType<
|
|
2242
|
-
ListAgentTasksPartsAgentsFile$Outbound,
|
|
2243
|
-
z.ZodTypeDef,
|
|
2244
|
-
ListAgentTasksPartsAgentsFile
|
|
2245
|
-
> = z.union([
|
|
2246
|
-
z.lazy(() => ListAgentTasksFileAgentsBinaryFormat$outboundSchema),
|
|
2247
|
-
z.lazy(() => ListAgentTasksFileAgentsFileInURIFormat$outboundSchema),
|
|
2248
|
-
]);
|
|
2249
|
-
|
|
2250
|
-
export function listAgentTasksPartsAgentsFileToJSON(
|
|
2251
|
-
listAgentTasksPartsAgentsFile: ListAgentTasksPartsAgentsFile,
|
|
2252
|
-
): string {
|
|
2253
|
-
return JSON.stringify(
|
|
2254
|
-
ListAgentTasksPartsAgentsFile$outboundSchema.parse(
|
|
2255
|
-
listAgentTasksPartsAgentsFile,
|
|
2256
|
-
),
|
|
2257
|
-
);
|
|
2258
|
-
}
|
|
2259
|
-
export function listAgentTasksPartsAgentsFileFromJSON(
|
|
2260
|
-
jsonString: string,
|
|
2261
|
-
): SafeParseResult<ListAgentTasksPartsAgentsFile, SDKValidationError> {
|
|
2262
|
-
return safeParse(
|
|
2263
|
-
jsonString,
|
|
2264
|
-
(x) => ListAgentTasksPartsAgentsFile$inboundSchema.parse(JSON.parse(x)),
|
|
2265
|
-
`Failed to parse 'ListAgentTasksPartsAgentsFile' from JSON`,
|
|
2266
|
-
);
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
/** @internal */
|
|
2270
|
-
export const ListAgentTasksPartsAgentsFilePart$inboundSchema: z.ZodType<
|
|
2271
|
-
ListAgentTasksPartsAgentsFilePart,
|
|
2272
|
-
z.ZodTypeDef,
|
|
2273
|
-
unknown
|
|
2274
|
-
> = z.object({
|
|
2275
|
-
kind:
|
|
2276
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$inboundSchema,
|
|
2277
|
-
file: z.union([
|
|
2278
|
-
z.lazy(() => ListAgentTasksFileAgentsBinaryFormat$inboundSchema),
|
|
2279
|
-
z.lazy(() => ListAgentTasksFileAgentsFileInURIFormat$inboundSchema),
|
|
2280
|
-
]),
|
|
2281
|
-
metadata: z.record(z.any()).optional(),
|
|
2282
|
-
});
|
|
2283
|
-
/** @internal */
|
|
2284
|
-
export type ListAgentTasksPartsAgentsFilePart$Outbound = {
|
|
2285
|
-
kind: string;
|
|
2286
|
-
file:
|
|
2287
|
-
| ListAgentTasksFileAgentsBinaryFormat$Outbound
|
|
2288
|
-
| ListAgentTasksFileAgentsFileInURIFormat$Outbound;
|
|
2289
|
-
metadata?: { [k: string]: any } | undefined;
|
|
2290
|
-
};
|
|
2291
|
-
|
|
2292
|
-
/** @internal */
|
|
2293
|
-
export const ListAgentTasksPartsAgentsFilePart$outboundSchema: z.ZodType<
|
|
2294
|
-
ListAgentTasksPartsAgentsFilePart$Outbound,
|
|
2295
|
-
z.ZodTypeDef,
|
|
2296
|
-
ListAgentTasksPartsAgentsFilePart
|
|
2297
|
-
> = z.object({
|
|
2298
|
-
kind:
|
|
2299
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyTasksKind$outboundSchema,
|
|
2300
|
-
file: z.union([
|
|
2301
|
-
z.lazy(() => ListAgentTasksFileAgentsBinaryFormat$outboundSchema),
|
|
2302
|
-
z.lazy(() => ListAgentTasksFileAgentsFileInURIFormat$outboundSchema),
|
|
2303
|
-
]),
|
|
2304
|
-
metadata: z.record(z.any()).optional(),
|
|
2305
|
-
});
|
|
2306
|
-
|
|
2307
|
-
export function listAgentTasksPartsAgentsFilePartToJSON(
|
|
2308
|
-
listAgentTasksPartsAgentsFilePart: ListAgentTasksPartsAgentsFilePart,
|
|
2309
|
-
): string {
|
|
2310
|
-
return JSON.stringify(
|
|
2311
|
-
ListAgentTasksPartsAgentsFilePart$outboundSchema.parse(
|
|
2312
|
-
listAgentTasksPartsAgentsFilePart,
|
|
2313
|
-
),
|
|
2314
|
-
);
|
|
2315
|
-
}
|
|
2316
|
-
export function listAgentTasksPartsAgentsFilePartFromJSON(
|
|
2317
|
-
jsonString: string,
|
|
2318
|
-
): SafeParseResult<ListAgentTasksPartsAgentsFilePart, SDKValidationError> {
|
|
2319
|
-
return safeParse(
|
|
2320
|
-
jsonString,
|
|
2321
|
-
(x) => ListAgentTasksPartsAgentsFilePart$inboundSchema.parse(JSON.parse(x)),
|
|
2322
|
-
`Failed to parse 'ListAgentTasksPartsAgentsFilePart' from JSON`,
|
|
2323
|
-
);
|
|
2324
|
-
}
|
|
2325
|
-
|
|
2326
|
-
/** @internal */
|
|
2327
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema:
|
|
2328
|
-
z.ZodNativeEnum<
|
|
2329
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind
|
|
2330
|
-
> = z.nativeEnum(
|
|
2331
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind,
|
|
2332
|
-
);
|
|
2333
|
-
/** @internal */
|
|
2334
|
-
export const ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$outboundSchema:
|
|
2335
|
-
z.ZodNativeEnum<
|
|
2336
|
-
typeof ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind
|
|
2337
|
-
> =
|
|
2338
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema;
|
|
2339
|
-
|
|
2340
|
-
/** @internal */
|
|
2341
|
-
export const ListAgentTasksPartsAgentsTextPart$inboundSchema: z.ZodType<
|
|
2342
|
-
ListAgentTasksPartsAgentsTextPart,
|
|
2343
|
-
z.ZodTypeDef,
|
|
2344
|
-
unknown
|
|
2345
|
-
> = z.object({
|
|
2346
|
-
kind:
|
|
2347
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$inboundSchema,
|
|
2348
|
-
text: z.string(),
|
|
2349
|
-
});
|
|
2350
|
-
/** @internal */
|
|
2351
|
-
export type ListAgentTasksPartsAgentsTextPart$Outbound = {
|
|
2352
|
-
kind: string;
|
|
2353
|
-
text: string;
|
|
2354
|
-
};
|
|
2355
|
-
|
|
2356
|
-
/** @internal */
|
|
2357
|
-
export const ListAgentTasksPartsAgentsTextPart$outboundSchema: z.ZodType<
|
|
2358
|
-
ListAgentTasksPartsAgentsTextPart$Outbound,
|
|
2359
|
-
z.ZodTypeDef,
|
|
2360
|
-
ListAgentTasksPartsAgentsTextPart
|
|
2361
|
-
> = z.object({
|
|
2362
|
-
kind:
|
|
2363
|
-
ListAgentTasksPartsAgentsResponse200ApplicationJSONResponseBodyKind$outboundSchema,
|
|
2364
|
-
text: z.string(),
|
|
2365
|
-
});
|
|
2366
|
-
|
|
2367
|
-
export function listAgentTasksPartsAgentsTextPartToJSON(
|
|
2368
|
-
listAgentTasksPartsAgentsTextPart: ListAgentTasksPartsAgentsTextPart,
|
|
2369
|
-
): string {
|
|
2370
|
-
return JSON.stringify(
|
|
2371
|
-
ListAgentTasksPartsAgentsTextPart$outboundSchema.parse(
|
|
2372
|
-
listAgentTasksPartsAgentsTextPart,
|
|
2373
|
-
),
|
|
2374
|
-
);
|
|
2375
|
-
}
|
|
2376
|
-
export function listAgentTasksPartsAgentsTextPartFromJSON(
|
|
2377
|
-
jsonString: string,
|
|
2378
|
-
): SafeParseResult<ListAgentTasksPartsAgentsTextPart, SDKValidationError> {
|
|
2379
|
-
return safeParse(
|
|
2380
|
-
jsonString,
|
|
2381
|
-
(x) => ListAgentTasksPartsAgentsTextPart$inboundSchema.parse(JSON.parse(x)),
|
|
2382
|
-
`Failed to parse 'ListAgentTasksPartsAgentsTextPart' from JSON`,
|
|
2383
|
-
);
|
|
2384
|
-
}
|
|
2385
|
-
|
|
2386
|
-
/** @internal */
|
|
2387
|
-
export const ListAgentTasksAgentsParts$inboundSchema: z.ZodType<
|
|
2388
|
-
ListAgentTasksAgentsParts,
|
|
2389
|
-
z.ZodTypeDef,
|
|
2390
|
-
unknown
|
|
2391
|
-
> = z.union([
|
|
2392
|
-
z.lazy(() => ListAgentTasksPartsAgentsTextPart$inboundSchema),
|
|
2393
|
-
z.lazy(() => ListAgentTasksPartsAgentsFilePart$inboundSchema),
|
|
2394
|
-
z.lazy(() => ListAgentTasksPartsDataPart$inboundSchema),
|
|
2395
|
-
]);
|
|
2396
|
-
/** @internal */
|
|
2397
|
-
export type ListAgentTasksAgentsParts$Outbound =
|
|
2398
|
-
| ListAgentTasksPartsAgentsTextPart$Outbound
|
|
2399
|
-
| ListAgentTasksPartsAgentsFilePart$Outbound
|
|
2400
|
-
| ListAgentTasksPartsDataPart$Outbound;
|
|
2401
|
-
|
|
2402
|
-
/** @internal */
|
|
2403
|
-
export const ListAgentTasksAgentsParts$outboundSchema: z.ZodType<
|
|
2404
|
-
ListAgentTasksAgentsParts$Outbound,
|
|
2405
|
-
z.ZodTypeDef,
|
|
2406
|
-
ListAgentTasksAgentsParts
|
|
2407
|
-
> = z.union([
|
|
2408
|
-
z.lazy(() => ListAgentTasksPartsAgentsTextPart$outboundSchema),
|
|
2409
|
-
z.lazy(() => ListAgentTasksPartsAgentsFilePart$outboundSchema),
|
|
2410
|
-
z.lazy(() => ListAgentTasksPartsDataPart$outboundSchema),
|
|
2411
|
-
]);
|
|
2412
|
-
|
|
2413
|
-
export function listAgentTasksAgentsPartsToJSON(
|
|
2414
|
-
listAgentTasksAgentsParts: ListAgentTasksAgentsParts,
|
|
2415
|
-
): string {
|
|
2416
|
-
return JSON.stringify(
|
|
2417
|
-
ListAgentTasksAgentsParts$outboundSchema.parse(listAgentTasksAgentsParts),
|
|
2418
|
-
);
|
|
2419
|
-
}
|
|
2420
|
-
export function listAgentTasksAgentsPartsFromJSON(
|
|
2421
|
-
jsonString: string,
|
|
2422
|
-
): SafeParseResult<ListAgentTasksAgentsParts, SDKValidationError> {
|
|
2423
|
-
return safeParse(
|
|
2424
|
-
jsonString,
|
|
2425
|
-
(x) => ListAgentTasksAgentsParts$inboundSchema.parse(JSON.parse(x)),
|
|
2426
|
-
`Failed to parse 'ListAgentTasksAgentsParts' from JSON`,
|
|
2427
|
-
);
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
/** @internal */
|
|
2431
|
-
export const ListAgentTasksTaskArtifact$inboundSchema: z.ZodType<
|
|
2432
|
-
ListAgentTasksTaskArtifact,
|
|
2433
|
-
z.ZodTypeDef,
|
|
2434
|
-
unknown
|
|
2435
|
-
> = z.object({
|
|
2436
|
-
artifactId: z.string(),
|
|
2437
|
-
name: z.string(),
|
|
2438
|
-
description: z.string().optional(),
|
|
2439
|
-
parts: z.array(
|
|
2440
|
-
z.union([
|
|
2441
|
-
z.lazy(() => ListAgentTasksPartsAgentsTextPart$inboundSchema),
|
|
2442
|
-
z.lazy(() => ListAgentTasksPartsAgentsFilePart$inboundSchema),
|
|
2443
|
-
z.lazy(() => ListAgentTasksPartsDataPart$inboundSchema),
|
|
2444
|
-
]),
|
|
2445
|
-
),
|
|
2446
|
-
extensions: z.array(z.string()).optional(),
|
|
2447
|
-
metadata: z.record(z.any()).optional(),
|
|
2448
|
-
});
|
|
2449
|
-
/** @internal */
|
|
2450
|
-
export type ListAgentTasksTaskArtifact$Outbound = {
|
|
2451
|
-
artifactId: string;
|
|
2452
|
-
name: string;
|
|
2453
|
-
description?: string | undefined;
|
|
2454
|
-
parts: Array<
|
|
2455
|
-
| ListAgentTasksPartsAgentsTextPart$Outbound
|
|
2456
|
-
| ListAgentTasksPartsAgentsFilePart$Outbound
|
|
2457
|
-
| ListAgentTasksPartsDataPart$Outbound
|
|
2458
|
-
>;
|
|
2459
|
-
extensions?: Array<string> | undefined;
|
|
2460
|
-
metadata?: { [k: string]: any } | undefined;
|
|
2461
|
-
};
|
|
2462
|
-
|
|
2463
|
-
/** @internal */
|
|
2464
|
-
export const ListAgentTasksTaskArtifact$outboundSchema: z.ZodType<
|
|
2465
|
-
ListAgentTasksTaskArtifact$Outbound,
|
|
2466
|
-
z.ZodTypeDef,
|
|
2467
|
-
ListAgentTasksTaskArtifact
|
|
2468
|
-
> = z.object({
|
|
2469
|
-
artifactId: z.string(),
|
|
2470
|
-
name: z.string(),
|
|
2471
|
-
description: z.string().optional(),
|
|
2472
|
-
parts: z.array(
|
|
2473
|
-
z.union([
|
|
2474
|
-
z.lazy(() => ListAgentTasksPartsAgentsTextPart$outboundSchema),
|
|
2475
|
-
z.lazy(() => ListAgentTasksPartsAgentsFilePart$outboundSchema),
|
|
2476
|
-
z.lazy(() => ListAgentTasksPartsDataPart$outboundSchema),
|
|
2477
|
-
]),
|
|
2478
|
-
),
|
|
2479
|
-
extensions: z.array(z.string()).optional(),
|
|
2480
|
-
metadata: z.record(z.any()).optional(),
|
|
2481
|
-
});
|
|
2482
|
-
|
|
2483
|
-
export function listAgentTasksTaskArtifactToJSON(
|
|
2484
|
-
listAgentTasksTaskArtifact: ListAgentTasksTaskArtifact,
|
|
2485
|
-
): string {
|
|
2486
|
-
return JSON.stringify(
|
|
2487
|
-
ListAgentTasksTaskArtifact$outboundSchema.parse(listAgentTasksTaskArtifact),
|
|
2488
|
-
);
|
|
2489
|
-
}
|
|
2490
|
-
export function listAgentTasksTaskArtifactFromJSON(
|
|
2491
|
-
jsonString: string,
|
|
2492
|
-
): SafeParseResult<ListAgentTasksTaskArtifact, SDKValidationError> {
|
|
2493
|
-
return safeParse(
|
|
2494
|
-
jsonString,
|
|
2495
|
-
(x) => ListAgentTasksTaskArtifact$inboundSchema.parse(JSON.parse(x)),
|
|
2496
|
-
`Failed to parse 'ListAgentTasksTaskArtifact' from JSON`,
|
|
2497
|
-
);
|
|
2498
|
-
}
|
|
2499
|
-
|
|
2500
|
-
/** @internal */
|
|
2501
|
-
export const ExtendedTaskResponse$inboundSchema: z.ZodType<
|
|
2502
|
-
ExtendedTaskResponse,
|
|
2503
|
-
z.ZodTypeDef,
|
|
2504
|
-
unknown
|
|
2505
|
-
> = z.object({
|
|
2506
|
-
id: z.string(),
|
|
2507
|
-
contextId: z.string(),
|
|
2508
|
-
kind: ListAgentTasksKind$inboundSchema,
|
|
2509
|
-
status: z.lazy(() => ListAgentTasksTaskStatus$inboundSchema),
|
|
2510
|
-
history: z.array(
|
|
2511
|
-
z.lazy(() => ListAgentTasksExtendedA2AMessage$inboundSchema),
|
|
2512
|
-
),
|
|
2513
|
-
artifacts: z.array(z.lazy(() => ListAgentTasksTaskArtifact$inboundSchema))
|
|
2514
|
-
.optional(),
|
|
2515
|
-
metadata: z.record(z.any()).optional(),
|
|
2516
|
-
});
|
|
2517
|
-
/** @internal */
|
|
2518
|
-
export type ExtendedTaskResponse$Outbound = {
|
|
2519
|
-
id: string;
|
|
2520
|
-
contextId: string;
|
|
2521
|
-
kind: string;
|
|
2522
|
-
status: ListAgentTasksTaskStatus$Outbound;
|
|
2523
|
-
history: Array<ListAgentTasksExtendedA2AMessage$Outbound>;
|
|
2524
|
-
artifacts?: Array<ListAgentTasksTaskArtifact$Outbound> | undefined;
|
|
2525
|
-
metadata?: { [k: string]: any } | undefined;
|
|
2526
|
-
};
|
|
2527
|
-
|
|
2528
|
-
/** @internal */
|
|
2529
|
-
export const ExtendedTaskResponse$outboundSchema: z.ZodType<
|
|
2530
|
-
ExtendedTaskResponse$Outbound,
|
|
2531
|
-
z.ZodTypeDef,
|
|
2532
|
-
ExtendedTaskResponse
|
|
2533
|
-
> = z.object({
|
|
2534
|
-
id: z.string(),
|
|
2535
|
-
contextId: z.string(),
|
|
2536
|
-
kind: ListAgentTasksKind$outboundSchema,
|
|
2537
|
-
status: z.lazy(() => ListAgentTasksTaskStatus$outboundSchema),
|
|
2538
|
-
history: z.array(
|
|
2539
|
-
z.lazy(() => ListAgentTasksExtendedA2AMessage$outboundSchema),
|
|
2540
|
-
),
|
|
2541
|
-
artifacts: z.array(z.lazy(() => ListAgentTasksTaskArtifact$outboundSchema))
|
|
2542
|
-
.optional(),
|
|
2543
|
-
metadata: z.record(z.any()).optional(),
|
|
2544
|
-
});
|
|
2545
|
-
|
|
2546
|
-
export function extendedTaskResponseToJSON(
|
|
2547
|
-
extendedTaskResponse: ExtendedTaskResponse,
|
|
2548
|
-
): string {
|
|
2549
|
-
return JSON.stringify(
|
|
2550
|
-
ExtendedTaskResponse$outboundSchema.parse(extendedTaskResponse),
|
|
2551
|
-
);
|
|
2552
|
-
}
|
|
2553
|
-
export function extendedTaskResponseFromJSON(
|
|
2554
|
-
jsonString: string,
|
|
2555
|
-
): SafeParseResult<ExtendedTaskResponse, SDKValidationError> {
|
|
2556
|
-
return safeParse(
|
|
2557
|
-
jsonString,
|
|
2558
|
-
(x) => ExtendedTaskResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2559
|
-
`Failed to parse 'ExtendedTaskResponse' from JSON`,
|
|
2560
|
-
);
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
/** @internal */
|
|
2564
|
-
export const ListAgentTasksAgentTasksListResponse$inboundSchema: z.ZodType<
|
|
2565
|
-
ListAgentTasksAgentTasksListResponse,
|
|
2566
|
-
z.ZodTypeDef,
|
|
2567
|
-
unknown
|
|
2568
|
-
> = z.object({
|
|
2569
|
-
tasks: z.array(z.lazy(() => ExtendedTaskResponse$inboundSchema)),
|
|
2570
|
-
overall_total: z.number(),
|
|
2571
|
-
}).transform((v) => {
|
|
2572
|
-
return remap$(v, {
|
|
2573
|
-
"overall_total": "overallTotal",
|
|
2574
|
-
});
|
|
2575
|
-
});
|
|
2576
|
-
/** @internal */
|
|
2577
|
-
export type ListAgentTasksAgentTasksListResponse$Outbound = {
|
|
2578
|
-
tasks: Array<ExtendedTaskResponse$Outbound>;
|
|
2579
|
-
overall_total: number;
|
|
2580
|
-
};
|
|
2581
|
-
|
|
2582
|
-
/** @internal */
|
|
2583
|
-
export const ListAgentTasksAgentTasksListResponse$outboundSchema: z.ZodType<
|
|
2584
|
-
ListAgentTasksAgentTasksListResponse$Outbound,
|
|
2585
|
-
z.ZodTypeDef,
|
|
2586
|
-
ListAgentTasksAgentTasksListResponse
|
|
2587
|
-
> = z.object({
|
|
2588
|
-
tasks: z.array(z.lazy(() => ExtendedTaskResponse$outboundSchema)),
|
|
2589
|
-
overallTotal: z.number(),
|
|
2590
|
-
}).transform((v) => {
|
|
2591
|
-
return remap$(v, {
|
|
2592
|
-
overallTotal: "overall_total",
|
|
2593
|
-
});
|
|
2594
|
-
});
|
|
2595
|
-
|
|
2596
|
-
export function listAgentTasksAgentTasksListResponseToJSON(
|
|
2597
|
-
listAgentTasksAgentTasksListResponse: ListAgentTasksAgentTasksListResponse,
|
|
2598
|
-
): string {
|
|
2599
|
-
return JSON.stringify(
|
|
2600
|
-
ListAgentTasksAgentTasksListResponse$outboundSchema.parse(
|
|
2601
|
-
listAgentTasksAgentTasksListResponse,
|
|
2602
|
-
),
|
|
2603
|
-
);
|
|
2604
|
-
}
|
|
2605
|
-
export function listAgentTasksAgentTasksListResponseFromJSON(
|
|
2606
|
-
jsonString: string,
|
|
2607
|
-
): SafeParseResult<ListAgentTasksAgentTasksListResponse, SDKValidationError> {
|
|
2608
|
-
return safeParse(
|
|
2609
|
-
jsonString,
|
|
2610
|
-
(x) =>
|
|
2611
|
-
ListAgentTasksAgentTasksListResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2612
|
-
`Failed to parse 'ListAgentTasksAgentTasksListResponse' from JSON`,
|
|
2613
|
-
);
|
|
2614
|
-
}
|