@umituz/web-ai 1.0.2 → 1.0.4
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-B2ogd1PB.d.ts → AIErrors-CLjXRty-.d.ts} +99 -92
- package/dist/{AIErrors-C5EasV_c.d.cts → AIErrors-DjZXUiLT.d.cts} +99 -92
- package/dist/PromptBuilder-B5Lm1znm.d.ts +215 -0
- package/dist/PromptBuilder-DIUZlfV6.d.cts +215 -0
- package/dist/{text-generation.service-BQO3Tvz2.d.cts → cancellation-error-Cj7fJyCg.d.cts} +66 -3
- package/dist/{text-generation.service-CcYQM6Ch.d.ts → cancellation-error-CkMn5Kft.d.ts} +66 -3
- package/dist/chat/index.cjs.map +1 -1
- package/dist/chat/index.d.cts +3 -3
- package/dist/chat/index.d.ts +3 -3
- package/dist/chat/index.js.map +1 -1
- package/dist/{chat.service-CL1qtYxe.d.cts → chat.service-9M-KpLo-.d.cts} +1 -1
- package/dist/{chat.service-q05GnhEm.d.ts → chat.service-B4FLFxR1.d.ts} +1 -1
- package/dist/content/index.cjs +1582 -452
- package/dist/content/index.cjs.map +1 -1
- package/dist/content/index.d.cts +165 -219
- package/dist/content/index.d.ts +165 -219
- package/dist/content/index.js +1525 -453
- package/dist/content/index.js.map +1 -1
- package/dist/{create-ai-9PW752z8.d.ts → create-ai-0eZFFqTw.d.ts} +1 -1
- package/dist/{create-ai-CXYKPK6G.d.cts → create-ai-BrKR_5fQ.d.cts} +1 -1
- package/dist/hooks/index.cjs +924 -31
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +44 -8
- package/dist/hooks/index.d.ts +44 -8
- package/dist/hooks/index.js +919 -32
- package/dist/hooks/index.js.map +1 -1
- package/dist/index-BUVULo3h.d.ts +177 -0
- package/dist/index-BulSkB2L.d.cts +177 -0
- package/dist/index.cjs +3057 -563
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +3011 -564
- package/dist/index.js.map +1 -1
- package/dist/{provider.factory-DfDfk0dK.d.ts → provider.factory-BwPnqSEU.d.ts} +3 -1
- package/dist/{provider.factory-BxsfK4WW.d.cts → provider.factory-DyfJtR8M.d.cts} +3 -1
- package/dist/providers/index.cjs +818 -27
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.d.cts +50 -8
- package/dist/providers/index.d.ts +50 -8
- package/dist/providers/index.js +806 -28
- package/dist/providers/index.js.map +1 -1
- package/dist/wizard/index.d.cts +2 -86
- package/dist/wizard/index.d.ts +2 -86
- package/package.json +21 -1
- package/dist/ContentGeneration-B6iK2B33.d.cts +0 -93
- package/dist/ContentGeneration-B6iK2B33.d.ts +0 -93
package/dist/hooks/index.d.cts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { B as BlogGenerationRequest, G as GeneratedBlog,
|
|
2
|
-
import {
|
|
1
|
+
import { B as BlogGenerationRequest, G as GeneratedBlog, m as SocialContentRequest, h as GeneratedSocialContent, c as ContentTone, q as VideoScriptRequest, i as GeneratedVideoScript, b as ContentCalendarEntry, E as Emotion, f as ContentWizardStep, e as ContentWizardData, k as ImageWizardStep, j as ImageWizardData, s as VideoWizardStep, r as VideoWizardData } from '../index-BulSkB2L.cjs';
|
|
2
|
+
import { d as AIErrorCode, t as SentimentAnalysisResult, C as ContentAnalysisRequest, g as ContentAnalysisResult, S as SEOOptimizationRequest, q as SEOOptimizationResult, r as SEOScoreBreakdown, b as ABTestRequest, a as ABTestPrediction, A as ABTestComparison, G as GenerationResult, k as GenerationProgress, l as GenerationStatus, n as ImageGenerationInput, v as VideoGenerationInput, m as GenerationType, o as ImageQuality, w as VideoQuality } from '../AIErrors-DjZXUiLT.cjs';
|
|
3
|
+
export { f as AspectRatio, h as CreditCost, i as GENERATION_COSTS, j as GenerationMetadata, x as calculateCreditCost } from '../AIErrors-DjZXUiLT.cjs';
|
|
3
4
|
import { d as ProviderConfig, I as ImageGenerationRequest, G as GeneratedContent, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest } from '../ProviderConfig-DIFa9nmG.cjs';
|
|
4
|
-
import {
|
|
5
|
-
import { A as AIProviderConfig, q as GroqGenerationConfig } from '../create-ai-
|
|
6
|
-
import { ContentWizardStep, ContentWizardData, ImageWizardStep, ImageWizardData, VideoWizardStep, VideoWizardData } from '../wizard/index.cjs';
|
|
5
|
+
import { c as ITextGenerator, d as ITextProvider, e as ProviderFactory } from '../provider.factory-DyfJtR8M.cjs';
|
|
6
|
+
import { A as AIProviderConfig, q as GroqGenerationConfig } from '../create-ai-BrKR_5fQ.cjs';
|
|
7
7
|
import { c as TextTier } from '../index-fXjxTR5W.cjs';
|
|
8
8
|
import { C as CacheManager, b as CacheStats } from '../cache-manager-Df9LLYGA.cjs';
|
|
9
|
-
import { d as ChatService, U as UseChatOptions, k as UseChatReturn } from '../chat.service-
|
|
10
|
-
import {
|
|
9
|
+
import { d as ChatService, U as UseChatOptions, k as UseChatReturn } from '../chat.service-9M-KpLo-.cjs';
|
|
10
|
+
import { T as TextGenerationService, j as PrunaResult, G as GenerateOptions, e as PrunaInput, a as GenerationStage } from '../cancellation-error-Cj7fJyCg.cjs';
|
|
11
|
+
export { C as CancellationError } from '../cancellation-error-Cj7fJyCg.cjs';
|
|
11
12
|
import '../index-DKHNcMbl.cjs';
|
|
12
13
|
|
|
13
14
|
/** Provider config for the underlying AIContentService — new AIProviderConfig,
|
|
@@ -233,4 +234,39 @@ interface UseGroqDeps {
|
|
|
233
234
|
}
|
|
234
235
|
declare function useGroq(options?: UseGroqOptions, deps?: UseGroqDeps): UseGroqReturn;
|
|
235
236
|
|
|
236
|
-
|
|
237
|
+
interface AsyncActionState<TResult> {
|
|
238
|
+
result: TResult | null;
|
|
239
|
+
isLoading: boolean;
|
|
240
|
+
error: Error | null;
|
|
241
|
+
}
|
|
242
|
+
interface AsyncActionApi<TResult, TInput> extends AsyncActionState<TResult> {
|
|
243
|
+
run: (input: TInput) => Promise<TResult | null>;
|
|
244
|
+
cancel: () => void;
|
|
245
|
+
reset: () => void;
|
|
246
|
+
}
|
|
247
|
+
interface UseAsyncActionOptions<TResult> {
|
|
248
|
+
onSuccess?: (result: TResult) => void;
|
|
249
|
+
onError?: (error: Error) => void;
|
|
250
|
+
onCancelled?: () => void;
|
|
251
|
+
}
|
|
252
|
+
type AsyncActionExecutor<TResult, TInput> = (input: TInput, signal: AbortSignal) => Promise<TResult>;
|
|
253
|
+
declare function useAsyncAction<TResult, TInput>(executor: AsyncActionExecutor<TResult, TInput>, options?: UseAsyncActionOptions<TResult>): AsyncActionApi<TResult, TInput>;
|
|
254
|
+
|
|
255
|
+
interface UsePrunaGenerationOptions {
|
|
256
|
+
onSuccess?: (result: PrunaResult) => void;
|
|
257
|
+
onError?: (error: Error) => void;
|
|
258
|
+
onProgress?: GenerateOptions['onProgress'];
|
|
259
|
+
}
|
|
260
|
+
type UsePrunaGenerationReturn = AsyncActionApi<PrunaResult, PrunaInput>;
|
|
261
|
+
declare function usePrunaGeneration(apiKey: string, options?: UsePrunaGenerationOptions): UsePrunaGenerationReturn;
|
|
262
|
+
|
|
263
|
+
interface UsePrunaProxyOptions {
|
|
264
|
+
proxyUrl: string;
|
|
265
|
+
onSuccess?: (result: PrunaResult) => void;
|
|
266
|
+
onError?: (error: Error) => void;
|
|
267
|
+
onProgress?: (stage: GenerationStage) => void;
|
|
268
|
+
}
|
|
269
|
+
type UsePrunaProxyReturn = AsyncActionApi<PrunaResult, PrunaInput>;
|
|
270
|
+
declare function usePrunaProxy(options: UsePrunaProxyOptions): UsePrunaProxyReturn;
|
|
271
|
+
|
|
272
|
+
export { type AsyncActionApi, type AsyncActionExecutor, type AsyncActionState, type ContentWizardRequest, type CreditCheckFunction, GenerationProgress, GenerationResult, GenerationStatus, GenerationType, ImageGenerationInput, ImageQuality, type SaveFunction, type UploadFunction, type UseAIContentOptions, type UseAIContentReturn, type UseAIGenerationOptions, type UseAIGenerationReturn, type UseAsyncActionOptions, type UseBlogGeneratorOptions, type UseBlogGeneratorReturn, type UseCacheStatsOptions, type UseChatDeps, type UseContentWizardOptions, type UseContentWizardReturn, type UseGroqDeps, type UseGroqOptions, type UseGroqReturn, type UseImageWizardOptions, type UseImageWizardReturn, type UsePrunaGenerationOptions, type UsePrunaGenerationReturn, type UsePrunaProxyOptions, type UsePrunaProxyReturn, type UseSocialContentGeneratorOptions, type UseSocialContentGeneratorReturn, type UseTextConfig, type UseTextDeps, type UseTextOptions, type UseTextReturn, type UseVideoWizardOptions, type UseVideoWizardReturn, VideoGenerationInput, VideoQuality, type VideoWizardRequest, useAIContent, useAIGeneration, useAsyncAction, useBlogGenerator, useCacheStats, useChat, useContentWizard, useGroq, useImageWizard, usePrunaGeneration, usePrunaProxy, useSocialContentGenerator, useText, useVideoWizard };
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { B as BlogGenerationRequest, G as GeneratedBlog,
|
|
2
|
-
import {
|
|
1
|
+
import { B as BlogGenerationRequest, G as GeneratedBlog, m as SocialContentRequest, h as GeneratedSocialContent, c as ContentTone, q as VideoScriptRequest, i as GeneratedVideoScript, b as ContentCalendarEntry, E as Emotion, f as ContentWizardStep, e as ContentWizardData, k as ImageWizardStep, j as ImageWizardData, s as VideoWizardStep, r as VideoWizardData } from '../index-BUVULo3h.js';
|
|
2
|
+
import { d as AIErrorCode, t as SentimentAnalysisResult, C as ContentAnalysisRequest, g as ContentAnalysisResult, S as SEOOptimizationRequest, q as SEOOptimizationResult, r as SEOScoreBreakdown, b as ABTestRequest, a as ABTestPrediction, A as ABTestComparison, G as GenerationResult, k as GenerationProgress, l as GenerationStatus, n as ImageGenerationInput, v as VideoGenerationInput, m as GenerationType, o as ImageQuality, w as VideoQuality } from '../AIErrors-CLjXRty-.js';
|
|
3
|
+
export { f as AspectRatio, h as CreditCost, i as GENERATION_COSTS, j as GenerationMetadata, x as calculateCreditCost } from '../AIErrors-CLjXRty-.js';
|
|
3
4
|
import { d as ProviderConfig, I as ImageGenerationRequest, G as GeneratedContent, V as VideoGenerationRequest, a as ImageToVideoRequest, b as VideoToVideoRequest } from '../ProviderConfig-DIFa9nmG.js';
|
|
4
|
-
import {
|
|
5
|
-
import { A as AIProviderConfig, q as GroqGenerationConfig } from '../create-ai-
|
|
6
|
-
import { ContentWizardStep, ContentWizardData, ImageWizardStep, ImageWizardData, VideoWizardStep, VideoWizardData } from '../wizard/index.js';
|
|
5
|
+
import { c as ITextGenerator, d as ITextProvider, e as ProviderFactory } from '../provider.factory-BwPnqSEU.js';
|
|
6
|
+
import { A as AIProviderConfig, q as GroqGenerationConfig } from '../create-ai-0eZFFqTw.js';
|
|
7
7
|
import { c as TextTier } from '../index-fXjxTR5W.js';
|
|
8
8
|
import { C as CacheManager, b as CacheStats } from '../cache-manager-Df9LLYGA.js';
|
|
9
|
-
import { d as ChatService, U as UseChatOptions, k as UseChatReturn } from '../chat.service-
|
|
10
|
-
import {
|
|
9
|
+
import { d as ChatService, U as UseChatOptions, k as UseChatReturn } from '../chat.service-B4FLFxR1.js';
|
|
10
|
+
import { T as TextGenerationService, j as PrunaResult, G as GenerateOptions, e as PrunaInput, a as GenerationStage } from '../cancellation-error-CkMn5Kft.js';
|
|
11
|
+
export { C as CancellationError } from '../cancellation-error-CkMn5Kft.js';
|
|
11
12
|
import '../index-DIHz8_OJ.js';
|
|
12
13
|
|
|
13
14
|
/** Provider config for the underlying AIContentService — new AIProviderConfig,
|
|
@@ -233,4 +234,39 @@ interface UseGroqDeps {
|
|
|
233
234
|
}
|
|
234
235
|
declare function useGroq(options?: UseGroqOptions, deps?: UseGroqDeps): UseGroqReturn;
|
|
235
236
|
|
|
236
|
-
|
|
237
|
+
interface AsyncActionState<TResult> {
|
|
238
|
+
result: TResult | null;
|
|
239
|
+
isLoading: boolean;
|
|
240
|
+
error: Error | null;
|
|
241
|
+
}
|
|
242
|
+
interface AsyncActionApi<TResult, TInput> extends AsyncActionState<TResult> {
|
|
243
|
+
run: (input: TInput) => Promise<TResult | null>;
|
|
244
|
+
cancel: () => void;
|
|
245
|
+
reset: () => void;
|
|
246
|
+
}
|
|
247
|
+
interface UseAsyncActionOptions<TResult> {
|
|
248
|
+
onSuccess?: (result: TResult) => void;
|
|
249
|
+
onError?: (error: Error) => void;
|
|
250
|
+
onCancelled?: () => void;
|
|
251
|
+
}
|
|
252
|
+
type AsyncActionExecutor<TResult, TInput> = (input: TInput, signal: AbortSignal) => Promise<TResult>;
|
|
253
|
+
declare function useAsyncAction<TResult, TInput>(executor: AsyncActionExecutor<TResult, TInput>, options?: UseAsyncActionOptions<TResult>): AsyncActionApi<TResult, TInput>;
|
|
254
|
+
|
|
255
|
+
interface UsePrunaGenerationOptions {
|
|
256
|
+
onSuccess?: (result: PrunaResult) => void;
|
|
257
|
+
onError?: (error: Error) => void;
|
|
258
|
+
onProgress?: GenerateOptions['onProgress'];
|
|
259
|
+
}
|
|
260
|
+
type UsePrunaGenerationReturn = AsyncActionApi<PrunaResult, PrunaInput>;
|
|
261
|
+
declare function usePrunaGeneration(apiKey: string, options?: UsePrunaGenerationOptions): UsePrunaGenerationReturn;
|
|
262
|
+
|
|
263
|
+
interface UsePrunaProxyOptions {
|
|
264
|
+
proxyUrl: string;
|
|
265
|
+
onSuccess?: (result: PrunaResult) => void;
|
|
266
|
+
onError?: (error: Error) => void;
|
|
267
|
+
onProgress?: (stage: GenerationStage) => void;
|
|
268
|
+
}
|
|
269
|
+
type UsePrunaProxyReturn = AsyncActionApi<PrunaResult, PrunaInput>;
|
|
270
|
+
declare function usePrunaProxy(options: UsePrunaProxyOptions): UsePrunaProxyReturn;
|
|
271
|
+
|
|
272
|
+
export { type AsyncActionApi, type AsyncActionExecutor, type AsyncActionState, type ContentWizardRequest, type CreditCheckFunction, GenerationProgress, GenerationResult, GenerationStatus, GenerationType, ImageGenerationInput, ImageQuality, type SaveFunction, type UploadFunction, type UseAIContentOptions, type UseAIContentReturn, type UseAIGenerationOptions, type UseAIGenerationReturn, type UseAsyncActionOptions, type UseBlogGeneratorOptions, type UseBlogGeneratorReturn, type UseCacheStatsOptions, type UseChatDeps, type UseContentWizardOptions, type UseContentWizardReturn, type UseGroqDeps, type UseGroqOptions, type UseGroqReturn, type UseImageWizardOptions, type UseImageWizardReturn, type UsePrunaGenerationOptions, type UsePrunaGenerationReturn, type UsePrunaProxyOptions, type UsePrunaProxyReturn, type UseSocialContentGeneratorOptions, type UseSocialContentGeneratorReturn, type UseTextConfig, type UseTextDeps, type UseTextOptions, type UseTextReturn, type UseVideoWizardOptions, type UseVideoWizardReturn, VideoGenerationInput, VideoQuality, type VideoWizardRequest, useAIContent, useAIGeneration, useAsyncAction, useBlogGenerator, useCacheStats, useChat, useContentWizard, useGroq, useImageWizard, usePrunaGeneration, usePrunaProxy, useSocialContentGenerator, useText, useVideoWizard };
|