@perkos/schema-validation 1.0.0
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/README.md +180 -0
- package/dist/ai.d.mts +307 -0
- package/dist/ai.d.ts +307 -0
- package/dist/ai.js +173 -0
- package/dist/ai.js.map +1 -0
- package/dist/ai.mjs +45 -0
- package/dist/ai.mjs.map +1 -0
- package/dist/chunk-2ZIZ7TXR.mjs +130 -0
- package/dist/chunk-2ZIZ7TXR.mjs.map +1 -0
- package/dist/chunk-AGE4J5TS.mjs +127 -0
- package/dist/chunk-AGE4J5TS.mjs.map +1 -0
- package/dist/index.d.mts +41 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +351 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +111 -0
- package/dist/index.mjs.map +1 -0
- package/dist/payment.d.mts +361 -0
- package/dist/payment.d.ts +361 -0
- package/dist/payment.js +167 -0
- package/dist/payment.js.map +1 -0
- package/dist/payment.mjs +39 -0
- package/dist/payment.mjs.map +1 -0
- package/package.json +66 -0
package/dist/ai.d.ts
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @perkos/validators/ai
|
|
5
|
+
* AI endpoint request validators using Zod
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare const imageAnalyzeSchema: z.ZodObject<{
|
|
9
|
+
image: z.ZodString;
|
|
10
|
+
question: z.ZodOptional<z.ZodString>;
|
|
11
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
image: string;
|
|
14
|
+
question?: string | undefined;
|
|
15
|
+
maxTokens?: number | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
image: string;
|
|
18
|
+
question?: string | undefined;
|
|
19
|
+
maxTokens?: number | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
declare const imageGenerateSchema: z.ZodObject<{
|
|
22
|
+
prompt: z.ZodString;
|
|
23
|
+
size: z.ZodDefault<z.ZodOptional<z.ZodEnum<["1024x1024", "1792x1024", "1024x1792"]>>>;
|
|
24
|
+
quality: z.ZodDefault<z.ZodOptional<z.ZodEnum<["standard", "hd"]>>>;
|
|
25
|
+
style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["vivid", "natural"]>>>;
|
|
26
|
+
n: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
prompt: string;
|
|
29
|
+
size: "1024x1024" | "1792x1024" | "1024x1792";
|
|
30
|
+
quality: "standard" | "hd";
|
|
31
|
+
style: "vivid" | "natural";
|
|
32
|
+
n: number;
|
|
33
|
+
}, {
|
|
34
|
+
prompt: string;
|
|
35
|
+
size?: "1024x1024" | "1792x1024" | "1024x1792" | undefined;
|
|
36
|
+
quality?: "standard" | "hd" | undefined;
|
|
37
|
+
style?: "vivid" | "natural" | undefined;
|
|
38
|
+
n?: number | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
declare const ocrExtractSchema: z.ZodObject<{
|
|
41
|
+
image: z.ZodString;
|
|
42
|
+
language: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
image: string;
|
|
45
|
+
language?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
image: string;
|
|
48
|
+
language?: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
declare const textSynthesizeSchema: z.ZodObject<{
|
|
51
|
+
text: z.ZodString;
|
|
52
|
+
voice: z.ZodDefault<z.ZodOptional<z.ZodEnum<["alloy", "echo", "fable", "onyx", "nova", "shimmer"]>>>;
|
|
53
|
+
speed: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
text: string;
|
|
56
|
+
voice: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer";
|
|
57
|
+
speed: number;
|
|
58
|
+
}, {
|
|
59
|
+
text: string;
|
|
60
|
+
voice?: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | undefined;
|
|
61
|
+
speed?: number | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
declare const audioTranscribeSchema: z.ZodObject<{
|
|
64
|
+
audio: z.ZodString;
|
|
65
|
+
language: z.ZodOptional<z.ZodString>;
|
|
66
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
audio: string;
|
|
69
|
+
prompt?: string | undefined;
|
|
70
|
+
language?: string | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
audio: string;
|
|
73
|
+
prompt?: string | undefined;
|
|
74
|
+
language?: string | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
declare const textSummarizeSchema: z.ZodObject<{
|
|
77
|
+
text: z.ZodString;
|
|
78
|
+
length: z.ZodDefault<z.ZodOptional<z.ZodEnum<["short", "medium", "long"]>>>;
|
|
79
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["paragraph", "bullets"]>>>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
length: "short" | "medium" | "long";
|
|
82
|
+
text: string;
|
|
83
|
+
format: "paragraph" | "bullets";
|
|
84
|
+
}, {
|
|
85
|
+
text: string;
|
|
86
|
+
length?: "short" | "medium" | "long" | undefined;
|
|
87
|
+
format?: "paragraph" | "bullets" | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
declare const textTranslateSchema: z.ZodObject<{
|
|
90
|
+
text: z.ZodString;
|
|
91
|
+
sourceLang: z.ZodString;
|
|
92
|
+
targetLang: z.ZodString;
|
|
93
|
+
formality: z.ZodOptional<z.ZodEnum<["formal", "informal", "neutral"]>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
text: string;
|
|
96
|
+
sourceLang: string;
|
|
97
|
+
targetLang: string;
|
|
98
|
+
formality?: "formal" | "informal" | "neutral" | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
text: string;
|
|
101
|
+
sourceLang: string;
|
|
102
|
+
targetLang: string;
|
|
103
|
+
formality?: "formal" | "informal" | "neutral" | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
declare const sentimentAnalyzeSchema: z.ZodObject<{
|
|
106
|
+
text: z.ZodString;
|
|
107
|
+
detailed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
text: string;
|
|
110
|
+
detailed: boolean;
|
|
111
|
+
}, {
|
|
112
|
+
text: string;
|
|
113
|
+
detailed?: boolean | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
declare const contentModerateSchema: z.ZodObject<{
|
|
116
|
+
content: z.ZodString;
|
|
117
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
content: string;
|
|
120
|
+
categories?: string[] | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
content: string;
|
|
123
|
+
categories?: string[] | undefined;
|
|
124
|
+
}>;
|
|
125
|
+
declare const textSimplifySchema: z.ZodObject<{
|
|
126
|
+
text: z.ZodString;
|
|
127
|
+
targetLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["elementary", "middle", "high", "college"]>>>;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
text: string;
|
|
130
|
+
targetLevel: "elementary" | "middle" | "high" | "college";
|
|
131
|
+
}, {
|
|
132
|
+
text: string;
|
|
133
|
+
targetLevel?: "elementary" | "middle" | "high" | "college" | undefined;
|
|
134
|
+
}>;
|
|
135
|
+
declare const entityExtractSchema: z.ZodObject<{
|
|
136
|
+
text: z.ZodString;
|
|
137
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["person", "organization", "location", "date", "money", "product"]>, "many">>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
text: string;
|
|
140
|
+
types?: ("date" | "person" | "organization" | "location" | "money" | "product")[] | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
text: string;
|
|
143
|
+
types?: ("date" | "person" | "organization" | "location" | "money" | "product")[] | undefined;
|
|
144
|
+
}>;
|
|
145
|
+
declare const emailGenerateSchema: z.ZodObject<{
|
|
146
|
+
context: z.ZodString;
|
|
147
|
+
tone: z.ZodDefault<z.ZodOptional<z.ZodEnum<["professional", "friendly", "formal", "casual"]>>>;
|
|
148
|
+
length: z.ZodDefault<z.ZodOptional<z.ZodEnum<["short", "medium", "long"]>>>;
|
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
length: "short" | "medium" | "long";
|
|
151
|
+
context: string;
|
|
152
|
+
tone: "formal" | "professional" | "friendly" | "casual";
|
|
153
|
+
}, {
|
|
154
|
+
context: string;
|
|
155
|
+
length?: "short" | "medium" | "long" | undefined;
|
|
156
|
+
tone?: "formal" | "professional" | "friendly" | "casual" | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
declare const productDescriptionSchema: z.ZodObject<{
|
|
159
|
+
product: z.ZodString;
|
|
160
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
161
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
162
|
+
tone: z.ZodDefault<z.ZodOptional<z.ZodEnum<["professional", "casual", "luxury", "technical"]>>>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
product: string;
|
|
165
|
+
tone: "professional" | "casual" | "luxury" | "technical";
|
|
166
|
+
features?: string[] | undefined;
|
|
167
|
+
audience?: string | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
product: string;
|
|
170
|
+
tone?: "professional" | "casual" | "luxury" | "technical" | undefined;
|
|
171
|
+
features?: string[] | undefined;
|
|
172
|
+
audience?: string | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
declare const seoOptimizeSchema: z.ZodObject<{
|
|
175
|
+
content: z.ZodString;
|
|
176
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
177
|
+
targetUrl: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
content: string;
|
|
180
|
+
keywords?: string[] | undefined;
|
|
181
|
+
targetUrl?: string | undefined;
|
|
182
|
+
}, {
|
|
183
|
+
content: string;
|
|
184
|
+
keywords?: string[] | undefined;
|
|
185
|
+
targetUrl?: string | undefined;
|
|
186
|
+
}>;
|
|
187
|
+
declare const codeGenerateSchema: z.ZodObject<{
|
|
188
|
+
prompt: z.ZodString;
|
|
189
|
+
language: z.ZodString;
|
|
190
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
191
|
+
style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["concise", "documented", "verbose"]>>>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
prompt: string;
|
|
194
|
+
style: "concise" | "documented" | "verbose";
|
|
195
|
+
language: string;
|
|
196
|
+
framework?: string | undefined;
|
|
197
|
+
}, {
|
|
198
|
+
prompt: string;
|
|
199
|
+
language: string;
|
|
200
|
+
style?: "concise" | "documented" | "verbose" | undefined;
|
|
201
|
+
framework?: string | undefined;
|
|
202
|
+
}>;
|
|
203
|
+
declare const codeReviewSchema: z.ZodObject<{
|
|
204
|
+
code: z.ZodString;
|
|
205
|
+
language: z.ZodOptional<z.ZodString>;
|
|
206
|
+
focus: z.ZodOptional<z.ZodArray<z.ZodEnum<["security", "performance", "readability", "bugs", "best-practices"]>, "many">>;
|
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
code: string;
|
|
209
|
+
language?: string | undefined;
|
|
210
|
+
focus?: ("security" | "performance" | "readability" | "bugs" | "best-practices")[] | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
code: string;
|
|
213
|
+
language?: string | undefined;
|
|
214
|
+
focus?: ("security" | "performance" | "readability" | "bugs" | "best-practices")[] | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
declare const sqlQuerySchema: z.ZodObject<{
|
|
217
|
+
description: z.ZodString;
|
|
218
|
+
schema: z.ZodOptional<z.ZodString>;
|
|
219
|
+
dialect: z.ZodDefault<z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql"]>>>;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
description: string;
|
|
222
|
+
dialect: "postgresql" | "mysql" | "sqlite" | "mssql";
|
|
223
|
+
schema?: string | undefined;
|
|
224
|
+
}, {
|
|
225
|
+
description: string;
|
|
226
|
+
schema?: string | undefined;
|
|
227
|
+
dialect?: "postgresql" | "mysql" | "sqlite" | "mssql" | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
declare const regexGenerateSchema: z.ZodObject<{
|
|
230
|
+
description: z.ZodString;
|
|
231
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
232
|
+
input: z.ZodString;
|
|
233
|
+
shouldMatch: z.ZodBoolean;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
input: string;
|
|
236
|
+
shouldMatch: boolean;
|
|
237
|
+
}, {
|
|
238
|
+
input: string;
|
|
239
|
+
shouldMatch: boolean;
|
|
240
|
+
}>, "many">>;
|
|
241
|
+
flavor: z.ZodDefault<z.ZodOptional<z.ZodEnum<["javascript", "python", "pcre"]>>>;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
description: string;
|
|
244
|
+
flavor: "javascript" | "python" | "pcre";
|
|
245
|
+
examples?: {
|
|
246
|
+
input: string;
|
|
247
|
+
shouldMatch: boolean;
|
|
248
|
+
}[] | undefined;
|
|
249
|
+
}, {
|
|
250
|
+
description: string;
|
|
251
|
+
examples?: {
|
|
252
|
+
input: string;
|
|
253
|
+
shouldMatch: boolean;
|
|
254
|
+
}[] | undefined;
|
|
255
|
+
flavor?: "javascript" | "python" | "pcre" | undefined;
|
|
256
|
+
}>;
|
|
257
|
+
declare const apiDocsSchema: z.ZodObject<{
|
|
258
|
+
code: z.ZodString;
|
|
259
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["openapi", "markdown", "jsdoc"]>>>;
|
|
260
|
+
includeExamples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
code: string;
|
|
263
|
+
format: "openapi" | "markdown" | "jsdoc";
|
|
264
|
+
includeExamples: boolean;
|
|
265
|
+
}, {
|
|
266
|
+
code: string;
|
|
267
|
+
format?: "openapi" | "markdown" | "jsdoc" | undefined;
|
|
268
|
+
includeExamples?: boolean | undefined;
|
|
269
|
+
}>;
|
|
270
|
+
declare const quizGenerateSchema: z.ZodObject<{
|
|
271
|
+
topic: z.ZodString;
|
|
272
|
+
questionCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
273
|
+
difficulty: z.ZodDefault<z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>>;
|
|
274
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["multiple-choice", "true-false", "mixed"]>>>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
type: "multiple-choice" | "true-false" | "mixed";
|
|
277
|
+
topic: string;
|
|
278
|
+
questionCount: number;
|
|
279
|
+
difficulty: "medium" | "easy" | "hard";
|
|
280
|
+
}, {
|
|
281
|
+
topic: string;
|
|
282
|
+
type?: "multiple-choice" | "true-false" | "mixed" | undefined;
|
|
283
|
+
questionCount?: number | undefined;
|
|
284
|
+
difficulty?: "medium" | "easy" | "hard" | undefined;
|
|
285
|
+
}>;
|
|
286
|
+
type ImageAnalyzeInput = z.infer<typeof imageAnalyzeSchema>;
|
|
287
|
+
type ImageGenerateInput = z.infer<typeof imageGenerateSchema>;
|
|
288
|
+
type OCRExtractInput = z.infer<typeof ocrExtractSchema>;
|
|
289
|
+
type TextSynthesizeInput = z.infer<typeof textSynthesizeSchema>;
|
|
290
|
+
type AudioTranscribeInput = z.infer<typeof audioTranscribeSchema>;
|
|
291
|
+
type TextSummarizeInput = z.infer<typeof textSummarizeSchema>;
|
|
292
|
+
type TextTranslateInput = z.infer<typeof textTranslateSchema>;
|
|
293
|
+
type SentimentAnalyzeInput = z.infer<typeof sentimentAnalyzeSchema>;
|
|
294
|
+
type ContentModerateInput = z.infer<typeof contentModerateSchema>;
|
|
295
|
+
type TextSimplifyInput = z.infer<typeof textSimplifySchema>;
|
|
296
|
+
type EntityExtractInput = z.infer<typeof entityExtractSchema>;
|
|
297
|
+
type EmailGenerateInput = z.infer<typeof emailGenerateSchema>;
|
|
298
|
+
type ProductDescriptionInput = z.infer<typeof productDescriptionSchema>;
|
|
299
|
+
type SEOOptimizeInput = z.infer<typeof seoOptimizeSchema>;
|
|
300
|
+
type CodeGenerateInput = z.infer<typeof codeGenerateSchema>;
|
|
301
|
+
type CodeReviewInput = z.infer<typeof codeReviewSchema>;
|
|
302
|
+
type SQLQueryInput = z.infer<typeof sqlQuerySchema>;
|
|
303
|
+
type RegexGenerateInput = z.infer<typeof regexGenerateSchema>;
|
|
304
|
+
type APIDocsInput = z.infer<typeof apiDocsSchema>;
|
|
305
|
+
type QuizGenerateInput = z.infer<typeof quizGenerateSchema>;
|
|
306
|
+
|
|
307
|
+
export { type APIDocsInput, type AudioTranscribeInput, type CodeGenerateInput, type CodeReviewInput, type ContentModerateInput, type EmailGenerateInput, type EntityExtractInput, type ImageAnalyzeInput, type ImageGenerateInput, type OCRExtractInput, type ProductDescriptionInput, type QuizGenerateInput, type RegexGenerateInput, type SEOOptimizeInput, type SQLQueryInput, type SentimentAnalyzeInput, type TextSimplifyInput, type TextSummarizeInput, type TextSynthesizeInput, type TextTranslateInput, apiDocsSchema, audioTranscribeSchema, codeGenerateSchema, codeReviewSchema, contentModerateSchema, emailGenerateSchema, entityExtractSchema, imageAnalyzeSchema, imageGenerateSchema, ocrExtractSchema, productDescriptionSchema, quizGenerateSchema, regexGenerateSchema, sentimentAnalyzeSchema, seoOptimizeSchema, sqlQuerySchema, textSimplifySchema, textSummarizeSchema, textSynthesizeSchema, textTranslateSchema };
|
package/dist/ai.js
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/ai.ts
|
|
21
|
+
var ai_exports = {};
|
|
22
|
+
__export(ai_exports, {
|
|
23
|
+
apiDocsSchema: () => apiDocsSchema,
|
|
24
|
+
audioTranscribeSchema: () => audioTranscribeSchema,
|
|
25
|
+
codeGenerateSchema: () => codeGenerateSchema,
|
|
26
|
+
codeReviewSchema: () => codeReviewSchema,
|
|
27
|
+
contentModerateSchema: () => contentModerateSchema,
|
|
28
|
+
emailGenerateSchema: () => emailGenerateSchema,
|
|
29
|
+
entityExtractSchema: () => entityExtractSchema,
|
|
30
|
+
imageAnalyzeSchema: () => imageAnalyzeSchema,
|
|
31
|
+
imageGenerateSchema: () => imageGenerateSchema,
|
|
32
|
+
ocrExtractSchema: () => ocrExtractSchema,
|
|
33
|
+
productDescriptionSchema: () => productDescriptionSchema,
|
|
34
|
+
quizGenerateSchema: () => quizGenerateSchema,
|
|
35
|
+
regexGenerateSchema: () => regexGenerateSchema,
|
|
36
|
+
sentimentAnalyzeSchema: () => sentimentAnalyzeSchema,
|
|
37
|
+
seoOptimizeSchema: () => seoOptimizeSchema,
|
|
38
|
+
sqlQuerySchema: () => sqlQuerySchema,
|
|
39
|
+
textSimplifySchema: () => textSimplifySchema,
|
|
40
|
+
textSummarizeSchema: () => textSummarizeSchema,
|
|
41
|
+
textSynthesizeSchema: () => textSynthesizeSchema,
|
|
42
|
+
textTranslateSchema: () => textTranslateSchema
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(ai_exports);
|
|
45
|
+
var import_zod = require("zod");
|
|
46
|
+
var imageAnalyzeSchema = import_zod.z.object({
|
|
47
|
+
image: import_zod.z.string().min(1, "Image URL is required"),
|
|
48
|
+
question: import_zod.z.string().optional(),
|
|
49
|
+
maxTokens: import_zod.z.number().int().positive().optional()
|
|
50
|
+
});
|
|
51
|
+
var imageGenerateSchema = import_zod.z.object({
|
|
52
|
+
prompt: import_zod.z.string().min(1, "Prompt is required"),
|
|
53
|
+
size: import_zod.z.enum(["1024x1024", "1792x1024", "1024x1792"]).optional().default("1024x1024"),
|
|
54
|
+
quality: import_zod.z.enum(["standard", "hd"]).optional().default("standard"),
|
|
55
|
+
style: import_zod.z.enum(["vivid", "natural"]).optional().default("vivid"),
|
|
56
|
+
n: import_zod.z.number().int().min(1).max(10).optional().default(1)
|
|
57
|
+
});
|
|
58
|
+
var ocrExtractSchema = import_zod.z.object({
|
|
59
|
+
image: import_zod.z.string().min(1, "Image URL is required"),
|
|
60
|
+
language: import_zod.z.string().optional()
|
|
61
|
+
});
|
|
62
|
+
var textSynthesizeSchema = import_zod.z.object({
|
|
63
|
+
text: import_zod.z.string().min(1, "Text is required").max(4096, "Text too long"),
|
|
64
|
+
voice: import_zod.z.enum(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]).optional().default("alloy"),
|
|
65
|
+
speed: import_zod.z.number().min(0.25).max(4).optional().default(1)
|
|
66
|
+
});
|
|
67
|
+
var audioTranscribeSchema = import_zod.z.object({
|
|
68
|
+
audio: import_zod.z.string().min(1, "Audio URL is required"),
|
|
69
|
+
language: import_zod.z.string().optional(),
|
|
70
|
+
prompt: import_zod.z.string().optional()
|
|
71
|
+
});
|
|
72
|
+
var textSummarizeSchema = import_zod.z.object({
|
|
73
|
+
text: import_zod.z.string().min(1, "Text is required"),
|
|
74
|
+
length: import_zod.z.enum(["short", "medium", "long"]).optional().default("medium"),
|
|
75
|
+
format: import_zod.z.enum(["paragraph", "bullets"]).optional().default("paragraph")
|
|
76
|
+
});
|
|
77
|
+
var textTranslateSchema = import_zod.z.object({
|
|
78
|
+
text: import_zod.z.string().min(1, "Text is required"),
|
|
79
|
+
sourceLang: import_zod.z.string().min(2, "Source language is required"),
|
|
80
|
+
targetLang: import_zod.z.string().min(2, "Target language is required"),
|
|
81
|
+
formality: import_zod.z.enum(["formal", "informal", "neutral"]).optional()
|
|
82
|
+
});
|
|
83
|
+
var sentimentAnalyzeSchema = import_zod.z.object({
|
|
84
|
+
text: import_zod.z.string().min(1, "Text is required"),
|
|
85
|
+
detailed: import_zod.z.boolean().optional().default(false)
|
|
86
|
+
});
|
|
87
|
+
var contentModerateSchema = import_zod.z.object({
|
|
88
|
+
content: import_zod.z.string().min(1, "Content is required"),
|
|
89
|
+
categories: import_zod.z.array(import_zod.z.string()).optional()
|
|
90
|
+
});
|
|
91
|
+
var textSimplifySchema = import_zod.z.object({
|
|
92
|
+
text: import_zod.z.string().min(1, "Text is required"),
|
|
93
|
+
targetLevel: import_zod.z.enum(["elementary", "middle", "high", "college"]).optional().default("middle")
|
|
94
|
+
});
|
|
95
|
+
var entityExtractSchema = import_zod.z.object({
|
|
96
|
+
text: import_zod.z.string().min(1, "Text is required"),
|
|
97
|
+
types: import_zod.z.array(import_zod.z.enum(["person", "organization", "location", "date", "money", "product"])).optional()
|
|
98
|
+
});
|
|
99
|
+
var emailGenerateSchema = import_zod.z.object({
|
|
100
|
+
context: import_zod.z.string().min(1, "Context is required"),
|
|
101
|
+
tone: import_zod.z.enum(["professional", "friendly", "formal", "casual"]).optional().default("professional"),
|
|
102
|
+
length: import_zod.z.enum(["short", "medium", "long"]).optional().default("medium")
|
|
103
|
+
});
|
|
104
|
+
var productDescriptionSchema = import_zod.z.object({
|
|
105
|
+
product: import_zod.z.string().min(1, "Product name/description is required"),
|
|
106
|
+
features: import_zod.z.array(import_zod.z.string()).optional(),
|
|
107
|
+
audience: import_zod.z.string().optional(),
|
|
108
|
+
tone: import_zod.z.enum(["professional", "casual", "luxury", "technical"]).optional().default("professional")
|
|
109
|
+
});
|
|
110
|
+
var seoOptimizeSchema = import_zod.z.object({
|
|
111
|
+
content: import_zod.z.string().min(1, "Content is required"),
|
|
112
|
+
keywords: import_zod.z.array(import_zod.z.string()).optional(),
|
|
113
|
+
targetUrl: import_zod.z.string().url().optional()
|
|
114
|
+
});
|
|
115
|
+
var codeGenerateSchema = import_zod.z.object({
|
|
116
|
+
prompt: import_zod.z.string().min(1, "Prompt is required"),
|
|
117
|
+
language: import_zod.z.string().min(1, "Programming language is required"),
|
|
118
|
+
framework: import_zod.z.string().optional(),
|
|
119
|
+
style: import_zod.z.enum(["concise", "documented", "verbose"]).optional().default("documented")
|
|
120
|
+
});
|
|
121
|
+
var codeReviewSchema = import_zod.z.object({
|
|
122
|
+
code: import_zod.z.string().min(1, "Code is required"),
|
|
123
|
+
language: import_zod.z.string().optional(),
|
|
124
|
+
focus: import_zod.z.array(import_zod.z.enum(["security", "performance", "readability", "bugs", "best-practices"])).optional()
|
|
125
|
+
});
|
|
126
|
+
var sqlQuerySchema = import_zod.z.object({
|
|
127
|
+
description: import_zod.z.string().min(1, "Description is required"),
|
|
128
|
+
schema: import_zod.z.string().optional(),
|
|
129
|
+
dialect: import_zod.z.enum(["postgresql", "mysql", "sqlite", "mssql"]).optional().default("postgresql")
|
|
130
|
+
});
|
|
131
|
+
var regexGenerateSchema = import_zod.z.object({
|
|
132
|
+
description: import_zod.z.string().min(1, "Description is required"),
|
|
133
|
+
examples: import_zod.z.array(import_zod.z.object({
|
|
134
|
+
input: import_zod.z.string(),
|
|
135
|
+
shouldMatch: import_zod.z.boolean()
|
|
136
|
+
})).optional(),
|
|
137
|
+
flavor: import_zod.z.enum(["javascript", "python", "pcre"]).optional().default("javascript")
|
|
138
|
+
});
|
|
139
|
+
var apiDocsSchema = import_zod.z.object({
|
|
140
|
+
code: import_zod.z.string().min(1, "Code is required"),
|
|
141
|
+
format: import_zod.z.enum(["openapi", "markdown", "jsdoc"]).optional().default("markdown"),
|
|
142
|
+
includeExamples: import_zod.z.boolean().optional().default(true)
|
|
143
|
+
});
|
|
144
|
+
var quizGenerateSchema = import_zod.z.object({
|
|
145
|
+
topic: import_zod.z.string().min(1, "Topic is required"),
|
|
146
|
+
questionCount: import_zod.z.number().int().min(1).max(50).optional().default(10),
|
|
147
|
+
difficulty: import_zod.z.enum(["easy", "medium", "hard"]).optional().default("medium"),
|
|
148
|
+
type: import_zod.z.enum(["multiple-choice", "true-false", "mixed"]).optional().default("multiple-choice")
|
|
149
|
+
});
|
|
150
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
151
|
+
0 && (module.exports = {
|
|
152
|
+
apiDocsSchema,
|
|
153
|
+
audioTranscribeSchema,
|
|
154
|
+
codeGenerateSchema,
|
|
155
|
+
codeReviewSchema,
|
|
156
|
+
contentModerateSchema,
|
|
157
|
+
emailGenerateSchema,
|
|
158
|
+
entityExtractSchema,
|
|
159
|
+
imageAnalyzeSchema,
|
|
160
|
+
imageGenerateSchema,
|
|
161
|
+
ocrExtractSchema,
|
|
162
|
+
productDescriptionSchema,
|
|
163
|
+
quizGenerateSchema,
|
|
164
|
+
regexGenerateSchema,
|
|
165
|
+
sentimentAnalyzeSchema,
|
|
166
|
+
seoOptimizeSchema,
|
|
167
|
+
sqlQuerySchema,
|
|
168
|
+
textSimplifySchema,
|
|
169
|
+
textSummarizeSchema,
|
|
170
|
+
textSynthesizeSchema,
|
|
171
|
+
textTranslateSchema
|
|
172
|
+
});
|
|
173
|
+
//# sourceMappingURL=ai.js.map
|
package/dist/ai.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ai.ts"],"sourcesContent":["/**\n * @perkos/validators/ai\n * AI endpoint request validators using Zod\n */\n\nimport { z } from \"zod\";\n\n// ============================================================================\n// Vision & Image Validators\n// ============================================================================\n\nexport const imageAnalyzeSchema = z.object({\n image: z.string().min(1, \"Image URL is required\"),\n question: z.string().optional(),\n maxTokens: z.number().int().positive().optional(),\n});\n\nexport const imageGenerateSchema = z.object({\n prompt: z.string().min(1, \"Prompt is required\"),\n size: z.enum([\"1024x1024\", \"1792x1024\", \"1024x1792\"]).optional().default(\"1024x1024\"),\n quality: z.enum([\"standard\", \"hd\"]).optional().default(\"standard\"),\n style: z.enum([\"vivid\", \"natural\"]).optional().default(\"vivid\"),\n n: z.number().int().min(1).max(10).optional().default(1),\n});\n\nexport const ocrExtractSchema = z.object({\n image: z.string().min(1, \"Image URL is required\"),\n language: z.string().optional(),\n});\n\n// ============================================================================\n// Audio Validators\n// ============================================================================\n\nexport const textSynthesizeSchema = z.object({\n text: z.string().min(1, \"Text is required\").max(4096, \"Text too long\"),\n voice: z.enum([\"alloy\", \"echo\", \"fable\", \"onyx\", \"nova\", \"shimmer\"])\n .optional()\n .default(\"alloy\"),\n speed: z.number().min(0.25).max(4.0).optional().default(1.0),\n});\n\nexport const audioTranscribeSchema = z.object({\n audio: z.string().min(1, \"Audio URL is required\"),\n language: z.string().optional(),\n prompt: z.string().optional(),\n});\n\n// ============================================================================\n// Text Processing Validators\n// ============================================================================\n\nexport const textSummarizeSchema = z.object({\n text: z.string().min(1, \"Text is required\"),\n length: z.enum([\"short\", \"medium\", \"long\"]).optional().default(\"medium\"),\n format: z.enum([\"paragraph\", \"bullets\"]).optional().default(\"paragraph\"),\n});\n\nexport const textTranslateSchema = z.object({\n text: z.string().min(1, \"Text is required\"),\n sourceLang: z.string().min(2, \"Source language is required\"),\n targetLang: z.string().min(2, \"Target language is required\"),\n formality: z.enum([\"formal\", \"informal\", \"neutral\"]).optional(),\n});\n\nexport const sentimentAnalyzeSchema = z.object({\n text: z.string().min(1, \"Text is required\"),\n detailed: z.boolean().optional().default(false),\n});\n\nexport const contentModerateSchema = z.object({\n content: z.string().min(1, \"Content is required\"),\n categories: z.array(z.string()).optional(),\n});\n\nexport const textSimplifySchema = z.object({\n text: z.string().min(1, \"Text is required\"),\n targetLevel: z.enum([\"elementary\", \"middle\", \"high\", \"college\"]).optional().default(\"middle\"),\n});\n\nexport const entityExtractSchema = z.object({\n text: z.string().min(1, \"Text is required\"),\n types: z.array(z.enum([\"person\", \"organization\", \"location\", \"date\", \"money\", \"product\"])).optional(),\n});\n\n// ============================================================================\n// Content Generation Validators\n// ============================================================================\n\nexport const emailGenerateSchema = z.object({\n context: z.string().min(1, \"Context is required\"),\n tone: z.enum([\"professional\", \"friendly\", \"formal\", \"casual\"]).optional().default(\"professional\"),\n length: z.enum([\"short\", \"medium\", \"long\"]).optional().default(\"medium\"),\n});\n\nexport const productDescriptionSchema = z.object({\n product: z.string().min(1, \"Product name/description is required\"),\n features: z.array(z.string()).optional(),\n audience: z.string().optional(),\n tone: z.enum([\"professional\", \"casual\", \"luxury\", \"technical\"]).optional().default(\"professional\"),\n});\n\nexport const seoOptimizeSchema = z.object({\n content: z.string().min(1, \"Content is required\"),\n keywords: z.array(z.string()).optional(),\n targetUrl: z.string().url().optional(),\n});\n\n// ============================================================================\n// Code & Technical Validators\n// ============================================================================\n\nexport const codeGenerateSchema = z.object({\n prompt: z.string().min(1, \"Prompt is required\"),\n language: z.string().min(1, \"Programming language is required\"),\n framework: z.string().optional(),\n style: z.enum([\"concise\", \"documented\", \"verbose\"]).optional().default(\"documented\"),\n});\n\nexport const codeReviewSchema = z.object({\n code: z.string().min(1, \"Code is required\"),\n language: z.string().optional(),\n focus: z.array(z.enum([\"security\", \"performance\", \"readability\", \"bugs\", \"best-practices\"])).optional(),\n});\n\nexport const sqlQuerySchema = z.object({\n description: z.string().min(1, \"Description is required\"),\n schema: z.string().optional(),\n dialect: z.enum([\"postgresql\", \"mysql\", \"sqlite\", \"mssql\"]).optional().default(\"postgresql\"),\n});\n\nexport const regexGenerateSchema = z.object({\n description: z.string().min(1, \"Description is required\"),\n examples: z.array(z.object({\n input: z.string(),\n shouldMatch: z.boolean(),\n })).optional(),\n flavor: z.enum([\"javascript\", \"python\", \"pcre\"]).optional().default(\"javascript\"),\n});\n\nexport const apiDocsSchema = z.object({\n code: z.string().min(1, \"Code is required\"),\n format: z.enum([\"openapi\", \"markdown\", \"jsdoc\"]).optional().default(\"markdown\"),\n includeExamples: z.boolean().optional().default(true),\n});\n\n// ============================================================================\n// Educational Validators\n// ============================================================================\n\nexport const quizGenerateSchema = z.object({\n topic: z.string().min(1, \"Topic is required\"),\n questionCount: z.number().int().min(1).max(50).optional().default(10),\n difficulty: z.enum([\"easy\", \"medium\", \"hard\"]).optional().default(\"medium\"),\n type: z.enum([\"multiple-choice\", \"true-false\", \"mixed\"]).optional().default(\"multiple-choice\"),\n});\n\n// ============================================================================\n// Type Exports\n// ============================================================================\n\nexport type ImageAnalyzeInput = z.infer<typeof imageAnalyzeSchema>;\nexport type ImageGenerateInput = z.infer<typeof imageGenerateSchema>;\nexport type OCRExtractInput = z.infer<typeof ocrExtractSchema>;\nexport type TextSynthesizeInput = z.infer<typeof textSynthesizeSchema>;\nexport type AudioTranscribeInput = z.infer<typeof audioTranscribeSchema>;\nexport type TextSummarizeInput = z.infer<typeof textSummarizeSchema>;\nexport type TextTranslateInput = z.infer<typeof textTranslateSchema>;\nexport type SentimentAnalyzeInput = z.infer<typeof sentimentAnalyzeSchema>;\nexport type ContentModerateInput = z.infer<typeof contentModerateSchema>;\nexport type TextSimplifyInput = z.infer<typeof textSimplifySchema>;\nexport type EntityExtractInput = z.infer<typeof entityExtractSchema>;\nexport type EmailGenerateInput = z.infer<typeof emailGenerateSchema>;\nexport type ProductDescriptionInput = z.infer<typeof productDescriptionSchema>;\nexport type SEOOptimizeInput = z.infer<typeof seoOptimizeSchema>;\nexport type CodeGenerateInput = z.infer<typeof codeGenerateSchema>;\nexport type CodeReviewInput = z.infer<typeof codeReviewSchema>;\nexport type SQLQueryInput = z.infer<typeof sqlQuerySchema>;\nexport type RegexGenerateInput = z.infer<typeof regexGenerateSchema>;\nexport type APIDocsInput = z.infer<typeof apiDocsSchema>;\nexport type QuizGenerateInput = z.infer<typeof quizGenerateSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,iBAAkB;AAMX,IAAM,qBAAqB,aAAE,OAAO;AAAA,EACzC,OAAO,aAAE,OAAO,EAAE,IAAI,GAAG,uBAAuB;AAAA,EAChD,UAAU,aAAE,OAAO,EAAE,SAAS;AAAA,EAC9B,WAAW,aAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS;AAClD,CAAC;AAEM,IAAM,sBAAsB,aAAE,OAAO;AAAA,EAC1C,QAAQ,aAAE,OAAO,EAAE,IAAI,GAAG,oBAAoB;AAAA,EAC9C,MAAM,aAAE,KAAK,CAAC,aAAa,aAAa,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,WAAW;AAAA,EACpF,SAAS,aAAE,KAAK,CAAC,YAAY,IAAI,CAAC,EAAE,SAAS,EAAE,QAAQ,UAAU;AAAA,EACjE,OAAO,aAAE,KAAK,CAAC,SAAS,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,OAAO;AAAA,EAC9D,GAAG,aAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,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eSchema,
|
|
10
|
+
imageGenerateSchema,
|
|
11
|
+
ocrExtractSchema,
|
|
12
|
+
productDescriptionSchema,
|
|
13
|
+
quizGenerateSchema,
|
|
14
|
+
regexGenerateSchema,
|
|
15
|
+
sentimentAnalyzeSchema,
|
|
16
|
+
seoOptimizeSchema,
|
|
17
|
+
sqlQuerySchema,
|
|
18
|
+
textSimplifySchema,
|
|
19
|
+
textSummarizeSchema,
|
|
20
|
+
textSynthesizeSchema,
|
|
21
|
+
textTranslateSchema
|
|
22
|
+
} from "./chunk-2ZIZ7TXR.mjs";
|
|
23
|
+
export {
|
|
24
|
+
apiDocsSchema,
|
|
25
|
+
audioTranscribeSchema,
|
|
26
|
+
codeGenerateSchema,
|
|
27
|
+
codeReviewSchema,
|
|
28
|
+
contentModerateSchema,
|
|
29
|
+
emailGenerateSchema,
|
|
30
|
+
entityExtractSchema,
|
|
31
|
+
imageAnalyzeSchema,
|
|
32
|
+
imageGenerateSchema,
|
|
33
|
+
ocrExtractSchema,
|
|
34
|
+
productDescriptionSchema,
|
|
35
|
+
quizGenerateSchema,
|
|
36
|
+
regexGenerateSchema,
|
|
37
|
+
sentimentAnalyzeSchema,
|
|
38
|
+
seoOptimizeSchema,
|
|
39
|
+
sqlQuerySchema,
|
|
40
|
+
textSimplifySchema,
|
|
41
|
+
textSummarizeSchema,
|
|
42
|
+
textSynthesizeSchema,
|
|
43
|
+
textTranslateSchema
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=ai.mjs.map
|
package/dist/ai.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|