UNPKG

hud-sdk

Version:

Hud's Node SDK

158 lines (154 loc) 5.06 kB
// Generated by dts-bundle-generator v9.5.1 import { z } from 'zod'; declare const HudOptionsSchema: z.ZodObject<{ includeModules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; excludeDirs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; enableFrameworks: z.ZodOptional<z.ZodEffects<z.ZodUnion<[ z.ZodMap<z.ZodNativeEnum<{ axios: string; pg: string; ioredis: string; nodeFetch: string; request: string; express: string; fastify: string; hapi: string; hono: string; koa: string; graphql: string; http: string; https: string; nextjs: string; nestjs: string; kafkajs: string; confluentKafkaJs: string; codegenieServerlessExpress: string; sqs: string; serverlessHttp: string; mongodb: string; mongoose: string; clickhouse: string; pubsub: string; bullmq: string; amqplib: string; servicebus: string; eventHubs: string; }>, z.ZodBoolean>, z.ZodRecord<z.ZodNativeEnum<{ axios: string; pg: string; ioredis: string; nodeFetch: string; request: string; express: string; fastify: string; hapi: string; hono: string; koa: string; graphql: string; http: string; https: string; nextjs: string; nestjs: string; kafkajs: string; confluentKafkaJs: string; codegenieServerlessExpress: string; sqs: string; serverlessHttp: string; mongodb: string; mongoose: string; clickhouse: string; pubsub: string; bullmq: string; amqplib: string; servicebus: string; eventHubs: string; }>, z.ZodBoolean> ]>, Map<string, boolean>, Map<string, boolean> | Record<string, boolean>>>; maxMappedFunctions: z.ZodOptional<z.ZodNumber>; minPodMemoryMB: z.ZodOptional<z.ZodNumber>; maxFileSizeBytes: z.ZodOptional<z.ZodNumber>; maxTimeUntilInitSessionMs: z.ZodOptional<z.ZodNumber>; verbose: z.ZodOptional<z.ZodBoolean>; disableSourceMapsResolution: z.ZodOptional<z.ZodBoolean>; disableRuntimeInstrumentation: z.ZodOptional<z.ZodBoolean>; disableParametersExtraction: z.ZodOptional<z.ZodBoolean>; disableDetachedFunctions: z.ZodOptional<z.ZodBoolean>; customForensicsStorage: z.ZodOptional<z.ZodObject<{ bucket: z.ZodString; region: z.ZodString; prefix: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { bucket: string; region: string; prefix?: string | undefined; }, { bucket: string; region: string; prefix?: string | undefined; }>>; flushOnExit: z.ZodOptional<z.ZodBoolean>; flushOnUncaughtException: z.ZodOptional<z.ZodBoolean>; customOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { includeModules?: string[] | undefined; excludeDirs?: string[] | undefined; enableFrameworks?: Map<string, boolean> | undefined; maxMappedFunctions?: number | undefined; minPodMemoryMB?: number | undefined; maxFileSizeBytes?: number | undefined; maxTimeUntilInitSessionMs?: number | undefined; verbose?: boolean | undefined; disableSourceMapsResolution?: boolean | undefined; disableRuntimeInstrumentation?: boolean | undefined; disableParametersExtraction?: boolean | undefined; disableDetachedFunctions?: boolean | undefined; customForensicsStorage?: { bucket: string; region: string; prefix?: string | undefined; } | undefined; flushOnExit?: boolean | undefined; flushOnUncaughtException?: boolean | undefined; customOptions?: Record<string, string> | undefined; }, { includeModules?: string[] | undefined; excludeDirs?: string[] | undefined; enableFrameworks?: Map<string, boolean> | Record<string, boolean> | undefined; maxMappedFunctions?: number | undefined; minPodMemoryMB?: number | undefined; maxFileSizeBytes?: number | undefined; maxTimeUntilInitSessionMs?: number | undefined; verbose?: boolean | undefined; disableSourceMapsResolution?: boolean | undefined; disableRuntimeInstrumentation?: boolean | undefined; disableParametersExtraction?: boolean | undefined; disableDetachedFunctions?: boolean | undefined; customForensicsStorage?: { bucket: string; region: string; prefix?: string | undefined; } | undefined; flushOnExit?: boolean | undefined; flushOnUncaughtException?: boolean | undefined; customOptions?: Record<string, string> | undefined; }>; export type HudOptions = z.input<typeof HudOptionsSchema>; declare const HudSessionOptionsSchema: z.ZodObject<{ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; deploymentId: z.ZodOptional<z.ZodString>; forensicsOnly: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { tags?: Record<string, string> | undefined; deploymentId?: string | undefined; forensicsOnly?: boolean | undefined; }, { tags?: Record<string, string> | undefined; deploymentId?: string | undefined; forensicsOnly?: boolean | undefined; }>; export type HudSessionOptions = z.input<typeof HudSessionOptionsSchema>; export declare function initSession(apiKey: string, service: string, options?: HudSessionOptions): Promise<any>; export declare function register(options?: HudOptions): void; export declare function rehook(): void; export {};