@umituz/web-ai 1.0.3 → 1.0.5
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/{cancellation-error-DwHrDKBz.d.cts → cancellation-error-Cj7fJyCg.d.cts} +3 -3
- package/dist/{cancellation-error-CKcZRhFg.d.ts → cancellation-error-CkMn5Kft.d.ts} +3 -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 +1047 -490
- 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 +983 -491
- 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 +66 -8
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +21 -11
- package/dist/hooks/index.d.ts +21 -11
- package/dist/hooks/index.js +65 -9
- 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 +1800 -15
- 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 +1757 -15
- 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 +9 -0
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.d.cts +10 -8
- package/dist/providers/index.d.ts +10 -8
- package/dist/providers/index.js +7 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/requestQueue-CkJ6Xc9K.d.cts +261 -0
- package/dist/requestQueue-CvxWxC-z.d.ts +261 -0
- package/dist/wizard/index.d.cts +2 -86
- package/dist/wizard/index.d.ts +2 -86
- package/package.json +16 -1
- package/dist/ContentGeneration-B6iK2B33.d.cts +0 -93
- package/dist/ContentGeneration-B6iK2B33.d.ts +0 -93
package/dist/wizard/index.d.ts
CHANGED
|
@@ -1,86 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
interface WizardStep<T extends string = string> {
|
|
5
|
-
id: T;
|
|
6
|
-
label: string;
|
|
7
|
-
icon?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
optional?: boolean;
|
|
10
|
-
validate?: (data: Record<string, unknown>) => boolean | {
|
|
11
|
-
valid: boolean;
|
|
12
|
-
errors: Record<string, string>;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
interface ValidationResult {
|
|
16
|
-
valid: boolean;
|
|
17
|
-
errors: Record<string, string>;
|
|
18
|
-
}
|
|
19
|
-
type WizardData = Record<string, unknown>;
|
|
20
|
-
interface WizardConfig<T extends string = string> {
|
|
21
|
-
steps: WizardStep<T>[];
|
|
22
|
-
initialStep?: T;
|
|
23
|
-
data?: WizardData;
|
|
24
|
-
onStepChange?: (from: T, to: T) => void;
|
|
25
|
-
onComplete?: (data: WizardData) => void;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type ContentType = 'blog' | 'social' | 'script' | 'news' | 'ebook' | 'podcast';
|
|
29
|
-
type ContentWizardStep = 'select-type' | 'input-topic' | 'configure' | 'advanced' | 'preview' | 'generating' | 'results';
|
|
30
|
-
interface ContentWizardData {
|
|
31
|
-
contentType?: ContentType;
|
|
32
|
-
topic?: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
tone?: 'professional' | 'casual' | 'enthusiastic' | 'humorous' | 'dramatic' | 'educational';
|
|
35
|
-
platform?: 'twitter' | 'linkedin' | 'instagram' | 'threads' | 'tiktok' | 'facebook';
|
|
36
|
-
targetAudience?: string;
|
|
37
|
-
wordCount?: number;
|
|
38
|
-
duration?: number;
|
|
39
|
-
keywords?: string[];
|
|
40
|
-
includeImages?: boolean;
|
|
41
|
-
includeCallToAction?: boolean;
|
|
42
|
-
seoOptimization?: boolean;
|
|
43
|
-
language?: string;
|
|
44
|
-
generatedContent?: string;
|
|
45
|
-
generatedId?: string;
|
|
46
|
-
}
|
|
47
|
-
declare const CONTENT_WIZARD_STEPS: ReadonlyArray<WizardStep<ContentWizardStep>>;
|
|
48
|
-
declare function buildContentRequest(data: ContentWizardData): BlogGenerationRequest | SocialContentRequest | VideoScriptRequest;
|
|
49
|
-
|
|
50
|
-
type ImageWizardStep = 'input-prompt' | 'select-style' | 'configure' | 'advanced' | 'preview' | 'generating' | 'results';
|
|
51
|
-
interface ImageWizardData {
|
|
52
|
-
prompt?: string;
|
|
53
|
-
style?: 'realistic' | 'cartoon' | 'abstract' | 'minimalist' | 'vintage';
|
|
54
|
-
format?: 'square' | 'landscape' | 'portrait' | 'story' | 'banner';
|
|
55
|
-
quality?: 'standard' | 'high' | 'ultra';
|
|
56
|
-
quantity?: number;
|
|
57
|
-
colorPalette?: string[];
|
|
58
|
-
platform?: 'instagram' | 'youtube' | 'facebook' | 'twitter' | 'general';
|
|
59
|
-
generatedImageUrl?: string;
|
|
60
|
-
generatedId?: string;
|
|
61
|
-
}
|
|
62
|
-
declare const IMAGE_WIZARD_STEPS: ReadonlyArray<WizardStep<ImageWizardStep>>;
|
|
63
|
-
declare function buildImageRequest(data: ImageWizardData): ImageGenerationRequest;
|
|
64
|
-
|
|
65
|
-
type VideoGenerationType = 'text-to-video' | 'image-to-video' | 'video-to-video';
|
|
66
|
-
type VideoWizardStep = 'select-type' | 'input-source' | 'configure' | 'advanced' | 'preview' | 'generating' | 'results';
|
|
67
|
-
interface VideoWizardData {
|
|
68
|
-
generationType?: VideoGenerationType;
|
|
69
|
-
prompt?: string;
|
|
70
|
-
imageUrl?: string;
|
|
71
|
-
sourceVideoUrl?: string;
|
|
72
|
-
duration?: number;
|
|
73
|
-
aspectRatio?: '16:9' | '9:16' | '1:1';
|
|
74
|
-
style?: 'realistic' | 'animated' | 'cinematic' | 'documentary';
|
|
75
|
-
quality?: 'standard' | 'high' | 'ultra';
|
|
76
|
-
motion?: 'slow' | 'medium' | 'fast';
|
|
77
|
-
camera?: 'static' | 'pan' | 'zoom' | 'tracking';
|
|
78
|
-
styleTransfer?: 'cinematic' | 'anime' | 'cartoon' | 'vintage';
|
|
79
|
-
enhanceQuality?: boolean;
|
|
80
|
-
generatedVideoUrl?: string;
|
|
81
|
-
generatedId?: string;
|
|
82
|
-
}
|
|
83
|
-
declare const VIDEO_WIZARD_STEPS: ReadonlyArray<WizardStep<VideoWizardStep>>;
|
|
84
|
-
declare function buildVideoRequest(data: VideoWizardData): VideoGenerationRequest | ImageToVideoRequest | VideoToVideoRequest;
|
|
85
|
-
|
|
86
|
-
export { CONTENT_WIZARD_STEPS, type ContentType, type ContentWizardData, type ContentWizardStep, IMAGE_WIZARD_STEPS, type ImageWizardData, type ImageWizardStep, VIDEO_WIZARD_STEPS, type ValidationResult, type VideoGenerationType, type VideoWizardData, type VideoWizardStep, type WizardConfig, type WizardData, type WizardStep, buildContentRequest, buildImageRequest, buildVideoRequest };
|
|
1
|
+
export { C as CONTENT_WIZARD_STEPS, g as ContentType, e as ContentWizardData, f as ContentWizardStep, I as IMAGE_WIZARD_STEPS, j as ImageWizardData, k as ImageWizardStep, V as VIDEO_WIZARD_STEPS, o as ValidationResult, p as VideoGenerationType, 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-BUVULo3h.js';
|
|
2
|
+
import '../ProviderConfig-DIFa9nmG.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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",
|
|
@@ -47,6 +47,21 @@
|
|
|
47
47
|
"import": "./dist/wizard/index.js",
|
|
48
48
|
"require": "./dist/wizard/index.cjs"
|
|
49
49
|
},
|
|
50
|
+
"./domain": {
|
|
51
|
+
"types": "./dist/content/index.d.ts",
|
|
52
|
+
"import": "./dist/content/index.js",
|
|
53
|
+
"require": "./dist/content/index.cjs"
|
|
54
|
+
},
|
|
55
|
+
"./application": {
|
|
56
|
+
"types": "./dist/content/index.d.ts",
|
|
57
|
+
"import": "./dist/content/index.js",
|
|
58
|
+
"require": "./dist/content/index.cjs"
|
|
59
|
+
},
|
|
60
|
+
"./presentation": {
|
|
61
|
+
"types": "./dist/hooks/index.d.ts",
|
|
62
|
+
"import": "./dist/hooks/index.js",
|
|
63
|
+
"require": "./dist/hooks/index.cjs"
|
|
64
|
+
},
|
|
50
65
|
"./hooks": {
|
|
51
66
|
"types": "./dist/hooks/index.d.ts",
|
|
52
67
|
"import": "./dist/hooks/index.js",
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
type SocialPlatform = 'twitter' | 'linkedin' | 'instagram' | 'threads' | 'tiktok' | 'facebook';
|
|
2
|
-
type ContentTone = 'professional' | 'casual' | 'enthusiastic' | 'humorous' | 'dramatic' | 'educational' | 'inspirational';
|
|
3
|
-
type ContentType = 'blog' | 'video' | 'social' | 'email' | 'advertisement' | 'caption' | 'script';
|
|
4
|
-
type Emotion = 'happy' | 'excited' | 'calm' | 'sad' | 'angry' | 'surprised' | 'fearful' | 'disgusted' | 'neutral';
|
|
5
|
-
type Sentiment = 'positive' | 'neutral' | 'negative';
|
|
6
|
-
type BlogType = 'tutorial' | 'listicle' | 'review' | 'opinion' | 'howto';
|
|
7
|
-
interface PlatformSpecs {
|
|
8
|
-
maxLength: number;
|
|
9
|
-
style: string;
|
|
10
|
-
emojiSupport: boolean;
|
|
11
|
-
hashtagSupport: boolean;
|
|
12
|
-
imageSupport: boolean;
|
|
13
|
-
videoSupport: boolean;
|
|
14
|
-
maxHashtags: number;
|
|
15
|
-
}
|
|
16
|
-
declare const PLATFORM_SPECS: Record<SocialPlatform, PlatformSpecs>;
|
|
17
|
-
|
|
18
|
-
interface BlogGenerationRequest {
|
|
19
|
-
topic: string;
|
|
20
|
-
blogType: 'tutorial' | 'listicle' | 'review' | 'opinion' | 'howto';
|
|
21
|
-
targetKeywords: string[];
|
|
22
|
-
tone: ContentTone;
|
|
23
|
-
wordCount: number;
|
|
24
|
-
targetAudience: string;
|
|
25
|
-
seoOptimization: boolean;
|
|
26
|
-
includeImages: boolean;
|
|
27
|
-
includeSchema: boolean;
|
|
28
|
-
language?: string;
|
|
29
|
-
}
|
|
30
|
-
interface GeneratedBlog {
|
|
31
|
-
id: string;
|
|
32
|
-
title: string;
|
|
33
|
-
content: string;
|
|
34
|
-
metaDescription: string;
|
|
35
|
-
blogType: string;
|
|
36
|
-
tone: string;
|
|
37
|
-
wordCount: number;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
seoScore: number;
|
|
40
|
-
readabilityScore: number;
|
|
41
|
-
keywords: string[];
|
|
42
|
-
performance: {
|
|
43
|
-
readingTime: number;
|
|
44
|
-
shareability: number;
|
|
45
|
-
seoRank: number;
|
|
46
|
-
};
|
|
47
|
-
schemaMarkup?: string;
|
|
48
|
-
imagePrompts?: string[];
|
|
49
|
-
}
|
|
50
|
-
interface SocialContentRequest {
|
|
51
|
-
topic: string;
|
|
52
|
-
platform: SocialPlatform;
|
|
53
|
-
tone: ContentTone;
|
|
54
|
-
hashtags?: boolean;
|
|
55
|
-
maxLength?: number;
|
|
56
|
-
targetAudience?: string;
|
|
57
|
-
includeCallToAction?: boolean;
|
|
58
|
-
}
|
|
59
|
-
interface GeneratedSocialContent {
|
|
60
|
-
content: string;
|
|
61
|
-
platform: SocialPlatform;
|
|
62
|
-
hashtags: string[];
|
|
63
|
-
emojis: string[];
|
|
64
|
-
characterCount: number;
|
|
65
|
-
estimatedEngagement: number;
|
|
66
|
-
}
|
|
67
|
-
interface VideoScriptRequest {
|
|
68
|
-
topic: string;
|
|
69
|
-
tone: ContentTone;
|
|
70
|
-
duration: number;
|
|
71
|
-
targetAudience: string;
|
|
72
|
-
includeVisuals: boolean;
|
|
73
|
-
includeCallToAction: boolean;
|
|
74
|
-
}
|
|
75
|
-
interface GeneratedVideoScript {
|
|
76
|
-
script: string;
|
|
77
|
-
visualCues: string[];
|
|
78
|
-
duration: number;
|
|
79
|
-
wordCount: number;
|
|
80
|
-
estimatedEngagement: number;
|
|
81
|
-
callToAction?: string;
|
|
82
|
-
}
|
|
83
|
-
interface ContentCalendarEntry {
|
|
84
|
-
date: Date;
|
|
85
|
-
topic: string;
|
|
86
|
-
contentType: ContentType;
|
|
87
|
-
platform: SocialPlatform;
|
|
88
|
-
description: string;
|
|
89
|
-
estimatedEngagement: number;
|
|
90
|
-
priority: 'high' | 'medium' | 'low';
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export { type BlogGenerationRequest as B, type ContentType as C, type Emotion as E, type GeneratedBlog as G, PLATFORM_SPECS as P, type Sentiment as S, type VideoScriptRequest as V, type ContentTone as a, type SocialContentRequest as b, type GeneratedSocialContent as c, type GeneratedVideoScript as d, type ContentCalendarEntry as e, type SocialPlatform as f, type BlogType as g, type PlatformSpecs as h };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
type SocialPlatform = 'twitter' | 'linkedin' | 'instagram' | 'threads' | 'tiktok' | 'facebook';
|
|
2
|
-
type ContentTone = 'professional' | 'casual' | 'enthusiastic' | 'humorous' | 'dramatic' | 'educational' | 'inspirational';
|
|
3
|
-
type ContentType = 'blog' | 'video' | 'social' | 'email' | 'advertisement' | 'caption' | 'script';
|
|
4
|
-
type Emotion = 'happy' | 'excited' | 'calm' | 'sad' | 'angry' | 'surprised' | 'fearful' | 'disgusted' | 'neutral';
|
|
5
|
-
type Sentiment = 'positive' | 'neutral' | 'negative';
|
|
6
|
-
type BlogType = 'tutorial' | 'listicle' | 'review' | 'opinion' | 'howto';
|
|
7
|
-
interface PlatformSpecs {
|
|
8
|
-
maxLength: number;
|
|
9
|
-
style: string;
|
|
10
|
-
emojiSupport: boolean;
|
|
11
|
-
hashtagSupport: boolean;
|
|
12
|
-
imageSupport: boolean;
|
|
13
|
-
videoSupport: boolean;
|
|
14
|
-
maxHashtags: number;
|
|
15
|
-
}
|
|
16
|
-
declare const PLATFORM_SPECS: Record<SocialPlatform, PlatformSpecs>;
|
|
17
|
-
|
|
18
|
-
interface BlogGenerationRequest {
|
|
19
|
-
topic: string;
|
|
20
|
-
blogType: 'tutorial' | 'listicle' | 'review' | 'opinion' | 'howto';
|
|
21
|
-
targetKeywords: string[];
|
|
22
|
-
tone: ContentTone;
|
|
23
|
-
wordCount: number;
|
|
24
|
-
targetAudience: string;
|
|
25
|
-
seoOptimization: boolean;
|
|
26
|
-
includeImages: boolean;
|
|
27
|
-
includeSchema: boolean;
|
|
28
|
-
language?: string;
|
|
29
|
-
}
|
|
30
|
-
interface GeneratedBlog {
|
|
31
|
-
id: string;
|
|
32
|
-
title: string;
|
|
33
|
-
content: string;
|
|
34
|
-
metaDescription: string;
|
|
35
|
-
blogType: string;
|
|
36
|
-
tone: string;
|
|
37
|
-
wordCount: number;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
seoScore: number;
|
|
40
|
-
readabilityScore: number;
|
|
41
|
-
keywords: string[];
|
|
42
|
-
performance: {
|
|
43
|
-
readingTime: number;
|
|
44
|
-
shareability: number;
|
|
45
|
-
seoRank: number;
|
|
46
|
-
};
|
|
47
|
-
schemaMarkup?: string;
|
|
48
|
-
imagePrompts?: string[];
|
|
49
|
-
}
|
|
50
|
-
interface SocialContentRequest {
|
|
51
|
-
topic: string;
|
|
52
|
-
platform: SocialPlatform;
|
|
53
|
-
tone: ContentTone;
|
|
54
|
-
hashtags?: boolean;
|
|
55
|
-
maxLength?: number;
|
|
56
|
-
targetAudience?: string;
|
|
57
|
-
includeCallToAction?: boolean;
|
|
58
|
-
}
|
|
59
|
-
interface GeneratedSocialContent {
|
|
60
|
-
content: string;
|
|
61
|
-
platform: SocialPlatform;
|
|
62
|
-
hashtags: string[];
|
|
63
|
-
emojis: string[];
|
|
64
|
-
characterCount: number;
|
|
65
|
-
estimatedEngagement: number;
|
|
66
|
-
}
|
|
67
|
-
interface VideoScriptRequest {
|
|
68
|
-
topic: string;
|
|
69
|
-
tone: ContentTone;
|
|
70
|
-
duration: number;
|
|
71
|
-
targetAudience: string;
|
|
72
|
-
includeVisuals: boolean;
|
|
73
|
-
includeCallToAction: boolean;
|
|
74
|
-
}
|
|
75
|
-
interface GeneratedVideoScript {
|
|
76
|
-
script: string;
|
|
77
|
-
visualCues: string[];
|
|
78
|
-
duration: number;
|
|
79
|
-
wordCount: number;
|
|
80
|
-
estimatedEngagement: number;
|
|
81
|
-
callToAction?: string;
|
|
82
|
-
}
|
|
83
|
-
interface ContentCalendarEntry {
|
|
84
|
-
date: Date;
|
|
85
|
-
topic: string;
|
|
86
|
-
contentType: ContentType;
|
|
87
|
-
platform: SocialPlatform;
|
|
88
|
-
description: string;
|
|
89
|
-
estimatedEngagement: number;
|
|
90
|
-
priority: 'high' | 'medium' | 'low';
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export { type BlogGenerationRequest as B, type ContentType as C, type Emotion as E, type GeneratedBlog as G, PLATFORM_SPECS as P, type Sentiment as S, type VideoScriptRequest as V, type ContentTone as a, type SocialContentRequest as b, type GeneratedSocialContent as c, type GeneratedVideoScript as d, type ContentCalendarEntry as e, type SocialPlatform as f, type BlogType as g, type PlatformSpecs as h };
|