@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/content/index.d.cts
CHANGED
|
@@ -1,224 +1,170 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export { A as
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { T as TextRequest, G as GenerationResult } from '../index-fXjxTR5W.cjs';
|
|
1
|
+
import { n as SocialPlatform, l as PlatformSpecs } from '../index-BulSkB2L.cjs';
|
|
2
|
+
export { B as BlogGenerationRequest, a as BlogType, C as CONTENT_WIZARD_STEPS, b as ContentCalendarEntry, c as ContentTone, d as ContentType, e as ContentWizardData, f as ContentWizardStep, g as ContentWizardType, E as Emotion, G as GeneratedBlog, h as GeneratedSocialContent, i as GeneratedVideoScript, I as IMAGE_WIZARD_STEPS, j as ImageWizardData, k as ImageWizardStep, P as PLATFORM_SPECS, S as Sentiment, m as SocialContentRequest, V as VIDEO_WIZARD_STEPS, o as ValidationResult, p as VideoGenerationType, q as VideoScriptRequest, r as VideoWizardData, s as VideoWizardStep, W as WizardConfig, t as WizardData, u as WizardStep, v as buildContentRequest, w as buildImageRequest, x as buildVideoRequest } from '../index-BulSkB2L.cjs';
|
|
3
|
+
import { m as GenerationType } from '../AIErrors-DjZXUiLT.cjs';
|
|
4
|
+
export { A as ABTestComparison, a as ABTestPrediction, b as ABTestRequest, c as ABTestVariant, d as AIErrorCode, e as ASPECT_RATIO_OPTIONS, y as AnyQuality, f as AspectRatio, z as AspectRatioOption, i as CREDIT_COSTS, C as ContentAnalysisRequest, g as ContentAnalysisResult, G as ContentGenerationResult, h as CreditCost, D as DEFAULT_CREDIT_COST, E as EmotionScore, i as GENERATION_COSTS, j as GenerationMetadata, k as GenerationProgress, G as GenerationResult, l as GenerationStatus, I as IMAGE_QUALITY_OPTIONS, n as ImageGenerationInput, o as ImageQuality, B as ImageQualityOption, F as ImageStyle, K as KeywordAnalysis, M as MOTION_OPTIONS, H as MotionOption, J as MotionStrength, P as ProviderQuotaExhaustedError, p as ProviderUnavailableError, Q as QualityTier, S as SEOOptimizationRequest, q as SEOOptimizationResult, r as SEOScoreBreakdown, s as STYLE_PRESETS, t as SentimentAnalysisResult, L as StylePreset, V as VIDEO_DURATION_OPTIONS_SECONDS, u as VIDEO_QUALITY_OPTIONS, N as ValidationError, v as VideoGenerationInput, w as VideoQuality, O as VideoQualityOption, x as calculateContentCreditCost, x as calculateCreditCost, R as toQualityTier } from '../AIErrors-DjZXUiLT.cjs';
|
|
5
|
+
import { I as ImageGenerationRequest, V as VideoGenerationRequest, T as TextGenerationRequest } from '../ProviderConfig-DIFa9nmG.cjs';
|
|
6
|
+
export { A as AnthropicConfig, B as BaseProviderConfig, F as FalConfig, c as GeminiConfig, G as GeneratedContent, e as GenerationRequest, f as GroqConfig, a as ImageToVideoRequest, d as ProviderConfig, g as ProviderHealth, h as ProviderType, P as PrunaConfig, b as VideoToVideoRequest } from '../ProviderConfig-DIFa9nmG.cjs';
|
|
7
|
+
export { A as ABTestService, a as AIContentService, b as ASPECT_RATIO_VALUES, c as AnalysisService, B as BlogService, C as ContentCalendarService, G as GenerationExecutor, I as IAIContentService, d as IMAGE_QUALITY_VALUES, e as ImagePromptService, M as MediaGenerationService, P as PromptBuilder, S as SeoService, f as SocialService, V as VIDEO_DURATION_OPTIONS, g as VIDEO_QUALITY_VALUES, h as VideoScriptService, i as getDimensionsForAspectRatio, j as getRecommendedQuality, r as recommendQualityForAspectRatio, k as resolveDimensionsForAspectRatio } from '../PromptBuilder-DIUZlfV6.cjs';
|
|
8
|
+
export { c as ITextGenerator, T as TextGenerationOptions } from '../provider.factory-DyfJtR8M.cjs';
|
|
10
9
|
export { A as AIError } from '../index-DKHNcMbl.cjs';
|
|
10
|
+
import '../create-ai-BrKR_5fQ.cjs';
|
|
11
|
+
import '../index-fXjxTR5W.cjs';
|
|
12
|
+
|
|
13
|
+
declare const ValidationLimits: {
|
|
14
|
+
readonly TOPIC: {
|
|
15
|
+
readonly MIN: 1;
|
|
16
|
+
readonly MAX: 500;
|
|
17
|
+
};
|
|
18
|
+
readonly CONTENT: {
|
|
19
|
+
readonly MIN: 1;
|
|
20
|
+
readonly MAX: 10000;
|
|
21
|
+
};
|
|
22
|
+
readonly KEYWORD: {
|
|
23
|
+
readonly MAX_COUNT: 20;
|
|
24
|
+
readonly MAX_LENGTH: 50;
|
|
25
|
+
};
|
|
26
|
+
readonly DURATION_SECONDS: {
|
|
27
|
+
readonly MIN: 10;
|
|
28
|
+
readonly MAX: 600;
|
|
29
|
+
};
|
|
30
|
+
readonly CALENDAR_DAYS: {
|
|
31
|
+
readonly MIN: 1;
|
|
32
|
+
readonly MAX: 90;
|
|
33
|
+
};
|
|
34
|
+
readonly HASHTAG_COUNT: {
|
|
35
|
+
readonly MIN: 1;
|
|
36
|
+
readonly MAX: 50;
|
|
37
|
+
};
|
|
38
|
+
readonly SEO_CONTENT_PREVIEW: 500;
|
|
39
|
+
readonly BLOG_PROMPT_PREVIEW: 1000;
|
|
40
|
+
readonly AB_VARIANT_CONTENT_PREVIEW: 200;
|
|
41
|
+
};
|
|
42
|
+
type ValidationLimitsConfig = typeof ValidationLimits;
|
|
43
|
+
|
|
44
|
+
declare const SpeechPaceConfig: {
|
|
45
|
+
readonly WORDS_PER_SECOND: 2.5;
|
|
46
|
+
readonly TOKENS_PER_SECOND: 10;
|
|
47
|
+
readonly JSON_TOKEN_OVERHEAD: 500;
|
|
48
|
+
readonly TOKENS_PER_CALENDAR_DAY: 150;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare const ProviderTimingConfig: {
|
|
52
|
+
readonly DEFAULT_TIMEOUT_MS: 30000;
|
|
53
|
+
readonly DEFAULT_RETRY_ATTEMPTS: 3;
|
|
54
|
+
readonly FAL_TIMEOUT_MS: 120000;
|
|
55
|
+
readonly FAL_RETRY_ATTEMPTS: 2;
|
|
56
|
+
readonly GEMINI_TIMEOUT_MS: 60000;
|
|
57
|
+
readonly GEMINI_RETRY_ATTEMPTS: 3;
|
|
58
|
+
readonly GROQ_TIMEOUT_MS: 30000;
|
|
59
|
+
readonly GROQ_RETRY_ATTEMPTS: 3;
|
|
60
|
+
readonly HEALTH_CHECK_TTL_MS: number;
|
|
61
|
+
readonly RETRY_BACKOFF_BASE_MS: 1000;
|
|
62
|
+
};
|
|
11
63
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
64
|
+
declare const ModelDefaults: {
|
|
65
|
+
readonly GROQ_TEXT: "llama-3.1-8b-instant";
|
|
66
|
+
readonly GROQ_CHAT: "llama-3.1-8b-instant";
|
|
67
|
+
readonly FAL_IMAGE: "fal-ai/flux/schnell";
|
|
68
|
+
readonly FAL_VIDEO: "fal-ai/hunyuan-video/1";
|
|
69
|
+
readonly FAL_IMAGE_TO_VIDEO: "fal-ai/fast-animatediff/image-to-video";
|
|
70
|
+
readonly GEMINI_TEXT: "gemini-2.0-flash";
|
|
71
|
+
readonly GEMINI_IMAGE: "imagen-4.0-generate-001";
|
|
72
|
+
readonly PRUNA_IMAGE: "p-image";
|
|
73
|
+
readonly PRUNA_IMAGE_EDIT: "p-image-edit";
|
|
74
|
+
readonly PRUNA_VIDEO: "p-video";
|
|
75
|
+
};
|
|
76
|
+
declare const TextModelDefaults: {
|
|
77
|
+
readonly TEXT_MODEL: "claude-sonnet-4-20250514";
|
|
78
|
+
readonly MAX_TOKENS: 4096;
|
|
79
|
+
readonly DEFAULT_TEMPERATURE: 0.7;
|
|
80
|
+
readonly DEFAULT_TOP_P: 0.9;
|
|
81
|
+
};
|
|
16
82
|
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
|
|
83
|
+
declare const RequestQueueConfig: {
|
|
84
|
+
readonly MAX_CONCURRENT: 3;
|
|
85
|
+
readonly MAX_QUEUE_SIZE: 50;
|
|
86
|
+
readonly DEFAULT_TIMEOUT_MS: 30000;
|
|
87
|
+
readonly RETRY_DELAY_MS: 1000;
|
|
88
|
+
readonly RATE_LIMIT: {
|
|
89
|
+
readonly ENABLED: true;
|
|
90
|
+
readonly WINDOW_MS: 60000;
|
|
91
|
+
readonly MAX_REQUESTS_PER_WINDOW: 100;
|
|
92
|
+
};
|
|
93
|
+
readonly POLL_INTERVAL_MS: 100;
|
|
20
94
|
};
|
|
21
95
|
|
|
22
|
-
declare
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
declare
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
constructor(generator: ITextGenerator | ProviderFactory);
|
|
98
|
-
runJson<T>(prompt: string, fallback: T, generationOptions?: TextGenerationOptions): Promise<T>;
|
|
99
|
-
runText(prompt: string, options?: TextGenerationOptions): Promise<string>;
|
|
100
|
-
/** Usage-complete pass-through; requires a ProviderFactory engine. */
|
|
101
|
-
runChat(request: TextRequest): Promise<GenerationResult>;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
declare class BlogService {
|
|
105
|
-
private readonly executor;
|
|
106
|
-
constructor(executor: GenerationExecutor);
|
|
107
|
-
generateBlogPost(request: BlogGenerationRequest): Promise<GeneratedBlog>;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
declare class SocialService {
|
|
111
|
-
private readonly executor;
|
|
112
|
-
constructor(executor: GenerationExecutor);
|
|
113
|
-
generateSocialContent(request: SocialContentRequest): Promise<GeneratedSocialContent>;
|
|
114
|
-
generateForAllPlatforms(topic: string, tone: ContentTone): Promise<GeneratedSocialContent[]>;
|
|
115
|
-
generateHashtags(content: string, count: number): Promise<string[]>;
|
|
116
|
-
optimizeHashtags(hashtags: string[], platform: SocialPlatform): string[];
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
declare class VideoScriptService {
|
|
120
|
-
private readonly executor;
|
|
121
|
-
constructor(executor: GenerationExecutor);
|
|
122
|
-
generateVideoScript(request: VideoScriptRequest): Promise<GeneratedVideoScript>;
|
|
123
|
-
generateVoiceScript(topic: string, emotion: Emotion, duration: number): Promise<GeneratedVideoScript>;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
declare class AnalysisService {
|
|
127
|
-
private readonly executor;
|
|
128
|
-
constructor(executor: GenerationExecutor);
|
|
129
|
-
analyzeSentiment(content: string): Promise<SentimentAnalysisResult>;
|
|
130
|
-
analyzeContent(request: ContentAnalysisRequest): Promise<ContentAnalysisResult>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
declare class SeoService {
|
|
134
|
-
private readonly executor;
|
|
135
|
-
constructor(executor: GenerationExecutor);
|
|
136
|
-
optimizeSEO(request: SEOOptimizationRequest): Promise<SEOOptimizationResult>;
|
|
137
|
-
calculateSEOScore(content: string, keywords: string[]): Promise<SEOScoreBreakdown>;
|
|
138
|
-
analyzeKeywords(content: string, keywords: string[]): KeywordAnalysis[];
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
declare class ABTestService {
|
|
142
|
-
private readonly executor;
|
|
143
|
-
constructor(executor: GenerationExecutor);
|
|
144
|
-
predictABTest(request: ABTestRequest): Promise<ABTestPrediction[]>;
|
|
145
|
-
compareVariants(variantA: string, variantB: string): Promise<ABTestComparison>;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
declare class ImagePromptService {
|
|
149
|
-
private readonly executor;
|
|
150
|
-
constructor(executor: GenerationExecutor);
|
|
151
|
-
generateImagePrompt(description: string, style: string): Promise<string>;
|
|
152
|
-
generateImagePromptsForBlog(blogContent: string): Promise<string[]>;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
declare class ContentCalendarService {
|
|
156
|
-
private readonly executor;
|
|
157
|
-
constructor(executor: GenerationExecutor);
|
|
158
|
-
generateContentCalendar(niche: string, days: number): Promise<ContentCalendarEntry[]>;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
declare class MediaGenerationService {
|
|
162
|
-
private readonly providerFactory;
|
|
163
|
-
constructor(providerFactory: ProviderFactory);
|
|
164
|
-
generateImage(request: ImageGenerationRequest): Promise<GeneratedContent>;
|
|
165
|
-
generateVideo(request: VideoGenerationRequest): Promise<GeneratedContent>;
|
|
166
|
-
convertImageToVideo(request: ImageToVideoRequest): Promise<GeneratedContent>;
|
|
167
|
-
transformVideo(request: VideoToVideoRequest): Promise<GeneratedContent>;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
declare class PromptBuilder {
|
|
171
|
-
static blogPost(input: {
|
|
172
|
-
topic: string;
|
|
173
|
-
blogType: string;
|
|
174
|
-
keywords: string[];
|
|
175
|
-
tone: string;
|
|
176
|
-
targetAudience: string;
|
|
177
|
-
wordCount: number;
|
|
178
|
-
language?: string;
|
|
179
|
-
seoOptimization: boolean;
|
|
180
|
-
includeSchema: boolean;
|
|
181
|
-
includeImages: boolean;
|
|
182
|
-
}): string;
|
|
183
|
-
static socialPost(input: {
|
|
184
|
-
topic: string;
|
|
185
|
-
platform: string;
|
|
186
|
-
tone: string;
|
|
187
|
-
style: string;
|
|
188
|
-
maxLength: number;
|
|
189
|
-
includeHashtags: boolean;
|
|
190
|
-
includeCallToAction: boolean;
|
|
191
|
-
}): string;
|
|
192
|
-
static videoScript(input: {
|
|
193
|
-
topic: string;
|
|
194
|
-
tone: string;
|
|
195
|
-
duration: number;
|
|
196
|
-
targetAudience: string;
|
|
197
|
-
includeVisuals: boolean;
|
|
198
|
-
includeCallToAction: boolean;
|
|
199
|
-
}): string;
|
|
200
|
-
static voiceScript(input: {
|
|
201
|
-
topic: string;
|
|
202
|
-
emotion: string;
|
|
203
|
-
duration: number;
|
|
204
|
-
}): string;
|
|
205
|
-
static contentCalendar(niche: string, days: number): string;
|
|
206
|
-
static sentiment(content: string): string;
|
|
207
|
-
static contentAnalysis(content: string): string;
|
|
208
|
-
static seoOptimization(content: string, keywords: string[]): string;
|
|
209
|
-
static seoScore(content: string, keywords: string[]): string;
|
|
210
|
-
static abTestVariant(input: {
|
|
211
|
-
content: string;
|
|
212
|
-
contentType: string;
|
|
213
|
-
tone: string;
|
|
214
|
-
targetAudience: string;
|
|
215
|
-
platform: string;
|
|
216
|
-
goals: string[];
|
|
217
|
-
}): string;
|
|
218
|
-
static hashtags(content: string, count: number): string;
|
|
219
|
-
static imagePrompt(description: string, style: string): string;
|
|
220
|
-
static blogImagePrompts(blogContent: string): string;
|
|
221
|
-
static maxTokensForDuration(durationSeconds: number): number;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export { ABTestComparison, ABTestPrediction, ABTestRequest, ABTestService, AIContentService, ASPECT_RATIO_VALUES, AnalysisService, AspectRatio, BlogGenerationRequest, BlogService, ContentAnalysisRequest, ContentAnalysisResult, ContentCalendarEntry, ContentCalendarService, ContentTone, Emotion, CREDIT_COSTS as GENERATION_COSTS, GeneratedBlog, GeneratedContent, GeneratedSocialContent, GeneratedVideoScript, GenerationExecutor, GenerationType, type IAIContentService, IMAGE_QUALITY_VALUES, ITextGenerator, ImageGenerationRequest, ImagePromptService, ImageQuality, ImageToVideoRequest, KeywordAnalysis, MediaGenerationService, PromptBuilder, ProviderConfig, SEOOptimizationRequest, SEOOptimizationResult, SEOScoreBreakdown, SentimentAnalysisResult, SeoService, SocialContentRequest, SocialPlatform, SocialService, TextGenerationOptions, VIDEO_DURATION_OPTIONS, VIDEO_QUALITY_VALUES, VideoGenerationRequest, VideoQuality, VideoScriptRequest, VideoScriptService, VideoToVideoRequest, calculateContentCreditCost as calculateCreditCost, getDimensionsForAspectRatio, getRecommendedQuality };
|
|
96
|
+
declare const MemoryConfig: {
|
|
97
|
+
readonly MANAGER: {
|
|
98
|
+
readonly MAX_SIZE_BYTES: number;
|
|
99
|
+
readonly CLEANUP_THRESHOLD_RATIO: 0.8;
|
|
100
|
+
readonly RETENTION_RATIO: 0.5;
|
|
101
|
+
};
|
|
102
|
+
readonly POOL: {
|
|
103
|
+
readonly DEFAULT_MAX_SIZE: 100;
|
|
104
|
+
};
|
|
105
|
+
readonly EXPIRING_CACHE: {
|
|
106
|
+
readonly DEFAULT_TTL_MS: 60000;
|
|
107
|
+
readonly CLEANUP_INTERVAL_MS: 60000;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
declare function estimateWordCountForDuration(durationSeconds: number): number;
|
|
112
|
+
declare function estimateTokenBudgetForDuration(durationSeconds: number): number;
|
|
113
|
+
declare function estimateTokenBudgetForCalendarDays(days: number): number;
|
|
114
|
+
|
|
115
|
+
declare function countKeywordOccurrences(content: string, keyword: string): number;
|
|
116
|
+
declare function countWordsInContent(content: string): number;
|
|
117
|
+
declare function calculateKeywordDensity(content: string, keyword: string): number;
|
|
118
|
+
|
|
119
|
+
declare function calculateImprovementPercentage(scoreA: number, scoreB: number): string;
|
|
120
|
+
declare function selectHigherScoreVariantId(scoreA: number, scoreB: number, idA?: string, idB?: string): string;
|
|
121
|
+
|
|
122
|
+
declare function calculateRetryBackoffDelayMs(attemptIndex: number): number;
|
|
123
|
+
|
|
124
|
+
declare function resolveCalendarEntryDate(dayIndex: number, baseTimestamp?: number): Date;
|
|
125
|
+
|
|
126
|
+
declare function resolveDefaultPrunaModel(generationType: GenerationType): string;
|
|
127
|
+
|
|
128
|
+
type KeywordProminence = 'high' | 'medium' | 'low';
|
|
129
|
+
declare function classifyKeywordProminence(densityPercent: number): KeywordProminence;
|
|
130
|
+
declare function isUnderutilizedKeyword(densityPercent: number): boolean;
|
|
131
|
+
|
|
132
|
+
declare const DEFAULT_HASHTAG_BUDGET: number;
|
|
133
|
+
declare function resolveHashtagBudget(platform: SocialPlatform): number;
|
|
134
|
+
declare function rankAndTrimHashtags(hashtags: ReadonlyArray<string>, budget: number): string[];
|
|
135
|
+
|
|
136
|
+
declare function resolvePlatformSpec(platform: SocialPlatform): PlatformSpecs;
|
|
137
|
+
declare function resolveMaxContentLength(platform: SocialPlatform, override?: number): number;
|
|
138
|
+
|
|
139
|
+
declare function clampScoreToValidRange(score: number, fallback?: number): number;
|
|
140
|
+
declare function clampConfidenceToValidRange(confidence: number, fallback?: number): number;
|
|
141
|
+
|
|
142
|
+
declare const AB_TEST_DEFAULT_CONFIDENCE: number;
|
|
143
|
+
|
|
144
|
+
declare function estimateGroqGenerationCost(_request?: TextGenerationRequest | ImageGenerationRequest | VideoGenerationRequest): number;
|
|
145
|
+
declare function estimateFalGenerationCost(_request?: ImageGenerationRequest | VideoGenerationRequest): number;
|
|
146
|
+
declare function estimateGeminiGenerationCost(request: TextGenerationRequest | ImageGenerationRequest): number;
|
|
147
|
+
declare function estimatePrunaGenerationCost(): number;
|
|
148
|
+
declare function estimateUnknownProviderCost(): number;
|
|
149
|
+
|
|
150
|
+
declare function resolveFalImageSize(format?: string): string;
|
|
151
|
+
declare function resolveFalInferenceSteps(quality?: string): number;
|
|
152
|
+
|
|
153
|
+
declare function validateTopicText(topic: string): string;
|
|
154
|
+
|
|
155
|
+
declare function validateContentBody(content: string): string;
|
|
156
|
+
declare function truncateForSeoPreview(content: string): string;
|
|
157
|
+
declare function truncateForBlogPromptPreview(content: string): string;
|
|
158
|
+
declare function truncateForAbVariantPreview(content: string): string;
|
|
159
|
+
|
|
160
|
+
declare function validateKeywordList(keywords: unknown): string[];
|
|
161
|
+
|
|
162
|
+
declare function validateDurationSeconds(duration: number): number;
|
|
163
|
+
|
|
164
|
+
declare function validateCalendarDays(days: number): number;
|
|
165
|
+
|
|
166
|
+
declare function validateHashtagCount(count: number): number;
|
|
167
|
+
|
|
168
|
+
declare function generateId(prefix?: string): string;
|
|
169
|
+
|
|
170
|
+
export { AB_TEST_DEFAULT_CONFIDENCE, DEFAULT_HASHTAG_BUDGET, GenerationType, ImageGenerationRequest, type KeywordProminence, MemoryConfig, ModelDefaults, PlatformSpecs, ProviderTimingConfig, RequestQueueConfig, SocialPlatform, SpeechPaceConfig, TextGenerationRequest, TextModelDefaults, ValidationLimits, type ValidationLimitsConfig, VideoGenerationRequest, calculateImprovementPercentage, calculateKeywordDensity, calculateRetryBackoffDelayMs, clampConfidenceToValidRange, clampScoreToValidRange, classifyKeywordProminence, countKeywordOccurrences, countWordsInContent, estimateFalGenerationCost, estimateGeminiGenerationCost, estimateGroqGenerationCost, estimatePrunaGenerationCost, estimateTokenBudgetForCalendarDays, estimateTokenBudgetForDuration, estimateUnknownProviderCost, estimateWordCountForDuration, generateId, isUnderutilizedKeyword, rankAndTrimHashtags, resolveCalendarEntryDate, resolveDefaultPrunaModel, resolveFalImageSize, resolveFalInferenceSteps, resolveHashtagBudget, resolveMaxContentLength, resolvePlatformSpec, selectHigherScoreVariantId, truncateForAbVariantPreview, truncateForBlogPromptPreview, truncateForSeoPreview, validateCalendarDays, validateContentBody, validateDurationSeconds, validateHashtagCount, validateKeywordList, validateTopicText };
|