Files
express-twtkpr/dist/src/lib/env.d.ts
Eric Woodward 8658a14200 Move plugins to express-twtkpr-core-plugins package
Add plugin structure
Fix stale cache after posting
Update to v0.9.0
2026-05-12 23:43:26 -04:00

58 lines
3.5 KiB
TypeScript

import { z } from 'zod/v4';
export declare const env: {
NODE_ENV: "development" | "production" | "test";
TWTKPR_REFRESH_SECRET: string;
TWTKPR_ACCESS_SECRET: string;
TWTKPR_DEFAULT_ROUTE: string;
TWTKPR_PLUGIN_ROUTE: string;
TWTKPR_PRIVATE_DIRECTORY: string;
TWTKPR_PUBLIC_DIRECTORY: string;
TWTKPR_QUERY_PARAMETER_APP: string;
TWTKPR_QUERY_PARAMETER_CSS: string;
TWTKPR_QUERY_PARAMETER_FOLLOWING: string;
TWTKPR_QUERY_PARAMETER_JS: string;
TWTKPR_QUERY_PARAMETER_LOGOUT: string;
TWTKPR_QUERY_PARAMETER_METADATA: string;
TWTKPR_QUERY_PARAMETER_TWT: string;
TWTKPR_QUERY_PARAMETER_TWTS: string;
TWTKPR_TWTXT_FILENAME: string;
TWTKPR_POST_LIMITER_ACTIVE: boolean;
TWTKPR_UPLOAD_ACTIVE: boolean;
TWTKPR_UPLOAD_ALLOWED_MIME_TYPES: string | string[];
TWTKPR_UPLOAD_ROUTE: string;
TWTKPR_UPLOAD_ENCODING: string;
TWTKPR_UPLOAD_HASH_ALGORITHM: string | boolean;
TWTKPR_UPLOAD_KEEP_EXTENSIONS: boolean;
TWTKPR_POST_LIMITER_WINDOW_MS?: number | undefined;
TWTKPR_POST_LIMITER_LIMIT?: number | z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_POST_LIMITER_MESSAGE?: any;
TWTKPR_POST_LIMITER_STATUS_CODE?: number | undefined;
TWTKPR_POST_LIMITER_HANDLER?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_POST_LIMITER_LEGACY_HEADERS?: boolean | undefined;
TWTKPR_POST_LIMITER_STANDARD_HEADERS?: string | boolean | undefined;
TWTKPR_POST_LIMITER_IDENTIFIER?: string | z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_POST_LIMITER_STORE?: any;
TWTKPR_POST_LIMITER_PASS_ON_STORE_ERROR?: boolean | undefined;
TWTKPR_POST_LIMITER_KEY_GENERATOR?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_POST_LIMITER_IPV6_SUBNET?: number | boolean | z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_POST_LIMITER_REQUEST_PROPERTY_NAME?: string | undefined;
TWTKPR_POST_LIMITER_SKIP?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_POST_LIMITER_SKIP_SUCCESSFUL_REQUESTS?: boolean | undefined;
TWTKPR_POST_LIMITER_SKIP_FAILED_REQUESTS?: boolean | undefined;
TWTKPR_POST_LIMITER_REQUEST_WAS_SUCCESSFUL?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_POST_LIMITER_VALIDATE?: boolean | Record<string, never> | undefined;
TWTKPR_UPLOAD_ALLOW_EMPTY_FILES?: boolean | undefined;
TWTKPR_UPLOAD_CREATE_DIRS_FROM_UPLOADS?: boolean | undefined;
TWTKPR_UPLOAD_DIRECTORY?: string | undefined;
TWTKPR_UPLOAD_FILE_WRITE_STREAM_HANDLER?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_UPLOAD_FILENAME?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_UPLOAD_FILTER?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
TWTKPR_UPLOAD_MAX_FIELDS?: number | undefined;
TWTKPR_UPLOAD_MAX_FIELDS_SIZE?: number | undefined;
TWTKPR_UPLOAD_MAX_FILE_SIZE?: number | undefined;
TWTKPR_UPLOAD_MAX_FILES?: number | undefined;
TWTKPR_UPLOAD_MAX_TOTAL_FILE_SIZE?: number | undefined;
TWTKPR_UPLOAD_MIN_FILE_SIZE?: number | undefined;
};
export declare const __dirname: string;