capman 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CODEBASE.md +6 -5
  2. package/dist/cjs/cache.d.ts +9 -0
  3. package/dist/cjs/cache.d.ts.map +1 -1
  4. package/dist/cjs/cache.js +37 -7
  5. package/dist/cjs/cache.js.map +1 -1
  6. package/dist/cjs/concurrent.d.ts +53 -0
  7. package/dist/cjs/concurrent.d.ts.map +1 -0
  8. package/dist/cjs/concurrent.js +71 -0
  9. package/dist/cjs/concurrent.js.map +1 -0
  10. package/dist/cjs/engine.d.ts +92 -7
  11. package/dist/cjs/engine.d.ts.map +1 -1
  12. package/dist/cjs/engine.js +269 -57
  13. package/dist/cjs/engine.js.map +1 -1
  14. package/dist/cjs/generator.d.ts.map +1 -1
  15. package/dist/cjs/generator.js +28 -6
  16. package/dist/cjs/generator.js.map +1 -1
  17. package/dist/cjs/index.d.ts +3 -1
  18. package/dist/cjs/index.d.ts.map +1 -1
  19. package/dist/cjs/index.js +5 -1
  20. package/dist/cjs/index.js.map +1 -1
  21. package/dist/cjs/learning.d.ts +16 -1
  22. package/dist/cjs/learning.d.ts.map +1 -1
  23. package/dist/cjs/learning.js +95 -14
  24. package/dist/cjs/learning.js.map +1 -1
  25. package/dist/cjs/matcher.d.ts +51 -2
  26. package/dist/cjs/matcher.d.ts.map +1 -1
  27. package/dist/cjs/matcher.js +173 -33
  28. package/dist/cjs/matcher.js.map +1 -1
  29. package/dist/cjs/parser.js +27 -9
  30. package/dist/cjs/parser.js.map +1 -1
  31. package/dist/cjs/resolver.d.ts +2 -2
  32. package/dist/cjs/resolver.d.ts.map +1 -1
  33. package/dist/cjs/resolver.js +66 -26
  34. package/dist/cjs/resolver.js.map +1 -1
  35. package/dist/cjs/schema.d.ts +821 -68
  36. package/dist/cjs/schema.d.ts.map +1 -1
  37. package/dist/cjs/schema.js +62 -13
  38. package/dist/cjs/schema.js.map +1 -1
  39. package/dist/cjs/types.d.ts +156 -9
  40. package/dist/cjs/types.d.ts.map +1 -1
  41. package/dist/cjs/version.d.ts +1 -1
  42. package/dist/cjs/version.js +1 -1
  43. package/dist/esm/cache.d.ts +9 -0
  44. package/dist/esm/cache.js +37 -7
  45. package/dist/esm/concurrent.d.ts +52 -0
  46. package/dist/esm/concurrent.js +66 -0
  47. package/dist/esm/engine.d.ts +92 -7
  48. package/dist/esm/engine.js +270 -58
  49. package/dist/esm/generator.js +28 -6
  50. package/dist/esm/index.d.ts +3 -1
  51. package/dist/esm/index.js +2 -0
  52. package/dist/esm/learning.d.ts +16 -1
  53. package/dist/esm/learning.js +95 -14
  54. package/dist/esm/matcher.d.ts +51 -2
  55. package/dist/esm/matcher.js +170 -33
  56. package/dist/esm/parser.js +27 -9
  57. package/dist/esm/resolver.d.ts +2 -2
  58. package/dist/esm/resolver.js +66 -26
  59. package/dist/esm/schema.d.ts +821 -68
  60. package/dist/esm/schema.js +62 -13
  61. package/dist/esm/types.d.ts +156 -9
  62. package/dist/esm/version.d.ts +1 -1
  63. package/dist/esm/version.js +1 -1
  64. package/package.json +1 -1
@@ -2,61 +2,172 @@ import { z } from 'zod';
2
2
  export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
3
3
  app: z.ZodString;
4
4
  baseUrl: z.ZodOptional<z.ZodString>;
5
+ info: z.ZodOptional<z.ZodObject<{
6
+ title: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ version: z.ZodOptional<z.ZodString>;
9
+ homepage: z.ZodOptional<z.ZodString>;
10
+ contact: z.ZodOptional<z.ZodObject<{
11
+ name: z.ZodOptional<z.ZodString>;
12
+ email: z.ZodOptional<z.ZodString>;
13
+ url: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name?: string | undefined;
16
+ email?: string | undefined;
17
+ url?: string | undefined;
18
+ }, {
19
+ name?: string | undefined;
20
+ email?: string | undefined;
21
+ url?: string | undefined;
22
+ }>>;
23
+ license: z.ZodOptional<z.ZodObject<{
24
+ name: z.ZodString;
25
+ url: z.ZodOptional<z.ZodString>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ name: string;
28
+ url?: string | undefined;
29
+ }, {
30
+ name: string;
31
+ url?: string | undefined;
32
+ }>>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ description?: string | undefined;
35
+ version?: string | undefined;
36
+ title?: string | undefined;
37
+ homepage?: string | undefined;
38
+ contact?: {
39
+ name?: string | undefined;
40
+ email?: string | undefined;
41
+ url?: string | undefined;
42
+ } | undefined;
43
+ license?: {
44
+ name: string;
45
+ url?: string | undefined;
46
+ } | undefined;
47
+ }, {
48
+ description?: string | undefined;
49
+ version?: string | undefined;
50
+ title?: string | undefined;
51
+ homepage?: string | undefined;
52
+ contact?: {
53
+ name?: string | undefined;
54
+ email?: string | undefined;
55
+ url?: string | undefined;
56
+ } | undefined;
57
+ license?: {
58
+ name: string;
59
+ url?: string | undefined;
60
+ } | undefined;
61
+ }>>;
62
+ servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ url: z.ZodString;
64
+ description: z.ZodOptional<z.ZodString>;
65
+ environment: z.ZodOptional<z.ZodString>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ url: string;
68
+ description?: string | undefined;
69
+ environment?: string | undefined;
70
+ }, {
71
+ url: string;
72
+ description?: string | undefined;
73
+ environment?: string | undefined;
74
+ }>, "many">>;
75
+ tagRegistry: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
76
+ description: z.ZodString;
77
+ }, "strip", z.ZodTypeAny, {
78
+ description: string;
79
+ }, {
80
+ description: string;
81
+ }>>>;
5
82
  capabilities: z.ZodEffects<z.ZodArray<z.ZodObject<{
6
83
  id: z.ZodString;
7
84
  name: z.ZodString;
8
85
  description: z.ZodString;
9
86
  examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
- params: z.ZodArray<z.ZodObject<{
87
+ params: z.ZodArray<z.ZodEffects<z.ZodObject<{
11
88
  name: z.ZodString;
12
89
  description: z.ZodString;
13
90
  required: z.ZodBoolean;
14
91
  source: z.ZodEnum<["user_query", "session"]>;
15
- default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
16
92
  pattern: z.ZodOptional<z.ZodString>;
93
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "boolean", "date", "email", "url", "enum", "object"]>>;
94
+ enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
+ example: z.ZodOptional<z.ZodString>;
17
96
  }, "strip", z.ZodTypeAny, {
18
97
  name: string;
19
98
  description: string;
20
99
  required: boolean;
21
100
  source: "user_query" | "session";
22
- default?: string | number | boolean | undefined;
101
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
102
+ enum?: string[] | undefined;
23
103
  pattern?: string | undefined;
104
+ example?: string | undefined;
24
105
  }, {
25
106
  name: string;
26
107
  description: string;
27
108
  required: boolean;
28
109
  source: "user_query" | "session";
29
- default?: string | number | boolean | undefined;
110
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
111
+ enum?: string[] | undefined;
112
+ pattern?: string | undefined;
113
+ example?: string | undefined;
114
+ }>, {
115
+ name: string;
116
+ description: string;
117
+ required: boolean;
118
+ source: "user_query" | "session";
119
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
120
+ enum?: string[] | undefined;
30
121
  pattern?: string | undefined;
122
+ example?: string | undefined;
123
+ }, {
124
+ name: string;
125
+ description: string;
126
+ required: boolean;
127
+ source: "user_query" | "session";
128
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
129
+ enum?: string[] | undefined;
130
+ pattern?: string | undefined;
131
+ example?: string | undefined;
31
132
  }>, "many">;
32
133
  returns: z.ZodArray<z.ZodString, "many">;
33
134
  resolver: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
34
135
  type: z.ZodLiteral<"api">;
35
136
  endpoints: z.ZodArray<z.ZodObject<{
36
- method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
137
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
37
138
  path: z.ZodString;
38
139
  params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
140
+ idempotent: z.ZodOptional<z.ZodBoolean>;
141
+ idempotencyKey: z.ZodOptional<z.ZodString>;
39
142
  }, "strip", z.ZodTypeAny, {
40
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
143
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
41
144
  path: string;
145
+ idempotent?: boolean | undefined;
146
+ idempotencyKey?: string | undefined;
42
147
  params?: string[] | undefined;
43
148
  }, {
44
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
149
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
45
150
  path: string;
151
+ idempotent?: boolean | undefined;
152
+ idempotencyKey?: string | undefined;
46
153
  params?: string[] | undefined;
47
154
  }>, "many">;
48
155
  }, "strip", z.ZodTypeAny, {
49
156
  type: "api";
50
157
  endpoints: {
51
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
158
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
52
159
  path: string;
160
+ idempotent?: boolean | undefined;
161
+ idempotencyKey?: string | undefined;
53
162
  params?: string[] | undefined;
54
163
  }[];
55
164
  }, {
56
165
  type: "api";
57
166
  endpoints: {
58
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
167
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
59
168
  path: string;
169
+ idempotent?: boolean | undefined;
170
+ idempotencyKey?: string | undefined;
60
171
  params?: string[] | undefined;
61
172
  }[];
62
173
  }>, z.ZodObject<{
@@ -75,28 +186,38 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
75
186
  type: z.ZodLiteral<"hybrid">;
76
187
  api: z.ZodObject<{
77
188
  endpoints: z.ZodArray<z.ZodObject<{
78
- method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
189
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
79
190
  path: z.ZodString;
80
191
  params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
192
+ idempotent: z.ZodOptional<z.ZodBoolean>;
193
+ idempotencyKey: z.ZodOptional<z.ZodString>;
81
194
  }, "strip", z.ZodTypeAny, {
82
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
195
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
83
196
  path: string;
197
+ idempotent?: boolean | undefined;
198
+ idempotencyKey?: string | undefined;
84
199
  params?: string[] | undefined;
85
200
  }, {
86
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
201
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
87
202
  path: string;
203
+ idempotent?: boolean | undefined;
204
+ idempotencyKey?: string | undefined;
88
205
  params?: string[] | undefined;
89
206
  }>, "many">;
90
207
  }, "strip", z.ZodTypeAny, {
91
208
  endpoints: {
92
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
209
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
93
210
  path: string;
211
+ idempotent?: boolean | undefined;
212
+ idempotencyKey?: string | undefined;
94
213
  params?: string[] | undefined;
95
214
  }[];
96
215
  }, {
97
216
  endpoints: {
98
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
217
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
99
218
  path: string;
219
+ idempotent?: boolean | undefined;
220
+ idempotencyKey?: string | undefined;
100
221
  params?: string[] | undefined;
101
222
  }[];
102
223
  }>;
@@ -114,8 +235,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
114
235
  type: "hybrid";
115
236
  api: {
116
237
  endpoints: {
117
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
238
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
118
239
  path: string;
240
+ idempotent?: boolean | undefined;
241
+ idempotencyKey?: string | undefined;
119
242
  params?: string[] | undefined;
120
243
  }[];
121
244
  };
@@ -127,8 +250,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
127
250
  type: "hybrid";
128
251
  api: {
129
252
  endpoints: {
130
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
253
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
131
254
  path: string;
255
+ idempotent?: boolean | undefined;
256
+ idempotencyKey?: string | undefined;
132
257
  params?: string[] | undefined;
133
258
  }[];
134
259
  };
@@ -147,6 +272,49 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
147
272
  level: "public" | "user_owned" | "admin";
148
273
  note?: string | undefined;
149
274
  }>;
275
+ lifecycle: z.ZodOptional<z.ZodObject<{
276
+ status: z.ZodEnum<["stable", "beta", "experimental", "deprecated"]>;
277
+ deprecatedAt: z.ZodOptional<z.ZodString>;
278
+ sunsetAt: z.ZodOptional<z.ZodString>;
279
+ successor: z.ZodOptional<z.ZodString>;
280
+ note: z.ZodOptional<z.ZodString>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ status: "stable" | "beta" | "experimental" | "deprecated";
283
+ sunsetAt?: string | undefined;
284
+ successor?: string | undefined;
285
+ note?: string | undefined;
286
+ deprecatedAt?: string | undefined;
287
+ }, {
288
+ status: "stable" | "beta" | "experimental" | "deprecated";
289
+ sunsetAt?: string | undefined;
290
+ successor?: string | undefined;
291
+ note?: string | undefined;
292
+ deprecatedAt?: string | undefined;
293
+ }>>;
294
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
295
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
296
+ code: z.ZodString;
297
+ description: z.ZodString;
298
+ httpStatus: z.ZodOptional<z.ZodNumber>;
299
+ retryable: z.ZodOptional<z.ZodBoolean>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ code: string;
302
+ description: string;
303
+ httpStatus?: number | undefined;
304
+ retryable?: boolean | undefined;
305
+ }, {
306
+ code: string;
307
+ description: string;
308
+ httpStatus?: number | undefined;
309
+ retryable?: boolean | undefined;
310
+ }>, "many">>;
311
+ matchHint: z.ZodOptional<z.ZodObject<{
312
+ preferredMode: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "accurate"]>>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
315
+ }, {
316
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
317
+ }>>;
150
318
  }, "strip", z.ZodTypeAny, {
151
319
  name: string;
152
320
  id: string;
@@ -156,15 +324,19 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
156
324
  description: string;
157
325
  required: boolean;
158
326
  source: "user_query" | "session";
159
- default?: string | number | boolean | undefined;
327
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
328
+ enum?: string[] | undefined;
160
329
  pattern?: string | undefined;
330
+ example?: string | undefined;
161
331
  }[];
162
332
  returns: string[];
163
333
  resolver: {
164
334
  type: "api";
165
335
  endpoints: {
166
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
336
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
167
337
  path: string;
338
+ idempotent?: boolean | undefined;
339
+ idempotencyKey?: string | undefined;
168
340
  params?: string[] | undefined;
169
341
  }[];
170
342
  } | {
@@ -175,8 +347,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
175
347
  type: "hybrid";
176
348
  api: {
177
349
  endpoints: {
178
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
350
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
179
351
  path: string;
352
+ idempotent?: boolean | undefined;
353
+ idempotencyKey?: string | undefined;
180
354
  params?: string[] | undefined;
181
355
  }[];
182
356
  };
@@ -190,6 +364,23 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
190
364
  note?: string | undefined;
191
365
  };
192
366
  examples?: string[] | undefined;
367
+ lifecycle?: {
368
+ status: "stable" | "beta" | "experimental" | "deprecated";
369
+ sunsetAt?: string | undefined;
370
+ successor?: string | undefined;
371
+ note?: string | undefined;
372
+ deprecatedAt?: string | undefined;
373
+ } | undefined;
374
+ tags?: string[] | undefined;
375
+ errors?: {
376
+ code: string;
377
+ description: string;
378
+ httpStatus?: number | undefined;
379
+ retryable?: boolean | undefined;
380
+ }[] | undefined;
381
+ matchHint?: {
382
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
383
+ } | undefined;
193
384
  }, {
194
385
  name: string;
195
386
  id: string;
@@ -199,15 +390,19 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
199
390
  description: string;
200
391
  required: boolean;
201
392
  source: "user_query" | "session";
202
- default?: string | number | boolean | undefined;
393
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
394
+ enum?: string[] | undefined;
203
395
  pattern?: string | undefined;
396
+ example?: string | undefined;
204
397
  }[];
205
398
  returns: string[];
206
399
  resolver: {
207
400
  type: "api";
208
401
  endpoints: {
209
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
402
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
210
403
  path: string;
404
+ idempotent?: boolean | undefined;
405
+ idempotencyKey?: string | undefined;
211
406
  params?: string[] | undefined;
212
407
  }[];
213
408
  } | {
@@ -218,8 +413,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
218
413
  type: "hybrid";
219
414
  api: {
220
415
  endpoints: {
221
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
416
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
222
417
  path: string;
418
+ idempotent?: boolean | undefined;
419
+ idempotencyKey?: string | undefined;
223
420
  params?: string[] | undefined;
224
421
  }[];
225
422
  };
@@ -233,6 +430,23 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
233
430
  note?: string | undefined;
234
431
  };
235
432
  examples?: string[] | undefined;
433
+ lifecycle?: {
434
+ status: "stable" | "beta" | "experimental" | "deprecated";
435
+ sunsetAt?: string | undefined;
436
+ successor?: string | undefined;
437
+ note?: string | undefined;
438
+ deprecatedAt?: string | undefined;
439
+ } | undefined;
440
+ tags?: string[] | undefined;
441
+ errors?: {
442
+ code: string;
443
+ description: string;
444
+ httpStatus?: number | undefined;
445
+ retryable?: boolean | undefined;
446
+ }[] | undefined;
447
+ matchHint?: {
448
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
449
+ } | undefined;
236
450
  }>, "many">, {
237
451
  name: string;
238
452
  id: string;
@@ -242,15 +456,19 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
242
456
  description: string;
243
457
  required: boolean;
244
458
  source: "user_query" | "session";
245
- default?: string | number | boolean | undefined;
459
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
460
+ enum?: string[] | undefined;
246
461
  pattern?: string | undefined;
462
+ example?: string | undefined;
247
463
  }[];
248
464
  returns: string[];
249
465
  resolver: {
250
466
  type: "api";
251
467
  endpoints: {
252
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
468
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
253
469
  path: string;
470
+ idempotent?: boolean | undefined;
471
+ idempotencyKey?: string | undefined;
254
472
  params?: string[] | undefined;
255
473
  }[];
256
474
  } | {
@@ -261,8 +479,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
261
479
  type: "hybrid";
262
480
  api: {
263
481
  endpoints: {
264
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
482
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
265
483
  path: string;
484
+ idempotent?: boolean | undefined;
485
+ idempotencyKey?: string | undefined;
266
486
  params?: string[] | undefined;
267
487
  }[];
268
488
  };
@@ -276,6 +496,23 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
276
496
  note?: string | undefined;
277
497
  };
278
498
  examples?: string[] | undefined;
499
+ lifecycle?: {
500
+ status: "stable" | "beta" | "experimental" | "deprecated";
501
+ sunsetAt?: string | undefined;
502
+ successor?: string | undefined;
503
+ note?: string | undefined;
504
+ deprecatedAt?: string | undefined;
505
+ } | undefined;
506
+ tags?: string[] | undefined;
507
+ errors?: {
508
+ code: string;
509
+ description: string;
510
+ httpStatus?: number | undefined;
511
+ retryable?: boolean | undefined;
512
+ }[] | undefined;
513
+ matchHint?: {
514
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
515
+ } | undefined;
279
516
  }[], {
280
517
  name: string;
281
518
  id: string;
@@ -285,15 +522,19 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
285
522
  description: string;
286
523
  required: boolean;
287
524
  source: "user_query" | "session";
288
- default?: string | number | boolean | undefined;
525
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
526
+ enum?: string[] | undefined;
289
527
  pattern?: string | undefined;
528
+ example?: string | undefined;
290
529
  }[];
291
530
  returns: string[];
292
531
  resolver: {
293
532
  type: "api";
294
533
  endpoints: {
295
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
534
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
296
535
  path: string;
536
+ idempotent?: boolean | undefined;
537
+ idempotencyKey?: string | undefined;
297
538
  params?: string[] | undefined;
298
539
  }[];
299
540
  } | {
@@ -304,8 +545,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
304
545
  type: "hybrid";
305
546
  api: {
306
547
  endpoints: {
307
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
548
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
308
549
  path: string;
550
+ idempotent?: boolean | undefined;
551
+ idempotencyKey?: string | undefined;
309
552
  params?: string[] | undefined;
310
553
  }[];
311
554
  };
@@ -319,6 +562,23 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
319
562
  note?: string | undefined;
320
563
  };
321
564
  examples?: string[] | undefined;
565
+ lifecycle?: {
566
+ status: "stable" | "beta" | "experimental" | "deprecated";
567
+ sunsetAt?: string | undefined;
568
+ successor?: string | undefined;
569
+ note?: string | undefined;
570
+ deprecatedAt?: string | undefined;
571
+ } | undefined;
572
+ tags?: string[] | undefined;
573
+ errors?: {
574
+ code: string;
575
+ description: string;
576
+ httpStatus?: number | undefined;
577
+ retryable?: boolean | undefined;
578
+ }[] | undefined;
579
+ matchHint?: {
580
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
581
+ } | undefined;
322
582
  }[]>;
323
583
  }, "strip", z.ZodTypeAny, {
324
584
  app: string;
@@ -331,15 +591,19 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
331
591
  description: string;
332
592
  required: boolean;
333
593
  source: "user_query" | "session";
334
- default?: string | number | boolean | undefined;
594
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
595
+ enum?: string[] | undefined;
335
596
  pattern?: string | undefined;
597
+ example?: string | undefined;
336
598
  }[];
337
599
  returns: string[];
338
600
  resolver: {
339
601
  type: "api";
340
602
  endpoints: {
341
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
603
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
342
604
  path: string;
605
+ idempotent?: boolean | undefined;
606
+ idempotencyKey?: string | undefined;
343
607
  params?: string[] | undefined;
344
608
  }[];
345
609
  } | {
@@ -350,8 +614,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
350
614
  type: "hybrid";
351
615
  api: {
352
616
  endpoints: {
353
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
617
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
354
618
  path: string;
619
+ idempotent?: boolean | undefined;
620
+ idempotencyKey?: string | undefined;
355
621
  params?: string[] | undefined;
356
622
  }[];
357
623
  };
@@ -365,8 +631,48 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
365
631
  note?: string | undefined;
366
632
  };
367
633
  examples?: string[] | undefined;
634
+ lifecycle?: {
635
+ status: "stable" | "beta" | "experimental" | "deprecated";
636
+ sunsetAt?: string | undefined;
637
+ successor?: string | undefined;
638
+ note?: string | undefined;
639
+ deprecatedAt?: string | undefined;
640
+ } | undefined;
641
+ tags?: string[] | undefined;
642
+ errors?: {
643
+ code: string;
644
+ description: string;
645
+ httpStatus?: number | undefined;
646
+ retryable?: boolean | undefined;
647
+ }[] | undefined;
648
+ matchHint?: {
649
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
650
+ } | undefined;
368
651
  }[];
652
+ info?: {
653
+ description?: string | undefined;
654
+ version?: string | undefined;
655
+ title?: string | undefined;
656
+ homepage?: string | undefined;
657
+ contact?: {
658
+ name?: string | undefined;
659
+ email?: string | undefined;
660
+ url?: string | undefined;
661
+ } | undefined;
662
+ license?: {
663
+ name: string;
664
+ url?: string | undefined;
665
+ } | undefined;
666
+ } | undefined;
369
667
  baseUrl?: string | undefined;
668
+ servers?: {
669
+ url: string;
670
+ description?: string | undefined;
671
+ environment?: string | undefined;
672
+ }[] | undefined;
673
+ tagRegistry?: Record<string, {
674
+ description: string;
675
+ }> | undefined;
370
676
  }, {
371
677
  app: string;
372
678
  capabilities: {
@@ -378,15 +684,19 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
378
684
  description: string;
379
685
  required: boolean;
380
686
  source: "user_query" | "session";
381
- default?: string | number | boolean | undefined;
687
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
688
+ enum?: string[] | undefined;
382
689
  pattern?: string | undefined;
690
+ example?: string | undefined;
383
691
  }[];
384
692
  returns: string[];
385
693
  resolver: {
386
694
  type: "api";
387
695
  endpoints: {
388
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
696
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
389
697
  path: string;
698
+ idempotent?: boolean | undefined;
699
+ idempotencyKey?: string | undefined;
390
700
  params?: string[] | undefined;
391
701
  }[];
392
702
  } | {
@@ -397,8 +707,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
397
707
  type: "hybrid";
398
708
  api: {
399
709
  endpoints: {
400
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
710
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
401
711
  path: string;
712
+ idempotent?: boolean | undefined;
713
+ idempotencyKey?: string | undefined;
402
714
  params?: string[] | undefined;
403
715
  }[];
404
716
  };
@@ -412,8 +724,48 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
412
724
  note?: string | undefined;
413
725
  };
414
726
  examples?: string[] | undefined;
727
+ lifecycle?: {
728
+ status: "stable" | "beta" | "experimental" | "deprecated";
729
+ sunsetAt?: string | undefined;
730
+ successor?: string | undefined;
731
+ note?: string | undefined;
732
+ deprecatedAt?: string | undefined;
733
+ } | undefined;
734
+ tags?: string[] | undefined;
735
+ errors?: {
736
+ code: string;
737
+ description: string;
738
+ httpStatus?: number | undefined;
739
+ retryable?: boolean | undefined;
740
+ }[] | undefined;
741
+ matchHint?: {
742
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
743
+ } | undefined;
415
744
  }[];
745
+ info?: {
746
+ description?: string | undefined;
747
+ version?: string | undefined;
748
+ title?: string | undefined;
749
+ homepage?: string | undefined;
750
+ contact?: {
751
+ name?: string | undefined;
752
+ email?: string | undefined;
753
+ url?: string | undefined;
754
+ } | undefined;
755
+ license?: {
756
+ name: string;
757
+ url?: string | undefined;
758
+ } | undefined;
759
+ } | undefined;
416
760
  baseUrl?: string | undefined;
761
+ servers?: {
762
+ url: string;
763
+ description?: string | undefined;
764
+ environment?: string | undefined;
765
+ }[] | undefined;
766
+ tagRegistry?: Record<string, {
767
+ description: string;
768
+ }> | undefined;
417
769
  }>, {
418
770
  app: string;
419
771
  capabilities: {
@@ -425,15 +777,19 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
425
777
  description: string;
426
778
  required: boolean;
427
779
  source: "user_query" | "session";
428
- default?: string | number | boolean | undefined;
780
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
781
+ enum?: string[] | undefined;
429
782
  pattern?: string | undefined;
783
+ example?: string | undefined;
430
784
  }[];
431
785
  returns: string[];
432
786
  resolver: {
433
787
  type: "api";
434
788
  endpoints: {
435
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
789
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
436
790
  path: string;
791
+ idempotent?: boolean | undefined;
792
+ idempotencyKey?: string | undefined;
437
793
  params?: string[] | undefined;
438
794
  }[];
439
795
  } | {
@@ -444,8 +800,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
444
800
  type: "hybrid";
445
801
  api: {
446
802
  endpoints: {
447
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
803
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
448
804
  path: string;
805
+ idempotent?: boolean | undefined;
806
+ idempotencyKey?: string | undefined;
449
807
  params?: string[] | undefined;
450
808
  }[];
451
809
  };
@@ -459,8 +817,48 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
459
817
  note?: string | undefined;
460
818
  };
461
819
  examples?: string[] | undefined;
820
+ lifecycle?: {
821
+ status: "stable" | "beta" | "experimental" | "deprecated";
822
+ sunsetAt?: string | undefined;
823
+ successor?: string | undefined;
824
+ note?: string | undefined;
825
+ deprecatedAt?: string | undefined;
826
+ } | undefined;
827
+ tags?: string[] | undefined;
828
+ errors?: {
829
+ code: string;
830
+ description: string;
831
+ httpStatus?: number | undefined;
832
+ retryable?: boolean | undefined;
833
+ }[] | undefined;
834
+ matchHint?: {
835
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
836
+ } | undefined;
462
837
  }[];
838
+ info?: {
839
+ description?: string | undefined;
840
+ version?: string | undefined;
841
+ title?: string | undefined;
842
+ homepage?: string | undefined;
843
+ contact?: {
844
+ name?: string | undefined;
845
+ email?: string | undefined;
846
+ url?: string | undefined;
847
+ } | undefined;
848
+ license?: {
849
+ name: string;
850
+ url?: string | undefined;
851
+ } | undefined;
852
+ } | undefined;
463
853
  baseUrl?: string | undefined;
854
+ servers?: {
855
+ url: string;
856
+ description?: string | undefined;
857
+ environment?: string | undefined;
858
+ }[] | undefined;
859
+ tagRegistry?: Record<string, {
860
+ description: string;
861
+ }> | undefined;
464
862
  }, {
465
863
  app: string;
466
864
  capabilities: {
@@ -472,15 +870,19 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
472
870
  description: string;
473
871
  required: boolean;
474
872
  source: "user_query" | "session";
475
- default?: string | number | boolean | undefined;
873
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
874
+ enum?: string[] | undefined;
476
875
  pattern?: string | undefined;
876
+ example?: string | undefined;
477
877
  }[];
478
878
  returns: string[];
479
879
  resolver: {
480
880
  type: "api";
481
881
  endpoints: {
482
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
882
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
483
883
  path: string;
884
+ idempotent?: boolean | undefined;
885
+ idempotencyKey?: string | undefined;
484
886
  params?: string[] | undefined;
485
887
  }[];
486
888
  } | {
@@ -491,8 +893,10 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
491
893
  type: "hybrid";
492
894
  api: {
493
895
  endpoints: {
494
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
896
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
495
897
  path: string;
898
+ idempotent?: boolean | undefined;
899
+ idempotencyKey?: string | undefined;
496
900
  params?: string[] | undefined;
497
901
  }[];
498
902
  };
@@ -506,10 +910,51 @@ export declare const CapmanConfigSchema: z.ZodEffects<z.ZodObject<{
506
910
  note?: string | undefined;
507
911
  };
508
912
  examples?: string[] | undefined;
913
+ lifecycle?: {
914
+ status: "stable" | "beta" | "experimental" | "deprecated";
915
+ sunsetAt?: string | undefined;
916
+ successor?: string | undefined;
917
+ note?: string | undefined;
918
+ deprecatedAt?: string | undefined;
919
+ } | undefined;
920
+ tags?: string[] | undefined;
921
+ errors?: {
922
+ code: string;
923
+ description: string;
924
+ httpStatus?: number | undefined;
925
+ retryable?: boolean | undefined;
926
+ }[] | undefined;
927
+ matchHint?: {
928
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
929
+ } | undefined;
509
930
  }[];
931
+ info?: {
932
+ description?: string | undefined;
933
+ version?: string | undefined;
934
+ title?: string | undefined;
935
+ homepage?: string | undefined;
936
+ contact?: {
937
+ name?: string | undefined;
938
+ email?: string | undefined;
939
+ url?: string | undefined;
940
+ } | undefined;
941
+ license?: {
942
+ name: string;
943
+ url?: string | undefined;
944
+ } | undefined;
945
+ } | undefined;
510
946
  baseUrl?: string | undefined;
947
+ servers?: {
948
+ url: string;
949
+ description?: string | undefined;
950
+ environment?: string | undefined;
951
+ }[] | undefined;
952
+ tagRegistry?: Record<string, {
953
+ description: string;
954
+ }> | undefined;
511
955
  }>;
512
956
  export declare const ManifestSchema: z.ZodObject<{
957
+ schemaVersion: z.ZodString;
513
958
  version: z.ZodString;
514
959
  app: z.ZodString;
515
960
  generatedAt: z.ZodString;
@@ -518,56 +963,90 @@ export declare const ManifestSchema: z.ZodObject<{
518
963
  name: z.ZodString;
519
964
  description: z.ZodString;
520
965
  examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
521
- params: z.ZodArray<z.ZodObject<{
966
+ params: z.ZodArray<z.ZodEffects<z.ZodObject<{
522
967
  name: z.ZodString;
523
968
  description: z.ZodString;
524
969
  required: z.ZodBoolean;
525
970
  source: z.ZodEnum<["user_query", "session"]>;
526
- default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
527
971
  pattern: z.ZodOptional<z.ZodString>;
972
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "boolean", "date", "email", "url", "enum", "object"]>>;
973
+ enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
974
+ example: z.ZodOptional<z.ZodString>;
528
975
  }, "strip", z.ZodTypeAny, {
529
976
  name: string;
530
977
  description: string;
531
978
  required: boolean;
532
979
  source: "user_query" | "session";
533
- default?: string | number | boolean | undefined;
980
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
981
+ enum?: string[] | undefined;
982
+ pattern?: string | undefined;
983
+ example?: string | undefined;
984
+ }, {
985
+ name: string;
986
+ description: string;
987
+ required: boolean;
988
+ source: "user_query" | "session";
989
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
990
+ enum?: string[] | undefined;
991
+ pattern?: string | undefined;
992
+ example?: string | undefined;
993
+ }>, {
994
+ name: string;
995
+ description: string;
996
+ required: boolean;
997
+ source: "user_query" | "session";
998
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
999
+ enum?: string[] | undefined;
534
1000
  pattern?: string | undefined;
1001
+ example?: string | undefined;
535
1002
  }, {
536
1003
  name: string;
537
1004
  description: string;
538
1005
  required: boolean;
539
1006
  source: "user_query" | "session";
540
- default?: string | number | boolean | undefined;
1007
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
1008
+ enum?: string[] | undefined;
541
1009
  pattern?: string | undefined;
1010
+ example?: string | undefined;
542
1011
  }>, "many">;
543
1012
  returns: z.ZodArray<z.ZodString, "many">;
544
1013
  resolver: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
545
1014
  type: z.ZodLiteral<"api">;
546
1015
  endpoints: z.ZodArray<z.ZodObject<{
547
- method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
1016
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
548
1017
  path: z.ZodString;
549
1018
  params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1019
+ idempotent: z.ZodOptional<z.ZodBoolean>;
1020
+ idempotencyKey: z.ZodOptional<z.ZodString>;
550
1021
  }, "strip", z.ZodTypeAny, {
551
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1022
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
552
1023
  path: string;
1024
+ idempotent?: boolean | undefined;
1025
+ idempotencyKey?: string | undefined;
553
1026
  params?: string[] | undefined;
554
1027
  }, {
555
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1028
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
556
1029
  path: string;
1030
+ idempotent?: boolean | undefined;
1031
+ idempotencyKey?: string | undefined;
557
1032
  params?: string[] | undefined;
558
1033
  }>, "many">;
559
1034
  }, "strip", z.ZodTypeAny, {
560
1035
  type: "api";
561
1036
  endpoints: {
562
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1037
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
563
1038
  path: string;
1039
+ idempotent?: boolean | undefined;
1040
+ idempotencyKey?: string | undefined;
564
1041
  params?: string[] | undefined;
565
1042
  }[];
566
1043
  }, {
567
1044
  type: "api";
568
1045
  endpoints: {
569
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1046
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
570
1047
  path: string;
1048
+ idempotent?: boolean | undefined;
1049
+ idempotencyKey?: string | undefined;
571
1050
  params?: string[] | undefined;
572
1051
  }[];
573
1052
  }>, z.ZodObject<{
@@ -586,28 +1065,38 @@ export declare const ManifestSchema: z.ZodObject<{
586
1065
  type: z.ZodLiteral<"hybrid">;
587
1066
  api: z.ZodObject<{
588
1067
  endpoints: z.ZodArray<z.ZodObject<{
589
- method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
1068
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
590
1069
  path: z.ZodString;
591
1070
  params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1071
+ idempotent: z.ZodOptional<z.ZodBoolean>;
1072
+ idempotencyKey: z.ZodOptional<z.ZodString>;
592
1073
  }, "strip", z.ZodTypeAny, {
593
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1074
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
594
1075
  path: string;
1076
+ idempotent?: boolean | undefined;
1077
+ idempotencyKey?: string | undefined;
595
1078
  params?: string[] | undefined;
596
1079
  }, {
597
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1080
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
598
1081
  path: string;
1082
+ idempotent?: boolean | undefined;
1083
+ idempotencyKey?: string | undefined;
599
1084
  params?: string[] | undefined;
600
1085
  }>, "many">;
601
1086
  }, "strip", z.ZodTypeAny, {
602
1087
  endpoints: {
603
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1088
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
604
1089
  path: string;
1090
+ idempotent?: boolean | undefined;
1091
+ idempotencyKey?: string | undefined;
605
1092
  params?: string[] | undefined;
606
1093
  }[];
607
1094
  }, {
608
1095
  endpoints: {
609
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1096
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
610
1097
  path: string;
1098
+ idempotent?: boolean | undefined;
1099
+ idempotencyKey?: string | undefined;
611
1100
  params?: string[] | undefined;
612
1101
  }[];
613
1102
  }>;
@@ -625,8 +1114,10 @@ export declare const ManifestSchema: z.ZodObject<{
625
1114
  type: "hybrid";
626
1115
  api: {
627
1116
  endpoints: {
628
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1117
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
629
1118
  path: string;
1119
+ idempotent?: boolean | undefined;
1120
+ idempotencyKey?: string | undefined;
630
1121
  params?: string[] | undefined;
631
1122
  }[];
632
1123
  };
@@ -638,8 +1129,10 @@ export declare const ManifestSchema: z.ZodObject<{
638
1129
  type: "hybrid";
639
1130
  api: {
640
1131
  endpoints: {
641
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1132
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
642
1133
  path: string;
1134
+ idempotent?: boolean | undefined;
1135
+ idempotencyKey?: string | undefined;
643
1136
  params?: string[] | undefined;
644
1137
  }[];
645
1138
  };
@@ -658,6 +1151,49 @@ export declare const ManifestSchema: z.ZodObject<{
658
1151
  level: "public" | "user_owned" | "admin";
659
1152
  note?: string | undefined;
660
1153
  }>;
1154
+ lifecycle: z.ZodOptional<z.ZodObject<{
1155
+ status: z.ZodEnum<["stable", "beta", "experimental", "deprecated"]>;
1156
+ deprecatedAt: z.ZodOptional<z.ZodString>;
1157
+ sunsetAt: z.ZodOptional<z.ZodString>;
1158
+ successor: z.ZodOptional<z.ZodString>;
1159
+ note: z.ZodOptional<z.ZodString>;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ status: "stable" | "beta" | "experimental" | "deprecated";
1162
+ sunsetAt?: string | undefined;
1163
+ successor?: string | undefined;
1164
+ note?: string | undefined;
1165
+ deprecatedAt?: string | undefined;
1166
+ }, {
1167
+ status: "stable" | "beta" | "experimental" | "deprecated";
1168
+ sunsetAt?: string | undefined;
1169
+ successor?: string | undefined;
1170
+ note?: string | undefined;
1171
+ deprecatedAt?: string | undefined;
1172
+ }>>;
1173
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1174
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1175
+ code: z.ZodString;
1176
+ description: z.ZodString;
1177
+ httpStatus: z.ZodOptional<z.ZodNumber>;
1178
+ retryable: z.ZodOptional<z.ZodBoolean>;
1179
+ }, "strip", z.ZodTypeAny, {
1180
+ code: string;
1181
+ description: string;
1182
+ httpStatus?: number | undefined;
1183
+ retryable?: boolean | undefined;
1184
+ }, {
1185
+ code: string;
1186
+ description: string;
1187
+ httpStatus?: number | undefined;
1188
+ retryable?: boolean | undefined;
1189
+ }>, "many">>;
1190
+ matchHint: z.ZodOptional<z.ZodObject<{
1191
+ preferredMode: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "accurate"]>>;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
1194
+ }, {
1195
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
1196
+ }>>;
661
1197
  }, "strip", z.ZodTypeAny, {
662
1198
  name: string;
663
1199
  id: string;
@@ -667,15 +1203,19 @@ export declare const ManifestSchema: z.ZodObject<{
667
1203
  description: string;
668
1204
  required: boolean;
669
1205
  source: "user_query" | "session";
670
- default?: string | number | boolean | undefined;
1206
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
1207
+ enum?: string[] | undefined;
671
1208
  pattern?: string | undefined;
1209
+ example?: string | undefined;
672
1210
  }[];
673
1211
  returns: string[];
674
1212
  resolver: {
675
1213
  type: "api";
676
1214
  endpoints: {
677
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1215
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
678
1216
  path: string;
1217
+ idempotent?: boolean | undefined;
1218
+ idempotencyKey?: string | undefined;
679
1219
  params?: string[] | undefined;
680
1220
  }[];
681
1221
  } | {
@@ -686,8 +1226,10 @@ export declare const ManifestSchema: z.ZodObject<{
686
1226
  type: "hybrid";
687
1227
  api: {
688
1228
  endpoints: {
689
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1229
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
690
1230
  path: string;
1231
+ idempotent?: boolean | undefined;
1232
+ idempotencyKey?: string | undefined;
691
1233
  params?: string[] | undefined;
692
1234
  }[];
693
1235
  };
@@ -701,6 +1243,23 @@ export declare const ManifestSchema: z.ZodObject<{
701
1243
  note?: string | undefined;
702
1244
  };
703
1245
  examples?: string[] | undefined;
1246
+ lifecycle?: {
1247
+ status: "stable" | "beta" | "experimental" | "deprecated";
1248
+ sunsetAt?: string | undefined;
1249
+ successor?: string | undefined;
1250
+ note?: string | undefined;
1251
+ deprecatedAt?: string | undefined;
1252
+ } | undefined;
1253
+ tags?: string[] | undefined;
1254
+ errors?: {
1255
+ code: string;
1256
+ description: string;
1257
+ httpStatus?: number | undefined;
1258
+ retryable?: boolean | undefined;
1259
+ }[] | undefined;
1260
+ matchHint?: {
1261
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
1262
+ } | undefined;
704
1263
  }, {
705
1264
  name: string;
706
1265
  id: string;
@@ -710,15 +1269,19 @@ export declare const ManifestSchema: z.ZodObject<{
710
1269
  description: string;
711
1270
  required: boolean;
712
1271
  source: "user_query" | "session";
713
- default?: string | number | boolean | undefined;
1272
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
1273
+ enum?: string[] | undefined;
714
1274
  pattern?: string | undefined;
1275
+ example?: string | undefined;
715
1276
  }[];
716
1277
  returns: string[];
717
1278
  resolver: {
718
1279
  type: "api";
719
1280
  endpoints: {
720
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1281
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
721
1282
  path: string;
1283
+ idempotent?: boolean | undefined;
1284
+ idempotencyKey?: string | undefined;
722
1285
  params?: string[] | undefined;
723
1286
  }[];
724
1287
  } | {
@@ -729,8 +1292,10 @@ export declare const ManifestSchema: z.ZodObject<{
729
1292
  type: "hybrid";
730
1293
  api: {
731
1294
  endpoints: {
732
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1295
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
733
1296
  path: string;
1297
+ idempotent?: boolean | undefined;
1298
+ idempotencyKey?: string | undefined;
734
1299
  params?: string[] | undefined;
735
1300
  }[];
736
1301
  };
@@ -744,7 +1309,101 @@ export declare const ManifestSchema: z.ZodObject<{
744
1309
  note?: string | undefined;
745
1310
  };
746
1311
  examples?: string[] | undefined;
1312
+ lifecycle?: {
1313
+ status: "stable" | "beta" | "experimental" | "deprecated";
1314
+ sunsetAt?: string | undefined;
1315
+ successor?: string | undefined;
1316
+ note?: string | undefined;
1317
+ deprecatedAt?: string | undefined;
1318
+ } | undefined;
1319
+ tags?: string[] | undefined;
1320
+ errors?: {
1321
+ code: string;
1322
+ description: string;
1323
+ httpStatus?: number | undefined;
1324
+ retryable?: boolean | undefined;
1325
+ }[] | undefined;
1326
+ matchHint?: {
1327
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
1328
+ } | undefined;
747
1329
  }>, "many">;
1330
+ tagRegistry: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1331
+ description: z.ZodString;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ description: string;
1334
+ }, {
1335
+ description: string;
1336
+ }>>>;
1337
+ servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1338
+ url: z.ZodString;
1339
+ description: z.ZodOptional<z.ZodString>;
1340
+ environment: z.ZodOptional<z.ZodString>;
1341
+ }, "strip", z.ZodTypeAny, {
1342
+ url: string;
1343
+ description?: string | undefined;
1344
+ environment?: string | undefined;
1345
+ }, {
1346
+ url: string;
1347
+ description?: string | undefined;
1348
+ environment?: string | undefined;
1349
+ }>, "many">>;
1350
+ info: z.ZodOptional<z.ZodObject<{
1351
+ title: z.ZodOptional<z.ZodString>;
1352
+ description: z.ZodOptional<z.ZodString>;
1353
+ version: z.ZodOptional<z.ZodString>;
1354
+ homepage: z.ZodOptional<z.ZodString>;
1355
+ contact: z.ZodOptional<z.ZodObject<{
1356
+ name: z.ZodOptional<z.ZodString>;
1357
+ email: z.ZodOptional<z.ZodString>;
1358
+ url: z.ZodOptional<z.ZodString>;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ name?: string | undefined;
1361
+ email?: string | undefined;
1362
+ url?: string | undefined;
1363
+ }, {
1364
+ name?: string | undefined;
1365
+ email?: string | undefined;
1366
+ url?: string | undefined;
1367
+ }>>;
1368
+ license: z.ZodOptional<z.ZodObject<{
1369
+ name: z.ZodString;
1370
+ url: z.ZodOptional<z.ZodString>;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ name: string;
1373
+ url?: string | undefined;
1374
+ }, {
1375
+ name: string;
1376
+ url?: string | undefined;
1377
+ }>>;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ description?: string | undefined;
1380
+ version?: string | undefined;
1381
+ title?: string | undefined;
1382
+ homepage?: string | undefined;
1383
+ contact?: {
1384
+ name?: string | undefined;
1385
+ email?: string | undefined;
1386
+ url?: string | undefined;
1387
+ } | undefined;
1388
+ license?: {
1389
+ name: string;
1390
+ url?: string | undefined;
1391
+ } | undefined;
1392
+ }, {
1393
+ description?: string | undefined;
1394
+ version?: string | undefined;
1395
+ title?: string | undefined;
1396
+ homepage?: string | undefined;
1397
+ contact?: {
1398
+ name?: string | undefined;
1399
+ email?: string | undefined;
1400
+ url?: string | undefined;
1401
+ } | undefined;
1402
+ license?: {
1403
+ name: string;
1404
+ url?: string | undefined;
1405
+ } | undefined;
1406
+ }>>;
748
1407
  }, "strip", z.ZodTypeAny, {
749
1408
  version: string;
750
1409
  app: string;
@@ -757,15 +1416,19 @@ export declare const ManifestSchema: z.ZodObject<{
757
1416
  description: string;
758
1417
  required: boolean;
759
1418
  source: "user_query" | "session";
760
- default?: string | number | boolean | undefined;
1419
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
1420
+ enum?: string[] | undefined;
761
1421
  pattern?: string | undefined;
1422
+ example?: string | undefined;
762
1423
  }[];
763
1424
  returns: string[];
764
1425
  resolver: {
765
1426
  type: "api";
766
1427
  endpoints: {
767
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1428
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
768
1429
  path: string;
1430
+ idempotent?: boolean | undefined;
1431
+ idempotencyKey?: string | undefined;
769
1432
  params?: string[] | undefined;
770
1433
  }[];
771
1434
  } | {
@@ -776,8 +1439,10 @@ export declare const ManifestSchema: z.ZodObject<{
776
1439
  type: "hybrid";
777
1440
  api: {
778
1441
  endpoints: {
779
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1442
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
780
1443
  path: string;
1444
+ idempotent?: boolean | undefined;
1445
+ idempotencyKey?: string | undefined;
781
1446
  params?: string[] | undefined;
782
1447
  }[];
783
1448
  };
@@ -791,8 +1456,49 @@ export declare const ManifestSchema: z.ZodObject<{
791
1456
  note?: string | undefined;
792
1457
  };
793
1458
  examples?: string[] | undefined;
1459
+ lifecycle?: {
1460
+ status: "stable" | "beta" | "experimental" | "deprecated";
1461
+ sunsetAt?: string | undefined;
1462
+ successor?: string | undefined;
1463
+ note?: string | undefined;
1464
+ deprecatedAt?: string | undefined;
1465
+ } | undefined;
1466
+ tags?: string[] | undefined;
1467
+ errors?: {
1468
+ code: string;
1469
+ description: string;
1470
+ httpStatus?: number | undefined;
1471
+ retryable?: boolean | undefined;
1472
+ }[] | undefined;
1473
+ matchHint?: {
1474
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
1475
+ } | undefined;
794
1476
  }[];
1477
+ schemaVersion: string;
795
1478
  generatedAt: string;
1479
+ info?: {
1480
+ description?: string | undefined;
1481
+ version?: string | undefined;
1482
+ title?: string | undefined;
1483
+ homepage?: string | undefined;
1484
+ contact?: {
1485
+ name?: string | undefined;
1486
+ email?: string | undefined;
1487
+ url?: string | undefined;
1488
+ } | undefined;
1489
+ license?: {
1490
+ name: string;
1491
+ url?: string | undefined;
1492
+ } | undefined;
1493
+ } | undefined;
1494
+ servers?: {
1495
+ url: string;
1496
+ description?: string | undefined;
1497
+ environment?: string | undefined;
1498
+ }[] | undefined;
1499
+ tagRegistry?: Record<string, {
1500
+ description: string;
1501
+ }> | undefined;
796
1502
  }, {
797
1503
  version: string;
798
1504
  app: string;
@@ -805,15 +1511,19 @@ export declare const ManifestSchema: z.ZodObject<{
805
1511
  description: string;
806
1512
  required: boolean;
807
1513
  source: "user_query" | "session";
808
- default?: string | number | boolean | undefined;
1514
+ type?: "string" | "number" | "boolean" | "object" | "date" | "email" | "url" | "enum" | undefined;
1515
+ enum?: string[] | undefined;
809
1516
  pattern?: string | undefined;
1517
+ example?: string | undefined;
810
1518
  }[];
811
1519
  returns: string[];
812
1520
  resolver: {
813
1521
  type: "api";
814
1522
  endpoints: {
815
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1523
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
816
1524
  path: string;
1525
+ idempotent?: boolean | undefined;
1526
+ idempotencyKey?: string | undefined;
817
1527
  params?: string[] | undefined;
818
1528
  }[];
819
1529
  } | {
@@ -824,8 +1534,10 @@ export declare const ManifestSchema: z.ZodObject<{
824
1534
  type: "hybrid";
825
1535
  api: {
826
1536
  endpoints: {
827
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1537
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
828
1538
  path: string;
1539
+ idempotent?: boolean | undefined;
1540
+ idempotencyKey?: string | undefined;
829
1541
  params?: string[] | undefined;
830
1542
  }[];
831
1543
  };
@@ -839,8 +1551,49 @@ export declare const ManifestSchema: z.ZodObject<{
839
1551
  note?: string | undefined;
840
1552
  };
841
1553
  examples?: string[] | undefined;
1554
+ lifecycle?: {
1555
+ status: "stable" | "beta" | "experimental" | "deprecated";
1556
+ sunsetAt?: string | undefined;
1557
+ successor?: string | undefined;
1558
+ note?: string | undefined;
1559
+ deprecatedAt?: string | undefined;
1560
+ } | undefined;
1561
+ tags?: string[] | undefined;
1562
+ errors?: {
1563
+ code: string;
1564
+ description: string;
1565
+ httpStatus?: number | undefined;
1566
+ retryable?: boolean | undefined;
1567
+ }[] | undefined;
1568
+ matchHint?: {
1569
+ preferredMode?: "cheap" | "balanced" | "accurate" | undefined;
1570
+ } | undefined;
842
1571
  }[];
1572
+ schemaVersion: string;
843
1573
  generatedAt: string;
1574
+ info?: {
1575
+ description?: string | undefined;
1576
+ version?: string | undefined;
1577
+ title?: string | undefined;
1578
+ homepage?: string | undefined;
1579
+ contact?: {
1580
+ name?: string | undefined;
1581
+ email?: string | undefined;
1582
+ url?: string | undefined;
1583
+ } | undefined;
1584
+ license?: {
1585
+ name: string;
1586
+ url?: string | undefined;
1587
+ } | undefined;
1588
+ } | undefined;
1589
+ servers?: {
1590
+ url: string;
1591
+ description?: string | undefined;
1592
+ environment?: string | undefined;
1593
+ }[] | undefined;
1594
+ tagRegistry?: Record<string, {
1595
+ description: string;
1596
+ }> | undefined;
844
1597
  }>;
845
1598
  export type ZodValidationResult = {
846
1599
  valid: boolean;