@dexto/server 1.6.20 → 1.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/jsonrpc/methods.cjs +1 -1
- package/dist/a2a/jsonrpc/methods.d.ts +14 -4
- package/dist/a2a/jsonrpc/methods.d.ts.map +1 -1
- package/dist/a2a/jsonrpc/methods.js +1 -1
- package/dist/approval/wire-approval-events.cjs +44 -0
- package/dist/approval/wire-approval-events.d.ts +4 -0
- package/dist/approval/wire-approval-events.d.ts.map +1 -0
- package/dist/approval/wire-approval-events.js +20 -0
- package/dist/events/session-sse-subscriber.cjs +167 -0
- package/dist/events/session-sse-subscriber.d.ts +13 -0
- package/dist/events/session-sse-subscriber.d.ts.map +1 -0
- package/dist/events/session-sse-subscriber.js +143 -0
- package/dist/hono/__tests__/test-fixtures.cjs +8 -0
- package/dist/hono/__tests__/test-fixtures.d.ts +1 -0
- package/dist/hono/__tests__/test-fixtures.d.ts.map +1 -1
- package/dist/hono/__tests__/test-fixtures.js +8 -0
- package/dist/hono/index.cjs +40 -8
- package/dist/hono/index.d.ts +45 -4531
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/index.js +43 -9
- package/dist/hono/node/index.cjs +51 -6
- package/dist/hono/node/index.d.ts.map +1 -1
- package/dist/hono/node/index.js +51 -6
- package/dist/hono/routes/a2a-jsonrpc.d.ts.map +1 -1
- package/dist/hono/routes/a2a-tasks.cjs +158 -32
- package/dist/hono/routes/a2a-tasks.d.ts +1 -502
- package/dist/hono/routes/a2a-tasks.d.ts.map +1 -1
- package/dist/hono/routes/a2a-tasks.js +162 -32
- package/dist/hono/routes/a2a.d.ts.map +1 -1
- package/dist/hono/routes/agents.cjs +410 -329
- package/dist/hono/routes/agents.d.ts +16043 -68
- package/dist/hono/routes/agents.d.ts.map +1 -1
- package/dist/hono/routes/agents.js +418 -330
- package/dist/hono/routes/approvals.cjs +102 -88
- package/dist/hono/routes/approvals.d.ts +2089 -142
- package/dist/hono/routes/approvals.d.ts.map +1 -1
- package/dist/hono/routes/approvals.js +108 -89
- package/dist/hono/routes/dexto-auth.cjs +40 -33
- package/dist/hono/routes/dexto-auth.d.ts +401 -2
- package/dist/hono/routes/dexto-auth.d.ts.map +1 -1
- package/dist/hono/routes/dexto-auth.js +40 -33
- package/dist/hono/routes/discovery.cjs +16 -14
- package/dist/hono/routes/discovery.d.ts +586 -1
- package/dist/hono/routes/discovery.d.ts.map +1 -1
- package/dist/hono/routes/discovery.js +16 -14
- package/dist/hono/routes/greeting.cjs +26 -22
- package/dist/hono/routes/greeting.d.ts +787 -3
- package/dist/hono/routes/greeting.d.ts.map +1 -1
- package/dist/hono/routes/greeting.js +26 -22
- package/dist/hono/routes/health.d.ts +1 -1
- package/dist/hono/routes/key.cjs +60 -52
- package/dist/hono/routes/key.d.ts +1597 -1
- package/dist/hono/routes/key.d.ts.map +1 -1
- package/dist/hono/routes/key.js +60 -52
- package/dist/hono/routes/llm.cjs +382 -349
- package/dist/hono/routes/llm.d.ts +12148 -98
- package/dist/hono/routes/llm.d.ts.map +1 -1
- package/dist/hono/routes/llm.js +386 -349
- package/dist/hono/routes/mcp.cjs +257 -226
- package/dist/hono/routes/mcp.d.ts +6605 -309
- package/dist/hono/routes/mcp.d.ts.map +1 -1
- package/dist/hono/routes/mcp.js +263 -225
- package/dist/hono/routes/memory.cjs +102 -89
- package/dist/hono/routes/memory.d.ts +5368 -4
- package/dist/hono/routes/memory.d.ts.map +1 -1
- package/dist/hono/routes/memory.js +108 -90
- package/dist/hono/routes/messages.cjs +189 -191
- package/dist/hono/routes/messages.d.ts +3900 -12
- package/dist/hono/routes/messages.d.ts.map +1 -1
- package/dist/hono/routes/messages.js +192 -191
- package/dist/hono/routes/models.cjs +106 -64
- package/dist/hono/routes/models.d.ts +2875 -2
- package/dist/hono/routes/models.d.ts.map +1 -1
- package/dist/hono/routes/models.js +108 -64
- package/dist/hono/routes/openrouter.cjs +79 -65
- package/dist/hono/routes/openrouter.d.ts +854 -1
- package/dist/hono/routes/openrouter.d.ts.map +1 -1
- package/dist/hono/routes/openrouter.js +79 -65
- package/dist/hono/routes/prompts.cjs +136 -109
- package/dist/hono/routes/prompts.d.ts +2818 -10
- package/dist/hono/routes/prompts.d.ts.map +1 -1
- package/dist/hono/routes/prompts.js +138 -109
- package/dist/hono/routes/queue.cjs +133 -120
- package/dist/hono/routes/queue.d.ts +5240 -11
- package/dist/hono/routes/queue.d.ts.map +1 -1
- package/dist/hono/routes/queue.js +136 -120
- package/dist/hono/routes/resources.cjs +65 -46
- package/dist/hono/routes/resources.d.ts +1983 -5
- package/dist/hono/routes/resources.d.ts.map +1 -1
- package/dist/hono/routes/resources.js +72 -47
- package/dist/hono/routes/schedules.cjs +233 -226
- package/dist/hono/routes/schedules.d.ts +4198 -22
- package/dist/hono/routes/schedules.d.ts.map +1 -1
- package/dist/hono/routes/schedules.js +233 -226
- package/dist/hono/routes/search.cjs +34 -30
- package/dist/hono/routes/search.d.ts +3094 -17
- package/dist/hono/routes/search.d.ts.map +1 -1
- package/dist/hono/routes/search.js +40 -31
- package/dist/hono/routes/sessions.cjs +491 -393
- package/dist/hono/routes/sessions.d.ts +18263 -65
- package/dist/hono/routes/sessions.d.ts.map +1 -1
- package/dist/hono/routes/sessions.js +497 -395
- package/dist/hono/routes/static.d.ts.map +1 -1
- package/dist/hono/routes/system-prompt.cjs +57 -61
- package/dist/hono/routes/system-prompt.d.ts +1228 -2
- package/dist/hono/routes/system-prompt.d.ts.map +1 -1
- package/dist/hono/routes/system-prompt.js +58 -62
- package/dist/hono/routes/tools.cjs +29 -34
- package/dist/hono/routes/tools.d.ts +1755 -6
- package/dist/hono/routes/tools.d.ts.map +1 -1
- package/dist/hono/routes/tools.js +33 -33
- package/dist/hono/routes/webhooks.cjs +115 -123
- package/dist/hono/routes/webhooks.d.ts +2501 -11
- package/dist/hono/routes/webhooks.d.ts.map +1 -1
- package/dist/hono/routes/webhooks.js +120 -124
- package/dist/hono/routes/workspaces.cjs +84 -79
- package/dist/hono/routes/workspaces.d.ts +2093 -2
- package/dist/hono/routes/workspaces.d.ts.map +1 -1
- package/dist/hono/routes/workspaces.js +89 -80
- package/dist/hono/schemas/responses.cjs +463 -260
- package/dist/hono/schemas/responses.d.ts +1893 -209
- package/dist/hono/schemas/responses.d.ts.map +1 -1
- package/dist/hono/schemas/responses.js +203 -14
- package/dist/hono/start-server.cjs +9 -0
- package/dist/hono/start-server.d.ts.map +1 -1
- package/dist/hono/start-server.js +9 -0
- package/dist/hono/types.d.ts +11 -0
- package/dist/hono/types.d.ts.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/package.json +7 -7
|
@@ -21,16 +21,23 @@ __export(responses_exports, {
|
|
|
21
21
|
AgentCardSchema: () => import_core4.AgentCardSchema,
|
|
22
22
|
AgentRegistryEntrySchema: () => AgentRegistryEntrySchema,
|
|
23
23
|
ApiErrorResponseSchema: () => ApiErrorResponseSchema,
|
|
24
|
+
BadRequestErrorResponse: () => BadRequestErrorResponse,
|
|
24
25
|
CatalogModelInfoSchema: () => CatalogModelInfoSchema,
|
|
26
|
+
ConflictErrorResponse: () => ConflictErrorResponse,
|
|
25
27
|
ContentPartSchema: () => ContentPartSchema,
|
|
26
28
|
DeleteResponseSchema: () => DeleteResponseSchema,
|
|
27
29
|
ErrorResponseSchema: () => ErrorResponseSchema,
|
|
28
30
|
ExecutionLogSchema: () => ExecutionLogSchema,
|
|
29
31
|
FilePartSchema: () => FilePartSchema,
|
|
32
|
+
ForbiddenErrorResponse: () => ForbiddenErrorResponse,
|
|
30
33
|
HttpServerConfigSchema: () => import_core5.HttpServerConfigSchema,
|
|
31
34
|
ImagePartSchema: () => ImagePartSchema,
|
|
35
|
+
InternalErrorResponse: () => InternalErrorResponse,
|
|
32
36
|
InternalMessageSchema: () => InternalMessageSchema,
|
|
33
37
|
IssueSchema: () => IssueSchema,
|
|
38
|
+
JsonObjectSchema: () => JsonObjectSchema,
|
|
39
|
+
JsonSchemaPropertySchema: () => JsonSchemaPropertySchema,
|
|
40
|
+
JsonValueSchema: () => JsonValueSchema,
|
|
34
41
|
LLMConfigBaseSchema: () => import_core3.LLMConfigBaseSchema,
|
|
35
42
|
LLMConfigResponseSchema: () => LLMConfigResponseSchema,
|
|
36
43
|
LLMConfigSchema: () => LLMConfigSchema,
|
|
@@ -39,7 +46,9 @@ __export(responses_exports, {
|
|
|
39
46
|
MessageSearchResponseSchema: () => MessageSearchResponseSchema,
|
|
40
47
|
ModelFlatSchema: () => ModelFlatSchema,
|
|
41
48
|
ModelStatisticsSchema: () => ModelStatisticsSchema,
|
|
49
|
+
NotFoundErrorResponse: () => NotFoundErrorResponse,
|
|
42
50
|
OkResponseSchema: () => OkResponseSchema,
|
|
51
|
+
PaymentRequiredErrorResponse: () => PaymentRequiredErrorResponse,
|
|
43
52
|
PermissionsConfigSchema: () => import_core6.PermissionsConfigSchema,
|
|
44
53
|
PricingStatusSchema: () => PricingStatusSchema,
|
|
45
54
|
PromptArgumentSchema: () => PromptArgumentSchema,
|
|
@@ -47,9 +56,11 @@ __export(responses_exports, {
|
|
|
47
56
|
PromptInfoSchema: () => PromptInfoSchema,
|
|
48
57
|
PromptSchema: () => PromptSchema,
|
|
49
58
|
ProviderCatalogSchema: () => ProviderCatalogSchema,
|
|
59
|
+
RateLimitErrorResponse: () => RateLimitErrorResponse,
|
|
50
60
|
RequestContentPartSchema: () => RequestContentPartSchema,
|
|
51
61
|
RequestContentSchema: () => RequestContentSchema,
|
|
52
62
|
ResourceConfigSchema: () => import_core7.ResourceConfigSchema,
|
|
63
|
+
ResourcePartSchema: () => ResourcePartSchema,
|
|
53
64
|
ResourceSchema: () => ResourceSchema,
|
|
54
65
|
ScheduleSchema: () => ScheduleSchema,
|
|
55
66
|
ScheduleTaskSchema: () => ScheduleTaskSchema,
|
|
@@ -65,18 +76,22 @@ __export(responses_exports, {
|
|
|
65
76
|
StatusResponseSchema: () => StatusResponseSchema,
|
|
66
77
|
StdioServerConfigSchema: () => import_core5.StdioServerConfigSchema,
|
|
67
78
|
TextPartSchema: () => TextPartSchema,
|
|
79
|
+
TimeoutErrorResponse: () => TimeoutErrorResponse,
|
|
68
80
|
TokenUsageSchema: () => TokenUsageSchema,
|
|
69
81
|
ToolCallSchema: () => ToolCallSchema,
|
|
82
|
+
ToolInputSchema: () => ToolInputSchema,
|
|
70
83
|
ToolSchema: () => ToolSchema,
|
|
71
84
|
UIResourcePartSchema: () => UIResourcePartSchema,
|
|
85
|
+
UpstreamErrorResponse: () => UpstreamErrorResponse,
|
|
72
86
|
UsageSummarySchema: () => UsageSummarySchema,
|
|
73
87
|
WebhookSchema: () => WebhookSchema,
|
|
74
88
|
WorkspaceSchema: () => WorkspaceSchema,
|
|
75
89
|
toApiContentPart: () => toApiContentPart,
|
|
90
|
+
toApiInternalMessage: () => toApiInternalMessage,
|
|
76
91
|
toContentInput: () => toContentInput
|
|
77
92
|
});
|
|
78
93
|
module.exports = __toCommonJS(responses_exports);
|
|
79
|
-
var
|
|
94
|
+
var import_zod_openapi = require("@hono/zod-openapi");
|
|
80
95
|
var import_core = require("@dexto/core");
|
|
81
96
|
var import_core2 = require("@dexto/core");
|
|
82
97
|
var import_core3 = require("@dexto/core");
|
|
@@ -84,69 +99,187 @@ var import_core4 = require("@dexto/core");
|
|
|
84
99
|
var import_core5 = require("@dexto/core");
|
|
85
100
|
var import_core6 = require("@dexto/core");
|
|
86
101
|
var import_core7 = require("@dexto/core");
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
102
|
+
const JsonValueOpenApiPlaceholder = {
|
|
103
|
+
type: "object",
|
|
104
|
+
additionalProperties: true,
|
|
105
|
+
description: "Any JSON-serializable value"
|
|
106
|
+
};
|
|
107
|
+
const JsonValueSchema = import_zod_openapi.z.lazy(
|
|
108
|
+
() => import_zod_openapi.z.union([
|
|
109
|
+
import_zod_openapi.z.string(),
|
|
110
|
+
import_zod_openapi.z.number(),
|
|
111
|
+
import_zod_openapi.z.boolean(),
|
|
112
|
+
import_zod_openapi.z.null(),
|
|
113
|
+
import_zod_openapi.z.array(JsonValueSchema),
|
|
114
|
+
import_zod_openapi.z.record(import_zod_openapi.z.string(), JsonValueSchema)
|
|
115
|
+
])
|
|
116
|
+
).openapi("JsonValue", JsonValueOpenApiPlaceholder).describe("Any JSON-serializable value");
|
|
117
|
+
const JsonObjectSchema = import_zod_openapi.z.record(import_zod_openapi.z.string(), JsonValueSchema).openapi("JsonObject", {
|
|
118
|
+
type: "object",
|
|
119
|
+
additionalProperties: true
|
|
120
|
+
}).describe("JSON object with arbitrary serializable values");
|
|
121
|
+
const JsonSchemaPrimitiveTypeSchema = import_zod_openapi.z.enum(["string", "number", "integer", "boolean", "object", "array"]).describe("JSON Schema primitive type");
|
|
122
|
+
const JsonSchemaEnumValueSchema = import_zod_openapi.z.union([import_zod_openapi.z.string(), import_zod_openapi.z.number(), import_zod_openapi.z.boolean(), import_zod_openapi.z.null()]).describe("Allowed JSON Schema enum value");
|
|
123
|
+
const JsonSchemaPropertySchema = import_zod_openapi.z.object({
|
|
124
|
+
type: JsonSchemaPrimitiveTypeSchema.optional().describe("Property type"),
|
|
125
|
+
description: import_zod_openapi.z.string().optional().describe("Property description"),
|
|
126
|
+
enum: import_zod_openapi.z.array(JsonSchemaEnumValueSchema).optional().describe("Enum values"),
|
|
127
|
+
default: JsonValueSchema.optional().describe("Default value"),
|
|
128
|
+
format: import_zod_openapi.z.string().optional().describe("JSON Schema format hint")
|
|
129
|
+
}).passthrough().describe("JSON Schema property definition");
|
|
130
|
+
const ToolInputSchema = import_zod_openapi.z.object({
|
|
131
|
+
type: import_zod_openapi.z.literal("object").optional().describe('Schema type, always "object" when present'),
|
|
132
|
+
properties: import_zod_openapi.z.record(import_zod_openapi.z.string(), JsonSchemaPropertySchema).optional().describe("Property definitions"),
|
|
133
|
+
required: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Required property names")
|
|
134
|
+
}).passthrough().describe("JSON Schema for tool input parameters");
|
|
135
|
+
const IssueSchema = import_zod_openapi.z.object({
|
|
136
|
+
code: import_zod_openapi.z.string().describe("Machine-readable issue code"),
|
|
137
|
+
message: import_zod_openapi.z.string().describe("Human-readable issue message"),
|
|
138
|
+
scope: import_zod_openapi.z.string().describe("Domain that produced the issue"),
|
|
139
|
+
type: import_zod_openapi.z.string().describe("Error type used for HTTP status mapping"),
|
|
140
|
+
severity: import_zod_openapi.z.enum(["error", "warning"]).describe("Issue severity"),
|
|
141
|
+
path: import_zod_openapi.z.array(import_zod_openapi.z.union([import_zod_openapi.z.string(), import_zod_openapi.z.number()])).optional().describe("Optional location for the issue"),
|
|
142
|
+
context: JsonValueSchema.optional().describe("Optional structured issue context")
|
|
95
143
|
}).strict().describe("Structured validation or runtime issue");
|
|
96
|
-
const ApiErrorResponseSchema =
|
|
97
|
-
name:
|
|
98
|
-
message:
|
|
99
|
-
code:
|
|
100
|
-
scope:
|
|
101
|
-
type:
|
|
102
|
-
severity:
|
|
103
|
-
endpoint:
|
|
104
|
-
method:
|
|
105
|
-
traceId:
|
|
106
|
-
recovery:
|
|
107
|
-
context:
|
|
108
|
-
issues:
|
|
109
|
-
errorCount:
|
|
110
|
-
warningCount:
|
|
111
|
-
stack:
|
|
144
|
+
const ApiErrorResponseSchema = import_zod_openapi.z.object({
|
|
145
|
+
name: import_zod_openapi.z.string().optional().describe("Optional error class name"),
|
|
146
|
+
message: import_zod_openapi.z.string().describe("Human-readable error message"),
|
|
147
|
+
code: import_zod_openapi.z.string().optional().describe("Machine-readable error code"),
|
|
148
|
+
scope: import_zod_openapi.z.string().optional().describe("Domain that produced the error"),
|
|
149
|
+
type: import_zod_openapi.z.string().optional().describe("Error type used for HTTP status mapping"),
|
|
150
|
+
severity: import_zod_openapi.z.enum(["error", "warning"]).optional().describe("Optional error severity for lightweight failures"),
|
|
151
|
+
endpoint: import_zod_openapi.z.string().describe("Request path that failed"),
|
|
152
|
+
method: import_zod_openapi.z.string().describe("HTTP method for the failed request"),
|
|
153
|
+
traceId: import_zod_openapi.z.string().optional().describe("Optional trace identifier"),
|
|
154
|
+
recovery: import_zod_openapi.z.union([import_zod_openapi.z.string(), import_zod_openapi.z.array(import_zod_openapi.z.string())]).optional().describe("Optional recovery guidance"),
|
|
155
|
+
context: JsonValueSchema.optional().describe("Optional structured error context"),
|
|
156
|
+
issues: import_zod_openapi.z.array(IssueSchema).optional().describe("Validation issues when present"),
|
|
157
|
+
errorCount: import_zod_openapi.z.number().int().nonnegative().optional().describe("Number of errors"),
|
|
158
|
+
warningCount: import_zod_openapi.z.number().int().nonnegative().optional().describe("Number of warnings"),
|
|
159
|
+
stack: import_zod_openapi.z.string().optional().describe("Development-only stack trace")
|
|
112
160
|
}).strict().describe("Standard API error response");
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
161
|
+
const BadRequestErrorResponse = {
|
|
162
|
+
description: "Validation or request error",
|
|
163
|
+
content: {
|
|
164
|
+
"application/json": {
|
|
165
|
+
schema: ApiErrorResponseSchema
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
const PaymentRequiredErrorResponse = {
|
|
170
|
+
description: "Payment required",
|
|
171
|
+
content: {
|
|
172
|
+
"application/json": {
|
|
173
|
+
schema: ApiErrorResponseSchema
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
const ForbiddenErrorResponse = {
|
|
178
|
+
description: "Forbidden",
|
|
179
|
+
content: {
|
|
180
|
+
"application/json": {
|
|
181
|
+
schema: ApiErrorResponseSchema
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
const NotFoundErrorResponse = {
|
|
186
|
+
description: "Resource not found",
|
|
187
|
+
content: {
|
|
188
|
+
"application/json": {
|
|
189
|
+
schema: ApiErrorResponseSchema
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
const TimeoutErrorResponse = {
|
|
194
|
+
description: "Request timed out",
|
|
195
|
+
content: {
|
|
196
|
+
"application/json": {
|
|
197
|
+
schema: ApiErrorResponseSchema
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const ConflictErrorResponse = {
|
|
202
|
+
description: "Conflict",
|
|
203
|
+
content: {
|
|
204
|
+
"application/json": {
|
|
205
|
+
schema: ApiErrorResponseSchema
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const RateLimitErrorResponse = {
|
|
210
|
+
description: "Rate limited",
|
|
211
|
+
content: {
|
|
212
|
+
"application/json": {
|
|
213
|
+
schema: ApiErrorResponseSchema
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
const InternalErrorResponse = {
|
|
218
|
+
description: "Internal server error",
|
|
219
|
+
content: {
|
|
220
|
+
"application/json": {
|
|
221
|
+
schema: ApiErrorResponseSchema
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const UpstreamErrorResponse = {
|
|
226
|
+
description: "Upstream service failure",
|
|
227
|
+
content: {
|
|
228
|
+
"application/json": {
|
|
229
|
+
schema: ApiErrorResponseSchema
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
const TextPartSchema = import_zod_openapi.z.object({
|
|
234
|
+
type: import_zod_openapi.z.literal("text").describe("Part type: text"),
|
|
235
|
+
text: import_zod_openapi.z.string().describe("Text content")
|
|
116
236
|
}).strict().describe("Text content part");
|
|
117
|
-
const ImagePartSchema =
|
|
118
|
-
type:
|
|
119
|
-
image:
|
|
120
|
-
mimeType:
|
|
237
|
+
const ImagePartSchema = import_zod_openapi.z.object({
|
|
238
|
+
type: import_zod_openapi.z.literal("image").describe("Part type: image"),
|
|
239
|
+
image: import_zod_openapi.z.string().describe("Base64-encoded image data"),
|
|
240
|
+
mimeType: import_zod_openapi.z.string().optional().describe("MIME type of the image")
|
|
121
241
|
}).strict().describe("Image content part");
|
|
122
|
-
const FilePartSchema =
|
|
123
|
-
type:
|
|
124
|
-
data:
|
|
125
|
-
mimeType:
|
|
126
|
-
filename:
|
|
242
|
+
const FilePartSchema = import_zod_openapi.z.object({
|
|
243
|
+
type: import_zod_openapi.z.literal("file").describe("Part type: file"),
|
|
244
|
+
data: import_zod_openapi.z.string().describe("Base64-encoded file data"),
|
|
245
|
+
mimeType: import_zod_openapi.z.string().describe("MIME type of the file"),
|
|
246
|
+
filename: import_zod_openapi.z.string().optional().describe("Optional filename")
|
|
127
247
|
}).strict().describe("File content part");
|
|
128
|
-
const
|
|
129
|
-
type:
|
|
130
|
-
uri:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
248
|
+
const ResourcePartSchema = import_zod_openapi.z.object({
|
|
249
|
+
type: import_zod_openapi.z.literal("resource").describe("Part type: resource"),
|
|
250
|
+
uri: import_zod_openapi.z.string().describe("Canonical resource reference"),
|
|
251
|
+
name: import_zod_openapi.z.string().describe("Display name for the resource"),
|
|
252
|
+
mimeType: import_zod_openapi.z.string().describe("MIME type of the resource"),
|
|
253
|
+
kind: import_zod_openapi.z.enum(["text", "image", "audio", "video", "binary"]).describe("Resource kind for rendering and prompt projection"),
|
|
254
|
+
size: import_zod_openapi.z.number().int().nonnegative().optional().describe("Size in bytes"),
|
|
255
|
+
metadata: import_zod_openapi.z.object({
|
|
256
|
+
mtimeMs: import_zod_openapi.z.number().nonnegative().optional().describe("mtime in ms"),
|
|
257
|
+
source: import_zod_openapi.z.enum(["filesystem", "upload", "generated", "tool", "remote"]).optional().describe("How the resource was created")
|
|
258
|
+
}).strict().optional().describe("Optional resource metadata")
|
|
259
|
+
}).strict().describe("Canonical resource reference part");
|
|
260
|
+
const UIResourcePartSchema = import_zod_openapi.z.object({
|
|
261
|
+
type: import_zod_openapi.z.literal("ui-resource").describe("Part type: ui-resource"),
|
|
262
|
+
uri: import_zod_openapi.z.string().describe("URI identifying the UI resource (must start with ui://)"),
|
|
263
|
+
mimeType: import_zod_openapi.z.string().describe("MIME type: text/html, text/uri-list, or application/vnd.mcp-ui.remote-dom"),
|
|
264
|
+
content: import_zod_openapi.z.string().optional().describe("Inline HTML content or URL"),
|
|
265
|
+
blob: import_zod_openapi.z.string().optional().describe("Base64-encoded content (alternative to content)"),
|
|
266
|
+
metadata: import_zod_openapi.z.object({
|
|
267
|
+
title: import_zod_openapi.z.string().optional().describe("Display title for the UI resource"),
|
|
268
|
+
preferredSize: import_zod_openapi.z.object({
|
|
269
|
+
width: import_zod_openapi.z.number().describe("Preferred width in pixels"),
|
|
270
|
+
height: import_zod_openapi.z.number().describe("Preferred height in pixels")
|
|
139
271
|
}).strict().optional().describe("Preferred rendering size")
|
|
140
272
|
}).strict().optional().describe("Optional metadata for the UI resource")
|
|
141
273
|
}).strict().describe("UI Resource content part for MCP-UI interactive components");
|
|
142
|
-
const ContentPartSchema =
|
|
274
|
+
const ContentPartSchema = import_zod_openapi.z.discriminatedUnion("type", [
|
|
143
275
|
TextPartSchema,
|
|
144
276
|
ImagePartSchema,
|
|
145
277
|
FilePartSchema,
|
|
278
|
+
ResourcePartSchema,
|
|
146
279
|
UIResourcePartSchema
|
|
147
|
-
]).describe("Message content part (text, image, file, or UI resource)");
|
|
148
|
-
const RequestContentPartSchema =
|
|
149
|
-
const RequestContentSchema =
|
|
280
|
+
]).describe("Message content part (text, image, file, resource, or UI resource)");
|
|
281
|
+
const RequestContentPartSchema = import_zod_openapi.z.discriminatedUnion("type", [TextPartSchema, ImagePartSchema, FilePartSchema]).describe("Request message content part (text, image, or file)");
|
|
282
|
+
const RequestContentSchema = import_zod_openapi.z.union([import_zod_openapi.z.string(), import_zod_openapi.z.array(RequestContentPartSchema)]).describe("Message content - string for text, or ContentPart[] for multimodal");
|
|
150
283
|
function serializeBinaryValue(value) {
|
|
151
284
|
if (typeof value === "string") {
|
|
152
285
|
return value;
|
|
@@ -159,6 +292,35 @@ function serializeBinaryValue(value) {
|
|
|
159
292
|
}
|
|
160
293
|
return Buffer.from(value).toString("base64");
|
|
161
294
|
}
|
|
295
|
+
function toApiResourceMetadata(metadata) {
|
|
296
|
+
if (!metadata) {
|
|
297
|
+
return void 0;
|
|
298
|
+
}
|
|
299
|
+
const sanitized = {
|
|
300
|
+
...metadata.mtimeMs !== void 0 ? { mtimeMs: metadata.mtimeMs } : {},
|
|
301
|
+
...metadata.source !== void 0 ? { source: metadata.source } : {}
|
|
302
|
+
};
|
|
303
|
+
return Object.keys(sanitized).length > 0 ? sanitized : void 0;
|
|
304
|
+
}
|
|
305
|
+
function toApiInternalMessage(message) {
|
|
306
|
+
return {
|
|
307
|
+
...message.id !== void 0 ? { id: message.id } : {},
|
|
308
|
+
role: message.role,
|
|
309
|
+
...message.timestamp !== void 0 ? { timestamp: message.timestamp } : {},
|
|
310
|
+
content: Array.isArray(message.content) ? message.content.map((part) => toApiContentPart(part)) : message.content,
|
|
311
|
+
..."reasoning" in message && message.reasoning !== void 0 ? { reasoning: message.reasoning } : {},
|
|
312
|
+
..."tokenUsage" in message && message.tokenUsage !== void 0 ? { tokenUsage: message.tokenUsage } : {},
|
|
313
|
+
..."estimatedCost" in message && message.estimatedCost !== void 0 ? { estimatedCost: message.estimatedCost } : {},
|
|
314
|
+
..."pricingStatus" in message && message.pricingStatus !== void 0 ? { pricingStatus: message.pricingStatus } : {},
|
|
315
|
+
..."usageScopeId" in message && message.usageScopeId !== void 0 ? { usageScopeId: message.usageScopeId } : {},
|
|
316
|
+
..."model" in message && message.model !== void 0 ? { model: message.model } : {},
|
|
317
|
+
..."provider" in message && message.provider !== void 0 ? { provider: message.provider } : {},
|
|
318
|
+
..."toolCalls" in message && message.toolCalls !== void 0 ? { toolCalls: message.toolCalls } : {},
|
|
319
|
+
..."toolCallId" in message && message.toolCallId !== void 0 ? { toolCallId: message.toolCallId } : {},
|
|
320
|
+
..."name" in message && message.name !== void 0 ? { name: message.name } : {},
|
|
321
|
+
..."success" in message && message.success !== void 0 ? { success: message.success } : {}
|
|
322
|
+
};
|
|
323
|
+
}
|
|
162
324
|
function toContentInput(rawContent) {
|
|
163
325
|
if (typeof rawContent === "string") {
|
|
164
326
|
return [{ type: "text", text: rawContent }];
|
|
@@ -206,6 +368,16 @@ function toApiContentPart(part) {
|
|
|
206
368
|
mimeType: part.mimeType,
|
|
207
369
|
...part.filename !== void 0 ? { filename: part.filename } : {}
|
|
208
370
|
};
|
|
371
|
+
case "resource":
|
|
372
|
+
return {
|
|
373
|
+
type: "resource",
|
|
374
|
+
uri: part.uri,
|
|
375
|
+
name: part.name,
|
|
376
|
+
mimeType: part.mimeType,
|
|
377
|
+
kind: part.kind,
|
|
378
|
+
...part.size !== void 0 ? { size: part.size } : {},
|
|
379
|
+
...toApiResourceMetadata(part.metadata) !== void 0 ? { metadata: toApiResourceMetadata(part.metadata) } : {}
|
|
380
|
+
};
|
|
209
381
|
case "ui-resource":
|
|
210
382
|
return {
|
|
211
383
|
type: "ui-resource",
|
|
@@ -217,300 +389,323 @@ function toApiContentPart(part) {
|
|
|
217
389
|
};
|
|
218
390
|
}
|
|
219
391
|
}
|
|
220
|
-
const ToolCallSchema =
|
|
221
|
-
id:
|
|
222
|
-
type:
|
|
223
|
-
function:
|
|
224
|
-
name:
|
|
225
|
-
arguments:
|
|
392
|
+
const ToolCallSchema = import_zod_openapi.z.object({
|
|
393
|
+
id: import_zod_openapi.z.string().describe("Unique identifier for this tool call"),
|
|
394
|
+
type: import_zod_openapi.z.literal("function").describe("Tool call type (currently only function is supported)"),
|
|
395
|
+
function: import_zod_openapi.z.object({
|
|
396
|
+
name: import_zod_openapi.z.string().describe("Name of the function to call"),
|
|
397
|
+
arguments: import_zod_openapi.z.string().describe("Arguments for the function in JSON string format")
|
|
226
398
|
}).strict().describe("Function call details")
|
|
227
399
|
}).strict().describe("Tool call made by the assistant");
|
|
228
|
-
const TokenUsageSchema =
|
|
229
|
-
inputTokens:
|
|
230
|
-
outputTokens:
|
|
231
|
-
reasoningTokens:
|
|
232
|
-
cacheReadTokens:
|
|
233
|
-
cacheWriteTokens:
|
|
234
|
-
totalTokens:
|
|
400
|
+
const TokenUsageSchema = import_zod_openapi.z.object({
|
|
401
|
+
inputTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Number of input tokens"),
|
|
402
|
+
outputTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Number of output tokens"),
|
|
403
|
+
reasoningTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Number of reasoning tokens"),
|
|
404
|
+
cacheReadTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Number of cache read tokens"),
|
|
405
|
+
cacheWriteTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Number of cache write tokens"),
|
|
406
|
+
totalTokens: import_zod_openapi.z.number().int().nonnegative().optional().describe("Total tokens used")
|
|
235
407
|
}).strict().describe("Token usage accounting");
|
|
236
|
-
const PricingStatusSchema =
|
|
237
|
-
const InternalMessageSchema =
|
|
238
|
-
id:
|
|
239
|
-
role:
|
|
240
|
-
timestamp:
|
|
241
|
-
content:
|
|
242
|
-
reasoning:
|
|
408
|
+
const PricingStatusSchema = import_zod_openapi.z.enum(import_core.LLM_PRICING_STATUSES).describe("Whether pricing was resolved for this response");
|
|
409
|
+
const InternalMessageSchema = import_zod_openapi.z.object({
|
|
410
|
+
id: import_zod_openapi.z.string().uuid().optional().describe("Unique message identifier (UUID)"),
|
|
411
|
+
role: import_zod_openapi.z.enum(["system", "user", "assistant", "tool"]).describe("Role of the message sender"),
|
|
412
|
+
timestamp: import_zod_openapi.z.number().int().positive().optional().describe("Creation timestamp (Unix ms)"),
|
|
413
|
+
content: import_zod_openapi.z.union([import_zod_openapi.z.string(), import_zod_openapi.z.null(), import_zod_openapi.z.array(ContentPartSchema)]).describe("Message content (string, null, or array of parts)"),
|
|
414
|
+
reasoning: import_zod_openapi.z.string().optional().describe("Optional model reasoning text"),
|
|
243
415
|
tokenUsage: TokenUsageSchema.optional().describe("Optional token usage accounting"),
|
|
244
|
-
estimatedCost:
|
|
416
|
+
estimatedCost: import_zod_openapi.z.number().nonnegative().optional().describe("Estimated cost in USD for this response"),
|
|
245
417
|
pricingStatus: PricingStatusSchema.optional().describe(
|
|
246
418
|
"Whether pricing was resolved for this response"
|
|
247
419
|
),
|
|
248
|
-
usageScopeId:
|
|
249
|
-
model:
|
|
250
|
-
provider:
|
|
251
|
-
toolCalls:
|
|
252
|
-
toolCallId:
|
|
253
|
-
name:
|
|
254
|
-
success:
|
|
420
|
+
usageScopeId: import_zod_openapi.z.string().optional().describe("Optional usage scope identifier for runtime-scoped metering"),
|
|
421
|
+
model: import_zod_openapi.z.string().optional().describe("Model identifier for assistant messages"),
|
|
422
|
+
provider: import_zod_openapi.z.enum(import_core.LLM_PROVIDERS).optional().describe("Provider identifier for assistant messages"),
|
|
423
|
+
toolCalls: import_zod_openapi.z.array(ToolCallSchema).optional().describe("Tool calls made by the assistant"),
|
|
424
|
+
toolCallId: import_zod_openapi.z.string().optional().describe("ID of the tool call this message responds to"),
|
|
425
|
+
name: import_zod_openapi.z.string().optional().describe("Name of the tool that produced this result"),
|
|
426
|
+
success: import_zod_openapi.z.boolean().optional().describe("Whether tool execution succeeded (present for role=tool messages)")
|
|
255
427
|
}).strict().describe("Internal message representation");
|
|
256
428
|
const LLMConfigResponseSchema = import_core.LLMConfigBaseSchema.omit({ apiKey: true }).extend({
|
|
257
|
-
hasApiKey:
|
|
429
|
+
hasApiKey: import_zod_openapi.z.boolean().optional().describe("Whether an API key is configured")
|
|
258
430
|
}).describe("LLM configuration (apiKey omitted for security)");
|
|
259
431
|
const LLMConfigSchema = import_core.LLMConfigBaseSchema.describe("LLM configuration with API key");
|
|
260
432
|
const SessionTokenUsageSchema = TokenUsageSchema.required().describe(
|
|
261
433
|
"Session-level token usage (all fields required for cumulative totals)"
|
|
262
434
|
);
|
|
263
|
-
const SessionUsageTrackingSchema =
|
|
264
|
-
hasUntrackedChatGPTLoginUsage:
|
|
435
|
+
const SessionUsageTrackingSchema = import_zod_openapi.z.object({
|
|
436
|
+
hasUntrackedChatGPTLoginUsage: import_zod_openapi.z.boolean().optional().describe("Whether this session includes known untracked ChatGPT Login usage")
|
|
265
437
|
}).strict().describe("Usage tracking caveats for a session");
|
|
266
|
-
const ModelStatisticsSchema =
|
|
267
|
-
provider:
|
|
268
|
-
model:
|
|
269
|
-
messageCount:
|
|
438
|
+
const ModelStatisticsSchema = import_zod_openapi.z.object({
|
|
439
|
+
provider: import_zod_openapi.z.string().describe("LLM provider identifier"),
|
|
440
|
+
model: import_zod_openapi.z.string().describe("Model identifier"),
|
|
441
|
+
messageCount: import_zod_openapi.z.number().int().nonnegative().describe("Number of messages using this model"),
|
|
270
442
|
tokenUsage: SessionTokenUsageSchema.describe("Token usage for this model"),
|
|
271
|
-
estimatedCost:
|
|
272
|
-
firstUsedAt:
|
|
273
|
-
lastUsedAt:
|
|
443
|
+
estimatedCost: import_zod_openapi.z.number().nonnegative().describe("Estimated cost in USD for this model"),
|
|
444
|
+
firstUsedAt: import_zod_openapi.z.number().int().positive().describe("First use timestamp (Unix ms)"),
|
|
445
|
+
lastUsedAt: import_zod_openapi.z.number().int().positive().describe("Last use timestamp (Unix ms)")
|
|
274
446
|
}).strict().describe("Per-model statistics within a session");
|
|
275
|
-
const UsageSummarySchema =
|
|
447
|
+
const UsageSummarySchema = import_zod_openapi.z.object({
|
|
276
448
|
tokenUsage: SessionTokenUsageSchema.describe(
|
|
277
449
|
"Aggregate token usage for the selected scope"
|
|
278
450
|
),
|
|
279
|
-
estimatedCost:
|
|
280
|
-
hasUnpricedResponses:
|
|
451
|
+
estimatedCost: import_zod_openapi.z.number().nonnegative().describe("Total estimated cost in USD for the selected scope"),
|
|
452
|
+
hasUnpricedResponses: import_zod_openapi.z.boolean().describe(
|
|
281
453
|
"Whether any response in the selected scope has usage but no resolved pricing"
|
|
282
454
|
),
|
|
283
|
-
modelStats:
|
|
284
|
-
|
|
285
|
-
provider:
|
|
286
|
-
model:
|
|
287
|
-
messageCount:
|
|
455
|
+
modelStats: import_zod_openapi.z.array(
|
|
456
|
+
import_zod_openapi.z.object({
|
|
457
|
+
provider: import_zod_openapi.z.string().describe("LLM provider identifier"),
|
|
458
|
+
model: import_zod_openapi.z.string().describe("Model identifier"),
|
|
459
|
+
messageCount: import_zod_openapi.z.number().int().nonnegative().describe("Number of responses using this model in the selected scope"),
|
|
288
460
|
tokenUsage: SessionTokenUsageSchema.describe(
|
|
289
461
|
"Token usage for this model in the selected scope"
|
|
290
462
|
),
|
|
291
|
-
estimatedCost:
|
|
463
|
+
estimatedCost: import_zod_openapi.z.number().nonnegative().describe("Estimated cost in USD for this model in the selected scope")
|
|
292
464
|
}).strict()
|
|
293
465
|
).optional().describe("Per-model usage statistics within the selected scope")
|
|
294
466
|
}).strict().describe("Usage summary for a session or session scope");
|
|
295
467
|
const ScopedUsageSummarySchema = UsageSummarySchema.extend({
|
|
296
|
-
scopeId:
|
|
468
|
+
scopeId: import_zod_openapi.z.string().describe("Usage scope identifier")
|
|
297
469
|
}).strict().describe("Usage summary for a specific scope within a session");
|
|
298
|
-
const SessionMetadataSchema =
|
|
299
|
-
id:
|
|
300
|
-
createdAt:
|
|
301
|
-
lastActivity:
|
|
302
|
-
messageCount:
|
|
303
|
-
title:
|
|
470
|
+
const SessionMetadataSchema = import_zod_openapi.z.object({
|
|
471
|
+
id: import_zod_openapi.z.string().describe("Unique session identifier"),
|
|
472
|
+
createdAt: import_zod_openapi.z.number().int().positive().nullable().describe("Creation timestamp (Unix ms, null if unavailable)"),
|
|
473
|
+
lastActivity: import_zod_openapi.z.number().int().positive().nullable().describe("Last activity timestamp (Unix ms, null if unavailable)"),
|
|
474
|
+
messageCount: import_zod_openapi.z.number().int().nonnegative().describe("Total number of messages in session"),
|
|
475
|
+
title: import_zod_openapi.z.string().optional().nullable().describe("Optional session title"),
|
|
304
476
|
tokenUsage: SessionTokenUsageSchema.optional().describe(
|
|
305
477
|
"Aggregate token usage across all models"
|
|
306
478
|
),
|
|
307
|
-
estimatedCost:
|
|
308
|
-
modelStats:
|
|
479
|
+
estimatedCost: import_zod_openapi.z.number().nonnegative().optional().describe("Total estimated cost in USD across all models"),
|
|
480
|
+
modelStats: import_zod_openapi.z.array(ModelStatisticsSchema).optional().describe("Per-model usage statistics (for multi-model sessions)"),
|
|
309
481
|
usageTracking: SessionUsageTrackingSchema.optional().describe(
|
|
310
482
|
"Known caveats or gaps in usage tracking for this session"
|
|
311
483
|
),
|
|
312
|
-
workspaceId:
|
|
313
|
-
parentSessionId:
|
|
484
|
+
workspaceId: import_zod_openapi.z.string().optional().nullable().describe("Associated workspace ID, if any"),
|
|
485
|
+
parentSessionId: import_zod_openapi.z.string().optional().nullable().describe("Parent session ID if this session was forked, otherwise null")
|
|
314
486
|
}).strict().describe("Session metadata");
|
|
315
|
-
const WorkspaceSchema =
|
|
316
|
-
id:
|
|
317
|
-
path:
|
|
318
|
-
name:
|
|
319
|
-
createdAt:
|
|
320
|
-
lastActiveAt:
|
|
487
|
+
const WorkspaceSchema = import_zod_openapi.z.object({
|
|
488
|
+
id: import_zod_openapi.z.string().describe("Workspace identifier"),
|
|
489
|
+
path: import_zod_openapi.z.string().describe("Workspace root path"),
|
|
490
|
+
name: import_zod_openapi.z.string().optional().nullable().describe("Optional workspace display name"),
|
|
491
|
+
createdAt: import_zod_openapi.z.number().int().positive().describe("Creation timestamp (Unix ms)"),
|
|
492
|
+
lastActiveAt: import_zod_openapi.z.number().int().positive().describe("Last active timestamp (Unix ms)")
|
|
321
493
|
}).strict().describe("Workspace metadata");
|
|
322
|
-
const ScheduleTaskSchema =
|
|
323
|
-
instruction:
|
|
324
|
-
metadata:
|
|
494
|
+
const ScheduleTaskSchema = import_zod_openapi.z.object({
|
|
495
|
+
instruction: import_zod_openapi.z.string().describe("Instruction to execute"),
|
|
496
|
+
metadata: JsonObjectSchema.optional().describe("Optional task metadata")
|
|
325
497
|
}).strict().describe("Schedule task definition");
|
|
326
|
-
const ScheduleSchema =
|
|
327
|
-
id:
|
|
328
|
-
name:
|
|
329
|
-
cronExpression:
|
|
330
|
-
timezone:
|
|
331
|
-
enabled:
|
|
498
|
+
const ScheduleSchema = import_zod_openapi.z.object({
|
|
499
|
+
id: import_zod_openapi.z.string().describe("Schedule ID"),
|
|
500
|
+
name: import_zod_openapi.z.string().describe("Schedule name"),
|
|
501
|
+
cronExpression: import_zod_openapi.z.string().describe("Cron expression"),
|
|
502
|
+
timezone: import_zod_openapi.z.string().describe("Timezone for schedule"),
|
|
503
|
+
enabled: import_zod_openapi.z.boolean().describe("Whether the schedule is enabled"),
|
|
332
504
|
task: ScheduleTaskSchema.describe("Schedule task configuration"),
|
|
333
|
-
sessionMode:
|
|
334
|
-
sessionId:
|
|
335
|
-
workspacePath:
|
|
336
|
-
createdAt:
|
|
337
|
-
updatedAt:
|
|
338
|
-
lastRunAt:
|
|
339
|
-
nextRunAt:
|
|
340
|
-
runCount:
|
|
341
|
-
successCount:
|
|
342
|
-
failureCount:
|
|
343
|
-
lastError:
|
|
505
|
+
sessionMode: import_zod_openapi.z.enum(["ephemeral", "dedicated", "inherit", "fixed"]).describe("Session context mode"),
|
|
506
|
+
sessionId: import_zod_openapi.z.string().optional().describe("Session ID when using fixed/inherit mode"),
|
|
507
|
+
workspacePath: import_zod_openapi.z.string().optional().describe("Workspace path override"),
|
|
508
|
+
createdAt: import_zod_openapi.z.number().int().positive().describe("Creation timestamp (Unix ms)"),
|
|
509
|
+
updatedAt: import_zod_openapi.z.number().int().positive().describe("Last update timestamp (Unix ms)"),
|
|
510
|
+
lastRunAt: import_zod_openapi.z.number().int().positive().optional().describe("Last run timestamp (Unix ms)"),
|
|
511
|
+
nextRunAt: import_zod_openapi.z.number().int().positive().optional().describe("Next run timestamp (Unix ms)"),
|
|
512
|
+
runCount: import_zod_openapi.z.number().int().nonnegative().describe("Total executions"),
|
|
513
|
+
successCount: import_zod_openapi.z.number().int().nonnegative().describe("Successful executions"),
|
|
514
|
+
failureCount: import_zod_openapi.z.number().int().nonnegative().describe("Failed executions"),
|
|
515
|
+
lastError: import_zod_openapi.z.string().optional().describe("Last execution error, if any")
|
|
344
516
|
}).strict().describe("Automation schedule");
|
|
345
|
-
const ExecutionLogSchema =
|
|
346
|
-
id:
|
|
347
|
-
scheduleId:
|
|
348
|
-
triggeredAt:
|
|
349
|
-
completedAt:
|
|
350
|
-
status:
|
|
351
|
-
duration:
|
|
352
|
-
error:
|
|
353
|
-
result:
|
|
517
|
+
const ExecutionLogSchema = import_zod_openapi.z.object({
|
|
518
|
+
id: import_zod_openapi.z.string().describe("Execution log ID"),
|
|
519
|
+
scheduleId: import_zod_openapi.z.string().describe("Schedule ID"),
|
|
520
|
+
triggeredAt: import_zod_openapi.z.number().int().positive().describe("Trigger timestamp (Unix ms)"),
|
|
521
|
+
completedAt: import_zod_openapi.z.number().int().positive().optional().describe("Completion timestamp (Unix ms)"),
|
|
522
|
+
status: import_zod_openapi.z.enum(["pending", "success", "failed", "timeout"]).describe("Execution status"),
|
|
523
|
+
duration: import_zod_openapi.z.number().int().nonnegative().optional().describe("Execution duration in ms"),
|
|
524
|
+
error: import_zod_openapi.z.string().optional().describe("Execution error, if any"),
|
|
525
|
+
result: import_zod_openapi.z.string().optional().describe("Execution result, if any")
|
|
354
526
|
}).strict().describe("Schedule execution log");
|
|
355
|
-
const SearchResultSchema =
|
|
356
|
-
sessionId:
|
|
527
|
+
const SearchResultSchema = import_zod_openapi.z.object({
|
|
528
|
+
sessionId: import_zod_openapi.z.string().describe("Session ID where the message was found"),
|
|
357
529
|
message: InternalMessageSchema.describe("The message that matched the search"),
|
|
358
|
-
matchedText:
|
|
359
|
-
context:
|
|
360
|
-
messageIndex:
|
|
530
|
+
matchedText: import_zod_openapi.z.string().describe("The specific text that matched the search query"),
|
|
531
|
+
context: import_zod_openapi.z.string().describe("Context around the match for preview"),
|
|
532
|
+
messageIndex: import_zod_openapi.z.number().int().nonnegative().describe("Index of the message within the session")
|
|
361
533
|
}).strict().describe("Result of a message search");
|
|
362
|
-
const SessionSearchResultSchema =
|
|
363
|
-
sessionId:
|
|
364
|
-
matchCount:
|
|
534
|
+
const SessionSearchResultSchema = import_zod_openapi.z.object({
|
|
535
|
+
sessionId: import_zod_openapi.z.string().describe("Session ID"),
|
|
536
|
+
matchCount: import_zod_openapi.z.number().int().nonnegative().describe("Number of messages that matched in this session"),
|
|
365
537
|
firstMatch: SearchResultSchema.describe("Preview of the first matching message"),
|
|
366
|
-
metadata:
|
|
367
|
-
createdAt:
|
|
368
|
-
lastActivity:
|
|
369
|
-
messageCount:
|
|
538
|
+
metadata: import_zod_openapi.z.object({
|
|
539
|
+
createdAt: import_zod_openapi.z.number().int().positive().describe("Session creation timestamp"),
|
|
540
|
+
lastActivity: import_zod_openapi.z.number().int().positive().describe("Last activity timestamp"),
|
|
541
|
+
messageCount: import_zod_openapi.z.number().int().nonnegative().describe("Total messages in session")
|
|
370
542
|
}).strict().describe("Session metadata")
|
|
371
543
|
}).strict().describe("Result of a session search");
|
|
372
|
-
const MessageSearchResponseSchema =
|
|
373
|
-
results:
|
|
374
|
-
total:
|
|
375
|
-
hasMore:
|
|
376
|
-
query:
|
|
544
|
+
const MessageSearchResponseSchema = import_zod_openapi.z.object({
|
|
545
|
+
results: import_zod_openapi.z.array(SearchResultSchema).describe("Array of search results"),
|
|
546
|
+
total: import_zod_openapi.z.number().int().nonnegative().describe("Total number of results available"),
|
|
547
|
+
hasMore: import_zod_openapi.z.boolean().describe("Whether there are more results beyond the current page"),
|
|
548
|
+
query: import_zod_openapi.z.string().describe("Query that was searched")
|
|
377
549
|
}).strict().describe("Message search response");
|
|
378
|
-
const SessionSearchResponseSchema =
|
|
379
|
-
results:
|
|
380
|
-
total:
|
|
381
|
-
hasMore:
|
|
550
|
+
const SessionSearchResponseSchema = import_zod_openapi.z.object({
|
|
551
|
+
results: import_zod_openapi.z.array(SessionSearchResultSchema).describe("Array of session search results"),
|
|
552
|
+
total: import_zod_openapi.z.number().int().nonnegative().describe("Total number of sessions with matches"),
|
|
553
|
+
hasMore: import_zod_openapi.z.boolean().describe(
|
|
382
554
|
"Always false - session search returns all matching sessions without pagination"
|
|
383
555
|
),
|
|
384
|
-
query:
|
|
556
|
+
query: import_zod_openapi.z.string().describe("Query that was searched")
|
|
385
557
|
}).strict().describe("Session search response");
|
|
386
|
-
const WebhookSchema =
|
|
387
|
-
id:
|
|
388
|
-
url:
|
|
389
|
-
events:
|
|
390
|
-
createdAt:
|
|
558
|
+
const WebhookSchema = import_zod_openapi.z.object({
|
|
559
|
+
id: import_zod_openapi.z.string().describe("Unique webhook identifier"),
|
|
560
|
+
url: import_zod_openapi.z.string().url().describe("Webhook URL to send events to"),
|
|
561
|
+
events: import_zod_openapi.z.array(import_zod_openapi.z.string()).describe("Array of event types this webhook subscribes to"),
|
|
562
|
+
createdAt: import_zod_openapi.z.number().int().positive().describe("Creation timestamp (Unix ms)")
|
|
391
563
|
}).strict().describe("Webhook subscription");
|
|
392
|
-
const CatalogModelInfoSchema =
|
|
393
|
-
name:
|
|
394
|
-
maxInputTokens:
|
|
395
|
-
default:
|
|
396
|
-
supportedFileTypes:
|
|
397
|
-
displayName:
|
|
398
|
-
pricing:
|
|
399
|
-
inputPerM:
|
|
400
|
-
outputPerM:
|
|
401
|
-
cacheReadPerM:
|
|
402
|
-
cacheWritePerM:
|
|
403
|
-
currency:
|
|
404
|
-
unit:
|
|
564
|
+
const CatalogModelInfoSchema = import_zod_openapi.z.object({
|
|
565
|
+
name: import_zod_openapi.z.string().describe("Model name identifier"),
|
|
566
|
+
maxInputTokens: import_zod_openapi.z.number().int().positive().describe("Maximum input tokens"),
|
|
567
|
+
default: import_zod_openapi.z.boolean().optional().describe("Whether this is a default model"),
|
|
568
|
+
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_core.SUPPORTED_FILE_TYPES)).describe("File types this model supports"),
|
|
569
|
+
displayName: import_zod_openapi.z.string().optional().describe("Human-readable display name"),
|
|
570
|
+
pricing: import_zod_openapi.z.object({
|
|
571
|
+
inputPerM: import_zod_openapi.z.number().describe("Input cost per million tokens (USD)"),
|
|
572
|
+
outputPerM: import_zod_openapi.z.number().describe("Output cost per million tokens (USD)"),
|
|
573
|
+
cacheReadPerM: import_zod_openapi.z.number().optional().describe("Cache read cost per million tokens"),
|
|
574
|
+
cacheWritePerM: import_zod_openapi.z.number().optional().describe("Cache write cost per million tokens"),
|
|
575
|
+
currency: import_zod_openapi.z.literal("USD").optional().describe("Currency"),
|
|
576
|
+
unit: import_zod_openapi.z.literal("per_million_tokens").optional().describe("Unit")
|
|
405
577
|
}).optional().describe("Pricing information in USD per million tokens")
|
|
406
578
|
}).strict().describe("Model information from LLM registry");
|
|
407
|
-
const ProviderCatalogSchema =
|
|
408
|
-
name:
|
|
409
|
-
hasApiKey:
|
|
410
|
-
primaryEnvVar:
|
|
411
|
-
supportsBaseURL:
|
|
412
|
-
models:
|
|
413
|
-
supportedFileTypes:
|
|
579
|
+
const ProviderCatalogSchema = import_zod_openapi.z.object({
|
|
580
|
+
name: import_zod_openapi.z.string().describe("Provider display name"),
|
|
581
|
+
hasApiKey: import_zod_openapi.z.boolean().describe("Whether API key is configured"),
|
|
582
|
+
primaryEnvVar: import_zod_openapi.z.string().describe("Primary environment variable for API key"),
|
|
583
|
+
supportsBaseURL: import_zod_openapi.z.boolean().describe("Whether custom base URLs are supported"),
|
|
584
|
+
models: import_zod_openapi.z.array(CatalogModelInfoSchema).describe("Models available from this provider"),
|
|
585
|
+
supportedFileTypes: import_zod_openapi.z.array(import_zod_openapi.z.enum(import_core.SUPPORTED_FILE_TYPES)).describe("Provider-level file type support")
|
|
414
586
|
}).strict().describe("Provider catalog entry with models and capabilities");
|
|
415
587
|
const ModelFlatSchema = CatalogModelInfoSchema.extend({
|
|
416
|
-
provider:
|
|
588
|
+
provider: import_zod_openapi.z.string().describe("Provider identifier for this model")
|
|
417
589
|
}).describe("Flattened model entry with provider information");
|
|
418
|
-
const AgentRegistryEntrySchema =
|
|
419
|
-
id:
|
|
420
|
-
name:
|
|
421
|
-
description:
|
|
422
|
-
author:
|
|
423
|
-
tags:
|
|
424
|
-
type:
|
|
590
|
+
const AgentRegistryEntrySchema = import_zod_openapi.z.object({
|
|
591
|
+
id: import_zod_openapi.z.string().describe("Unique agent identifier"),
|
|
592
|
+
name: import_zod_openapi.z.string().describe("Agent name"),
|
|
593
|
+
description: import_zod_openapi.z.string().describe("Agent description"),
|
|
594
|
+
author: import_zod_openapi.z.string().optional().describe("Agent author"),
|
|
595
|
+
tags: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Agent tags"),
|
|
596
|
+
type: import_zod_openapi.z.enum(["builtin", "custom"]).describe("Agent type")
|
|
425
597
|
}).strict().describe("Agent registry entry");
|
|
426
|
-
const ResourceSchema =
|
|
427
|
-
uri:
|
|
428
|
-
name:
|
|
429
|
-
description:
|
|
430
|
-
mimeType:
|
|
431
|
-
source:
|
|
432
|
-
serverName:
|
|
433
|
-
size:
|
|
434
|
-
lastModified:
|
|
435
|
-
metadata:
|
|
598
|
+
const ResourceSchema = import_zod_openapi.z.object({
|
|
599
|
+
uri: import_zod_openapi.z.string().describe("Resource URI"),
|
|
600
|
+
name: import_zod_openapi.z.string().optional().describe("Resource name"),
|
|
601
|
+
description: import_zod_openapi.z.string().optional().describe("Resource description"),
|
|
602
|
+
mimeType: import_zod_openapi.z.string().optional().describe("MIME type of the resource"),
|
|
603
|
+
source: import_zod_openapi.z.enum(["mcp", "internal"]).describe("Source system that provides this resource"),
|
|
604
|
+
serverName: import_zod_openapi.z.string().optional().describe("Original server/provider name (for MCP resources)"),
|
|
605
|
+
size: import_zod_openapi.z.number().optional().describe("Size of the resource in bytes (if known)"),
|
|
606
|
+
lastModified: import_zod_openapi.z.string().datetime().optional().describe("Last modified timestamp (ISO 8601 string)"),
|
|
607
|
+
metadata: import_zod_openapi.z.record(import_zod_openapi.z.string(), JsonValueSchema).optional().describe("Additional metadata specific to the resource type")
|
|
436
608
|
}).strict().describe("Resource metadata");
|
|
437
|
-
const ToolSchema =
|
|
438
|
-
name:
|
|
439
|
-
description:
|
|
440
|
-
inputSchema:
|
|
609
|
+
const ToolSchema = import_zod_openapi.z.object({
|
|
610
|
+
name: import_zod_openapi.z.string().describe("Tool name"),
|
|
611
|
+
description: import_zod_openapi.z.string().describe("Tool description"),
|
|
612
|
+
inputSchema: ToolInputSchema.describe("JSON Schema for tool input parameters")
|
|
441
613
|
}).strict().describe("Tool metadata");
|
|
442
|
-
const PromptArgumentSchema =
|
|
443
|
-
name:
|
|
444
|
-
description:
|
|
445
|
-
required:
|
|
614
|
+
const PromptArgumentSchema = import_zod_openapi.z.object({
|
|
615
|
+
name: import_zod_openapi.z.string().describe("Argument name"),
|
|
616
|
+
description: import_zod_openapi.z.string().optional().describe("Argument description"),
|
|
617
|
+
required: import_zod_openapi.z.boolean().optional().describe("Whether the argument is required")
|
|
446
618
|
}).strict().describe("Prompt argument definition");
|
|
447
|
-
const PromptDefinitionSchema =
|
|
448
|
-
name:
|
|
449
|
-
title:
|
|
450
|
-
description:
|
|
451
|
-
arguments:
|
|
619
|
+
const PromptDefinitionSchema = import_zod_openapi.z.object({
|
|
620
|
+
name: import_zod_openapi.z.string().describe("Prompt name"),
|
|
621
|
+
title: import_zod_openapi.z.string().optional().describe("Prompt title"),
|
|
622
|
+
description: import_zod_openapi.z.string().optional().describe("Prompt description"),
|
|
623
|
+
arguments: import_zod_openapi.z.array(PromptArgumentSchema).optional().describe("Array of argument definitions"),
|
|
624
|
+
disableModelInvocation: import_zod_openapi.z.boolean().optional().describe("Exclude from auto-invocation list in system prompt"),
|
|
625
|
+
userInvocable: import_zod_openapi.z.boolean().optional().describe("Whether to show in slash command menu"),
|
|
626
|
+
allowedTools: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Tools to auto-approve when this prompt is active"),
|
|
627
|
+
toolkits: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Toolkits to load when invoked"),
|
|
628
|
+
model: import_zod_openapi.z.string().optional().describe("Model to use when this prompt is invoked"),
|
|
629
|
+
context: import_zod_openapi.z.enum(["inline", "fork"]).optional().describe("Execution context for this prompt"),
|
|
630
|
+
agent: import_zod_openapi.z.string().optional().describe("Agent ID to use for fork execution")
|
|
452
631
|
}).strict().describe("Prompt definition (MCP-compliant)");
|
|
453
|
-
const PromptInfoSchema =
|
|
454
|
-
name:
|
|
455
|
-
title:
|
|
456
|
-
description:
|
|
457
|
-
arguments:
|
|
458
|
-
|
|
459
|
-
|
|
632
|
+
const PromptInfoSchema = import_zod_openapi.z.object({
|
|
633
|
+
name: import_zod_openapi.z.string().describe("Prompt name"),
|
|
634
|
+
title: import_zod_openapi.z.string().optional().describe("Prompt title"),
|
|
635
|
+
description: import_zod_openapi.z.string().optional().describe("Prompt description"),
|
|
636
|
+
arguments: import_zod_openapi.z.array(PromptArgumentSchema).optional().describe("Array of argument definitions"),
|
|
637
|
+
disableModelInvocation: import_zod_openapi.z.boolean().optional().describe("Exclude from auto-invocation list in system prompt"),
|
|
638
|
+
userInvocable: import_zod_openapi.z.boolean().optional().describe("Whether to show in slash command menu"),
|
|
639
|
+
allowedTools: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Tools to auto-approve when this prompt is active"),
|
|
640
|
+
toolkits: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("Toolkits to load when invoked"),
|
|
641
|
+
model: import_zod_openapi.z.string().optional().describe("Model to use when this prompt is invoked"),
|
|
642
|
+
context: import_zod_openapi.z.enum(["inline", "fork"]).optional().describe("Execution context for this prompt"),
|
|
643
|
+
agent: import_zod_openapi.z.string().optional().describe("Agent ID to use for fork execution"),
|
|
644
|
+
source: import_zod_openapi.z.enum(["mcp", "config", "custom"]).describe("Source of the prompt"),
|
|
645
|
+
displayName: import_zod_openapi.z.string().optional().describe("Base display name set by provider"),
|
|
646
|
+
commandName: import_zod_openapi.z.string().optional().describe("Collision-resolved slash command name"),
|
|
647
|
+
metadata: JsonObjectSchema.optional().describe("Additional metadata")
|
|
460
648
|
}).strict().describe("Enhanced prompt information");
|
|
461
|
-
const PromptSchema =
|
|
462
|
-
id:
|
|
463
|
-
name:
|
|
464
|
-
description:
|
|
465
|
-
content:
|
|
466
|
-
variables:
|
|
649
|
+
const PromptSchema = import_zod_openapi.z.object({
|
|
650
|
+
id: import_zod_openapi.z.string().describe("Unique prompt identifier"),
|
|
651
|
+
name: import_zod_openapi.z.string().describe("Prompt name"),
|
|
652
|
+
description: import_zod_openapi.z.string().optional().describe("Prompt description"),
|
|
653
|
+
content: import_zod_openapi.z.string().describe("Prompt template content"),
|
|
654
|
+
variables: import_zod_openapi.z.array(import_zod_openapi.z.string()).optional().describe("List of variable placeholders in the prompt")
|
|
467
655
|
}).strict().describe("Prompt template");
|
|
468
|
-
const OkResponseSchema = (dataSchema) =>
|
|
469
|
-
ok:
|
|
656
|
+
const OkResponseSchema = (dataSchema) => import_zod_openapi.z.object({
|
|
657
|
+
ok: import_zod_openapi.z.literal(true).describe("Indicates successful response"),
|
|
470
658
|
data: dataSchema.describe("Response data")
|
|
471
659
|
}).strict().describe("Successful API response");
|
|
472
|
-
const ErrorResponseSchema =
|
|
473
|
-
ok:
|
|
474
|
-
error:
|
|
475
|
-
message:
|
|
476
|
-
code:
|
|
477
|
-
details:
|
|
660
|
+
const ErrorResponseSchema = import_zod_openapi.z.object({
|
|
661
|
+
ok: import_zod_openapi.z.literal(false).describe("Indicates failed response"),
|
|
662
|
+
error: import_zod_openapi.z.object({
|
|
663
|
+
message: import_zod_openapi.z.string().describe("Error message"),
|
|
664
|
+
code: import_zod_openapi.z.string().optional().describe("Error code"),
|
|
665
|
+
details: JsonValueSchema.optional().describe("Additional error details")
|
|
478
666
|
}).strict().describe("Error details")
|
|
479
667
|
}).strict().describe("Error API response");
|
|
480
|
-
const StandardErrorEnvelopeSchema =
|
|
481
|
-
code:
|
|
482
|
-
message:
|
|
483
|
-
scope:
|
|
484
|
-
type:
|
|
485
|
-
context:
|
|
486
|
-
recovery:
|
|
487
|
-
traceId:
|
|
488
|
-
endpoint:
|
|
489
|
-
method:
|
|
668
|
+
const StandardErrorEnvelopeSchema = import_zod_openapi.z.object({
|
|
669
|
+
code: import_zod_openapi.z.string().describe("Error code"),
|
|
670
|
+
message: import_zod_openapi.z.string().describe("Error message"),
|
|
671
|
+
scope: import_zod_openapi.z.string().describe("Error scope"),
|
|
672
|
+
type: import_zod_openapi.z.string().describe("Error type"),
|
|
673
|
+
context: JsonValueSchema.optional().describe("Error context"),
|
|
674
|
+
recovery: import_zod_openapi.z.union([import_zod_openapi.z.string(), import_zod_openapi.z.array(import_zod_openapi.z.string())]).optional().describe("Recovery guidance"),
|
|
675
|
+
traceId: import_zod_openapi.z.string().describe("Trace identifier"),
|
|
676
|
+
endpoint: import_zod_openapi.z.string().describe("Request endpoint"),
|
|
677
|
+
method: import_zod_openapi.z.string().describe("HTTP method")
|
|
490
678
|
}).strict().describe("Standard API error envelope");
|
|
491
|
-
const StatusResponseSchema =
|
|
492
|
-
status:
|
|
493
|
-
message:
|
|
679
|
+
const StatusResponseSchema = import_zod_openapi.z.object({
|
|
680
|
+
status: import_zod_openapi.z.string().describe("Operation status"),
|
|
681
|
+
message: import_zod_openapi.z.string().optional().describe("Optional status message")
|
|
494
682
|
}).strict().describe("Status response");
|
|
495
|
-
const DeleteResponseSchema =
|
|
496
|
-
status:
|
|
497
|
-
id:
|
|
683
|
+
const DeleteResponseSchema = import_zod_openapi.z.object({
|
|
684
|
+
status: import_zod_openapi.z.literal("deleted").describe("Indicates successful deletion"),
|
|
685
|
+
id: import_zod_openapi.z.string().optional().describe("ID of the deleted resource")
|
|
498
686
|
}).strict().describe("Delete operation response");
|
|
499
687
|
// Annotate the CommonJS export names for ESM import in node:
|
|
500
688
|
0 && (module.exports = {
|
|
501
689
|
AgentCardSchema,
|
|
502
690
|
AgentRegistryEntrySchema,
|
|
503
691
|
ApiErrorResponseSchema,
|
|
692
|
+
BadRequestErrorResponse,
|
|
504
693
|
CatalogModelInfoSchema,
|
|
694
|
+
ConflictErrorResponse,
|
|
505
695
|
ContentPartSchema,
|
|
506
696
|
DeleteResponseSchema,
|
|
507
697
|
ErrorResponseSchema,
|
|
508
698
|
ExecutionLogSchema,
|
|
509
699
|
FilePartSchema,
|
|
700
|
+
ForbiddenErrorResponse,
|
|
510
701
|
HttpServerConfigSchema,
|
|
511
702
|
ImagePartSchema,
|
|
703
|
+
InternalErrorResponse,
|
|
512
704
|
InternalMessageSchema,
|
|
513
705
|
IssueSchema,
|
|
706
|
+
JsonObjectSchema,
|
|
707
|
+
JsonSchemaPropertySchema,
|
|
708
|
+
JsonValueSchema,
|
|
514
709
|
LLMConfigBaseSchema,
|
|
515
710
|
LLMConfigResponseSchema,
|
|
516
711
|
LLMConfigSchema,
|
|
@@ -519,7 +714,9 @@ const DeleteResponseSchema = import_zod.z.object({
|
|
|
519
714
|
MessageSearchResponseSchema,
|
|
520
715
|
ModelFlatSchema,
|
|
521
716
|
ModelStatisticsSchema,
|
|
717
|
+
NotFoundErrorResponse,
|
|
522
718
|
OkResponseSchema,
|
|
719
|
+
PaymentRequiredErrorResponse,
|
|
523
720
|
PermissionsConfigSchema,
|
|
524
721
|
PricingStatusSchema,
|
|
525
722
|
PromptArgumentSchema,
|
|
@@ -527,9 +724,11 @@ const DeleteResponseSchema = import_zod.z.object({
|
|
|
527
724
|
PromptInfoSchema,
|
|
528
725
|
PromptSchema,
|
|
529
726
|
ProviderCatalogSchema,
|
|
727
|
+
RateLimitErrorResponse,
|
|
530
728
|
RequestContentPartSchema,
|
|
531
729
|
RequestContentSchema,
|
|
532
730
|
ResourceConfigSchema,
|
|
731
|
+
ResourcePartSchema,
|
|
533
732
|
ResourceSchema,
|
|
534
733
|
ScheduleSchema,
|
|
535
734
|
ScheduleTaskSchema,
|
|
@@ -545,13 +744,17 @@ const DeleteResponseSchema = import_zod.z.object({
|
|
|
545
744
|
StatusResponseSchema,
|
|
546
745
|
StdioServerConfigSchema,
|
|
547
746
|
TextPartSchema,
|
|
747
|
+
TimeoutErrorResponse,
|
|
548
748
|
TokenUsageSchema,
|
|
549
749
|
ToolCallSchema,
|
|
750
|
+
ToolInputSchema,
|
|
550
751
|
ToolSchema,
|
|
551
752
|
UIResourcePartSchema,
|
|
753
|
+
UpstreamErrorResponse,
|
|
552
754
|
UsageSummarySchema,
|
|
553
755
|
WebhookSchema,
|
|
554
756
|
WorkspaceSchema,
|
|
555
757
|
toApiContentPart,
|
|
758
|
+
toApiInternalMessage,
|
|
556
759
|
toContentInput
|
|
557
760
|
});
|