capman 0.4.1 → 0.4.3

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 (54) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/CODEBASE.md +391 -0
  3. package/README.md +76 -97
  4. package/bin/capman.js +21 -405
  5. package/bin/lib/cmd-demo.js +180 -0
  6. package/bin/lib/cmd-explain.js +72 -0
  7. package/bin/lib/cmd-generate.js +280 -0
  8. package/bin/lib/cmd-help.js +26 -0
  9. package/bin/lib/cmd-init.js +19 -0
  10. package/bin/lib/cmd-inspect.js +33 -0
  11. package/bin/lib/cmd-run.js +71 -0
  12. package/bin/lib/cmd-validate.js +32 -0
  13. package/bin/lib/shared.js +70 -0
  14. package/dist/cjs/engine.d.ts +58 -1
  15. package/dist/cjs/engine.d.ts.map +1 -1
  16. package/dist/cjs/engine.js +307 -12
  17. package/dist/cjs/engine.js.map +1 -1
  18. package/dist/cjs/generator.d.ts.map +1 -1
  19. package/dist/cjs/generator.js +4 -0
  20. package/dist/cjs/generator.js.map +1 -1
  21. package/dist/cjs/index.d.ts +13 -17
  22. package/dist/cjs/index.d.ts.map +1 -1
  23. package/dist/cjs/index.js +12 -7
  24. package/dist/cjs/index.js.map +1 -1
  25. package/dist/cjs/matcher.d.ts.map +1 -1
  26. package/dist/cjs/matcher.js +19 -25
  27. package/dist/cjs/matcher.js.map +1 -1
  28. package/dist/cjs/parser.d.ts +11 -0
  29. package/dist/cjs/parser.d.ts.map +1 -0
  30. package/dist/cjs/parser.js +304 -0
  31. package/dist/cjs/parser.js.map +1 -0
  32. package/dist/cjs/types.d.ts +27 -0
  33. package/dist/cjs/types.d.ts.map +1 -1
  34. package/dist/cjs/version.d.ts +1 -1
  35. package/dist/cjs/version.js +1 -1
  36. package/dist/esm/cache.d.ts +49 -0
  37. package/dist/esm/engine.d.ts +138 -0
  38. package/dist/esm/engine.js +307 -12
  39. package/dist/esm/generator.d.ts +7 -0
  40. package/dist/esm/generator.js +4 -0
  41. package/dist/esm/index.d.ts +47 -0
  42. package/dist/esm/index.js +6 -4
  43. package/dist/esm/learning.d.ts +55 -0
  44. package/dist/esm/logger.d.ts +21 -0
  45. package/dist/esm/matcher.d.ts +6 -0
  46. package/dist/esm/matcher.js +19 -25
  47. package/dist/esm/parser.d.ts +10 -0
  48. package/dist/esm/parser.js +267 -0
  49. package/dist/esm/resolver.d.ts +21 -0
  50. package/dist/esm/schema.d.ts +740 -0
  51. package/dist/esm/types.d.ts +136 -0
  52. package/dist/esm/version.d.ts +1 -0
  53. package/dist/esm/version.js +1 -1
  54. package/package.json +5 -3
@@ -0,0 +1,740 @@
1
+ import { z } from 'zod';
2
+ export declare const CapmanConfigSchema: z.ZodObject<{
3
+ app: z.ZodString;
4
+ baseUrl: z.ZodOptional<z.ZodString>;
5
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodObject<{
6
+ id: z.ZodString;
7
+ name: z.ZodString;
8
+ description: z.ZodString;
9
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
+ params: z.ZodArray<z.ZodObject<{
11
+ name: z.ZodString;
12
+ description: z.ZodString;
13
+ required: z.ZodBoolean;
14
+ source: z.ZodEnum<["user_query", "session", "context", "static"]>;
15
+ default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ name: string;
18
+ required: boolean;
19
+ description: string;
20
+ source: "user_query" | "session" | "context" | "static";
21
+ default?: string | number | boolean | undefined;
22
+ }, {
23
+ name: string;
24
+ required: boolean;
25
+ description: string;
26
+ source: "user_query" | "session" | "context" | "static";
27
+ default?: string | number | boolean | undefined;
28
+ }>, "many">;
29
+ returns: z.ZodArray<z.ZodString, "many">;
30
+ resolver: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
31
+ type: z.ZodLiteral<"api">;
32
+ endpoints: z.ZodArray<z.ZodObject<{
33
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
34
+ path: z.ZodString;
35
+ params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
38
+ path: string;
39
+ params?: string[] | undefined;
40
+ }, {
41
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
42
+ path: string;
43
+ params?: string[] | undefined;
44
+ }>, "many">;
45
+ }, "strip", z.ZodTypeAny, {
46
+ type: "api";
47
+ endpoints: {
48
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
49
+ path: string;
50
+ params?: string[] | undefined;
51
+ }[];
52
+ }, {
53
+ type: "api";
54
+ endpoints: {
55
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
56
+ path: string;
57
+ params?: string[] | undefined;
58
+ }[];
59
+ }>, z.ZodObject<{
60
+ type: z.ZodLiteral<"nav">;
61
+ destination: z.ZodString;
62
+ hint: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ type: "nav";
65
+ destination: string;
66
+ hint?: string | undefined;
67
+ }, {
68
+ type: "nav";
69
+ destination: string;
70
+ hint?: string | undefined;
71
+ }>, z.ZodObject<{
72
+ type: z.ZodLiteral<"hybrid">;
73
+ api: z.ZodObject<{
74
+ endpoints: z.ZodArray<z.ZodObject<{
75
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
76
+ path: z.ZodString;
77
+ params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
80
+ path: string;
81
+ params?: string[] | undefined;
82
+ }, {
83
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
84
+ path: string;
85
+ params?: string[] | undefined;
86
+ }>, "many">;
87
+ }, "strip", z.ZodTypeAny, {
88
+ endpoints: {
89
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
90
+ path: string;
91
+ params?: string[] | undefined;
92
+ }[];
93
+ }, {
94
+ endpoints: {
95
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
96
+ path: string;
97
+ params?: string[] | undefined;
98
+ }[];
99
+ }>;
100
+ nav: z.ZodObject<{
101
+ destination: z.ZodString;
102
+ hint: z.ZodOptional<z.ZodString>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ destination: string;
105
+ hint?: string | undefined;
106
+ }, {
107
+ destination: string;
108
+ hint?: string | undefined;
109
+ }>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ api: {
112
+ endpoints: {
113
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
114
+ path: string;
115
+ params?: string[] | undefined;
116
+ }[];
117
+ };
118
+ nav: {
119
+ destination: string;
120
+ hint?: string | undefined;
121
+ };
122
+ type: "hybrid";
123
+ }, {
124
+ api: {
125
+ endpoints: {
126
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
127
+ path: string;
128
+ params?: string[] | undefined;
129
+ }[];
130
+ };
131
+ nav: {
132
+ destination: string;
133
+ hint?: string | undefined;
134
+ };
135
+ type: "hybrid";
136
+ }>]>;
137
+ privacy: z.ZodObject<{
138
+ level: z.ZodEnum<["public", "user_owned", "admin"]>;
139
+ note: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ level: "public" | "user_owned" | "admin";
142
+ note?: string | undefined;
143
+ }, {
144
+ level: "public" | "user_owned" | "admin";
145
+ note?: string | undefined;
146
+ }>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ name: string;
149
+ id: string;
150
+ params: {
151
+ name: string;
152
+ required: boolean;
153
+ description: string;
154
+ source: "user_query" | "session" | "context" | "static";
155
+ default?: string | number | boolean | undefined;
156
+ }[];
157
+ description: string;
158
+ returns: string[];
159
+ resolver: {
160
+ type: "api";
161
+ endpoints: {
162
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
163
+ path: string;
164
+ params?: string[] | undefined;
165
+ }[];
166
+ } | {
167
+ type: "nav";
168
+ destination: string;
169
+ hint?: string | undefined;
170
+ } | {
171
+ api: {
172
+ endpoints: {
173
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
174
+ path: string;
175
+ params?: string[] | undefined;
176
+ }[];
177
+ };
178
+ nav: {
179
+ destination: string;
180
+ hint?: string | undefined;
181
+ };
182
+ type: "hybrid";
183
+ };
184
+ privacy: {
185
+ level: "public" | "user_owned" | "admin";
186
+ note?: string | undefined;
187
+ };
188
+ examples?: string[] | undefined;
189
+ }, {
190
+ name: string;
191
+ id: string;
192
+ params: {
193
+ name: string;
194
+ required: boolean;
195
+ description: string;
196
+ source: "user_query" | "session" | "context" | "static";
197
+ default?: string | number | boolean | undefined;
198
+ }[];
199
+ description: string;
200
+ returns: string[];
201
+ resolver: {
202
+ type: "api";
203
+ endpoints: {
204
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
205
+ path: string;
206
+ params?: string[] | undefined;
207
+ }[];
208
+ } | {
209
+ type: "nav";
210
+ destination: string;
211
+ hint?: string | undefined;
212
+ } | {
213
+ api: {
214
+ endpoints: {
215
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
216
+ path: string;
217
+ params?: string[] | undefined;
218
+ }[];
219
+ };
220
+ nav: {
221
+ destination: string;
222
+ hint?: string | undefined;
223
+ };
224
+ type: "hybrid";
225
+ };
226
+ privacy: {
227
+ level: "public" | "user_owned" | "admin";
228
+ note?: string | undefined;
229
+ };
230
+ examples?: string[] | undefined;
231
+ }>, "many">, {
232
+ name: string;
233
+ id: string;
234
+ params: {
235
+ name: string;
236
+ required: boolean;
237
+ description: string;
238
+ source: "user_query" | "session" | "context" | "static";
239
+ default?: string | number | boolean | undefined;
240
+ }[];
241
+ description: string;
242
+ returns: string[];
243
+ resolver: {
244
+ type: "api";
245
+ endpoints: {
246
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
247
+ path: string;
248
+ params?: string[] | undefined;
249
+ }[];
250
+ } | {
251
+ type: "nav";
252
+ destination: string;
253
+ hint?: string | undefined;
254
+ } | {
255
+ api: {
256
+ endpoints: {
257
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
258
+ path: string;
259
+ params?: string[] | undefined;
260
+ }[];
261
+ };
262
+ nav: {
263
+ destination: string;
264
+ hint?: string | undefined;
265
+ };
266
+ type: "hybrid";
267
+ };
268
+ privacy: {
269
+ level: "public" | "user_owned" | "admin";
270
+ note?: string | undefined;
271
+ };
272
+ examples?: string[] | undefined;
273
+ }[], {
274
+ name: string;
275
+ id: string;
276
+ params: {
277
+ name: string;
278
+ required: boolean;
279
+ description: string;
280
+ source: "user_query" | "session" | "context" | "static";
281
+ default?: string | number | boolean | undefined;
282
+ }[];
283
+ description: string;
284
+ returns: string[];
285
+ resolver: {
286
+ type: "api";
287
+ endpoints: {
288
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
289
+ path: string;
290
+ params?: string[] | undefined;
291
+ }[];
292
+ } | {
293
+ type: "nav";
294
+ destination: string;
295
+ hint?: string | undefined;
296
+ } | {
297
+ api: {
298
+ endpoints: {
299
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
300
+ path: string;
301
+ params?: string[] | undefined;
302
+ }[];
303
+ };
304
+ nav: {
305
+ destination: string;
306
+ hint?: string | undefined;
307
+ };
308
+ type: "hybrid";
309
+ };
310
+ privacy: {
311
+ level: "public" | "user_owned" | "admin";
312
+ note?: string | undefined;
313
+ };
314
+ examples?: string[] | undefined;
315
+ }[]>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ app: string;
318
+ capabilities: {
319
+ name: string;
320
+ id: string;
321
+ params: {
322
+ name: string;
323
+ required: boolean;
324
+ description: string;
325
+ source: "user_query" | "session" | "context" | "static";
326
+ default?: string | number | boolean | undefined;
327
+ }[];
328
+ description: string;
329
+ returns: string[];
330
+ resolver: {
331
+ type: "api";
332
+ endpoints: {
333
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
334
+ path: string;
335
+ params?: string[] | undefined;
336
+ }[];
337
+ } | {
338
+ type: "nav";
339
+ destination: string;
340
+ hint?: string | undefined;
341
+ } | {
342
+ api: {
343
+ endpoints: {
344
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
345
+ path: string;
346
+ params?: string[] | undefined;
347
+ }[];
348
+ };
349
+ nav: {
350
+ destination: string;
351
+ hint?: string | undefined;
352
+ };
353
+ type: "hybrid";
354
+ };
355
+ privacy: {
356
+ level: "public" | "user_owned" | "admin";
357
+ note?: string | undefined;
358
+ };
359
+ examples?: string[] | undefined;
360
+ }[];
361
+ baseUrl?: string | undefined;
362
+ }, {
363
+ app: string;
364
+ capabilities: {
365
+ name: string;
366
+ id: string;
367
+ params: {
368
+ name: string;
369
+ required: boolean;
370
+ description: string;
371
+ source: "user_query" | "session" | "context" | "static";
372
+ default?: string | number | boolean | undefined;
373
+ }[];
374
+ description: string;
375
+ returns: string[];
376
+ resolver: {
377
+ type: "api";
378
+ endpoints: {
379
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
380
+ path: string;
381
+ params?: string[] | undefined;
382
+ }[];
383
+ } | {
384
+ type: "nav";
385
+ destination: string;
386
+ hint?: string | undefined;
387
+ } | {
388
+ api: {
389
+ endpoints: {
390
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
391
+ path: string;
392
+ params?: string[] | undefined;
393
+ }[];
394
+ };
395
+ nav: {
396
+ destination: string;
397
+ hint?: string | undefined;
398
+ };
399
+ type: "hybrid";
400
+ };
401
+ privacy: {
402
+ level: "public" | "user_owned" | "admin";
403
+ note?: string | undefined;
404
+ };
405
+ examples?: string[] | undefined;
406
+ }[];
407
+ baseUrl?: string | undefined;
408
+ }>;
409
+ export declare const ManifestSchema: z.ZodObject<{
410
+ version: z.ZodString;
411
+ app: z.ZodString;
412
+ generatedAt: z.ZodString;
413
+ capabilities: z.ZodArray<z.ZodObject<{
414
+ id: z.ZodString;
415
+ name: z.ZodString;
416
+ description: z.ZodString;
417
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
418
+ params: z.ZodArray<z.ZodObject<{
419
+ name: z.ZodString;
420
+ description: z.ZodString;
421
+ required: z.ZodBoolean;
422
+ source: z.ZodEnum<["user_query", "session", "context", "static"]>;
423
+ default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ name: string;
426
+ required: boolean;
427
+ description: string;
428
+ source: "user_query" | "session" | "context" | "static";
429
+ default?: string | number | boolean | undefined;
430
+ }, {
431
+ name: string;
432
+ required: boolean;
433
+ description: string;
434
+ source: "user_query" | "session" | "context" | "static";
435
+ default?: string | number | boolean | undefined;
436
+ }>, "many">;
437
+ returns: z.ZodArray<z.ZodString, "many">;
438
+ resolver: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
439
+ type: z.ZodLiteral<"api">;
440
+ endpoints: z.ZodArray<z.ZodObject<{
441
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
442
+ path: z.ZodString;
443
+ params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
446
+ path: string;
447
+ params?: string[] | undefined;
448
+ }, {
449
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
450
+ path: string;
451
+ params?: string[] | undefined;
452
+ }>, "many">;
453
+ }, "strip", z.ZodTypeAny, {
454
+ type: "api";
455
+ endpoints: {
456
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
457
+ path: string;
458
+ params?: string[] | undefined;
459
+ }[];
460
+ }, {
461
+ type: "api";
462
+ endpoints: {
463
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
464
+ path: string;
465
+ params?: string[] | undefined;
466
+ }[];
467
+ }>, z.ZodObject<{
468
+ type: z.ZodLiteral<"nav">;
469
+ destination: z.ZodString;
470
+ hint: z.ZodOptional<z.ZodString>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ type: "nav";
473
+ destination: string;
474
+ hint?: string | undefined;
475
+ }, {
476
+ type: "nav";
477
+ destination: string;
478
+ hint?: string | undefined;
479
+ }>, z.ZodObject<{
480
+ type: z.ZodLiteral<"hybrid">;
481
+ api: z.ZodObject<{
482
+ endpoints: z.ZodArray<z.ZodObject<{
483
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
484
+ path: z.ZodString;
485
+ params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
488
+ path: string;
489
+ params?: string[] | undefined;
490
+ }, {
491
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
492
+ path: string;
493
+ params?: string[] | undefined;
494
+ }>, "many">;
495
+ }, "strip", z.ZodTypeAny, {
496
+ endpoints: {
497
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
498
+ path: string;
499
+ params?: string[] | undefined;
500
+ }[];
501
+ }, {
502
+ endpoints: {
503
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
504
+ path: string;
505
+ params?: string[] | undefined;
506
+ }[];
507
+ }>;
508
+ nav: z.ZodObject<{
509
+ destination: z.ZodString;
510
+ hint: z.ZodOptional<z.ZodString>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ destination: string;
513
+ hint?: string | undefined;
514
+ }, {
515
+ destination: string;
516
+ hint?: string | undefined;
517
+ }>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ api: {
520
+ endpoints: {
521
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
522
+ path: string;
523
+ params?: string[] | undefined;
524
+ }[];
525
+ };
526
+ nav: {
527
+ destination: string;
528
+ hint?: string | undefined;
529
+ };
530
+ type: "hybrid";
531
+ }, {
532
+ api: {
533
+ endpoints: {
534
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
535
+ path: string;
536
+ params?: string[] | undefined;
537
+ }[];
538
+ };
539
+ nav: {
540
+ destination: string;
541
+ hint?: string | undefined;
542
+ };
543
+ type: "hybrid";
544
+ }>]>;
545
+ privacy: z.ZodObject<{
546
+ level: z.ZodEnum<["public", "user_owned", "admin"]>;
547
+ note: z.ZodOptional<z.ZodString>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ level: "public" | "user_owned" | "admin";
550
+ note?: string | undefined;
551
+ }, {
552
+ level: "public" | "user_owned" | "admin";
553
+ note?: string | undefined;
554
+ }>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ name: string;
557
+ id: string;
558
+ params: {
559
+ name: string;
560
+ required: boolean;
561
+ description: string;
562
+ source: "user_query" | "session" | "context" | "static";
563
+ default?: string | number | boolean | undefined;
564
+ }[];
565
+ description: string;
566
+ returns: string[];
567
+ resolver: {
568
+ type: "api";
569
+ endpoints: {
570
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
571
+ path: string;
572
+ params?: string[] | undefined;
573
+ }[];
574
+ } | {
575
+ type: "nav";
576
+ destination: string;
577
+ hint?: string | undefined;
578
+ } | {
579
+ api: {
580
+ endpoints: {
581
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
582
+ path: string;
583
+ params?: string[] | undefined;
584
+ }[];
585
+ };
586
+ nav: {
587
+ destination: string;
588
+ hint?: string | undefined;
589
+ };
590
+ type: "hybrid";
591
+ };
592
+ privacy: {
593
+ level: "public" | "user_owned" | "admin";
594
+ note?: string | undefined;
595
+ };
596
+ examples?: string[] | undefined;
597
+ }, {
598
+ name: string;
599
+ id: string;
600
+ params: {
601
+ name: string;
602
+ required: boolean;
603
+ description: string;
604
+ source: "user_query" | "session" | "context" | "static";
605
+ default?: string | number | boolean | undefined;
606
+ }[];
607
+ description: string;
608
+ returns: string[];
609
+ resolver: {
610
+ type: "api";
611
+ endpoints: {
612
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
613
+ path: string;
614
+ params?: string[] | undefined;
615
+ }[];
616
+ } | {
617
+ type: "nav";
618
+ destination: string;
619
+ hint?: string | undefined;
620
+ } | {
621
+ api: {
622
+ endpoints: {
623
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
624
+ path: string;
625
+ params?: string[] | undefined;
626
+ }[];
627
+ };
628
+ nav: {
629
+ destination: string;
630
+ hint?: string | undefined;
631
+ };
632
+ type: "hybrid";
633
+ };
634
+ privacy: {
635
+ level: "public" | "user_owned" | "admin";
636
+ note?: string | undefined;
637
+ };
638
+ examples?: string[] | undefined;
639
+ }>, "many">;
640
+ }, "strip", z.ZodTypeAny, {
641
+ version: string;
642
+ app: string;
643
+ capabilities: {
644
+ name: string;
645
+ id: string;
646
+ params: {
647
+ name: string;
648
+ required: boolean;
649
+ description: string;
650
+ source: "user_query" | "session" | "context" | "static";
651
+ default?: string | number | boolean | undefined;
652
+ }[];
653
+ description: string;
654
+ returns: string[];
655
+ resolver: {
656
+ type: "api";
657
+ endpoints: {
658
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
659
+ path: string;
660
+ params?: string[] | undefined;
661
+ }[];
662
+ } | {
663
+ type: "nav";
664
+ destination: string;
665
+ hint?: string | undefined;
666
+ } | {
667
+ api: {
668
+ endpoints: {
669
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
670
+ path: string;
671
+ params?: string[] | undefined;
672
+ }[];
673
+ };
674
+ nav: {
675
+ destination: string;
676
+ hint?: string | undefined;
677
+ };
678
+ type: "hybrid";
679
+ };
680
+ privacy: {
681
+ level: "public" | "user_owned" | "admin";
682
+ note?: string | undefined;
683
+ };
684
+ examples?: string[] | undefined;
685
+ }[];
686
+ generatedAt: string;
687
+ }, {
688
+ version: string;
689
+ app: string;
690
+ capabilities: {
691
+ name: string;
692
+ id: string;
693
+ params: {
694
+ name: string;
695
+ required: boolean;
696
+ description: string;
697
+ source: "user_query" | "session" | "context" | "static";
698
+ default?: string | number | boolean | undefined;
699
+ }[];
700
+ description: string;
701
+ returns: string[];
702
+ resolver: {
703
+ type: "api";
704
+ endpoints: {
705
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
706
+ path: string;
707
+ params?: string[] | undefined;
708
+ }[];
709
+ } | {
710
+ type: "nav";
711
+ destination: string;
712
+ hint?: string | undefined;
713
+ } | {
714
+ api: {
715
+ endpoints: {
716
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
717
+ path: string;
718
+ params?: string[] | undefined;
719
+ }[];
720
+ };
721
+ nav: {
722
+ destination: string;
723
+ hint?: string | undefined;
724
+ };
725
+ type: "hybrid";
726
+ };
727
+ privacy: {
728
+ level: "public" | "user_owned" | "admin";
729
+ note?: string | undefined;
730
+ };
731
+ examples?: string[] | undefined;
732
+ }[];
733
+ generatedAt: string;
734
+ }>;
735
+ export type ZodValidationResult = {
736
+ valid: boolean;
737
+ errors: string[];
738
+ };
739
+ export declare function validateConfig(config: unknown): ZodValidationResult;
740
+ export declare function validateManifest(manifest: unknown): ZodValidationResult;