@meterapp/car-image-sdk 1.0.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -7
- package/dist/client.d.ts +26 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +127 -4
- package/dist/client.js.map +1 -1
- package/dist/mcp/index.d.ts +595 -2
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +485 -15
- package/dist/mcp/index.js.map +1 -1
- package/dist/types.d.ts +192 -9
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +37 -0
- package/dist/types.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/mcp/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import * as z from "zod";
|
|
|
13
13
|
export declare const MCP_SERVER_INFO: {
|
|
14
14
|
readonly name: "car-image-api";
|
|
15
15
|
readonly title: "Car Image API";
|
|
16
|
-
readonly version: "1.0
|
|
16
|
+
readonly version: "1.2.0";
|
|
17
17
|
readonly websiteUrl: "https://carimage.dev";
|
|
18
18
|
};
|
|
19
19
|
export declare const MCP_INSTRUCTIONS: string;
|
|
@@ -151,6 +151,8 @@ export declare const MCP_TOOL_SCHEMAS: {
|
|
|
151
151
|
}, z.core.$strip>>;
|
|
152
152
|
ttl_seconds: z.ZodOptional<z.ZodNumber>;
|
|
153
153
|
max_uses: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
renew: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
renew_days: z.ZodOptional<z.ZodNumber>;
|
|
154
156
|
}, z.core.$strip>;
|
|
155
157
|
readonly search_vehicles: z.ZodObject<{
|
|
156
158
|
query: z.ZodString;
|
|
@@ -202,9 +204,598 @@ export declare const MCP_TOOL_SCHEMAS: {
|
|
|
202
204
|
readonly describe_api: z.ZodObject<{
|
|
203
205
|
endpoint: z.ZodOptional<z.ZodString>;
|
|
204
206
|
}, z.core.$strip>;
|
|
207
|
+
readonly list_requests: z.ZodObject<{
|
|
208
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
209
|
+
vehicle: "vehicle";
|
|
210
|
+
feature: "feature";
|
|
211
|
+
}>>;
|
|
212
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
open: "open";
|
|
214
|
+
planned: "planned";
|
|
215
|
+
in_progress: "in_progress";
|
|
216
|
+
done: "done";
|
|
217
|
+
declined: "declined";
|
|
218
|
+
}>>;
|
|
219
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
220
|
+
top: "top";
|
|
221
|
+
new: "new";
|
|
222
|
+
}>>;
|
|
223
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
224
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
readonly request_vehicle: z.ZodObject<{
|
|
227
|
+
make: z.ZodString;
|
|
228
|
+
model: z.ZodString;
|
|
229
|
+
year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
230
|
+
note: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
readonly request_feature: z.ZodObject<{
|
|
233
|
+
title: z.ZodString;
|
|
234
|
+
body: z.ZodOptional<z.ZodString>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
readonly get_request: z.ZodObject<{
|
|
237
|
+
id: z.ZodString;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
readonly upvote_request: z.ZodObject<{
|
|
240
|
+
id: z.ZodString;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
readonly comment_on_request: z.ZodObject<{
|
|
243
|
+
id: z.ZodString;
|
|
244
|
+
body: z.ZodString;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
readonly share_building: z.ZodObject<{
|
|
247
|
+
building: z.ZodString;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
readonly share_referral: z.ZodObject<{
|
|
250
|
+
source: z.ZodEnum<{
|
|
251
|
+
search: "search";
|
|
252
|
+
ai_assistant: "ai_assistant";
|
|
253
|
+
github: "github";
|
|
254
|
+
npm: "npm";
|
|
255
|
+
twitter_x: "twitter_x";
|
|
256
|
+
linkedin: "linkedin";
|
|
257
|
+
reddit: "reddit";
|
|
258
|
+
hacker_news: "hacker_news";
|
|
259
|
+
youtube: "youtube";
|
|
260
|
+
friend_or_colleague: "friend_or_colleague";
|
|
261
|
+
blog_or_article: "blog_or_article";
|
|
262
|
+
other: "other";
|
|
263
|
+
}>;
|
|
264
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>;
|
|
205
266
|
};
|
|
206
267
|
export type McpToolName = keyof typeof MCP_TOOL_SCHEMAS;
|
|
207
268
|
export type McpToolInput<N extends McpToolName> = z.infer<(typeof MCP_TOOL_SCHEMAS)[N]>;
|
|
269
|
+
export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
270
|
+
readonly get_car_image: z.ZodObject<{
|
|
271
|
+
credits_charged: z.ZodNullable<z.ZodNumber>;
|
|
272
|
+
credits_remaining: z.ZodNullable<z.ZodNumber>;
|
|
273
|
+
source: z.ZodNullable<z.ZodEnum<{
|
|
274
|
+
cache: "cache";
|
|
275
|
+
generated: "generated";
|
|
276
|
+
}>>;
|
|
277
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
278
|
+
height: z.ZodNullable<z.ZodNumber>;
|
|
279
|
+
content_type: z.ZodString;
|
|
280
|
+
etag: z.ZodNullable<z.ZodString>;
|
|
281
|
+
request_id: z.ZodNullable<z.ZodString>;
|
|
282
|
+
vehicle: z.ZodObject<{
|
|
283
|
+
make: z.ZodString;
|
|
284
|
+
model: z.ZodString;
|
|
285
|
+
year: z.ZodNumber;
|
|
286
|
+
view: z.ZodEnum<{
|
|
287
|
+
front: "front";
|
|
288
|
+
"front-3-4": "front-3-4";
|
|
289
|
+
side: "side";
|
|
290
|
+
"side-right": "side-right";
|
|
291
|
+
rear: "rear";
|
|
292
|
+
"rear-3-4": "rear-3-4";
|
|
293
|
+
}>;
|
|
294
|
+
color: z.ZodEnum<{
|
|
295
|
+
white: "white";
|
|
296
|
+
black: "black";
|
|
297
|
+
gray: "gray";
|
|
298
|
+
silver: "silver";
|
|
299
|
+
blue: "blue";
|
|
300
|
+
red: "red";
|
|
301
|
+
green: "green";
|
|
302
|
+
brown: "brown";
|
|
303
|
+
beige: "beige";
|
|
304
|
+
tan: "tan";
|
|
305
|
+
orange: "orange";
|
|
306
|
+
yellow: "yellow";
|
|
307
|
+
gold: "gold";
|
|
308
|
+
burgundy: "burgundy";
|
|
309
|
+
purple: "purple";
|
|
310
|
+
}>;
|
|
311
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
format: z.ZodEnum<{
|
|
314
|
+
png: "png";
|
|
315
|
+
webp: "webp";
|
|
316
|
+
jpg: "jpg";
|
|
317
|
+
}>;
|
|
318
|
+
}, z.core.$loose>;
|
|
319
|
+
}, z.core.$loose>;
|
|
320
|
+
readonly create_car_image_urls: z.ZodObject<{
|
|
321
|
+
data: z.ZodArray<z.ZodObject<{
|
|
322
|
+
id: z.ZodString;
|
|
323
|
+
url: z.ZodString;
|
|
324
|
+
expires_at: z.ZodString;
|
|
325
|
+
max_uses: z.ZodNumber;
|
|
326
|
+
renews_until: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
vehicle: z.ZodObject<{
|
|
328
|
+
make: z.ZodString;
|
|
329
|
+
model: z.ZodString;
|
|
330
|
+
year: z.ZodNumber;
|
|
331
|
+
view: z.ZodEnum<{
|
|
332
|
+
front: "front";
|
|
333
|
+
"front-3-4": "front-3-4";
|
|
334
|
+
side: "side";
|
|
335
|
+
"side-right": "side-right";
|
|
336
|
+
rear: "rear";
|
|
337
|
+
"rear-3-4": "rear-3-4";
|
|
338
|
+
}>;
|
|
339
|
+
color: z.ZodEnum<{
|
|
340
|
+
white: "white";
|
|
341
|
+
black: "black";
|
|
342
|
+
gray: "gray";
|
|
343
|
+
silver: "silver";
|
|
344
|
+
blue: "blue";
|
|
345
|
+
red: "red";
|
|
346
|
+
green: "green";
|
|
347
|
+
brown: "brown";
|
|
348
|
+
beige: "beige";
|
|
349
|
+
tan: "tan";
|
|
350
|
+
orange: "orange";
|
|
351
|
+
yellow: "yellow";
|
|
352
|
+
gold: "gold";
|
|
353
|
+
burgundy: "burgundy";
|
|
354
|
+
purple: "purple";
|
|
355
|
+
}>;
|
|
356
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
format: z.ZodEnum<{
|
|
359
|
+
png: "png";
|
|
360
|
+
webp: "webp";
|
|
361
|
+
jpg: "jpg";
|
|
362
|
+
}>;
|
|
363
|
+
}, z.core.$loose>;
|
|
364
|
+
}, z.core.$loose>>;
|
|
365
|
+
billing: z.ZodObject<{
|
|
366
|
+
charged_on: z.ZodLiteral<"creation">;
|
|
367
|
+
credits_charged: z.ZodNumber;
|
|
368
|
+
credits_remaining: z.ZodNumber;
|
|
369
|
+
renewal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
370
|
+
window_seconds: z.ZodNumber;
|
|
371
|
+
credits_per_window: z.ZodNumber;
|
|
372
|
+
until: z.ZodString;
|
|
373
|
+
}, z.core.$loose>>>;
|
|
374
|
+
}, z.core.$loose>;
|
|
375
|
+
request_id: z.ZodString;
|
|
376
|
+
}, z.core.$loose>;
|
|
377
|
+
readonly search_vehicles: z.ZodObject<{
|
|
378
|
+
data: z.ZodObject<{
|
|
379
|
+
query: z.ZodString;
|
|
380
|
+
results: z.ZodArray<z.ZodObject<{
|
|
381
|
+
kind: z.ZodEnum<{
|
|
382
|
+
make: "make";
|
|
383
|
+
model: "model";
|
|
384
|
+
}>;
|
|
385
|
+
make: z.ZodString;
|
|
386
|
+
make_slug: z.ZodString;
|
|
387
|
+
model: z.ZodNullable<z.ZodString>;
|
|
388
|
+
model_slug: z.ZodNullable<z.ZodString>;
|
|
389
|
+
vehicle_type: z.ZodNullable<z.ZodString>;
|
|
390
|
+
years: z.ZodArray<z.ZodNumber>;
|
|
391
|
+
match_kind: z.ZodNullable<z.ZodString>;
|
|
392
|
+
}, z.core.$loose>>;
|
|
393
|
+
}, z.core.$loose>;
|
|
394
|
+
}, z.core.$loose>;
|
|
395
|
+
readonly resolve_vehicle: z.ZodObject<{
|
|
396
|
+
data: z.ZodObject<{
|
|
397
|
+
params: z.ZodObject<{
|
|
398
|
+
make: z.ZodString;
|
|
399
|
+
model: z.ZodString;
|
|
400
|
+
year: z.ZodNumber;
|
|
401
|
+
view: z.ZodEnum<{
|
|
402
|
+
front: "front";
|
|
403
|
+
"front-3-4": "front-3-4";
|
|
404
|
+
side: "side";
|
|
405
|
+
"side-right": "side-right";
|
|
406
|
+
rear: "rear";
|
|
407
|
+
"rear-3-4": "rear-3-4";
|
|
408
|
+
}>;
|
|
409
|
+
color: z.ZodEnum<{
|
|
410
|
+
white: "white";
|
|
411
|
+
black: "black";
|
|
412
|
+
gray: "gray";
|
|
413
|
+
silver: "silver";
|
|
414
|
+
blue: "blue";
|
|
415
|
+
red: "red";
|
|
416
|
+
green: "green";
|
|
417
|
+
brown: "brown";
|
|
418
|
+
beige: "beige";
|
|
419
|
+
tan: "tan";
|
|
420
|
+
orange: "orange";
|
|
421
|
+
yellow: "yellow";
|
|
422
|
+
gold: "gold";
|
|
423
|
+
burgundy: "burgundy";
|
|
424
|
+
purple: "purple";
|
|
425
|
+
}>;
|
|
426
|
+
}, z.core.$loose>;
|
|
427
|
+
display: z.ZodOptional<z.ZodObject<{
|
|
428
|
+
make_name: z.ZodString;
|
|
429
|
+
model_name: z.ZodString;
|
|
430
|
+
}, z.core.$loose>>;
|
|
431
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
432
|
+
make_name: z.ZodOptional<z.ZodString>;
|
|
433
|
+
make_slug: z.ZodOptional<z.ZodString>;
|
|
434
|
+
model_name: z.ZodOptional<z.ZodString>;
|
|
435
|
+
model_slug: z.ZodOptional<z.ZodString>;
|
|
436
|
+
years: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
437
|
+
match_kind: z.ZodOptional<z.ZodString>;
|
|
438
|
+
}, z.core.$loose>>;
|
|
439
|
+
confidence: z.ZodUnion<readonly [z.ZodEnum<{
|
|
440
|
+
medium: "medium";
|
|
441
|
+
high: "high";
|
|
442
|
+
low: "low";
|
|
443
|
+
}>, z.ZodNumber]>;
|
|
444
|
+
image_path: z.ZodOptional<z.ZodString>;
|
|
445
|
+
extracted: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
446
|
+
}, z.core.$loose>;
|
|
447
|
+
cli: z.ZodString;
|
|
448
|
+
}, z.core.$loose>;
|
|
449
|
+
readonly list_image_options: z.ZodObject<{
|
|
450
|
+
data: z.ZodObject<{
|
|
451
|
+
views: z.ZodArray<z.ZodObject<{
|
|
452
|
+
id: z.ZodEnum<{
|
|
453
|
+
front: "front";
|
|
454
|
+
"front-3-4": "front-3-4";
|
|
455
|
+
side: "side";
|
|
456
|
+
"side-right": "side-right";
|
|
457
|
+
rear: "rear";
|
|
458
|
+
"rear-3-4": "rear-3-4";
|
|
459
|
+
}>;
|
|
460
|
+
label: z.ZodString;
|
|
461
|
+
yaw_degrees: z.ZodNumber;
|
|
462
|
+
description: z.ZodString;
|
|
463
|
+
aliases: z.ZodArray<z.ZodString>;
|
|
464
|
+
}, z.core.$loose>>;
|
|
465
|
+
colors: z.ZodArray<z.ZodObject<{
|
|
466
|
+
name: z.ZodEnum<{
|
|
467
|
+
white: "white";
|
|
468
|
+
black: "black";
|
|
469
|
+
gray: "gray";
|
|
470
|
+
silver: "silver";
|
|
471
|
+
blue: "blue";
|
|
472
|
+
red: "red";
|
|
473
|
+
green: "green";
|
|
474
|
+
brown: "brown";
|
|
475
|
+
beige: "beige";
|
|
476
|
+
tan: "tan";
|
|
477
|
+
orange: "orange";
|
|
478
|
+
yellow: "yellow";
|
|
479
|
+
gold: "gold";
|
|
480
|
+
burgundy: "burgundy";
|
|
481
|
+
purple: "purple";
|
|
482
|
+
}>;
|
|
483
|
+
hex: z.ZodString;
|
|
484
|
+
}, z.core.$loose>>;
|
|
485
|
+
sizes: z.ZodObject<{
|
|
486
|
+
presets: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
487
|
+
max: z.ZodNumber;
|
|
488
|
+
}, z.core.$loose>;
|
|
489
|
+
formats: z.ZodArray<z.ZodEnum<{
|
|
490
|
+
png: "png";
|
|
491
|
+
webp: "webp";
|
|
492
|
+
jpg: "jpg";
|
|
493
|
+
}>>;
|
|
494
|
+
pricing: z.ZodObject<{
|
|
495
|
+
credits_per_image: z.ZodNumber;
|
|
496
|
+
credits_per_dollar: z.ZodNumber;
|
|
497
|
+
free_credits: z.ZodOptional<z.ZodNumber>;
|
|
498
|
+
packs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
499
|
+
credits: z.ZodNumber;
|
|
500
|
+
cents: z.ZodNumber;
|
|
501
|
+
label: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$loose>>>;
|
|
503
|
+
}, z.core.$loose>;
|
|
504
|
+
catalog: z.ZodObject<{
|
|
505
|
+
makes: z.ZodNumber;
|
|
506
|
+
models: z.ZodNumber;
|
|
507
|
+
years: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
508
|
+
sources: z.ZodArray<z.ZodString>;
|
|
509
|
+
}, z.core.$loose>;
|
|
510
|
+
}, z.core.$loose>;
|
|
511
|
+
}, z.core.$loose>;
|
|
512
|
+
readonly get_account: z.ZodObject<{
|
|
513
|
+
data: z.ZodObject<{
|
|
514
|
+
credits: z.ZodNumber;
|
|
515
|
+
credits_usd: z.ZodNumber;
|
|
516
|
+
auto_reload: z.ZodBoolean;
|
|
517
|
+
has_payment_method: z.ZodBoolean;
|
|
518
|
+
pricing: z.ZodObject<{
|
|
519
|
+
credits_per_image: z.ZodNumber;
|
|
520
|
+
credits_per_dollar: z.ZodNumber;
|
|
521
|
+
free_credits: z.ZodOptional<z.ZodNumber>;
|
|
522
|
+
packs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
523
|
+
credits: z.ZodNumber;
|
|
524
|
+
cents: z.ZodNumber;
|
|
525
|
+
label: z.ZodOptional<z.ZodString>;
|
|
526
|
+
}, z.core.$loose>>>;
|
|
527
|
+
}, z.core.$loose>;
|
|
528
|
+
key: z.ZodOptional<z.ZodObject<{
|
|
529
|
+
id: z.ZodOptional<z.ZodString>;
|
|
530
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
531
|
+
}, z.core.$loose>>;
|
|
532
|
+
}, z.core.$loose>;
|
|
533
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
534
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
535
|
+
}, z.core.$loose>;
|
|
536
|
+
readonly rate_image: z.ZodObject<{
|
|
537
|
+
data: z.ZodObject<{
|
|
538
|
+
asset_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
539
|
+
flagged: z.ZodBoolean;
|
|
540
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
541
|
+
verdict: z.ZodOptional<z.ZodEnum<{
|
|
542
|
+
good: "good";
|
|
543
|
+
bad: "bad";
|
|
544
|
+
}>>;
|
|
545
|
+
}, z.core.$loose>;
|
|
546
|
+
request_id: z.ZodString;
|
|
547
|
+
}, z.core.$loose>;
|
|
548
|
+
readonly list_requests: z.ZodObject<{
|
|
549
|
+
data: z.ZodArray<z.ZodObject<{
|
|
550
|
+
comments: z.ZodNumber;
|
|
551
|
+
id: z.ZodString;
|
|
552
|
+
kind: z.ZodEnum<{
|
|
553
|
+
vehicle: "vehicle";
|
|
554
|
+
feature: "feature";
|
|
555
|
+
}>;
|
|
556
|
+
title: z.ZodString;
|
|
557
|
+
body: z.ZodNullable<z.ZodString>;
|
|
558
|
+
vehicle: z.ZodNullable<z.ZodObject<{
|
|
559
|
+
make: z.ZodString;
|
|
560
|
+
model: z.ZodString;
|
|
561
|
+
year: z.ZodNullable<z.ZodNumber>;
|
|
562
|
+
}, z.core.$loose>>;
|
|
563
|
+
status: z.ZodEnum<{
|
|
564
|
+
open: "open";
|
|
565
|
+
planned: "planned";
|
|
566
|
+
in_progress: "in_progress";
|
|
567
|
+
done: "done";
|
|
568
|
+
declined: "declined";
|
|
569
|
+
}>;
|
|
570
|
+
votes: z.ZodNumber;
|
|
571
|
+
author: z.ZodString;
|
|
572
|
+
url: z.ZodString;
|
|
573
|
+
created_at: z.ZodString;
|
|
574
|
+
updated_at: z.ZodString;
|
|
575
|
+
viewer: z.ZodOptional<z.ZodObject<{
|
|
576
|
+
voted: z.ZodBoolean;
|
|
577
|
+
}, z.core.$loose>>;
|
|
578
|
+
}, z.core.$loose>>;
|
|
579
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
580
|
+
request_id: z.ZodString;
|
|
581
|
+
}, z.core.$loose>;
|
|
582
|
+
readonly request_vehicle: z.ZodObject<{
|
|
583
|
+
data: z.ZodObject<{
|
|
584
|
+
comments: z.ZodNumber;
|
|
585
|
+
id: z.ZodString;
|
|
586
|
+
kind: z.ZodEnum<{
|
|
587
|
+
vehicle: "vehicle";
|
|
588
|
+
feature: "feature";
|
|
589
|
+
}>;
|
|
590
|
+
title: z.ZodString;
|
|
591
|
+
body: z.ZodNullable<z.ZodString>;
|
|
592
|
+
vehicle: z.ZodNullable<z.ZodObject<{
|
|
593
|
+
make: z.ZodString;
|
|
594
|
+
model: z.ZodString;
|
|
595
|
+
year: z.ZodNullable<z.ZodNumber>;
|
|
596
|
+
}, z.core.$loose>>;
|
|
597
|
+
status: z.ZodEnum<{
|
|
598
|
+
open: "open";
|
|
599
|
+
planned: "planned";
|
|
600
|
+
in_progress: "in_progress";
|
|
601
|
+
done: "done";
|
|
602
|
+
declined: "declined";
|
|
603
|
+
}>;
|
|
604
|
+
votes: z.ZodNumber;
|
|
605
|
+
author: z.ZodString;
|
|
606
|
+
url: z.ZodString;
|
|
607
|
+
created_at: z.ZodString;
|
|
608
|
+
updated_at: z.ZodString;
|
|
609
|
+
viewer: z.ZodOptional<z.ZodObject<{
|
|
610
|
+
voted: z.ZodBoolean;
|
|
611
|
+
}, z.core.$loose>>;
|
|
612
|
+
}, z.core.$loose>;
|
|
613
|
+
deduplicated: z.ZodBoolean;
|
|
614
|
+
request_id: z.ZodString;
|
|
615
|
+
}, z.core.$loose>;
|
|
616
|
+
readonly request_feature: z.ZodObject<{
|
|
617
|
+
data: z.ZodObject<{
|
|
618
|
+
comments: z.ZodNumber;
|
|
619
|
+
id: z.ZodString;
|
|
620
|
+
kind: z.ZodEnum<{
|
|
621
|
+
vehicle: "vehicle";
|
|
622
|
+
feature: "feature";
|
|
623
|
+
}>;
|
|
624
|
+
title: z.ZodString;
|
|
625
|
+
body: z.ZodNullable<z.ZodString>;
|
|
626
|
+
vehicle: z.ZodNullable<z.ZodObject<{
|
|
627
|
+
make: z.ZodString;
|
|
628
|
+
model: z.ZodString;
|
|
629
|
+
year: z.ZodNullable<z.ZodNumber>;
|
|
630
|
+
}, z.core.$loose>>;
|
|
631
|
+
status: z.ZodEnum<{
|
|
632
|
+
open: "open";
|
|
633
|
+
planned: "planned";
|
|
634
|
+
in_progress: "in_progress";
|
|
635
|
+
done: "done";
|
|
636
|
+
declined: "declined";
|
|
637
|
+
}>;
|
|
638
|
+
votes: z.ZodNumber;
|
|
639
|
+
author: z.ZodString;
|
|
640
|
+
url: z.ZodString;
|
|
641
|
+
created_at: z.ZodString;
|
|
642
|
+
updated_at: z.ZodString;
|
|
643
|
+
viewer: z.ZodOptional<z.ZodObject<{
|
|
644
|
+
voted: z.ZodBoolean;
|
|
645
|
+
}, z.core.$loose>>;
|
|
646
|
+
}, z.core.$loose>;
|
|
647
|
+
deduplicated: z.ZodBoolean;
|
|
648
|
+
request_id: z.ZodString;
|
|
649
|
+
}, z.core.$loose>;
|
|
650
|
+
readonly get_request: z.ZodObject<{
|
|
651
|
+
data: z.ZodObject<{
|
|
652
|
+
comment_count: z.ZodNumber;
|
|
653
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
654
|
+
id: z.ZodString;
|
|
655
|
+
request_id: z.ZodString;
|
|
656
|
+
body: z.ZodString;
|
|
657
|
+
author: z.ZodString;
|
|
658
|
+
created_at: z.ZodString;
|
|
659
|
+
}, z.core.$loose>>;
|
|
660
|
+
id: z.ZodString;
|
|
661
|
+
kind: z.ZodEnum<{
|
|
662
|
+
vehicle: "vehicle";
|
|
663
|
+
feature: "feature";
|
|
664
|
+
}>;
|
|
665
|
+
title: z.ZodString;
|
|
666
|
+
body: z.ZodNullable<z.ZodString>;
|
|
667
|
+
vehicle: z.ZodNullable<z.ZodObject<{
|
|
668
|
+
make: z.ZodString;
|
|
669
|
+
model: z.ZodString;
|
|
670
|
+
year: z.ZodNullable<z.ZodNumber>;
|
|
671
|
+
}, z.core.$loose>>;
|
|
672
|
+
status: z.ZodEnum<{
|
|
673
|
+
open: "open";
|
|
674
|
+
planned: "planned";
|
|
675
|
+
in_progress: "in_progress";
|
|
676
|
+
done: "done";
|
|
677
|
+
declined: "declined";
|
|
678
|
+
}>;
|
|
679
|
+
votes: z.ZodNumber;
|
|
680
|
+
author: z.ZodString;
|
|
681
|
+
url: z.ZodString;
|
|
682
|
+
created_at: z.ZodString;
|
|
683
|
+
updated_at: z.ZodString;
|
|
684
|
+
viewer: z.ZodOptional<z.ZodObject<{
|
|
685
|
+
voted: z.ZodBoolean;
|
|
686
|
+
}, z.core.$loose>>;
|
|
687
|
+
}, z.core.$loose>;
|
|
688
|
+
request_id: z.ZodString;
|
|
689
|
+
}, z.core.$loose>;
|
|
690
|
+
readonly upvote_request: z.ZodObject<{
|
|
691
|
+
data: z.ZodObject<{
|
|
692
|
+
comments: z.ZodNumber;
|
|
693
|
+
id: z.ZodString;
|
|
694
|
+
kind: z.ZodEnum<{
|
|
695
|
+
vehicle: "vehicle";
|
|
696
|
+
feature: "feature";
|
|
697
|
+
}>;
|
|
698
|
+
title: z.ZodString;
|
|
699
|
+
body: z.ZodNullable<z.ZodString>;
|
|
700
|
+
vehicle: z.ZodNullable<z.ZodObject<{
|
|
701
|
+
make: z.ZodString;
|
|
702
|
+
model: z.ZodString;
|
|
703
|
+
year: z.ZodNullable<z.ZodNumber>;
|
|
704
|
+
}, z.core.$loose>>;
|
|
705
|
+
status: z.ZodEnum<{
|
|
706
|
+
open: "open";
|
|
707
|
+
planned: "planned";
|
|
708
|
+
in_progress: "in_progress";
|
|
709
|
+
done: "done";
|
|
710
|
+
declined: "declined";
|
|
711
|
+
}>;
|
|
712
|
+
votes: z.ZodNumber;
|
|
713
|
+
author: z.ZodString;
|
|
714
|
+
url: z.ZodString;
|
|
715
|
+
created_at: z.ZodString;
|
|
716
|
+
updated_at: z.ZodString;
|
|
717
|
+
viewer: z.ZodOptional<z.ZodObject<{
|
|
718
|
+
voted: z.ZodBoolean;
|
|
719
|
+
}, z.core.$loose>>;
|
|
720
|
+
}, z.core.$loose>;
|
|
721
|
+
request_id: z.ZodString;
|
|
722
|
+
}, z.core.$loose>;
|
|
723
|
+
readonly comment_on_request: z.ZodObject<{
|
|
724
|
+
data: z.ZodObject<{
|
|
725
|
+
id: z.ZodString;
|
|
726
|
+
request_id: z.ZodString;
|
|
727
|
+
body: z.ZodString;
|
|
728
|
+
author: z.ZodString;
|
|
729
|
+
created_at: z.ZodString;
|
|
730
|
+
}, z.core.$loose>;
|
|
731
|
+
request_id: z.ZodString;
|
|
732
|
+
}, z.core.$loose>;
|
|
733
|
+
readonly share_building: z.ZodObject<{
|
|
734
|
+
data: z.ZodObject<{
|
|
735
|
+
building: z.ZodString;
|
|
736
|
+
updated_at: z.ZodString;
|
|
737
|
+
}, z.core.$loose>;
|
|
738
|
+
request_id: z.ZodString;
|
|
739
|
+
}, z.core.$loose>;
|
|
740
|
+
readonly share_referral: z.ZodObject<{
|
|
741
|
+
data: z.ZodObject<{
|
|
742
|
+
source: z.ZodEnum<{
|
|
743
|
+
search: "search";
|
|
744
|
+
ai_assistant: "ai_assistant";
|
|
745
|
+
github: "github";
|
|
746
|
+
npm: "npm";
|
|
747
|
+
twitter_x: "twitter_x";
|
|
748
|
+
linkedin: "linkedin";
|
|
749
|
+
reddit: "reddit";
|
|
750
|
+
hacker_news: "hacker_news";
|
|
751
|
+
youtube: "youtube";
|
|
752
|
+
friend_or_colleague: "friend_or_colleague";
|
|
753
|
+
blog_or_article: "blog_or_article";
|
|
754
|
+
other: "other";
|
|
755
|
+
}>;
|
|
756
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
757
|
+
updated_at: z.ZodString;
|
|
758
|
+
}, z.core.$loose>;
|
|
759
|
+
request_id: z.ZodString;
|
|
760
|
+
}, z.core.$loose>;
|
|
761
|
+
};
|
|
762
|
+
/** The tools that promise structured content, i.e. everything but `describe_api`. */
|
|
763
|
+
export type McpToolWithOutput = keyof typeof MCP_TOOL_OUTPUT_SCHEMAS;
|
|
764
|
+
export type McpToolOutput<N extends McpToolWithOutput> = z.infer<(typeof MCP_TOOL_OUTPUT_SCHEMAS)[N]>;
|
|
765
|
+
/** A catalog hit as either server holds it: the library's camelCase or the REST spelling. */
|
|
766
|
+
export interface VehicleMatchSource {
|
|
767
|
+
kind: "make" | "model";
|
|
768
|
+
makeName?: string;
|
|
769
|
+
makeSlug?: string;
|
|
770
|
+
modelName?: string;
|
|
771
|
+
modelSlug?: string;
|
|
772
|
+
vehicleType?: string;
|
|
773
|
+
matchKind?: string;
|
|
774
|
+
make_name?: string;
|
|
775
|
+
make_slug?: string;
|
|
776
|
+
model_name?: string;
|
|
777
|
+
model_slug?: string;
|
|
778
|
+
vehicle_type?: string;
|
|
779
|
+
match_kind?: string;
|
|
780
|
+
years?: number[];
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Normalizes a catalog hit into the one shape `search_vehicles` promises.
|
|
784
|
+
*
|
|
785
|
+
* The remote server reads the catalog library (camelCase) and the stdio one
|
|
786
|
+
* reads `GET /api/v1/vehicles?q=` (snake_case, and it omits `model_name`
|
|
787
|
+
* entirely on a make hit rather than sending null). Agents pass these straight
|
|
788
|
+
* to get_car_image, so both are mapped onto `make`/`model` with explicit nulls.
|
|
789
|
+
*/
|
|
790
|
+
export declare function toVehicleMatch(source: VehicleMatchSource): McpToolOutput<"search_vehicles">["data"]["results"][number];
|
|
791
|
+
/**
|
|
792
|
+
* Normalizes the options payload into the one shape `list_image_options`
|
|
793
|
+
* promises. `GET /api/v1/images/options` describes formats and catalog sources
|
|
794
|
+
* as objects and the year span as `{from, to}`; agents want bare ids and a
|
|
795
|
+
* `[from, to]` pair, so both that shape and an already-flat one are accepted.
|
|
796
|
+
* Anything else in the payload (`limits`, `sizes.source`) rides along untouched.
|
|
797
|
+
*/
|
|
798
|
+
export declare function toImageOptions(data: unknown): McpToolOutput<"list_image_options">["data"];
|
|
208
799
|
export interface McpToolAnnotations {
|
|
209
800
|
title?: string;
|
|
210
801
|
readOnlyHint?: boolean;
|
|
@@ -217,6 +808,8 @@ export interface McpToolDefinition<N extends McpToolName = McpToolName> {
|
|
|
217
808
|
title: string;
|
|
218
809
|
description: string;
|
|
219
810
|
inputSchema: (typeof MCP_TOOL_SCHEMAS)[N];
|
|
811
|
+
/** What `structuredContent` will hold; absent only on `describe_api`, which answers in prose. */
|
|
812
|
+
outputSchema?: N extends McpToolWithOutput ? (typeof MCP_TOOL_OUTPUT_SCHEMAS)[N] : undefined;
|
|
220
813
|
annotations: McpToolAnnotations;
|
|
221
814
|
}
|
|
222
815
|
export declare const MCP_TOOLS: {
|
|
@@ -224,7 +817,7 @@ export declare const MCP_TOOLS: {
|
|
|
224
817
|
};
|
|
225
818
|
export declare const MCP_TOOL_LIST: McpToolDefinition[];
|
|
226
819
|
export interface ApiEndpointReference {
|
|
227
|
-
method: "GET" | "POST";
|
|
820
|
+
method: "GET" | "POST" | "DELETE";
|
|
228
821
|
path: string;
|
|
229
822
|
summary: string;
|
|
230
823
|
auth: "bearer" | "public";
|
package/dist/mcp/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA6BzB,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,eAAO,MAAM,gBAAgB,QAY0R,CAAC;AASxT,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuB3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkHnB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,gBAAgB,CAAC;AACxD,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,WAAW,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AA0GxF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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