UNPKG

hud-sdk

Version:

Hud's Node SDK

93 lines (89 loc) 3.25 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">>; enableFrameworks: z.ZodOptional<z.ZodEffects<z.ZodUnion<[ z.ZodMap<z.ZodNativeEnum<{ axios: string; pg: string; nodeFetch: string; request: string; express: string; koa: string; graphql: string; http: string; https: string; nextjs: string; nestjs: string; kafkajs: string; confluentKafkaJs: string; codegenieServerlessExpress: string; sqs: string; serverlessHttp: string; }>, z.ZodBoolean>, z.ZodRecord<z.ZodNativeEnum<{ axios: string; pg: string; nodeFetch: string; request: string; express: string; koa: string; graphql: string; http: string; https: string; nextjs: string; nestjs: string; kafkajs: string; confluentKafkaJs: string; codegenieServerlessExpress: string; sqs: string; serverlessHttp: 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>; customOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { includeModules?: 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; customOptions?: Record<string, string> | undefined; }, { includeModules?: 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; customOptions?: Record<string, string> | undefined; }>; export type HudOptions = z.infer<typeof HudOptionsSchema>; declare const HudSessionOptionsSchema: z.ZodObject<{ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { tags?: Record<string, string> | undefined; }, { tags?: Record<string, string> | undefined; }>; export type HudSessionOptions = z.infer<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 {};