@purpleschool/gptbot-tools 0.1.8 → 0.1.9
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.
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VideoConfigSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const video_model_schema_1 = require("./video-model.schema");
|
|
6
|
+
const ai_vendor_1 = require("../../ai-vendor");
|
|
6
7
|
exports.VideoConfigSchema = zod_1.z.object({
|
|
8
|
+
vendors: zod_1.z.array(ai_vendor_1.AiVendorSchema),
|
|
7
9
|
models: zod_1.z.array(video_model_schema_1.VideoModelSchema),
|
|
8
10
|
});
|
|
@@ -70,6 +70,7 @@ exports.VideoModelSchema = zod_1.z.object({
|
|
|
70
70
|
params: exports.VideoModelParamsSchema,
|
|
71
71
|
pricingRules: exports.VideoModelPricingRulesSchema,
|
|
72
72
|
limitations: zod_1.z.array(zod_1.z.nativeEnum(enums_1.VIDEO_GENERATION_MODEL_LIMITATION)),
|
|
73
|
+
vendorId: zod_1.z.string().uuid(),
|
|
73
74
|
createdAt: zod_1.z.date(),
|
|
74
75
|
updatedAt: zod_1.z.date(),
|
|
75
76
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { VideoModelSchema } from './video-model.schema';
|
|
3
|
+
import { AiVendorSchema } from '../../ai-vendor';
|
|
3
4
|
|
|
4
5
|
export const VideoConfigSchema = z.object({
|
|
6
|
+
vendors: z.array(AiVendorSchema),
|
|
5
7
|
models: z.array(VideoModelSchema),
|
|
6
8
|
});
|
|
7
9
|
|
|
@@ -83,6 +83,7 @@ export const VideoModelSchema = z.object({
|
|
|
83
83
|
params: VideoModelParamsSchema,
|
|
84
84
|
pricingRules: VideoModelPricingRulesSchema,
|
|
85
85
|
limitations: z.array(z.nativeEnum(VIDEO_GENERATION_MODEL_LIMITATION)),
|
|
86
|
+
vendorId: z.string().uuid(),
|
|
86
87
|
createdAt: z.date(),
|
|
87
88
|
updatedAt: z.date(),
|
|
88
89
|
});
|