@umituz/web-ai 1.0.7 → 1.0.9

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.
Files changed (37) hide show
  1. package/dist/{AIErrors-CLjXRty-.d.ts → AIErrors-CSk4nvN1.d.ts} +1 -1
  2. package/dist/{AIErrors-DjZXUiLT.d.cts → AIErrors-Dq9o95R_.d.cts} +1 -1
  3. package/dist/{cancellation-error-CkMn5Kft.d.ts → cancellation-error-Ci8fQhNF.d.ts} +3 -3
  4. package/dist/{cancellation-error-Cj7fJyCg.d.cts → cancellation-error-CpkPd67D.d.cts} +3 -3
  5. package/dist/chat/index.d.cts +4 -4
  6. package/dist/chat/index.d.ts +4 -4
  7. package/dist/{chat.service-9M-KpLo-.d.cts → chat.service-BRtiA7H9.d.cts} +2 -2
  8. package/dist/{chat.service-B4FLFxR1.d.ts → chat.service-Cqga2h1e.d.ts} +2 -2
  9. package/dist/content/index.d.cts +7 -7
  10. package/dist/content/index.d.ts +7 -7
  11. package/dist/core/index.cjs +560 -0
  12. package/dist/core/index.cjs.map +1 -1
  13. package/dist/core/index.d.cts +218 -5
  14. package/dist/core/index.d.ts +218 -5
  15. package/dist/core/index.js +519 -1
  16. package/dist/core/index.js.map +1 -1
  17. package/dist/{create-ai-0eZFFqTw.d.ts → create-ai-DW7eHMBF.d.ts} +3 -3
  18. package/dist/{create-ai-BrKR_5fQ.d.cts → create-ai-DeOpUgZ-.d.cts} +3 -3
  19. package/dist/hooks/index.d.cts +9 -9
  20. package/dist/hooks/index.d.ts +9 -9
  21. package/dist/{index-DIHz8_OJ.d.ts → index-Ca5o4gBK.d.ts} +1 -1
  22. package/dist/{index-fXjxTR5W.d.cts → index-DDzvTDg0.d.cts} +1 -1
  23. package/dist/{index-fXjxTR5W.d.ts → index-DDzvTDg0.d.ts} +1 -1
  24. package/dist/{index-DKHNcMbl.d.cts → index-itgxPeLz.d.cts} +1 -1
  25. package/dist/index.cjs +562 -2
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +9 -9
  28. package/dist/index.d.ts +9 -9
  29. package/dist/index.js +521 -3
  30. package/dist/index.js.map +1 -1
  31. package/dist/{provider.factory-BwPnqSEU.d.ts → provider.factory-CJuI08Xr.d.ts} +1 -1
  32. package/dist/{provider.factory-DyfJtR8M.d.cts → provider.factory-DG2CYFgh.d.cts} +1 -1
  33. package/dist/providers/index.d.cts +9 -9
  34. package/dist/providers/index.d.ts +9 -9
  35. package/dist/{requestQueue-CvxWxC-z.d.ts → requestQueue-D-RCbxuR.d.ts} +4 -4
  36. package/dist/{requestQueue-CkJ6Xc9K.d.cts → requestQueue-O6f8VBl5.d.cts} +4 -4
  37. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { P as ProviderHealth, T as TextRequest, G as GenerationResult, b as StructuredTextRequest, a as StructuredGeneration, S as StreamCallbacks, c as TextTier } from './index-fXjxTR5W.js';
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, b as StructuredTextRequest, a as StructuredGeneration, S as StreamCallbacks, c as TextTier } from './index-fXjxTR5W.cjs';
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-DyfJtR8M.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-DyfJtR8M.cjs';
3
- import { P as ProviderHealth, c as TextTier, T as TextRequest, G as GenerationResult, b as StructuredTextRequest, a as StructuredGeneration, S as StreamCallbacks, F as FinishReason, C as ChatMessage, d as TokenUsage } from '../index-fXjxTR5W.cjs';
4
- import { A as AIError, c as TierModelMap } from '../index-DKHNcMbl.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-BrKR_5fQ.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-BrKR_5fQ.cjs';
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-Cj7fJyCg.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-Cj7fJyCg.cjs';
11
- import { d as ChatService } from '../chat.service-9M-KpLo-.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-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-BwPnqSEU.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-BwPnqSEU.js';
3
- import { P as ProviderHealth, c as TextTier, T as TextRequest, G as GenerationResult, b as StructuredTextRequest, a as StructuredGeneration, S as StreamCallbacks, F as FinishReason, C as ChatMessage, d as TokenUsage } from '../index-fXjxTR5W.js';
4
- import { A as AIError, c as TierModelMap } from '../index-DIHz8_OJ.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-0eZFFqTw.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-0eZFFqTw.js';
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-CkMn5Kft.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-CkMn5Kft.js';
11
- import { d as ChatService } from '../chat.service-B4FLFxR1.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-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-CLjXRty-.js';
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-BwPnqSEU.js';
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-0eZFFqTw.js';
6
- import { T as TextRequest, G as GenerationResult } from './index-fXjxTR5W.js';
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-DjZXUiLT.cjs';
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-DyfJtR8M.cjs';
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-BrKR_5fQ.cjs';
6
- import { T as TextRequest, G as GenerationResult } from './index-fXjxTR5W.cjs';
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.7",
3
+ "version": "1.0.9",
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",