UNPKG

mcp-wayback-machine

Version:

MCP server and CLI tool for interacting with the Wayback Machine without API keys

53 lines (45 loc) 1.7 kB
/** * Shared Zod schemas for Wayback Machine API responses. * Schema and type share the same name — TypeScript has separate value and type namespaces. */ import * as z from "zod"; /** * CDX API response — array of string arrays, first row is column headers. */ export declare const CdxResponse: z.ZodArray<z.ZodArray<z.ZodString>>; export type CdxResponse = z.output<typeof CdxResponse>; /** * Availability API response — closest archived snapshot for a URL. */ export declare const AvailabilityResponse: z.ZodObject<{ url: z.ZodString; archived_snapshots: z.ZodObject<{ closest: z.ZodOptional<z.ZodObject<{ status: z.ZodString; available: z.ZodBoolean; url: z.ZodString; timestamp: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; export type AvailabilityResponse = z.output<typeof AvailabilityResponse>; /** * Sparkline API response — yearly capture counts for a URL. */ export declare const SparklineResponse: z.ZodObject<{ years: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ "timeseries-csp": z.ZodArray<z.ZodNumber>; }, z.core.$strip>>>; }, z.core.$strip>; export type SparklineResponse = z.output<typeof SparklineResponse>; /** * SPN2 Save API response — job details after submitting a URL for archiving. */ export declare const SaveJobResponse: z.ZodObject<{ url: z.ZodOptional<z.ZodString>; job_id: z.ZodOptional<z.ZodString>; timestamp: z.ZodOptional<z.ZodString>; message: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type SaveJobResponse = z.output<typeof SaveJobResponse>; //# sourceMappingURL=schemas.d.ts.map