- Export McpbManifestAny and Logger types from types.js - Export McpbSignatureInfo and McpbUserConfigValues from shared/common.ts - Add exports to both main and browser entry points - Bump version to 2.0.1 This eliminates the need for manual type inference in consuming code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
616 B
TypeScript
18 lines
616 B
TypeScript
import { z } from "zod";
|
|
|
|
export const McpbUserConfigValuesSchema = z.record(
|
|
z.string(),
|
|
z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),
|
|
);
|
|
|
|
export const McpbSignatureInfoSchema = z.strictObject({
|
|
status: z.enum(["signed", "unsigned", "self-signed"]),
|
|
publisher: z.string().optional(),
|
|
issuer: z.string().optional(),
|
|
valid_from: z.string().optional(),
|
|
valid_to: z.string().optional(),
|
|
fingerprint: z.string().optional(),
|
|
});
|
|
|
|
export type McpbSignatureInfo = z.infer<typeof McpbSignatureInfoSchema>;
|
|
export type McpbUserConfigValues = z.infer<typeof McpbUserConfigValuesSchema>;
|