UNPKG

@varia-bly/variably-sdk

Version:

Official JavaScript/TypeScript SDK for Variably feature flags, experimentation, LLM experiments with React hooks, and real-time dynamic configurations

28 lines 3.06 kB
/** * Variably JavaScript/TypeScript SDK * Official SDK for feature flags and experimentation */ export { VariablyClient, createClient, createClientFromEnv } from './client'; export { DynamicConfigClient } from './dynamic-config-client'; export type { DynamicConfigClientConfig, DynamicConfigResult, ConfigChangeCallback } from './dynamic-config-client'; export { WebSocketClient } from './websocket-client'; export type { WebSocketConfig, WebSocketMessage, SubscriptionRequest, ConfigUpdateEvent, ConfigUpdateCallback, ConnectionStateCallback, ErrorCallback } from './websocket-client'; export type { VariablyConfig, UserContext, Event, FlagResult, CacheConfig, RealTimeUpdatesConfig, DynamicConfigEvaluationRequest, DynamicConfigEvaluationResponse, DynamicConfigBatchRequest, DynamicConfigBatchResponse } from './types'; export type { FeatureGateUpdate, FeatureGateUpdateCallback, ConnectionStateCallback as SubscriptionConnectionStateCallback } from './graphql-subscription-client'; export { VariablyError, NetworkError, AuthenticationError, ValidationError } from './errors'; export { CacheManager, MemoryCache, BrowserCache } from './cache'; export { StatisticalAnalysis } from './statistical-analysis'; export type { ABTestResult, CohortAnalysisResult, FunnelAnalysisResult, FunnelStep } from './statistical-analysis'; export { RealTimeAlerting } from './alerting'; export type { MetricThreshold, MetricAlert, AlertChannel, MetricDataPoint, WebhookConfig, EmailConfig, SlackConfig, ConsoleConfig } from './alerting'; export { AutoTracker } from './auto-tracker'; export type { AutoTrackConfig, ConversionTrackingConfig, ConversionEvent, DataExtractionConfig } from './types'; export { VariablyRESTClient, createRESTClient, createRESTClientFromEnv, PromptContextBuilder } from './rest-client'; export type { RESTClientConfig, PromptEvaluationOptions, PromptEvaluationResponse, PromptExperiment, PromptExperimentSummary, SubmitScoringRequest, ScoringSubmitResponse, ScoringResult, ScoringRequest, ScoringStats, TrackMetricRequest, TrackEventRequest, EvaluationContext, ReferenceMaterial, WorkflowStep, } from './rest-client'; export { VariablyLLMClient } from './llm-client'; export { VariablyLLMClient as LLMClient } from './llm-client'; export type { LLMProvider, LLMConfig, PromptExecutionRequest, PromptExecutionResponse, LLMUserContext, PromptVariant, LLMResponse, TokenUsage, EvaluationCriteria, QualityDimension, EvaluationRule, EvaluationResult, RuleResult, ResponseEvaluationRequest, ResponseEvaluationResponse, ComparisonResult, Difference, ImprovementRecommendation, StreamingOptions, StreamChunk, ConversationContext, ConversationMessage, BatchPromptRequest, BatchPromptResponse, LLMCacheConfig, CachedResponse, PerformanceMetrics, TrackingInfo, LLMSDKMetrics, ExportFormat, ExportResult, LLMError } from './llm-types'; export { useLLMPrompt, useLLMStreaming, useConversation, useLLMEvaluation, useLLMClient } from './react-hooks'; import { VariablyClient } from './client'; export default VariablyClient; //# sourceMappingURL=index.d.ts.map