chore(deps): update dependency @smithery/cli to v2 (#202)
* chore(deps): update dependency @smithery/cli to v2 * updates Zod to v4 and Smithery to v2 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Sampson <jjdsampson@gmail.com>
This commit is contained in:
1 parent
a40d752172
commit
387eb1019e
9 files changed
+458
-84
No files matched your search
@@ -24,7 +24,6 @@ export const params = z.object({
|
||||
)
|
||||
.optional(),
|
||||
count: z
|
||||
.number()
|
||||
.int()
|
||||
.min(1)
|
||||
.max(200)
|
||||
|
||||
@@ -3,20 +3,20 @@ import { ConfidenceSchema, ExtraSchema } from './response.js';
|
||||
|
||||
export const SimplifiedImageResultSchema = z.object({
|
||||
title: z.string(),
|
||||
url: z.string().url(),
|
||||
page_fetched: z.string().datetime(),
|
||||
url: z.url(),
|
||||
page_fetched: z.iso.datetime(),
|
||||
confidence: ConfidenceSchema,
|
||||
properties: z.object({
|
||||
url: z.string().url(),
|
||||
width: z.number().int().positive(),
|
||||
height: z.number().int().positive(),
|
||||
url: z.url(),
|
||||
width: z.int().positive(),
|
||||
height: z.int().positive(),
|
||||
}),
|
||||
});
|
||||
|
||||
const OutputSchema = z.object({
|
||||
type: z.literal('object'),
|
||||
items: z.array(SimplifiedImageResultSchema),
|
||||
count: z.number().int().nonnegative(),
|
||||
count: z.int().nonnegative(),
|
||||
might_be_offensive: ExtraSchema.shape.might_be_offensive,
|
||||
});
|
||||
|
||||
|
||||
@@ -15,23 +15,23 @@ const QuerySchema = z.object({
|
||||
});
|
||||
|
||||
const ThumbnailSchema = z.object({
|
||||
src: z.string().url().optional().describe('The URL of the thumbnail.'),
|
||||
width: z.number().int().positive().optional().describe('The width of the thumbnail.'),
|
||||
height: z.number().int().positive().optional().describe('The height of the thumbnail.'),
|
||||
src: z.url().optional().describe('The URL of the thumbnail.'),
|
||||
width: z.int().positive().optional().describe('The width of the thumbnail.'),
|
||||
height: z.int().positive().optional().describe('The height of the thumbnail.'),
|
||||
});
|
||||
|
||||
const PropertiesSchema = z.object({
|
||||
url: z.string().url().optional().describe('The URL of the image.'),
|
||||
placeholder: z.string().url().optional().describe('The lower resolution placeholder image.'),
|
||||
width: z.number().int().positive().optional().describe('The width of the image.'),
|
||||
height: z.number().int().positive().optional().describe('The height of the image.'),
|
||||
url: z.url().optional().describe('The URL of the image.'),
|
||||
placeholder: z.url().optional().describe('The lower resolution placeholder image.'),
|
||||
width: z.int().positive().optional().describe('The width of the image.'),
|
||||
height: z.int().positive().optional().describe('The height of the image.'),
|
||||
});
|
||||
|
||||
const MetaUrlSchema = z.object({
|
||||
scheme: z.enum(['https', 'http']).optional().describe('The scheme of the URL.'),
|
||||
netloc: z.string().optional().describe('The network location of the URL.'),
|
||||
hostname: z.string().optional().describe('The lowercased hostname of the URL.'),
|
||||
favicon: z.string().url().optional().describe('The URL of the favicon of the URL.'),
|
||||
favicon: z.url().optional().describe('The URL of the favicon of the URL.'),
|
||||
path: z.string().optional().describe('The path of the URL (useful as a display string).'),
|
||||
});
|
||||
|
||||
@@ -42,13 +42,9 @@ export const ConfidenceSchema = z
|
||||
const ImageResultSchema = z.object({
|
||||
type: z.literal('image_result').describe('The type of result.'),
|
||||
title: z.string().optional().describe('The title of the image.'),
|
||||
url: z.string().url().optional().describe('The URL of the image.'),
|
||||
source: z.string().url().optional().describe('The source URL of the image.'),
|
||||
page_fetched: z
|
||||
.string()
|
||||
.datetime()
|
||||
.optional()
|
||||
.describe('The date and time the page was fetched.'),
|
||||
url: z.url().optional().describe('The URL of the image.'),
|
||||
source: z.url().optional().describe('The source URL of the image.'),
|
||||
page_fetched: z.iso.datetime().optional().describe('The date and time the page was fetched.'),
|
||||
thumbnail: ThumbnailSchema.optional().describe('The thumbnail of the image.'),
|
||||
properties: PropertiesSchema.optional().describe('The metadata for the image.'),
|
||||
meta_url: MetaUrlSchema.optional().describe(
|
||||
|
||||
@@ -28,7 +28,6 @@ export const params = z.object({
|
||||
)
|
||||
.optional(),
|
||||
count: z
|
||||
.number()
|
||||
.int()
|
||||
.min(1)
|
||||
.max(50)
|
||||
@@ -36,7 +35,6 @@ export const params = z.object({
|
||||
.describe('Number of results (1-50, default 20)')
|
||||
.optional(),
|
||||
offset: z
|
||||
.number()
|
||||
.int()
|
||||
.min(0)
|
||||
.max(9)
|
||||
|
||||
@@ -31,7 +31,6 @@ export const params = z.object({
|
||||
)
|
||||
.optional(),
|
||||
count: z
|
||||
.number()
|
||||
.int()
|
||||
.min(1)
|
||||
.max(50)
|
||||
@@ -41,7 +40,6 @@ export const params = z.object({
|
||||
)
|
||||
.optional(),
|
||||
offset: z
|
||||
.number()
|
||||
.int()
|
||||
.min(0)
|
||||
.max(9)
|
||||
|
||||
@@ -156,7 +156,6 @@ export const params = z.object({
|
||||
)
|
||||
.optional(),
|
||||
count: z
|
||||
.number()
|
||||
.int()
|
||||
.min(1)
|
||||
.max(20)
|
||||
@@ -166,7 +165,6 @@ export const params = z.object({
|
||||
)
|
||||
.optional(),
|
||||
offset: z
|
||||
.number()
|
||||
.int()
|
||||
.min(0)
|
||||
.max(9)
|
||||
|
||||
Reference in new issue
Block a user