Variable CachedConfigurationSchemaConst
CachedConfigurationSchema: ZodObject<
extendShape<
{
cache: ZodOptional<
ZodObject<
{
cache_duration_minutes: ZodDefault<ZodNumber>;
cache_file: ZodDefault<ZodString>;
},
"strip",
ZodTypeAny,
{ cache_duration_minutes: number; cache_file: string },
{ cache_duration_minutes?: number; cache_file?: string },
>,
>;
number: ZodDefault<ZodNumber>;
shuffle: ZodOptional<ZodDefault<ZodBoolean>>;
sources: ZodArray<
ZodObject<
{
filter: ZodOptional<
ZodFunction<ZodTuple<[ZodString], ZodUnknown>, ZodBoolean>,
>;
title: ZodString;
url: ZodString;
},
"strip",
ZodTypeAny,
{
filter?: (...args: [string, ...unknown[]]) => boolean;
title: string;
url: string;
},
{
filter?: (...args: [string, ...unknown[]]) => boolean;
title: string;
url: string;
},
>,
"many",
>;
truncate: ZodDefault<ZodNumber>;
},
{
cache: ZodObject<
{
cache_duration_minutes: ZodDefault<ZodNumber>;
cache_file: ZodDefault<ZodString>;
},
"strip",
ZodTypeAny,
{ cache_duration_minutes: number; cache_file: string },
{ cache_duration_minutes?: number; cache_file?: string },
>;
},
>,
"strip",
ZodTypeAny,
{
cache: { cache_duration_minutes: number; cache_file: string };
number: number;
shuffle?: boolean;
sources: {
filter?: (...args: [string, ...unknown[]]) => boolean;
title: string;
url: string;
}[];
truncate: number;
},
{
cache: { cache_duration_minutes?: number; cache_file?: string };
number?: number;
shuffle?: boolean;
sources: {
filter?: (...args: [string, ...unknown[]]) => boolean;
title: string;
url: string;
}[];
truncate?: number;
},
> = ...
A configuration object with caching definitely configured