@aigne/afs-mapping 1.11.0-beta.6
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/LICENSE.md +26 -0
- package/README.md +286 -0
- package/dist/index.d.mts +3186 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +828 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +57 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,3186 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AFSEntry } from "@aigne/afs";
|
|
3
|
+
|
|
4
|
+
//#region src/binder.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Parameter Binder
|
|
7
|
+
*
|
|
8
|
+
* Evaluates binding expressions like "path.owner", "query.state | default('open')".
|
|
9
|
+
* Supports pipe operators for transformations.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Context for evaluating binding expressions
|
|
13
|
+
*/
|
|
14
|
+
interface BindingContext {
|
|
15
|
+
/** Path parameters extracted from route matching */
|
|
16
|
+
path: Record<string, string>;
|
|
17
|
+
/** Query parameters from URL */
|
|
18
|
+
query: Record<string, string>;
|
|
19
|
+
/** Input data (for write operations) */
|
|
20
|
+
input: Record<string, unknown>;
|
|
21
|
+
/** API response data (for JSONPath expressions) */
|
|
22
|
+
data: unknown;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A pipe operator in an expression
|
|
26
|
+
*/
|
|
27
|
+
interface Pipe {
|
|
28
|
+
name: string;
|
|
29
|
+
args: unknown[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Parsed binding expression
|
|
33
|
+
*/
|
|
34
|
+
interface ParsedExpression {
|
|
35
|
+
/** Source type: path, query, input, jsonpath, or literal */
|
|
36
|
+
source: "path" | "query" | "input" | "jsonpath" | "literal";
|
|
37
|
+
/** Key to access (or JSONPath expression, or literal value) */
|
|
38
|
+
key: string;
|
|
39
|
+
/** Pipe operators to apply */
|
|
40
|
+
pipes: Pipe[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Expression binder for evaluating binding expressions
|
|
44
|
+
*/
|
|
45
|
+
declare class ExpressionBinder {
|
|
46
|
+
/**
|
|
47
|
+
* Parse a binding expression string
|
|
48
|
+
*/
|
|
49
|
+
parseExpression(expr: string): ParsedExpression;
|
|
50
|
+
/**
|
|
51
|
+
* Split expression by pipe operator, respecting parentheses
|
|
52
|
+
*/
|
|
53
|
+
private splitByPipe;
|
|
54
|
+
/**
|
|
55
|
+
* Parse a pipe operator string like "default('open')" or "int"
|
|
56
|
+
*/
|
|
57
|
+
private parsePipe;
|
|
58
|
+
/**
|
|
59
|
+
* Parse comma-separated arguments, handling quoted strings and numbers
|
|
60
|
+
*/
|
|
61
|
+
private parseArgs;
|
|
62
|
+
/**
|
|
63
|
+
* Parse a value (number or string)
|
|
64
|
+
*/
|
|
65
|
+
private parseValue;
|
|
66
|
+
/**
|
|
67
|
+
* Evaluate a binding expression against a context
|
|
68
|
+
*/
|
|
69
|
+
evaluate(expr: string, context: BindingContext): unknown;
|
|
70
|
+
/**
|
|
71
|
+
* Get a nested value from an object using dot notation
|
|
72
|
+
*/
|
|
73
|
+
private getNestedValue;
|
|
74
|
+
/**
|
|
75
|
+
* Evaluate a simple JSONPath expression
|
|
76
|
+
* Note: This is a simplified implementation supporting basic paths
|
|
77
|
+
*/
|
|
78
|
+
private evaluateJsonPath;
|
|
79
|
+
/**
|
|
80
|
+
* Parse JSONPath parts like ".user.login" or "[0].name"
|
|
81
|
+
*/
|
|
82
|
+
private parseJsonPathParts;
|
|
83
|
+
/**
|
|
84
|
+
* Apply a pipe operator to a value
|
|
85
|
+
*/
|
|
86
|
+
private applyPipe;
|
|
87
|
+
/**
|
|
88
|
+
* Bind multiple expressions and return result object
|
|
89
|
+
*/
|
|
90
|
+
bindAll(bindings: Record<string, string>, context: BindingContext): Record<string, unknown>;
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/schema.d.ts
|
|
94
|
+
/**
|
|
95
|
+
* Transform entry mapping - how to convert API response fields to AFS entry fields
|
|
96
|
+
*/
|
|
97
|
+
declare const transformEntrySchema: z.ZodObject<{
|
|
98
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
99
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
100
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
101
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
102
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
103
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
104
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
105
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
106
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
107
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
108
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
109
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
110
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
111
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
112
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
113
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
114
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
115
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
116
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
117
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
118
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
119
|
+
type TransformEntry = z.infer<typeof transformEntrySchema>;
|
|
120
|
+
/**
|
|
121
|
+
* Transform configuration - how to convert API response to AFS entries
|
|
122
|
+
*/
|
|
123
|
+
declare const transformSchema: z.ZodObject<{
|
|
124
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
125
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
127
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
128
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
129
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
130
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
131
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
132
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
133
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
134
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
135
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
136
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
137
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
138
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
139
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
140
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
141
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
142
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
143
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
144
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
145
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
146
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
items?: string | undefined;
|
|
149
|
+
entry?: z.objectOutputType<{
|
|
150
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
151
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
152
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
153
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
154
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
155
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
156
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
items?: string | undefined;
|
|
159
|
+
entry?: z.objectInputType<{
|
|
160
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
161
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
162
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
163
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
164
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
165
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
166
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
167
|
+
}>;
|
|
168
|
+
type Transform = z.infer<typeof transformSchema>;
|
|
169
|
+
/**
|
|
170
|
+
* Operation schema - a single API operation (list, read, write, etc.)
|
|
171
|
+
*/
|
|
172
|
+
declare const operationSchema: z.ZodObject<{
|
|
173
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
174
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
175
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
176
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
177
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
178
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
179
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
180
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
181
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
182
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
184
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
186
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
187
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
188
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
189
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
190
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
191
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
192
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
193
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
194
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
195
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
196
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
197
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
198
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
199
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
200
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
201
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
202
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
203
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
204
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
205
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
items?: string | undefined;
|
|
208
|
+
entry?: z.objectOutputType<{
|
|
209
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
210
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
211
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
212
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
213
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
214
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
215
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
216
|
+
}, {
|
|
217
|
+
items?: string | undefined;
|
|
218
|
+
entry?: z.objectInputType<{
|
|
219
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
220
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
221
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
222
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
223
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
224
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
225
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
226
|
+
}>>;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
path?: string | undefined;
|
|
229
|
+
params?: Record<string, string> | undefined;
|
|
230
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
231
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
232
|
+
body?: Record<string, string> | undefined;
|
|
233
|
+
headers?: Record<string, string> | undefined;
|
|
234
|
+
query?: string | undefined;
|
|
235
|
+
variables?: Record<string, string> | undefined;
|
|
236
|
+
tool?: string | undefined;
|
|
237
|
+
transform?: {
|
|
238
|
+
items?: string | undefined;
|
|
239
|
+
entry?: z.objectOutputType<{
|
|
240
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
241
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
242
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
243
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
244
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
245
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
246
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
path?: string | undefined;
|
|
250
|
+
params?: Record<string, string> | undefined;
|
|
251
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
252
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
253
|
+
body?: Record<string, string> | undefined;
|
|
254
|
+
headers?: Record<string, string> | undefined;
|
|
255
|
+
query?: string | undefined;
|
|
256
|
+
variables?: Record<string, string> | undefined;
|
|
257
|
+
tool?: string | undefined;
|
|
258
|
+
transform?: {
|
|
259
|
+
items?: string | undefined;
|
|
260
|
+
entry?: z.objectInputType<{
|
|
261
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
262
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
263
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
264
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
265
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
266
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
267
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
}>;
|
|
270
|
+
type Operation = z.infer<typeof operationSchema>;
|
|
271
|
+
/**
|
|
272
|
+
* Route definition - operations for a specific path pattern
|
|
273
|
+
*/
|
|
274
|
+
declare const routeDefinitionSchema: z.ZodObject<{
|
|
275
|
+
/** List operation (returns multiple entries) */list: z.ZodOptional<z.ZodObject<{
|
|
276
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
277
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
278
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
279
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
280
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
281
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
282
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
283
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
284
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
285
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
286
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
287
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
288
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
289
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
290
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
291
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
292
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
293
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
294
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
295
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
296
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
297
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
298
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
299
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
300
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
301
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
302
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
303
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
304
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
305
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
306
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
307
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
308
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
items?: string | undefined;
|
|
311
|
+
entry?: z.objectOutputType<{
|
|
312
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
313
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
314
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
315
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
316
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
317
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
318
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
items?: string | undefined;
|
|
321
|
+
entry?: z.objectInputType<{
|
|
322
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
323
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
324
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
325
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
326
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
327
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
328
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
329
|
+
}>>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
path?: string | undefined;
|
|
332
|
+
params?: Record<string, string> | undefined;
|
|
333
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
334
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
335
|
+
body?: Record<string, string> | undefined;
|
|
336
|
+
headers?: Record<string, string> | undefined;
|
|
337
|
+
query?: string | undefined;
|
|
338
|
+
variables?: Record<string, string> | undefined;
|
|
339
|
+
tool?: string | undefined;
|
|
340
|
+
transform?: {
|
|
341
|
+
items?: string | undefined;
|
|
342
|
+
entry?: z.objectOutputType<{
|
|
343
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
344
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
345
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
346
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
347
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
348
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
349
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
350
|
+
} | undefined;
|
|
351
|
+
}, {
|
|
352
|
+
path?: string | undefined;
|
|
353
|
+
params?: Record<string, string> | undefined;
|
|
354
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
355
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
356
|
+
body?: Record<string, string> | undefined;
|
|
357
|
+
headers?: Record<string, string> | undefined;
|
|
358
|
+
query?: string | undefined;
|
|
359
|
+
variables?: Record<string, string> | undefined;
|
|
360
|
+
tool?: string | undefined;
|
|
361
|
+
transform?: {
|
|
362
|
+
items?: string | undefined;
|
|
363
|
+
entry?: z.objectInputType<{
|
|
364
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
365
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
366
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
367
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
368
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
369
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
370
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
371
|
+
} | undefined;
|
|
372
|
+
}>>; /** Read operation (returns single entry) */
|
|
373
|
+
read: z.ZodOptional<z.ZodObject<{
|
|
374
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
375
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
376
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
377
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
378
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
379
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
380
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
381
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
382
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
383
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
384
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
385
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
387
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
388
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
389
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
390
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
391
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
392
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
393
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
394
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
395
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
396
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
397
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
398
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
399
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
400
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
401
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
402
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
403
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
404
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
405
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
406
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
407
|
+
}, "strip", z.ZodTypeAny, {
|
|
408
|
+
items?: string | undefined;
|
|
409
|
+
entry?: z.objectOutputType<{
|
|
410
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
411
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
412
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
413
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
414
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
415
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
416
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
417
|
+
}, {
|
|
418
|
+
items?: string | undefined;
|
|
419
|
+
entry?: z.objectInputType<{
|
|
420
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
421
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
422
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
423
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
424
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
425
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
426
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
427
|
+
}>>;
|
|
428
|
+
}, "strip", z.ZodTypeAny, {
|
|
429
|
+
path?: string | undefined;
|
|
430
|
+
params?: Record<string, string> | undefined;
|
|
431
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
432
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
433
|
+
body?: Record<string, string> | undefined;
|
|
434
|
+
headers?: Record<string, string> | undefined;
|
|
435
|
+
query?: string | undefined;
|
|
436
|
+
variables?: Record<string, string> | undefined;
|
|
437
|
+
tool?: string | undefined;
|
|
438
|
+
transform?: {
|
|
439
|
+
items?: string | undefined;
|
|
440
|
+
entry?: z.objectOutputType<{
|
|
441
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
442
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
443
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
444
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
445
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
446
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
447
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
448
|
+
} | undefined;
|
|
449
|
+
}, {
|
|
450
|
+
path?: string | undefined;
|
|
451
|
+
params?: Record<string, string> | undefined;
|
|
452
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
453
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
454
|
+
body?: Record<string, string> | undefined;
|
|
455
|
+
headers?: Record<string, string> | undefined;
|
|
456
|
+
query?: string | undefined;
|
|
457
|
+
variables?: Record<string, string> | undefined;
|
|
458
|
+
tool?: string | undefined;
|
|
459
|
+
transform?: {
|
|
460
|
+
items?: string | undefined;
|
|
461
|
+
entry?: z.objectInputType<{
|
|
462
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
463
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
464
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
465
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
466
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
467
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
468
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
469
|
+
} | undefined;
|
|
470
|
+
}>>; /** Write/update operation */
|
|
471
|
+
write: z.ZodOptional<z.ZodObject<{
|
|
472
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
473
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
474
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
475
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
476
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
477
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
478
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
479
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
480
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
481
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
483
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
484
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
485
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
486
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
487
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
488
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
489
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
490
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
491
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
492
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
493
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
494
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
495
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
496
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
497
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
498
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
499
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
500
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
501
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
502
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
503
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
504
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
items?: string | undefined;
|
|
507
|
+
entry?: z.objectOutputType<{
|
|
508
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
509
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
510
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
511
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
512
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
513
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
514
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
515
|
+
}, {
|
|
516
|
+
items?: string | undefined;
|
|
517
|
+
entry?: z.objectInputType<{
|
|
518
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
519
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
520
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
521
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
522
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
523
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
524
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
525
|
+
}>>;
|
|
526
|
+
}, "strip", z.ZodTypeAny, {
|
|
527
|
+
path?: string | undefined;
|
|
528
|
+
params?: Record<string, string> | undefined;
|
|
529
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
530
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
531
|
+
body?: Record<string, string> | undefined;
|
|
532
|
+
headers?: Record<string, string> | undefined;
|
|
533
|
+
query?: string | undefined;
|
|
534
|
+
variables?: Record<string, string> | undefined;
|
|
535
|
+
tool?: string | undefined;
|
|
536
|
+
transform?: {
|
|
537
|
+
items?: string | undefined;
|
|
538
|
+
entry?: z.objectOutputType<{
|
|
539
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
540
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
541
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
542
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
543
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
544
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
545
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
546
|
+
} | undefined;
|
|
547
|
+
}, {
|
|
548
|
+
path?: string | undefined;
|
|
549
|
+
params?: Record<string, string> | undefined;
|
|
550
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
551
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
552
|
+
body?: Record<string, string> | undefined;
|
|
553
|
+
headers?: Record<string, string> | undefined;
|
|
554
|
+
query?: string | undefined;
|
|
555
|
+
variables?: Record<string, string> | undefined;
|
|
556
|
+
tool?: string | undefined;
|
|
557
|
+
transform?: {
|
|
558
|
+
items?: string | undefined;
|
|
559
|
+
entry?: z.objectInputType<{
|
|
560
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
561
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
562
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
563
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
564
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
565
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
566
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
567
|
+
} | undefined;
|
|
568
|
+
}>>; /** Create operation */
|
|
569
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
570
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
571
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
572
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
573
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
574
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
575
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
576
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
577
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
578
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
579
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
580
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
581
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
582
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
583
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
584
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
585
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
586
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
587
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
588
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
589
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
590
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
591
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
592
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
593
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
594
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
595
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
596
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
597
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
598
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
599
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
600
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
601
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
602
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
603
|
+
}, "strip", z.ZodTypeAny, {
|
|
604
|
+
items?: string | undefined;
|
|
605
|
+
entry?: z.objectOutputType<{
|
|
606
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
607
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
608
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
609
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
610
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
611
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
612
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
613
|
+
}, {
|
|
614
|
+
items?: string | undefined;
|
|
615
|
+
entry?: z.objectInputType<{
|
|
616
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
617
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
618
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
619
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
620
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
621
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
622
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
623
|
+
}>>;
|
|
624
|
+
}, "strip", z.ZodTypeAny, {
|
|
625
|
+
path?: string | undefined;
|
|
626
|
+
params?: Record<string, string> | undefined;
|
|
627
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
628
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
629
|
+
body?: Record<string, string> | undefined;
|
|
630
|
+
headers?: Record<string, string> | undefined;
|
|
631
|
+
query?: string | undefined;
|
|
632
|
+
variables?: Record<string, string> | undefined;
|
|
633
|
+
tool?: string | undefined;
|
|
634
|
+
transform?: {
|
|
635
|
+
items?: string | undefined;
|
|
636
|
+
entry?: z.objectOutputType<{
|
|
637
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
638
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
639
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
640
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
641
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
642
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
643
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
644
|
+
} | undefined;
|
|
645
|
+
}, {
|
|
646
|
+
path?: string | undefined;
|
|
647
|
+
params?: Record<string, string> | undefined;
|
|
648
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
649
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
650
|
+
body?: Record<string, string> | undefined;
|
|
651
|
+
headers?: Record<string, string> | undefined;
|
|
652
|
+
query?: string | undefined;
|
|
653
|
+
variables?: Record<string, string> | undefined;
|
|
654
|
+
tool?: string | undefined;
|
|
655
|
+
transform?: {
|
|
656
|
+
items?: string | undefined;
|
|
657
|
+
entry?: z.objectInputType<{
|
|
658
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
659
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
660
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
661
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
662
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
663
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
664
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
665
|
+
} | undefined;
|
|
666
|
+
}>>; /** Delete operation */
|
|
667
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
668
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
669
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
670
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
671
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
672
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
673
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
674
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
675
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
676
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
677
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
678
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
679
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
680
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
681
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
682
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
683
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
684
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
685
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
686
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
687
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
688
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
689
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
690
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
691
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
692
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
693
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
694
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
695
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
696
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
697
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
698
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
699
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
700
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
701
|
+
}, "strip", z.ZodTypeAny, {
|
|
702
|
+
items?: string | undefined;
|
|
703
|
+
entry?: z.objectOutputType<{
|
|
704
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
705
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
706
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
707
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
708
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
709
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
710
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
711
|
+
}, {
|
|
712
|
+
items?: string | undefined;
|
|
713
|
+
entry?: z.objectInputType<{
|
|
714
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
715
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
716
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
717
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
718
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
719
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
720
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
721
|
+
}>>;
|
|
722
|
+
}, "strip", z.ZodTypeAny, {
|
|
723
|
+
path?: string | undefined;
|
|
724
|
+
params?: Record<string, string> | undefined;
|
|
725
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
726
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
727
|
+
body?: Record<string, string> | undefined;
|
|
728
|
+
headers?: Record<string, string> | undefined;
|
|
729
|
+
query?: string | undefined;
|
|
730
|
+
variables?: Record<string, string> | undefined;
|
|
731
|
+
tool?: string | undefined;
|
|
732
|
+
transform?: {
|
|
733
|
+
items?: string | undefined;
|
|
734
|
+
entry?: z.objectOutputType<{
|
|
735
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
736
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
737
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
738
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
739
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
740
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
741
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
742
|
+
} | undefined;
|
|
743
|
+
}, {
|
|
744
|
+
path?: string | undefined;
|
|
745
|
+
params?: Record<string, string> | undefined;
|
|
746
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
747
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
748
|
+
body?: Record<string, string> | undefined;
|
|
749
|
+
headers?: Record<string, string> | undefined;
|
|
750
|
+
query?: string | undefined;
|
|
751
|
+
variables?: Record<string, string> | undefined;
|
|
752
|
+
tool?: string | undefined;
|
|
753
|
+
transform?: {
|
|
754
|
+
items?: string | undefined;
|
|
755
|
+
entry?: z.objectInputType<{
|
|
756
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
757
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
758
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
759
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
760
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
761
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
762
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
763
|
+
} | undefined;
|
|
764
|
+
}>>;
|
|
765
|
+
}, "strip", z.ZodTypeAny, {
|
|
766
|
+
list?: {
|
|
767
|
+
path?: string | undefined;
|
|
768
|
+
params?: Record<string, string> | undefined;
|
|
769
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
770
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
771
|
+
body?: Record<string, string> | undefined;
|
|
772
|
+
headers?: Record<string, string> | undefined;
|
|
773
|
+
query?: string | undefined;
|
|
774
|
+
variables?: Record<string, string> | undefined;
|
|
775
|
+
tool?: string | undefined;
|
|
776
|
+
transform?: {
|
|
777
|
+
items?: string | undefined;
|
|
778
|
+
entry?: z.objectOutputType<{
|
|
779
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
780
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
781
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
782
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
783
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
784
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
785
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
786
|
+
} | undefined;
|
|
787
|
+
} | undefined;
|
|
788
|
+
read?: {
|
|
789
|
+
path?: string | undefined;
|
|
790
|
+
params?: Record<string, string> | undefined;
|
|
791
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
792
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
793
|
+
body?: Record<string, string> | undefined;
|
|
794
|
+
headers?: Record<string, string> | undefined;
|
|
795
|
+
query?: string | undefined;
|
|
796
|
+
variables?: Record<string, string> | undefined;
|
|
797
|
+
tool?: string | undefined;
|
|
798
|
+
transform?: {
|
|
799
|
+
items?: string | undefined;
|
|
800
|
+
entry?: z.objectOutputType<{
|
|
801
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
802
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
803
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
804
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
805
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
806
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
807
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
808
|
+
} | undefined;
|
|
809
|
+
} | undefined;
|
|
810
|
+
write?: {
|
|
811
|
+
path?: string | undefined;
|
|
812
|
+
params?: Record<string, string> | undefined;
|
|
813
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
814
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
815
|
+
body?: Record<string, string> | undefined;
|
|
816
|
+
headers?: Record<string, string> | undefined;
|
|
817
|
+
query?: string | undefined;
|
|
818
|
+
variables?: Record<string, string> | undefined;
|
|
819
|
+
tool?: string | undefined;
|
|
820
|
+
transform?: {
|
|
821
|
+
items?: string | undefined;
|
|
822
|
+
entry?: z.objectOutputType<{
|
|
823
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
824
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
825
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
826
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
827
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
828
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
829
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
830
|
+
} | undefined;
|
|
831
|
+
} | undefined;
|
|
832
|
+
create?: {
|
|
833
|
+
path?: string | undefined;
|
|
834
|
+
params?: Record<string, string> | undefined;
|
|
835
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
836
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
837
|
+
body?: Record<string, string> | undefined;
|
|
838
|
+
headers?: Record<string, string> | undefined;
|
|
839
|
+
query?: string | undefined;
|
|
840
|
+
variables?: Record<string, string> | undefined;
|
|
841
|
+
tool?: string | undefined;
|
|
842
|
+
transform?: {
|
|
843
|
+
items?: string | undefined;
|
|
844
|
+
entry?: z.objectOutputType<{
|
|
845
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
846
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
847
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
848
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
849
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
850
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
851
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
852
|
+
} | undefined;
|
|
853
|
+
} | undefined;
|
|
854
|
+
delete?: {
|
|
855
|
+
path?: string | undefined;
|
|
856
|
+
params?: Record<string, string> | undefined;
|
|
857
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
858
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
859
|
+
body?: Record<string, string> | undefined;
|
|
860
|
+
headers?: Record<string, string> | undefined;
|
|
861
|
+
query?: string | undefined;
|
|
862
|
+
variables?: Record<string, string> | undefined;
|
|
863
|
+
tool?: string | undefined;
|
|
864
|
+
transform?: {
|
|
865
|
+
items?: string | undefined;
|
|
866
|
+
entry?: z.objectOutputType<{
|
|
867
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
868
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
869
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
870
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
871
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
872
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
873
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
874
|
+
} | undefined;
|
|
875
|
+
} | undefined;
|
|
876
|
+
}, {
|
|
877
|
+
list?: {
|
|
878
|
+
path?: string | undefined;
|
|
879
|
+
params?: Record<string, string> | undefined;
|
|
880
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
881
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
882
|
+
body?: Record<string, string> | undefined;
|
|
883
|
+
headers?: Record<string, string> | undefined;
|
|
884
|
+
query?: string | undefined;
|
|
885
|
+
variables?: Record<string, string> | undefined;
|
|
886
|
+
tool?: string | undefined;
|
|
887
|
+
transform?: {
|
|
888
|
+
items?: string | undefined;
|
|
889
|
+
entry?: z.objectInputType<{
|
|
890
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
891
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
892
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
893
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
894
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
895
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
896
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
897
|
+
} | undefined;
|
|
898
|
+
} | undefined;
|
|
899
|
+
read?: {
|
|
900
|
+
path?: string | undefined;
|
|
901
|
+
params?: Record<string, string> | undefined;
|
|
902
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
903
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
904
|
+
body?: Record<string, string> | undefined;
|
|
905
|
+
headers?: Record<string, string> | undefined;
|
|
906
|
+
query?: string | undefined;
|
|
907
|
+
variables?: Record<string, string> | undefined;
|
|
908
|
+
tool?: string | undefined;
|
|
909
|
+
transform?: {
|
|
910
|
+
items?: string | undefined;
|
|
911
|
+
entry?: z.objectInputType<{
|
|
912
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
913
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
914
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
915
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
916
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
917
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
918
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
919
|
+
} | undefined;
|
|
920
|
+
} | undefined;
|
|
921
|
+
write?: {
|
|
922
|
+
path?: string | undefined;
|
|
923
|
+
params?: Record<string, string> | undefined;
|
|
924
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
925
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
926
|
+
body?: Record<string, string> | undefined;
|
|
927
|
+
headers?: Record<string, string> | undefined;
|
|
928
|
+
query?: string | undefined;
|
|
929
|
+
variables?: Record<string, string> | undefined;
|
|
930
|
+
tool?: string | undefined;
|
|
931
|
+
transform?: {
|
|
932
|
+
items?: string | undefined;
|
|
933
|
+
entry?: z.objectInputType<{
|
|
934
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
935
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
936
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
937
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
938
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
939
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
940
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
941
|
+
} | undefined;
|
|
942
|
+
} | undefined;
|
|
943
|
+
create?: {
|
|
944
|
+
path?: string | undefined;
|
|
945
|
+
params?: Record<string, string> | undefined;
|
|
946
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
947
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
948
|
+
body?: Record<string, string> | undefined;
|
|
949
|
+
headers?: Record<string, string> | undefined;
|
|
950
|
+
query?: string | undefined;
|
|
951
|
+
variables?: Record<string, string> | undefined;
|
|
952
|
+
tool?: string | undefined;
|
|
953
|
+
transform?: {
|
|
954
|
+
items?: string | undefined;
|
|
955
|
+
entry?: z.objectInputType<{
|
|
956
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
957
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
958
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
959
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
960
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
961
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
962
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
963
|
+
} | undefined;
|
|
964
|
+
} | undefined;
|
|
965
|
+
delete?: {
|
|
966
|
+
path?: string | undefined;
|
|
967
|
+
params?: Record<string, string> | undefined;
|
|
968
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
969
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
970
|
+
body?: Record<string, string> | undefined;
|
|
971
|
+
headers?: Record<string, string> | undefined;
|
|
972
|
+
query?: string | undefined;
|
|
973
|
+
variables?: Record<string, string> | undefined;
|
|
974
|
+
tool?: string | undefined;
|
|
975
|
+
transform?: {
|
|
976
|
+
items?: string | undefined;
|
|
977
|
+
entry?: z.objectInputType<{
|
|
978
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
979
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
980
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
981
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
982
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
983
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
984
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
985
|
+
} | undefined;
|
|
986
|
+
} | undefined;
|
|
987
|
+
}>;
|
|
988
|
+
type RouteDefinition = z.infer<typeof routeDefinitionSchema>;
|
|
989
|
+
/**
|
|
990
|
+
* Default configuration applied to all operations
|
|
991
|
+
*/
|
|
992
|
+
declare const defaultsSchema: z.ZodObject<{
|
|
993
|
+
/** Base URL for all API calls */baseUrl: z.ZodOptional<z.ZodString>; /** Default headers */
|
|
994
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Default timeout in milliseconds */
|
|
995
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
996
|
+
}, "strip", z.ZodTypeAny, {
|
|
997
|
+
headers?: Record<string, string> | undefined;
|
|
998
|
+
baseUrl?: string | undefined;
|
|
999
|
+
timeout?: number | undefined;
|
|
1000
|
+
}, {
|
|
1001
|
+
headers?: Record<string, string> | undefined;
|
|
1002
|
+
baseUrl?: string | undefined;
|
|
1003
|
+
timeout?: number | undefined;
|
|
1004
|
+
}>;
|
|
1005
|
+
type Defaults = z.infer<typeof defaultsSchema>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Root mapping configuration schema
|
|
1008
|
+
*/
|
|
1009
|
+
declare const mappingConfigSchema: z.ZodObject<{
|
|
1010
|
+
/** Mapping name (e.g., "github") */name: z.ZodString; /** Version string */
|
|
1011
|
+
version: z.ZodString; /** Human-readable description */
|
|
1012
|
+
description: z.ZodOptional<z.ZodString>; /** Default configuration */
|
|
1013
|
+
defaults: z.ZodOptional<z.ZodObject<{
|
|
1014
|
+
/** Base URL for all API calls */baseUrl: z.ZodOptional<z.ZodString>; /** Default headers */
|
|
1015
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Default timeout in milliseconds */
|
|
1016
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1017
|
+
}, "strip", z.ZodTypeAny, {
|
|
1018
|
+
headers?: Record<string, string> | undefined;
|
|
1019
|
+
baseUrl?: string | undefined;
|
|
1020
|
+
timeout?: number | undefined;
|
|
1021
|
+
}, {
|
|
1022
|
+
headers?: Record<string, string> | undefined;
|
|
1023
|
+
baseUrl?: string | undefined;
|
|
1024
|
+
timeout?: number | undefined;
|
|
1025
|
+
}>>; /** Paths to include (relative to this file) */
|
|
1026
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; /** Route definitions keyed by path template */
|
|
1027
|
+
routes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1028
|
+
/** List operation (returns multiple entries) */list: z.ZodOptional<z.ZodObject<{
|
|
1029
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
1030
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
1031
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
1032
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
1033
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
1034
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
1035
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
1036
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
1037
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
1038
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
1039
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
1040
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
1041
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1042
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1043
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1044
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1045
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1046
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1047
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1048
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1049
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1050
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1051
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1052
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1053
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1054
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1055
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1056
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1057
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1058
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1059
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1060
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1061
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1062
|
+
}, "strip", z.ZodTypeAny, {
|
|
1063
|
+
items?: string | undefined;
|
|
1064
|
+
entry?: z.objectOutputType<{
|
|
1065
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1066
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1067
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1068
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1069
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1070
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1071
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1072
|
+
}, {
|
|
1073
|
+
items?: string | undefined;
|
|
1074
|
+
entry?: z.objectInputType<{
|
|
1075
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1076
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1077
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1078
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1079
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1080
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1081
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1082
|
+
}>>;
|
|
1083
|
+
}, "strip", z.ZodTypeAny, {
|
|
1084
|
+
path?: string | undefined;
|
|
1085
|
+
params?: Record<string, string> | undefined;
|
|
1086
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1087
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1088
|
+
body?: Record<string, string> | undefined;
|
|
1089
|
+
headers?: Record<string, string> | undefined;
|
|
1090
|
+
query?: string | undefined;
|
|
1091
|
+
variables?: Record<string, string> | undefined;
|
|
1092
|
+
tool?: string | undefined;
|
|
1093
|
+
transform?: {
|
|
1094
|
+
items?: string | undefined;
|
|
1095
|
+
entry?: z.objectOutputType<{
|
|
1096
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1097
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1098
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1099
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1100
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1101
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1102
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1103
|
+
} | undefined;
|
|
1104
|
+
}, {
|
|
1105
|
+
path?: string | undefined;
|
|
1106
|
+
params?: Record<string, string> | undefined;
|
|
1107
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1108
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1109
|
+
body?: Record<string, string> | undefined;
|
|
1110
|
+
headers?: Record<string, string> | undefined;
|
|
1111
|
+
query?: string | undefined;
|
|
1112
|
+
variables?: Record<string, string> | undefined;
|
|
1113
|
+
tool?: string | undefined;
|
|
1114
|
+
transform?: {
|
|
1115
|
+
items?: string | undefined;
|
|
1116
|
+
entry?: z.objectInputType<{
|
|
1117
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1118
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1119
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1120
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1121
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1122
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1123
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1124
|
+
} | undefined;
|
|
1125
|
+
}>>; /** Read operation (returns single entry) */
|
|
1126
|
+
read: z.ZodOptional<z.ZodObject<{
|
|
1127
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
1128
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
1129
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
1130
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
1131
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
1132
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
1133
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
1134
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
1135
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
1136
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
1137
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
1138
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
1139
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1140
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1141
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1142
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1143
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1144
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1145
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1146
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1147
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1148
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1149
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1150
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1151
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1152
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1153
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1154
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1155
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1156
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1157
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1158
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1159
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1160
|
+
}, "strip", z.ZodTypeAny, {
|
|
1161
|
+
items?: string | undefined;
|
|
1162
|
+
entry?: z.objectOutputType<{
|
|
1163
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1164
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1165
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1166
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1167
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1168
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1169
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1170
|
+
}, {
|
|
1171
|
+
items?: string | undefined;
|
|
1172
|
+
entry?: z.objectInputType<{
|
|
1173
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1174
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1175
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1176
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1177
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1178
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1179
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1180
|
+
}>>;
|
|
1181
|
+
}, "strip", z.ZodTypeAny, {
|
|
1182
|
+
path?: string | undefined;
|
|
1183
|
+
params?: Record<string, string> | undefined;
|
|
1184
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1185
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1186
|
+
body?: Record<string, string> | undefined;
|
|
1187
|
+
headers?: Record<string, string> | undefined;
|
|
1188
|
+
query?: string | undefined;
|
|
1189
|
+
variables?: Record<string, string> | undefined;
|
|
1190
|
+
tool?: string | undefined;
|
|
1191
|
+
transform?: {
|
|
1192
|
+
items?: string | undefined;
|
|
1193
|
+
entry?: z.objectOutputType<{
|
|
1194
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1195
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1196
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1197
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1198
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1199
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1200
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1201
|
+
} | undefined;
|
|
1202
|
+
}, {
|
|
1203
|
+
path?: string | undefined;
|
|
1204
|
+
params?: Record<string, string> | undefined;
|
|
1205
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1206
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1207
|
+
body?: Record<string, string> | undefined;
|
|
1208
|
+
headers?: Record<string, string> | undefined;
|
|
1209
|
+
query?: string | undefined;
|
|
1210
|
+
variables?: Record<string, string> | undefined;
|
|
1211
|
+
tool?: string | undefined;
|
|
1212
|
+
transform?: {
|
|
1213
|
+
items?: string | undefined;
|
|
1214
|
+
entry?: z.objectInputType<{
|
|
1215
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1216
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1217
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1218
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1219
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1220
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1221
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1222
|
+
} | undefined;
|
|
1223
|
+
}>>; /** Write/update operation */
|
|
1224
|
+
write: z.ZodOptional<z.ZodObject<{
|
|
1225
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
1226
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
1227
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
1228
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
1229
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
1230
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
1231
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
1232
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
1233
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
1234
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
1235
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
1236
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
1237
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1238
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1239
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1240
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1241
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1242
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1243
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1244
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1245
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1246
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1247
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1248
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1249
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1250
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1251
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1252
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1253
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1254
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1255
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1256
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1257
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1258
|
+
}, "strip", z.ZodTypeAny, {
|
|
1259
|
+
items?: string | undefined;
|
|
1260
|
+
entry?: z.objectOutputType<{
|
|
1261
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1262
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1263
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1264
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1265
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1266
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1267
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1268
|
+
}, {
|
|
1269
|
+
items?: string | undefined;
|
|
1270
|
+
entry?: z.objectInputType<{
|
|
1271
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1272
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1273
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1274
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1275
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1276
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1277
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1278
|
+
}>>;
|
|
1279
|
+
}, "strip", z.ZodTypeAny, {
|
|
1280
|
+
path?: string | undefined;
|
|
1281
|
+
params?: Record<string, string> | undefined;
|
|
1282
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1283
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1284
|
+
body?: Record<string, string> | undefined;
|
|
1285
|
+
headers?: Record<string, string> | undefined;
|
|
1286
|
+
query?: string | undefined;
|
|
1287
|
+
variables?: Record<string, string> | undefined;
|
|
1288
|
+
tool?: string | undefined;
|
|
1289
|
+
transform?: {
|
|
1290
|
+
items?: string | undefined;
|
|
1291
|
+
entry?: z.objectOutputType<{
|
|
1292
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1293
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1294
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1295
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1296
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1297
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1298
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1299
|
+
} | undefined;
|
|
1300
|
+
}, {
|
|
1301
|
+
path?: string | undefined;
|
|
1302
|
+
params?: Record<string, string> | undefined;
|
|
1303
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1304
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1305
|
+
body?: Record<string, string> | undefined;
|
|
1306
|
+
headers?: Record<string, string> | undefined;
|
|
1307
|
+
query?: string | undefined;
|
|
1308
|
+
variables?: Record<string, string> | undefined;
|
|
1309
|
+
tool?: string | undefined;
|
|
1310
|
+
transform?: {
|
|
1311
|
+
items?: string | undefined;
|
|
1312
|
+
entry?: z.objectInputType<{
|
|
1313
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1314
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1315
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1316
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1317
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1318
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1319
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
}>>; /** Create operation */
|
|
1322
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
1323
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
1324
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
1325
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
1326
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
1327
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
1328
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
1329
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
1330
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
1331
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
1332
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
1333
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
1334
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
1335
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1336
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1337
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1338
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1339
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1340
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1341
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1342
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1343
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1344
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1345
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1346
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1347
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1348
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1349
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1350
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1351
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1352
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1353
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1354
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1355
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1356
|
+
}, "strip", z.ZodTypeAny, {
|
|
1357
|
+
items?: string | undefined;
|
|
1358
|
+
entry?: z.objectOutputType<{
|
|
1359
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1360
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1361
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1362
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1363
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1364
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1365
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1366
|
+
}, {
|
|
1367
|
+
items?: string | undefined;
|
|
1368
|
+
entry?: z.objectInputType<{
|
|
1369
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1370
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1371
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1372
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1373
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1374
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1375
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1376
|
+
}>>;
|
|
1377
|
+
}, "strip", z.ZodTypeAny, {
|
|
1378
|
+
path?: string | undefined;
|
|
1379
|
+
params?: Record<string, string> | undefined;
|
|
1380
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1381
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1382
|
+
body?: Record<string, string> | undefined;
|
|
1383
|
+
headers?: Record<string, string> | undefined;
|
|
1384
|
+
query?: string | undefined;
|
|
1385
|
+
variables?: Record<string, string> | undefined;
|
|
1386
|
+
tool?: string | undefined;
|
|
1387
|
+
transform?: {
|
|
1388
|
+
items?: string | undefined;
|
|
1389
|
+
entry?: z.objectOutputType<{
|
|
1390
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1391
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1392
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1393
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1394
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1395
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1396
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1397
|
+
} | undefined;
|
|
1398
|
+
}, {
|
|
1399
|
+
path?: string | undefined;
|
|
1400
|
+
params?: Record<string, string> | undefined;
|
|
1401
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1402
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1403
|
+
body?: Record<string, string> | undefined;
|
|
1404
|
+
headers?: Record<string, string> | undefined;
|
|
1405
|
+
query?: string | undefined;
|
|
1406
|
+
variables?: Record<string, string> | undefined;
|
|
1407
|
+
tool?: string | undefined;
|
|
1408
|
+
transform?: {
|
|
1409
|
+
items?: string | undefined;
|
|
1410
|
+
entry?: z.objectInputType<{
|
|
1411
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1412
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1413
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1414
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1415
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1416
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1417
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1418
|
+
} | undefined;
|
|
1419
|
+
}>>; /** Delete operation */
|
|
1420
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
1421
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
1422
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
1423
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
1424
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
1425
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
1426
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
1427
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
1428
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
1429
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
1430
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
1431
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
1432
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
1433
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1434
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1435
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1436
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1437
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1438
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1439
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1440
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1441
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1442
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1443
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1444
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1445
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1446
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1447
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1448
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1449
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1450
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1451
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1452
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1453
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
1454
|
+
}, "strip", z.ZodTypeAny, {
|
|
1455
|
+
items?: string | undefined;
|
|
1456
|
+
entry?: z.objectOutputType<{
|
|
1457
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1458
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1459
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1460
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1461
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1462
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1463
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1464
|
+
}, {
|
|
1465
|
+
items?: string | undefined;
|
|
1466
|
+
entry?: z.objectInputType<{
|
|
1467
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1468
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1469
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1470
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1471
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1472
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1473
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1474
|
+
}>>;
|
|
1475
|
+
}, "strip", z.ZodTypeAny, {
|
|
1476
|
+
path?: string | undefined;
|
|
1477
|
+
params?: Record<string, string> | undefined;
|
|
1478
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1479
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1480
|
+
body?: Record<string, string> | undefined;
|
|
1481
|
+
headers?: Record<string, string> | undefined;
|
|
1482
|
+
query?: string | undefined;
|
|
1483
|
+
variables?: Record<string, string> | undefined;
|
|
1484
|
+
tool?: string | undefined;
|
|
1485
|
+
transform?: {
|
|
1486
|
+
items?: string | undefined;
|
|
1487
|
+
entry?: z.objectOutputType<{
|
|
1488
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1489
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1490
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1491
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1492
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1493
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1494
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1495
|
+
} | undefined;
|
|
1496
|
+
}, {
|
|
1497
|
+
path?: string | undefined;
|
|
1498
|
+
params?: Record<string, string> | undefined;
|
|
1499
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1500
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1501
|
+
body?: Record<string, string> | undefined;
|
|
1502
|
+
headers?: Record<string, string> | undefined;
|
|
1503
|
+
query?: string | undefined;
|
|
1504
|
+
variables?: Record<string, string> | undefined;
|
|
1505
|
+
tool?: string | undefined;
|
|
1506
|
+
transform?: {
|
|
1507
|
+
items?: string | undefined;
|
|
1508
|
+
entry?: z.objectInputType<{
|
|
1509
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1510
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1511
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1512
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1513
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1514
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1515
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1516
|
+
} | undefined;
|
|
1517
|
+
}>>;
|
|
1518
|
+
}, "strip", z.ZodTypeAny, {
|
|
1519
|
+
list?: {
|
|
1520
|
+
path?: string | undefined;
|
|
1521
|
+
params?: Record<string, string> | undefined;
|
|
1522
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1523
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1524
|
+
body?: Record<string, string> | undefined;
|
|
1525
|
+
headers?: Record<string, string> | undefined;
|
|
1526
|
+
query?: string | undefined;
|
|
1527
|
+
variables?: Record<string, string> | undefined;
|
|
1528
|
+
tool?: string | undefined;
|
|
1529
|
+
transform?: {
|
|
1530
|
+
items?: string | undefined;
|
|
1531
|
+
entry?: z.objectOutputType<{
|
|
1532
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1533
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1534
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1535
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1536
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1537
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1538
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1539
|
+
} | undefined;
|
|
1540
|
+
} | undefined;
|
|
1541
|
+
read?: {
|
|
1542
|
+
path?: string | undefined;
|
|
1543
|
+
params?: Record<string, string> | undefined;
|
|
1544
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1545
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1546
|
+
body?: Record<string, string> | undefined;
|
|
1547
|
+
headers?: Record<string, string> | undefined;
|
|
1548
|
+
query?: string | undefined;
|
|
1549
|
+
variables?: Record<string, string> | undefined;
|
|
1550
|
+
tool?: string | undefined;
|
|
1551
|
+
transform?: {
|
|
1552
|
+
items?: string | undefined;
|
|
1553
|
+
entry?: z.objectOutputType<{
|
|
1554
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1555
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1556
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1557
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1558
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1559
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1560
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1561
|
+
} | undefined;
|
|
1562
|
+
} | undefined;
|
|
1563
|
+
write?: {
|
|
1564
|
+
path?: string | undefined;
|
|
1565
|
+
params?: Record<string, string> | undefined;
|
|
1566
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1567
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1568
|
+
body?: Record<string, string> | undefined;
|
|
1569
|
+
headers?: Record<string, string> | undefined;
|
|
1570
|
+
query?: string | undefined;
|
|
1571
|
+
variables?: Record<string, string> | undefined;
|
|
1572
|
+
tool?: string | undefined;
|
|
1573
|
+
transform?: {
|
|
1574
|
+
items?: string | undefined;
|
|
1575
|
+
entry?: z.objectOutputType<{
|
|
1576
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1577
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1578
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1579
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1580
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1581
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1582
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1583
|
+
} | undefined;
|
|
1584
|
+
} | undefined;
|
|
1585
|
+
create?: {
|
|
1586
|
+
path?: string | undefined;
|
|
1587
|
+
params?: Record<string, string> | undefined;
|
|
1588
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1589
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1590
|
+
body?: Record<string, string> | undefined;
|
|
1591
|
+
headers?: Record<string, string> | undefined;
|
|
1592
|
+
query?: string | undefined;
|
|
1593
|
+
variables?: Record<string, string> | undefined;
|
|
1594
|
+
tool?: string | undefined;
|
|
1595
|
+
transform?: {
|
|
1596
|
+
items?: string | undefined;
|
|
1597
|
+
entry?: z.objectOutputType<{
|
|
1598
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1599
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1600
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1601
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1602
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1603
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1604
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1605
|
+
} | undefined;
|
|
1606
|
+
} | undefined;
|
|
1607
|
+
delete?: {
|
|
1608
|
+
path?: string | undefined;
|
|
1609
|
+
params?: Record<string, string> | undefined;
|
|
1610
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1611
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1612
|
+
body?: Record<string, string> | undefined;
|
|
1613
|
+
headers?: Record<string, string> | undefined;
|
|
1614
|
+
query?: string | undefined;
|
|
1615
|
+
variables?: Record<string, string> | undefined;
|
|
1616
|
+
tool?: string | undefined;
|
|
1617
|
+
transform?: {
|
|
1618
|
+
items?: string | undefined;
|
|
1619
|
+
entry?: z.objectOutputType<{
|
|
1620
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1621
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1622
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1623
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1624
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1625
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1626
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1627
|
+
} | undefined;
|
|
1628
|
+
} | undefined;
|
|
1629
|
+
}, {
|
|
1630
|
+
list?: {
|
|
1631
|
+
path?: string | undefined;
|
|
1632
|
+
params?: Record<string, string> | undefined;
|
|
1633
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1634
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1635
|
+
body?: Record<string, string> | undefined;
|
|
1636
|
+
headers?: Record<string, string> | undefined;
|
|
1637
|
+
query?: string | undefined;
|
|
1638
|
+
variables?: Record<string, string> | undefined;
|
|
1639
|
+
tool?: string | undefined;
|
|
1640
|
+
transform?: {
|
|
1641
|
+
items?: string | undefined;
|
|
1642
|
+
entry?: z.objectInputType<{
|
|
1643
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1644
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1645
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1646
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1647
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1648
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1649
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1650
|
+
} | undefined;
|
|
1651
|
+
} | undefined;
|
|
1652
|
+
read?: {
|
|
1653
|
+
path?: string | undefined;
|
|
1654
|
+
params?: Record<string, string> | undefined;
|
|
1655
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1656
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1657
|
+
body?: Record<string, string> | undefined;
|
|
1658
|
+
headers?: Record<string, string> | undefined;
|
|
1659
|
+
query?: string | undefined;
|
|
1660
|
+
variables?: Record<string, string> | undefined;
|
|
1661
|
+
tool?: string | undefined;
|
|
1662
|
+
transform?: {
|
|
1663
|
+
items?: string | undefined;
|
|
1664
|
+
entry?: z.objectInputType<{
|
|
1665
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1666
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1667
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1668
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1669
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1670
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1671
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1672
|
+
} | undefined;
|
|
1673
|
+
} | undefined;
|
|
1674
|
+
write?: {
|
|
1675
|
+
path?: string | undefined;
|
|
1676
|
+
params?: Record<string, string> | undefined;
|
|
1677
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1678
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1679
|
+
body?: Record<string, string> | undefined;
|
|
1680
|
+
headers?: Record<string, string> | undefined;
|
|
1681
|
+
query?: string | undefined;
|
|
1682
|
+
variables?: Record<string, string> | undefined;
|
|
1683
|
+
tool?: string | undefined;
|
|
1684
|
+
transform?: {
|
|
1685
|
+
items?: string | undefined;
|
|
1686
|
+
entry?: z.objectInputType<{
|
|
1687
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1688
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1689
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1690
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1691
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1692
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1693
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1694
|
+
} | undefined;
|
|
1695
|
+
} | undefined;
|
|
1696
|
+
create?: {
|
|
1697
|
+
path?: string | undefined;
|
|
1698
|
+
params?: Record<string, string> | undefined;
|
|
1699
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1700
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1701
|
+
body?: Record<string, string> | undefined;
|
|
1702
|
+
headers?: Record<string, string> | undefined;
|
|
1703
|
+
query?: string | undefined;
|
|
1704
|
+
variables?: Record<string, string> | undefined;
|
|
1705
|
+
tool?: string | undefined;
|
|
1706
|
+
transform?: {
|
|
1707
|
+
items?: string | undefined;
|
|
1708
|
+
entry?: z.objectInputType<{
|
|
1709
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1710
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1711
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1712
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1713
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1714
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1715
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1716
|
+
} | undefined;
|
|
1717
|
+
} | undefined;
|
|
1718
|
+
delete?: {
|
|
1719
|
+
path?: string | undefined;
|
|
1720
|
+
params?: Record<string, string> | undefined;
|
|
1721
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1722
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1723
|
+
body?: Record<string, string> | undefined;
|
|
1724
|
+
headers?: Record<string, string> | undefined;
|
|
1725
|
+
query?: string | undefined;
|
|
1726
|
+
variables?: Record<string, string> | undefined;
|
|
1727
|
+
tool?: string | undefined;
|
|
1728
|
+
transform?: {
|
|
1729
|
+
items?: string | undefined;
|
|
1730
|
+
entry?: z.objectInputType<{
|
|
1731
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1732
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1733
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1734
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1735
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1736
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1737
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1738
|
+
} | undefined;
|
|
1739
|
+
} | undefined;
|
|
1740
|
+
}>>;
|
|
1741
|
+
}, "strip", z.ZodTypeAny, {
|
|
1742
|
+
name: string;
|
|
1743
|
+
version: string;
|
|
1744
|
+
routes: Record<string, {
|
|
1745
|
+
list?: {
|
|
1746
|
+
path?: string | undefined;
|
|
1747
|
+
params?: Record<string, string> | undefined;
|
|
1748
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1749
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1750
|
+
body?: Record<string, string> | undefined;
|
|
1751
|
+
headers?: Record<string, string> | undefined;
|
|
1752
|
+
query?: string | undefined;
|
|
1753
|
+
variables?: Record<string, string> | undefined;
|
|
1754
|
+
tool?: string | undefined;
|
|
1755
|
+
transform?: {
|
|
1756
|
+
items?: string | undefined;
|
|
1757
|
+
entry?: z.objectOutputType<{
|
|
1758
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1759
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1760
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1761
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1762
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1763
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1764
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1765
|
+
} | undefined;
|
|
1766
|
+
} | undefined;
|
|
1767
|
+
read?: {
|
|
1768
|
+
path?: string | undefined;
|
|
1769
|
+
params?: Record<string, string> | undefined;
|
|
1770
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1771
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1772
|
+
body?: Record<string, string> | undefined;
|
|
1773
|
+
headers?: Record<string, string> | undefined;
|
|
1774
|
+
query?: string | undefined;
|
|
1775
|
+
variables?: Record<string, string> | undefined;
|
|
1776
|
+
tool?: string | undefined;
|
|
1777
|
+
transform?: {
|
|
1778
|
+
items?: string | undefined;
|
|
1779
|
+
entry?: z.objectOutputType<{
|
|
1780
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1781
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1782
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1783
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1784
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1785
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1786
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1787
|
+
} | undefined;
|
|
1788
|
+
} | undefined;
|
|
1789
|
+
write?: {
|
|
1790
|
+
path?: string | undefined;
|
|
1791
|
+
params?: Record<string, string> | undefined;
|
|
1792
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1793
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1794
|
+
body?: Record<string, string> | undefined;
|
|
1795
|
+
headers?: Record<string, string> | undefined;
|
|
1796
|
+
query?: string | undefined;
|
|
1797
|
+
variables?: Record<string, string> | undefined;
|
|
1798
|
+
tool?: string | undefined;
|
|
1799
|
+
transform?: {
|
|
1800
|
+
items?: string | undefined;
|
|
1801
|
+
entry?: z.objectOutputType<{
|
|
1802
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1803
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1804
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1805
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1806
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1807
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1808
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1809
|
+
} | undefined;
|
|
1810
|
+
} | undefined;
|
|
1811
|
+
create?: {
|
|
1812
|
+
path?: string | undefined;
|
|
1813
|
+
params?: Record<string, string> | undefined;
|
|
1814
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1815
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1816
|
+
body?: Record<string, string> | undefined;
|
|
1817
|
+
headers?: Record<string, string> | undefined;
|
|
1818
|
+
query?: string | undefined;
|
|
1819
|
+
variables?: Record<string, string> | undefined;
|
|
1820
|
+
tool?: string | undefined;
|
|
1821
|
+
transform?: {
|
|
1822
|
+
items?: string | undefined;
|
|
1823
|
+
entry?: z.objectOutputType<{
|
|
1824
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1825
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1826
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1827
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1828
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1829
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1830
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1831
|
+
} | undefined;
|
|
1832
|
+
} | undefined;
|
|
1833
|
+
delete?: {
|
|
1834
|
+
path?: string | undefined;
|
|
1835
|
+
params?: Record<string, string> | undefined;
|
|
1836
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1837
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1838
|
+
body?: Record<string, string> | undefined;
|
|
1839
|
+
headers?: Record<string, string> | undefined;
|
|
1840
|
+
query?: string | undefined;
|
|
1841
|
+
variables?: Record<string, string> | undefined;
|
|
1842
|
+
tool?: string | undefined;
|
|
1843
|
+
transform?: {
|
|
1844
|
+
items?: string | undefined;
|
|
1845
|
+
entry?: z.objectOutputType<{
|
|
1846
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1847
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1848
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1849
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1850
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1851
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1852
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1853
|
+
} | undefined;
|
|
1854
|
+
} | undefined;
|
|
1855
|
+
}>;
|
|
1856
|
+
description?: string | undefined;
|
|
1857
|
+
defaults?: {
|
|
1858
|
+
headers?: Record<string, string> | undefined;
|
|
1859
|
+
baseUrl?: string | undefined;
|
|
1860
|
+
timeout?: number | undefined;
|
|
1861
|
+
} | undefined;
|
|
1862
|
+
include?: string[] | undefined;
|
|
1863
|
+
}, {
|
|
1864
|
+
name: string;
|
|
1865
|
+
version: string;
|
|
1866
|
+
routes: Record<string, {
|
|
1867
|
+
list?: {
|
|
1868
|
+
path?: string | undefined;
|
|
1869
|
+
params?: Record<string, string> | undefined;
|
|
1870
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1871
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1872
|
+
body?: Record<string, string> | undefined;
|
|
1873
|
+
headers?: Record<string, string> | undefined;
|
|
1874
|
+
query?: string | undefined;
|
|
1875
|
+
variables?: Record<string, string> | undefined;
|
|
1876
|
+
tool?: string | undefined;
|
|
1877
|
+
transform?: {
|
|
1878
|
+
items?: string | undefined;
|
|
1879
|
+
entry?: z.objectInputType<{
|
|
1880
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1881
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1882
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1883
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1884
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1885
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1886
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1887
|
+
} | undefined;
|
|
1888
|
+
} | undefined;
|
|
1889
|
+
read?: {
|
|
1890
|
+
path?: string | undefined;
|
|
1891
|
+
params?: Record<string, string> | undefined;
|
|
1892
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1893
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1894
|
+
body?: Record<string, string> | undefined;
|
|
1895
|
+
headers?: Record<string, string> | undefined;
|
|
1896
|
+
query?: string | undefined;
|
|
1897
|
+
variables?: Record<string, string> | undefined;
|
|
1898
|
+
tool?: string | undefined;
|
|
1899
|
+
transform?: {
|
|
1900
|
+
items?: string | undefined;
|
|
1901
|
+
entry?: z.objectInputType<{
|
|
1902
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1903
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1904
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1905
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1906
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1907
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1908
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1909
|
+
} | undefined;
|
|
1910
|
+
} | undefined;
|
|
1911
|
+
write?: {
|
|
1912
|
+
path?: string | undefined;
|
|
1913
|
+
params?: Record<string, string> | undefined;
|
|
1914
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1915
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1916
|
+
body?: Record<string, string> | undefined;
|
|
1917
|
+
headers?: Record<string, string> | undefined;
|
|
1918
|
+
query?: string | undefined;
|
|
1919
|
+
variables?: Record<string, string> | undefined;
|
|
1920
|
+
tool?: string | undefined;
|
|
1921
|
+
transform?: {
|
|
1922
|
+
items?: string | undefined;
|
|
1923
|
+
entry?: z.objectInputType<{
|
|
1924
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1925
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1926
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1927
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1928
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1929
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1930
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1931
|
+
} | undefined;
|
|
1932
|
+
} | undefined;
|
|
1933
|
+
create?: {
|
|
1934
|
+
path?: string | undefined;
|
|
1935
|
+
params?: Record<string, string> | undefined;
|
|
1936
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1937
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1938
|
+
body?: Record<string, string> | undefined;
|
|
1939
|
+
headers?: Record<string, string> | undefined;
|
|
1940
|
+
query?: string | undefined;
|
|
1941
|
+
variables?: Record<string, string> | undefined;
|
|
1942
|
+
tool?: string | undefined;
|
|
1943
|
+
transform?: {
|
|
1944
|
+
items?: string | undefined;
|
|
1945
|
+
entry?: z.objectInputType<{
|
|
1946
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1947
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1948
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1949
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1950
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1951
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1952
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1953
|
+
} | undefined;
|
|
1954
|
+
} | undefined;
|
|
1955
|
+
delete?: {
|
|
1956
|
+
path?: string | undefined;
|
|
1957
|
+
params?: Record<string, string> | undefined;
|
|
1958
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
1959
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
1960
|
+
body?: Record<string, string> | undefined;
|
|
1961
|
+
headers?: Record<string, string> | undefined;
|
|
1962
|
+
query?: string | undefined;
|
|
1963
|
+
variables?: Record<string, string> | undefined;
|
|
1964
|
+
tool?: string | undefined;
|
|
1965
|
+
transform?: {
|
|
1966
|
+
items?: string | undefined;
|
|
1967
|
+
entry?: z.objectInputType<{
|
|
1968
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
1969
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
1970
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
1971
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
1972
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
1973
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1974
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1975
|
+
} | undefined;
|
|
1976
|
+
} | undefined;
|
|
1977
|
+
}>;
|
|
1978
|
+
description?: string | undefined;
|
|
1979
|
+
defaults?: {
|
|
1980
|
+
headers?: Record<string, string> | undefined;
|
|
1981
|
+
baseUrl?: string | undefined;
|
|
1982
|
+
timeout?: number | undefined;
|
|
1983
|
+
} | undefined;
|
|
1984
|
+
include?: string[] | undefined;
|
|
1985
|
+
}>;
|
|
1986
|
+
type MappingConfig = z.infer<typeof mappingConfigSchema>;
|
|
1987
|
+
/**
|
|
1988
|
+
* Partial mapping config for included files (no name/version required)
|
|
1989
|
+
*/
|
|
1990
|
+
declare const partialMappingConfigSchema: z.ZodObject<{
|
|
1991
|
+
/** Route definitions keyed by path template */routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1992
|
+
/** List operation (returns multiple entries) */list: z.ZodOptional<z.ZodObject<{
|
|
1993
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
1994
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
1995
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
1996
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
1997
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
1998
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
1999
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
2000
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
2001
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
2002
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
2003
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
2004
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
2005
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2006
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2007
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2008
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2009
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2010
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2011
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2012
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2013
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2014
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2015
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2016
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2017
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2018
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2019
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2020
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2021
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2022
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2023
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2024
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2025
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2026
|
+
}, "strip", z.ZodTypeAny, {
|
|
2027
|
+
items?: string | undefined;
|
|
2028
|
+
entry?: z.objectOutputType<{
|
|
2029
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2030
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2031
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2032
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2033
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2034
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2035
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2036
|
+
}, {
|
|
2037
|
+
items?: string | undefined;
|
|
2038
|
+
entry?: z.objectInputType<{
|
|
2039
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2040
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2041
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2042
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2043
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2044
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2045
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2046
|
+
}>>;
|
|
2047
|
+
}, "strip", z.ZodTypeAny, {
|
|
2048
|
+
path?: string | undefined;
|
|
2049
|
+
params?: Record<string, string> | undefined;
|
|
2050
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2051
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2052
|
+
body?: Record<string, string> | undefined;
|
|
2053
|
+
headers?: Record<string, string> | undefined;
|
|
2054
|
+
query?: string | undefined;
|
|
2055
|
+
variables?: Record<string, string> | undefined;
|
|
2056
|
+
tool?: string | undefined;
|
|
2057
|
+
transform?: {
|
|
2058
|
+
items?: string | undefined;
|
|
2059
|
+
entry?: z.objectOutputType<{
|
|
2060
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2061
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2062
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2063
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2064
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2065
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2066
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2067
|
+
} | undefined;
|
|
2068
|
+
}, {
|
|
2069
|
+
path?: string | undefined;
|
|
2070
|
+
params?: Record<string, string> | undefined;
|
|
2071
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2072
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2073
|
+
body?: Record<string, string> | undefined;
|
|
2074
|
+
headers?: Record<string, string> | undefined;
|
|
2075
|
+
query?: string | undefined;
|
|
2076
|
+
variables?: Record<string, string> | undefined;
|
|
2077
|
+
tool?: string | undefined;
|
|
2078
|
+
transform?: {
|
|
2079
|
+
items?: string | undefined;
|
|
2080
|
+
entry?: z.objectInputType<{
|
|
2081
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2082
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2083
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2084
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2085
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2086
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2087
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2088
|
+
} | undefined;
|
|
2089
|
+
}>>; /** Read operation (returns single entry) */
|
|
2090
|
+
read: z.ZodOptional<z.ZodObject<{
|
|
2091
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
2092
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
2093
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
2094
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
2095
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
2096
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
2097
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
2098
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
2099
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
2100
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
2101
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
2102
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
2103
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2104
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2105
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2106
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2107
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2108
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2109
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2110
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2111
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2112
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2113
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2114
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2115
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2116
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2117
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2118
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2119
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2120
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2121
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2122
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2123
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2124
|
+
}, "strip", z.ZodTypeAny, {
|
|
2125
|
+
items?: string | undefined;
|
|
2126
|
+
entry?: z.objectOutputType<{
|
|
2127
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2128
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2129
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2130
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2131
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2132
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2133
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2134
|
+
}, {
|
|
2135
|
+
items?: string | undefined;
|
|
2136
|
+
entry?: z.objectInputType<{
|
|
2137
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2138
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2139
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2140
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2141
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2142
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2143
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2144
|
+
}>>;
|
|
2145
|
+
}, "strip", z.ZodTypeAny, {
|
|
2146
|
+
path?: string | undefined;
|
|
2147
|
+
params?: Record<string, string> | undefined;
|
|
2148
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2149
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2150
|
+
body?: Record<string, string> | undefined;
|
|
2151
|
+
headers?: Record<string, string> | undefined;
|
|
2152
|
+
query?: string | undefined;
|
|
2153
|
+
variables?: Record<string, string> | undefined;
|
|
2154
|
+
tool?: string | undefined;
|
|
2155
|
+
transform?: {
|
|
2156
|
+
items?: string | undefined;
|
|
2157
|
+
entry?: z.objectOutputType<{
|
|
2158
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2159
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2160
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2161
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2162
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2163
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2164
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2165
|
+
} | undefined;
|
|
2166
|
+
}, {
|
|
2167
|
+
path?: string | undefined;
|
|
2168
|
+
params?: Record<string, string> | undefined;
|
|
2169
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2170
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2171
|
+
body?: Record<string, string> | undefined;
|
|
2172
|
+
headers?: Record<string, string> | undefined;
|
|
2173
|
+
query?: string | undefined;
|
|
2174
|
+
variables?: Record<string, string> | undefined;
|
|
2175
|
+
tool?: string | undefined;
|
|
2176
|
+
transform?: {
|
|
2177
|
+
items?: string | undefined;
|
|
2178
|
+
entry?: z.objectInputType<{
|
|
2179
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2180
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2181
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2182
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2183
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2184
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2185
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2186
|
+
} | undefined;
|
|
2187
|
+
}>>; /** Write/update operation */
|
|
2188
|
+
write: z.ZodOptional<z.ZodObject<{
|
|
2189
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
2190
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
2191
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
2192
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
2193
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
2194
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
2195
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
2196
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
2197
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
2198
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
2199
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
2200
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
2201
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2202
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2203
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2204
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2205
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2206
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2207
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2208
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2209
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2210
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2211
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2212
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2213
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2214
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2215
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2216
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2217
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2218
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2219
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2220
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2221
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2222
|
+
}, "strip", z.ZodTypeAny, {
|
|
2223
|
+
items?: string | undefined;
|
|
2224
|
+
entry?: z.objectOutputType<{
|
|
2225
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2226
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2227
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2228
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2229
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2230
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2231
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2232
|
+
}, {
|
|
2233
|
+
items?: string | undefined;
|
|
2234
|
+
entry?: z.objectInputType<{
|
|
2235
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2236
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2237
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2238
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2239
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2240
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2241
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2242
|
+
}>>;
|
|
2243
|
+
}, "strip", z.ZodTypeAny, {
|
|
2244
|
+
path?: string | undefined;
|
|
2245
|
+
params?: Record<string, string> | undefined;
|
|
2246
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2247
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2248
|
+
body?: Record<string, string> | undefined;
|
|
2249
|
+
headers?: Record<string, string> | undefined;
|
|
2250
|
+
query?: string | undefined;
|
|
2251
|
+
variables?: Record<string, string> | undefined;
|
|
2252
|
+
tool?: string | undefined;
|
|
2253
|
+
transform?: {
|
|
2254
|
+
items?: string | undefined;
|
|
2255
|
+
entry?: z.objectOutputType<{
|
|
2256
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2257
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2258
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2259
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2260
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2261
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2262
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2263
|
+
} | undefined;
|
|
2264
|
+
}, {
|
|
2265
|
+
path?: string | undefined;
|
|
2266
|
+
params?: Record<string, string> | undefined;
|
|
2267
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2268
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2269
|
+
body?: Record<string, string> | undefined;
|
|
2270
|
+
headers?: Record<string, string> | undefined;
|
|
2271
|
+
query?: string | undefined;
|
|
2272
|
+
variables?: Record<string, string> | undefined;
|
|
2273
|
+
tool?: string | undefined;
|
|
2274
|
+
transform?: {
|
|
2275
|
+
items?: string | undefined;
|
|
2276
|
+
entry?: z.objectInputType<{
|
|
2277
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2278
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2279
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2280
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2281
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2282
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2283
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2284
|
+
} | undefined;
|
|
2285
|
+
}>>; /** Create operation */
|
|
2286
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
2287
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
2288
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
2289
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
2290
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
2291
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
2292
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
2293
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
2294
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
2295
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
2296
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
2297
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
2298
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
2299
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2300
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2301
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2302
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2303
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2304
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2305
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2306
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2307
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2308
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2309
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2310
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2311
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2312
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2313
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2314
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2315
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2316
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2317
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2318
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2319
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2320
|
+
}, "strip", z.ZodTypeAny, {
|
|
2321
|
+
items?: string | undefined;
|
|
2322
|
+
entry?: z.objectOutputType<{
|
|
2323
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2324
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2325
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2326
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2327
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2328
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2329
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2330
|
+
}, {
|
|
2331
|
+
items?: string | undefined;
|
|
2332
|
+
entry?: z.objectInputType<{
|
|
2333
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2334
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2335
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2336
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2337
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2338
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2339
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2340
|
+
}>>;
|
|
2341
|
+
}, "strip", z.ZodTypeAny, {
|
|
2342
|
+
path?: string | undefined;
|
|
2343
|
+
params?: Record<string, string> | undefined;
|
|
2344
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2345
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2346
|
+
body?: Record<string, string> | undefined;
|
|
2347
|
+
headers?: Record<string, string> | undefined;
|
|
2348
|
+
query?: string | undefined;
|
|
2349
|
+
variables?: Record<string, string> | undefined;
|
|
2350
|
+
tool?: string | undefined;
|
|
2351
|
+
transform?: {
|
|
2352
|
+
items?: string | undefined;
|
|
2353
|
+
entry?: z.objectOutputType<{
|
|
2354
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2355
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2356
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2357
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2358
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2359
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2360
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2361
|
+
} | undefined;
|
|
2362
|
+
}, {
|
|
2363
|
+
path?: string | undefined;
|
|
2364
|
+
params?: Record<string, string> | undefined;
|
|
2365
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2366
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2367
|
+
body?: Record<string, string> | undefined;
|
|
2368
|
+
headers?: Record<string, string> | undefined;
|
|
2369
|
+
query?: string | undefined;
|
|
2370
|
+
variables?: Record<string, string> | undefined;
|
|
2371
|
+
tool?: string | undefined;
|
|
2372
|
+
transform?: {
|
|
2373
|
+
items?: string | undefined;
|
|
2374
|
+
entry?: z.objectInputType<{
|
|
2375
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2376
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2377
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2378
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2379
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2380
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2381
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2382
|
+
} | undefined;
|
|
2383
|
+
}>>; /** Delete operation */
|
|
2384
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
2385
|
+
/** Operation type (default: http) */type: z.ZodOptional<z.ZodEnum<["http", "graphql", "mcp-tool"]>>; /** HTTP method */
|
|
2386
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>; /** API path template */
|
|
2387
|
+
path: z.ZodOptional<z.ZodString>; /** Parameter bindings (e.g., { owner: "path.owner", state: "query.state | default('open')" }) */
|
|
2388
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Request body bindings (for POST/PUT/PATCH) */
|
|
2389
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Custom headers */
|
|
2390
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** GraphQL query string */
|
|
2391
|
+
query: z.ZodOptional<z.ZodString>; /** GraphQL variables bindings */
|
|
2392
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** MCP tool name */
|
|
2393
|
+
tool: z.ZodOptional<z.ZodString>; /** Response transform configuration */
|
|
2394
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
2395
|
+
/** JSONPath to items array (e.g., "$" for root, "$.data" for nested) */items: z.ZodOptional<z.ZodString>; /** Mapping for each entry */
|
|
2396
|
+
entry: z.ZodOptional<z.ZodObject<{
|
|
2397
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2398
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2399
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2400
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2401
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2402
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2403
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2404
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2405
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2406
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2407
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2408
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2409
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2410
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2411
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2412
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2413
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2414
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2415
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2416
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2417
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
2418
|
+
}, "strip", z.ZodTypeAny, {
|
|
2419
|
+
items?: string | undefined;
|
|
2420
|
+
entry?: z.objectOutputType<{
|
|
2421
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2422
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2423
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2424
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2425
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2426
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2427
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2428
|
+
}, {
|
|
2429
|
+
items?: string | undefined;
|
|
2430
|
+
entry?: z.objectInputType<{
|
|
2431
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2432
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2433
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2434
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2435
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2436
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2437
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2438
|
+
}>>;
|
|
2439
|
+
}, "strip", z.ZodTypeAny, {
|
|
2440
|
+
path?: string | undefined;
|
|
2441
|
+
params?: Record<string, string> | undefined;
|
|
2442
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2443
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2444
|
+
body?: Record<string, string> | undefined;
|
|
2445
|
+
headers?: Record<string, string> | undefined;
|
|
2446
|
+
query?: string | undefined;
|
|
2447
|
+
variables?: Record<string, string> | undefined;
|
|
2448
|
+
tool?: string | undefined;
|
|
2449
|
+
transform?: {
|
|
2450
|
+
items?: string | undefined;
|
|
2451
|
+
entry?: z.objectOutputType<{
|
|
2452
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2453
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2454
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2455
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2456
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2457
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2458
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2459
|
+
} | undefined;
|
|
2460
|
+
}, {
|
|
2461
|
+
path?: string | undefined;
|
|
2462
|
+
params?: Record<string, string> | undefined;
|
|
2463
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2464
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2465
|
+
body?: Record<string, string> | undefined;
|
|
2466
|
+
headers?: Record<string, string> | undefined;
|
|
2467
|
+
query?: string | undefined;
|
|
2468
|
+
variables?: Record<string, string> | undefined;
|
|
2469
|
+
tool?: string | undefined;
|
|
2470
|
+
transform?: {
|
|
2471
|
+
items?: string | undefined;
|
|
2472
|
+
entry?: z.objectInputType<{
|
|
2473
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2474
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2475
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2476
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2477
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2478
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2479
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2480
|
+
} | undefined;
|
|
2481
|
+
}>>;
|
|
2482
|
+
}, "strip", z.ZodTypeAny, {
|
|
2483
|
+
list?: {
|
|
2484
|
+
path?: string | undefined;
|
|
2485
|
+
params?: Record<string, string> | undefined;
|
|
2486
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2487
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2488
|
+
body?: Record<string, string> | undefined;
|
|
2489
|
+
headers?: Record<string, string> | undefined;
|
|
2490
|
+
query?: string | undefined;
|
|
2491
|
+
variables?: Record<string, string> | undefined;
|
|
2492
|
+
tool?: string | undefined;
|
|
2493
|
+
transform?: {
|
|
2494
|
+
items?: string | undefined;
|
|
2495
|
+
entry?: z.objectOutputType<{
|
|
2496
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2497
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2498
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2499
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2500
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2501
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2502
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2503
|
+
} | undefined;
|
|
2504
|
+
} | undefined;
|
|
2505
|
+
read?: {
|
|
2506
|
+
path?: string | undefined;
|
|
2507
|
+
params?: Record<string, string> | undefined;
|
|
2508
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2509
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2510
|
+
body?: Record<string, string> | undefined;
|
|
2511
|
+
headers?: Record<string, string> | undefined;
|
|
2512
|
+
query?: string | undefined;
|
|
2513
|
+
variables?: Record<string, string> | undefined;
|
|
2514
|
+
tool?: string | undefined;
|
|
2515
|
+
transform?: {
|
|
2516
|
+
items?: string | undefined;
|
|
2517
|
+
entry?: z.objectOutputType<{
|
|
2518
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2519
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2520
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2521
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2522
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2523
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2524
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2525
|
+
} | undefined;
|
|
2526
|
+
} | undefined;
|
|
2527
|
+
write?: {
|
|
2528
|
+
path?: string | undefined;
|
|
2529
|
+
params?: Record<string, string> | undefined;
|
|
2530
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2531
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2532
|
+
body?: Record<string, string> | undefined;
|
|
2533
|
+
headers?: Record<string, string> | undefined;
|
|
2534
|
+
query?: string | undefined;
|
|
2535
|
+
variables?: Record<string, string> | undefined;
|
|
2536
|
+
tool?: string | undefined;
|
|
2537
|
+
transform?: {
|
|
2538
|
+
items?: string | undefined;
|
|
2539
|
+
entry?: z.objectOutputType<{
|
|
2540
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2541
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2542
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2543
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2544
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2545
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2546
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2547
|
+
} | undefined;
|
|
2548
|
+
} | undefined;
|
|
2549
|
+
create?: {
|
|
2550
|
+
path?: string | undefined;
|
|
2551
|
+
params?: Record<string, string> | undefined;
|
|
2552
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2553
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2554
|
+
body?: Record<string, string> | undefined;
|
|
2555
|
+
headers?: Record<string, string> | undefined;
|
|
2556
|
+
query?: string | undefined;
|
|
2557
|
+
variables?: Record<string, string> | undefined;
|
|
2558
|
+
tool?: string | undefined;
|
|
2559
|
+
transform?: {
|
|
2560
|
+
items?: string | undefined;
|
|
2561
|
+
entry?: z.objectOutputType<{
|
|
2562
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2563
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2564
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2565
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2566
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2567
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2568
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2569
|
+
} | undefined;
|
|
2570
|
+
} | undefined;
|
|
2571
|
+
delete?: {
|
|
2572
|
+
path?: string | undefined;
|
|
2573
|
+
params?: Record<string, string> | undefined;
|
|
2574
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2575
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2576
|
+
body?: Record<string, string> | undefined;
|
|
2577
|
+
headers?: Record<string, string> | undefined;
|
|
2578
|
+
query?: string | undefined;
|
|
2579
|
+
variables?: Record<string, string> | undefined;
|
|
2580
|
+
tool?: string | undefined;
|
|
2581
|
+
transform?: {
|
|
2582
|
+
items?: string | undefined;
|
|
2583
|
+
entry?: z.objectOutputType<{
|
|
2584
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2585
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2586
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2587
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2588
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2589
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2590
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2591
|
+
} | undefined;
|
|
2592
|
+
} | undefined;
|
|
2593
|
+
}, {
|
|
2594
|
+
list?: {
|
|
2595
|
+
path?: string | undefined;
|
|
2596
|
+
params?: Record<string, string> | undefined;
|
|
2597
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2598
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2599
|
+
body?: Record<string, string> | undefined;
|
|
2600
|
+
headers?: Record<string, string> | undefined;
|
|
2601
|
+
query?: string | undefined;
|
|
2602
|
+
variables?: Record<string, string> | undefined;
|
|
2603
|
+
tool?: string | undefined;
|
|
2604
|
+
transform?: {
|
|
2605
|
+
items?: string | undefined;
|
|
2606
|
+
entry?: z.objectInputType<{
|
|
2607
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2608
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2609
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2610
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2611
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2612
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2613
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2614
|
+
} | undefined;
|
|
2615
|
+
} | undefined;
|
|
2616
|
+
read?: {
|
|
2617
|
+
path?: string | undefined;
|
|
2618
|
+
params?: Record<string, string> | undefined;
|
|
2619
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2620
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2621
|
+
body?: Record<string, string> | undefined;
|
|
2622
|
+
headers?: Record<string, string> | undefined;
|
|
2623
|
+
query?: string | undefined;
|
|
2624
|
+
variables?: Record<string, string> | undefined;
|
|
2625
|
+
tool?: string | undefined;
|
|
2626
|
+
transform?: {
|
|
2627
|
+
items?: string | undefined;
|
|
2628
|
+
entry?: z.objectInputType<{
|
|
2629
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2630
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2631
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2632
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2633
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2634
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2635
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2636
|
+
} | undefined;
|
|
2637
|
+
} | undefined;
|
|
2638
|
+
write?: {
|
|
2639
|
+
path?: string | undefined;
|
|
2640
|
+
params?: Record<string, string> | undefined;
|
|
2641
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2642
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2643
|
+
body?: Record<string, string> | undefined;
|
|
2644
|
+
headers?: Record<string, string> | undefined;
|
|
2645
|
+
query?: string | undefined;
|
|
2646
|
+
variables?: Record<string, string> | undefined;
|
|
2647
|
+
tool?: string | undefined;
|
|
2648
|
+
transform?: {
|
|
2649
|
+
items?: string | undefined;
|
|
2650
|
+
entry?: z.objectInputType<{
|
|
2651
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2652
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2653
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2654
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2655
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2656
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2657
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2658
|
+
} | undefined;
|
|
2659
|
+
} | undefined;
|
|
2660
|
+
create?: {
|
|
2661
|
+
path?: string | undefined;
|
|
2662
|
+
params?: Record<string, string> | undefined;
|
|
2663
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2664
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2665
|
+
body?: Record<string, string> | undefined;
|
|
2666
|
+
headers?: Record<string, string> | undefined;
|
|
2667
|
+
query?: string | undefined;
|
|
2668
|
+
variables?: Record<string, string> | undefined;
|
|
2669
|
+
tool?: string | undefined;
|
|
2670
|
+
transform?: {
|
|
2671
|
+
items?: string | undefined;
|
|
2672
|
+
entry?: z.objectInputType<{
|
|
2673
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2674
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2675
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2676
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2677
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2678
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2679
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2680
|
+
} | undefined;
|
|
2681
|
+
} | undefined;
|
|
2682
|
+
delete?: {
|
|
2683
|
+
path?: string | undefined;
|
|
2684
|
+
params?: Record<string, string> | undefined;
|
|
2685
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2686
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2687
|
+
body?: Record<string, string> | undefined;
|
|
2688
|
+
headers?: Record<string, string> | undefined;
|
|
2689
|
+
query?: string | undefined;
|
|
2690
|
+
variables?: Record<string, string> | undefined;
|
|
2691
|
+
tool?: string | undefined;
|
|
2692
|
+
transform?: {
|
|
2693
|
+
items?: string | undefined;
|
|
2694
|
+
entry?: z.objectInputType<{
|
|
2695
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2696
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2697
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2698
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2699
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2700
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2701
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2702
|
+
} | undefined;
|
|
2703
|
+
} | undefined;
|
|
2704
|
+
}>>>; /** Default configuration (merged with parent) */
|
|
2705
|
+
defaults: z.ZodOptional<z.ZodObject<{
|
|
2706
|
+
/** Base URL for all API calls */baseUrl: z.ZodOptional<z.ZodString>; /** Default headers */
|
|
2707
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; /** Default timeout in milliseconds */
|
|
2708
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2709
|
+
}, "strip", z.ZodTypeAny, {
|
|
2710
|
+
headers?: Record<string, string> | undefined;
|
|
2711
|
+
baseUrl?: string | undefined;
|
|
2712
|
+
timeout?: number | undefined;
|
|
2713
|
+
}, {
|
|
2714
|
+
headers?: Record<string, string> | undefined;
|
|
2715
|
+
baseUrl?: string | undefined;
|
|
2716
|
+
timeout?: number | undefined;
|
|
2717
|
+
}>>;
|
|
2718
|
+
}, "strip", z.ZodTypeAny, {
|
|
2719
|
+
defaults?: {
|
|
2720
|
+
headers?: Record<string, string> | undefined;
|
|
2721
|
+
baseUrl?: string | undefined;
|
|
2722
|
+
timeout?: number | undefined;
|
|
2723
|
+
} | undefined;
|
|
2724
|
+
routes?: Record<string, {
|
|
2725
|
+
list?: {
|
|
2726
|
+
path?: string | undefined;
|
|
2727
|
+
params?: Record<string, string> | undefined;
|
|
2728
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2729
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2730
|
+
body?: Record<string, string> | undefined;
|
|
2731
|
+
headers?: Record<string, string> | undefined;
|
|
2732
|
+
query?: string | undefined;
|
|
2733
|
+
variables?: Record<string, string> | undefined;
|
|
2734
|
+
tool?: string | undefined;
|
|
2735
|
+
transform?: {
|
|
2736
|
+
items?: string | undefined;
|
|
2737
|
+
entry?: z.objectOutputType<{
|
|
2738
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2739
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2740
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2741
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2742
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2743
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2744
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2745
|
+
} | undefined;
|
|
2746
|
+
} | undefined;
|
|
2747
|
+
read?: {
|
|
2748
|
+
path?: string | undefined;
|
|
2749
|
+
params?: Record<string, string> | undefined;
|
|
2750
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2751
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2752
|
+
body?: Record<string, string> | undefined;
|
|
2753
|
+
headers?: Record<string, string> | undefined;
|
|
2754
|
+
query?: string | undefined;
|
|
2755
|
+
variables?: Record<string, string> | undefined;
|
|
2756
|
+
tool?: string | undefined;
|
|
2757
|
+
transform?: {
|
|
2758
|
+
items?: string | undefined;
|
|
2759
|
+
entry?: z.objectOutputType<{
|
|
2760
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2761
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2762
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2763
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2764
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2765
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2766
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2767
|
+
} | undefined;
|
|
2768
|
+
} | undefined;
|
|
2769
|
+
write?: {
|
|
2770
|
+
path?: string | undefined;
|
|
2771
|
+
params?: Record<string, string> | undefined;
|
|
2772
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2773
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2774
|
+
body?: Record<string, string> | undefined;
|
|
2775
|
+
headers?: Record<string, string> | undefined;
|
|
2776
|
+
query?: string | undefined;
|
|
2777
|
+
variables?: Record<string, string> | undefined;
|
|
2778
|
+
tool?: string | undefined;
|
|
2779
|
+
transform?: {
|
|
2780
|
+
items?: string | undefined;
|
|
2781
|
+
entry?: z.objectOutputType<{
|
|
2782
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2783
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2784
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2785
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2786
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2787
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2788
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2789
|
+
} | undefined;
|
|
2790
|
+
} | undefined;
|
|
2791
|
+
create?: {
|
|
2792
|
+
path?: string | undefined;
|
|
2793
|
+
params?: Record<string, string> | undefined;
|
|
2794
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2795
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2796
|
+
body?: Record<string, string> | undefined;
|
|
2797
|
+
headers?: Record<string, string> | undefined;
|
|
2798
|
+
query?: string | undefined;
|
|
2799
|
+
variables?: Record<string, string> | undefined;
|
|
2800
|
+
tool?: string | undefined;
|
|
2801
|
+
transform?: {
|
|
2802
|
+
items?: string | undefined;
|
|
2803
|
+
entry?: z.objectOutputType<{
|
|
2804
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2805
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2806
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2807
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2808
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2809
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2810
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2811
|
+
} | undefined;
|
|
2812
|
+
} | undefined;
|
|
2813
|
+
delete?: {
|
|
2814
|
+
path?: string | undefined;
|
|
2815
|
+
params?: Record<string, string> | undefined;
|
|
2816
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2817
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2818
|
+
body?: Record<string, string> | undefined;
|
|
2819
|
+
headers?: Record<string, string> | undefined;
|
|
2820
|
+
query?: string | undefined;
|
|
2821
|
+
variables?: Record<string, string> | undefined;
|
|
2822
|
+
tool?: string | undefined;
|
|
2823
|
+
transform?: {
|
|
2824
|
+
items?: string | undefined;
|
|
2825
|
+
entry?: z.objectOutputType<{
|
|
2826
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2827
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2828
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2829
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2830
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2831
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2832
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2833
|
+
} | undefined;
|
|
2834
|
+
} | undefined;
|
|
2835
|
+
}> | undefined;
|
|
2836
|
+
}, {
|
|
2837
|
+
defaults?: {
|
|
2838
|
+
headers?: Record<string, string> | undefined;
|
|
2839
|
+
baseUrl?: string | undefined;
|
|
2840
|
+
timeout?: number | undefined;
|
|
2841
|
+
} | undefined;
|
|
2842
|
+
routes?: Record<string, {
|
|
2843
|
+
list?: {
|
|
2844
|
+
path?: string | undefined;
|
|
2845
|
+
params?: Record<string, string> | undefined;
|
|
2846
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2847
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2848
|
+
body?: Record<string, string> | undefined;
|
|
2849
|
+
headers?: Record<string, string> | undefined;
|
|
2850
|
+
query?: string | undefined;
|
|
2851
|
+
variables?: Record<string, string> | undefined;
|
|
2852
|
+
tool?: string | undefined;
|
|
2853
|
+
transform?: {
|
|
2854
|
+
items?: string | undefined;
|
|
2855
|
+
entry?: z.objectInputType<{
|
|
2856
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2857
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2858
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2859
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2860
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2861
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2862
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2863
|
+
} | undefined;
|
|
2864
|
+
} | undefined;
|
|
2865
|
+
read?: {
|
|
2866
|
+
path?: string | undefined;
|
|
2867
|
+
params?: Record<string, string> | undefined;
|
|
2868
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2869
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2870
|
+
body?: Record<string, string> | undefined;
|
|
2871
|
+
headers?: Record<string, string> | undefined;
|
|
2872
|
+
query?: string | undefined;
|
|
2873
|
+
variables?: Record<string, string> | undefined;
|
|
2874
|
+
tool?: string | undefined;
|
|
2875
|
+
transform?: {
|
|
2876
|
+
items?: string | undefined;
|
|
2877
|
+
entry?: z.objectInputType<{
|
|
2878
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2879
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2880
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2881
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2882
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2883
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2884
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2885
|
+
} | undefined;
|
|
2886
|
+
} | undefined;
|
|
2887
|
+
write?: {
|
|
2888
|
+
path?: string | undefined;
|
|
2889
|
+
params?: Record<string, string> | undefined;
|
|
2890
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2891
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2892
|
+
body?: Record<string, string> | undefined;
|
|
2893
|
+
headers?: Record<string, string> | undefined;
|
|
2894
|
+
query?: string | undefined;
|
|
2895
|
+
variables?: Record<string, string> | undefined;
|
|
2896
|
+
tool?: string | undefined;
|
|
2897
|
+
transform?: {
|
|
2898
|
+
items?: string | undefined;
|
|
2899
|
+
entry?: z.objectInputType<{
|
|
2900
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2901
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2902
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2903
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2904
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2905
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2906
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2907
|
+
} | undefined;
|
|
2908
|
+
} | undefined;
|
|
2909
|
+
create?: {
|
|
2910
|
+
path?: string | undefined;
|
|
2911
|
+
params?: Record<string, string> | undefined;
|
|
2912
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2913
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2914
|
+
body?: Record<string, string> | undefined;
|
|
2915
|
+
headers?: Record<string, string> | undefined;
|
|
2916
|
+
query?: string | undefined;
|
|
2917
|
+
variables?: Record<string, string> | undefined;
|
|
2918
|
+
tool?: string | undefined;
|
|
2919
|
+
transform?: {
|
|
2920
|
+
items?: string | undefined;
|
|
2921
|
+
entry?: z.objectInputType<{
|
|
2922
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2923
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2924
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2925
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2926
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2927
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2928
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2929
|
+
} | undefined;
|
|
2930
|
+
} | undefined;
|
|
2931
|
+
delete?: {
|
|
2932
|
+
path?: string | undefined;
|
|
2933
|
+
params?: Record<string, string> | undefined;
|
|
2934
|
+
type?: "http" | "graphql" | "mcp-tool" | undefined;
|
|
2935
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
|
|
2936
|
+
body?: Record<string, string> | undefined;
|
|
2937
|
+
headers?: Record<string, string> | undefined;
|
|
2938
|
+
query?: string | undefined;
|
|
2939
|
+
variables?: Record<string, string> | undefined;
|
|
2940
|
+
tool?: string | undefined;
|
|
2941
|
+
transform?: {
|
|
2942
|
+
items?: string | undefined;
|
|
2943
|
+
entry?: z.objectInputType<{
|
|
2944
|
+
/** Entry ID (usually from API item identifier) */id: z.ZodOptional<z.ZodString>; /** AFS path for this entry */
|
|
2945
|
+
path: z.ZodOptional<z.ZodString>; /** Entry summary (e.g., title) */
|
|
2946
|
+
summary: z.ZodOptional<z.ZodString>; /** Entry description */
|
|
2947
|
+
description: z.ZodOptional<z.ZodString>; /** Entry content (e.g., body) */
|
|
2948
|
+
content: z.ZodOptional<z.ZodString>; /** Additional metadata (nested object supported) */
|
|
2949
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2950
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2951
|
+
} | undefined;
|
|
2952
|
+
} | undefined;
|
|
2953
|
+
}> | undefined;
|
|
2954
|
+
}>;
|
|
2955
|
+
type PartialMappingConfig = z.infer<typeof partialMappingConfigSchema>;
|
|
2956
|
+
//#endregion
|
|
2957
|
+
//#region src/compiler.d.ts
|
|
2958
|
+
/**
|
|
2959
|
+
* Operation types supported by routes
|
|
2960
|
+
*/
|
|
2961
|
+
type OperationType = "list" | "read" | "write" | "create" | "delete";
|
|
2962
|
+
/**
|
|
2963
|
+
* Resolved route information
|
|
2964
|
+
*/
|
|
2965
|
+
interface ResolvedRoute {
|
|
2966
|
+
/** Original template */
|
|
2967
|
+
template: string;
|
|
2968
|
+
/** Extracted path parameters */
|
|
2969
|
+
params: Record<string, string>;
|
|
2970
|
+
/** Available operations */
|
|
2971
|
+
operations: Partial<Record<OperationType, Operation>>;
|
|
2972
|
+
}
|
|
2973
|
+
/**
|
|
2974
|
+
* HTTP request built from route and operation
|
|
2975
|
+
*/
|
|
2976
|
+
interface HttpRequest {
|
|
2977
|
+
/** HTTP method */
|
|
2978
|
+
method: string;
|
|
2979
|
+
/** Request path (with params interpolated) */
|
|
2980
|
+
path: string;
|
|
2981
|
+
/** Query/path parameters */
|
|
2982
|
+
params: Record<string, unknown>;
|
|
2983
|
+
/** Request headers */
|
|
2984
|
+
headers?: Record<string, string>;
|
|
2985
|
+
/** Request body (for POST/PUT/PATCH) */
|
|
2986
|
+
body?: Record<string, unknown>;
|
|
2987
|
+
}
|
|
2988
|
+
/**
|
|
2989
|
+
* Compiled mapping ready for runtime use
|
|
2990
|
+
*/
|
|
2991
|
+
declare class CompiledMapping {
|
|
2992
|
+
readonly name: string;
|
|
2993
|
+
readonly version: string;
|
|
2994
|
+
readonly description?: string;
|
|
2995
|
+
readonly defaults?: Defaults;
|
|
2996
|
+
private resolver;
|
|
2997
|
+
private binder;
|
|
2998
|
+
private projector;
|
|
2999
|
+
private routes;
|
|
3000
|
+
constructor(config: MappingConfig);
|
|
3001
|
+
/**
|
|
3002
|
+
* Get number of routes
|
|
3003
|
+
*/
|
|
3004
|
+
get routeCount(): number;
|
|
3005
|
+
/**
|
|
3006
|
+
* Get total number of operations
|
|
3007
|
+
*/
|
|
3008
|
+
get operationCount(): number;
|
|
3009
|
+
/**
|
|
3010
|
+
* Resolve a path to route information
|
|
3011
|
+
*/
|
|
3012
|
+
resolve(path: string): ResolvedRoute | null;
|
|
3013
|
+
/**
|
|
3014
|
+
* Build an HTTP request for a given path and operation
|
|
3015
|
+
*/
|
|
3016
|
+
buildRequest(afsPath: string, operationType: OperationType, options: {
|
|
3017
|
+
query?: Record<string, string>;
|
|
3018
|
+
input?: Record<string, unknown>;
|
|
3019
|
+
}): HttpRequest | null;
|
|
3020
|
+
/**
|
|
3021
|
+
* Project API response to AFS entries
|
|
3022
|
+
*/
|
|
3023
|
+
projectResponse(afsPath: string, operationType: OperationType, apiResponse: unknown): AFSEntry[];
|
|
3024
|
+
/**
|
|
3025
|
+
* Interpolate path template with context values
|
|
3026
|
+
*/
|
|
3027
|
+
private interpolatePath;
|
|
3028
|
+
}
|
|
3029
|
+
/**
|
|
3030
|
+
* Compiler for mapping configurations
|
|
3031
|
+
*/
|
|
3032
|
+
declare class MappingCompiler {
|
|
3033
|
+
private parser;
|
|
3034
|
+
/**
|
|
3035
|
+
* Compile a mapping file
|
|
3036
|
+
*/
|
|
3037
|
+
compileFile(filePath: string): Promise<CompiledMapping>;
|
|
3038
|
+
/**
|
|
3039
|
+
* Compile a mapping directory
|
|
3040
|
+
*/
|
|
3041
|
+
compileDirectory(dirPath: string): Promise<CompiledMapping>;
|
|
3042
|
+
/**
|
|
3043
|
+
* Compile from a config object (for testing)
|
|
3044
|
+
*/
|
|
3045
|
+
compileConfig(config: MappingConfig): CompiledMapping;
|
|
3046
|
+
}
|
|
3047
|
+
//#endregion
|
|
3048
|
+
//#region src/parser.d.ts
|
|
3049
|
+
/**
|
|
3050
|
+
* Error thrown when parsing fails
|
|
3051
|
+
*/
|
|
3052
|
+
declare class MappingParseError extends Error {
|
|
3053
|
+
readonly filePath?: string | undefined;
|
|
3054
|
+
readonly cause?: Error | undefined;
|
|
3055
|
+
constructor(message: string, filePath?: string | undefined, cause?: Error | undefined);
|
|
3056
|
+
}
|
|
3057
|
+
/**
|
|
3058
|
+
* Parser for mapping configuration files
|
|
3059
|
+
*/
|
|
3060
|
+
declare class MappingParser {
|
|
3061
|
+
/**
|
|
3062
|
+
* Parse a YAML string into a validated mapping config
|
|
3063
|
+
*/
|
|
3064
|
+
parseString(yaml: string, filePath?: string): MappingConfig;
|
|
3065
|
+
/**
|
|
3066
|
+
* Parse a partial config string (for included files)
|
|
3067
|
+
*/
|
|
3068
|
+
parsePartialString(yaml: string, filePath?: string): PartialMappingConfig;
|
|
3069
|
+
/**
|
|
3070
|
+
* Parse a mapping file and resolve includes
|
|
3071
|
+
*/
|
|
3072
|
+
parseFile(filePath: string, visitedPaths?: Set<string>): Promise<MappingConfig>;
|
|
3073
|
+
/**
|
|
3074
|
+
* Parse a partial mapping file (for includes)
|
|
3075
|
+
*/
|
|
3076
|
+
parsePartialFile(filePath: string, visitedPaths?: Set<string>): Promise<PartialMappingConfig>;
|
|
3077
|
+
/**
|
|
3078
|
+
* Parse a directory containing index.yaml and potentially included files
|
|
3079
|
+
*/
|
|
3080
|
+
parseDirectory(dirPath: string): Promise<MappingConfig>;
|
|
3081
|
+
}
|
|
3082
|
+
//#endregion
|
|
3083
|
+
//#region src/projector.d.ts
|
|
3084
|
+
/**
|
|
3085
|
+
* Projects API response data to AFS entries
|
|
3086
|
+
*/
|
|
3087
|
+
declare class Projector {
|
|
3088
|
+
private binder;
|
|
3089
|
+
/**
|
|
3090
|
+
* Project data to AFS entries based on transform config
|
|
3091
|
+
*/
|
|
3092
|
+
project(data: unknown, transform: Transform, pathParams: Record<string, string>): AFSEntry[];
|
|
3093
|
+
/**
|
|
3094
|
+
* Project a list of items
|
|
3095
|
+
*/
|
|
3096
|
+
projectList(data: unknown, transform: Transform, pathParams: Record<string, string>): AFSEntry[];
|
|
3097
|
+
/**
|
|
3098
|
+
* Project a single item to an AFS entry
|
|
3099
|
+
*/
|
|
3100
|
+
projectItem(data: unknown, transform: Transform, pathParams: Record<string, string>): AFSEntry;
|
|
3101
|
+
/**
|
|
3102
|
+
* Evaluate a single field expression
|
|
3103
|
+
*/
|
|
3104
|
+
private evaluateField;
|
|
3105
|
+
/**
|
|
3106
|
+
* Interpolate a path template with data and path params
|
|
3107
|
+
* Handles both {name} for path params and {$.path} for JSONPath
|
|
3108
|
+
*/
|
|
3109
|
+
private interpolatePath;
|
|
3110
|
+
/**
|
|
3111
|
+
* Project metadata object recursively
|
|
3112
|
+
*/
|
|
3113
|
+
private projectMetadata;
|
|
3114
|
+
/**
|
|
3115
|
+
* Evaluate a JSONPath expression
|
|
3116
|
+
*/
|
|
3117
|
+
private evaluateJsonPath;
|
|
3118
|
+
}
|
|
3119
|
+
//#endregion
|
|
3120
|
+
//#region src/resolver.d.ts
|
|
3121
|
+
/**
|
|
3122
|
+
* Path Resolver
|
|
3123
|
+
*
|
|
3124
|
+
* Efficient path template matching using a Trie structure.
|
|
3125
|
+
* Supports parameterized path segments like /{owner}/{repo}/issues/{number}.
|
|
3126
|
+
*/
|
|
3127
|
+
/**
|
|
3128
|
+
* Result of a path match
|
|
3129
|
+
*/
|
|
3130
|
+
interface PathMatchResult<T> {
|
|
3131
|
+
/** The matched template string */
|
|
3132
|
+
template: string;
|
|
3133
|
+
/** Extracted path parameters */
|
|
3134
|
+
params: Record<string, string>;
|
|
3135
|
+
/** Associated data */
|
|
3136
|
+
data: T;
|
|
3137
|
+
}
|
|
3138
|
+
/**
|
|
3139
|
+
* Represents a parsed path template
|
|
3140
|
+
*/
|
|
3141
|
+
declare class PathTemplate {
|
|
3142
|
+
/** Original template string */
|
|
3143
|
+
readonly template: string;
|
|
3144
|
+
/** Parsed segments */
|
|
3145
|
+
readonly segments: string[];
|
|
3146
|
+
/** Parameter names in order */
|
|
3147
|
+
readonly params: string[];
|
|
3148
|
+
private constructor();
|
|
3149
|
+
/**
|
|
3150
|
+
* Parse a path template string
|
|
3151
|
+
*/
|
|
3152
|
+
static parse(template: string): PathTemplate;
|
|
3153
|
+
/**
|
|
3154
|
+
* Try to match a path against this template
|
|
3155
|
+
*/
|
|
3156
|
+
match(path: string): {
|
|
3157
|
+
params: Record<string, string>;
|
|
3158
|
+
} | null;
|
|
3159
|
+
}
|
|
3160
|
+
/**
|
|
3161
|
+
* Path resolver using Trie for O(k) lookup where k = path depth
|
|
3162
|
+
*/
|
|
3163
|
+
declare class PathResolver<T> {
|
|
3164
|
+
private root;
|
|
3165
|
+
constructor();
|
|
3166
|
+
private createNode;
|
|
3167
|
+
/**
|
|
3168
|
+
* Add a route template with associated data
|
|
3169
|
+
*/
|
|
3170
|
+
addRoute(template: string, data: T): void;
|
|
3171
|
+
/**
|
|
3172
|
+
* Resolve a path to a route
|
|
3173
|
+
*/
|
|
3174
|
+
resolve(path: string): PathMatchResult<T> | null;
|
|
3175
|
+
/**
|
|
3176
|
+
* Get all registered routes
|
|
3177
|
+
*/
|
|
3178
|
+
getAllRoutes(): Array<{
|
|
3179
|
+
template: string;
|
|
3180
|
+
data: T;
|
|
3181
|
+
}>;
|
|
3182
|
+
private collectRoutes;
|
|
3183
|
+
}
|
|
3184
|
+
//#endregion
|
|
3185
|
+
export { BindingContext, CompiledMapping, Defaults, ExpressionBinder, HttpRequest, MappingCompiler, MappingConfig, MappingParseError, MappingParser, Operation, OperationType, ParsedExpression, PartialMappingConfig, PathMatchResult, PathResolver, PathTemplate, Pipe, Projector, ResolvedRoute, RouteDefinition, type Transform, TransformEntry, defaultsSchema, mappingConfigSchema, operationSchema, partialMappingConfigSchema, routeDefinitionSchema, transformEntrySchema, transformSchema };
|
|
3186
|
+
//# sourceMappingURL=index.d.mts.map
|