UNPKG

snowflake-sdk

Version:
65 lines (64 loc) 2.48 kB
export interface GlobalConfigOptionsTyped { /** * HTTP request timeout for CRL download. * * If the timeout is exceeded and certRevocationCheckMode is: * - `ENABLED`: the download will fail and the connection will be rejected. * - `ADVISORY`: the download will fail but the connection will be allowed. * * This option applies only when certRevocationCheckMode is `ADVISORY` or `ENABLED` * * @default 10000 (ms) */ crlDownloadTimeout: number; /** * Maximum allowed size for a CRL download response. * * If the limit is exceeded and certRevocationCheckMode is: * - `ENABLED`: the download will fail and the connection will be rejected. * - `ADVISORY`: the download will fail but the connection will be allowed. * * @default 20971520 (20 MB in bytes) */ crlDownloadMaxSize: number; /** * Time after which cached CRL entries are invalidated. * * This option applies only when certRevocationCheckMode is `ADVISORY` or `ENABLED` and * crlInMemoryCache or crlOnDiskCache is true * * @default 86400000 (24 hours in ms) */ crlCacheValidityTime: number; /** * Directory path to store CRL cache when crlOnDiskCache is true. * * @default * Reads from process.env.SNOWFLAKE_CRL_ON_DISK_CACHE_DIR if available. * Otherwise, defaults to: * - Windows: %USERPROFILE%/AppData/Local/Snowflake/Caches/crls * - Linux: $HOME/.cache/snowflake/crls * - macOS: $HOME/Library/Caches/Snowflake/crls */ crlCacheDir: string; /** * EXPERIMENTAL: enable multipart / resumable stage uploads for large files. * When false (default) all uploads use the single-request path. * * Part size and threshold are not user-configurable; see * lib/file_transfer_agent/multipart.ts. * * This is an experimental flag and may be removed in any future release * without notice. Do not rely on it for production behavior. * * @default false */ enableExperimentalMultipartUploads: boolean; } export declare const GLOBAL_CONFIG_DEFAULTS: GlobalConfigOptionsTyped; export declare const globalConfigCustomValues: Partial<GlobalConfigOptionsTyped>; declare const _default: { setValues: (options: Partial<GlobalConfigOptionsTyped>) => void; getValue: <K extends keyof GlobalConfigOptionsTyped>(key: K) => GlobalConfigOptionsTyped[K]; }; export default _default;