Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions src/lib/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,37 +67,6 @@ export const chatRequestSchema = z.object({
model: z.string(),
})

// Get tools request schema
export const getToolsRequestSchema = z.object({
url: z.string().url('Invalid URL format'),
name: z
.string()
.regex(
/^[a-zA-Z][a-zA-Z0-9_-]*$/,
'Name must start with a letter and can only contain letters, numbers, dashes, and underscores',
),
})

// Get tools response schema
export const getToolsResponseSchema = z.object({
status: z.enum(['ok', 'error', 'redirect']),
redirectUrl: z.string().optional(),
tools: z.record(toolStateSchema).optional(),
toolStates: z.record(toolStateSchema).optional(),
error: z.string().optional(),
})

// Server form schema
export const serverFormSchema = z.object({
name: z
.string()
.regex(
/^[a-zA-Z][a-zA-Z0-9_-]*$/,
'Name must start with a letter and can only contain letters, numbers, dashes, and underscores',
),
url: z.string().url('Invalid server URL'),
})

// Types
export type PomeriumServerInfo = z.infer<typeof pomeriumServerInfoSchema>
export type PomeriumRoutesResponse = z.infer<
Expand Down
49 changes: 0 additions & 49 deletions src/routes/api/get-tools.ts

This file was deleted.