@purpleschool/gptbot 0.9.44 → 0.9.45

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.
@@ -1,8 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VideoConfigSchema = void 0;
3
+ exports.VideoConfigSchema = exports.VideoVendorSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const video_model_schema_1 = require("./video-model.schema");
6
- exports.VideoConfigSchema = zod_1.z.object({
6
+ const icon_variants_schema_1 = require("../../icon-variants.schema");
7
+ exports.VideoVendorSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ title: zod_1.z.string(),
10
+ order: zod_1.z.number(),
11
+ icons: icon_variants_schema_1.IconVariantsSchema,
7
12
  models: zod_1.z.array(video_model_schema_1.VideoModelSchema),
8
13
  });
14
+ exports.VideoConfigSchema = zod_1.z.object({
15
+ vendors: zod_1.z.array(exports.VideoVendorSchema),
16
+ });
@@ -1,6 +1,19 @@
1
1
  import { z } from 'zod';
2
2
  import { VideoModelSchema } from './video-model.schema';
3
+ import { IconVariantsSchema } from '../../icon-variants.schema';
3
4
 
4
- export const VideoConfigSchema = z.object({
5
+ export const VideoVendorSchema = z.object({
6
+ uuid: z.string().uuid(),
7
+ title: z.string(),
8
+ order: z.number(),
9
+ icons: IconVariantsSchema,
5
10
  models: z.array(VideoModelSchema),
6
11
  });
12
+
13
+ export type VideoVendor = z.infer<typeof VideoVendorSchema>;
14
+
15
+ export const VideoConfigSchema = z.object({
16
+ vendors: z.array(VideoVendorSchema),
17
+ });
18
+
19
+ export type VideoConfig = z.infer<typeof VideoConfigSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.9.44",
3
+ "version": "0.9.45",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",