ktx/packages/context/src/sl/tools/connection-id-schema.ts
2026-05-10 23:12:26 +02:00

6 lines
192 B
TypeScript

import { z } from 'zod';
export const slToolConnectionIdSchema = z
.string()
.min(1)
.regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/, 'Connection id must be alphanumeric and may contain _ or -');