@purpleschool/gptbot 0.8.24 → 0.8.25
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,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImageGenerationModelSchema = void 0;
|
|
3
|
+
exports.ImageGenerationModelSchema = exports.ImageGenerationModelParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
|
|
6
|
+
exports.ImageGenerationModelParamsSchema = zod_1.z.object({
|
|
7
|
+
aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
|
|
8
|
+
width: zod_1.z.number(),
|
|
9
|
+
height: zod_1.z.number(),
|
|
10
|
+
})),
|
|
11
|
+
quality: zod_1.z.string().optional(),
|
|
12
|
+
});
|
|
6
13
|
exports.ImageGenerationModelSchema = zod_1.z.object({
|
|
7
14
|
uuid: zod_1.z.string().uuid(),
|
|
8
15
|
title: zod_1.z.string(),
|
|
@@ -10,6 +17,9 @@ exports.ImageGenerationModelSchema = zod_1.z.object({
|
|
|
10
17
|
order: zod_1.z.number(),
|
|
11
18
|
status: zod_1.z.string(),
|
|
12
19
|
price: zod_1.z.number(),
|
|
20
|
+
params: exports.ImageGenerationModelParamsSchema,
|
|
21
|
+
supportsImageAttachment: zod_1.z.boolean(),
|
|
22
|
+
maxAttachedImages: zod_1.z.number(),
|
|
13
23
|
maxPromptLength: zod_1.z.number(),
|
|
14
24
|
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
15
25
|
canUse: zod_1.z.boolean(),
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { UnlockedBySchema } from '../../unlocked-by-subscription.schema';
|
|
3
3
|
|
|
4
|
+
export const ImageGenerationModelParamsSchema = z.object({
|
|
5
|
+
aspectRatio: z.record(
|
|
6
|
+
z.string(),
|
|
7
|
+
z.object({
|
|
8
|
+
width: z.number(),
|
|
9
|
+
height: z.number(),
|
|
10
|
+
}),
|
|
11
|
+
),
|
|
12
|
+
quality: z.string().optional(),
|
|
13
|
+
});
|
|
14
|
+
export type ImageGenerationModelParams = z.infer<typeof ImageGenerationModelParamsSchema>;
|
|
15
|
+
|
|
4
16
|
export const ImageGenerationModelSchema = z.object({
|
|
5
17
|
uuid: z.string().uuid(),
|
|
6
18
|
title: z.string(),
|
|
@@ -8,6 +20,9 @@ export const ImageGenerationModelSchema = z.object({
|
|
|
8
20
|
order: z.number(),
|
|
9
21
|
status: z.string(),
|
|
10
22
|
price: z.number(),
|
|
23
|
+
params: ImageGenerationModelParamsSchema,
|
|
24
|
+
supportsImageAttachment: z.boolean(),
|
|
25
|
+
maxAttachedImages: z.number(),
|
|
11
26
|
maxPromptLength: z.number(),
|
|
12
27
|
unlockedBy: UnlockedBySchema.nullable(),
|
|
13
28
|
canUse: z.boolean(),
|