@purpleschool/gptbot 0.12.76 → 0.12.77
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/build/commands/ai-studio/canvas-template/create-canvas-from-generated-template.command.js +2 -1
- package/build/models/canvas-node.schema.js +12 -6
- package/commands/ai-studio/canvas-template/create-canvas-from-generated-template.command.ts +2 -1
- package/models/canvas-node.schema.ts +12 -6
- package/package.json +1 -1
package/build/commands/ai-studio/canvas-template/create-canvas-from-generated-template.command.js
CHANGED
|
@@ -19,7 +19,8 @@ var CreateCanvasFromGeneratedTemplateCommand;
|
|
|
19
19
|
params: zod_1.z
|
|
20
20
|
.object({
|
|
21
21
|
prompt: zod_1.z.string().trim().min(1),
|
|
22
|
-
|
|
22
|
+
modelId: zod_1.z.string().trim().min(1).optional(),
|
|
23
|
+
modelName: zod_1.z.string().trim().min(1).optional(),
|
|
23
24
|
})
|
|
24
25
|
.catchall(zod_1.z.unknown()),
|
|
25
26
|
})),
|
|
@@ -17,17 +17,20 @@ exports.CanvasNodePositionSchema = zod_1.z.object({
|
|
|
17
17
|
// PARAMS SHEMA
|
|
18
18
|
exports.TextGenParamsSchema = strictObject({
|
|
19
19
|
prompt: zod_1.z.string(),
|
|
20
|
-
|
|
20
|
+
modelId: zod_1.z.string(),
|
|
21
|
+
modelName: zod_1.z.string(),
|
|
21
22
|
});
|
|
22
23
|
exports.ImageGenParamsSchema = strictObject({
|
|
23
24
|
prompt: zod_1.z.string(),
|
|
24
|
-
|
|
25
|
+
modelId: zod_1.z.string(),
|
|
26
|
+
modelName: zod_1.z.string(),
|
|
25
27
|
aspectRatio: zod_1.z.string(),
|
|
26
28
|
resolution: zod_1.z.string().optional(),
|
|
27
29
|
});
|
|
28
30
|
exports.VideoGenParamsSchema = strictObject({
|
|
29
31
|
prompt: zod_1.z.string(),
|
|
30
|
-
|
|
32
|
+
modelId: zod_1.z.string(),
|
|
33
|
+
modelName: zod_1.z.string(),
|
|
31
34
|
duration: zod_1.z.string().optional(),
|
|
32
35
|
aspectRatio: zod_1.z.string().optional(),
|
|
33
36
|
resolution: zod_1.z.string().optional(),
|
|
@@ -39,7 +42,8 @@ exports.AudioGenParamsSchema = zod_1.z.discriminatedUnion('mode', [
|
|
|
39
42
|
strictObject({
|
|
40
43
|
mode: zod_1.z.literal('tts'),
|
|
41
44
|
prompt: zod_1.z.string(),
|
|
42
|
-
|
|
45
|
+
modelId: zod_1.z.string(),
|
|
46
|
+
modelName: zod_1.z.string(),
|
|
43
47
|
voice: zod_1.z.string(),
|
|
44
48
|
stability: zod_1.z.number(),
|
|
45
49
|
similarityBoost: zod_1.z.number(),
|
|
@@ -47,7 +51,8 @@ exports.AudioGenParamsSchema = zod_1.z.discriminatedUnion('mode', [
|
|
|
47
51
|
strictObject({
|
|
48
52
|
mode: zod_1.z.literal('stt'),
|
|
49
53
|
prompt: zod_1.z.string(),
|
|
50
|
-
|
|
54
|
+
modelId: zod_1.z.string(),
|
|
55
|
+
modelName: zod_1.z.string(),
|
|
51
56
|
audioFileId: zod_1.z.string().uuid(),
|
|
52
57
|
}),
|
|
53
58
|
]);
|
|
@@ -72,7 +77,8 @@ exports.VarGenParamsSchema = strictObject({
|
|
|
72
77
|
});
|
|
73
78
|
exports.HtmlGenParamsSchema = strictObject({
|
|
74
79
|
prompt: zod_1.z.string(),
|
|
75
|
-
|
|
80
|
+
modelId: zod_1.z.string(),
|
|
81
|
+
modelName: zod_1.z.string(),
|
|
76
82
|
});
|
|
77
83
|
exports.TextBlockParamsSchema = strictObject({
|
|
78
84
|
content: zod_1.z.string(),
|
|
@@ -23,7 +23,8 @@ export namespace CreateCanvasFromGeneratedTemplateCommand {
|
|
|
23
23
|
params: z
|
|
24
24
|
.object({
|
|
25
25
|
prompt: z.string().trim().min(1),
|
|
26
|
-
|
|
26
|
+
modelId: z.string().trim().min(1).optional(),
|
|
27
|
+
modelName: z.string().trim().min(1).optional(),
|
|
27
28
|
})
|
|
28
29
|
.catchall(z.unknown()),
|
|
29
30
|
}),
|
|
@@ -19,13 +19,15 @@ export type CanvasNodePosition = z.infer<typeof CanvasNodePositionSchema>;
|
|
|
19
19
|
// PARAMS SHEMA
|
|
20
20
|
export const TextGenParamsSchema = strictObject({
|
|
21
21
|
prompt: z.string(),
|
|
22
|
-
|
|
22
|
+
modelId: z.string(),
|
|
23
|
+
modelName: z.string(),
|
|
23
24
|
});
|
|
24
25
|
export type TextGenParams = z.infer<typeof TextGenParamsSchema>;
|
|
25
26
|
|
|
26
27
|
export const ImageGenParamsSchema = strictObject({
|
|
27
28
|
prompt: z.string(),
|
|
28
|
-
|
|
29
|
+
modelId: z.string(),
|
|
30
|
+
modelName: z.string(),
|
|
29
31
|
aspectRatio: z.string(),
|
|
30
32
|
resolution: z.string().optional(),
|
|
31
33
|
});
|
|
@@ -33,7 +35,8 @@ export type ImageGenParams = z.infer<typeof ImageGenParamsSchema>;
|
|
|
33
35
|
|
|
34
36
|
export const VideoGenParamsSchema = strictObject({
|
|
35
37
|
prompt: z.string(),
|
|
36
|
-
|
|
38
|
+
modelId: z.string(),
|
|
39
|
+
modelName: z.string(),
|
|
37
40
|
duration: z.string().optional(),
|
|
38
41
|
aspectRatio: z.string().optional(),
|
|
39
42
|
resolution: z.string().optional(),
|
|
@@ -47,7 +50,8 @@ export const AudioGenParamsSchema = z.discriminatedUnion('mode', [
|
|
|
47
50
|
strictObject({
|
|
48
51
|
mode: z.literal('tts'),
|
|
49
52
|
prompt: z.string(),
|
|
50
|
-
|
|
53
|
+
modelId: z.string(),
|
|
54
|
+
modelName: z.string(),
|
|
51
55
|
voice: z.string(),
|
|
52
56
|
stability: z.number(),
|
|
53
57
|
similarityBoost: z.number(),
|
|
@@ -55,7 +59,8 @@ export const AudioGenParamsSchema = z.discriminatedUnion('mode', [
|
|
|
55
59
|
strictObject({
|
|
56
60
|
mode: z.literal('stt'),
|
|
57
61
|
prompt: z.string(),
|
|
58
|
-
|
|
62
|
+
modelId: z.string(),
|
|
63
|
+
modelName: z.string(),
|
|
59
64
|
audioFileId: z.string().uuid(),
|
|
60
65
|
}),
|
|
61
66
|
]);
|
|
@@ -90,7 +95,8 @@ export type VarGenParams = z.infer<typeof VarGenParamsSchema>;
|
|
|
90
95
|
|
|
91
96
|
export const HtmlGenParamsSchema = strictObject({
|
|
92
97
|
prompt: z.string(),
|
|
93
|
-
|
|
98
|
+
modelId: z.string(),
|
|
99
|
+
modelName: z.string(),
|
|
94
100
|
});
|
|
95
101
|
export type HtmlGenParams = z.infer<typeof HtmlGenParamsSchema>;
|
|
96
102
|
|