@umituz/web-ai 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AIErrors-CLjXRty-.d.ts → AIErrors-CSk4nvN1.d.ts} +1 -1
- package/dist/{AIErrors-DjZXUiLT.d.cts → AIErrors-Dq9o95R_.d.cts} +1 -1
- package/dist/{cancellation-error-CkMn5Kft.d.ts → cancellation-error-Ci8fQhNF.d.ts} +3 -3
- package/dist/{cancellation-error-Cj7fJyCg.d.cts → cancellation-error-CpkPd67D.d.cts} +3 -3
- package/dist/chat/index.d.cts +4 -4
- package/dist/chat/index.d.ts +4 -4
- package/dist/{chat.service-9M-KpLo-.d.cts → chat.service-BRtiA7H9.d.cts} +2 -2
- package/dist/{chat.service-B4FLFxR1.d.ts → chat.service-Cqga2h1e.d.ts} +2 -2
- package/dist/content/index.d.cts +7 -7
- package/dist/content/index.d.ts +7 -7
- package/dist/core/index.cjs +482 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +212 -5
- package/dist/core/index.d.ts +212 -5
- package/dist/core/index.js +446 -1
- package/dist/core/index.js.map +1 -1
- package/dist/{create-ai-0eZFFqTw.d.ts → create-ai-DW7eHMBF.d.ts} +3 -3
- package/dist/{create-ai-BrKR_5fQ.d.cts → create-ai-DeOpUgZ-.d.cts} +3 -3
- package/dist/hooks/index.d.cts +9 -9
- package/dist/hooks/index.d.ts +9 -9
- package/dist/{index-DIHz8_OJ.d.ts → index-Ca5o4gBK.d.ts} +1 -1
- package/dist/{index-fXjxTR5W.d.cts → index-DDzvTDg0.d.cts} +1 -1
- package/dist/{index-fXjxTR5W.d.ts → index-DDzvTDg0.d.ts} +1 -1
- package/dist/{index-DKHNcMbl.d.cts → index-itgxPeLz.d.cts} +1 -1
- package/dist/index.cjs +482 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +446 -1
- package/dist/index.js.map +1 -1
- package/dist/{provider.factory-BwPnqSEU.d.ts → provider.factory-CJuI08Xr.d.ts} +1 -1
- package/dist/{provider.factory-DyfJtR8M.d.cts → provider.factory-DG2CYFgh.d.cts} +1 -1
- package/dist/providers/index.d.cts +9 -9
- package/dist/providers/index.d.ts +9 -9
- package/dist/{requestQueue-CvxWxC-z.d.ts → requestQueue-D-RCbxuR.d.ts} +4 -4
- package/dist/{requestQueue-CkJ6Xc9K.d.cts → requestQueue-O6f8VBl5.d.cts} +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ProviderHealth, T as TextRequest, G as GenerationResult,
|
|
1
|
+
import { P as ProviderHealth, T as TextRequest, G as GenerationResult, a as StructuredTextRequest, S as StructuredGeneration, d as StreamCallbacks, b as TextTier } from './index-DDzvTDg0.js';
|
|
2
2
|
import { T as TextGenerationRequest, I as ImageGenerationRequest, V as VideoGenerationRequest, G as GeneratedContent, a as ImageToVideoRequest, b as VideoToVideoRequest } from './ProviderConfig-DIFa9nmG.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ProviderHealth, T as TextRequest, G as GenerationResult,
|
|
1
|
+
import { P as ProviderHealth, T as TextRequest, G as GenerationResult, a as StructuredTextRequest, S as StructuredGeneration, d as StreamCallbacks, b as TextTier } from './index-DDzvTDg0.cjs';
|
|
2
2
|
import { T as TextGenerationRequest, I as ImageGenerationRequest, V as VideoGenerationRequest, G as GeneratedContent, a as ImageToVideoRequest, b as VideoToVideoRequest } from './ProviderConfig-DIFa9nmG.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { C as CostEstimateRequest, d as ITextProvider, a as IMediaProvider } from '../provider.factory-
|
|
2
|
-
export { A as AnyProvider, I as IAIProvider, b as IProviderBase, P as ProviderCapability, e as ProviderFactory, f as ProviderFactoryConfig, g as createProviderFactory, i as isMediaProvider, h as isTextProvider } from '../provider.factory-
|
|
3
|
-
import { P as ProviderHealth,
|
|
4
|
-
import { A as AIError, c as TierModelMap } from '../index-
|
|
5
|
-
import { h as AnthropicProviderConfig, e as AnthropicEffort, x as AnthropicMessage, f as AnthropicMessagesRequest, i as AnthropicStopReason, g as AnthropicMessagesResponse, t as GroqProviderConfig, r as GroqMessage, q as GroqGenerationConfig, k as GroqChatRequest, l as GroqChatResponse, S as StreamRequestOptions$1, s as GroqMessageRole, u as GroqReasoningEffort } from '../create-ai-
|
|
6
|
-
export { A as AIProviderConfig, a as ANTHROPIC_API_VERSION, b as ANTHROPIC_DEFAULT_MAX_TOKENS, c as ANTHROPIC_MODELS, d as ANTHROPIC_TIERS, j as AnthropicStreamEvent, G as GroqChatChunk, m as GroqChoice, n as GroqChunkChoice, o as GroqConfig, p as GroqErrorResponse, v as GroqUsage, w as createAI } from '../create-ai-
|
|
1
|
+
import { C as CostEstimateRequest, d as ITextProvider, a as IMediaProvider } from '../provider.factory-DG2CYFgh.cjs';
|
|
2
|
+
export { A as AnyProvider, I as IAIProvider, b as IProviderBase, P as ProviderCapability, e as ProviderFactory, f as ProviderFactoryConfig, g as createProviderFactory, i as isMediaProvider, h as isTextProvider } from '../provider.factory-DG2CYFgh.cjs';
|
|
3
|
+
import { P as ProviderHealth, b as TextTier, T as TextRequest, G as GenerationResult, a as StructuredTextRequest, S as StructuredGeneration, d as StreamCallbacks, F as FinishReason, C as ChatMessage, c as TokenUsage } from '../index-DDzvTDg0.cjs';
|
|
4
|
+
import { A as AIError, c as TierModelMap } from '../index-itgxPeLz.cjs';
|
|
5
|
+
import { h as AnthropicProviderConfig, e as AnthropicEffort, x as AnthropicMessage, f as AnthropicMessagesRequest, i as AnthropicStopReason, g as AnthropicMessagesResponse, t as GroqProviderConfig, r as GroqMessage, q as GroqGenerationConfig, k as GroqChatRequest, l as GroqChatResponse, S as StreamRequestOptions$1, s as GroqMessageRole, u as GroqReasoningEffort } from '../create-ai-DeOpUgZ-.cjs';
|
|
6
|
+
export { A as AIProviderConfig, a as ANTHROPIC_API_VERSION, b as ANTHROPIC_DEFAULT_MAX_TOKENS, c as ANTHROPIC_MODELS, d as ANTHROPIC_TIERS, j as AnthropicStreamEvent, G as GroqChatChunk, m as GroqChoice, n as GroqChunkChoice, o as GroqConfig, p as GroqErrorResponse, v as GroqUsage, w as createAI } from '../create-ai-DeOpUgZ-.cjs';
|
|
7
7
|
import { b as CacheStats } from '../cache-manager-Df9LLYGA.cjs';
|
|
8
8
|
import { b as RetryManager, a as RequestQueue, R as RequestDeduplicator } from '../request-deduplicator.util-NDo0_n1y.cjs';
|
|
9
|
-
import { b as IGroqHttpClient, T as TextGenerationService, a as GenerationStage, f as PrunaModelId, h as PrunaPredictionResponse, m as TextToVideoInput, G as GenerateOptions, j as PrunaResult, e as PrunaInput } from '../cancellation-error-
|
|
10
|
-
export { C as CancellationError, I as IGroqChatService, c as ImageToImageInput, d as ImageToVideoInput, P as PrunaAspectRatio, g as PrunaOutput, i as PrunaResolution, S as StreamingCallbacks, k as StructuredGenerationOptions, n as TextGenerationOptions, l as TextToImageInput } from '../cancellation-error-
|
|
11
|
-
import { d as ChatService } from '../chat.service-
|
|
9
|
+
import { b as IGroqHttpClient, T as TextGenerationService, a as GenerationStage, f as PrunaModelId, h as PrunaPredictionResponse, m as TextToVideoInput, G as GenerateOptions, j as PrunaResult, e as PrunaInput } from '../cancellation-error-CpkPd67D.cjs';
|
|
10
|
+
export { C as CancellationError, I as IGroqChatService, c as ImageToImageInput, d as ImageToVideoInput, P as PrunaAspectRatio, g as PrunaOutput, i as PrunaResolution, S as StreamingCallbacks, k as StructuredGenerationOptions, n as TextGenerationOptions, l as TextToImageInput } from '../cancellation-error-CpkPd67D.cjs';
|
|
11
|
+
import { d as ChatService } from '../chat.service-BRtiA7H9.cjs';
|
|
12
12
|
import { c as GeminiConfig, I as ImageGenerationRequest, G as GeneratedContent, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest, F as FalConfig, P as PrunaConfig } from '../ProviderConfig-DIFa9nmG.cjs';
|
|
13
13
|
|
|
14
14
|
interface BaseProviderConfig {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { C as CostEstimateRequest, d as ITextProvider, a as IMediaProvider } from '../provider.factory-
|
|
2
|
-
export { A as AnyProvider, I as IAIProvider, b as IProviderBase, P as ProviderCapability, e as ProviderFactory, f as ProviderFactoryConfig, g as createProviderFactory, i as isMediaProvider, h as isTextProvider } from '../provider.factory-
|
|
3
|
-
import { P as ProviderHealth,
|
|
4
|
-
import { A as AIError, c as TierModelMap } from '../index-
|
|
5
|
-
import { h as AnthropicProviderConfig, e as AnthropicEffort, x as AnthropicMessage, f as AnthropicMessagesRequest, i as AnthropicStopReason, g as AnthropicMessagesResponse, t as GroqProviderConfig, r as GroqMessage, q as GroqGenerationConfig, k as GroqChatRequest, l as GroqChatResponse, S as StreamRequestOptions$1, s as GroqMessageRole, u as GroqReasoningEffort } from '../create-ai-
|
|
6
|
-
export { A as AIProviderConfig, a as ANTHROPIC_API_VERSION, b as ANTHROPIC_DEFAULT_MAX_TOKENS, c as ANTHROPIC_MODELS, d as ANTHROPIC_TIERS, j as AnthropicStreamEvent, G as GroqChatChunk, m as GroqChoice, n as GroqChunkChoice, o as GroqConfig, p as GroqErrorResponse, v as GroqUsage, w as createAI } from '../create-ai-
|
|
1
|
+
import { C as CostEstimateRequest, d as ITextProvider, a as IMediaProvider } from '../provider.factory-CJuI08Xr.js';
|
|
2
|
+
export { A as AnyProvider, I as IAIProvider, b as IProviderBase, P as ProviderCapability, e as ProviderFactory, f as ProviderFactoryConfig, g as createProviderFactory, i as isMediaProvider, h as isTextProvider } from '../provider.factory-CJuI08Xr.js';
|
|
3
|
+
import { P as ProviderHealth, b as TextTier, T as TextRequest, G as GenerationResult, a as StructuredTextRequest, S as StructuredGeneration, d as StreamCallbacks, F as FinishReason, C as ChatMessage, c as TokenUsage } from '../index-DDzvTDg0.js';
|
|
4
|
+
import { A as AIError, c as TierModelMap } from '../index-Ca5o4gBK.js';
|
|
5
|
+
import { h as AnthropicProviderConfig, e as AnthropicEffort, x as AnthropicMessage, f as AnthropicMessagesRequest, i as AnthropicStopReason, g as AnthropicMessagesResponse, t as GroqProviderConfig, r as GroqMessage, q as GroqGenerationConfig, k as GroqChatRequest, l as GroqChatResponse, S as StreamRequestOptions$1, s as GroqMessageRole, u as GroqReasoningEffort } from '../create-ai-DW7eHMBF.js';
|
|
6
|
+
export { A as AIProviderConfig, a as ANTHROPIC_API_VERSION, b as ANTHROPIC_DEFAULT_MAX_TOKENS, c as ANTHROPIC_MODELS, d as ANTHROPIC_TIERS, j as AnthropicStreamEvent, G as GroqChatChunk, m as GroqChoice, n as GroqChunkChoice, o as GroqConfig, p as GroqErrorResponse, v as GroqUsage, w as createAI } from '../create-ai-DW7eHMBF.js';
|
|
7
7
|
import { b as CacheStats } from '../cache-manager-Df9LLYGA.js';
|
|
8
8
|
import { b as RetryManager, a as RequestQueue, R as RequestDeduplicator } from '../request-deduplicator.util-NDo0_n1y.js';
|
|
9
|
-
import { b as IGroqHttpClient, T as TextGenerationService, a as GenerationStage, f as PrunaModelId, h as PrunaPredictionResponse, m as TextToVideoInput, G as GenerateOptions, j as PrunaResult, e as PrunaInput } from '../cancellation-error-
|
|
10
|
-
export { C as CancellationError, I as IGroqChatService, c as ImageToImageInput, d as ImageToVideoInput, P as PrunaAspectRatio, g as PrunaOutput, i as PrunaResolution, S as StreamingCallbacks, k as StructuredGenerationOptions, n as TextGenerationOptions, l as TextToImageInput } from '../cancellation-error-
|
|
11
|
-
import { d as ChatService } from '../chat.service-
|
|
9
|
+
import { b as IGroqHttpClient, T as TextGenerationService, a as GenerationStage, f as PrunaModelId, h as PrunaPredictionResponse, m as TextToVideoInput, G as GenerateOptions, j as PrunaResult, e as PrunaInput } from '../cancellation-error-Ci8fQhNF.js';
|
|
10
|
+
export { C as CancellationError, I as IGroqChatService, c as ImageToImageInput, d as ImageToVideoInput, P as PrunaAspectRatio, g as PrunaOutput, i as PrunaResolution, S as StreamingCallbacks, k as StructuredGenerationOptions, n as TextGenerationOptions, l as TextToImageInput } from '../cancellation-error-Ci8fQhNF.js';
|
|
11
|
+
import { d as ChatService } from '../chat.service-Cqga2h1e.js';
|
|
12
12
|
import { c as GeminiConfig, I as ImageGenerationRequest, G as GeneratedContent, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest, F as FalConfig, P as PrunaConfig } from '../ProviderConfig-DIFa9nmG.js';
|
|
13
13
|
|
|
14
14
|
interface BaseProviderConfig {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as AspectRatio, o as ImageQuality, w as VideoQuality, t as SentimentAnalysisResult, C as ContentAnalysisRequest, g as ContentAnalysisResult, S as SEOOptimizationRequest, q as SEOOptimizationResult, r as SEOScoreBreakdown, K as KeywordAnalysis, b as ABTestRequest, a as ABTestPrediction, A as ABTestComparison } from './AIErrors-
|
|
1
|
+
import { f as AspectRatio, o as ImageQuality, w as VideoQuality, t as SentimentAnalysisResult, C as ContentAnalysisRequest, g as ContentAnalysisResult, S as SEOOptimizationRequest, q as SEOOptimizationResult, r as SEOScoreBreakdown, K as KeywordAnalysis, b as ABTestRequest, a as ABTestPrediction, A as ABTestComparison } from './AIErrors-CSk4nvN1.js';
|
|
2
2
|
import { B as BlogGenerationRequest, G as GeneratedBlog, m as SocialContentRequest, h as GeneratedSocialContent, q as VideoScriptRequest, i as GeneratedVideoScript, c as ContentTone, b as ContentCalendarEntry, n as SocialPlatform, E as Emotion } from './index-BUVULo3h.js';
|
|
3
|
-
import { c as ITextGenerator, e as ProviderFactory, T as TextGenerationOptions } from './provider.factory-
|
|
3
|
+
import { c as ITextGenerator, e as ProviderFactory, T as TextGenerationOptions } from './provider.factory-CJuI08Xr.js';
|
|
4
4
|
import { d as ProviderConfig, I as ImageGenerationRequest, G as GeneratedContent, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest } from './ProviderConfig-DIFa9nmG.js';
|
|
5
|
-
import { A as AIProviderConfig } from './create-ai-
|
|
6
|
-
import { T as TextRequest, G as GenerationResult } from './index-
|
|
5
|
+
import { A as AIProviderConfig } from './create-ai-DW7eHMBF.js';
|
|
6
|
+
import { T as TextRequest, G as GenerationResult } from './index-DDzvTDg0.js';
|
|
7
7
|
|
|
8
8
|
declare function resolveDimensionsForAspectRatio(ratio: AspectRatio): {
|
|
9
9
|
width: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as AspectRatio, o as ImageQuality, w as VideoQuality, t as SentimentAnalysisResult, C as ContentAnalysisRequest, g as ContentAnalysisResult, S as SEOOptimizationRequest, q as SEOOptimizationResult, r as SEOScoreBreakdown, K as KeywordAnalysis, b as ABTestRequest, a as ABTestPrediction, A as ABTestComparison } from './AIErrors-
|
|
1
|
+
import { f as AspectRatio, o as ImageQuality, w as VideoQuality, t as SentimentAnalysisResult, C as ContentAnalysisRequest, g as ContentAnalysisResult, S as SEOOptimizationRequest, q as SEOOptimizationResult, r as SEOScoreBreakdown, K as KeywordAnalysis, b as ABTestRequest, a as ABTestPrediction, A as ABTestComparison } from './AIErrors-Dq9o95R_.cjs';
|
|
2
2
|
import { B as BlogGenerationRequest, G as GeneratedBlog, m as SocialContentRequest, h as GeneratedSocialContent, q as VideoScriptRequest, i as GeneratedVideoScript, c as ContentTone, b as ContentCalendarEntry, n as SocialPlatform, E as Emotion } from './index-BulSkB2L.cjs';
|
|
3
|
-
import { c as ITextGenerator, e as ProviderFactory, T as TextGenerationOptions } from './provider.factory-
|
|
3
|
+
import { c as ITextGenerator, e as ProviderFactory, T as TextGenerationOptions } from './provider.factory-DG2CYFgh.cjs';
|
|
4
4
|
import { d as ProviderConfig, I as ImageGenerationRequest, G as GeneratedContent, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest } from './ProviderConfig-DIFa9nmG.cjs';
|
|
5
|
-
import { A as AIProviderConfig } from './create-ai-
|
|
6
|
-
import { T as TextRequest, G as GenerationResult } from './index-
|
|
5
|
+
import { A as AIProviderConfig } from './create-ai-DeOpUgZ-.cjs';
|
|
6
|
+
import { T as TextRequest, G as GenerationResult } from './index-DDzvTDg0.cjs';
|
|
7
7
|
|
|
8
8
|
declare function resolveDimensionsForAspectRatio(ratio: AspectRatio): {
|
|
9
9
|
width: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Provider-agnostic AI engine for web and edge — text, chat, structured output and streaming over swappable providers (Anthropic, Groq, Gemini, fal, Pruna), plus a content generation suite",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|