@dexto/core 1.6.27 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/DextoAgent.d.ts +3 -3
- package/dist/agent/DextoAgent.d.ts.map +1 -1
- package/dist/agent/schemas.cjs +5 -5
- package/dist/agent/schemas.d.ts +69 -980
- package/dist/agent/schemas.d.ts.map +1 -1
- package/dist/agent/schemas.js +5 -5
- package/dist/approval/schemas.cjs +6 -6
- package/dist/approval/schemas.d.ts +316 -1292
- package/dist/approval/schemas.d.ts.map +1 -1
- package/dist/approval/schemas.js +6 -6
- package/dist/approval/session-approval-store.cjs +1 -1
- package/dist/approval/session-approval-store.d.ts +12 -30
- package/dist/approval/session-approval-store.d.ts.map +1 -1
- package/dist/approval/session-approval-store.js +1 -1
- package/dist/llm/providers/local/schemas.d.ts +102 -262
- package/dist/llm/providers/local/schemas.d.ts.map +1 -1
- package/dist/llm/registry/index.d.ts +5 -3
- package/dist/llm/registry/index.d.ts.map +1 -1
- package/dist/llm/resolver.cjs +0 -1
- package/dist/llm/resolver.d.ts.map +1 -1
- package/dist/llm/resolver.js +0 -1
- package/dist/llm/schemas.d.ts +95 -199
- package/dist/llm/schemas.d.ts.map +1 -1
- package/dist/logger/default-logger-factory.d.ts +28 -256
- package/dist/logger/default-logger-factory.d.ts.map +1 -1
- package/dist/logger/v2/schemas.d.ts +18 -120
- package/dist/logger/v2/schemas.d.ts.map +1 -1
- package/dist/mcp/schemas.cjs +4 -4
- package/dist/mcp/schemas.d.ts +77 -270
- package/dist/mcp/schemas.d.ts.map +1 -1
- package/dist/mcp/schemas.js +4 -4
- package/dist/memory/schemas.d.ts +37 -117
- package/dist/memory/schemas.d.ts.map +1 -1
- package/dist/prompts/schemas.d.ts +46 -190
- package/dist/prompts/schemas.d.ts.map +1 -1
- package/dist/resources/schemas.d.ts +14 -68
- package/dist/resources/schemas.d.ts.map +1 -1
- package/dist/runtime/host-runtime.d.ts +1 -5
- package/dist/runtime/host-runtime.d.ts.map +1 -1
- package/dist/session/schemas.d.ts +1 -7
- package/dist/session/schemas.d.ts.map +1 -1
- package/dist/systemPrompt/schemas.cjs +2 -10
- package/dist/systemPrompt/schemas.d.ts +53 -343
- package/dist/systemPrompt/schemas.d.ts.map +1 -1
- package/dist/systemPrompt/schemas.js +2 -10
- package/dist/telemetry/schemas.cjs +1 -1
- package/dist/telemetry/schemas.d.ts +9 -44
- package/dist/telemetry/schemas.d.ts.map +1 -1
- package/dist/telemetry/schemas.js +1 -1
- package/dist/tools/schemas.cjs +1 -1
- package/dist/tools/schemas.d.ts +19 -62
- package/dist/tools/schemas.d.ts.map +1 -1
- package/dist/tools/schemas.js +1 -1
- package/dist/tools/session-tool-preferences-store.d.ts +3 -9
- package/dist/tools/session-tool-preferences-store.d.ts.map +1 -1
- package/dist/utils/result.cjs +11 -8
- package/dist/utils/result.d.ts +6 -6
- package/dist/utils/result.d.ts.map +1 -1
- package/dist/utils/result.js +12 -9
- package/dist/utils/schema.cjs +6 -2
- package/dist/utils/schema.d.ts +2 -7
- package/dist/utils/schema.d.ts.map +1 -1
- package/dist/utils/schema.js +6 -2
- package/dist/utils/zod-schema-converter.cjs +66 -66
- package/dist/utils/zod-schema-converter.d.ts +3 -2
- package/dist/utils/zod-schema-converter.d.ts.map +1 -1
- package/dist/utils/zod-schema-converter.js +66 -66
- package/package.json +4 -5
|
@@ -5,15 +5,33 @@ import type { ToolPresentationSnapshotV1 } from '../tools/types.js';
|
|
|
5
5
|
/**
|
|
6
6
|
* Schema for approval types
|
|
7
7
|
*/
|
|
8
|
-
export declare const ApprovalTypeSchema: z.ZodEnum<
|
|
8
|
+
export declare const ApprovalTypeSchema: z.ZodEnum<{
|
|
9
|
+
custom: "custom";
|
|
10
|
+
tool_confirmation: "tool_confirmation";
|
|
11
|
+
command_confirmation: "command_confirmation";
|
|
12
|
+
elicitation: "elicitation";
|
|
13
|
+
directory_access: "directory_access";
|
|
14
|
+
}>;
|
|
9
15
|
/**
|
|
10
16
|
* Schema for approval status
|
|
11
17
|
*/
|
|
12
|
-
export declare const ApprovalStatusSchema: z.ZodEnum<
|
|
18
|
+
export declare const ApprovalStatusSchema: z.ZodEnum<{
|
|
19
|
+
approved: "approved";
|
|
20
|
+
denied: "denied";
|
|
21
|
+
cancelled: "cancelled";
|
|
22
|
+
}>;
|
|
13
23
|
/**
|
|
14
24
|
* Schema for denial/cancellation reasons
|
|
15
25
|
*/
|
|
16
|
-
export declare const DenialReasonSchema: z.ZodEnum<
|
|
26
|
+
export declare const DenialReasonSchema: z.ZodEnum<{
|
|
27
|
+
timeout: "timeout";
|
|
28
|
+
user_denied: "user_denied";
|
|
29
|
+
system_denied: "system_denied";
|
|
30
|
+
user_cancelled: "user_cancelled";
|
|
31
|
+
system_cancelled: "system_cancelled";
|
|
32
|
+
validation_failed: "validation_failed";
|
|
33
|
+
elicitation_disabled: "elicitation_disabled";
|
|
34
|
+
}>;
|
|
17
35
|
/**
|
|
18
36
|
* Directory access metadata schema
|
|
19
37
|
* Used when a tool tries to access files outside the working directory
|
|
@@ -21,75 +39,35 @@ export declare const DenialReasonSchema: z.ZodEnum<["user_denied", "system_denie
|
|
|
21
39
|
export declare const DirectoryAccessMetadataSchema: z.ZodObject<{
|
|
22
40
|
path: z.ZodString;
|
|
23
41
|
parentDir: z.ZodString;
|
|
24
|
-
operation: z.ZodEnum<
|
|
42
|
+
operation: z.ZodEnum<{
|
|
43
|
+
read: "read";
|
|
44
|
+
write: "write";
|
|
45
|
+
edit: "edit";
|
|
46
|
+
}>;
|
|
25
47
|
toolName: z.ZodString;
|
|
26
|
-
},
|
|
27
|
-
path: string;
|
|
28
|
-
parentDir: string;
|
|
29
|
-
operation: "read" | "write" | "edit";
|
|
30
|
-
toolName: string;
|
|
31
|
-
}, {
|
|
32
|
-
path: string;
|
|
33
|
-
parentDir: string;
|
|
34
|
-
operation: "read" | "write" | "edit";
|
|
35
|
-
toolName: string;
|
|
36
|
-
}>;
|
|
48
|
+
}, z.core.$strict>;
|
|
37
49
|
/**
|
|
38
50
|
* Tool approval metadata schema
|
|
39
51
|
*/
|
|
40
52
|
export declare const ToolApprovalMetadataSchema: z.ZodObject<{
|
|
41
53
|
toolName: z.ZodString;
|
|
42
|
-
presentationSnapshot: z.ZodOptional<z.
|
|
54
|
+
presentationSnapshot: z.ZodOptional<z.ZodCustom<ToolPresentationSnapshotV1, ToolPresentationSnapshotV1>>;
|
|
43
55
|
toolCallId: z.ZodString;
|
|
44
56
|
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
45
57
|
description: z.ZodOptional<z.ZodString>;
|
|
46
|
-
displayPreview: z.ZodOptional<z.
|
|
58
|
+
displayPreview: z.ZodOptional<z.ZodCustom<ToolDisplayData, ToolDisplayData>>;
|
|
47
59
|
directoryAccess: z.ZodOptional<z.ZodObject<{
|
|
48
60
|
path: z.ZodString;
|
|
49
61
|
parentDir: z.ZodString;
|
|
50
|
-
operation: z.ZodEnum<
|
|
62
|
+
operation: z.ZodEnum<{
|
|
63
|
+
read: "read";
|
|
64
|
+
write: "write";
|
|
65
|
+
edit: "edit";
|
|
66
|
+
}>;
|
|
51
67
|
toolName: z.ZodString;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
operation: "read" | "write" | "edit";
|
|
56
|
-
toolName: string;
|
|
57
|
-
}, {
|
|
58
|
-
path: string;
|
|
59
|
-
parentDir: string;
|
|
60
|
-
operation: "read" | "write" | "edit";
|
|
61
|
-
toolName: string;
|
|
62
|
-
}>>;
|
|
63
|
-
suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
64
|
-
}, "strict", z.ZodTypeAny, {
|
|
65
|
-
toolName: string;
|
|
66
|
-
toolCallId: string;
|
|
67
|
-
args: Record<string, unknown>;
|
|
68
|
-
description?: string | undefined;
|
|
69
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
70
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
71
|
-
directoryAccess?: {
|
|
72
|
-
path: string;
|
|
73
|
-
parentDir: string;
|
|
74
|
-
operation: "read" | "write" | "edit";
|
|
75
|
-
toolName: string;
|
|
76
|
-
} | undefined;
|
|
77
|
-
suggestedPatterns?: string[] | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
toolName: string;
|
|
80
|
-
toolCallId: string;
|
|
81
|
-
args: Record<string, unknown>;
|
|
82
|
-
description?: string | undefined;
|
|
83
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
84
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
85
|
-
directoryAccess?: {
|
|
86
|
-
path: string;
|
|
87
|
-
parentDir: string;
|
|
88
|
-
operation: "read" | "write" | "edit";
|
|
89
|
-
toolName: string;
|
|
90
|
-
} | undefined;
|
|
91
|
-
suggestedPatterns?: string[] | undefined;
|
|
92
|
-
}>;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
}, z.core.$strict>;
|
|
93
71
|
/**
|
|
94
72
|
* Command confirmation metadata schema
|
|
95
73
|
* TODO: Consider combining this with regular tools schemas for consistency
|
|
@@ -98,34 +76,16 @@ export declare const CommandConfirmationMetadataSchema: z.ZodObject<{
|
|
|
98
76
|
toolName: z.ZodString;
|
|
99
77
|
command: z.ZodString;
|
|
100
78
|
originalCommand: z.ZodOptional<z.ZodString>;
|
|
101
|
-
},
|
|
102
|
-
toolName: string;
|
|
103
|
-
command: string;
|
|
104
|
-
originalCommand?: string | undefined;
|
|
105
|
-
}, {
|
|
106
|
-
toolName: string;
|
|
107
|
-
command: string;
|
|
108
|
-
originalCommand?: string | undefined;
|
|
109
|
-
}>;
|
|
79
|
+
}, z.core.$strict>;
|
|
110
80
|
/**
|
|
111
81
|
* Elicitation metadata schema
|
|
112
82
|
*/
|
|
113
83
|
export declare const ElicitationMetadataSchema: z.ZodObject<{
|
|
114
|
-
schema: z.ZodType<JSONSchema7, z.
|
|
84
|
+
schema: z.ZodType<JSONSchema7, unknown, z.core.$ZodTypeInternals<JSONSchema7, unknown>>;
|
|
115
85
|
prompt: z.ZodString;
|
|
116
86
|
serverName: z.ZodString;
|
|
117
87
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
118
|
-
},
|
|
119
|
-
prompt: string;
|
|
120
|
-
schema: JSONSchema7;
|
|
121
|
-
serverName: string;
|
|
122
|
-
context?: Record<string, unknown> | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
prompt: string;
|
|
125
|
-
schema: JSONSchema7;
|
|
126
|
-
serverName: string;
|
|
127
|
-
context?: Record<string, unknown> | undefined;
|
|
128
|
-
}>;
|
|
88
|
+
}, z.core.$strict>;
|
|
129
89
|
/**
|
|
130
90
|
* Custom approval metadata schema - flexible
|
|
131
91
|
*/
|
|
@@ -135,36 +95,20 @@ export declare const CustomApprovalMetadataSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
135
95
|
*/
|
|
136
96
|
export declare const BaseApprovalRequestSchema: z.ZodObject<{
|
|
137
97
|
approvalId: z.ZodString;
|
|
138
|
-
type: z.ZodEnum<
|
|
98
|
+
type: z.ZodEnum<{
|
|
99
|
+
custom: "custom";
|
|
100
|
+
tool_confirmation: "tool_confirmation";
|
|
101
|
+
command_confirmation: "command_confirmation";
|
|
102
|
+
elicitation: "elicitation";
|
|
103
|
+
directory_access: "directory_access";
|
|
104
|
+
}>;
|
|
139
105
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
140
106
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
141
107
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
142
|
-
},
|
|
143
|
-
ids?: Record<string, string> | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
ids?: Record<string, string> | undefined;
|
|
146
|
-
}>>;
|
|
108
|
+
}, z.core.$strict>>;
|
|
147
109
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
148
110
|
timestamp: z.ZodDate;
|
|
149
|
-
},
|
|
150
|
-
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
151
|
-
approvalId: string;
|
|
152
|
-
timestamp: Date;
|
|
153
|
-
timeout?: number | undefined;
|
|
154
|
-
sessionId?: string | undefined;
|
|
155
|
-
hostRuntime?: {
|
|
156
|
-
ids?: Record<string, string> | undefined;
|
|
157
|
-
} | undefined;
|
|
158
|
-
}, {
|
|
159
|
-
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
160
|
-
approvalId: string;
|
|
161
|
-
timestamp: Date;
|
|
162
|
-
timeout?: number | undefined;
|
|
163
|
-
sessionId?: string | undefined;
|
|
164
|
-
hostRuntime?: {
|
|
165
|
-
ids?: Record<string, string> | undefined;
|
|
166
|
-
} | undefined;
|
|
167
|
-
}>;
|
|
111
|
+
}, z.core.$strip>;
|
|
168
112
|
/**
|
|
169
113
|
* Tool approval request schema
|
|
170
114
|
*/
|
|
@@ -173,117 +117,30 @@ export declare const ToolApprovalRequestSchema: z.ZodObject<{
|
|
|
173
117
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
174
118
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
175
119
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
176
|
-
},
|
|
177
|
-
ids?: Record<string, string> | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
ids?: Record<string, string> | undefined;
|
|
180
|
-
}>>;
|
|
120
|
+
}, z.core.$strict>>;
|
|
181
121
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
182
122
|
timestamp: z.ZodDate;
|
|
183
|
-
} & {
|
|
184
123
|
type: z.ZodLiteral<"tool_confirmation">;
|
|
185
124
|
metadata: z.ZodObject<{
|
|
186
125
|
toolName: z.ZodString;
|
|
187
|
-
presentationSnapshot: z.ZodOptional<z.
|
|
126
|
+
presentationSnapshot: z.ZodOptional<z.ZodCustom<ToolPresentationSnapshotV1, ToolPresentationSnapshotV1>>;
|
|
188
127
|
toolCallId: z.ZodString;
|
|
189
128
|
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
190
129
|
description: z.ZodOptional<z.ZodString>;
|
|
191
|
-
displayPreview: z.ZodOptional<z.
|
|
130
|
+
displayPreview: z.ZodOptional<z.ZodCustom<ToolDisplayData, ToolDisplayData>>;
|
|
192
131
|
directoryAccess: z.ZodOptional<z.ZodObject<{
|
|
193
132
|
path: z.ZodString;
|
|
194
133
|
parentDir: z.ZodString;
|
|
195
|
-
operation: z.ZodEnum<
|
|
134
|
+
operation: z.ZodEnum<{
|
|
135
|
+
read: "read";
|
|
136
|
+
write: "write";
|
|
137
|
+
edit: "edit";
|
|
138
|
+
}>;
|
|
196
139
|
toolName: z.ZodString;
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
toolName: string;
|
|
202
|
-
}, {
|
|
203
|
-
path: string;
|
|
204
|
-
parentDir: string;
|
|
205
|
-
operation: "read" | "write" | "edit";
|
|
206
|
-
toolName: string;
|
|
207
|
-
}>>;
|
|
208
|
-
suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
209
|
-
}, "strict", z.ZodTypeAny, {
|
|
210
|
-
toolName: string;
|
|
211
|
-
toolCallId: string;
|
|
212
|
-
args: Record<string, unknown>;
|
|
213
|
-
description?: string | undefined;
|
|
214
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
215
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
216
|
-
directoryAccess?: {
|
|
217
|
-
path: string;
|
|
218
|
-
parentDir: string;
|
|
219
|
-
operation: "read" | "write" | "edit";
|
|
220
|
-
toolName: string;
|
|
221
|
-
} | undefined;
|
|
222
|
-
suggestedPatterns?: string[] | undefined;
|
|
223
|
-
}, {
|
|
224
|
-
toolName: string;
|
|
225
|
-
toolCallId: string;
|
|
226
|
-
args: Record<string, unknown>;
|
|
227
|
-
description?: string | undefined;
|
|
228
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
229
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
230
|
-
directoryAccess?: {
|
|
231
|
-
path: string;
|
|
232
|
-
parentDir: string;
|
|
233
|
-
operation: "read" | "write" | "edit";
|
|
234
|
-
toolName: string;
|
|
235
|
-
} | undefined;
|
|
236
|
-
suggestedPatterns?: string[] | undefined;
|
|
237
|
-
}>;
|
|
238
|
-
}, "strict", z.ZodTypeAny, {
|
|
239
|
-
type: "tool_confirmation";
|
|
240
|
-
approvalId: string;
|
|
241
|
-
timestamp: Date;
|
|
242
|
-
metadata: {
|
|
243
|
-
toolName: string;
|
|
244
|
-
toolCallId: string;
|
|
245
|
-
args: Record<string, unknown>;
|
|
246
|
-
description?: string | undefined;
|
|
247
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
248
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
249
|
-
directoryAccess?: {
|
|
250
|
-
path: string;
|
|
251
|
-
parentDir: string;
|
|
252
|
-
operation: "read" | "write" | "edit";
|
|
253
|
-
toolName: string;
|
|
254
|
-
} | undefined;
|
|
255
|
-
suggestedPatterns?: string[] | undefined;
|
|
256
|
-
};
|
|
257
|
-
timeout?: number | undefined;
|
|
258
|
-
sessionId?: string | undefined;
|
|
259
|
-
hostRuntime?: {
|
|
260
|
-
ids?: Record<string, string> | undefined;
|
|
261
|
-
} | undefined;
|
|
262
|
-
}, {
|
|
263
|
-
type: "tool_confirmation";
|
|
264
|
-
approvalId: string;
|
|
265
|
-
timestamp: Date;
|
|
266
|
-
metadata: {
|
|
267
|
-
toolName: string;
|
|
268
|
-
toolCallId: string;
|
|
269
|
-
args: Record<string, unknown>;
|
|
270
|
-
description?: string | undefined;
|
|
271
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
272
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
273
|
-
directoryAccess?: {
|
|
274
|
-
path: string;
|
|
275
|
-
parentDir: string;
|
|
276
|
-
operation: "read" | "write" | "edit";
|
|
277
|
-
toolName: string;
|
|
278
|
-
} | undefined;
|
|
279
|
-
suggestedPatterns?: string[] | undefined;
|
|
280
|
-
};
|
|
281
|
-
timeout?: number | undefined;
|
|
282
|
-
sessionId?: string | undefined;
|
|
283
|
-
hostRuntime?: {
|
|
284
|
-
ids?: Record<string, string> | undefined;
|
|
285
|
-
} | undefined;
|
|
286
|
-
}>;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
142
|
+
}, z.core.$strict>;
|
|
143
|
+
}, z.core.$strict>;
|
|
287
144
|
/**
|
|
288
145
|
* Command confirmation request schema
|
|
289
146
|
*/
|
|
@@ -292,57 +149,16 @@ export declare const CommandConfirmationRequestSchema: z.ZodObject<{
|
|
|
292
149
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
293
150
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
294
151
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
295
|
-
},
|
|
296
|
-
ids?: Record<string, string> | undefined;
|
|
297
|
-
}, {
|
|
298
|
-
ids?: Record<string, string> | undefined;
|
|
299
|
-
}>>;
|
|
152
|
+
}, z.core.$strict>>;
|
|
300
153
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
301
154
|
timestamp: z.ZodDate;
|
|
302
|
-
} & {
|
|
303
155
|
type: z.ZodLiteral<"command_confirmation">;
|
|
304
156
|
metadata: z.ZodObject<{
|
|
305
157
|
toolName: z.ZodString;
|
|
306
158
|
command: z.ZodString;
|
|
307
159
|
originalCommand: z.ZodOptional<z.ZodString>;
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
command: string;
|
|
311
|
-
originalCommand?: string | undefined;
|
|
312
|
-
}, {
|
|
313
|
-
toolName: string;
|
|
314
|
-
command: string;
|
|
315
|
-
originalCommand?: string | undefined;
|
|
316
|
-
}>;
|
|
317
|
-
}, "strict", z.ZodTypeAny, {
|
|
318
|
-
type: "command_confirmation";
|
|
319
|
-
approvalId: string;
|
|
320
|
-
timestamp: Date;
|
|
321
|
-
metadata: {
|
|
322
|
-
toolName: string;
|
|
323
|
-
command: string;
|
|
324
|
-
originalCommand?: string | undefined;
|
|
325
|
-
};
|
|
326
|
-
timeout?: number | undefined;
|
|
327
|
-
sessionId?: string | undefined;
|
|
328
|
-
hostRuntime?: {
|
|
329
|
-
ids?: Record<string, string> | undefined;
|
|
330
|
-
} | undefined;
|
|
331
|
-
}, {
|
|
332
|
-
type: "command_confirmation";
|
|
333
|
-
approvalId: string;
|
|
334
|
-
timestamp: Date;
|
|
335
|
-
metadata: {
|
|
336
|
-
toolName: string;
|
|
337
|
-
command: string;
|
|
338
|
-
originalCommand?: string | undefined;
|
|
339
|
-
};
|
|
340
|
-
timeout?: number | undefined;
|
|
341
|
-
sessionId?: string | undefined;
|
|
342
|
-
hostRuntime?: {
|
|
343
|
-
ids?: Record<string, string> | undefined;
|
|
344
|
-
} | undefined;
|
|
345
|
-
}>;
|
|
160
|
+
}, z.core.$strict>;
|
|
161
|
+
}, z.core.$strict>;
|
|
346
162
|
/**
|
|
347
163
|
* Elicitation request schema
|
|
348
164
|
*/
|
|
@@ -351,62 +167,17 @@ export declare const ElicitationRequestSchema: z.ZodObject<{
|
|
|
351
167
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
352
168
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
353
169
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
354
|
-
},
|
|
355
|
-
ids?: Record<string, string> | undefined;
|
|
356
|
-
}, {
|
|
357
|
-
ids?: Record<string, string> | undefined;
|
|
358
|
-
}>>;
|
|
170
|
+
}, z.core.$strict>>;
|
|
359
171
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
360
172
|
timestamp: z.ZodDate;
|
|
361
|
-
} & {
|
|
362
173
|
type: z.ZodLiteral<"elicitation">;
|
|
363
174
|
metadata: z.ZodObject<{
|
|
364
|
-
schema: z.ZodType<JSONSchema7, z.
|
|
175
|
+
schema: z.ZodType<JSONSchema7, unknown, z.core.$ZodTypeInternals<JSONSchema7, unknown>>;
|
|
365
176
|
prompt: z.ZodString;
|
|
366
177
|
serverName: z.ZodString;
|
|
367
178
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
schema: JSONSchema7;
|
|
371
|
-
serverName: string;
|
|
372
|
-
context?: Record<string, unknown> | undefined;
|
|
373
|
-
}, {
|
|
374
|
-
prompt: string;
|
|
375
|
-
schema: JSONSchema7;
|
|
376
|
-
serverName: string;
|
|
377
|
-
context?: Record<string, unknown> | undefined;
|
|
378
|
-
}>;
|
|
379
|
-
}, "strict", z.ZodTypeAny, {
|
|
380
|
-
type: "elicitation";
|
|
381
|
-
approvalId: string;
|
|
382
|
-
timestamp: Date;
|
|
383
|
-
metadata: {
|
|
384
|
-
prompt: string;
|
|
385
|
-
schema: JSONSchema7;
|
|
386
|
-
serverName: string;
|
|
387
|
-
context?: Record<string, unknown> | undefined;
|
|
388
|
-
};
|
|
389
|
-
timeout?: number | undefined;
|
|
390
|
-
sessionId?: string | undefined;
|
|
391
|
-
hostRuntime?: {
|
|
392
|
-
ids?: Record<string, string> | undefined;
|
|
393
|
-
} | undefined;
|
|
394
|
-
}, {
|
|
395
|
-
type: "elicitation";
|
|
396
|
-
approvalId: string;
|
|
397
|
-
timestamp: Date;
|
|
398
|
-
metadata: {
|
|
399
|
-
prompt: string;
|
|
400
|
-
schema: JSONSchema7;
|
|
401
|
-
serverName: string;
|
|
402
|
-
context?: Record<string, unknown> | undefined;
|
|
403
|
-
};
|
|
404
|
-
timeout?: number | undefined;
|
|
405
|
-
sessionId?: string | undefined;
|
|
406
|
-
hostRuntime?: {
|
|
407
|
-
ids?: Record<string, string> | undefined;
|
|
408
|
-
} | undefined;
|
|
409
|
-
}>;
|
|
179
|
+
}, z.core.$strict>;
|
|
180
|
+
}, z.core.$strict>;
|
|
410
181
|
/**
|
|
411
182
|
* Custom approval request schema
|
|
412
183
|
*/
|
|
@@ -415,37 +186,12 @@ export declare const CustomApprovalRequestSchema: z.ZodObject<{
|
|
|
415
186
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
416
187
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
417
188
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
418
|
-
},
|
|
419
|
-
ids?: Record<string, string> | undefined;
|
|
420
|
-
}, {
|
|
421
|
-
ids?: Record<string, string> | undefined;
|
|
422
|
-
}>>;
|
|
189
|
+
}, z.core.$strict>>;
|
|
423
190
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
424
191
|
timestamp: z.ZodDate;
|
|
425
|
-
} & {
|
|
426
192
|
type: z.ZodLiteral<"custom">;
|
|
427
193
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
428
|
-
},
|
|
429
|
-
type: "custom";
|
|
430
|
-
approvalId: string;
|
|
431
|
-
timestamp: Date;
|
|
432
|
-
metadata: Record<string, unknown>;
|
|
433
|
-
timeout?: number | undefined;
|
|
434
|
-
sessionId?: string | undefined;
|
|
435
|
-
hostRuntime?: {
|
|
436
|
-
ids?: Record<string, string> | undefined;
|
|
437
|
-
} | undefined;
|
|
438
|
-
}, {
|
|
439
|
-
type: "custom";
|
|
440
|
-
approvalId: string;
|
|
441
|
-
timestamp: Date;
|
|
442
|
-
metadata: Record<string, unknown>;
|
|
443
|
-
timeout?: number | undefined;
|
|
444
|
-
sessionId?: string | undefined;
|
|
445
|
-
hostRuntime?: {
|
|
446
|
-
ids?: Record<string, string> | undefined;
|
|
447
|
-
} | undefined;
|
|
448
|
-
}>;
|
|
194
|
+
}, z.core.$strict>;
|
|
449
195
|
/**
|
|
450
196
|
* Directory access request schema
|
|
451
197
|
*/
|
|
@@ -454,391 +200,111 @@ export declare const DirectoryAccessRequestSchema: z.ZodObject<{
|
|
|
454
200
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
455
201
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
456
202
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
457
|
-
},
|
|
458
|
-
ids?: Record<string, string> | undefined;
|
|
459
|
-
}, {
|
|
460
|
-
ids?: Record<string, string> | undefined;
|
|
461
|
-
}>>;
|
|
203
|
+
}, z.core.$strict>>;
|
|
462
204
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
463
205
|
timestamp: z.ZodDate;
|
|
464
|
-
} & {
|
|
465
206
|
type: z.ZodLiteral<"directory_access">;
|
|
466
207
|
metadata: z.ZodObject<{
|
|
467
208
|
path: z.ZodString;
|
|
468
209
|
parentDir: z.ZodString;
|
|
469
|
-
operation: z.ZodEnum<
|
|
210
|
+
operation: z.ZodEnum<{
|
|
211
|
+
read: "read";
|
|
212
|
+
write: "write";
|
|
213
|
+
edit: "edit";
|
|
214
|
+
}>;
|
|
470
215
|
toolName: z.ZodString;
|
|
471
|
-
},
|
|
472
|
-
|
|
473
|
-
parentDir: string;
|
|
474
|
-
operation: "read" | "write" | "edit";
|
|
475
|
-
toolName: string;
|
|
476
|
-
}, {
|
|
477
|
-
path: string;
|
|
478
|
-
parentDir: string;
|
|
479
|
-
operation: "read" | "write" | "edit";
|
|
480
|
-
toolName: string;
|
|
481
|
-
}>;
|
|
482
|
-
}, "strict", z.ZodTypeAny, {
|
|
483
|
-
type: "directory_access";
|
|
484
|
-
approvalId: string;
|
|
485
|
-
timestamp: Date;
|
|
486
|
-
metadata: {
|
|
487
|
-
path: string;
|
|
488
|
-
parentDir: string;
|
|
489
|
-
operation: "read" | "write" | "edit";
|
|
490
|
-
toolName: string;
|
|
491
|
-
};
|
|
492
|
-
timeout?: number | undefined;
|
|
493
|
-
sessionId?: string | undefined;
|
|
494
|
-
hostRuntime?: {
|
|
495
|
-
ids?: Record<string, string> | undefined;
|
|
496
|
-
} | undefined;
|
|
497
|
-
}, {
|
|
498
|
-
type: "directory_access";
|
|
499
|
-
approvalId: string;
|
|
500
|
-
timestamp: Date;
|
|
501
|
-
metadata: {
|
|
502
|
-
path: string;
|
|
503
|
-
parentDir: string;
|
|
504
|
-
operation: "read" | "write" | "edit";
|
|
505
|
-
toolName: string;
|
|
506
|
-
};
|
|
507
|
-
timeout?: number | undefined;
|
|
508
|
-
sessionId?: string | undefined;
|
|
509
|
-
hostRuntime?: {
|
|
510
|
-
ids?: Record<string, string> | undefined;
|
|
511
|
-
} | undefined;
|
|
512
|
-
}>;
|
|
216
|
+
}, z.core.$strict>;
|
|
217
|
+
}, z.core.$strict>;
|
|
513
218
|
/**
|
|
514
219
|
* Discriminated union for all approval requests
|
|
515
220
|
*/
|
|
516
|
-
export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<
|
|
221
|
+
export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
517
222
|
approvalId: z.ZodString;
|
|
518
223
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
519
224
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
520
225
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
521
|
-
},
|
|
522
|
-
ids?: Record<string, string> | undefined;
|
|
523
|
-
}, {
|
|
524
|
-
ids?: Record<string, string> | undefined;
|
|
525
|
-
}>>;
|
|
226
|
+
}, z.core.$strict>>;
|
|
526
227
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
527
228
|
timestamp: z.ZodDate;
|
|
528
|
-
} & {
|
|
529
229
|
type: z.ZodLiteral<"tool_confirmation">;
|
|
530
230
|
metadata: z.ZodObject<{
|
|
531
231
|
toolName: z.ZodString;
|
|
532
|
-
presentationSnapshot: z.ZodOptional<z.
|
|
232
|
+
presentationSnapshot: z.ZodOptional<z.ZodCustom<ToolPresentationSnapshotV1, ToolPresentationSnapshotV1>>;
|
|
533
233
|
toolCallId: z.ZodString;
|
|
534
234
|
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
535
235
|
description: z.ZodOptional<z.ZodString>;
|
|
536
|
-
displayPreview: z.ZodOptional<z.
|
|
236
|
+
displayPreview: z.ZodOptional<z.ZodCustom<ToolDisplayData, ToolDisplayData>>;
|
|
537
237
|
directoryAccess: z.ZodOptional<z.ZodObject<{
|
|
538
238
|
path: z.ZodString;
|
|
539
239
|
parentDir: z.ZodString;
|
|
540
|
-
operation: z.ZodEnum<
|
|
240
|
+
operation: z.ZodEnum<{
|
|
241
|
+
read: "read";
|
|
242
|
+
write: "write";
|
|
243
|
+
edit: "edit";
|
|
244
|
+
}>;
|
|
541
245
|
toolName: z.ZodString;
|
|
542
|
-
},
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
toolName: string;
|
|
547
|
-
}, {
|
|
548
|
-
path: string;
|
|
549
|
-
parentDir: string;
|
|
550
|
-
operation: "read" | "write" | "edit";
|
|
551
|
-
toolName: string;
|
|
552
|
-
}>>;
|
|
553
|
-
suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
554
|
-
}, "strict", z.ZodTypeAny, {
|
|
555
|
-
toolName: string;
|
|
556
|
-
toolCallId: string;
|
|
557
|
-
args: Record<string, unknown>;
|
|
558
|
-
description?: string | undefined;
|
|
559
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
560
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
561
|
-
directoryAccess?: {
|
|
562
|
-
path: string;
|
|
563
|
-
parentDir: string;
|
|
564
|
-
operation: "read" | "write" | "edit";
|
|
565
|
-
toolName: string;
|
|
566
|
-
} | undefined;
|
|
567
|
-
suggestedPatterns?: string[] | undefined;
|
|
568
|
-
}, {
|
|
569
|
-
toolName: string;
|
|
570
|
-
toolCallId: string;
|
|
571
|
-
args: Record<string, unknown>;
|
|
572
|
-
description?: string | undefined;
|
|
573
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
574
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
575
|
-
directoryAccess?: {
|
|
576
|
-
path: string;
|
|
577
|
-
parentDir: string;
|
|
578
|
-
operation: "read" | "write" | "edit";
|
|
579
|
-
toolName: string;
|
|
580
|
-
} | undefined;
|
|
581
|
-
suggestedPatterns?: string[] | undefined;
|
|
582
|
-
}>;
|
|
583
|
-
}, "strict", z.ZodTypeAny, {
|
|
584
|
-
type: "tool_confirmation";
|
|
585
|
-
approvalId: string;
|
|
586
|
-
timestamp: Date;
|
|
587
|
-
metadata: {
|
|
588
|
-
toolName: string;
|
|
589
|
-
toolCallId: string;
|
|
590
|
-
args: Record<string, unknown>;
|
|
591
|
-
description?: string | undefined;
|
|
592
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
593
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
594
|
-
directoryAccess?: {
|
|
595
|
-
path: string;
|
|
596
|
-
parentDir: string;
|
|
597
|
-
operation: "read" | "write" | "edit";
|
|
598
|
-
toolName: string;
|
|
599
|
-
} | undefined;
|
|
600
|
-
suggestedPatterns?: string[] | undefined;
|
|
601
|
-
};
|
|
602
|
-
timeout?: number | undefined;
|
|
603
|
-
sessionId?: string | undefined;
|
|
604
|
-
hostRuntime?: {
|
|
605
|
-
ids?: Record<string, string> | undefined;
|
|
606
|
-
} | undefined;
|
|
607
|
-
}, {
|
|
608
|
-
type: "tool_confirmation";
|
|
609
|
-
approvalId: string;
|
|
610
|
-
timestamp: Date;
|
|
611
|
-
metadata: {
|
|
612
|
-
toolName: string;
|
|
613
|
-
toolCallId: string;
|
|
614
|
-
args: Record<string, unknown>;
|
|
615
|
-
description?: string | undefined;
|
|
616
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
617
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
618
|
-
directoryAccess?: {
|
|
619
|
-
path: string;
|
|
620
|
-
parentDir: string;
|
|
621
|
-
operation: "read" | "write" | "edit";
|
|
622
|
-
toolName: string;
|
|
623
|
-
} | undefined;
|
|
624
|
-
suggestedPatterns?: string[] | undefined;
|
|
625
|
-
};
|
|
626
|
-
timeout?: number | undefined;
|
|
627
|
-
sessionId?: string | undefined;
|
|
628
|
-
hostRuntime?: {
|
|
629
|
-
ids?: Record<string, string> | undefined;
|
|
630
|
-
} | undefined;
|
|
631
|
-
}>, z.ZodObject<{
|
|
246
|
+
}, z.core.$strict>>;
|
|
247
|
+
suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
632
250
|
approvalId: z.ZodString;
|
|
633
251
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
634
252
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
635
253
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
636
|
-
},
|
|
637
|
-
ids?: Record<string, string> | undefined;
|
|
638
|
-
}, {
|
|
639
|
-
ids?: Record<string, string> | undefined;
|
|
640
|
-
}>>;
|
|
254
|
+
}, z.core.$strict>>;
|
|
641
255
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
642
256
|
timestamp: z.ZodDate;
|
|
643
|
-
} & {
|
|
644
257
|
type: z.ZodLiteral<"command_confirmation">;
|
|
645
258
|
metadata: z.ZodObject<{
|
|
646
259
|
toolName: z.ZodString;
|
|
647
260
|
command: z.ZodString;
|
|
648
261
|
originalCommand: z.ZodOptional<z.ZodString>;
|
|
649
|
-
},
|
|
650
|
-
|
|
651
|
-
command: string;
|
|
652
|
-
originalCommand?: string | undefined;
|
|
653
|
-
}, {
|
|
654
|
-
toolName: string;
|
|
655
|
-
command: string;
|
|
656
|
-
originalCommand?: string | undefined;
|
|
657
|
-
}>;
|
|
658
|
-
}, "strict", z.ZodTypeAny, {
|
|
659
|
-
type: "command_confirmation";
|
|
660
|
-
approvalId: string;
|
|
661
|
-
timestamp: Date;
|
|
662
|
-
metadata: {
|
|
663
|
-
toolName: string;
|
|
664
|
-
command: string;
|
|
665
|
-
originalCommand?: string | undefined;
|
|
666
|
-
};
|
|
667
|
-
timeout?: number | undefined;
|
|
668
|
-
sessionId?: string | undefined;
|
|
669
|
-
hostRuntime?: {
|
|
670
|
-
ids?: Record<string, string> | undefined;
|
|
671
|
-
} | undefined;
|
|
672
|
-
}, {
|
|
673
|
-
type: "command_confirmation";
|
|
674
|
-
approvalId: string;
|
|
675
|
-
timestamp: Date;
|
|
676
|
-
metadata: {
|
|
677
|
-
toolName: string;
|
|
678
|
-
command: string;
|
|
679
|
-
originalCommand?: string | undefined;
|
|
680
|
-
};
|
|
681
|
-
timeout?: number | undefined;
|
|
682
|
-
sessionId?: string | undefined;
|
|
683
|
-
hostRuntime?: {
|
|
684
|
-
ids?: Record<string, string> | undefined;
|
|
685
|
-
} | undefined;
|
|
686
|
-
}>, z.ZodObject<{
|
|
262
|
+
}, z.core.$strict>;
|
|
263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
687
264
|
approvalId: z.ZodString;
|
|
688
265
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
689
266
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
690
267
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
691
|
-
},
|
|
692
|
-
ids?: Record<string, string> | undefined;
|
|
693
|
-
}, {
|
|
694
|
-
ids?: Record<string, string> | undefined;
|
|
695
|
-
}>>;
|
|
268
|
+
}, z.core.$strict>>;
|
|
696
269
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
697
270
|
timestamp: z.ZodDate;
|
|
698
|
-
} & {
|
|
699
271
|
type: z.ZodLiteral<"elicitation">;
|
|
700
272
|
metadata: z.ZodObject<{
|
|
701
|
-
schema: z.ZodType<JSONSchema7, z.
|
|
273
|
+
schema: z.ZodType<JSONSchema7, unknown, z.core.$ZodTypeInternals<JSONSchema7, unknown>>;
|
|
702
274
|
prompt: z.ZodString;
|
|
703
275
|
serverName: z.ZodString;
|
|
704
276
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
705
|
-
},
|
|
706
|
-
|
|
707
|
-
schema: JSONSchema7;
|
|
708
|
-
serverName: string;
|
|
709
|
-
context?: Record<string, unknown> | undefined;
|
|
710
|
-
}, {
|
|
711
|
-
prompt: string;
|
|
712
|
-
schema: JSONSchema7;
|
|
713
|
-
serverName: string;
|
|
714
|
-
context?: Record<string, unknown> | undefined;
|
|
715
|
-
}>;
|
|
716
|
-
}, "strict", z.ZodTypeAny, {
|
|
717
|
-
type: "elicitation";
|
|
718
|
-
approvalId: string;
|
|
719
|
-
timestamp: Date;
|
|
720
|
-
metadata: {
|
|
721
|
-
prompt: string;
|
|
722
|
-
schema: JSONSchema7;
|
|
723
|
-
serverName: string;
|
|
724
|
-
context?: Record<string, unknown> | undefined;
|
|
725
|
-
};
|
|
726
|
-
timeout?: number | undefined;
|
|
727
|
-
sessionId?: string | undefined;
|
|
728
|
-
hostRuntime?: {
|
|
729
|
-
ids?: Record<string, string> | undefined;
|
|
730
|
-
} | undefined;
|
|
731
|
-
}, {
|
|
732
|
-
type: "elicitation";
|
|
733
|
-
approvalId: string;
|
|
734
|
-
timestamp: Date;
|
|
735
|
-
metadata: {
|
|
736
|
-
prompt: string;
|
|
737
|
-
schema: JSONSchema7;
|
|
738
|
-
serverName: string;
|
|
739
|
-
context?: Record<string, unknown> | undefined;
|
|
740
|
-
};
|
|
741
|
-
timeout?: number | undefined;
|
|
742
|
-
sessionId?: string | undefined;
|
|
743
|
-
hostRuntime?: {
|
|
744
|
-
ids?: Record<string, string> | undefined;
|
|
745
|
-
} | undefined;
|
|
746
|
-
}>, z.ZodObject<{
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
747
279
|
approvalId: z.ZodString;
|
|
748
280
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
749
281
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
750
282
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
751
|
-
},
|
|
752
|
-
ids?: Record<string, string> | undefined;
|
|
753
|
-
}, {
|
|
754
|
-
ids?: Record<string, string> | undefined;
|
|
755
|
-
}>>;
|
|
283
|
+
}, z.core.$strict>>;
|
|
756
284
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
757
285
|
timestamp: z.ZodDate;
|
|
758
|
-
} & {
|
|
759
286
|
type: z.ZodLiteral<"custom">;
|
|
760
287
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
761
|
-
},
|
|
762
|
-
type: "custom";
|
|
763
|
-
approvalId: string;
|
|
764
|
-
timestamp: Date;
|
|
765
|
-
metadata: Record<string, unknown>;
|
|
766
|
-
timeout?: number | undefined;
|
|
767
|
-
sessionId?: string | undefined;
|
|
768
|
-
hostRuntime?: {
|
|
769
|
-
ids?: Record<string, string> | undefined;
|
|
770
|
-
} | undefined;
|
|
771
|
-
}, {
|
|
772
|
-
type: "custom";
|
|
773
|
-
approvalId: string;
|
|
774
|
-
timestamp: Date;
|
|
775
|
-
metadata: Record<string, unknown>;
|
|
776
|
-
timeout?: number | undefined;
|
|
777
|
-
sessionId?: string | undefined;
|
|
778
|
-
hostRuntime?: {
|
|
779
|
-
ids?: Record<string, string> | undefined;
|
|
780
|
-
} | undefined;
|
|
781
|
-
}>, z.ZodObject<{
|
|
288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
782
289
|
approvalId: z.ZodString;
|
|
783
290
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
784
291
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
785
292
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
786
|
-
},
|
|
787
|
-
ids?: Record<string, string> | undefined;
|
|
788
|
-
}, {
|
|
789
|
-
ids?: Record<string, string> | undefined;
|
|
790
|
-
}>>;
|
|
293
|
+
}, z.core.$strict>>;
|
|
791
294
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
792
295
|
timestamp: z.ZodDate;
|
|
793
|
-
} & {
|
|
794
296
|
type: z.ZodLiteral<"directory_access">;
|
|
795
297
|
metadata: z.ZodObject<{
|
|
796
298
|
path: z.ZodString;
|
|
797
299
|
parentDir: z.ZodString;
|
|
798
|
-
operation: z.ZodEnum<
|
|
300
|
+
operation: z.ZodEnum<{
|
|
301
|
+
read: "read";
|
|
302
|
+
write: "write";
|
|
303
|
+
edit: "edit";
|
|
304
|
+
}>;
|
|
799
305
|
toolName: z.ZodString;
|
|
800
|
-
},
|
|
801
|
-
|
|
802
|
-
parentDir: string;
|
|
803
|
-
operation: "read" | "write" | "edit";
|
|
804
|
-
toolName: string;
|
|
805
|
-
}, {
|
|
806
|
-
path: string;
|
|
807
|
-
parentDir: string;
|
|
808
|
-
operation: "read" | "write" | "edit";
|
|
809
|
-
toolName: string;
|
|
810
|
-
}>;
|
|
811
|
-
}, "strict", z.ZodTypeAny, {
|
|
812
|
-
type: "directory_access";
|
|
813
|
-
approvalId: string;
|
|
814
|
-
timestamp: Date;
|
|
815
|
-
metadata: {
|
|
816
|
-
path: string;
|
|
817
|
-
parentDir: string;
|
|
818
|
-
operation: "read" | "write" | "edit";
|
|
819
|
-
toolName: string;
|
|
820
|
-
};
|
|
821
|
-
timeout?: number | undefined;
|
|
822
|
-
sessionId?: string | undefined;
|
|
823
|
-
hostRuntime?: {
|
|
824
|
-
ids?: Record<string, string> | undefined;
|
|
825
|
-
} | undefined;
|
|
826
|
-
}, {
|
|
827
|
-
type: "directory_access";
|
|
828
|
-
approvalId: string;
|
|
829
|
-
timestamp: Date;
|
|
830
|
-
metadata: {
|
|
831
|
-
path: string;
|
|
832
|
-
parentDir: string;
|
|
833
|
-
operation: "read" | "write" | "edit";
|
|
834
|
-
toolName: string;
|
|
835
|
-
};
|
|
836
|
-
timeout?: number | undefined;
|
|
837
|
-
sessionId?: string | undefined;
|
|
838
|
-
hostRuntime?: {
|
|
839
|
-
ids?: Record<string, string> | undefined;
|
|
840
|
-
} | undefined;
|
|
841
|
-
}>]>;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
}, z.core.$strict>], "type">;
|
|
842
308
|
/**
|
|
843
309
|
* Tool approval response data schema
|
|
844
310
|
*/
|
|
@@ -846,29 +312,17 @@ export declare const ToolApprovalResponseDataSchema: z.ZodObject<{
|
|
|
846
312
|
rememberChoice: z.ZodOptional<z.ZodBoolean>;
|
|
847
313
|
rememberPattern: z.ZodOptional<z.ZodString>;
|
|
848
314
|
rememberDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
849
|
-
},
|
|
850
|
-
rememberChoice?: boolean | undefined;
|
|
851
|
-
rememberPattern?: string | undefined;
|
|
852
|
-
rememberDirectory?: boolean | undefined;
|
|
853
|
-
}, {
|
|
854
|
-
rememberChoice?: boolean | undefined;
|
|
855
|
-
rememberPattern?: string | undefined;
|
|
856
|
-
rememberDirectory?: boolean | undefined;
|
|
857
|
-
}>;
|
|
315
|
+
}, z.core.$strict>;
|
|
858
316
|
/**
|
|
859
317
|
* Command confirmation response data schema
|
|
860
318
|
*/
|
|
861
|
-
export declare const CommandConfirmationResponseDataSchema: z.ZodObject<{},
|
|
319
|
+
export declare const CommandConfirmationResponseDataSchema: z.ZodObject<{}, z.core.$strict>;
|
|
862
320
|
/**
|
|
863
321
|
* Elicitation response data schema
|
|
864
322
|
*/
|
|
865
323
|
export declare const ElicitationResponseDataSchema: z.ZodObject<{
|
|
866
324
|
formData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
867
|
-
},
|
|
868
|
-
formData: Record<string, unknown>;
|
|
869
|
-
}, {
|
|
870
|
-
formData: Record<string, unknown>;
|
|
871
|
-
}>;
|
|
325
|
+
}, z.core.$strict>;
|
|
872
326
|
/**
|
|
873
327
|
* Custom approval response data schema
|
|
874
328
|
*/
|
|
@@ -878,787 +332,357 @@ export declare const CustomApprovalResponseDataSchema: z.ZodRecord<z.ZodString,
|
|
|
878
332
|
*/
|
|
879
333
|
export declare const DirectoryAccessResponseDataSchema: z.ZodObject<{
|
|
880
334
|
rememberDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
881
|
-
},
|
|
882
|
-
rememberDirectory?: boolean | undefined;
|
|
883
|
-
}, {
|
|
884
|
-
rememberDirectory?: boolean | undefined;
|
|
885
|
-
}>;
|
|
335
|
+
}, z.core.$strict>;
|
|
886
336
|
/**
|
|
887
337
|
* Base approval response schema
|
|
888
338
|
*/
|
|
889
339
|
export declare const BaseApprovalResponseSchema: z.ZodObject<{
|
|
890
340
|
approvalId: z.ZodString;
|
|
891
|
-
status: z.ZodEnum<
|
|
341
|
+
status: z.ZodEnum<{
|
|
342
|
+
approved: "approved";
|
|
343
|
+
denied: "denied";
|
|
344
|
+
cancelled: "cancelled";
|
|
345
|
+
}>;
|
|
892
346
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
893
347
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
894
348
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
895
|
-
},
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
349
|
+
}, z.core.$strict>>;
|
|
350
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
351
|
+
timeout: "timeout";
|
|
352
|
+
user_denied: "user_denied";
|
|
353
|
+
system_denied: "system_denied";
|
|
354
|
+
user_cancelled: "user_cancelled";
|
|
355
|
+
system_cancelled: "system_cancelled";
|
|
356
|
+
validation_failed: "validation_failed";
|
|
357
|
+
elicitation_disabled: "elicitation_disabled";
|
|
899
358
|
}>>;
|
|
900
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
901
359
|
message: z.ZodOptional<z.ZodString>;
|
|
902
360
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
903
|
-
},
|
|
904
|
-
status: "approved" | "denied" | "cancelled";
|
|
905
|
-
approvalId: string;
|
|
906
|
-
message?: string | undefined;
|
|
907
|
-
sessionId?: string | undefined;
|
|
908
|
-
hostRuntime?: {
|
|
909
|
-
ids?: Record<string, string> | undefined;
|
|
910
|
-
} | undefined;
|
|
911
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
912
|
-
timeoutMs?: number | undefined;
|
|
913
|
-
}, {
|
|
914
|
-
status: "approved" | "denied" | "cancelled";
|
|
915
|
-
approvalId: string;
|
|
916
|
-
message?: string | undefined;
|
|
917
|
-
sessionId?: string | undefined;
|
|
918
|
-
hostRuntime?: {
|
|
919
|
-
ids?: Record<string, string> | undefined;
|
|
920
|
-
} | undefined;
|
|
921
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
922
|
-
timeoutMs?: number | undefined;
|
|
923
|
-
}>;
|
|
361
|
+
}, z.core.$strip>;
|
|
924
362
|
/**
|
|
925
363
|
* Tool approval response schema
|
|
926
364
|
*/
|
|
927
365
|
export declare const ToolApprovalResponseSchema: z.ZodObject<{
|
|
928
366
|
approvalId: z.ZodString;
|
|
929
|
-
status: z.ZodEnum<
|
|
367
|
+
status: z.ZodEnum<{
|
|
368
|
+
approved: "approved";
|
|
369
|
+
denied: "denied";
|
|
370
|
+
cancelled: "cancelled";
|
|
371
|
+
}>;
|
|
930
372
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
931
373
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
932
374
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
933
|
-
},
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
375
|
+
}, z.core.$strict>>;
|
|
376
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
377
|
+
timeout: "timeout";
|
|
378
|
+
user_denied: "user_denied";
|
|
379
|
+
system_denied: "system_denied";
|
|
380
|
+
user_cancelled: "user_cancelled";
|
|
381
|
+
system_cancelled: "system_cancelled";
|
|
382
|
+
validation_failed: "validation_failed";
|
|
383
|
+
elicitation_disabled: "elicitation_disabled";
|
|
937
384
|
}>>;
|
|
938
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
939
385
|
message: z.ZodOptional<z.ZodString>;
|
|
940
386
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
941
|
-
} & {
|
|
942
387
|
data: z.ZodOptional<z.ZodObject<{
|
|
943
388
|
rememberChoice: z.ZodOptional<z.ZodBoolean>;
|
|
944
389
|
rememberPattern: z.ZodOptional<z.ZodString>;
|
|
945
390
|
rememberDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
946
|
-
},
|
|
947
|
-
|
|
948
|
-
rememberPattern?: string | undefined;
|
|
949
|
-
rememberDirectory?: boolean | undefined;
|
|
950
|
-
}, {
|
|
951
|
-
rememberChoice?: boolean | undefined;
|
|
952
|
-
rememberPattern?: string | undefined;
|
|
953
|
-
rememberDirectory?: boolean | undefined;
|
|
954
|
-
}>>;
|
|
955
|
-
}, "strict", z.ZodTypeAny, {
|
|
956
|
-
status: "approved" | "denied" | "cancelled";
|
|
957
|
-
approvalId: string;
|
|
958
|
-
data?: {
|
|
959
|
-
rememberChoice?: boolean | undefined;
|
|
960
|
-
rememberPattern?: string | undefined;
|
|
961
|
-
rememberDirectory?: boolean | undefined;
|
|
962
|
-
} | undefined;
|
|
963
|
-
message?: string | undefined;
|
|
964
|
-
sessionId?: string | undefined;
|
|
965
|
-
hostRuntime?: {
|
|
966
|
-
ids?: Record<string, string> | undefined;
|
|
967
|
-
} | undefined;
|
|
968
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
969
|
-
timeoutMs?: number | undefined;
|
|
970
|
-
}, {
|
|
971
|
-
status: "approved" | "denied" | "cancelled";
|
|
972
|
-
approvalId: string;
|
|
973
|
-
data?: {
|
|
974
|
-
rememberChoice?: boolean | undefined;
|
|
975
|
-
rememberPattern?: string | undefined;
|
|
976
|
-
rememberDirectory?: boolean | undefined;
|
|
977
|
-
} | undefined;
|
|
978
|
-
message?: string | undefined;
|
|
979
|
-
sessionId?: string | undefined;
|
|
980
|
-
hostRuntime?: {
|
|
981
|
-
ids?: Record<string, string> | undefined;
|
|
982
|
-
} | undefined;
|
|
983
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
984
|
-
timeoutMs?: number | undefined;
|
|
985
|
-
}>;
|
|
391
|
+
}, z.core.$strict>>;
|
|
392
|
+
}, z.core.$strict>;
|
|
986
393
|
/**
|
|
987
394
|
* Command confirmation response schema
|
|
988
395
|
*/
|
|
989
396
|
export declare const CommandConfirmationResponseSchema: z.ZodObject<{
|
|
990
397
|
approvalId: z.ZodString;
|
|
991
|
-
status: z.ZodEnum<
|
|
398
|
+
status: z.ZodEnum<{
|
|
399
|
+
approved: "approved";
|
|
400
|
+
denied: "denied";
|
|
401
|
+
cancelled: "cancelled";
|
|
402
|
+
}>;
|
|
992
403
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
993
404
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
994
405
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
995
|
-
},
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
406
|
+
}, z.core.$strict>>;
|
|
407
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
408
|
+
timeout: "timeout";
|
|
409
|
+
user_denied: "user_denied";
|
|
410
|
+
system_denied: "system_denied";
|
|
411
|
+
user_cancelled: "user_cancelled";
|
|
412
|
+
system_cancelled: "system_cancelled";
|
|
413
|
+
validation_failed: "validation_failed";
|
|
414
|
+
elicitation_disabled: "elicitation_disabled";
|
|
999
415
|
}>>;
|
|
1000
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1001
416
|
message: z.ZodOptional<z.ZodString>;
|
|
1002
417
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
}, "strict", z.ZodTypeAny, {
|
|
1006
|
-
status: "approved" | "denied" | "cancelled";
|
|
1007
|
-
approvalId: string;
|
|
1008
|
-
data?: {} | undefined;
|
|
1009
|
-
message?: string | undefined;
|
|
1010
|
-
sessionId?: string | undefined;
|
|
1011
|
-
hostRuntime?: {
|
|
1012
|
-
ids?: Record<string, string> | undefined;
|
|
1013
|
-
} | undefined;
|
|
1014
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1015
|
-
timeoutMs?: number | undefined;
|
|
1016
|
-
}, {
|
|
1017
|
-
status: "approved" | "denied" | "cancelled";
|
|
1018
|
-
approvalId: string;
|
|
1019
|
-
data?: {} | undefined;
|
|
1020
|
-
message?: string | undefined;
|
|
1021
|
-
sessionId?: string | undefined;
|
|
1022
|
-
hostRuntime?: {
|
|
1023
|
-
ids?: Record<string, string> | undefined;
|
|
1024
|
-
} | undefined;
|
|
1025
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1026
|
-
timeoutMs?: number | undefined;
|
|
1027
|
-
}>;
|
|
418
|
+
data: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
419
|
+
}, z.core.$strict>;
|
|
1028
420
|
/**
|
|
1029
421
|
* Elicitation response schema
|
|
1030
422
|
*/
|
|
1031
423
|
export declare const ElicitationResponseSchema: z.ZodObject<{
|
|
1032
424
|
approvalId: z.ZodString;
|
|
1033
|
-
status: z.ZodEnum<
|
|
425
|
+
status: z.ZodEnum<{
|
|
426
|
+
approved: "approved";
|
|
427
|
+
denied: "denied";
|
|
428
|
+
cancelled: "cancelled";
|
|
429
|
+
}>;
|
|
1034
430
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1035
431
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1036
432
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1037
|
-
},
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
433
|
+
}, z.core.$strict>>;
|
|
434
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
435
|
+
timeout: "timeout";
|
|
436
|
+
user_denied: "user_denied";
|
|
437
|
+
system_denied: "system_denied";
|
|
438
|
+
user_cancelled: "user_cancelled";
|
|
439
|
+
system_cancelled: "system_cancelled";
|
|
440
|
+
validation_failed: "validation_failed";
|
|
441
|
+
elicitation_disabled: "elicitation_disabled";
|
|
1041
442
|
}>>;
|
|
1042
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1043
443
|
message: z.ZodOptional<z.ZodString>;
|
|
1044
444
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1045
|
-
} & {
|
|
1046
445
|
data: z.ZodOptional<z.ZodObject<{
|
|
1047
446
|
formData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1048
|
-
},
|
|
1049
|
-
|
|
1050
|
-
}, {
|
|
1051
|
-
formData: Record<string, unknown>;
|
|
1052
|
-
}>>;
|
|
1053
|
-
}, "strict", z.ZodTypeAny, {
|
|
1054
|
-
status: "approved" | "denied" | "cancelled";
|
|
1055
|
-
approvalId: string;
|
|
1056
|
-
data?: {
|
|
1057
|
-
formData: Record<string, unknown>;
|
|
1058
|
-
} | undefined;
|
|
1059
|
-
message?: string | undefined;
|
|
1060
|
-
sessionId?: string | undefined;
|
|
1061
|
-
hostRuntime?: {
|
|
1062
|
-
ids?: Record<string, string> | undefined;
|
|
1063
|
-
} | undefined;
|
|
1064
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1065
|
-
timeoutMs?: number | undefined;
|
|
1066
|
-
}, {
|
|
1067
|
-
status: "approved" | "denied" | "cancelled";
|
|
1068
|
-
approvalId: string;
|
|
1069
|
-
data?: {
|
|
1070
|
-
formData: Record<string, unknown>;
|
|
1071
|
-
} | undefined;
|
|
1072
|
-
message?: string | undefined;
|
|
1073
|
-
sessionId?: string | undefined;
|
|
1074
|
-
hostRuntime?: {
|
|
1075
|
-
ids?: Record<string, string> | undefined;
|
|
1076
|
-
} | undefined;
|
|
1077
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1078
|
-
timeoutMs?: number | undefined;
|
|
1079
|
-
}>;
|
|
447
|
+
}, z.core.$strict>>;
|
|
448
|
+
}, z.core.$strict>;
|
|
1080
449
|
/**
|
|
1081
450
|
* Custom approval response schema
|
|
1082
451
|
*/
|
|
1083
452
|
export declare const CustomApprovalResponseSchema: z.ZodObject<{
|
|
1084
453
|
approvalId: z.ZodString;
|
|
1085
|
-
status: z.ZodEnum<
|
|
454
|
+
status: z.ZodEnum<{
|
|
455
|
+
approved: "approved";
|
|
456
|
+
denied: "denied";
|
|
457
|
+
cancelled: "cancelled";
|
|
458
|
+
}>;
|
|
1086
459
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1087
460
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1088
461
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1089
|
-
},
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
462
|
+
}, z.core.$strict>>;
|
|
463
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
464
|
+
timeout: "timeout";
|
|
465
|
+
user_denied: "user_denied";
|
|
466
|
+
system_denied: "system_denied";
|
|
467
|
+
user_cancelled: "user_cancelled";
|
|
468
|
+
system_cancelled: "system_cancelled";
|
|
469
|
+
validation_failed: "validation_failed";
|
|
470
|
+
elicitation_disabled: "elicitation_disabled";
|
|
1093
471
|
}>>;
|
|
1094
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1095
472
|
message: z.ZodOptional<z.ZodString>;
|
|
1096
473
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1097
|
-
} & {
|
|
1098
474
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1099
|
-
},
|
|
1100
|
-
status: "approved" | "denied" | "cancelled";
|
|
1101
|
-
approvalId: string;
|
|
1102
|
-
data?: Record<string, unknown> | undefined;
|
|
1103
|
-
message?: string | undefined;
|
|
1104
|
-
sessionId?: string | undefined;
|
|
1105
|
-
hostRuntime?: {
|
|
1106
|
-
ids?: Record<string, string> | undefined;
|
|
1107
|
-
} | undefined;
|
|
1108
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1109
|
-
timeoutMs?: number | undefined;
|
|
1110
|
-
}, {
|
|
1111
|
-
status: "approved" | "denied" | "cancelled";
|
|
1112
|
-
approvalId: string;
|
|
1113
|
-
data?: Record<string, unknown> | undefined;
|
|
1114
|
-
message?: string | undefined;
|
|
1115
|
-
sessionId?: string | undefined;
|
|
1116
|
-
hostRuntime?: {
|
|
1117
|
-
ids?: Record<string, string> | undefined;
|
|
1118
|
-
} | undefined;
|
|
1119
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1120
|
-
timeoutMs?: number | undefined;
|
|
1121
|
-
}>;
|
|
475
|
+
}, z.core.$strict>;
|
|
1122
476
|
/**
|
|
1123
477
|
* Directory access response schema
|
|
1124
478
|
*/
|
|
1125
479
|
export declare const DirectoryAccessResponseSchema: z.ZodObject<{
|
|
1126
480
|
approvalId: z.ZodString;
|
|
1127
|
-
status: z.ZodEnum<
|
|
481
|
+
status: z.ZodEnum<{
|
|
482
|
+
approved: "approved";
|
|
483
|
+
denied: "denied";
|
|
484
|
+
cancelled: "cancelled";
|
|
485
|
+
}>;
|
|
1128
486
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1129
487
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1130
488
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1131
|
-
},
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
489
|
+
}, z.core.$strict>>;
|
|
490
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
491
|
+
timeout: "timeout";
|
|
492
|
+
user_denied: "user_denied";
|
|
493
|
+
system_denied: "system_denied";
|
|
494
|
+
user_cancelled: "user_cancelled";
|
|
495
|
+
system_cancelled: "system_cancelled";
|
|
496
|
+
validation_failed: "validation_failed";
|
|
497
|
+
elicitation_disabled: "elicitation_disabled";
|
|
1135
498
|
}>>;
|
|
1136
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1137
499
|
message: z.ZodOptional<z.ZodString>;
|
|
1138
500
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1139
|
-
} & {
|
|
1140
501
|
data: z.ZodOptional<z.ZodObject<{
|
|
1141
502
|
rememberDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
1142
|
-
},
|
|
1143
|
-
|
|
1144
|
-
}, {
|
|
1145
|
-
rememberDirectory?: boolean | undefined;
|
|
1146
|
-
}>>;
|
|
1147
|
-
}, "strict", z.ZodTypeAny, {
|
|
1148
|
-
status: "approved" | "denied" | "cancelled";
|
|
1149
|
-
approvalId: string;
|
|
1150
|
-
data?: {
|
|
1151
|
-
rememberDirectory?: boolean | undefined;
|
|
1152
|
-
} | undefined;
|
|
1153
|
-
message?: string | undefined;
|
|
1154
|
-
sessionId?: string | undefined;
|
|
1155
|
-
hostRuntime?: {
|
|
1156
|
-
ids?: Record<string, string> | undefined;
|
|
1157
|
-
} | undefined;
|
|
1158
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1159
|
-
timeoutMs?: number | undefined;
|
|
1160
|
-
}, {
|
|
1161
|
-
status: "approved" | "denied" | "cancelled";
|
|
1162
|
-
approvalId: string;
|
|
1163
|
-
data?: {
|
|
1164
|
-
rememberDirectory?: boolean | undefined;
|
|
1165
|
-
} | undefined;
|
|
1166
|
-
message?: string | undefined;
|
|
1167
|
-
sessionId?: string | undefined;
|
|
1168
|
-
hostRuntime?: {
|
|
1169
|
-
ids?: Record<string, string> | undefined;
|
|
1170
|
-
} | undefined;
|
|
1171
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1172
|
-
timeoutMs?: number | undefined;
|
|
1173
|
-
}>;
|
|
503
|
+
}, z.core.$strict>>;
|
|
504
|
+
}, z.core.$strict>;
|
|
1174
505
|
/**
|
|
1175
506
|
* Union of all approval responses
|
|
1176
507
|
*/
|
|
1177
|
-
export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
508
|
+
export declare const ApprovalResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1178
509
|
approvalId: z.ZodString;
|
|
1179
|
-
status: z.ZodEnum<
|
|
510
|
+
status: z.ZodEnum<{
|
|
511
|
+
approved: "approved";
|
|
512
|
+
denied: "denied";
|
|
513
|
+
cancelled: "cancelled";
|
|
514
|
+
}>;
|
|
1180
515
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1181
516
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1182
517
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1183
|
-
},
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
518
|
+
}, z.core.$strict>>;
|
|
519
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
520
|
+
timeout: "timeout";
|
|
521
|
+
user_denied: "user_denied";
|
|
522
|
+
system_denied: "system_denied";
|
|
523
|
+
user_cancelled: "user_cancelled";
|
|
524
|
+
system_cancelled: "system_cancelled";
|
|
525
|
+
validation_failed: "validation_failed";
|
|
526
|
+
elicitation_disabled: "elicitation_disabled";
|
|
1187
527
|
}>>;
|
|
1188
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1189
528
|
message: z.ZodOptional<z.ZodString>;
|
|
1190
529
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1191
|
-
} & {
|
|
1192
530
|
data: z.ZodOptional<z.ZodObject<{
|
|
1193
531
|
rememberChoice: z.ZodOptional<z.ZodBoolean>;
|
|
1194
532
|
rememberPattern: z.ZodOptional<z.ZodString>;
|
|
1195
533
|
rememberDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
1196
|
-
},
|
|
1197
|
-
|
|
1198
|
-
rememberPattern?: string | undefined;
|
|
1199
|
-
rememberDirectory?: boolean | undefined;
|
|
1200
|
-
}, {
|
|
1201
|
-
rememberChoice?: boolean | undefined;
|
|
1202
|
-
rememberPattern?: string | undefined;
|
|
1203
|
-
rememberDirectory?: boolean | undefined;
|
|
1204
|
-
}>>;
|
|
1205
|
-
}, "strict", z.ZodTypeAny, {
|
|
1206
|
-
status: "approved" | "denied" | "cancelled";
|
|
1207
|
-
approvalId: string;
|
|
1208
|
-
data?: {
|
|
1209
|
-
rememberChoice?: boolean | undefined;
|
|
1210
|
-
rememberPattern?: string | undefined;
|
|
1211
|
-
rememberDirectory?: boolean | undefined;
|
|
1212
|
-
} | undefined;
|
|
1213
|
-
message?: string | undefined;
|
|
1214
|
-
sessionId?: string | undefined;
|
|
1215
|
-
hostRuntime?: {
|
|
1216
|
-
ids?: Record<string, string> | undefined;
|
|
1217
|
-
} | undefined;
|
|
1218
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1219
|
-
timeoutMs?: number | undefined;
|
|
1220
|
-
}, {
|
|
1221
|
-
status: "approved" | "denied" | "cancelled";
|
|
1222
|
-
approvalId: string;
|
|
1223
|
-
data?: {
|
|
1224
|
-
rememberChoice?: boolean | undefined;
|
|
1225
|
-
rememberPattern?: string | undefined;
|
|
1226
|
-
rememberDirectory?: boolean | undefined;
|
|
1227
|
-
} | undefined;
|
|
1228
|
-
message?: string | undefined;
|
|
1229
|
-
sessionId?: string | undefined;
|
|
1230
|
-
hostRuntime?: {
|
|
1231
|
-
ids?: Record<string, string> | undefined;
|
|
1232
|
-
} | undefined;
|
|
1233
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1234
|
-
timeoutMs?: number | undefined;
|
|
1235
|
-
}>, z.ZodObject<{
|
|
534
|
+
}, z.core.$strict>>;
|
|
535
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1236
536
|
approvalId: z.ZodString;
|
|
1237
|
-
status: z.ZodEnum<
|
|
537
|
+
status: z.ZodEnum<{
|
|
538
|
+
approved: "approved";
|
|
539
|
+
denied: "denied";
|
|
540
|
+
cancelled: "cancelled";
|
|
541
|
+
}>;
|
|
1238
542
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1239
543
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1240
544
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1241
|
-
},
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
545
|
+
}, z.core.$strict>>;
|
|
546
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
547
|
+
timeout: "timeout";
|
|
548
|
+
user_denied: "user_denied";
|
|
549
|
+
system_denied: "system_denied";
|
|
550
|
+
user_cancelled: "user_cancelled";
|
|
551
|
+
system_cancelled: "system_cancelled";
|
|
552
|
+
validation_failed: "validation_failed";
|
|
553
|
+
elicitation_disabled: "elicitation_disabled";
|
|
1245
554
|
}>>;
|
|
1246
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1247
555
|
message: z.ZodOptional<z.ZodString>;
|
|
1248
556
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
}, "strict", z.ZodTypeAny, {
|
|
1252
|
-
status: "approved" | "denied" | "cancelled";
|
|
1253
|
-
approvalId: string;
|
|
1254
|
-
data?: {} | undefined;
|
|
1255
|
-
message?: string | undefined;
|
|
1256
|
-
sessionId?: string | undefined;
|
|
1257
|
-
hostRuntime?: {
|
|
1258
|
-
ids?: Record<string, string> | undefined;
|
|
1259
|
-
} | undefined;
|
|
1260
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1261
|
-
timeoutMs?: number | undefined;
|
|
1262
|
-
}, {
|
|
1263
|
-
status: "approved" | "denied" | "cancelled";
|
|
1264
|
-
approvalId: string;
|
|
1265
|
-
data?: {} | undefined;
|
|
1266
|
-
message?: string | undefined;
|
|
1267
|
-
sessionId?: string | undefined;
|
|
1268
|
-
hostRuntime?: {
|
|
1269
|
-
ids?: Record<string, string> | undefined;
|
|
1270
|
-
} | undefined;
|
|
1271
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1272
|
-
timeoutMs?: number | undefined;
|
|
1273
|
-
}>, z.ZodObject<{
|
|
557
|
+
data: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
558
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1274
559
|
approvalId: z.ZodString;
|
|
1275
|
-
status: z.ZodEnum<
|
|
560
|
+
status: z.ZodEnum<{
|
|
561
|
+
approved: "approved";
|
|
562
|
+
denied: "denied";
|
|
563
|
+
cancelled: "cancelled";
|
|
564
|
+
}>;
|
|
1276
565
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1277
566
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1278
567
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1279
|
-
},
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
568
|
+
}, z.core.$strict>>;
|
|
569
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
570
|
+
timeout: "timeout";
|
|
571
|
+
user_denied: "user_denied";
|
|
572
|
+
system_denied: "system_denied";
|
|
573
|
+
user_cancelled: "user_cancelled";
|
|
574
|
+
system_cancelled: "system_cancelled";
|
|
575
|
+
validation_failed: "validation_failed";
|
|
576
|
+
elicitation_disabled: "elicitation_disabled";
|
|
1283
577
|
}>>;
|
|
1284
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1285
578
|
message: z.ZodOptional<z.ZodString>;
|
|
1286
579
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1287
|
-
} & {
|
|
1288
580
|
data: z.ZodOptional<z.ZodObject<{
|
|
1289
581
|
formData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1290
|
-
},
|
|
1291
|
-
|
|
1292
|
-
}, {
|
|
1293
|
-
formData: Record<string, unknown>;
|
|
1294
|
-
}>>;
|
|
1295
|
-
}, "strict", z.ZodTypeAny, {
|
|
1296
|
-
status: "approved" | "denied" | "cancelled";
|
|
1297
|
-
approvalId: string;
|
|
1298
|
-
data?: {
|
|
1299
|
-
formData: Record<string, unknown>;
|
|
1300
|
-
} | undefined;
|
|
1301
|
-
message?: string | undefined;
|
|
1302
|
-
sessionId?: string | undefined;
|
|
1303
|
-
hostRuntime?: {
|
|
1304
|
-
ids?: Record<string, string> | undefined;
|
|
1305
|
-
} | undefined;
|
|
1306
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1307
|
-
timeoutMs?: number | undefined;
|
|
1308
|
-
}, {
|
|
1309
|
-
status: "approved" | "denied" | "cancelled";
|
|
1310
|
-
approvalId: string;
|
|
1311
|
-
data?: {
|
|
1312
|
-
formData: Record<string, unknown>;
|
|
1313
|
-
} | undefined;
|
|
1314
|
-
message?: string | undefined;
|
|
1315
|
-
sessionId?: string | undefined;
|
|
1316
|
-
hostRuntime?: {
|
|
1317
|
-
ids?: Record<string, string> | undefined;
|
|
1318
|
-
} | undefined;
|
|
1319
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1320
|
-
timeoutMs?: number | undefined;
|
|
1321
|
-
}>, z.ZodObject<{
|
|
582
|
+
}, z.core.$strict>>;
|
|
583
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1322
584
|
approvalId: z.ZodString;
|
|
1323
|
-
status: z.ZodEnum<
|
|
585
|
+
status: z.ZodEnum<{
|
|
586
|
+
approved: "approved";
|
|
587
|
+
denied: "denied";
|
|
588
|
+
cancelled: "cancelled";
|
|
589
|
+
}>;
|
|
1324
590
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1325
591
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1326
592
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1327
|
-
},
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
593
|
+
}, z.core.$strict>>;
|
|
594
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
595
|
+
timeout: "timeout";
|
|
596
|
+
user_denied: "user_denied";
|
|
597
|
+
system_denied: "system_denied";
|
|
598
|
+
user_cancelled: "user_cancelled";
|
|
599
|
+
system_cancelled: "system_cancelled";
|
|
600
|
+
validation_failed: "validation_failed";
|
|
601
|
+
elicitation_disabled: "elicitation_disabled";
|
|
1331
602
|
}>>;
|
|
1332
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1333
603
|
message: z.ZodOptional<z.ZodString>;
|
|
1334
604
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1335
|
-
} & {
|
|
1336
605
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1337
|
-
},
|
|
1338
|
-
status: "approved" | "denied" | "cancelled";
|
|
1339
|
-
approvalId: string;
|
|
1340
|
-
data?: Record<string, unknown> | undefined;
|
|
1341
|
-
message?: string | undefined;
|
|
1342
|
-
sessionId?: string | undefined;
|
|
1343
|
-
hostRuntime?: {
|
|
1344
|
-
ids?: Record<string, string> | undefined;
|
|
1345
|
-
} | undefined;
|
|
1346
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1347
|
-
timeoutMs?: number | undefined;
|
|
1348
|
-
}, {
|
|
1349
|
-
status: "approved" | "denied" | "cancelled";
|
|
1350
|
-
approvalId: string;
|
|
1351
|
-
data?: Record<string, unknown> | undefined;
|
|
1352
|
-
message?: string | undefined;
|
|
1353
|
-
sessionId?: string | undefined;
|
|
1354
|
-
hostRuntime?: {
|
|
1355
|
-
ids?: Record<string, string> | undefined;
|
|
1356
|
-
} | undefined;
|
|
1357
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1358
|
-
timeoutMs?: number | undefined;
|
|
1359
|
-
}>, z.ZodObject<{
|
|
606
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1360
607
|
approvalId: z.ZodString;
|
|
1361
|
-
status: z.ZodEnum<
|
|
608
|
+
status: z.ZodEnum<{
|
|
609
|
+
approved: "approved";
|
|
610
|
+
denied: "denied";
|
|
611
|
+
cancelled: "cancelled";
|
|
612
|
+
}>;
|
|
1362
613
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1363
614
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1364
615
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1365
|
-
},
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
616
|
+
}, z.core.$strict>>;
|
|
617
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
timeout: "timeout";
|
|
619
|
+
user_denied: "user_denied";
|
|
620
|
+
system_denied: "system_denied";
|
|
621
|
+
user_cancelled: "user_cancelled";
|
|
622
|
+
system_cancelled: "system_cancelled";
|
|
623
|
+
validation_failed: "validation_failed";
|
|
624
|
+
elicitation_disabled: "elicitation_disabled";
|
|
1369
625
|
}>>;
|
|
1370
|
-
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1371
626
|
message: z.ZodOptional<z.ZodString>;
|
|
1372
627
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1373
|
-
} & {
|
|
1374
628
|
data: z.ZodOptional<z.ZodObject<{
|
|
1375
629
|
rememberDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
1376
|
-
},
|
|
1377
|
-
|
|
1378
|
-
}, {
|
|
1379
|
-
rememberDirectory?: boolean | undefined;
|
|
1380
|
-
}>>;
|
|
1381
|
-
}, "strict", z.ZodTypeAny, {
|
|
1382
|
-
status: "approved" | "denied" | "cancelled";
|
|
1383
|
-
approvalId: string;
|
|
1384
|
-
data?: {
|
|
1385
|
-
rememberDirectory?: boolean | undefined;
|
|
1386
|
-
} | undefined;
|
|
1387
|
-
message?: string | undefined;
|
|
1388
|
-
sessionId?: string | undefined;
|
|
1389
|
-
hostRuntime?: {
|
|
1390
|
-
ids?: Record<string, string> | undefined;
|
|
1391
|
-
} | undefined;
|
|
1392
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1393
|
-
timeoutMs?: number | undefined;
|
|
1394
|
-
}, {
|
|
1395
|
-
status: "approved" | "denied" | "cancelled";
|
|
1396
|
-
approvalId: string;
|
|
1397
|
-
data?: {
|
|
1398
|
-
rememberDirectory?: boolean | undefined;
|
|
1399
|
-
} | undefined;
|
|
1400
|
-
message?: string | undefined;
|
|
1401
|
-
sessionId?: string | undefined;
|
|
1402
|
-
hostRuntime?: {
|
|
1403
|
-
ids?: Record<string, string> | undefined;
|
|
1404
|
-
} | undefined;
|
|
1405
|
-
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1406
|
-
timeoutMs?: number | undefined;
|
|
1407
|
-
}>]>;
|
|
630
|
+
}, z.core.$strict>>;
|
|
631
|
+
}, z.core.$strict>]>;
|
|
1408
632
|
/**
|
|
1409
633
|
* Approval request details schema for creating requests
|
|
1410
634
|
*/
|
|
1411
|
-
export declare const ApprovalRequestDetailsSchema: z.
|
|
1412
|
-
type: z.ZodEnum<
|
|
635
|
+
export declare const ApprovalRequestDetailsSchema: z.ZodObject<{
|
|
636
|
+
type: z.ZodEnum<{
|
|
637
|
+
custom: "custom";
|
|
638
|
+
tool_confirmation: "tool_confirmation";
|
|
639
|
+
command_confirmation: "command_confirmation";
|
|
640
|
+
elicitation: "elicitation";
|
|
641
|
+
directory_access: "directory_access";
|
|
642
|
+
}>;
|
|
1413
643
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1414
644
|
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1415
645
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1416
|
-
},
|
|
1417
|
-
ids?: Record<string, string> | undefined;
|
|
1418
|
-
}, {
|
|
1419
|
-
ids?: Record<string, string> | undefined;
|
|
1420
|
-
}>>;
|
|
646
|
+
}, z.core.$strict>>;
|
|
1421
647
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1422
|
-
metadata: z.ZodUnion<[z.ZodObject<{
|
|
648
|
+
metadata: z.ZodUnion<readonly [z.ZodObject<{
|
|
1423
649
|
toolName: z.ZodString;
|
|
1424
|
-
presentationSnapshot: z.ZodOptional<z.
|
|
650
|
+
presentationSnapshot: z.ZodOptional<z.ZodCustom<ToolPresentationSnapshotV1, ToolPresentationSnapshotV1>>;
|
|
1425
651
|
toolCallId: z.ZodString;
|
|
1426
652
|
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1427
653
|
description: z.ZodOptional<z.ZodString>;
|
|
1428
|
-
displayPreview: z.ZodOptional<z.
|
|
654
|
+
displayPreview: z.ZodOptional<z.ZodCustom<ToolDisplayData, ToolDisplayData>>;
|
|
1429
655
|
directoryAccess: z.ZodOptional<z.ZodObject<{
|
|
1430
656
|
path: z.ZodString;
|
|
1431
657
|
parentDir: z.ZodString;
|
|
1432
|
-
operation: z.ZodEnum<
|
|
658
|
+
operation: z.ZodEnum<{
|
|
659
|
+
read: "read";
|
|
660
|
+
write: "write";
|
|
661
|
+
edit: "edit";
|
|
662
|
+
}>;
|
|
1433
663
|
toolName: z.ZodString;
|
|
1434
|
-
},
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
operation: "read" | "write" | "edit";
|
|
1438
|
-
toolName: string;
|
|
1439
|
-
}, {
|
|
1440
|
-
path: string;
|
|
1441
|
-
parentDir: string;
|
|
1442
|
-
operation: "read" | "write" | "edit";
|
|
1443
|
-
toolName: string;
|
|
1444
|
-
}>>;
|
|
1445
|
-
suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1446
|
-
}, "strict", z.ZodTypeAny, {
|
|
1447
|
-
toolName: string;
|
|
1448
|
-
toolCallId: string;
|
|
1449
|
-
args: Record<string, unknown>;
|
|
1450
|
-
description?: string | undefined;
|
|
1451
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
1452
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
1453
|
-
directoryAccess?: {
|
|
1454
|
-
path: string;
|
|
1455
|
-
parentDir: string;
|
|
1456
|
-
operation: "read" | "write" | "edit";
|
|
1457
|
-
toolName: string;
|
|
1458
|
-
} | undefined;
|
|
1459
|
-
suggestedPatterns?: string[] | undefined;
|
|
1460
|
-
}, {
|
|
1461
|
-
toolName: string;
|
|
1462
|
-
toolCallId: string;
|
|
1463
|
-
args: Record<string, unknown>;
|
|
1464
|
-
description?: string | undefined;
|
|
1465
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
1466
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
1467
|
-
directoryAccess?: {
|
|
1468
|
-
path: string;
|
|
1469
|
-
parentDir: string;
|
|
1470
|
-
operation: "read" | "write" | "edit";
|
|
1471
|
-
toolName: string;
|
|
1472
|
-
} | undefined;
|
|
1473
|
-
suggestedPatterns?: string[] | undefined;
|
|
1474
|
-
}>, z.ZodObject<{
|
|
664
|
+
}, z.core.$strict>>;
|
|
665
|
+
suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
666
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1475
667
|
toolName: z.ZodString;
|
|
1476
668
|
command: z.ZodString;
|
|
1477
669
|
originalCommand: z.ZodOptional<z.ZodString>;
|
|
1478
|
-
},
|
|
1479
|
-
|
|
1480
|
-
command: string;
|
|
1481
|
-
originalCommand?: string | undefined;
|
|
1482
|
-
}, {
|
|
1483
|
-
toolName: string;
|
|
1484
|
-
command: string;
|
|
1485
|
-
originalCommand?: string | undefined;
|
|
1486
|
-
}>, z.ZodObject<{
|
|
1487
|
-
schema: z.ZodType<JSONSchema7, z.ZodTypeDef, JSONSchema7>;
|
|
670
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
671
|
+
schema: z.ZodType<JSONSchema7, unknown, z.core.$ZodTypeInternals<JSONSchema7, unknown>>;
|
|
1488
672
|
prompt: z.ZodString;
|
|
1489
673
|
serverName: z.ZodString;
|
|
1490
674
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1491
|
-
},
|
|
1492
|
-
prompt: string;
|
|
1493
|
-
schema: JSONSchema7;
|
|
1494
|
-
serverName: string;
|
|
1495
|
-
context?: Record<string, unknown> | undefined;
|
|
1496
|
-
}, {
|
|
1497
|
-
prompt: string;
|
|
1498
|
-
schema: JSONSchema7;
|
|
1499
|
-
serverName: string;
|
|
1500
|
-
context?: Record<string, unknown> | undefined;
|
|
1501
|
-
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
|
|
675
|
+
}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
|
|
1502
676
|
path: z.ZodString;
|
|
1503
677
|
parentDir: z.ZodString;
|
|
1504
|
-
operation: z.ZodEnum<
|
|
678
|
+
operation: z.ZodEnum<{
|
|
679
|
+
read: "read";
|
|
680
|
+
write: "write";
|
|
681
|
+
edit: "edit";
|
|
682
|
+
}>;
|
|
1505
683
|
toolName: z.ZodString;
|
|
1506
|
-
},
|
|
1507
|
-
|
|
1508
|
-
parentDir: string;
|
|
1509
|
-
operation: "read" | "write" | "edit";
|
|
1510
|
-
toolName: string;
|
|
1511
|
-
}, {
|
|
1512
|
-
path: string;
|
|
1513
|
-
parentDir: string;
|
|
1514
|
-
operation: "read" | "write" | "edit";
|
|
1515
|
-
toolName: string;
|
|
1516
|
-
}>]>;
|
|
1517
|
-
}, "strip", z.ZodTypeAny, {
|
|
1518
|
-
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
1519
|
-
metadata: Record<string, unknown> | {
|
|
1520
|
-
path: string;
|
|
1521
|
-
parentDir: string;
|
|
1522
|
-
operation: "read" | "write" | "edit";
|
|
1523
|
-
toolName: string;
|
|
1524
|
-
} | {
|
|
1525
|
-
toolName: string;
|
|
1526
|
-
toolCallId: string;
|
|
1527
|
-
args: Record<string, unknown>;
|
|
1528
|
-
description?: string | undefined;
|
|
1529
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
1530
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
1531
|
-
directoryAccess?: {
|
|
1532
|
-
path: string;
|
|
1533
|
-
parentDir: string;
|
|
1534
|
-
operation: "read" | "write" | "edit";
|
|
1535
|
-
toolName: string;
|
|
1536
|
-
} | undefined;
|
|
1537
|
-
suggestedPatterns?: string[] | undefined;
|
|
1538
|
-
} | {
|
|
1539
|
-
toolName: string;
|
|
1540
|
-
command: string;
|
|
1541
|
-
originalCommand?: string | undefined;
|
|
1542
|
-
} | {
|
|
1543
|
-
prompt: string;
|
|
1544
|
-
schema: JSONSchema7;
|
|
1545
|
-
serverName: string;
|
|
1546
|
-
context?: Record<string, unknown> | undefined;
|
|
1547
|
-
};
|
|
1548
|
-
timeout?: number | undefined;
|
|
1549
|
-
sessionId?: string | undefined;
|
|
1550
|
-
hostRuntime?: {
|
|
1551
|
-
ids?: Record<string, string> | undefined;
|
|
1552
|
-
} | undefined;
|
|
1553
|
-
}, {
|
|
1554
|
-
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
1555
|
-
metadata: Record<string, unknown> | {
|
|
1556
|
-
path: string;
|
|
1557
|
-
parentDir: string;
|
|
1558
|
-
operation: "read" | "write" | "edit";
|
|
1559
|
-
toolName: string;
|
|
1560
|
-
} | {
|
|
1561
|
-
toolName: string;
|
|
1562
|
-
toolCallId: string;
|
|
1563
|
-
args: Record<string, unknown>;
|
|
1564
|
-
description?: string | undefined;
|
|
1565
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
1566
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
1567
|
-
directoryAccess?: {
|
|
1568
|
-
path: string;
|
|
1569
|
-
parentDir: string;
|
|
1570
|
-
operation: "read" | "write" | "edit";
|
|
1571
|
-
toolName: string;
|
|
1572
|
-
} | undefined;
|
|
1573
|
-
suggestedPatterns?: string[] | undefined;
|
|
1574
|
-
} | {
|
|
1575
|
-
toolName: string;
|
|
1576
|
-
command: string;
|
|
1577
|
-
originalCommand?: string | undefined;
|
|
1578
|
-
} | {
|
|
1579
|
-
prompt: string;
|
|
1580
|
-
schema: JSONSchema7;
|
|
1581
|
-
serverName: string;
|
|
1582
|
-
context?: Record<string, unknown> | undefined;
|
|
1583
|
-
};
|
|
1584
|
-
timeout?: number | undefined;
|
|
1585
|
-
sessionId?: string | undefined;
|
|
1586
|
-
hostRuntime?: {
|
|
1587
|
-
ids?: Record<string, string> | undefined;
|
|
1588
|
-
} | undefined;
|
|
1589
|
-
}>, {
|
|
1590
|
-
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
1591
|
-
metadata: Record<string, unknown> | {
|
|
1592
|
-
path: string;
|
|
1593
|
-
parentDir: string;
|
|
1594
|
-
operation: "read" | "write" | "edit";
|
|
1595
|
-
toolName: string;
|
|
1596
|
-
} | {
|
|
1597
|
-
toolName: string;
|
|
1598
|
-
toolCallId: string;
|
|
1599
|
-
args: Record<string, unknown>;
|
|
1600
|
-
description?: string | undefined;
|
|
1601
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
1602
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
1603
|
-
directoryAccess?: {
|
|
1604
|
-
path: string;
|
|
1605
|
-
parentDir: string;
|
|
1606
|
-
operation: "read" | "write" | "edit";
|
|
1607
|
-
toolName: string;
|
|
1608
|
-
} | undefined;
|
|
1609
|
-
suggestedPatterns?: string[] | undefined;
|
|
1610
|
-
} | {
|
|
1611
|
-
toolName: string;
|
|
1612
|
-
command: string;
|
|
1613
|
-
originalCommand?: string | undefined;
|
|
1614
|
-
} | {
|
|
1615
|
-
prompt: string;
|
|
1616
|
-
schema: JSONSchema7;
|
|
1617
|
-
serverName: string;
|
|
1618
|
-
context?: Record<string, unknown> | undefined;
|
|
1619
|
-
};
|
|
1620
|
-
timeout?: number | undefined;
|
|
1621
|
-
sessionId?: string | undefined;
|
|
1622
|
-
hostRuntime?: {
|
|
1623
|
-
ids?: Record<string, string> | undefined;
|
|
1624
|
-
} | undefined;
|
|
1625
|
-
}, {
|
|
1626
|
-
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
1627
|
-
metadata: Record<string, unknown> | {
|
|
1628
|
-
path: string;
|
|
1629
|
-
parentDir: string;
|
|
1630
|
-
operation: "read" | "write" | "edit";
|
|
1631
|
-
toolName: string;
|
|
1632
|
-
} | {
|
|
1633
|
-
toolName: string;
|
|
1634
|
-
toolCallId: string;
|
|
1635
|
-
args: Record<string, unknown>;
|
|
1636
|
-
description?: string | undefined;
|
|
1637
|
-
presentationSnapshot?: ToolPresentationSnapshotV1 | undefined;
|
|
1638
|
-
displayPreview?: ToolDisplayData | undefined;
|
|
1639
|
-
directoryAccess?: {
|
|
1640
|
-
path: string;
|
|
1641
|
-
parentDir: string;
|
|
1642
|
-
operation: "read" | "write" | "edit";
|
|
1643
|
-
toolName: string;
|
|
1644
|
-
} | undefined;
|
|
1645
|
-
suggestedPatterns?: string[] | undefined;
|
|
1646
|
-
} | {
|
|
1647
|
-
toolName: string;
|
|
1648
|
-
command: string;
|
|
1649
|
-
originalCommand?: string | undefined;
|
|
1650
|
-
} | {
|
|
1651
|
-
prompt: string;
|
|
1652
|
-
schema: JSONSchema7;
|
|
1653
|
-
serverName: string;
|
|
1654
|
-
context?: Record<string, unknown> | undefined;
|
|
1655
|
-
};
|
|
1656
|
-
timeout?: number | undefined;
|
|
1657
|
-
sessionId?: string | undefined;
|
|
1658
|
-
hostRuntime?: {
|
|
1659
|
-
ids?: Record<string, string> | undefined;
|
|
1660
|
-
} | undefined;
|
|
1661
|
-
}>;
|
|
684
|
+
}, z.core.$strict>]>;
|
|
685
|
+
}, z.core.$strip>;
|
|
1662
686
|
/**
|
|
1663
687
|
* Type inference for validated schemas
|
|
1664
688
|
*/
|