@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
@@ -26,8 +26,101 @@
26
26
  *
27
27
  * See routes/sessions.ts, routes/search.ts for examples with TODO comments.
28
28
  */
29
- import { z } from 'zod';
30
- import { type ContentPart as CoreContentPart } from '@dexto/core';
29
+ import { z } from '@hono/zod-openapi';
30
+ import { type ContentPart as CoreContentPart, type InternalMessage as CoreInternalMessage } from '@dexto/core';
31
+ type JsonValue = string | number | boolean | null | JsonValue[] | {
32
+ [key: string]: JsonValue;
33
+ };
34
+ export declare const JsonValueSchema: z.ZodType<JsonValue>;
35
+ export declare const JsonObjectSchema: z.ZodType<{
36
+ [key: string]: JsonValue;
37
+ }>;
38
+ export declare const JsonSchemaPropertySchema: z.ZodObject<{
39
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
40
+ description: z.ZodOptional<z.ZodString>;
41
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
42
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
43
+ format: z.ZodOptional<z.ZodString>;
44
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
45
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
46
+ description: z.ZodOptional<z.ZodString>;
47
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
48
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
49
+ format: z.ZodOptional<z.ZodString>;
50
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
51
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
52
+ description: z.ZodOptional<z.ZodString>;
53
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
54
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
55
+ format: z.ZodOptional<z.ZodString>;
56
+ }, z.ZodTypeAny, "passthrough">>;
57
+ export declare const ToolInputSchema: z.ZodObject<{
58
+ type: z.ZodOptional<z.ZodLiteral<"object">>;
59
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
60
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
61
+ description: z.ZodOptional<z.ZodString>;
62
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
63
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
64
+ format: z.ZodOptional<z.ZodString>;
65
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
66
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
67
+ description: z.ZodOptional<z.ZodString>;
68
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
69
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
70
+ format: z.ZodOptional<z.ZodString>;
71
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
72
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
73
+ description: z.ZodOptional<z.ZodString>;
74
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
75
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
76
+ format: z.ZodOptional<z.ZodString>;
77
+ }, z.ZodTypeAny, "passthrough">>>>;
78
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
79
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
80
+ type: z.ZodOptional<z.ZodLiteral<"object">>;
81
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
82
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
83
+ description: z.ZodOptional<z.ZodString>;
84
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
85
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
86
+ format: z.ZodOptional<z.ZodString>;
87
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
88
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
89
+ description: z.ZodOptional<z.ZodString>;
90
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
91
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
92
+ format: z.ZodOptional<z.ZodString>;
93
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
94
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
95
+ description: z.ZodOptional<z.ZodString>;
96
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
97
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
98
+ format: z.ZodOptional<z.ZodString>;
99
+ }, z.ZodTypeAny, "passthrough">>>>;
100
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
102
+ type: z.ZodOptional<z.ZodLiteral<"object">>;
103
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
104
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
105
+ description: z.ZodOptional<z.ZodString>;
106
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
107
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
108
+ format: z.ZodOptional<z.ZodString>;
109
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
110
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
111
+ description: z.ZodOptional<z.ZodString>;
112
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
113
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
114
+ format: z.ZodOptional<z.ZodString>;
115
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
116
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
117
+ description: z.ZodOptional<z.ZodString>;
118
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
119
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
120
+ format: z.ZodOptional<z.ZodString>;
121
+ }, z.ZodTypeAny, "passthrough">>>>;
122
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
123
+ }, z.ZodTypeAny, "passthrough">>;
31
124
  export declare const IssueSchema: z.ZodObject<{
32
125
  code: z.ZodString;
33
126
  message: z.ZodString;
@@ -35,7 +128,7 @@ export declare const IssueSchema: z.ZodObject<{
35
128
  type: z.ZodString;
36
129
  severity: z.ZodEnum<["error", "warning"]>;
37
130
  path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
38
- context: z.ZodOptional<z.ZodUnknown>;
131
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
39
132
  }, "strict", z.ZodTypeAny, {
40
133
  type: string;
41
134
  code: string;
@@ -43,7 +136,7 @@ export declare const IssueSchema: z.ZodObject<{
43
136
  scope: string;
44
137
  severity: "error" | "warning";
45
138
  path?: (string | number)[] | undefined;
46
- context?: unknown;
139
+ context?: JsonValue | undefined;
47
140
  }, {
48
141
  type: string;
49
142
  code: string;
@@ -51,7 +144,7 @@ export declare const IssueSchema: z.ZodObject<{
51
144
  scope: string;
52
145
  severity: "error" | "warning";
53
146
  path?: (string | number)[] | undefined;
54
- context?: unknown;
147
+ context?: JsonValue | undefined;
55
148
  }>;
56
149
  export declare const ApiErrorResponseSchema: z.ZodObject<{
57
150
  name: z.ZodOptional<z.ZodString>;
@@ -64,7 +157,7 @@ export declare const ApiErrorResponseSchema: z.ZodObject<{
64
157
  method: z.ZodString;
65
158
  traceId: z.ZodOptional<z.ZodString>;
66
159
  recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
67
- context: z.ZodOptional<z.ZodUnknown>;
160
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
68
161
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
162
  code: z.ZodString;
70
163
  message: z.ZodString;
@@ -72,7 +165,7 @@ export declare const ApiErrorResponseSchema: z.ZodObject<{
72
165
  type: z.ZodString;
73
166
  severity: z.ZodEnum<["error", "warning"]>;
74
167
  path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
75
- context: z.ZodOptional<z.ZodUnknown>;
168
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
76
169
  }, "strict", z.ZodTypeAny, {
77
170
  type: string;
78
171
  code: string;
@@ -80,7 +173,7 @@ export declare const ApiErrorResponseSchema: z.ZodObject<{
80
173
  scope: string;
81
174
  severity: "error" | "warning";
82
175
  path?: (string | number)[] | undefined;
83
- context?: unknown;
176
+ context?: JsonValue | undefined;
84
177
  }, {
85
178
  type: string;
86
179
  code: string;
@@ -88,7 +181,7 @@ export declare const ApiErrorResponseSchema: z.ZodObject<{
88
181
  scope: string;
89
182
  severity: "error" | "warning";
90
183
  path?: (string | number)[] | undefined;
91
- context?: unknown;
184
+ context?: JsonValue | undefined;
92
185
  }>, "many">>;
93
186
  errorCount: z.ZodOptional<z.ZodNumber>;
94
187
  warningCount: z.ZodOptional<z.ZodNumber>;
@@ -97,6 +190,7 @@ export declare const ApiErrorResponseSchema: z.ZodObject<{
97
190
  method: string;
98
191
  message: string;
99
192
  endpoint: string;
193
+ stack?: string | undefined;
100
194
  type?: string | undefined;
101
195
  issues?: {
102
196
  type: string;
@@ -105,22 +199,22 @@ export declare const ApiErrorResponseSchema: z.ZodObject<{
105
199
  scope: string;
106
200
  severity: "error" | "warning";
107
201
  path?: (string | number)[] | undefined;
108
- context?: unknown;
202
+ context?: JsonValue | undefined;
109
203
  }[] | undefined;
110
204
  code?: string | undefined;
205
+ name?: string | undefined;
111
206
  scope?: string | undefined;
112
207
  severity?: "error" | "warning" | undefined;
113
- name?: string | undefined;
114
- context?: unknown;
208
+ context?: JsonValue | undefined;
115
209
  traceId?: string | undefined;
116
210
  recovery?: string | string[] | undefined;
117
211
  errorCount?: number | undefined;
118
212
  warningCount?: number | undefined;
119
- stack?: string | undefined;
120
213
  }, {
121
214
  method: string;
122
215
  message: string;
123
216
  endpoint: string;
217
+ stack?: string | undefined;
124
218
  type?: string | undefined;
125
219
  issues?: {
126
220
  type: string;
@@ -129,19 +223,882 @@ export declare const ApiErrorResponseSchema: z.ZodObject<{
129
223
  scope: string;
130
224
  severity: "error" | "warning";
131
225
  path?: (string | number)[] | undefined;
132
- context?: unknown;
226
+ context?: JsonValue | undefined;
133
227
  }[] | undefined;
134
228
  code?: string | undefined;
229
+ name?: string | undefined;
135
230
  scope?: string | undefined;
136
231
  severity?: "error" | "warning" | undefined;
137
- name?: string | undefined;
138
- context?: unknown;
232
+ context?: JsonValue | undefined;
139
233
  traceId?: string | undefined;
140
234
  recovery?: string | string[] | undefined;
141
235
  errorCount?: number | undefined;
142
236
  warningCount?: number | undefined;
143
- stack?: string | undefined;
144
237
  }>;
238
+ export declare const BadRequestErrorResponse: {
239
+ readonly description: "Validation or request error";
240
+ readonly content: {
241
+ readonly 'application/json': {
242
+ readonly schema: z.ZodObject<{
243
+ name: z.ZodOptional<z.ZodString>;
244
+ message: z.ZodString;
245
+ code: z.ZodOptional<z.ZodString>;
246
+ scope: z.ZodOptional<z.ZodString>;
247
+ type: z.ZodOptional<z.ZodString>;
248
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
249
+ endpoint: z.ZodString;
250
+ method: z.ZodString;
251
+ traceId: z.ZodOptional<z.ZodString>;
252
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
253
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
254
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
255
+ code: z.ZodString;
256
+ message: z.ZodString;
257
+ scope: z.ZodString;
258
+ type: z.ZodString;
259
+ severity: z.ZodEnum<["error", "warning"]>;
260
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
261
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
262
+ }, "strict", z.ZodTypeAny, {
263
+ type: string;
264
+ code: string;
265
+ message: string;
266
+ scope: string;
267
+ severity: "error" | "warning";
268
+ path?: (string | number)[] | undefined;
269
+ context?: JsonValue | undefined;
270
+ }, {
271
+ type: string;
272
+ code: string;
273
+ message: string;
274
+ scope: string;
275
+ severity: "error" | "warning";
276
+ path?: (string | number)[] | undefined;
277
+ context?: JsonValue | undefined;
278
+ }>, "many">>;
279
+ errorCount: z.ZodOptional<z.ZodNumber>;
280
+ warningCount: z.ZodOptional<z.ZodNumber>;
281
+ stack: z.ZodOptional<z.ZodString>;
282
+ }, "strict", z.ZodTypeAny, {
283
+ method: string;
284
+ message: string;
285
+ endpoint: string;
286
+ stack?: string | undefined;
287
+ type?: string | undefined;
288
+ issues?: {
289
+ type: string;
290
+ code: string;
291
+ message: string;
292
+ scope: string;
293
+ severity: "error" | "warning";
294
+ path?: (string | number)[] | undefined;
295
+ context?: JsonValue | undefined;
296
+ }[] | undefined;
297
+ code?: string | undefined;
298
+ name?: string | undefined;
299
+ scope?: string | undefined;
300
+ severity?: "error" | "warning" | undefined;
301
+ context?: JsonValue | undefined;
302
+ traceId?: string | undefined;
303
+ recovery?: string | string[] | undefined;
304
+ errorCount?: number | undefined;
305
+ warningCount?: number | undefined;
306
+ }, {
307
+ method: string;
308
+ message: string;
309
+ endpoint: string;
310
+ stack?: string | undefined;
311
+ type?: string | undefined;
312
+ issues?: {
313
+ type: string;
314
+ code: string;
315
+ message: string;
316
+ scope: string;
317
+ severity: "error" | "warning";
318
+ path?: (string | number)[] | undefined;
319
+ context?: JsonValue | undefined;
320
+ }[] | undefined;
321
+ code?: string | undefined;
322
+ name?: string | undefined;
323
+ scope?: string | undefined;
324
+ severity?: "error" | "warning" | undefined;
325
+ context?: JsonValue | undefined;
326
+ traceId?: string | undefined;
327
+ recovery?: string | string[] | undefined;
328
+ errorCount?: number | undefined;
329
+ warningCount?: number | undefined;
330
+ }>;
331
+ };
332
+ };
333
+ };
334
+ export declare const PaymentRequiredErrorResponse: {
335
+ readonly description: "Payment required";
336
+ readonly content: {
337
+ readonly 'application/json': {
338
+ readonly schema: z.ZodObject<{
339
+ name: z.ZodOptional<z.ZodString>;
340
+ message: z.ZodString;
341
+ code: z.ZodOptional<z.ZodString>;
342
+ scope: z.ZodOptional<z.ZodString>;
343
+ type: z.ZodOptional<z.ZodString>;
344
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
345
+ endpoint: z.ZodString;
346
+ method: z.ZodString;
347
+ traceId: z.ZodOptional<z.ZodString>;
348
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
349
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
350
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
351
+ code: z.ZodString;
352
+ message: z.ZodString;
353
+ scope: z.ZodString;
354
+ type: z.ZodString;
355
+ severity: z.ZodEnum<["error", "warning"]>;
356
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
357
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
358
+ }, "strict", z.ZodTypeAny, {
359
+ type: string;
360
+ code: string;
361
+ message: string;
362
+ scope: string;
363
+ severity: "error" | "warning";
364
+ path?: (string | number)[] | undefined;
365
+ context?: JsonValue | undefined;
366
+ }, {
367
+ type: string;
368
+ code: string;
369
+ message: string;
370
+ scope: string;
371
+ severity: "error" | "warning";
372
+ path?: (string | number)[] | undefined;
373
+ context?: JsonValue | undefined;
374
+ }>, "many">>;
375
+ errorCount: z.ZodOptional<z.ZodNumber>;
376
+ warningCount: z.ZodOptional<z.ZodNumber>;
377
+ stack: z.ZodOptional<z.ZodString>;
378
+ }, "strict", z.ZodTypeAny, {
379
+ method: string;
380
+ message: string;
381
+ endpoint: string;
382
+ stack?: string | undefined;
383
+ type?: string | undefined;
384
+ issues?: {
385
+ type: string;
386
+ code: string;
387
+ message: string;
388
+ scope: string;
389
+ severity: "error" | "warning";
390
+ path?: (string | number)[] | undefined;
391
+ context?: JsonValue | undefined;
392
+ }[] | undefined;
393
+ code?: string | undefined;
394
+ name?: string | undefined;
395
+ scope?: string | undefined;
396
+ severity?: "error" | "warning" | undefined;
397
+ context?: JsonValue | undefined;
398
+ traceId?: string | undefined;
399
+ recovery?: string | string[] | undefined;
400
+ errorCount?: number | undefined;
401
+ warningCount?: number | undefined;
402
+ }, {
403
+ method: string;
404
+ message: string;
405
+ endpoint: string;
406
+ stack?: string | undefined;
407
+ type?: string | undefined;
408
+ issues?: {
409
+ type: string;
410
+ code: string;
411
+ message: string;
412
+ scope: string;
413
+ severity: "error" | "warning";
414
+ path?: (string | number)[] | undefined;
415
+ context?: JsonValue | undefined;
416
+ }[] | undefined;
417
+ code?: string | undefined;
418
+ name?: string | undefined;
419
+ scope?: string | undefined;
420
+ severity?: "error" | "warning" | undefined;
421
+ context?: JsonValue | undefined;
422
+ traceId?: string | undefined;
423
+ recovery?: string | string[] | undefined;
424
+ errorCount?: number | undefined;
425
+ warningCount?: number | undefined;
426
+ }>;
427
+ };
428
+ };
429
+ };
430
+ export declare const ForbiddenErrorResponse: {
431
+ readonly description: "Forbidden";
432
+ readonly content: {
433
+ readonly 'application/json': {
434
+ readonly schema: z.ZodObject<{
435
+ name: z.ZodOptional<z.ZodString>;
436
+ message: z.ZodString;
437
+ code: z.ZodOptional<z.ZodString>;
438
+ scope: z.ZodOptional<z.ZodString>;
439
+ type: z.ZodOptional<z.ZodString>;
440
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
441
+ endpoint: z.ZodString;
442
+ method: z.ZodString;
443
+ traceId: z.ZodOptional<z.ZodString>;
444
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
445
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
446
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
447
+ code: z.ZodString;
448
+ message: z.ZodString;
449
+ scope: z.ZodString;
450
+ type: z.ZodString;
451
+ severity: z.ZodEnum<["error", "warning"]>;
452
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
453
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
454
+ }, "strict", z.ZodTypeAny, {
455
+ type: string;
456
+ code: string;
457
+ message: string;
458
+ scope: string;
459
+ severity: "error" | "warning";
460
+ path?: (string | number)[] | undefined;
461
+ context?: JsonValue | undefined;
462
+ }, {
463
+ type: string;
464
+ code: string;
465
+ message: string;
466
+ scope: string;
467
+ severity: "error" | "warning";
468
+ path?: (string | number)[] | undefined;
469
+ context?: JsonValue | undefined;
470
+ }>, "many">>;
471
+ errorCount: z.ZodOptional<z.ZodNumber>;
472
+ warningCount: z.ZodOptional<z.ZodNumber>;
473
+ stack: z.ZodOptional<z.ZodString>;
474
+ }, "strict", z.ZodTypeAny, {
475
+ method: string;
476
+ message: string;
477
+ endpoint: string;
478
+ stack?: string | undefined;
479
+ type?: string | undefined;
480
+ issues?: {
481
+ type: string;
482
+ code: string;
483
+ message: string;
484
+ scope: string;
485
+ severity: "error" | "warning";
486
+ path?: (string | number)[] | undefined;
487
+ context?: JsonValue | undefined;
488
+ }[] | undefined;
489
+ code?: string | undefined;
490
+ name?: string | undefined;
491
+ scope?: string | undefined;
492
+ severity?: "error" | "warning" | undefined;
493
+ context?: JsonValue | undefined;
494
+ traceId?: string | undefined;
495
+ recovery?: string | string[] | undefined;
496
+ errorCount?: number | undefined;
497
+ warningCount?: number | undefined;
498
+ }, {
499
+ method: string;
500
+ message: string;
501
+ endpoint: string;
502
+ stack?: string | undefined;
503
+ type?: string | undefined;
504
+ issues?: {
505
+ type: string;
506
+ code: string;
507
+ message: string;
508
+ scope: string;
509
+ severity: "error" | "warning";
510
+ path?: (string | number)[] | undefined;
511
+ context?: JsonValue | undefined;
512
+ }[] | undefined;
513
+ code?: string | undefined;
514
+ name?: string | undefined;
515
+ scope?: string | undefined;
516
+ severity?: "error" | "warning" | undefined;
517
+ context?: JsonValue | undefined;
518
+ traceId?: string | undefined;
519
+ recovery?: string | string[] | undefined;
520
+ errorCount?: number | undefined;
521
+ warningCount?: number | undefined;
522
+ }>;
523
+ };
524
+ };
525
+ };
526
+ export declare const NotFoundErrorResponse: {
527
+ readonly description: "Resource not found";
528
+ readonly content: {
529
+ readonly 'application/json': {
530
+ readonly schema: z.ZodObject<{
531
+ name: z.ZodOptional<z.ZodString>;
532
+ message: z.ZodString;
533
+ code: z.ZodOptional<z.ZodString>;
534
+ scope: z.ZodOptional<z.ZodString>;
535
+ type: z.ZodOptional<z.ZodString>;
536
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
537
+ endpoint: z.ZodString;
538
+ method: z.ZodString;
539
+ traceId: z.ZodOptional<z.ZodString>;
540
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
541
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
542
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
543
+ code: z.ZodString;
544
+ message: z.ZodString;
545
+ scope: z.ZodString;
546
+ type: z.ZodString;
547
+ severity: z.ZodEnum<["error", "warning"]>;
548
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
549
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
550
+ }, "strict", z.ZodTypeAny, {
551
+ type: string;
552
+ code: string;
553
+ message: string;
554
+ scope: string;
555
+ severity: "error" | "warning";
556
+ path?: (string | number)[] | undefined;
557
+ context?: JsonValue | undefined;
558
+ }, {
559
+ type: string;
560
+ code: string;
561
+ message: string;
562
+ scope: string;
563
+ severity: "error" | "warning";
564
+ path?: (string | number)[] | undefined;
565
+ context?: JsonValue | undefined;
566
+ }>, "many">>;
567
+ errorCount: z.ZodOptional<z.ZodNumber>;
568
+ warningCount: z.ZodOptional<z.ZodNumber>;
569
+ stack: z.ZodOptional<z.ZodString>;
570
+ }, "strict", z.ZodTypeAny, {
571
+ method: string;
572
+ message: string;
573
+ endpoint: string;
574
+ stack?: string | undefined;
575
+ type?: string | undefined;
576
+ issues?: {
577
+ type: string;
578
+ code: string;
579
+ message: string;
580
+ scope: string;
581
+ severity: "error" | "warning";
582
+ path?: (string | number)[] | undefined;
583
+ context?: JsonValue | undefined;
584
+ }[] | undefined;
585
+ code?: string | undefined;
586
+ name?: string | undefined;
587
+ scope?: string | undefined;
588
+ severity?: "error" | "warning" | undefined;
589
+ context?: JsonValue | undefined;
590
+ traceId?: string | undefined;
591
+ recovery?: string | string[] | undefined;
592
+ errorCount?: number | undefined;
593
+ warningCount?: number | undefined;
594
+ }, {
595
+ method: string;
596
+ message: string;
597
+ endpoint: string;
598
+ stack?: string | undefined;
599
+ type?: string | undefined;
600
+ issues?: {
601
+ type: string;
602
+ code: string;
603
+ message: string;
604
+ scope: string;
605
+ severity: "error" | "warning";
606
+ path?: (string | number)[] | undefined;
607
+ context?: JsonValue | undefined;
608
+ }[] | undefined;
609
+ code?: string | undefined;
610
+ name?: string | undefined;
611
+ scope?: string | undefined;
612
+ severity?: "error" | "warning" | undefined;
613
+ context?: JsonValue | undefined;
614
+ traceId?: string | undefined;
615
+ recovery?: string | string[] | undefined;
616
+ errorCount?: number | undefined;
617
+ warningCount?: number | undefined;
618
+ }>;
619
+ };
620
+ };
621
+ };
622
+ export declare const TimeoutErrorResponse: {
623
+ readonly description: "Request timed out";
624
+ readonly content: {
625
+ readonly 'application/json': {
626
+ readonly schema: z.ZodObject<{
627
+ name: z.ZodOptional<z.ZodString>;
628
+ message: z.ZodString;
629
+ code: z.ZodOptional<z.ZodString>;
630
+ scope: z.ZodOptional<z.ZodString>;
631
+ type: z.ZodOptional<z.ZodString>;
632
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
633
+ endpoint: z.ZodString;
634
+ method: z.ZodString;
635
+ traceId: z.ZodOptional<z.ZodString>;
636
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
637
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
638
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
639
+ code: z.ZodString;
640
+ message: z.ZodString;
641
+ scope: z.ZodString;
642
+ type: z.ZodString;
643
+ severity: z.ZodEnum<["error", "warning"]>;
644
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
645
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
646
+ }, "strict", z.ZodTypeAny, {
647
+ type: string;
648
+ code: string;
649
+ message: string;
650
+ scope: string;
651
+ severity: "error" | "warning";
652
+ path?: (string | number)[] | undefined;
653
+ context?: JsonValue | undefined;
654
+ }, {
655
+ type: string;
656
+ code: string;
657
+ message: string;
658
+ scope: string;
659
+ severity: "error" | "warning";
660
+ path?: (string | number)[] | undefined;
661
+ context?: JsonValue | undefined;
662
+ }>, "many">>;
663
+ errorCount: z.ZodOptional<z.ZodNumber>;
664
+ warningCount: z.ZodOptional<z.ZodNumber>;
665
+ stack: z.ZodOptional<z.ZodString>;
666
+ }, "strict", z.ZodTypeAny, {
667
+ method: string;
668
+ message: string;
669
+ endpoint: string;
670
+ stack?: string | undefined;
671
+ type?: string | undefined;
672
+ issues?: {
673
+ type: string;
674
+ code: string;
675
+ message: string;
676
+ scope: string;
677
+ severity: "error" | "warning";
678
+ path?: (string | number)[] | undefined;
679
+ context?: JsonValue | undefined;
680
+ }[] | undefined;
681
+ code?: string | undefined;
682
+ name?: string | undefined;
683
+ scope?: string | undefined;
684
+ severity?: "error" | "warning" | undefined;
685
+ context?: JsonValue | undefined;
686
+ traceId?: string | undefined;
687
+ recovery?: string | string[] | undefined;
688
+ errorCount?: number | undefined;
689
+ warningCount?: number | undefined;
690
+ }, {
691
+ method: string;
692
+ message: string;
693
+ endpoint: string;
694
+ stack?: string | undefined;
695
+ type?: string | undefined;
696
+ issues?: {
697
+ type: string;
698
+ code: string;
699
+ message: string;
700
+ scope: string;
701
+ severity: "error" | "warning";
702
+ path?: (string | number)[] | undefined;
703
+ context?: JsonValue | undefined;
704
+ }[] | undefined;
705
+ code?: string | undefined;
706
+ name?: string | undefined;
707
+ scope?: string | undefined;
708
+ severity?: "error" | "warning" | undefined;
709
+ context?: JsonValue | undefined;
710
+ traceId?: string | undefined;
711
+ recovery?: string | string[] | undefined;
712
+ errorCount?: number | undefined;
713
+ warningCount?: number | undefined;
714
+ }>;
715
+ };
716
+ };
717
+ };
718
+ export declare const ConflictErrorResponse: {
719
+ readonly description: "Conflict";
720
+ readonly content: {
721
+ readonly 'application/json': {
722
+ readonly schema: z.ZodObject<{
723
+ name: z.ZodOptional<z.ZodString>;
724
+ message: z.ZodString;
725
+ code: z.ZodOptional<z.ZodString>;
726
+ scope: z.ZodOptional<z.ZodString>;
727
+ type: z.ZodOptional<z.ZodString>;
728
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
729
+ endpoint: z.ZodString;
730
+ method: z.ZodString;
731
+ traceId: z.ZodOptional<z.ZodString>;
732
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
733
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
734
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
735
+ code: z.ZodString;
736
+ message: z.ZodString;
737
+ scope: z.ZodString;
738
+ type: z.ZodString;
739
+ severity: z.ZodEnum<["error", "warning"]>;
740
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
741
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
742
+ }, "strict", z.ZodTypeAny, {
743
+ type: string;
744
+ code: string;
745
+ message: string;
746
+ scope: string;
747
+ severity: "error" | "warning";
748
+ path?: (string | number)[] | undefined;
749
+ context?: JsonValue | undefined;
750
+ }, {
751
+ type: string;
752
+ code: string;
753
+ message: string;
754
+ scope: string;
755
+ severity: "error" | "warning";
756
+ path?: (string | number)[] | undefined;
757
+ context?: JsonValue | undefined;
758
+ }>, "many">>;
759
+ errorCount: z.ZodOptional<z.ZodNumber>;
760
+ warningCount: z.ZodOptional<z.ZodNumber>;
761
+ stack: z.ZodOptional<z.ZodString>;
762
+ }, "strict", z.ZodTypeAny, {
763
+ method: string;
764
+ message: string;
765
+ endpoint: string;
766
+ stack?: string | undefined;
767
+ type?: string | undefined;
768
+ issues?: {
769
+ type: string;
770
+ code: string;
771
+ message: string;
772
+ scope: string;
773
+ severity: "error" | "warning";
774
+ path?: (string | number)[] | undefined;
775
+ context?: JsonValue | undefined;
776
+ }[] | undefined;
777
+ code?: string | undefined;
778
+ name?: string | undefined;
779
+ scope?: string | undefined;
780
+ severity?: "error" | "warning" | undefined;
781
+ context?: JsonValue | undefined;
782
+ traceId?: string | undefined;
783
+ recovery?: string | string[] | undefined;
784
+ errorCount?: number | undefined;
785
+ warningCount?: number | undefined;
786
+ }, {
787
+ method: string;
788
+ message: string;
789
+ endpoint: string;
790
+ stack?: string | undefined;
791
+ type?: string | undefined;
792
+ issues?: {
793
+ type: string;
794
+ code: string;
795
+ message: string;
796
+ scope: string;
797
+ severity: "error" | "warning";
798
+ path?: (string | number)[] | undefined;
799
+ context?: JsonValue | undefined;
800
+ }[] | undefined;
801
+ code?: string | undefined;
802
+ name?: string | undefined;
803
+ scope?: string | undefined;
804
+ severity?: "error" | "warning" | undefined;
805
+ context?: JsonValue | undefined;
806
+ traceId?: string | undefined;
807
+ recovery?: string | string[] | undefined;
808
+ errorCount?: number | undefined;
809
+ warningCount?: number | undefined;
810
+ }>;
811
+ };
812
+ };
813
+ };
814
+ export declare const RateLimitErrorResponse: {
815
+ readonly description: "Rate limited";
816
+ readonly content: {
817
+ readonly 'application/json': {
818
+ readonly schema: z.ZodObject<{
819
+ name: z.ZodOptional<z.ZodString>;
820
+ message: z.ZodString;
821
+ code: z.ZodOptional<z.ZodString>;
822
+ scope: z.ZodOptional<z.ZodString>;
823
+ type: z.ZodOptional<z.ZodString>;
824
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
825
+ endpoint: z.ZodString;
826
+ method: z.ZodString;
827
+ traceId: z.ZodOptional<z.ZodString>;
828
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
829
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
830
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
831
+ code: z.ZodString;
832
+ message: z.ZodString;
833
+ scope: z.ZodString;
834
+ type: z.ZodString;
835
+ severity: z.ZodEnum<["error", "warning"]>;
836
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
837
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
838
+ }, "strict", z.ZodTypeAny, {
839
+ type: string;
840
+ code: string;
841
+ message: string;
842
+ scope: string;
843
+ severity: "error" | "warning";
844
+ path?: (string | number)[] | undefined;
845
+ context?: JsonValue | undefined;
846
+ }, {
847
+ type: string;
848
+ code: string;
849
+ message: string;
850
+ scope: string;
851
+ severity: "error" | "warning";
852
+ path?: (string | number)[] | undefined;
853
+ context?: JsonValue | undefined;
854
+ }>, "many">>;
855
+ errorCount: z.ZodOptional<z.ZodNumber>;
856
+ warningCount: z.ZodOptional<z.ZodNumber>;
857
+ stack: z.ZodOptional<z.ZodString>;
858
+ }, "strict", z.ZodTypeAny, {
859
+ method: string;
860
+ message: string;
861
+ endpoint: string;
862
+ stack?: string | undefined;
863
+ type?: string | undefined;
864
+ issues?: {
865
+ type: string;
866
+ code: string;
867
+ message: string;
868
+ scope: string;
869
+ severity: "error" | "warning";
870
+ path?: (string | number)[] | undefined;
871
+ context?: JsonValue | undefined;
872
+ }[] | undefined;
873
+ code?: string | undefined;
874
+ name?: string | undefined;
875
+ scope?: string | undefined;
876
+ severity?: "error" | "warning" | undefined;
877
+ context?: JsonValue | undefined;
878
+ traceId?: string | undefined;
879
+ recovery?: string | string[] | undefined;
880
+ errorCount?: number | undefined;
881
+ warningCount?: number | undefined;
882
+ }, {
883
+ method: string;
884
+ message: string;
885
+ endpoint: string;
886
+ stack?: string | undefined;
887
+ type?: string | undefined;
888
+ issues?: {
889
+ type: string;
890
+ code: string;
891
+ message: string;
892
+ scope: string;
893
+ severity: "error" | "warning";
894
+ path?: (string | number)[] | undefined;
895
+ context?: JsonValue | undefined;
896
+ }[] | undefined;
897
+ code?: string | undefined;
898
+ name?: string | undefined;
899
+ scope?: string | undefined;
900
+ severity?: "error" | "warning" | undefined;
901
+ context?: JsonValue | undefined;
902
+ traceId?: string | undefined;
903
+ recovery?: string | string[] | undefined;
904
+ errorCount?: number | undefined;
905
+ warningCount?: number | undefined;
906
+ }>;
907
+ };
908
+ };
909
+ };
910
+ export declare const InternalErrorResponse: {
911
+ readonly description: "Internal server error";
912
+ readonly content: {
913
+ readonly 'application/json': {
914
+ readonly schema: z.ZodObject<{
915
+ name: z.ZodOptional<z.ZodString>;
916
+ message: z.ZodString;
917
+ code: z.ZodOptional<z.ZodString>;
918
+ scope: z.ZodOptional<z.ZodString>;
919
+ type: z.ZodOptional<z.ZodString>;
920
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
921
+ endpoint: z.ZodString;
922
+ method: z.ZodString;
923
+ traceId: z.ZodOptional<z.ZodString>;
924
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
925
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
926
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
927
+ code: z.ZodString;
928
+ message: z.ZodString;
929
+ scope: z.ZodString;
930
+ type: z.ZodString;
931
+ severity: z.ZodEnum<["error", "warning"]>;
932
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
933
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
934
+ }, "strict", z.ZodTypeAny, {
935
+ type: string;
936
+ code: string;
937
+ message: string;
938
+ scope: string;
939
+ severity: "error" | "warning";
940
+ path?: (string | number)[] | undefined;
941
+ context?: JsonValue | undefined;
942
+ }, {
943
+ type: string;
944
+ code: string;
945
+ message: string;
946
+ scope: string;
947
+ severity: "error" | "warning";
948
+ path?: (string | number)[] | undefined;
949
+ context?: JsonValue | undefined;
950
+ }>, "many">>;
951
+ errorCount: z.ZodOptional<z.ZodNumber>;
952
+ warningCount: z.ZodOptional<z.ZodNumber>;
953
+ stack: z.ZodOptional<z.ZodString>;
954
+ }, "strict", z.ZodTypeAny, {
955
+ method: string;
956
+ message: string;
957
+ endpoint: string;
958
+ stack?: string | undefined;
959
+ type?: string | undefined;
960
+ issues?: {
961
+ type: string;
962
+ code: string;
963
+ message: string;
964
+ scope: string;
965
+ severity: "error" | "warning";
966
+ path?: (string | number)[] | undefined;
967
+ context?: JsonValue | undefined;
968
+ }[] | undefined;
969
+ code?: string | undefined;
970
+ name?: string | undefined;
971
+ scope?: string | undefined;
972
+ severity?: "error" | "warning" | undefined;
973
+ context?: JsonValue | undefined;
974
+ traceId?: string | undefined;
975
+ recovery?: string | string[] | undefined;
976
+ errorCount?: number | undefined;
977
+ warningCount?: number | undefined;
978
+ }, {
979
+ method: string;
980
+ message: string;
981
+ endpoint: string;
982
+ stack?: string | undefined;
983
+ type?: string | undefined;
984
+ issues?: {
985
+ type: string;
986
+ code: string;
987
+ message: string;
988
+ scope: string;
989
+ severity: "error" | "warning";
990
+ path?: (string | number)[] | undefined;
991
+ context?: JsonValue | undefined;
992
+ }[] | undefined;
993
+ code?: string | undefined;
994
+ name?: string | undefined;
995
+ scope?: string | undefined;
996
+ severity?: "error" | "warning" | undefined;
997
+ context?: JsonValue | undefined;
998
+ traceId?: string | undefined;
999
+ recovery?: string | string[] | undefined;
1000
+ errorCount?: number | undefined;
1001
+ warningCount?: number | undefined;
1002
+ }>;
1003
+ };
1004
+ };
1005
+ };
1006
+ export declare const UpstreamErrorResponse: {
1007
+ readonly description: "Upstream service failure";
1008
+ readonly content: {
1009
+ readonly 'application/json': {
1010
+ readonly schema: z.ZodObject<{
1011
+ name: z.ZodOptional<z.ZodString>;
1012
+ message: z.ZodString;
1013
+ code: z.ZodOptional<z.ZodString>;
1014
+ scope: z.ZodOptional<z.ZodString>;
1015
+ type: z.ZodOptional<z.ZodString>;
1016
+ severity: z.ZodOptional<z.ZodEnum<["error", "warning"]>>;
1017
+ endpoint: z.ZodString;
1018
+ method: z.ZodString;
1019
+ traceId: z.ZodOptional<z.ZodString>;
1020
+ recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1021
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
1022
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1023
+ code: z.ZodString;
1024
+ message: z.ZodString;
1025
+ scope: z.ZodString;
1026
+ type: z.ZodString;
1027
+ severity: z.ZodEnum<["error", "warning"]>;
1028
+ path: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
1029
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
1030
+ }, "strict", z.ZodTypeAny, {
1031
+ type: string;
1032
+ code: string;
1033
+ message: string;
1034
+ scope: string;
1035
+ severity: "error" | "warning";
1036
+ path?: (string | number)[] | undefined;
1037
+ context?: JsonValue | undefined;
1038
+ }, {
1039
+ type: string;
1040
+ code: string;
1041
+ message: string;
1042
+ scope: string;
1043
+ severity: "error" | "warning";
1044
+ path?: (string | number)[] | undefined;
1045
+ context?: JsonValue | undefined;
1046
+ }>, "many">>;
1047
+ errorCount: z.ZodOptional<z.ZodNumber>;
1048
+ warningCount: z.ZodOptional<z.ZodNumber>;
1049
+ stack: z.ZodOptional<z.ZodString>;
1050
+ }, "strict", z.ZodTypeAny, {
1051
+ method: string;
1052
+ message: string;
1053
+ endpoint: string;
1054
+ stack?: string | undefined;
1055
+ type?: string | undefined;
1056
+ issues?: {
1057
+ type: string;
1058
+ code: string;
1059
+ message: string;
1060
+ scope: string;
1061
+ severity: "error" | "warning";
1062
+ path?: (string | number)[] | undefined;
1063
+ context?: JsonValue | undefined;
1064
+ }[] | undefined;
1065
+ code?: string | undefined;
1066
+ name?: string | undefined;
1067
+ scope?: string | undefined;
1068
+ severity?: "error" | "warning" | undefined;
1069
+ context?: JsonValue | undefined;
1070
+ traceId?: string | undefined;
1071
+ recovery?: string | string[] | undefined;
1072
+ errorCount?: number | undefined;
1073
+ warningCount?: number | undefined;
1074
+ }, {
1075
+ method: string;
1076
+ message: string;
1077
+ endpoint: string;
1078
+ stack?: string | undefined;
1079
+ type?: string | undefined;
1080
+ issues?: {
1081
+ type: string;
1082
+ code: string;
1083
+ message: string;
1084
+ scope: string;
1085
+ severity: "error" | "warning";
1086
+ path?: (string | number)[] | undefined;
1087
+ context?: JsonValue | undefined;
1088
+ }[] | undefined;
1089
+ code?: string | undefined;
1090
+ name?: string | undefined;
1091
+ scope?: string | undefined;
1092
+ severity?: "error" | "warning" | undefined;
1093
+ context?: JsonValue | undefined;
1094
+ traceId?: string | undefined;
1095
+ recovery?: string | string[] | undefined;
1096
+ errorCount?: number | undefined;
1097
+ warningCount?: number | undefined;
1098
+ }>;
1099
+ };
1100
+ };
1101
+ };
145
1102
  export { MemorySchema } from '@dexto/core';
146
1103
  export { LLMConfigBaseSchema, type ValidatedLLMConfig } from '@dexto/core';
147
1104
  export declare const TextPartSchema: z.ZodObject<{
@@ -183,6 +1140,46 @@ export declare const FilePartSchema: z.ZodObject<{
183
1140
  data: string;
184
1141
  filename?: string | undefined;
185
1142
  }>;
1143
+ export declare const ResourcePartSchema: z.ZodObject<{
1144
+ type: z.ZodLiteral<"resource">;
1145
+ uri: z.ZodString;
1146
+ name: z.ZodString;
1147
+ mimeType: z.ZodString;
1148
+ kind: z.ZodEnum<["text", "image", "audio", "video", "binary"]>;
1149
+ size: z.ZodOptional<z.ZodNumber>;
1150
+ metadata: z.ZodOptional<z.ZodObject<{
1151
+ mtimeMs: z.ZodOptional<z.ZodNumber>;
1152
+ source: z.ZodOptional<z.ZodEnum<["filesystem", "upload", "generated", "tool", "remote"]>>;
1153
+ }, "strict", z.ZodTypeAny, {
1154
+ mtimeMs?: number | undefined;
1155
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1156
+ }, {
1157
+ mtimeMs?: number | undefined;
1158
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1159
+ }>>;
1160
+ }, "strict", z.ZodTypeAny, {
1161
+ type: "resource";
1162
+ name: string;
1163
+ mimeType: string;
1164
+ uri: string;
1165
+ kind: "binary" | "text" | "image" | "audio" | "video";
1166
+ size?: number | undefined;
1167
+ metadata?: {
1168
+ mtimeMs?: number | undefined;
1169
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1170
+ } | undefined;
1171
+ }, {
1172
+ type: "resource";
1173
+ name: string;
1174
+ mimeType: string;
1175
+ uri: string;
1176
+ kind: "binary" | "text" | "image" | "audio" | "video";
1177
+ size?: number | undefined;
1178
+ metadata?: {
1179
+ mtimeMs?: number | undefined;
1180
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1181
+ } | undefined;
1182
+ }>;
186
1183
  export declare const UIResourcePartSchema: z.ZodObject<{
187
1184
  type: z.ZodLiteral<"ui-resource">;
188
1185
  uri: z.ZodString;
@@ -219,7 +1216,6 @@ export declare const UIResourcePartSchema: z.ZodObject<{
219
1216
  mimeType: string;
220
1217
  uri: string;
221
1218
  content?: string | undefined;
222
- blob?: string | undefined;
223
1219
  metadata?: {
224
1220
  title?: string | undefined;
225
1221
  preferredSize?: {
@@ -227,12 +1223,12 @@ export declare const UIResourcePartSchema: z.ZodObject<{
227
1223
  height: number;
228
1224
  } | undefined;
229
1225
  } | undefined;
1226
+ blob?: string | undefined;
230
1227
  }, {
231
1228
  type: "ui-resource";
232
1229
  mimeType: string;
233
1230
  uri: string;
234
1231
  content?: string | undefined;
235
- blob?: string | undefined;
236
1232
  metadata?: {
237
1233
  title?: string | undefined;
238
1234
  preferredSize?: {
@@ -240,6 +1236,7 @@ export declare const UIResourcePartSchema: z.ZodObject<{
240
1236
  height: number;
241
1237
  } | undefined;
242
1238
  } | undefined;
1239
+ blob?: string | undefined;
243
1240
  }>;
244
1241
  export declare const ContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
245
1242
  type: z.ZodLiteral<"text">;
@@ -277,6 +1274,45 @@ export declare const ContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
277
1274
  mimeType: string;
278
1275
  data: string;
279
1276
  filename?: string | undefined;
1277
+ }>, z.ZodObject<{
1278
+ type: z.ZodLiteral<"resource">;
1279
+ uri: z.ZodString;
1280
+ name: z.ZodString;
1281
+ mimeType: z.ZodString;
1282
+ kind: z.ZodEnum<["text", "image", "audio", "video", "binary"]>;
1283
+ size: z.ZodOptional<z.ZodNumber>;
1284
+ metadata: z.ZodOptional<z.ZodObject<{
1285
+ mtimeMs: z.ZodOptional<z.ZodNumber>;
1286
+ source: z.ZodOptional<z.ZodEnum<["filesystem", "upload", "generated", "tool", "remote"]>>;
1287
+ }, "strict", z.ZodTypeAny, {
1288
+ mtimeMs?: number | undefined;
1289
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1290
+ }, {
1291
+ mtimeMs?: number | undefined;
1292
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1293
+ }>>;
1294
+ }, "strict", z.ZodTypeAny, {
1295
+ type: "resource";
1296
+ name: string;
1297
+ mimeType: string;
1298
+ uri: string;
1299
+ kind: "binary" | "text" | "image" | "audio" | "video";
1300
+ size?: number | undefined;
1301
+ metadata?: {
1302
+ mtimeMs?: number | undefined;
1303
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1304
+ } | undefined;
1305
+ }, {
1306
+ type: "resource";
1307
+ name: string;
1308
+ mimeType: string;
1309
+ uri: string;
1310
+ kind: "binary" | "text" | "image" | "audio" | "video";
1311
+ size?: number | undefined;
1312
+ metadata?: {
1313
+ mtimeMs?: number | undefined;
1314
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1315
+ } | undefined;
280
1316
  }>, z.ZodObject<{
281
1317
  type: z.ZodLiteral<"ui-resource">;
282
1318
  uri: z.ZodString;
@@ -313,7 +1349,6 @@ export declare const ContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
313
1349
  mimeType: string;
314
1350
  uri: string;
315
1351
  content?: string | undefined;
316
- blob?: string | undefined;
317
1352
  metadata?: {
318
1353
  title?: string | undefined;
319
1354
  preferredSize?: {
@@ -321,12 +1356,12 @@ export declare const ContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
321
1356
  height: number;
322
1357
  } | undefined;
323
1358
  } | undefined;
1359
+ blob?: string | undefined;
324
1360
  }, {
325
1361
  type: "ui-resource";
326
1362
  mimeType: string;
327
1363
  uri: string;
328
1364
  content?: string | undefined;
329
- blob?: string | undefined;
330
1365
  metadata?: {
331
1366
  title?: string | undefined;
332
1367
  preferredSize?: {
@@ -334,6 +1369,7 @@ export declare const ContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
334
1369
  height: number;
335
1370
  } | undefined;
336
1371
  } | undefined;
1372
+ blob?: string | undefined;
337
1373
  }>]>;
338
1374
  export declare const RequestContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
339
1375
  type: z.ZodLiteral<"text">;
@@ -409,6 +1445,7 @@ export declare const RequestContentSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z
409
1445
  data: string;
410
1446
  filename?: string | undefined;
411
1447
  }>]>, "many">]>;
1448
+ export declare function toApiInternalMessage(message: CoreInternalMessage): z.output<typeof InternalMessageSchema>;
412
1449
  export declare function toContentInput(rawContent: z.output<typeof RequestContentSchema>): CoreContentPart[];
413
1450
  export declare function toApiContentPart(part: CoreContentPart): z.output<typeof ContentPartSchema>;
414
1451
  export declare const ToolCallSchema: z.ZodObject<{
@@ -502,6 +1539,45 @@ export declare const InternalMessageSchema: z.ZodObject<{
502
1539
  mimeType: string;
503
1540
  data: string;
504
1541
  filename?: string | undefined;
1542
+ }>, z.ZodObject<{
1543
+ type: z.ZodLiteral<"resource">;
1544
+ uri: z.ZodString;
1545
+ name: z.ZodString;
1546
+ mimeType: z.ZodString;
1547
+ kind: z.ZodEnum<["text", "image", "audio", "video", "binary"]>;
1548
+ size: z.ZodOptional<z.ZodNumber>;
1549
+ metadata: z.ZodOptional<z.ZodObject<{
1550
+ mtimeMs: z.ZodOptional<z.ZodNumber>;
1551
+ source: z.ZodOptional<z.ZodEnum<["filesystem", "upload", "generated", "tool", "remote"]>>;
1552
+ }, "strict", z.ZodTypeAny, {
1553
+ mtimeMs?: number | undefined;
1554
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1555
+ }, {
1556
+ mtimeMs?: number | undefined;
1557
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1558
+ }>>;
1559
+ }, "strict", z.ZodTypeAny, {
1560
+ type: "resource";
1561
+ name: string;
1562
+ mimeType: string;
1563
+ uri: string;
1564
+ kind: "binary" | "text" | "image" | "audio" | "video";
1565
+ size?: number | undefined;
1566
+ metadata?: {
1567
+ mtimeMs?: number | undefined;
1568
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1569
+ } | undefined;
1570
+ }, {
1571
+ type: "resource";
1572
+ name: string;
1573
+ mimeType: string;
1574
+ uri: string;
1575
+ kind: "binary" | "text" | "image" | "audio" | "video";
1576
+ size?: number | undefined;
1577
+ metadata?: {
1578
+ mtimeMs?: number | undefined;
1579
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1580
+ } | undefined;
505
1581
  }>, z.ZodObject<{
506
1582
  type: z.ZodLiteral<"ui-resource">;
507
1583
  uri: z.ZodString;
@@ -538,7 +1614,6 @@ export declare const InternalMessageSchema: z.ZodObject<{
538
1614
  mimeType: string;
539
1615
  uri: string;
540
1616
  content?: string | undefined;
541
- blob?: string | undefined;
542
1617
  metadata?: {
543
1618
  title?: string | undefined;
544
1619
  preferredSize?: {
@@ -546,12 +1621,12 @@ export declare const InternalMessageSchema: z.ZodObject<{
546
1621
  height: number;
547
1622
  } | undefined;
548
1623
  } | undefined;
1624
+ blob?: string | undefined;
549
1625
  }, {
550
1626
  type: "ui-resource";
551
1627
  mimeType: string;
552
1628
  uri: string;
553
1629
  content?: string | undefined;
554
- blob?: string | undefined;
555
1630
  metadata?: {
556
1631
  title?: string | undefined;
557
1632
  preferredSize?: {
@@ -559,6 +1634,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
559
1634
  height: number;
560
1635
  } | undefined;
561
1636
  } | undefined;
1637
+ blob?: string | undefined;
562
1638
  }>]>, "many">]>;
563
1639
  reasoning: z.ZodOptional<z.ZodString>;
564
1640
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -632,12 +1708,22 @@ export declare const InternalMessageSchema: z.ZodObject<{
632
1708
  mimeType: string;
633
1709
  data: string;
634
1710
  filename?: string | undefined;
1711
+ } | {
1712
+ type: "resource";
1713
+ name: string;
1714
+ mimeType: string;
1715
+ uri: string;
1716
+ kind: "binary" | "text" | "image" | "audio" | "video";
1717
+ size?: number | undefined;
1718
+ metadata?: {
1719
+ mtimeMs?: number | undefined;
1720
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1721
+ } | undefined;
635
1722
  } | {
636
1723
  type: "ui-resource";
637
1724
  mimeType: string;
638
1725
  uri: string;
639
1726
  content?: string | undefined;
640
- blob?: string | undefined;
641
1727
  metadata?: {
642
1728
  title?: string | undefined;
643
1729
  preferredSize?: {
@@ -645,9 +1731,10 @@ export declare const InternalMessageSchema: z.ZodObject<{
645
1731
  height: number;
646
1732
  } | undefined;
647
1733
  } | undefined;
1734
+ blob?: string | undefined;
648
1735
  })[] | null;
649
- role: "system" | "user" | "assistant" | "tool";
650
- usageScopeId?: string | undefined;
1736
+ role: "system" | "tool" | "user" | "assistant";
1737
+ success?: boolean | undefined;
651
1738
  name?: string | undefined;
652
1739
  id?: string | undefined;
653
1740
  timestamp?: number | undefined;
@@ -662,6 +1749,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
662
1749
  } | undefined;
663
1750
  estimatedCost?: number | undefined;
664
1751
  pricingStatus?: "estimated" | "unpriced" | undefined;
1752
+ usageScopeId?: string | undefined;
665
1753
  model?: string | undefined;
666
1754
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
667
1755
  toolCalls?: {
@@ -673,7 +1761,6 @@ export declare const InternalMessageSchema: z.ZodObject<{
673
1761
  id: string;
674
1762
  }[] | undefined;
675
1763
  toolCallId?: string | undefined;
676
- success?: boolean | undefined;
677
1764
  }, {
678
1765
  content: string | ({
679
1766
  type: "text";
@@ -687,12 +1774,22 @@ export declare const InternalMessageSchema: z.ZodObject<{
687
1774
  mimeType: string;
688
1775
  data: string;
689
1776
  filename?: string | undefined;
1777
+ } | {
1778
+ type: "resource";
1779
+ name: string;
1780
+ mimeType: string;
1781
+ uri: string;
1782
+ kind: "binary" | "text" | "image" | "audio" | "video";
1783
+ size?: number | undefined;
1784
+ metadata?: {
1785
+ mtimeMs?: number | undefined;
1786
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
1787
+ } | undefined;
690
1788
  } | {
691
1789
  type: "ui-resource";
692
1790
  mimeType: string;
693
1791
  uri: string;
694
1792
  content?: string | undefined;
695
- blob?: string | undefined;
696
1793
  metadata?: {
697
1794
  title?: string | undefined;
698
1795
  preferredSize?: {
@@ -700,9 +1797,10 @@ export declare const InternalMessageSchema: z.ZodObject<{
700
1797
  height: number;
701
1798
  } | undefined;
702
1799
  } | undefined;
1800
+ blob?: string | undefined;
703
1801
  })[] | null;
704
- role: "system" | "user" | "assistant" | "tool";
705
- usageScopeId?: string | undefined;
1802
+ role: "system" | "tool" | "user" | "assistant";
1803
+ success?: boolean | undefined;
706
1804
  name?: string | undefined;
707
1805
  id?: string | undefined;
708
1806
  timestamp?: number | undefined;
@@ -717,6 +1815,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
717
1815
  } | undefined;
718
1816
  estimatedCost?: number | undefined;
719
1817
  pricingStatus?: "estimated" | "unpriced" | undefined;
1818
+ usageScopeId?: string | undefined;
720
1819
  model?: string | undefined;
721
1820
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
722
1821
  toolCalls?: {
@@ -728,7 +1827,6 @@ export declare const InternalMessageSchema: z.ZodObject<{
728
1827
  id: string;
729
1828
  }[] | undefined;
730
1829
  toolCallId?: string | undefined;
731
- success?: boolean | undefined;
732
1830
  }>;
733
1831
  export type TextPart = z.output<typeof TextPartSchema>;
734
1832
  export type ImagePart = z.output<typeof ImagePartSchema>;
@@ -1393,13 +2491,21 @@ export declare const WorkspaceSchema: z.ZodObject<{
1393
2491
  export type Workspace = z.output<typeof WorkspaceSchema>;
1394
2492
  export declare const ScheduleTaskSchema: z.ZodObject<{
1395
2493
  instruction: z.ZodString;
1396
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2494
+ metadata: z.ZodOptional<z.ZodType<{
2495
+ [key: string]: JsonValue;
2496
+ }, z.ZodTypeDef, {
2497
+ [key: string]: JsonValue;
2498
+ }>>;
1397
2499
  }, "strict", z.ZodTypeAny, {
1398
2500
  instruction: string;
1399
- metadata?: Record<string, unknown> | undefined;
2501
+ metadata?: {
2502
+ [key: string]: JsonValue;
2503
+ } | undefined;
1400
2504
  }, {
1401
2505
  instruction: string;
1402
- metadata?: Record<string, unknown> | undefined;
2506
+ metadata?: {
2507
+ [key: string]: JsonValue;
2508
+ } | undefined;
1403
2509
  }>;
1404
2510
  export declare const ScheduleSchema: z.ZodObject<{
1405
2511
  id: z.ZodString;
@@ -1409,13 +2515,21 @@ export declare const ScheduleSchema: z.ZodObject<{
1409
2515
  enabled: z.ZodBoolean;
1410
2516
  task: z.ZodObject<{
1411
2517
  instruction: z.ZodString;
1412
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2518
+ metadata: z.ZodOptional<z.ZodType<{
2519
+ [key: string]: JsonValue;
2520
+ }, z.ZodTypeDef, {
2521
+ [key: string]: JsonValue;
2522
+ }>>;
1413
2523
  }, "strict", z.ZodTypeAny, {
1414
2524
  instruction: string;
1415
- metadata?: Record<string, unknown> | undefined;
2525
+ metadata?: {
2526
+ [key: string]: JsonValue;
2527
+ } | undefined;
1416
2528
  }, {
1417
2529
  instruction: string;
1418
- metadata?: Record<string, unknown> | undefined;
2530
+ metadata?: {
2531
+ [key: string]: JsonValue;
2532
+ } | undefined;
1419
2533
  }>;
1420
2534
  sessionMode: z.ZodEnum<["ephemeral", "dedicated", "inherit", "fixed"]>;
1421
2535
  sessionId: z.ZodOptional<z.ZodString>;
@@ -1437,7 +2551,9 @@ export declare const ScheduleSchema: z.ZodObject<{
1437
2551
  enabled: boolean;
1438
2552
  task: {
1439
2553
  instruction: string;
1440
- metadata?: Record<string, unknown> | undefined;
2554
+ metadata?: {
2555
+ [key: string]: JsonValue;
2556
+ } | undefined;
1441
2557
  };
1442
2558
  sessionMode: "fixed" | "ephemeral" | "dedicated" | "inherit";
1443
2559
  updatedAt: number;
@@ -1458,7 +2574,9 @@ export declare const ScheduleSchema: z.ZodObject<{
1458
2574
  enabled: boolean;
1459
2575
  task: {
1460
2576
  instruction: string;
1461
- metadata?: Record<string, unknown> | undefined;
2577
+ metadata?: {
2578
+ [key: string]: JsonValue;
2579
+ } | undefined;
1462
2580
  };
1463
2581
  sessionMode: "fixed" | "ephemeral" | "dedicated" | "inherit";
1464
2582
  updatedAt: number;
@@ -1482,7 +2600,7 @@ export declare const ExecutionLogSchema: z.ZodObject<{
1482
2600
  error: z.ZodOptional<z.ZodString>;
1483
2601
  result: z.ZodOptional<z.ZodString>;
1484
2602
  }, "strict", z.ZodTypeAny, {
1485
- status: "success" | "pending" | "failed" | "timeout";
2603
+ status: "timeout" | "failed" | "success" | "pending";
1486
2604
  id: string;
1487
2605
  scheduleId: string;
1488
2606
  triggeredAt: number;
@@ -1491,7 +2609,7 @@ export declare const ExecutionLogSchema: z.ZodObject<{
1491
2609
  duration?: number | undefined;
1492
2610
  result?: string | undefined;
1493
2611
  }, {
1494
- status: "success" | "pending" | "failed" | "timeout";
2612
+ status: "timeout" | "failed" | "success" | "pending";
1495
2613
  id: string;
1496
2614
  scheduleId: string;
1497
2615
  triggeredAt: number;
@@ -1543,6 +2661,45 @@ export declare const SearchResultSchema: z.ZodObject<{
1543
2661
  mimeType: string;
1544
2662
  data: string;
1545
2663
  filename?: string | undefined;
2664
+ }>, z.ZodObject<{
2665
+ type: z.ZodLiteral<"resource">;
2666
+ uri: z.ZodString;
2667
+ name: z.ZodString;
2668
+ mimeType: z.ZodString;
2669
+ kind: z.ZodEnum<["text", "image", "audio", "video", "binary"]>;
2670
+ size: z.ZodOptional<z.ZodNumber>;
2671
+ metadata: z.ZodOptional<z.ZodObject<{
2672
+ mtimeMs: z.ZodOptional<z.ZodNumber>;
2673
+ source: z.ZodOptional<z.ZodEnum<["filesystem", "upload", "generated", "tool", "remote"]>>;
2674
+ }, "strict", z.ZodTypeAny, {
2675
+ mtimeMs?: number | undefined;
2676
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
2677
+ }, {
2678
+ mtimeMs?: number | undefined;
2679
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
2680
+ }>>;
2681
+ }, "strict", z.ZodTypeAny, {
2682
+ type: "resource";
2683
+ name: string;
2684
+ mimeType: string;
2685
+ uri: string;
2686
+ kind: "binary" | "text" | "image" | "audio" | "video";
2687
+ size?: number | undefined;
2688
+ metadata?: {
2689
+ mtimeMs?: number | undefined;
2690
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
2691
+ } | undefined;
2692
+ }, {
2693
+ type: "resource";
2694
+ name: string;
2695
+ mimeType: string;
2696
+ uri: string;
2697
+ kind: "binary" | "text" | "image" | "audio" | "video";
2698
+ size?: number | undefined;
2699
+ metadata?: {
2700
+ mtimeMs?: number | undefined;
2701
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
2702
+ } | undefined;
1546
2703
  }>, z.ZodObject<{
1547
2704
  type: z.ZodLiteral<"ui-resource">;
1548
2705
  uri: z.ZodString;
@@ -1579,7 +2736,6 @@ export declare const SearchResultSchema: z.ZodObject<{
1579
2736
  mimeType: string;
1580
2737
  uri: string;
1581
2738
  content?: string | undefined;
1582
- blob?: string | undefined;
1583
2739
  metadata?: {
1584
2740
  title?: string | undefined;
1585
2741
  preferredSize?: {
@@ -1587,12 +2743,12 @@ export declare const SearchResultSchema: z.ZodObject<{
1587
2743
  height: number;
1588
2744
  } | undefined;
1589
2745
  } | undefined;
2746
+ blob?: string | undefined;
1590
2747
  }, {
1591
2748
  type: "ui-resource";
1592
2749
  mimeType: string;
1593
2750
  uri: string;
1594
2751
  content?: string | undefined;
1595
- blob?: string | undefined;
1596
2752
  metadata?: {
1597
2753
  title?: string | undefined;
1598
2754
  preferredSize?: {
@@ -1600,6 +2756,7 @@ export declare const SearchResultSchema: z.ZodObject<{
1600
2756
  height: number;
1601
2757
  } | undefined;
1602
2758
  } | undefined;
2759
+ blob?: string | undefined;
1603
2760
  }>]>, "many">]>;
1604
2761
  reasoning: z.ZodOptional<z.ZodString>;
1605
2762
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -1673,12 +2830,22 @@ export declare const SearchResultSchema: z.ZodObject<{
1673
2830
  mimeType: string;
1674
2831
  data: string;
1675
2832
  filename?: string | undefined;
2833
+ } | {
2834
+ type: "resource";
2835
+ name: string;
2836
+ mimeType: string;
2837
+ uri: string;
2838
+ kind: "binary" | "text" | "image" | "audio" | "video";
2839
+ size?: number | undefined;
2840
+ metadata?: {
2841
+ mtimeMs?: number | undefined;
2842
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
2843
+ } | undefined;
1676
2844
  } | {
1677
2845
  type: "ui-resource";
1678
2846
  mimeType: string;
1679
2847
  uri: string;
1680
2848
  content?: string | undefined;
1681
- blob?: string | undefined;
1682
2849
  metadata?: {
1683
2850
  title?: string | undefined;
1684
2851
  preferredSize?: {
@@ -1686,9 +2853,10 @@ export declare const SearchResultSchema: z.ZodObject<{
1686
2853
  height: number;
1687
2854
  } | undefined;
1688
2855
  } | undefined;
2856
+ blob?: string | undefined;
1689
2857
  })[] | null;
1690
- role: "system" | "user" | "assistant" | "tool";
1691
- usageScopeId?: string | undefined;
2858
+ role: "system" | "tool" | "user" | "assistant";
2859
+ success?: boolean | undefined;
1692
2860
  name?: string | undefined;
1693
2861
  id?: string | undefined;
1694
2862
  timestamp?: number | undefined;
@@ -1703,6 +2871,7 @@ export declare const SearchResultSchema: z.ZodObject<{
1703
2871
  } | undefined;
1704
2872
  estimatedCost?: number | undefined;
1705
2873
  pricingStatus?: "estimated" | "unpriced" | undefined;
2874
+ usageScopeId?: string | undefined;
1706
2875
  model?: string | undefined;
1707
2876
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
1708
2877
  toolCalls?: {
@@ -1714,7 +2883,6 @@ export declare const SearchResultSchema: z.ZodObject<{
1714
2883
  id: string;
1715
2884
  }[] | undefined;
1716
2885
  toolCallId?: string | undefined;
1717
- success?: boolean | undefined;
1718
2886
  }, {
1719
2887
  content: string | ({
1720
2888
  type: "text";
@@ -1728,12 +2896,22 @@ export declare const SearchResultSchema: z.ZodObject<{
1728
2896
  mimeType: string;
1729
2897
  data: string;
1730
2898
  filename?: string | undefined;
2899
+ } | {
2900
+ type: "resource";
2901
+ name: string;
2902
+ mimeType: string;
2903
+ uri: string;
2904
+ kind: "binary" | "text" | "image" | "audio" | "video";
2905
+ size?: number | undefined;
2906
+ metadata?: {
2907
+ mtimeMs?: number | undefined;
2908
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
2909
+ } | undefined;
1731
2910
  } | {
1732
2911
  type: "ui-resource";
1733
2912
  mimeType: string;
1734
2913
  uri: string;
1735
2914
  content?: string | undefined;
1736
- blob?: string | undefined;
1737
2915
  metadata?: {
1738
2916
  title?: string | undefined;
1739
2917
  preferredSize?: {
@@ -1741,9 +2919,10 @@ export declare const SearchResultSchema: z.ZodObject<{
1741
2919
  height: number;
1742
2920
  } | undefined;
1743
2921
  } | undefined;
2922
+ blob?: string | undefined;
1744
2923
  })[] | null;
1745
- role: "system" | "user" | "assistant" | "tool";
1746
- usageScopeId?: string | undefined;
2924
+ role: "system" | "tool" | "user" | "assistant";
2925
+ success?: boolean | undefined;
1747
2926
  name?: string | undefined;
1748
2927
  id?: string | undefined;
1749
2928
  timestamp?: number | undefined;
@@ -1758,6 +2937,7 @@ export declare const SearchResultSchema: z.ZodObject<{
1758
2937
  } | undefined;
1759
2938
  estimatedCost?: number | undefined;
1760
2939
  pricingStatus?: "estimated" | "unpriced" | undefined;
2940
+ usageScopeId?: string | undefined;
1761
2941
  model?: string | undefined;
1762
2942
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
1763
2943
  toolCalls?: {
@@ -1769,7 +2949,6 @@ export declare const SearchResultSchema: z.ZodObject<{
1769
2949
  id: string;
1770
2950
  }[] | undefined;
1771
2951
  toolCallId?: string | undefined;
1772
- success?: boolean | undefined;
1773
2952
  }>;
1774
2953
  matchedText: z.ZodString;
1775
2954
  context: z.ZodString;
@@ -1788,12 +2967,22 @@ export declare const SearchResultSchema: z.ZodObject<{
1788
2967
  mimeType: string;
1789
2968
  data: string;
1790
2969
  filename?: string | undefined;
2970
+ } | {
2971
+ type: "resource";
2972
+ name: string;
2973
+ mimeType: string;
2974
+ uri: string;
2975
+ kind: "binary" | "text" | "image" | "audio" | "video";
2976
+ size?: number | undefined;
2977
+ metadata?: {
2978
+ mtimeMs?: number | undefined;
2979
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
2980
+ } | undefined;
1791
2981
  } | {
1792
2982
  type: "ui-resource";
1793
2983
  mimeType: string;
1794
2984
  uri: string;
1795
2985
  content?: string | undefined;
1796
- blob?: string | undefined;
1797
2986
  metadata?: {
1798
2987
  title?: string | undefined;
1799
2988
  preferredSize?: {
@@ -1801,9 +2990,10 @@ export declare const SearchResultSchema: z.ZodObject<{
1801
2990
  height: number;
1802
2991
  } | undefined;
1803
2992
  } | undefined;
2993
+ blob?: string | undefined;
1804
2994
  })[] | null;
1805
- role: "system" | "user" | "assistant" | "tool";
1806
- usageScopeId?: string | undefined;
2995
+ role: "system" | "tool" | "user" | "assistant";
2996
+ success?: boolean | undefined;
1807
2997
  name?: string | undefined;
1808
2998
  id?: string | undefined;
1809
2999
  timestamp?: number | undefined;
@@ -1818,6 +3008,7 @@ export declare const SearchResultSchema: z.ZodObject<{
1818
3008
  } | undefined;
1819
3009
  estimatedCost?: number | undefined;
1820
3010
  pricingStatus?: "estimated" | "unpriced" | undefined;
3011
+ usageScopeId?: string | undefined;
1821
3012
  model?: string | undefined;
1822
3013
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
1823
3014
  toolCalls?: {
@@ -1829,10 +3020,9 @@ export declare const SearchResultSchema: z.ZodObject<{
1829
3020
  id: string;
1830
3021
  }[] | undefined;
1831
3022
  toolCallId?: string | undefined;
1832
- success?: boolean | undefined;
1833
3023
  };
1834
- sessionId: string;
1835
3024
  context: string;
3025
+ sessionId: string;
1836
3026
  matchedText: string;
1837
3027
  messageIndex: number;
1838
3028
  }, {
@@ -1849,12 +3039,22 @@ export declare const SearchResultSchema: z.ZodObject<{
1849
3039
  mimeType: string;
1850
3040
  data: string;
1851
3041
  filename?: string | undefined;
3042
+ } | {
3043
+ type: "resource";
3044
+ name: string;
3045
+ mimeType: string;
3046
+ uri: string;
3047
+ kind: "binary" | "text" | "image" | "audio" | "video";
3048
+ size?: number | undefined;
3049
+ metadata?: {
3050
+ mtimeMs?: number | undefined;
3051
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3052
+ } | undefined;
1852
3053
  } | {
1853
3054
  type: "ui-resource";
1854
3055
  mimeType: string;
1855
3056
  uri: string;
1856
3057
  content?: string | undefined;
1857
- blob?: string | undefined;
1858
3058
  metadata?: {
1859
3059
  title?: string | undefined;
1860
3060
  preferredSize?: {
@@ -1862,9 +3062,10 @@ export declare const SearchResultSchema: z.ZodObject<{
1862
3062
  height: number;
1863
3063
  } | undefined;
1864
3064
  } | undefined;
3065
+ blob?: string | undefined;
1865
3066
  })[] | null;
1866
- role: "system" | "user" | "assistant" | "tool";
1867
- usageScopeId?: string | undefined;
3067
+ role: "system" | "tool" | "user" | "assistant";
3068
+ success?: boolean | undefined;
1868
3069
  name?: string | undefined;
1869
3070
  id?: string | undefined;
1870
3071
  timestamp?: number | undefined;
@@ -1879,6 +3080,7 @@ export declare const SearchResultSchema: z.ZodObject<{
1879
3080
  } | undefined;
1880
3081
  estimatedCost?: number | undefined;
1881
3082
  pricingStatus?: "estimated" | "unpriced" | undefined;
3083
+ usageScopeId?: string | undefined;
1882
3084
  model?: string | undefined;
1883
3085
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
1884
3086
  toolCalls?: {
@@ -1890,10 +3092,9 @@ export declare const SearchResultSchema: z.ZodObject<{
1890
3092
  id: string;
1891
3093
  }[] | undefined;
1892
3094
  toolCallId?: string | undefined;
1893
- success?: boolean | undefined;
1894
3095
  };
1895
- sessionId: string;
1896
3096
  context: string;
3097
+ sessionId: string;
1897
3098
  matchedText: string;
1898
3099
  messageIndex: number;
1899
3100
  }>;
@@ -1943,6 +3144,45 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
1943
3144
  mimeType: string;
1944
3145
  data: string;
1945
3146
  filename?: string | undefined;
3147
+ }>, z.ZodObject<{
3148
+ type: z.ZodLiteral<"resource">;
3149
+ uri: z.ZodString;
3150
+ name: z.ZodString;
3151
+ mimeType: z.ZodString;
3152
+ kind: z.ZodEnum<["text", "image", "audio", "video", "binary"]>;
3153
+ size: z.ZodOptional<z.ZodNumber>;
3154
+ metadata: z.ZodOptional<z.ZodObject<{
3155
+ mtimeMs: z.ZodOptional<z.ZodNumber>;
3156
+ source: z.ZodOptional<z.ZodEnum<["filesystem", "upload", "generated", "tool", "remote"]>>;
3157
+ }, "strict", z.ZodTypeAny, {
3158
+ mtimeMs?: number | undefined;
3159
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3160
+ }, {
3161
+ mtimeMs?: number | undefined;
3162
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3163
+ }>>;
3164
+ }, "strict", z.ZodTypeAny, {
3165
+ type: "resource";
3166
+ name: string;
3167
+ mimeType: string;
3168
+ uri: string;
3169
+ kind: "binary" | "text" | "image" | "audio" | "video";
3170
+ size?: number | undefined;
3171
+ metadata?: {
3172
+ mtimeMs?: number | undefined;
3173
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3174
+ } | undefined;
3175
+ }, {
3176
+ type: "resource";
3177
+ name: string;
3178
+ mimeType: string;
3179
+ uri: string;
3180
+ kind: "binary" | "text" | "image" | "audio" | "video";
3181
+ size?: number | undefined;
3182
+ metadata?: {
3183
+ mtimeMs?: number | undefined;
3184
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3185
+ } | undefined;
1946
3186
  }>, z.ZodObject<{
1947
3187
  type: z.ZodLiteral<"ui-resource">;
1948
3188
  uri: z.ZodString;
@@ -1979,7 +3219,6 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
1979
3219
  mimeType: string;
1980
3220
  uri: string;
1981
3221
  content?: string | undefined;
1982
- blob?: string | undefined;
1983
3222
  metadata?: {
1984
3223
  title?: string | undefined;
1985
3224
  preferredSize?: {
@@ -1987,12 +3226,12 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
1987
3226
  height: number;
1988
3227
  } | undefined;
1989
3228
  } | undefined;
3229
+ blob?: string | undefined;
1990
3230
  }, {
1991
3231
  type: "ui-resource";
1992
3232
  mimeType: string;
1993
3233
  uri: string;
1994
3234
  content?: string | undefined;
1995
- blob?: string | undefined;
1996
3235
  metadata?: {
1997
3236
  title?: string | undefined;
1998
3237
  preferredSize?: {
@@ -2000,6 +3239,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2000
3239
  height: number;
2001
3240
  } | undefined;
2002
3241
  } | undefined;
3242
+ blob?: string | undefined;
2003
3243
  }>]>, "many">]>;
2004
3244
  reasoning: z.ZodOptional<z.ZodString>;
2005
3245
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -2073,12 +3313,22 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2073
3313
  mimeType: string;
2074
3314
  data: string;
2075
3315
  filename?: string | undefined;
3316
+ } | {
3317
+ type: "resource";
3318
+ name: string;
3319
+ mimeType: string;
3320
+ uri: string;
3321
+ kind: "binary" | "text" | "image" | "audio" | "video";
3322
+ size?: number | undefined;
3323
+ metadata?: {
3324
+ mtimeMs?: number | undefined;
3325
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3326
+ } | undefined;
2076
3327
  } | {
2077
3328
  type: "ui-resource";
2078
3329
  mimeType: string;
2079
3330
  uri: string;
2080
3331
  content?: string | undefined;
2081
- blob?: string | undefined;
2082
3332
  metadata?: {
2083
3333
  title?: string | undefined;
2084
3334
  preferredSize?: {
@@ -2086,9 +3336,10 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2086
3336
  height: number;
2087
3337
  } | undefined;
2088
3338
  } | undefined;
3339
+ blob?: string | undefined;
2089
3340
  })[] | null;
2090
- role: "system" | "user" | "assistant" | "tool";
2091
- usageScopeId?: string | undefined;
3341
+ role: "system" | "tool" | "user" | "assistant";
3342
+ success?: boolean | undefined;
2092
3343
  name?: string | undefined;
2093
3344
  id?: string | undefined;
2094
3345
  timestamp?: number | undefined;
@@ -2103,6 +3354,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2103
3354
  } | undefined;
2104
3355
  estimatedCost?: number | undefined;
2105
3356
  pricingStatus?: "estimated" | "unpriced" | undefined;
3357
+ usageScopeId?: string | undefined;
2106
3358
  model?: string | undefined;
2107
3359
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2108
3360
  toolCalls?: {
@@ -2114,7 +3366,6 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2114
3366
  id: string;
2115
3367
  }[] | undefined;
2116
3368
  toolCallId?: string | undefined;
2117
- success?: boolean | undefined;
2118
3369
  }, {
2119
3370
  content: string | ({
2120
3371
  type: "text";
@@ -2128,12 +3379,22 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2128
3379
  mimeType: string;
2129
3380
  data: string;
2130
3381
  filename?: string | undefined;
3382
+ } | {
3383
+ type: "resource";
3384
+ name: string;
3385
+ mimeType: string;
3386
+ uri: string;
3387
+ kind: "binary" | "text" | "image" | "audio" | "video";
3388
+ size?: number | undefined;
3389
+ metadata?: {
3390
+ mtimeMs?: number | undefined;
3391
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3392
+ } | undefined;
2131
3393
  } | {
2132
3394
  type: "ui-resource";
2133
3395
  mimeType: string;
2134
3396
  uri: string;
2135
3397
  content?: string | undefined;
2136
- blob?: string | undefined;
2137
3398
  metadata?: {
2138
3399
  title?: string | undefined;
2139
3400
  preferredSize?: {
@@ -2141,9 +3402,10 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2141
3402
  height: number;
2142
3403
  } | undefined;
2143
3404
  } | undefined;
3405
+ blob?: string | undefined;
2144
3406
  })[] | null;
2145
- role: "system" | "user" | "assistant" | "tool";
2146
- usageScopeId?: string | undefined;
3407
+ role: "system" | "tool" | "user" | "assistant";
3408
+ success?: boolean | undefined;
2147
3409
  name?: string | undefined;
2148
3410
  id?: string | undefined;
2149
3411
  timestamp?: number | undefined;
@@ -2158,6 +3420,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2158
3420
  } | undefined;
2159
3421
  estimatedCost?: number | undefined;
2160
3422
  pricingStatus?: "estimated" | "unpriced" | undefined;
3423
+ usageScopeId?: string | undefined;
2161
3424
  model?: string | undefined;
2162
3425
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2163
3426
  toolCalls?: {
@@ -2169,7 +3432,6 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2169
3432
  id: string;
2170
3433
  }[] | undefined;
2171
3434
  toolCallId?: string | undefined;
2172
- success?: boolean | undefined;
2173
3435
  }>;
2174
3436
  matchedText: z.ZodString;
2175
3437
  context: z.ZodString;
@@ -2188,12 +3450,22 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2188
3450
  mimeType: string;
2189
3451
  data: string;
2190
3452
  filename?: string | undefined;
3453
+ } | {
3454
+ type: "resource";
3455
+ name: string;
3456
+ mimeType: string;
3457
+ uri: string;
3458
+ kind: "binary" | "text" | "image" | "audio" | "video";
3459
+ size?: number | undefined;
3460
+ metadata?: {
3461
+ mtimeMs?: number | undefined;
3462
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3463
+ } | undefined;
2191
3464
  } | {
2192
3465
  type: "ui-resource";
2193
3466
  mimeType: string;
2194
3467
  uri: string;
2195
3468
  content?: string | undefined;
2196
- blob?: string | undefined;
2197
3469
  metadata?: {
2198
3470
  title?: string | undefined;
2199
3471
  preferredSize?: {
@@ -2201,9 +3473,10 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2201
3473
  height: number;
2202
3474
  } | undefined;
2203
3475
  } | undefined;
3476
+ blob?: string | undefined;
2204
3477
  })[] | null;
2205
- role: "system" | "user" | "assistant" | "tool";
2206
- usageScopeId?: string | undefined;
3478
+ role: "system" | "tool" | "user" | "assistant";
3479
+ success?: boolean | undefined;
2207
3480
  name?: string | undefined;
2208
3481
  id?: string | undefined;
2209
3482
  timestamp?: number | undefined;
@@ -2218,6 +3491,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2218
3491
  } | undefined;
2219
3492
  estimatedCost?: number | undefined;
2220
3493
  pricingStatus?: "estimated" | "unpriced" | undefined;
3494
+ usageScopeId?: string | undefined;
2221
3495
  model?: string | undefined;
2222
3496
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2223
3497
  toolCalls?: {
@@ -2229,10 +3503,9 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2229
3503
  id: string;
2230
3504
  }[] | undefined;
2231
3505
  toolCallId?: string | undefined;
2232
- success?: boolean | undefined;
2233
3506
  };
2234
- sessionId: string;
2235
3507
  context: string;
3508
+ sessionId: string;
2236
3509
  matchedText: string;
2237
3510
  messageIndex: number;
2238
3511
  }, {
@@ -2249,12 +3522,22 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2249
3522
  mimeType: string;
2250
3523
  data: string;
2251
3524
  filename?: string | undefined;
3525
+ } | {
3526
+ type: "resource";
3527
+ name: string;
3528
+ mimeType: string;
3529
+ uri: string;
3530
+ kind: "binary" | "text" | "image" | "audio" | "video";
3531
+ size?: number | undefined;
3532
+ metadata?: {
3533
+ mtimeMs?: number | undefined;
3534
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3535
+ } | undefined;
2252
3536
  } | {
2253
3537
  type: "ui-resource";
2254
3538
  mimeType: string;
2255
3539
  uri: string;
2256
3540
  content?: string | undefined;
2257
- blob?: string | undefined;
2258
3541
  metadata?: {
2259
3542
  title?: string | undefined;
2260
3543
  preferredSize?: {
@@ -2262,9 +3545,10 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2262
3545
  height: number;
2263
3546
  } | undefined;
2264
3547
  } | undefined;
3548
+ blob?: string | undefined;
2265
3549
  })[] | null;
2266
- role: "system" | "user" | "assistant" | "tool";
2267
- usageScopeId?: string | undefined;
3550
+ role: "system" | "tool" | "user" | "assistant";
3551
+ success?: boolean | undefined;
2268
3552
  name?: string | undefined;
2269
3553
  id?: string | undefined;
2270
3554
  timestamp?: number | undefined;
@@ -2279,6 +3563,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2279
3563
  } | undefined;
2280
3564
  estimatedCost?: number | undefined;
2281
3565
  pricingStatus?: "estimated" | "unpriced" | undefined;
3566
+ usageScopeId?: string | undefined;
2282
3567
  model?: string | undefined;
2283
3568
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2284
3569
  toolCalls?: {
@@ -2290,10 +3575,9 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2290
3575
  id: string;
2291
3576
  }[] | undefined;
2292
3577
  toolCallId?: string | undefined;
2293
- success?: boolean | undefined;
2294
3578
  };
2295
- sessionId: string;
2296
3579
  context: string;
3580
+ sessionId: string;
2297
3581
  matchedText: string;
2298
3582
  messageIndex: number;
2299
3583
  }>;
@@ -2311,12 +3595,12 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2311
3595
  lastActivity: number;
2312
3596
  }>;
2313
3597
  }, "strict", z.ZodTypeAny, {
2314
- sessionId: string;
2315
3598
  metadata: {
2316
3599
  messageCount: number;
2317
3600
  createdAt: number;
2318
3601
  lastActivity: number;
2319
3602
  };
3603
+ sessionId: string;
2320
3604
  matchCount: number;
2321
3605
  firstMatch: {
2322
3606
  message: {
@@ -2332,12 +3616,22 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2332
3616
  mimeType: string;
2333
3617
  data: string;
2334
3618
  filename?: string | undefined;
3619
+ } | {
3620
+ type: "resource";
3621
+ name: string;
3622
+ mimeType: string;
3623
+ uri: string;
3624
+ kind: "binary" | "text" | "image" | "audio" | "video";
3625
+ size?: number | undefined;
3626
+ metadata?: {
3627
+ mtimeMs?: number | undefined;
3628
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3629
+ } | undefined;
2335
3630
  } | {
2336
3631
  type: "ui-resource";
2337
3632
  mimeType: string;
2338
3633
  uri: string;
2339
3634
  content?: string | undefined;
2340
- blob?: string | undefined;
2341
3635
  metadata?: {
2342
3636
  title?: string | undefined;
2343
3637
  preferredSize?: {
@@ -2345,9 +3639,10 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2345
3639
  height: number;
2346
3640
  } | undefined;
2347
3641
  } | undefined;
3642
+ blob?: string | undefined;
2348
3643
  })[] | null;
2349
- role: "system" | "user" | "assistant" | "tool";
2350
- usageScopeId?: string | undefined;
3644
+ role: "system" | "tool" | "user" | "assistant";
3645
+ success?: boolean | undefined;
2351
3646
  name?: string | undefined;
2352
3647
  id?: string | undefined;
2353
3648
  timestamp?: number | undefined;
@@ -2362,6 +3657,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2362
3657
  } | undefined;
2363
3658
  estimatedCost?: number | undefined;
2364
3659
  pricingStatus?: "estimated" | "unpriced" | undefined;
3660
+ usageScopeId?: string | undefined;
2365
3661
  model?: string | undefined;
2366
3662
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2367
3663
  toolCalls?: {
@@ -2373,20 +3669,19 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2373
3669
  id: string;
2374
3670
  }[] | undefined;
2375
3671
  toolCallId?: string | undefined;
2376
- success?: boolean | undefined;
2377
3672
  };
2378
- sessionId: string;
2379
3673
  context: string;
3674
+ sessionId: string;
2380
3675
  matchedText: string;
2381
3676
  messageIndex: number;
2382
3677
  };
2383
3678
  }, {
2384
- sessionId: string;
2385
3679
  metadata: {
2386
3680
  messageCount: number;
2387
3681
  createdAt: number;
2388
3682
  lastActivity: number;
2389
3683
  };
3684
+ sessionId: string;
2390
3685
  matchCount: number;
2391
3686
  firstMatch: {
2392
3687
  message: {
@@ -2402,12 +3697,22 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2402
3697
  mimeType: string;
2403
3698
  data: string;
2404
3699
  filename?: string | undefined;
3700
+ } | {
3701
+ type: "resource";
3702
+ name: string;
3703
+ mimeType: string;
3704
+ uri: string;
3705
+ kind: "binary" | "text" | "image" | "audio" | "video";
3706
+ size?: number | undefined;
3707
+ metadata?: {
3708
+ mtimeMs?: number | undefined;
3709
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3710
+ } | undefined;
2405
3711
  } | {
2406
3712
  type: "ui-resource";
2407
3713
  mimeType: string;
2408
3714
  uri: string;
2409
3715
  content?: string | undefined;
2410
- blob?: string | undefined;
2411
3716
  metadata?: {
2412
3717
  title?: string | undefined;
2413
3718
  preferredSize?: {
@@ -2415,9 +3720,10 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2415
3720
  height: number;
2416
3721
  } | undefined;
2417
3722
  } | undefined;
3723
+ blob?: string | undefined;
2418
3724
  })[] | null;
2419
- role: "system" | "user" | "assistant" | "tool";
2420
- usageScopeId?: string | undefined;
3725
+ role: "system" | "tool" | "user" | "assistant";
3726
+ success?: boolean | undefined;
2421
3727
  name?: string | undefined;
2422
3728
  id?: string | undefined;
2423
3729
  timestamp?: number | undefined;
@@ -2432,6 +3738,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2432
3738
  } | undefined;
2433
3739
  estimatedCost?: number | undefined;
2434
3740
  pricingStatus?: "estimated" | "unpriced" | undefined;
3741
+ usageScopeId?: string | undefined;
2435
3742
  model?: string | undefined;
2436
3743
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2437
3744
  toolCalls?: {
@@ -2443,10 +3750,9 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
2443
3750
  id: string;
2444
3751
  }[] | undefined;
2445
3752
  toolCallId?: string | undefined;
2446
- success?: boolean | undefined;
2447
3753
  };
2448
- sessionId: string;
2449
3754
  context: string;
3755
+ sessionId: string;
2450
3756
  matchedText: string;
2451
3757
  messageIndex: number;
2452
3758
  };
@@ -2491,10 +3797,49 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2491
3797
  data: string;
2492
3798
  filename?: string | undefined;
2493
3799
  }, {
2494
- type: "file";
3800
+ type: "file";
3801
+ mimeType: string;
3802
+ data: string;
3803
+ filename?: string | undefined;
3804
+ }>, z.ZodObject<{
3805
+ type: z.ZodLiteral<"resource">;
3806
+ uri: z.ZodString;
3807
+ name: z.ZodString;
3808
+ mimeType: z.ZodString;
3809
+ kind: z.ZodEnum<["text", "image", "audio", "video", "binary"]>;
3810
+ size: z.ZodOptional<z.ZodNumber>;
3811
+ metadata: z.ZodOptional<z.ZodObject<{
3812
+ mtimeMs: z.ZodOptional<z.ZodNumber>;
3813
+ source: z.ZodOptional<z.ZodEnum<["filesystem", "upload", "generated", "tool", "remote"]>>;
3814
+ }, "strict", z.ZodTypeAny, {
3815
+ mtimeMs?: number | undefined;
3816
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3817
+ }, {
3818
+ mtimeMs?: number | undefined;
3819
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3820
+ }>>;
3821
+ }, "strict", z.ZodTypeAny, {
3822
+ type: "resource";
3823
+ name: string;
3824
+ mimeType: string;
3825
+ uri: string;
3826
+ kind: "binary" | "text" | "image" | "audio" | "video";
3827
+ size?: number | undefined;
3828
+ metadata?: {
3829
+ mtimeMs?: number | undefined;
3830
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3831
+ } | undefined;
3832
+ }, {
3833
+ type: "resource";
3834
+ name: string;
2495
3835
  mimeType: string;
2496
- data: string;
2497
- filename?: string | undefined;
3836
+ uri: string;
3837
+ kind: "binary" | "text" | "image" | "audio" | "video";
3838
+ size?: number | undefined;
3839
+ metadata?: {
3840
+ mtimeMs?: number | undefined;
3841
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3842
+ } | undefined;
2498
3843
  }>, z.ZodObject<{
2499
3844
  type: z.ZodLiteral<"ui-resource">;
2500
3845
  uri: z.ZodString;
@@ -2531,7 +3876,6 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2531
3876
  mimeType: string;
2532
3877
  uri: string;
2533
3878
  content?: string | undefined;
2534
- blob?: string | undefined;
2535
3879
  metadata?: {
2536
3880
  title?: string | undefined;
2537
3881
  preferredSize?: {
@@ -2539,12 +3883,12 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2539
3883
  height: number;
2540
3884
  } | undefined;
2541
3885
  } | undefined;
3886
+ blob?: string | undefined;
2542
3887
  }, {
2543
3888
  type: "ui-resource";
2544
3889
  mimeType: string;
2545
3890
  uri: string;
2546
3891
  content?: string | undefined;
2547
- blob?: string | undefined;
2548
3892
  metadata?: {
2549
3893
  title?: string | undefined;
2550
3894
  preferredSize?: {
@@ -2552,6 +3896,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2552
3896
  height: number;
2553
3897
  } | undefined;
2554
3898
  } | undefined;
3899
+ blob?: string | undefined;
2555
3900
  }>]>, "many">]>;
2556
3901
  reasoning: z.ZodOptional<z.ZodString>;
2557
3902
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -2625,12 +3970,22 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2625
3970
  mimeType: string;
2626
3971
  data: string;
2627
3972
  filename?: string | undefined;
3973
+ } | {
3974
+ type: "resource";
3975
+ name: string;
3976
+ mimeType: string;
3977
+ uri: string;
3978
+ kind: "binary" | "text" | "image" | "audio" | "video";
3979
+ size?: number | undefined;
3980
+ metadata?: {
3981
+ mtimeMs?: number | undefined;
3982
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
3983
+ } | undefined;
2628
3984
  } | {
2629
3985
  type: "ui-resource";
2630
3986
  mimeType: string;
2631
3987
  uri: string;
2632
3988
  content?: string | undefined;
2633
- blob?: string | undefined;
2634
3989
  metadata?: {
2635
3990
  title?: string | undefined;
2636
3991
  preferredSize?: {
@@ -2638,9 +3993,10 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2638
3993
  height: number;
2639
3994
  } | undefined;
2640
3995
  } | undefined;
3996
+ blob?: string | undefined;
2641
3997
  })[] | null;
2642
- role: "system" | "user" | "assistant" | "tool";
2643
- usageScopeId?: string | undefined;
3998
+ role: "system" | "tool" | "user" | "assistant";
3999
+ success?: boolean | undefined;
2644
4000
  name?: string | undefined;
2645
4001
  id?: string | undefined;
2646
4002
  timestamp?: number | undefined;
@@ -2655,6 +4011,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2655
4011
  } | undefined;
2656
4012
  estimatedCost?: number | undefined;
2657
4013
  pricingStatus?: "estimated" | "unpriced" | undefined;
4014
+ usageScopeId?: string | undefined;
2658
4015
  model?: string | undefined;
2659
4016
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2660
4017
  toolCalls?: {
@@ -2666,7 +4023,6 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2666
4023
  id: string;
2667
4024
  }[] | undefined;
2668
4025
  toolCallId?: string | undefined;
2669
- success?: boolean | undefined;
2670
4026
  }, {
2671
4027
  content: string | ({
2672
4028
  type: "text";
@@ -2680,12 +4036,22 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2680
4036
  mimeType: string;
2681
4037
  data: string;
2682
4038
  filename?: string | undefined;
4039
+ } | {
4040
+ type: "resource";
4041
+ name: string;
4042
+ mimeType: string;
4043
+ uri: string;
4044
+ kind: "binary" | "text" | "image" | "audio" | "video";
4045
+ size?: number | undefined;
4046
+ metadata?: {
4047
+ mtimeMs?: number | undefined;
4048
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4049
+ } | undefined;
2683
4050
  } | {
2684
4051
  type: "ui-resource";
2685
4052
  mimeType: string;
2686
4053
  uri: string;
2687
4054
  content?: string | undefined;
2688
- blob?: string | undefined;
2689
4055
  metadata?: {
2690
4056
  title?: string | undefined;
2691
4057
  preferredSize?: {
@@ -2693,9 +4059,10 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2693
4059
  height: number;
2694
4060
  } | undefined;
2695
4061
  } | undefined;
4062
+ blob?: string | undefined;
2696
4063
  })[] | null;
2697
- role: "system" | "user" | "assistant" | "tool";
2698
- usageScopeId?: string | undefined;
4064
+ role: "system" | "tool" | "user" | "assistant";
4065
+ success?: boolean | undefined;
2699
4066
  name?: string | undefined;
2700
4067
  id?: string | undefined;
2701
4068
  timestamp?: number | undefined;
@@ -2710,6 +4077,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2710
4077
  } | undefined;
2711
4078
  estimatedCost?: number | undefined;
2712
4079
  pricingStatus?: "estimated" | "unpriced" | undefined;
4080
+ usageScopeId?: string | undefined;
2713
4081
  model?: string | undefined;
2714
4082
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2715
4083
  toolCalls?: {
@@ -2721,7 +4089,6 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2721
4089
  id: string;
2722
4090
  }[] | undefined;
2723
4091
  toolCallId?: string | undefined;
2724
- success?: boolean | undefined;
2725
4092
  }>;
2726
4093
  matchedText: z.ZodString;
2727
4094
  context: z.ZodString;
@@ -2740,12 +4107,22 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2740
4107
  mimeType: string;
2741
4108
  data: string;
2742
4109
  filename?: string | undefined;
4110
+ } | {
4111
+ type: "resource";
4112
+ name: string;
4113
+ mimeType: string;
4114
+ uri: string;
4115
+ kind: "binary" | "text" | "image" | "audio" | "video";
4116
+ size?: number | undefined;
4117
+ metadata?: {
4118
+ mtimeMs?: number | undefined;
4119
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4120
+ } | undefined;
2743
4121
  } | {
2744
4122
  type: "ui-resource";
2745
4123
  mimeType: string;
2746
4124
  uri: string;
2747
4125
  content?: string | undefined;
2748
- blob?: string | undefined;
2749
4126
  metadata?: {
2750
4127
  title?: string | undefined;
2751
4128
  preferredSize?: {
@@ -2753,9 +4130,10 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2753
4130
  height: number;
2754
4131
  } | undefined;
2755
4132
  } | undefined;
4133
+ blob?: string | undefined;
2756
4134
  })[] | null;
2757
- role: "system" | "user" | "assistant" | "tool";
2758
- usageScopeId?: string | undefined;
4135
+ role: "system" | "tool" | "user" | "assistant";
4136
+ success?: boolean | undefined;
2759
4137
  name?: string | undefined;
2760
4138
  id?: string | undefined;
2761
4139
  timestamp?: number | undefined;
@@ -2770,6 +4148,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2770
4148
  } | undefined;
2771
4149
  estimatedCost?: number | undefined;
2772
4150
  pricingStatus?: "estimated" | "unpriced" | undefined;
4151
+ usageScopeId?: string | undefined;
2773
4152
  model?: string | undefined;
2774
4153
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2775
4154
  toolCalls?: {
@@ -2781,10 +4160,9 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2781
4160
  id: string;
2782
4161
  }[] | undefined;
2783
4162
  toolCallId?: string | undefined;
2784
- success?: boolean | undefined;
2785
4163
  };
2786
- sessionId: string;
2787
4164
  context: string;
4165
+ sessionId: string;
2788
4166
  matchedText: string;
2789
4167
  messageIndex: number;
2790
4168
  }, {
@@ -2801,12 +4179,22 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2801
4179
  mimeType: string;
2802
4180
  data: string;
2803
4181
  filename?: string | undefined;
4182
+ } | {
4183
+ type: "resource";
4184
+ name: string;
4185
+ mimeType: string;
4186
+ uri: string;
4187
+ kind: "binary" | "text" | "image" | "audio" | "video";
4188
+ size?: number | undefined;
4189
+ metadata?: {
4190
+ mtimeMs?: number | undefined;
4191
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4192
+ } | undefined;
2804
4193
  } | {
2805
4194
  type: "ui-resource";
2806
4195
  mimeType: string;
2807
4196
  uri: string;
2808
4197
  content?: string | undefined;
2809
- blob?: string | undefined;
2810
4198
  metadata?: {
2811
4199
  title?: string | undefined;
2812
4200
  preferredSize?: {
@@ -2814,9 +4202,10 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2814
4202
  height: number;
2815
4203
  } | undefined;
2816
4204
  } | undefined;
4205
+ blob?: string | undefined;
2817
4206
  })[] | null;
2818
- role: "system" | "user" | "assistant" | "tool";
2819
- usageScopeId?: string | undefined;
4207
+ role: "system" | "tool" | "user" | "assistant";
4208
+ success?: boolean | undefined;
2820
4209
  name?: string | undefined;
2821
4210
  id?: string | undefined;
2822
4211
  timestamp?: number | undefined;
@@ -2831,6 +4220,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2831
4220
  } | undefined;
2832
4221
  estimatedCost?: number | undefined;
2833
4222
  pricingStatus?: "estimated" | "unpriced" | undefined;
4223
+ usageScopeId?: string | undefined;
2834
4224
  model?: string | undefined;
2835
4225
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2836
4226
  toolCalls?: {
@@ -2842,10 +4232,9 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2842
4232
  id: string;
2843
4233
  }[] | undefined;
2844
4234
  toolCallId?: string | undefined;
2845
- success?: boolean | undefined;
2846
4235
  };
2847
- sessionId: string;
2848
4236
  context: string;
4237
+ sessionId: string;
2849
4238
  matchedText: string;
2850
4239
  messageIndex: number;
2851
4240
  }>, "many">;
@@ -2868,12 +4257,22 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2868
4257
  mimeType: string;
2869
4258
  data: string;
2870
4259
  filename?: string | undefined;
4260
+ } | {
4261
+ type: "resource";
4262
+ name: string;
4263
+ mimeType: string;
4264
+ uri: string;
4265
+ kind: "binary" | "text" | "image" | "audio" | "video";
4266
+ size?: number | undefined;
4267
+ metadata?: {
4268
+ mtimeMs?: number | undefined;
4269
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4270
+ } | undefined;
2871
4271
  } | {
2872
4272
  type: "ui-resource";
2873
4273
  mimeType: string;
2874
4274
  uri: string;
2875
4275
  content?: string | undefined;
2876
- blob?: string | undefined;
2877
4276
  metadata?: {
2878
4277
  title?: string | undefined;
2879
4278
  preferredSize?: {
@@ -2881,9 +4280,10 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2881
4280
  height: number;
2882
4281
  } | undefined;
2883
4282
  } | undefined;
4283
+ blob?: string | undefined;
2884
4284
  })[] | null;
2885
- role: "system" | "user" | "assistant" | "tool";
2886
- usageScopeId?: string | undefined;
4285
+ role: "system" | "tool" | "user" | "assistant";
4286
+ success?: boolean | undefined;
2887
4287
  name?: string | undefined;
2888
4288
  id?: string | undefined;
2889
4289
  timestamp?: number | undefined;
@@ -2898,6 +4298,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2898
4298
  } | undefined;
2899
4299
  estimatedCost?: number | undefined;
2900
4300
  pricingStatus?: "estimated" | "unpriced" | undefined;
4301
+ usageScopeId?: string | undefined;
2901
4302
  model?: string | undefined;
2902
4303
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2903
4304
  toolCalls?: {
@@ -2909,10 +4310,9 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2909
4310
  id: string;
2910
4311
  }[] | undefined;
2911
4312
  toolCallId?: string | undefined;
2912
- success?: boolean | undefined;
2913
4313
  };
2914
- sessionId: string;
2915
4314
  context: string;
4315
+ sessionId: string;
2916
4316
  matchedText: string;
2917
4317
  messageIndex: number;
2918
4318
  }[];
@@ -2934,12 +4334,22 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2934
4334
  mimeType: string;
2935
4335
  data: string;
2936
4336
  filename?: string | undefined;
4337
+ } | {
4338
+ type: "resource";
4339
+ name: string;
4340
+ mimeType: string;
4341
+ uri: string;
4342
+ kind: "binary" | "text" | "image" | "audio" | "video";
4343
+ size?: number | undefined;
4344
+ metadata?: {
4345
+ mtimeMs?: number | undefined;
4346
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4347
+ } | undefined;
2937
4348
  } | {
2938
4349
  type: "ui-resource";
2939
4350
  mimeType: string;
2940
4351
  uri: string;
2941
4352
  content?: string | undefined;
2942
- blob?: string | undefined;
2943
4353
  metadata?: {
2944
4354
  title?: string | undefined;
2945
4355
  preferredSize?: {
@@ -2947,9 +4357,10 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2947
4357
  height: number;
2948
4358
  } | undefined;
2949
4359
  } | undefined;
4360
+ blob?: string | undefined;
2950
4361
  })[] | null;
2951
- role: "system" | "user" | "assistant" | "tool";
2952
- usageScopeId?: string | undefined;
4362
+ role: "system" | "tool" | "user" | "assistant";
4363
+ success?: boolean | undefined;
2953
4364
  name?: string | undefined;
2954
4365
  id?: string | undefined;
2955
4366
  timestamp?: number | undefined;
@@ -2964,6 +4375,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2964
4375
  } | undefined;
2965
4376
  estimatedCost?: number | undefined;
2966
4377
  pricingStatus?: "estimated" | "unpriced" | undefined;
4378
+ usageScopeId?: string | undefined;
2967
4379
  model?: string | undefined;
2968
4380
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2969
4381
  toolCalls?: {
@@ -2975,10 +4387,9 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
2975
4387
  id: string;
2976
4388
  }[] | undefined;
2977
4389
  toolCallId?: string | undefined;
2978
- success?: boolean | undefined;
2979
4390
  };
2980
- sessionId: string;
2981
4391
  context: string;
4392
+ sessionId: string;
2982
4393
  matchedText: string;
2983
4394
  messageIndex: number;
2984
4395
  }[];
@@ -3032,6 +4443,45 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3032
4443
  mimeType: string;
3033
4444
  data: string;
3034
4445
  filename?: string | undefined;
4446
+ }>, z.ZodObject<{
4447
+ type: z.ZodLiteral<"resource">;
4448
+ uri: z.ZodString;
4449
+ name: z.ZodString;
4450
+ mimeType: z.ZodString;
4451
+ kind: z.ZodEnum<["text", "image", "audio", "video", "binary"]>;
4452
+ size: z.ZodOptional<z.ZodNumber>;
4453
+ metadata: z.ZodOptional<z.ZodObject<{
4454
+ mtimeMs: z.ZodOptional<z.ZodNumber>;
4455
+ source: z.ZodOptional<z.ZodEnum<["filesystem", "upload", "generated", "tool", "remote"]>>;
4456
+ }, "strict", z.ZodTypeAny, {
4457
+ mtimeMs?: number | undefined;
4458
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4459
+ }, {
4460
+ mtimeMs?: number | undefined;
4461
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4462
+ }>>;
4463
+ }, "strict", z.ZodTypeAny, {
4464
+ type: "resource";
4465
+ name: string;
4466
+ mimeType: string;
4467
+ uri: string;
4468
+ kind: "binary" | "text" | "image" | "audio" | "video";
4469
+ size?: number | undefined;
4470
+ metadata?: {
4471
+ mtimeMs?: number | undefined;
4472
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4473
+ } | undefined;
4474
+ }, {
4475
+ type: "resource";
4476
+ name: string;
4477
+ mimeType: string;
4478
+ uri: string;
4479
+ kind: "binary" | "text" | "image" | "audio" | "video";
4480
+ size?: number | undefined;
4481
+ metadata?: {
4482
+ mtimeMs?: number | undefined;
4483
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4484
+ } | undefined;
3035
4485
  }>, z.ZodObject<{
3036
4486
  type: z.ZodLiteral<"ui-resource">;
3037
4487
  uri: z.ZodString;
@@ -3068,7 +4518,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3068
4518
  mimeType: string;
3069
4519
  uri: string;
3070
4520
  content?: string | undefined;
3071
- blob?: string | undefined;
3072
4521
  metadata?: {
3073
4522
  title?: string | undefined;
3074
4523
  preferredSize?: {
@@ -3076,12 +4525,12 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3076
4525
  height: number;
3077
4526
  } | undefined;
3078
4527
  } | undefined;
4528
+ blob?: string | undefined;
3079
4529
  }, {
3080
4530
  type: "ui-resource";
3081
4531
  mimeType: string;
3082
4532
  uri: string;
3083
4533
  content?: string | undefined;
3084
- blob?: string | undefined;
3085
4534
  metadata?: {
3086
4535
  title?: string | undefined;
3087
4536
  preferredSize?: {
@@ -3089,6 +4538,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3089
4538
  height: number;
3090
4539
  } | undefined;
3091
4540
  } | undefined;
4541
+ blob?: string | undefined;
3092
4542
  }>]>, "many">]>;
3093
4543
  reasoning: z.ZodOptional<z.ZodString>;
3094
4544
  tokenUsage: z.ZodOptional<z.ZodObject<{
@@ -3162,12 +4612,22 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3162
4612
  mimeType: string;
3163
4613
  data: string;
3164
4614
  filename?: string | undefined;
4615
+ } | {
4616
+ type: "resource";
4617
+ name: string;
4618
+ mimeType: string;
4619
+ uri: string;
4620
+ kind: "binary" | "text" | "image" | "audio" | "video";
4621
+ size?: number | undefined;
4622
+ metadata?: {
4623
+ mtimeMs?: number | undefined;
4624
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4625
+ } | undefined;
3165
4626
  } | {
3166
4627
  type: "ui-resource";
3167
4628
  mimeType: string;
3168
4629
  uri: string;
3169
4630
  content?: string | undefined;
3170
- blob?: string | undefined;
3171
4631
  metadata?: {
3172
4632
  title?: string | undefined;
3173
4633
  preferredSize?: {
@@ -3175,9 +4635,10 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3175
4635
  height: number;
3176
4636
  } | undefined;
3177
4637
  } | undefined;
4638
+ blob?: string | undefined;
3178
4639
  })[] | null;
3179
- role: "system" | "user" | "assistant" | "tool";
3180
- usageScopeId?: string | undefined;
4640
+ role: "system" | "tool" | "user" | "assistant";
4641
+ success?: boolean | undefined;
3181
4642
  name?: string | undefined;
3182
4643
  id?: string | undefined;
3183
4644
  timestamp?: number | undefined;
@@ -3192,6 +4653,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3192
4653
  } | undefined;
3193
4654
  estimatedCost?: number | undefined;
3194
4655
  pricingStatus?: "estimated" | "unpriced" | undefined;
4656
+ usageScopeId?: string | undefined;
3195
4657
  model?: string | undefined;
3196
4658
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3197
4659
  toolCalls?: {
@@ -3203,7 +4665,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3203
4665
  id: string;
3204
4666
  }[] | undefined;
3205
4667
  toolCallId?: string | undefined;
3206
- success?: boolean | undefined;
3207
4668
  }, {
3208
4669
  content: string | ({
3209
4670
  type: "text";
@@ -3217,12 +4678,22 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3217
4678
  mimeType: string;
3218
4679
  data: string;
3219
4680
  filename?: string | undefined;
4681
+ } | {
4682
+ type: "resource";
4683
+ name: string;
4684
+ mimeType: string;
4685
+ uri: string;
4686
+ kind: "binary" | "text" | "image" | "audio" | "video";
4687
+ size?: number | undefined;
4688
+ metadata?: {
4689
+ mtimeMs?: number | undefined;
4690
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4691
+ } | undefined;
3220
4692
  } | {
3221
4693
  type: "ui-resource";
3222
4694
  mimeType: string;
3223
4695
  uri: string;
3224
4696
  content?: string | undefined;
3225
- blob?: string | undefined;
3226
4697
  metadata?: {
3227
4698
  title?: string | undefined;
3228
4699
  preferredSize?: {
@@ -3230,9 +4701,10 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3230
4701
  height: number;
3231
4702
  } | undefined;
3232
4703
  } | undefined;
4704
+ blob?: string | undefined;
3233
4705
  })[] | null;
3234
- role: "system" | "user" | "assistant" | "tool";
3235
- usageScopeId?: string | undefined;
4706
+ role: "system" | "tool" | "user" | "assistant";
4707
+ success?: boolean | undefined;
3236
4708
  name?: string | undefined;
3237
4709
  id?: string | undefined;
3238
4710
  timestamp?: number | undefined;
@@ -3247,6 +4719,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3247
4719
  } | undefined;
3248
4720
  estimatedCost?: number | undefined;
3249
4721
  pricingStatus?: "estimated" | "unpriced" | undefined;
4722
+ usageScopeId?: string | undefined;
3250
4723
  model?: string | undefined;
3251
4724
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3252
4725
  toolCalls?: {
@@ -3258,7 +4731,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3258
4731
  id: string;
3259
4732
  }[] | undefined;
3260
4733
  toolCallId?: string | undefined;
3261
- success?: boolean | undefined;
3262
4734
  }>;
3263
4735
  matchedText: z.ZodString;
3264
4736
  context: z.ZodString;
@@ -3277,12 +4749,22 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3277
4749
  mimeType: string;
3278
4750
  data: string;
3279
4751
  filename?: string | undefined;
4752
+ } | {
4753
+ type: "resource";
4754
+ name: string;
4755
+ mimeType: string;
4756
+ uri: string;
4757
+ kind: "binary" | "text" | "image" | "audio" | "video";
4758
+ size?: number | undefined;
4759
+ metadata?: {
4760
+ mtimeMs?: number | undefined;
4761
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4762
+ } | undefined;
3280
4763
  } | {
3281
4764
  type: "ui-resource";
3282
4765
  mimeType: string;
3283
4766
  uri: string;
3284
4767
  content?: string | undefined;
3285
- blob?: string | undefined;
3286
4768
  metadata?: {
3287
4769
  title?: string | undefined;
3288
4770
  preferredSize?: {
@@ -3290,9 +4772,10 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3290
4772
  height: number;
3291
4773
  } | undefined;
3292
4774
  } | undefined;
4775
+ blob?: string | undefined;
3293
4776
  })[] | null;
3294
- role: "system" | "user" | "assistant" | "tool";
3295
- usageScopeId?: string | undefined;
4777
+ role: "system" | "tool" | "user" | "assistant";
4778
+ success?: boolean | undefined;
3296
4779
  name?: string | undefined;
3297
4780
  id?: string | undefined;
3298
4781
  timestamp?: number | undefined;
@@ -3307,6 +4790,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3307
4790
  } | undefined;
3308
4791
  estimatedCost?: number | undefined;
3309
4792
  pricingStatus?: "estimated" | "unpriced" | undefined;
4793
+ usageScopeId?: string | undefined;
3310
4794
  model?: string | undefined;
3311
4795
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3312
4796
  toolCalls?: {
@@ -3318,10 +4802,9 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3318
4802
  id: string;
3319
4803
  }[] | undefined;
3320
4804
  toolCallId?: string | undefined;
3321
- success?: boolean | undefined;
3322
4805
  };
3323
- sessionId: string;
3324
4806
  context: string;
4807
+ sessionId: string;
3325
4808
  matchedText: string;
3326
4809
  messageIndex: number;
3327
4810
  }, {
@@ -3338,12 +4821,22 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3338
4821
  mimeType: string;
3339
4822
  data: string;
3340
4823
  filename?: string | undefined;
4824
+ } | {
4825
+ type: "resource";
4826
+ name: string;
4827
+ mimeType: string;
4828
+ uri: string;
4829
+ kind: "binary" | "text" | "image" | "audio" | "video";
4830
+ size?: number | undefined;
4831
+ metadata?: {
4832
+ mtimeMs?: number | undefined;
4833
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4834
+ } | undefined;
3341
4835
  } | {
3342
4836
  type: "ui-resource";
3343
4837
  mimeType: string;
3344
4838
  uri: string;
3345
4839
  content?: string | undefined;
3346
- blob?: string | undefined;
3347
4840
  metadata?: {
3348
4841
  title?: string | undefined;
3349
4842
  preferredSize?: {
@@ -3351,9 +4844,10 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3351
4844
  height: number;
3352
4845
  } | undefined;
3353
4846
  } | undefined;
4847
+ blob?: string | undefined;
3354
4848
  })[] | null;
3355
- role: "system" | "user" | "assistant" | "tool";
3356
- usageScopeId?: string | undefined;
4849
+ role: "system" | "tool" | "user" | "assistant";
4850
+ success?: boolean | undefined;
3357
4851
  name?: string | undefined;
3358
4852
  id?: string | undefined;
3359
4853
  timestamp?: number | undefined;
@@ -3368,6 +4862,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3368
4862
  } | undefined;
3369
4863
  estimatedCost?: number | undefined;
3370
4864
  pricingStatus?: "estimated" | "unpriced" | undefined;
4865
+ usageScopeId?: string | undefined;
3371
4866
  model?: string | undefined;
3372
4867
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3373
4868
  toolCalls?: {
@@ -3379,10 +4874,9 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3379
4874
  id: string;
3380
4875
  }[] | undefined;
3381
4876
  toolCallId?: string | undefined;
3382
- success?: boolean | undefined;
3383
4877
  };
3384
- sessionId: string;
3385
4878
  context: string;
4879
+ sessionId: string;
3386
4880
  matchedText: string;
3387
4881
  messageIndex: number;
3388
4882
  }>;
@@ -3400,12 +4894,12 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3400
4894
  lastActivity: number;
3401
4895
  }>;
3402
4896
  }, "strict", z.ZodTypeAny, {
3403
- sessionId: string;
3404
4897
  metadata: {
3405
4898
  messageCount: number;
3406
4899
  createdAt: number;
3407
4900
  lastActivity: number;
3408
4901
  };
4902
+ sessionId: string;
3409
4903
  matchCount: number;
3410
4904
  firstMatch: {
3411
4905
  message: {
@@ -3421,12 +4915,22 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3421
4915
  mimeType: string;
3422
4916
  data: string;
3423
4917
  filename?: string | undefined;
4918
+ } | {
4919
+ type: "resource";
4920
+ name: string;
4921
+ mimeType: string;
4922
+ uri: string;
4923
+ kind: "binary" | "text" | "image" | "audio" | "video";
4924
+ size?: number | undefined;
4925
+ metadata?: {
4926
+ mtimeMs?: number | undefined;
4927
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
4928
+ } | undefined;
3424
4929
  } | {
3425
4930
  type: "ui-resource";
3426
4931
  mimeType: string;
3427
4932
  uri: string;
3428
4933
  content?: string | undefined;
3429
- blob?: string | undefined;
3430
4934
  metadata?: {
3431
4935
  title?: string | undefined;
3432
4936
  preferredSize?: {
@@ -3434,9 +4938,10 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3434
4938
  height: number;
3435
4939
  } | undefined;
3436
4940
  } | undefined;
4941
+ blob?: string | undefined;
3437
4942
  })[] | null;
3438
- role: "system" | "user" | "assistant" | "tool";
3439
- usageScopeId?: string | undefined;
4943
+ role: "system" | "tool" | "user" | "assistant";
4944
+ success?: boolean | undefined;
3440
4945
  name?: string | undefined;
3441
4946
  id?: string | undefined;
3442
4947
  timestamp?: number | undefined;
@@ -3451,6 +4956,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3451
4956
  } | undefined;
3452
4957
  estimatedCost?: number | undefined;
3453
4958
  pricingStatus?: "estimated" | "unpriced" | undefined;
4959
+ usageScopeId?: string | undefined;
3454
4960
  model?: string | undefined;
3455
4961
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3456
4962
  toolCalls?: {
@@ -3462,20 +4968,19 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3462
4968
  id: string;
3463
4969
  }[] | undefined;
3464
4970
  toolCallId?: string | undefined;
3465
- success?: boolean | undefined;
3466
4971
  };
3467
- sessionId: string;
3468
4972
  context: string;
4973
+ sessionId: string;
3469
4974
  matchedText: string;
3470
4975
  messageIndex: number;
3471
4976
  };
3472
4977
  }, {
3473
- sessionId: string;
3474
4978
  metadata: {
3475
4979
  messageCount: number;
3476
4980
  createdAt: number;
3477
4981
  lastActivity: number;
3478
4982
  };
4983
+ sessionId: string;
3479
4984
  matchCount: number;
3480
4985
  firstMatch: {
3481
4986
  message: {
@@ -3491,12 +4996,22 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3491
4996
  mimeType: string;
3492
4997
  data: string;
3493
4998
  filename?: string | undefined;
4999
+ } | {
5000
+ type: "resource";
5001
+ name: string;
5002
+ mimeType: string;
5003
+ uri: string;
5004
+ kind: "binary" | "text" | "image" | "audio" | "video";
5005
+ size?: number | undefined;
5006
+ metadata?: {
5007
+ mtimeMs?: number | undefined;
5008
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
5009
+ } | undefined;
3494
5010
  } | {
3495
5011
  type: "ui-resource";
3496
5012
  mimeType: string;
3497
5013
  uri: string;
3498
5014
  content?: string | undefined;
3499
- blob?: string | undefined;
3500
5015
  metadata?: {
3501
5016
  title?: string | undefined;
3502
5017
  preferredSize?: {
@@ -3504,9 +5019,10 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3504
5019
  height: number;
3505
5020
  } | undefined;
3506
5021
  } | undefined;
5022
+ blob?: string | undefined;
3507
5023
  })[] | null;
3508
- role: "system" | "user" | "assistant" | "tool";
3509
- usageScopeId?: string | undefined;
5024
+ role: "system" | "tool" | "user" | "assistant";
5025
+ success?: boolean | undefined;
3510
5026
  name?: string | undefined;
3511
5027
  id?: string | undefined;
3512
5028
  timestamp?: number | undefined;
@@ -3521,6 +5037,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3521
5037
  } | undefined;
3522
5038
  estimatedCost?: number | undefined;
3523
5039
  pricingStatus?: "estimated" | "unpriced" | undefined;
5040
+ usageScopeId?: string | undefined;
3524
5041
  model?: string | undefined;
3525
5042
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3526
5043
  toolCalls?: {
@@ -3532,10 +5049,9 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3532
5049
  id: string;
3533
5050
  }[] | undefined;
3534
5051
  toolCallId?: string | undefined;
3535
- success?: boolean | undefined;
3536
5052
  };
3537
- sessionId: string;
3538
5053
  context: string;
5054
+ sessionId: string;
3539
5055
  matchedText: string;
3540
5056
  messageIndex: number;
3541
5057
  };
@@ -3546,12 +5062,12 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3546
5062
  }, "strict", z.ZodTypeAny, {
3547
5063
  query: string;
3548
5064
  results: {
3549
- sessionId: string;
3550
5065
  metadata: {
3551
5066
  messageCount: number;
3552
5067
  createdAt: number;
3553
5068
  lastActivity: number;
3554
5069
  };
5070
+ sessionId: string;
3555
5071
  matchCount: number;
3556
5072
  firstMatch: {
3557
5073
  message: {
@@ -3567,12 +5083,22 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3567
5083
  mimeType: string;
3568
5084
  data: string;
3569
5085
  filename?: string | undefined;
5086
+ } | {
5087
+ type: "resource";
5088
+ name: string;
5089
+ mimeType: string;
5090
+ uri: string;
5091
+ kind: "binary" | "text" | "image" | "audio" | "video";
5092
+ size?: number | undefined;
5093
+ metadata?: {
5094
+ mtimeMs?: number | undefined;
5095
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
5096
+ } | undefined;
3570
5097
  } | {
3571
5098
  type: "ui-resource";
3572
5099
  mimeType: string;
3573
5100
  uri: string;
3574
5101
  content?: string | undefined;
3575
- blob?: string | undefined;
3576
5102
  metadata?: {
3577
5103
  title?: string | undefined;
3578
5104
  preferredSize?: {
@@ -3580,9 +5106,10 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3580
5106
  height: number;
3581
5107
  } | undefined;
3582
5108
  } | undefined;
5109
+ blob?: string | undefined;
3583
5110
  })[] | null;
3584
- role: "system" | "user" | "assistant" | "tool";
3585
- usageScopeId?: string | undefined;
5111
+ role: "system" | "tool" | "user" | "assistant";
5112
+ success?: boolean | undefined;
3586
5113
  name?: string | undefined;
3587
5114
  id?: string | undefined;
3588
5115
  timestamp?: number | undefined;
@@ -3597,6 +5124,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3597
5124
  } | undefined;
3598
5125
  estimatedCost?: number | undefined;
3599
5126
  pricingStatus?: "estimated" | "unpriced" | undefined;
5127
+ usageScopeId?: string | undefined;
3600
5128
  model?: string | undefined;
3601
5129
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3602
5130
  toolCalls?: {
@@ -3608,10 +5136,9 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3608
5136
  id: string;
3609
5137
  }[] | undefined;
3610
5138
  toolCallId?: string | undefined;
3611
- success?: boolean | undefined;
3612
5139
  };
3613
- sessionId: string;
3614
5140
  context: string;
5141
+ sessionId: string;
3615
5142
  matchedText: string;
3616
5143
  messageIndex: number;
3617
5144
  };
@@ -3621,12 +5148,12 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3621
5148
  }, {
3622
5149
  query: string;
3623
5150
  results: {
3624
- sessionId: string;
3625
5151
  metadata: {
3626
5152
  messageCount: number;
3627
5153
  createdAt: number;
3628
5154
  lastActivity: number;
3629
5155
  };
5156
+ sessionId: string;
3630
5157
  matchCount: number;
3631
5158
  firstMatch: {
3632
5159
  message: {
@@ -3642,12 +5169,22 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3642
5169
  mimeType: string;
3643
5170
  data: string;
3644
5171
  filename?: string | undefined;
5172
+ } | {
5173
+ type: "resource";
5174
+ name: string;
5175
+ mimeType: string;
5176
+ uri: string;
5177
+ kind: "binary" | "text" | "image" | "audio" | "video";
5178
+ size?: number | undefined;
5179
+ metadata?: {
5180
+ mtimeMs?: number | undefined;
5181
+ source?: "filesystem" | "upload" | "generated" | "tool" | "remote" | undefined;
5182
+ } | undefined;
3645
5183
  } | {
3646
5184
  type: "ui-resource";
3647
5185
  mimeType: string;
3648
5186
  uri: string;
3649
5187
  content?: string | undefined;
3650
- blob?: string | undefined;
3651
5188
  metadata?: {
3652
5189
  title?: string | undefined;
3653
5190
  preferredSize?: {
@@ -3655,9 +5192,10 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3655
5192
  height: number;
3656
5193
  } | undefined;
3657
5194
  } | undefined;
5195
+ blob?: string | undefined;
3658
5196
  })[] | null;
3659
- role: "system" | "user" | "assistant" | "tool";
3660
- usageScopeId?: string | undefined;
5197
+ role: "system" | "tool" | "user" | "assistant";
5198
+ success?: boolean | undefined;
3661
5199
  name?: string | undefined;
3662
5200
  id?: string | undefined;
3663
5201
  timestamp?: number | undefined;
@@ -3672,6 +5210,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3672
5210
  } | undefined;
3673
5211
  estimatedCost?: number | undefined;
3674
5212
  pricingStatus?: "estimated" | "unpriced" | undefined;
5213
+ usageScopeId?: string | undefined;
3675
5214
  model?: string | undefined;
3676
5215
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
3677
5216
  toolCalls?: {
@@ -3683,10 +5222,9 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
3683
5222
  id: string;
3684
5223
  }[] | undefined;
3685
5224
  toolCallId?: string | undefined;
3686
- success?: boolean | undefined;
3687
5225
  };
3688
- sessionId: string;
3689
5226
  context: string;
5227
+ sessionId: string;
3690
5228
  matchedText: string;
3691
5229
  messageIndex: number;
3692
5230
  };
@@ -3716,7 +5254,7 @@ export declare const CatalogModelInfoSchema: z.ZodObject<{
3716
5254
  name: z.ZodString;
3717
5255
  maxInputTokens: z.ZodNumber;
3718
5256
  default: z.ZodOptional<z.ZodBoolean>;
3719
- supportedFileTypes: z.ZodArray<z.ZodEnum<["audio", "pdf", "image"]>, "many">;
5257
+ supportedFileTypes: z.ZodArray<z.ZodEnum<["pdf", "image", "audio", "video", "document"]>, "many">;
3720
5258
  displayName: z.ZodOptional<z.ZodString>;
3721
5259
  pricing: z.ZodOptional<z.ZodObject<{
3722
5260
  inputPerM: z.ZodNumber;
@@ -3743,7 +5281,7 @@ export declare const CatalogModelInfoSchema: z.ZodObject<{
3743
5281
  }, "strict", z.ZodTypeAny, {
3744
5282
  name: string;
3745
5283
  maxInputTokens: number;
3746
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5284
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3747
5285
  default?: boolean | undefined;
3748
5286
  displayName?: string | undefined;
3749
5287
  pricing?: {
@@ -3757,7 +5295,7 @@ export declare const CatalogModelInfoSchema: z.ZodObject<{
3757
5295
  }, {
3758
5296
  name: string;
3759
5297
  maxInputTokens: number;
3760
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5298
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3761
5299
  default?: boolean | undefined;
3762
5300
  displayName?: string | undefined;
3763
5301
  pricing?: {
@@ -3779,7 +5317,7 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
3779
5317
  name: z.ZodString;
3780
5318
  maxInputTokens: z.ZodNumber;
3781
5319
  default: z.ZodOptional<z.ZodBoolean>;
3782
- supportedFileTypes: z.ZodArray<z.ZodEnum<["audio", "pdf", "image"]>, "many">;
5320
+ supportedFileTypes: z.ZodArray<z.ZodEnum<["pdf", "image", "audio", "video", "document"]>, "many">;
3783
5321
  displayName: z.ZodOptional<z.ZodString>;
3784
5322
  pricing: z.ZodOptional<z.ZodObject<{
3785
5323
  inputPerM: z.ZodNumber;
@@ -3806,7 +5344,7 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
3806
5344
  }, "strict", z.ZodTypeAny, {
3807
5345
  name: string;
3808
5346
  maxInputTokens: number;
3809
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5347
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3810
5348
  default?: boolean | undefined;
3811
5349
  displayName?: string | undefined;
3812
5350
  pricing?: {
@@ -3820,7 +5358,7 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
3820
5358
  }, {
3821
5359
  name: string;
3822
5360
  maxInputTokens: number;
3823
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5361
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3824
5362
  default?: boolean | undefined;
3825
5363
  displayName?: string | undefined;
3826
5364
  pricing?: {
@@ -3832,17 +5370,17 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
3832
5370
  unit?: "per_million_tokens" | undefined;
3833
5371
  } | undefined;
3834
5372
  }>, "many">;
3835
- supportedFileTypes: z.ZodArray<z.ZodEnum<["audio", "pdf", "image"]>, "many">;
5373
+ supportedFileTypes: z.ZodArray<z.ZodEnum<["pdf", "image", "audio", "video", "document"]>, "many">;
3836
5374
  }, "strict", z.ZodTypeAny, {
3837
5375
  name: string;
3838
5376
  hasApiKey: boolean;
3839
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5377
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3840
5378
  primaryEnvVar: string;
3841
5379
  supportsBaseURL: boolean;
3842
5380
  models: {
3843
5381
  name: string;
3844
5382
  maxInputTokens: number;
3845
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5383
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3846
5384
  default?: boolean | undefined;
3847
5385
  displayName?: string | undefined;
3848
5386
  pricing?: {
@@ -3857,13 +5395,13 @@ export declare const ProviderCatalogSchema: z.ZodObject<{
3857
5395
  }, {
3858
5396
  name: string;
3859
5397
  hasApiKey: boolean;
3860
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5398
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3861
5399
  primaryEnvVar: string;
3862
5400
  supportsBaseURL: boolean;
3863
5401
  models: {
3864
5402
  name: string;
3865
5403
  maxInputTokens: number;
3866
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5404
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3867
5405
  default?: boolean | undefined;
3868
5406
  displayName?: string | undefined;
3869
5407
  pricing?: {
@@ -3881,7 +5419,7 @@ export declare const ModelFlatSchema: z.ZodObject<{
3881
5419
  name: z.ZodString;
3882
5420
  maxInputTokens: z.ZodNumber;
3883
5421
  default: z.ZodOptional<z.ZodBoolean>;
3884
- supportedFileTypes: z.ZodArray<z.ZodEnum<["audio", "pdf", "image"]>, "many">;
5422
+ supportedFileTypes: z.ZodArray<z.ZodEnum<["pdf", "image", "audio", "video", "document"]>, "many">;
3885
5423
  displayName: z.ZodOptional<z.ZodString>;
3886
5424
  pricing: z.ZodOptional<z.ZodObject<{
3887
5425
  inputPerM: z.ZodNumber;
@@ -3911,7 +5449,7 @@ export declare const ModelFlatSchema: z.ZodObject<{
3911
5449
  name: string;
3912
5450
  provider: string;
3913
5451
  maxInputTokens: number;
3914
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5452
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3915
5453
  default?: boolean | undefined;
3916
5454
  displayName?: string | undefined;
3917
5455
  pricing?: {
@@ -3926,7 +5464,7 @@ export declare const ModelFlatSchema: z.ZodObject<{
3926
5464
  name: string;
3927
5465
  provider: string;
3928
5466
  maxInputTokens: number;
3929
- supportedFileTypes: ("image" | "audio" | "pdf")[];
5467
+ supportedFileTypes: ("image" | "audio" | "video" | "pdf" | "document")[];
3930
5468
  default?: boolean | undefined;
3931
5469
  displayName?: string | undefined;
3932
5470
  pricing?: {
@@ -3947,15 +5485,15 @@ export declare const AgentRegistryEntrySchema: z.ZodObject<{
3947
5485
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3948
5486
  type: z.ZodEnum<["builtin", "custom"]>;
3949
5487
  }, "strict", z.ZodTypeAny, {
5488
+ type: "builtin" | "custom";
3950
5489
  description: string;
3951
- type: "custom" | "builtin";
3952
5490
  name: string;
3953
5491
  id: string;
3954
5492
  tags?: string[] | undefined;
3955
5493
  author?: string | undefined;
3956
5494
  }, {
5495
+ type: "builtin" | "custom";
3957
5496
  description: string;
3958
- type: "custom" | "builtin";
3959
5497
  name: string;
3960
5498
  id: string;
3961
5499
  tags?: string[] | undefined;
@@ -3971,16 +5509,16 @@ export declare const ResourceSchema: z.ZodObject<{
3971
5509
  serverName: z.ZodOptional<z.ZodString>;
3972
5510
  size: z.ZodOptional<z.ZodNumber>;
3973
5511
  lastModified: z.ZodOptional<z.ZodString>;
3974
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5512
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>>;
3975
5513
  }, "strict", z.ZodTypeAny, {
3976
5514
  uri: string;
3977
5515
  source: "mcp" | "internal";
3978
5516
  description?: string | undefined;
3979
5517
  name?: string | undefined;
3980
5518
  mimeType?: string | undefined;
3981
- metadata?: Record<string, unknown> | undefined;
3982
- serverName?: string | undefined;
3983
5519
  size?: number | undefined;
5520
+ metadata?: Record<string, JsonValue> | undefined;
5521
+ serverName?: string | undefined;
3984
5522
  lastModified?: string | undefined;
3985
5523
  }, {
3986
5524
  uri: string;
@@ -3988,24 +5526,114 @@ export declare const ResourceSchema: z.ZodObject<{
3988
5526
  description?: string | undefined;
3989
5527
  name?: string | undefined;
3990
5528
  mimeType?: string | undefined;
3991
- metadata?: Record<string, unknown> | undefined;
3992
- serverName?: string | undefined;
3993
5529
  size?: number | undefined;
5530
+ metadata?: Record<string, JsonValue> | undefined;
5531
+ serverName?: string | undefined;
3994
5532
  lastModified?: string | undefined;
3995
5533
  }>;
3996
5534
  export type Resource = z.output<typeof ResourceSchema>;
3997
5535
  export declare const ToolSchema: z.ZodObject<{
3998
5536
  name: z.ZodString;
3999
5537
  description: z.ZodString;
4000
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5538
+ inputSchema: z.ZodObject<{
5539
+ type: z.ZodOptional<z.ZodLiteral<"object">>;
5540
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5541
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5542
+ description: z.ZodOptional<z.ZodString>;
5543
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5544
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5545
+ format: z.ZodOptional<z.ZodString>;
5546
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5547
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5548
+ description: z.ZodOptional<z.ZodString>;
5549
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5550
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5551
+ format: z.ZodOptional<z.ZodString>;
5552
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5553
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5554
+ description: z.ZodOptional<z.ZodString>;
5555
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5556
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5557
+ format: z.ZodOptional<z.ZodString>;
5558
+ }, z.ZodTypeAny, "passthrough">>>>;
5559
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5560
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5561
+ type: z.ZodOptional<z.ZodLiteral<"object">>;
5562
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5563
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5564
+ description: z.ZodOptional<z.ZodString>;
5565
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5566
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5567
+ format: z.ZodOptional<z.ZodString>;
5568
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5569
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5570
+ description: z.ZodOptional<z.ZodString>;
5571
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5572
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5573
+ format: z.ZodOptional<z.ZodString>;
5574
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5575
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5576
+ description: z.ZodOptional<z.ZodString>;
5577
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5578
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5579
+ format: z.ZodOptional<z.ZodString>;
5580
+ }, z.ZodTypeAny, "passthrough">>>>;
5581
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5582
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5583
+ type: z.ZodOptional<z.ZodLiteral<"object">>;
5584
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5585
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5586
+ description: z.ZodOptional<z.ZodString>;
5587
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5588
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5589
+ format: z.ZodOptional<z.ZodString>;
5590
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5591
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5592
+ description: z.ZodOptional<z.ZodString>;
5593
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5594
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5595
+ format: z.ZodOptional<z.ZodString>;
5596
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5597
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5598
+ description: z.ZodOptional<z.ZodString>;
5599
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5600
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5601
+ format: z.ZodOptional<z.ZodString>;
5602
+ }, z.ZodTypeAny, "passthrough">>>>;
5603
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5604
+ }, z.ZodTypeAny, "passthrough">>;
4001
5605
  }, "strict", z.ZodTypeAny, {
4002
5606
  description: string;
4003
5607
  name: string;
4004
- inputSchema: Record<string, unknown>;
5608
+ inputSchema: {
5609
+ type?: "object" | undefined;
5610
+ properties?: Record<string, z.objectOutputType<{
5611
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5612
+ description: z.ZodOptional<z.ZodString>;
5613
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5614
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5615
+ format: z.ZodOptional<z.ZodString>;
5616
+ }, z.ZodTypeAny, "passthrough">> | undefined;
5617
+ required?: string[] | undefined;
5618
+ } & {
5619
+ [k: string]: unknown;
5620
+ };
4005
5621
  }, {
4006
5622
  description: string;
4007
5623
  name: string;
4008
- inputSchema: Record<string, unknown>;
5624
+ inputSchema: {
5625
+ type?: "object" | undefined;
5626
+ properties?: Record<string, z.objectInputType<{
5627
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "integer", "boolean", "object", "array"]>>;
5628
+ description: z.ZodOptional<z.ZodString>;
5629
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
5630
+ default: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
5631
+ format: z.ZodOptional<z.ZodString>;
5632
+ }, z.ZodTypeAny, "passthrough">> | undefined;
5633
+ required?: string[] | undefined;
5634
+ } & {
5635
+ [k: string]: unknown;
5636
+ };
4009
5637
  }>;
4010
5638
  export type Tool = z.output<typeof ToolSchema>;
4011
5639
  export declare const PromptArgumentSchema: z.ZodObject<{
@@ -4039,24 +5667,45 @@ export declare const PromptDefinitionSchema: z.ZodObject<{
4039
5667
  description?: string | undefined;
4040
5668
  required?: boolean | undefined;
4041
5669
  }>, "many">>;
5670
+ disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
5671
+ userInvocable: z.ZodOptional<z.ZodBoolean>;
5672
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5673
+ toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5674
+ model: z.ZodOptional<z.ZodString>;
5675
+ context: z.ZodOptional<z.ZodEnum<["inline", "fork"]>>;
5676
+ agent: z.ZodOptional<z.ZodString>;
4042
5677
  }, "strict", z.ZodTypeAny, {
4043
5678
  name: string;
4044
5679
  description?: string | undefined;
4045
5680
  title?: string | undefined;
5681
+ context?: "inline" | "fork" | undefined;
5682
+ model?: string | undefined;
4046
5683
  arguments?: {
4047
5684
  name: string;
4048
5685
  description?: string | undefined;
4049
5686
  required?: boolean | undefined;
4050
5687
  }[] | undefined;
5688
+ disableModelInvocation?: boolean | undefined;
5689
+ userInvocable?: boolean | undefined;
5690
+ allowedTools?: string[] | undefined;
5691
+ toolkits?: string[] | undefined;
5692
+ agent?: string | undefined;
4051
5693
  }, {
4052
5694
  name: string;
4053
5695
  description?: string | undefined;
4054
5696
  title?: string | undefined;
5697
+ context?: "inline" | "fork" | undefined;
5698
+ model?: string | undefined;
4055
5699
  arguments?: {
4056
5700
  name: string;
4057
5701
  description?: string | undefined;
4058
5702
  required?: boolean | undefined;
4059
5703
  }[] | undefined;
5704
+ disableModelInvocation?: boolean | undefined;
5705
+ userInvocable?: boolean | undefined;
5706
+ allowedTools?: string[] | undefined;
5707
+ toolkits?: string[] | undefined;
5708
+ agent?: string | undefined;
4060
5709
  }>;
4061
5710
  export type PromptDefinition = z.output<typeof PromptDefinitionSchema>;
4062
5711
  export declare const PromptInfoSchema: z.ZodObject<{
@@ -4076,30 +5725,65 @@ export declare const PromptInfoSchema: z.ZodObject<{
4076
5725
  description?: string | undefined;
4077
5726
  required?: boolean | undefined;
4078
5727
  }>, "many">>;
5728
+ disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
5729
+ userInvocable: z.ZodOptional<z.ZodBoolean>;
5730
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5731
+ toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5732
+ model: z.ZodOptional<z.ZodString>;
5733
+ context: z.ZodOptional<z.ZodEnum<["inline", "fork"]>>;
5734
+ agent: z.ZodOptional<z.ZodString>;
4079
5735
  source: z.ZodEnum<["mcp", "config", "custom"]>;
4080
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5736
+ displayName: z.ZodOptional<z.ZodString>;
5737
+ commandName: z.ZodOptional<z.ZodString>;
5738
+ metadata: z.ZodOptional<z.ZodType<{
5739
+ [key: string]: JsonValue;
5740
+ }, z.ZodTypeDef, {
5741
+ [key: string]: JsonValue;
5742
+ }>>;
4081
5743
  }, "strict", z.ZodTypeAny, {
4082
5744
  name: string;
4083
- source: "config" | "custom" | "mcp";
5745
+ source: "mcp" | "custom" | "config";
4084
5746
  description?: string | undefined;
4085
5747
  title?: string | undefined;
4086
- metadata?: Record<string, unknown> | undefined;
5748
+ context?: "inline" | "fork" | undefined;
5749
+ metadata?: {
5750
+ [key: string]: JsonValue;
5751
+ } | undefined;
5752
+ model?: string | undefined;
4087
5753
  arguments?: {
4088
5754
  name: string;
4089
5755
  description?: string | undefined;
4090
5756
  required?: boolean | undefined;
4091
5757
  }[] | undefined;
5758
+ displayName?: string | undefined;
5759
+ disableModelInvocation?: boolean | undefined;
5760
+ userInvocable?: boolean | undefined;
5761
+ allowedTools?: string[] | undefined;
5762
+ toolkits?: string[] | undefined;
5763
+ agent?: string | undefined;
5764
+ commandName?: string | undefined;
4092
5765
  }, {
4093
5766
  name: string;
4094
- source: "config" | "custom" | "mcp";
5767
+ source: "mcp" | "custom" | "config";
4095
5768
  description?: string | undefined;
4096
5769
  title?: string | undefined;
4097
- metadata?: Record<string, unknown> | undefined;
5770
+ context?: "inline" | "fork" | undefined;
5771
+ metadata?: {
5772
+ [key: string]: JsonValue;
5773
+ } | undefined;
5774
+ model?: string | undefined;
4098
5775
  arguments?: {
4099
5776
  name: string;
4100
5777
  description?: string | undefined;
4101
5778
  required?: boolean | undefined;
4102
5779
  }[] | undefined;
5780
+ displayName?: string | undefined;
5781
+ disableModelInvocation?: boolean | undefined;
5782
+ userInvocable?: boolean | undefined;
5783
+ allowedTools?: string[] | undefined;
5784
+ toolkits?: string[] | undefined;
5785
+ agent?: string | undefined;
5786
+ commandName?: string | undefined;
4103
5787
  }>;
4104
5788
  export type PromptInfo = z.output<typeof PromptInfoSchema>;
4105
5789
  export declare const PromptSchema: z.ZodObject<{
@@ -4137,28 +5821,28 @@ export declare const ErrorResponseSchema: z.ZodObject<{
4137
5821
  error: z.ZodObject<{
4138
5822
  message: z.ZodString;
4139
5823
  code: z.ZodOptional<z.ZodString>;
4140
- details: z.ZodOptional<z.ZodUnknown>;
5824
+ details: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
4141
5825
  }, "strict", z.ZodTypeAny, {
4142
5826
  message: string;
4143
5827
  code?: string | undefined;
4144
- details?: unknown;
5828
+ details?: JsonValue | undefined;
4145
5829
  }, {
4146
5830
  message: string;
4147
5831
  code?: string | undefined;
4148
- details?: unknown;
5832
+ details?: JsonValue | undefined;
4149
5833
  }>;
4150
5834
  }, "strict", z.ZodTypeAny, {
4151
5835
  error: {
4152
5836
  message: string;
4153
5837
  code?: string | undefined;
4154
- details?: unknown;
5838
+ details?: JsonValue | undefined;
4155
5839
  };
4156
5840
  ok: false;
4157
5841
  }, {
4158
5842
  error: {
4159
5843
  message: string;
4160
5844
  code?: string | undefined;
4161
- details?: unknown;
5845
+ details?: JsonValue | undefined;
4162
5846
  };
4163
5847
  ok: false;
4164
5848
  }>;
@@ -4168,30 +5852,30 @@ export declare const StandardErrorEnvelopeSchema: z.ZodObject<{
4168
5852
  message: z.ZodString;
4169
5853
  scope: z.ZodString;
4170
5854
  type: z.ZodString;
4171
- context: z.ZodOptional<z.ZodUnknown>;
5855
+ context: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
4172
5856
  recovery: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
4173
5857
  traceId: z.ZodString;
4174
5858
  endpoint: z.ZodString;
4175
5859
  method: z.ZodString;
4176
5860
  }, "strict", z.ZodTypeAny, {
4177
- method: string;
4178
5861
  type: string;
5862
+ method: string;
4179
5863
  code: string;
4180
5864
  message: string;
4181
5865
  scope: string;
4182
5866
  endpoint: string;
4183
5867
  traceId: string;
4184
- context?: unknown;
5868
+ context?: JsonValue | undefined;
4185
5869
  recovery?: string | string[] | undefined;
4186
5870
  }, {
4187
- method: string;
4188
5871
  type: string;
5872
+ method: string;
4189
5873
  code: string;
4190
5874
  message: string;
4191
5875
  scope: string;
4192
5876
  endpoint: string;
4193
5877
  traceId: string;
4194
- context?: unknown;
5878
+ context?: JsonValue | undefined;
4195
5879
  recovery?: string | string[] | undefined;
4196
5880
  }>;
4197
5881
  export type StandardErrorEnvelope = z.output<typeof StandardErrorEnvelopeSchema>;