@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.
Files changed (133) hide show
  1. package/dist/a2a/jsonrpc/methods.cjs +1 -1
  2. package/dist/a2a/jsonrpc/methods.d.ts +14 -4
  3. package/dist/a2a/jsonrpc/methods.d.ts.map +1 -1
  4. package/dist/a2a/jsonrpc/methods.js +1 -1
  5. package/dist/approval/wire-approval-events.cjs +44 -0
  6. package/dist/approval/wire-approval-events.d.ts +4 -0
  7. package/dist/approval/wire-approval-events.d.ts.map +1 -0
  8. package/dist/approval/wire-approval-events.js +20 -0
  9. package/dist/events/session-sse-subscriber.cjs +167 -0
  10. package/dist/events/session-sse-subscriber.d.ts +13 -0
  11. package/dist/events/session-sse-subscriber.d.ts.map +1 -0
  12. package/dist/events/session-sse-subscriber.js +143 -0
  13. package/dist/hono/__tests__/test-fixtures.cjs +8 -0
  14. package/dist/hono/__tests__/test-fixtures.d.ts +1 -0
  15. package/dist/hono/__tests__/test-fixtures.d.ts.map +1 -1
  16. package/dist/hono/__tests__/test-fixtures.js +8 -0
  17. package/dist/hono/index.cjs +40 -8
  18. package/dist/hono/index.d.ts +45 -4531
  19. package/dist/hono/index.d.ts.map +1 -1
  20. package/dist/hono/index.js +43 -9
  21. package/dist/hono/node/index.cjs +51 -6
  22. package/dist/hono/node/index.d.ts.map +1 -1
  23. package/dist/hono/node/index.js +51 -6
  24. package/dist/hono/routes/a2a-jsonrpc.d.ts.map +1 -1
  25. package/dist/hono/routes/a2a-tasks.cjs +158 -32
  26. package/dist/hono/routes/a2a-tasks.d.ts +1 -502
  27. package/dist/hono/routes/a2a-tasks.d.ts.map +1 -1
  28. package/dist/hono/routes/a2a-tasks.js +162 -32
  29. package/dist/hono/routes/a2a.d.ts.map +1 -1
  30. package/dist/hono/routes/agents.cjs +410 -329
  31. package/dist/hono/routes/agents.d.ts +16043 -68
  32. package/dist/hono/routes/agents.d.ts.map +1 -1
  33. package/dist/hono/routes/agents.js +418 -330
  34. package/dist/hono/routes/approvals.cjs +102 -88
  35. package/dist/hono/routes/approvals.d.ts +2089 -142
  36. package/dist/hono/routes/approvals.d.ts.map +1 -1
  37. package/dist/hono/routes/approvals.js +108 -89
  38. package/dist/hono/routes/dexto-auth.cjs +40 -33
  39. package/dist/hono/routes/dexto-auth.d.ts +401 -2
  40. package/dist/hono/routes/dexto-auth.d.ts.map +1 -1
  41. package/dist/hono/routes/dexto-auth.js +40 -33
  42. package/dist/hono/routes/discovery.cjs +16 -14
  43. package/dist/hono/routes/discovery.d.ts +586 -1
  44. package/dist/hono/routes/discovery.d.ts.map +1 -1
  45. package/dist/hono/routes/discovery.js +16 -14
  46. package/dist/hono/routes/greeting.cjs +26 -22
  47. package/dist/hono/routes/greeting.d.ts +787 -3
  48. package/dist/hono/routes/greeting.d.ts.map +1 -1
  49. package/dist/hono/routes/greeting.js +26 -22
  50. package/dist/hono/routes/health.d.ts +1 -1
  51. package/dist/hono/routes/key.cjs +60 -52
  52. package/dist/hono/routes/key.d.ts +1597 -1
  53. package/dist/hono/routes/key.d.ts.map +1 -1
  54. package/dist/hono/routes/key.js +60 -52
  55. package/dist/hono/routes/llm.cjs +382 -349
  56. package/dist/hono/routes/llm.d.ts +12148 -98
  57. package/dist/hono/routes/llm.d.ts.map +1 -1
  58. package/dist/hono/routes/llm.js +386 -349
  59. package/dist/hono/routes/mcp.cjs +257 -226
  60. package/dist/hono/routes/mcp.d.ts +6605 -309
  61. package/dist/hono/routes/mcp.d.ts.map +1 -1
  62. package/dist/hono/routes/mcp.js +263 -225
  63. package/dist/hono/routes/memory.cjs +102 -89
  64. package/dist/hono/routes/memory.d.ts +5368 -4
  65. package/dist/hono/routes/memory.d.ts.map +1 -1
  66. package/dist/hono/routes/memory.js +108 -90
  67. package/dist/hono/routes/messages.cjs +189 -191
  68. package/dist/hono/routes/messages.d.ts +3900 -12
  69. package/dist/hono/routes/messages.d.ts.map +1 -1
  70. package/dist/hono/routes/messages.js +192 -191
  71. package/dist/hono/routes/models.cjs +106 -64
  72. package/dist/hono/routes/models.d.ts +2875 -2
  73. package/dist/hono/routes/models.d.ts.map +1 -1
  74. package/dist/hono/routes/models.js +108 -64
  75. package/dist/hono/routes/openrouter.cjs +79 -65
  76. package/dist/hono/routes/openrouter.d.ts +854 -1
  77. package/dist/hono/routes/openrouter.d.ts.map +1 -1
  78. package/dist/hono/routes/openrouter.js +79 -65
  79. package/dist/hono/routes/prompts.cjs +136 -109
  80. package/dist/hono/routes/prompts.d.ts +2818 -10
  81. package/dist/hono/routes/prompts.d.ts.map +1 -1
  82. package/dist/hono/routes/prompts.js +138 -109
  83. package/dist/hono/routes/queue.cjs +133 -120
  84. package/dist/hono/routes/queue.d.ts +5240 -11
  85. package/dist/hono/routes/queue.d.ts.map +1 -1
  86. package/dist/hono/routes/queue.js +136 -120
  87. package/dist/hono/routes/resources.cjs +65 -46
  88. package/dist/hono/routes/resources.d.ts +1983 -5
  89. package/dist/hono/routes/resources.d.ts.map +1 -1
  90. package/dist/hono/routes/resources.js +72 -47
  91. package/dist/hono/routes/schedules.cjs +233 -226
  92. package/dist/hono/routes/schedules.d.ts +4198 -22
  93. package/dist/hono/routes/schedules.d.ts.map +1 -1
  94. package/dist/hono/routes/schedules.js +233 -226
  95. package/dist/hono/routes/search.cjs +34 -30
  96. package/dist/hono/routes/search.d.ts +3094 -17
  97. package/dist/hono/routes/search.d.ts.map +1 -1
  98. package/dist/hono/routes/search.js +40 -31
  99. package/dist/hono/routes/sessions.cjs +491 -393
  100. package/dist/hono/routes/sessions.d.ts +18263 -65
  101. package/dist/hono/routes/sessions.d.ts.map +1 -1
  102. package/dist/hono/routes/sessions.js +497 -395
  103. package/dist/hono/routes/static.d.ts.map +1 -1
  104. package/dist/hono/routes/system-prompt.cjs +57 -61
  105. package/dist/hono/routes/system-prompt.d.ts +1228 -2
  106. package/dist/hono/routes/system-prompt.d.ts.map +1 -1
  107. package/dist/hono/routes/system-prompt.js +58 -62
  108. package/dist/hono/routes/tools.cjs +29 -34
  109. package/dist/hono/routes/tools.d.ts +1755 -6
  110. package/dist/hono/routes/tools.d.ts.map +1 -1
  111. package/dist/hono/routes/tools.js +33 -33
  112. package/dist/hono/routes/webhooks.cjs +115 -123
  113. package/dist/hono/routes/webhooks.d.ts +2501 -11
  114. package/dist/hono/routes/webhooks.d.ts.map +1 -1
  115. package/dist/hono/routes/webhooks.js +120 -124
  116. package/dist/hono/routes/workspaces.cjs +84 -79
  117. package/dist/hono/routes/workspaces.d.ts +2093 -2
  118. package/dist/hono/routes/workspaces.d.ts.map +1 -1
  119. package/dist/hono/routes/workspaces.js +89 -80
  120. package/dist/hono/schemas/responses.cjs +463 -260
  121. package/dist/hono/schemas/responses.d.ts +1893 -209
  122. package/dist/hono/schemas/responses.d.ts.map +1 -1
  123. package/dist/hono/schemas/responses.js +203 -14
  124. package/dist/hono/start-server.cjs +9 -0
  125. package/dist/hono/start-server.d.ts.map +1 -1
  126. package/dist/hono/start-server.js +9 -0
  127. package/dist/hono/types.d.ts +11 -0
  128. package/dist/hono/types.d.ts.map +1 -1
  129. package/dist/index.cjs +5 -1
  130. package/dist/index.d.ts +2 -0
  131. package/dist/index.d.ts.map +1 -1
  132. package/dist/index.js +2 -0
  133. 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 import_zod = require("zod");
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 IssueSchema = import_zod.z.object({
88
- code: import_zod.z.string().describe("Machine-readable issue code"),
89
- message: import_zod.z.string().describe("Human-readable issue message"),
90
- scope: import_zod.z.string().describe("Domain that produced the issue"),
91
- type: import_zod.z.string().describe("Error type used for HTTP status mapping"),
92
- severity: import_zod.z.enum(["error", "warning"]).describe("Issue severity"),
93
- path: import_zod.z.array(import_zod.z.union([import_zod.z.string(), import_zod.z.number()])).optional().describe("Optional location for the issue"),
94
- context: import_zod.z.unknown().optional().describe("Optional structured issue context")
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 = import_zod.z.object({
97
- name: import_zod.z.string().optional().describe("Optional error class name"),
98
- message: import_zod.z.string().describe("Human-readable error message"),
99
- code: import_zod.z.string().optional().describe("Machine-readable error code"),
100
- scope: import_zod.z.string().optional().describe("Domain that produced the error"),
101
- type: import_zod.z.string().optional().describe("Error type used for HTTP status mapping"),
102
- severity: import_zod.z.enum(["error", "warning"]).optional().describe("Optional error severity for lightweight failures"),
103
- endpoint: import_zod.z.string().describe("Request path that failed"),
104
- method: import_zod.z.string().describe("HTTP method for the failed request"),
105
- traceId: import_zod.z.string().optional().describe("Optional trace identifier"),
106
- recovery: import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.string())]).optional().describe("Optional recovery guidance"),
107
- context: import_zod.z.unknown().optional().describe("Optional structured error context"),
108
- issues: import_zod.z.array(IssueSchema).optional().describe("Validation issues when present"),
109
- errorCount: import_zod.z.number().int().nonnegative().optional().describe("Number of errors"),
110
- warningCount: import_zod.z.number().int().nonnegative().optional().describe("Number of warnings"),
111
- stack: import_zod.z.string().optional().describe("Development-only stack trace")
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 TextPartSchema = import_zod.z.object({
114
- type: import_zod.z.literal("text").describe("Part type: text"),
115
- text: import_zod.z.string().describe("Text content")
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 = import_zod.z.object({
118
- type: import_zod.z.literal("image").describe("Part type: image"),
119
- image: import_zod.z.string().describe("Base64-encoded image data"),
120
- mimeType: import_zod.z.string().optional().describe("MIME type of the image")
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 = import_zod.z.object({
123
- type: import_zod.z.literal("file").describe("Part type: file"),
124
- data: import_zod.z.string().describe("Base64-encoded file data"),
125
- mimeType: import_zod.z.string().describe("MIME type of the file"),
126
- filename: import_zod.z.string().optional().describe("Optional 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 UIResourcePartSchema = import_zod.z.object({
129
- type: import_zod.z.literal("ui-resource").describe("Part type: ui-resource"),
130
- uri: import_zod.z.string().describe("URI identifying the UI resource (must start with ui://)"),
131
- mimeType: import_zod.z.string().describe("MIME type: text/html, text/uri-list, or application/vnd.mcp-ui.remote-dom"),
132
- content: import_zod.z.string().optional().describe("Inline HTML content or URL"),
133
- blob: import_zod.z.string().optional().describe("Base64-encoded content (alternative to content)"),
134
- metadata: import_zod.z.object({
135
- title: import_zod.z.string().optional().describe("Display title for the UI resource"),
136
- preferredSize: import_zod.z.object({
137
- width: import_zod.z.number().describe("Preferred width in pixels"),
138
- height: import_zod.z.number().describe("Preferred height in pixels")
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 = import_zod.z.discriminatedUnion("type", [
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 = import_zod.z.discriminatedUnion("type", [TextPartSchema, ImagePartSchema, FilePartSchema]).describe("Request message content part (text, image, or file)");
149
- const RequestContentSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.array(RequestContentPartSchema)]).describe("Message content - string for text, or ContentPart[] for multimodal");
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 = import_zod.z.object({
221
- id: import_zod.z.string().describe("Unique identifier for this tool call"),
222
- type: import_zod.z.literal("function").describe("Tool call type (currently only function is supported)"),
223
- function: import_zod.z.object({
224
- name: import_zod.z.string().describe("Name of the function to call"),
225
- arguments: import_zod.z.string().describe("Arguments for the function in JSON string format")
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 = import_zod.z.object({
229
- inputTokens: import_zod.z.number().int().nonnegative().optional().describe("Number of input tokens"),
230
- outputTokens: import_zod.z.number().int().nonnegative().optional().describe("Number of output tokens"),
231
- reasoningTokens: import_zod.z.number().int().nonnegative().optional().describe("Number of reasoning tokens"),
232
- cacheReadTokens: import_zod.z.number().int().nonnegative().optional().describe("Number of cache read tokens"),
233
- cacheWriteTokens: import_zod.z.number().int().nonnegative().optional().describe("Number of cache write tokens"),
234
- totalTokens: import_zod.z.number().int().nonnegative().optional().describe("Total tokens used")
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 = import_zod.z.enum(import_core.LLM_PRICING_STATUSES).describe("Whether pricing was resolved for this response");
237
- const InternalMessageSchema = import_zod.z.object({
238
- id: import_zod.z.string().uuid().optional().describe("Unique message identifier (UUID)"),
239
- role: import_zod.z.enum(["system", "user", "assistant", "tool"]).describe("Role of the message sender"),
240
- timestamp: import_zod.z.number().int().positive().optional().describe("Creation timestamp (Unix ms)"),
241
- content: import_zod.z.union([import_zod.z.string(), import_zod.z.null(), import_zod.z.array(ContentPartSchema)]).describe("Message content (string, null, or array of parts)"),
242
- reasoning: import_zod.z.string().optional().describe("Optional model reasoning text"),
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: import_zod.z.number().nonnegative().optional().describe("Estimated cost in USD for this response"),
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: import_zod.z.string().optional().describe("Optional usage scope identifier for runtime-scoped metering"),
249
- model: import_zod.z.string().optional().describe("Model identifier for assistant messages"),
250
- provider: import_zod.z.enum(import_core.LLM_PROVIDERS).optional().describe("Provider identifier for assistant messages"),
251
- toolCalls: import_zod.z.array(ToolCallSchema).optional().describe("Tool calls made by the assistant"),
252
- toolCallId: import_zod.z.string().optional().describe("ID of the tool call this message responds to"),
253
- name: import_zod.z.string().optional().describe("Name of the tool that produced this result"),
254
- success: import_zod.z.boolean().optional().describe("Whether tool execution succeeded (present for role=tool messages)")
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: import_zod.z.boolean().optional().describe("Whether an API key is configured")
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 = import_zod.z.object({
264
- hasUntrackedChatGPTLoginUsage: import_zod.z.boolean().optional().describe("Whether this session includes known untracked ChatGPT Login usage")
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 = import_zod.z.object({
267
- provider: import_zod.z.string().describe("LLM provider identifier"),
268
- model: import_zod.z.string().describe("Model identifier"),
269
- messageCount: import_zod.z.number().int().nonnegative().describe("Number of messages using this model"),
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: import_zod.z.number().nonnegative().describe("Estimated cost in USD for this model"),
272
- firstUsedAt: import_zod.z.number().int().positive().describe("First use timestamp (Unix ms)"),
273
- lastUsedAt: import_zod.z.number().int().positive().describe("Last use timestamp (Unix ms)")
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 = import_zod.z.object({
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: import_zod.z.number().nonnegative().describe("Total estimated cost in USD for the selected scope"),
280
- hasUnpricedResponses: import_zod.z.boolean().describe(
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: import_zod.z.array(
284
- import_zod.z.object({
285
- provider: import_zod.z.string().describe("LLM provider identifier"),
286
- model: import_zod.z.string().describe("Model identifier"),
287
- messageCount: import_zod.z.number().int().nonnegative().describe("Number of responses using this model in the selected scope"),
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: import_zod.z.number().nonnegative().describe("Estimated cost in USD for this model in the selected scope")
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: import_zod.z.string().describe("Usage scope identifier")
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 = import_zod.z.object({
299
- id: import_zod.z.string().describe("Unique session identifier"),
300
- createdAt: import_zod.z.number().int().positive().nullable().describe("Creation timestamp (Unix ms, null if unavailable)"),
301
- lastActivity: import_zod.z.number().int().positive().nullable().describe("Last activity timestamp (Unix ms, null if unavailable)"),
302
- messageCount: import_zod.z.number().int().nonnegative().describe("Total number of messages in session"),
303
- title: import_zod.z.string().optional().nullable().describe("Optional session 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: import_zod.z.number().nonnegative().optional().describe("Total estimated cost in USD across all models"),
308
- modelStats: import_zod.z.array(ModelStatisticsSchema).optional().describe("Per-model usage statistics (for multi-model sessions)"),
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: import_zod.z.string().optional().nullable().describe("Associated workspace ID, if any"),
313
- parentSessionId: import_zod.z.string().optional().nullable().describe("Parent session ID if this session was forked, otherwise null")
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 = import_zod.z.object({
316
- id: import_zod.z.string().describe("Workspace identifier"),
317
- path: import_zod.z.string().describe("Workspace root path"),
318
- name: import_zod.z.string().optional().nullable().describe("Optional workspace display name"),
319
- createdAt: import_zod.z.number().int().positive().describe("Creation timestamp (Unix ms)"),
320
- lastActiveAt: import_zod.z.number().int().positive().describe("Last active timestamp (Unix ms)")
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 = import_zod.z.object({
323
- instruction: import_zod.z.string().describe("Instruction to execute"),
324
- metadata: import_zod.z.record(import_zod.z.unknown()).optional().describe("Optional task 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 = import_zod.z.object({
327
- id: import_zod.z.string().describe("Schedule ID"),
328
- name: import_zod.z.string().describe("Schedule name"),
329
- cronExpression: import_zod.z.string().describe("Cron expression"),
330
- timezone: import_zod.z.string().describe("Timezone for schedule"),
331
- enabled: import_zod.z.boolean().describe("Whether the schedule is 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: import_zod.z.enum(["ephemeral", "dedicated", "inherit", "fixed"]).describe("Session context mode"),
334
- sessionId: import_zod.z.string().optional().describe("Session ID when using fixed/inherit mode"),
335
- workspacePath: import_zod.z.string().optional().describe("Workspace path override"),
336
- createdAt: import_zod.z.number().int().positive().describe("Creation timestamp (Unix ms)"),
337
- updatedAt: import_zod.z.number().int().positive().describe("Last update timestamp (Unix ms)"),
338
- lastRunAt: import_zod.z.number().int().positive().optional().describe("Last run timestamp (Unix ms)"),
339
- nextRunAt: import_zod.z.number().int().positive().optional().describe("Next run timestamp (Unix ms)"),
340
- runCount: import_zod.z.number().int().nonnegative().describe("Total executions"),
341
- successCount: import_zod.z.number().int().nonnegative().describe("Successful executions"),
342
- failureCount: import_zod.z.number().int().nonnegative().describe("Failed executions"),
343
- lastError: import_zod.z.string().optional().describe("Last execution error, if any")
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 = import_zod.z.object({
346
- id: import_zod.z.string().describe("Execution log ID"),
347
- scheduleId: import_zod.z.string().describe("Schedule ID"),
348
- triggeredAt: import_zod.z.number().int().positive().describe("Trigger timestamp (Unix ms)"),
349
- completedAt: import_zod.z.number().int().positive().optional().describe("Completion timestamp (Unix ms)"),
350
- status: import_zod.z.enum(["pending", "success", "failed", "timeout"]).describe("Execution status"),
351
- duration: import_zod.z.number().int().nonnegative().optional().describe("Execution duration in ms"),
352
- error: import_zod.z.string().optional().describe("Execution error, if any"),
353
- result: import_zod.z.string().optional().describe("Execution result, if any")
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 = import_zod.z.object({
356
- sessionId: import_zod.z.string().describe("Session ID where the message was found"),
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: import_zod.z.string().describe("The specific text that matched the search query"),
359
- context: import_zod.z.string().describe("Context around the match for preview"),
360
- messageIndex: import_zod.z.number().int().nonnegative().describe("Index of the message within the session")
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 = import_zod.z.object({
363
- sessionId: import_zod.z.string().describe("Session ID"),
364
- matchCount: import_zod.z.number().int().nonnegative().describe("Number of messages that matched in this session"),
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: import_zod.z.object({
367
- createdAt: import_zod.z.number().int().positive().describe("Session creation timestamp"),
368
- lastActivity: import_zod.z.number().int().positive().describe("Last activity timestamp"),
369
- messageCount: import_zod.z.number().int().nonnegative().describe("Total messages in session")
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 = import_zod.z.object({
373
- results: import_zod.z.array(SearchResultSchema).describe("Array of search results"),
374
- total: import_zod.z.number().int().nonnegative().describe("Total number of results available"),
375
- hasMore: import_zod.z.boolean().describe("Whether there are more results beyond the current page"),
376
- query: import_zod.z.string().describe("Query that was searched")
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 = import_zod.z.object({
379
- results: import_zod.z.array(SessionSearchResultSchema).describe("Array of session search results"),
380
- total: import_zod.z.number().int().nonnegative().describe("Total number of sessions with matches"),
381
- hasMore: import_zod.z.boolean().describe(
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: import_zod.z.string().describe("Query that was searched")
556
+ query: import_zod_openapi.z.string().describe("Query that was searched")
385
557
  }).strict().describe("Session search response");
386
- const WebhookSchema = import_zod.z.object({
387
- id: import_zod.z.string().describe("Unique webhook identifier"),
388
- url: import_zod.z.string().url().describe("Webhook URL to send events to"),
389
- events: import_zod.z.array(import_zod.z.string()).describe("Array of event types this webhook subscribes to"),
390
- createdAt: import_zod.z.number().int().positive().describe("Creation timestamp (Unix ms)")
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 = import_zod.z.object({
393
- name: import_zod.z.string().describe("Model name identifier"),
394
- maxInputTokens: import_zod.z.number().int().positive().describe("Maximum input tokens"),
395
- default: import_zod.z.boolean().optional().describe("Whether this is a default model"),
396
- supportedFileTypes: import_zod.z.array(import_zod.z.enum(["audio", "pdf", "image"])).describe("File types this model supports"),
397
- displayName: import_zod.z.string().optional().describe("Human-readable display name"),
398
- pricing: import_zod.z.object({
399
- inputPerM: import_zod.z.number().describe("Input cost per million tokens (USD)"),
400
- outputPerM: import_zod.z.number().describe("Output cost per million tokens (USD)"),
401
- cacheReadPerM: import_zod.z.number().optional().describe("Cache read cost per million tokens"),
402
- cacheWritePerM: import_zod.z.number().optional().describe("Cache write cost per million tokens"),
403
- currency: import_zod.z.literal("USD").optional().describe("Currency"),
404
- unit: import_zod.z.literal("per_million_tokens").optional().describe("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 = import_zod.z.object({
408
- name: import_zod.z.string().describe("Provider display name"),
409
- hasApiKey: import_zod.z.boolean().describe("Whether API key is configured"),
410
- primaryEnvVar: import_zod.z.string().describe("Primary environment variable for API key"),
411
- supportsBaseURL: import_zod.z.boolean().describe("Whether custom base URLs are supported"),
412
- models: import_zod.z.array(CatalogModelInfoSchema).describe("Models available from this provider"),
413
- supportedFileTypes: import_zod.z.array(import_zod.z.enum(["audio", "pdf", "image"])).describe("Provider-level file type support")
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: import_zod.z.string().describe("Provider identifier for this model")
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 = import_zod.z.object({
419
- id: import_zod.z.string().describe("Unique agent identifier"),
420
- name: import_zod.z.string().describe("Agent name"),
421
- description: import_zod.z.string().describe("Agent description"),
422
- author: import_zod.z.string().optional().describe("Agent author"),
423
- tags: import_zod.z.array(import_zod.z.string()).optional().describe("Agent tags"),
424
- type: import_zod.z.enum(["builtin", "custom"]).describe("Agent 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 = import_zod.z.object({
427
- uri: import_zod.z.string().describe("Resource URI"),
428
- name: import_zod.z.string().optional().describe("Resource name"),
429
- description: import_zod.z.string().optional().describe("Resource description"),
430
- mimeType: import_zod.z.string().optional().describe("MIME type of the resource"),
431
- source: import_zod.z.enum(["mcp", "internal"]).describe("Source system that provides this resource"),
432
- serverName: import_zod.z.string().optional().describe("Original server/provider name (for MCP resources)"),
433
- size: import_zod.z.number().optional().describe("Size of the resource in bytes (if known)"),
434
- lastModified: import_zod.z.string().datetime().optional().describe("Last modified timestamp (ISO 8601 string)"),
435
- metadata: import_zod.z.record(import_zod.z.unknown()).optional().describe("Additional metadata specific to the resource type")
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 = import_zod.z.object({
438
- name: import_zod.z.string().describe("Tool name"),
439
- description: import_zod.z.string().describe("Tool description"),
440
- inputSchema: import_zod.z.record(import_zod.z.unknown()).describe("JSON Schema for tool input parameters")
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 = import_zod.z.object({
443
- name: import_zod.z.string().describe("Argument name"),
444
- description: import_zod.z.string().optional().describe("Argument description"),
445
- required: import_zod.z.boolean().optional().describe("Whether the argument is 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 = import_zod.z.object({
448
- name: import_zod.z.string().describe("Prompt name"),
449
- title: import_zod.z.string().optional().describe("Prompt title"),
450
- description: import_zod.z.string().optional().describe("Prompt description"),
451
- arguments: import_zod.z.array(PromptArgumentSchema).optional().describe("Array of argument definitions")
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 = import_zod.z.object({
454
- name: import_zod.z.string().describe("Prompt name"),
455
- title: import_zod.z.string().optional().describe("Prompt title"),
456
- description: import_zod.z.string().optional().describe("Prompt description"),
457
- arguments: import_zod.z.array(PromptArgumentSchema).optional().describe("Array of argument definitions"),
458
- source: import_zod.z.enum(["mcp", "config", "custom"]).describe("Source of the prompt"),
459
- metadata: import_zod.z.record(import_zod.z.unknown()).optional().describe("Additional metadata")
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 = import_zod.z.object({
462
- id: import_zod.z.string().describe("Unique prompt identifier"),
463
- name: import_zod.z.string().describe("Prompt name"),
464
- description: import_zod.z.string().optional().describe("Prompt description"),
465
- content: import_zod.z.string().describe("Prompt template content"),
466
- variables: import_zod.z.array(import_zod.z.string()).optional().describe("List of variable placeholders in the prompt")
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) => import_zod.z.object({
469
- ok: import_zod.z.literal(true).describe("Indicates successful response"),
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 = import_zod.z.object({
473
- ok: import_zod.z.literal(false).describe("Indicates failed response"),
474
- error: import_zod.z.object({
475
- message: import_zod.z.string().describe("Error message"),
476
- code: import_zod.z.string().optional().describe("Error code"),
477
- details: import_zod.z.unknown().optional().describe("Additional error 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 = import_zod.z.object({
481
- code: import_zod.z.string().describe("Error code"),
482
- message: import_zod.z.string().describe("Error message"),
483
- scope: import_zod.z.string().describe("Error scope"),
484
- type: import_zod.z.string().describe("Error type"),
485
- context: import_zod.z.unknown().optional().describe("Error context"),
486
- recovery: import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.string())]).optional().describe("Recovery guidance"),
487
- traceId: import_zod.z.string().describe("Trace identifier"),
488
- endpoint: import_zod.z.string().describe("Request endpoint"),
489
- method: import_zod.z.string().describe("HTTP 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 = import_zod.z.object({
492
- status: import_zod.z.string().describe("Operation status"),
493
- message: import_zod.z.string().optional().describe("Optional status 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 = import_zod.z.object({
496
- status: import_zod.z.literal("deleted").describe("Indicates successful deletion"),
497
- id: import_zod.z.string().optional().describe("ID of the deleted resource")
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
  });