@purpleschool/gptbot 0.15.75 → 0.15.77-stage-2
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/api/controllers/http/avatar-studio.d.ts +12 -0
- package/build/api/controllers/http/avatar-studio.js +13 -0
- package/build/api/controllers/http/paraphrase.d.ts +1 -0
- package/build/api/controllers/http/paraphrase.js +1 -0
- package/build/api/routes.d.ts +2 -0
- package/build/api/routes.js +2 -0
- package/build/commands/ai-model/create-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/find-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/find-ai-models-available-to-user.comand.d.ts +0 -5
- package/build/commands/ai-model/find-formatted-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/update-ai-model.command.d.ts +0 -10
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +0 -5
- package/build/commands/ai-studio/canvas-tool/text-gen/get-text-generation-config.command.d.ts +0 -5
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.d.ts +0 -5
- package/build/commands/avatar-studio/character/create-avatar-studio-character.command.d.ts +32 -0
- package/build/commands/avatar-studio/character/create-avatar-studio-character.command.js +23 -0
- package/build/commands/avatar-studio/character/delete-avatar-studio-character.command.d.ts +13 -0
- package/build/commands/avatar-studio/character/delete-avatar-studio-character.command.js +12 -0
- package/build/commands/avatar-studio/character/find-avatar-studio-characters.query.d.ts +28 -0
- package/build/commands/avatar-studio/character/find-avatar-studio-characters.query.js +10 -0
- package/build/commands/avatar-studio/character/generate-avatar-studio-character-reference.command.d.ts +76 -0
- package/build/commands/avatar-studio/character/generate-avatar-studio-character-reference.command.js +24 -0
- package/build/commands/avatar-studio/character/get-avatar-studio-character.query.d.ts +25 -0
- package/build/commands/avatar-studio/character/get-avatar-studio-character.query.js +13 -0
- package/build/commands/avatar-studio/character/index.d.ts +6 -0
- package/build/{helpers/ai-model → commands/avatar-studio/character}/index.js +6 -1
- package/build/commands/avatar-studio/character/update-avatar-studio-character.command.d.ts +32 -0
- package/build/commands/avatar-studio/character/update-avatar-studio-character.command.js +24 -0
- package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +2 -0
- package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +2 -0
- package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +2 -0
- package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +2 -0
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-frame.command.d.ts +3 -1
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-frame.command.js +5 -1
- package/build/commands/avatar-studio/index.d.ts +2 -0
- package/build/commands/avatar-studio/index.js +2 -0
- package/build/commands/avatar-studio/location/create-avatar-studio-location.command.d.ts +30 -0
- package/build/commands/avatar-studio/location/create-avatar-studio-location.command.js +22 -0
- package/build/commands/avatar-studio/location/delete-avatar-studio-location.command.d.ts +13 -0
- package/build/commands/avatar-studio/location/delete-avatar-studio-location.command.js +12 -0
- package/build/commands/avatar-studio/location/find-avatar-studio-locations.query.d.ts +27 -0
- package/build/commands/avatar-studio/location/find-avatar-studio-locations.query.js +10 -0
- package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.d.ts +76 -0
- package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.js +24 -0
- package/build/commands/avatar-studio/location/get-avatar-studio-location.query.d.ts +24 -0
- package/build/commands/avatar-studio/location/get-avatar-studio-location.query.js +13 -0
- package/build/commands/avatar-studio/location/index.d.ts +6 -0
- package/build/commands/avatar-studio/location/index.js +22 -0
- package/build/commands/avatar-studio/location/update-avatar-studio-location.command.d.ts +30 -0
- package/build/commands/avatar-studio/location/update-avatar-studio-location.command.js +23 -0
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +4 -0
- package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +2 -0
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +8 -0
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.js +8 -1
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +42 -0
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +22 -0
- package/build/commands/b2b/get-b2b-documentation.command.d.ts +0 -10
- package/build/commands/page/find-page-by-alias.command.d.ts +0 -10
- package/build/commands/page/find-page.command.d.ts +0 -5
- package/build/commands/page/find-pages-by-criteria.command.d.ts +0 -10
- package/build/commands/tools/paraphrase/find-paraphrase-job-by-uuid.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/get-paraphrase-price.command.d.ts +31 -0
- package/build/commands/tools/paraphrase/get-paraphrase-price.command.js +30 -0
- package/build/commands/tools/paraphrase/get-paraphrase-tool-config.command.d.ts +3 -0
- package/build/commands/tools/paraphrase/index.d.ts +1 -0
- package/build/commands/tools/paraphrase/index.js +1 -0
- package/build/commands/tools/paraphrase/paraphrase.command.d.ts +36 -1
- package/build/commands/tools/paraphrase/paraphrase.command.js +16 -3
- package/build/commands/tools/paraphrase/retry-paraphrase-job.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-favorite.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.d.ts +20 -0
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.d.ts +0 -1
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.js +0 -1
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +5 -1
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +4 -0
- package/build/constants/avatar-studio/enums/avatar-studio-reference-card-status.enum.d.ts +6 -0
- package/build/constants/avatar-studio/enums/avatar-studio-reference-card-status.enum.js +10 -0
- package/build/constants/avatar-studio/enums/index.d.ts +1 -0
- package/build/constants/avatar-studio/enums/index.js +1 -0
- package/build/constants/tool-paraphrase/enums/index.d.ts +1 -0
- package/build/constants/tool-paraphrase/enums/index.js +1 -0
- package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.d.ts +4 -0
- package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.js +8 -0
- package/build/helpers/index.d.ts +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/ai-model-config.schema.d.ts +0 -11
- package/build/models/ai-model-config.schema.js +1 -8
- package/build/models/ai-model-formatted.schema.d.ts +0 -5
- package/build/models/ai-model.schema.d.ts +0 -15
- package/build/models/avatar-studio/avatar-studio.schema.d.ts +59 -1
- package/build/models/avatar-studio/avatar-studio.schema.js +31 -1
- package/build/models/canvas-node-definition.schema.d.ts +0 -20
- package/build/models/tools/paraphrase/index.d.ts +1 -0
- package/build/models/tools/paraphrase/index.js +1 -0
- package/build/models/tools/paraphrase/paraphrase-config.schema.d.ts +3 -0
- package/build/models/tools/paraphrase/paraphrase-config.schema.js +1 -0
- package/build/models/tools/paraphrase/paraphrase-document.schema.d.ts +10 -0
- package/build/models/tools/paraphrase/paraphrase-document.schema.js +13 -0
- package/build/models/tools/paraphrase/paraphrase-job.schema.d.ts +21 -1
- package/build/models/tools/paraphrase/paraphrase-job.schema.js +5 -0
- package/build/models/tools/paraphrase/paraphrase-model.schema.d.ts +2 -0
- package/build/models/tools/paraphrase/paraphrase-model.schema.js +2 -0
- package/package.json +1 -1
- package/build/helpers/ai-model/calc-base-text-generation-price.helper.d.ts +0 -8
- package/build/helpers/ai-model/calc-base-text-generation-price.helper.js +0 -15
- package/build/helpers/ai-model/index.d.ts +0 -1
|
@@ -157,11 +157,6 @@ export declare namespace GetB2bDocumentationCommand {
|
|
|
157
157
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
158
158
|
webSearchPrice: z.ZodNumber;
|
|
159
159
|
}, z.core.$strip>>;
|
|
160
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
161
|
-
stepSize: z.ZodNumber;
|
|
162
|
-
stepPrice: z.ZodNumber;
|
|
163
|
-
isActive: z.ZodBoolean;
|
|
164
|
-
}, z.core.$strip>>;
|
|
165
160
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
166
161
|
multiplier: z.ZodNumber;
|
|
167
162
|
}, z.core.$strip>>;
|
|
@@ -342,11 +337,6 @@ export declare namespace GetB2bDocumentationCommand {
|
|
|
342
337
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
343
338
|
webSearchPrice: z.ZodNumber;
|
|
344
339
|
}, z.core.$strip>>;
|
|
345
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
346
|
-
stepSize: z.ZodNumber;
|
|
347
|
-
stepPrice: z.ZodNumber;
|
|
348
|
-
isActive: z.ZodBoolean;
|
|
349
|
-
}, z.core.$strip>>;
|
|
350
340
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
351
341
|
multiplier: z.ZodNumber;
|
|
352
342
|
}, z.core.$strip>>;
|
|
@@ -113,11 +113,6 @@ export declare namespace FindPageByAliasCommand {
|
|
|
113
113
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
114
114
|
webSearchPrice: z.ZodNumber;
|
|
115
115
|
}, z.core.$strip>>;
|
|
116
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
117
|
-
stepSize: z.ZodNumber;
|
|
118
|
-
stepPrice: z.ZodNumber;
|
|
119
|
-
isActive: z.ZodBoolean;
|
|
120
|
-
}, z.core.$strip>>;
|
|
121
116
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
122
117
|
multiplier: z.ZodNumber;
|
|
123
118
|
}, z.core.$strip>>;
|
|
@@ -236,11 +231,6 @@ export declare namespace FindPageByAliasCommand {
|
|
|
236
231
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
237
232
|
webSearchPrice: z.ZodNumber;
|
|
238
233
|
}, z.core.$strip>>;
|
|
239
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
240
|
-
stepSize: z.ZodNumber;
|
|
241
|
-
stepPrice: z.ZodNumber;
|
|
242
|
-
isActive: z.ZodBoolean;
|
|
243
|
-
}, z.core.$strip>>;
|
|
244
234
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
245
235
|
multiplier: z.ZodNumber;
|
|
246
236
|
}, z.core.$strip>>;
|
|
@@ -137,11 +137,6 @@ export declare namespace FindPageCommand {
|
|
|
137
137
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
138
138
|
webSearchPrice: z.ZodNumber;
|
|
139
139
|
}, z.core.$strip>>;
|
|
140
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
141
|
-
stepSize: z.ZodNumber;
|
|
142
|
-
stepPrice: z.ZodNumber;
|
|
143
|
-
isActive: z.ZodBoolean;
|
|
144
|
-
}, z.core.$strip>>;
|
|
145
140
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
146
141
|
multiplier: z.ZodNumber;
|
|
147
142
|
}, z.core.$strip>>;
|
|
@@ -124,11 +124,6 @@ export declare namespace FindPagesByCriteriaCommand {
|
|
|
124
124
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
125
125
|
webSearchPrice: z.ZodNumber;
|
|
126
126
|
}, z.core.$strip>>;
|
|
127
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
128
|
-
stepSize: z.ZodNumber;
|
|
129
|
-
stepPrice: z.ZodNumber;
|
|
130
|
-
isActive: z.ZodBoolean;
|
|
131
|
-
}, z.core.$strip>>;
|
|
132
127
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
133
128
|
multiplier: z.ZodNumber;
|
|
134
129
|
}, z.core.$strip>>;
|
|
@@ -246,11 +241,6 @@ export declare namespace FindPagesByCriteriaCommand {
|
|
|
246
241
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
247
242
|
webSearchPrice: z.ZodNumber;
|
|
248
243
|
}, z.core.$strip>>;
|
|
249
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
250
|
-
stepSize: z.ZodNumber;
|
|
251
|
-
stepPrice: z.ZodNumber;
|
|
252
|
-
isActive: z.ZodBoolean;
|
|
253
|
-
}, z.core.$strip>>;
|
|
254
244
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
255
245
|
multiplier: z.ZodNumber;
|
|
256
246
|
}, z.core.$strip>>;
|
|
@@ -20,6 +20,26 @@ export declare namespace FindParaphraseJobByUUIDCommand {
|
|
|
20
20
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
21
21
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
22
22
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
24
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
uuid: z.ZodString;
|
|
26
|
+
url: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
mimeType: z.ZodString;
|
|
29
|
+
type: z.ZodString;
|
|
30
|
+
size: z.ZodNumber;
|
|
31
|
+
extension: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodString;
|
|
35
|
+
url: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
mimeType: z.ZodString;
|
|
38
|
+
type: z.ZodString;
|
|
39
|
+
size: z.ZodNumber;
|
|
40
|
+
extension: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
23
43
|
}, z.core.$strip>;
|
|
24
44
|
}, z.core.$strip>;
|
|
25
45
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -26,6 +26,26 @@ export declare namespace FindParaphraseJobsCommand {
|
|
|
26
26
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
27
27
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
28
28
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
30
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
uuid: z.ZodString;
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
mimeType: z.ZodString;
|
|
35
|
+
type: z.ZodString;
|
|
36
|
+
size: z.ZodNumber;
|
|
37
|
+
extension: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
uuid: z.ZodString;
|
|
41
|
+
url: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
mimeType: z.ZodString;
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
size: z.ZodNumber;
|
|
46
|
+
extension: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
29
49
|
}, z.core.$strip>>;
|
|
30
50
|
totalPages: z.ZodNumber;
|
|
31
51
|
total: z.ZodNumber;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PARAPHRASING_INTENSITY } from '../../../constants';
|
|
3
|
+
export declare namespace GetParaphrasePriceCommand {
|
|
4
|
+
const PrivateRequestSchema: z.ZodObject<{
|
|
5
|
+
typeId: z.ZodString;
|
|
6
|
+
styleId: z.ZodString;
|
|
7
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
8
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
9
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
const PublicRequestSchema: z.ZodObject<{
|
|
12
|
+
typeId: z.ZodString;
|
|
13
|
+
styleId: z.ZodString;
|
|
14
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
15
|
+
prompt: z.ZodString;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
const RequestSchema: z.ZodObject<{
|
|
18
|
+
typeId: z.ZodString;
|
|
19
|
+
styleId: z.ZodString;
|
|
20
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
21
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
22
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
25
|
+
const ResponseSchema: z.ZodObject<{
|
|
26
|
+
price: z.ZodNumber;
|
|
27
|
+
charsUntilNextPriceIncrease: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
charsUntilNextPriceDecrease: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetParaphrasePriceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const chat_1 = require("../../chat");
|
|
7
|
+
var GetParaphrasePriceCommand;
|
|
8
|
+
(function (GetParaphrasePriceCommand) {
|
|
9
|
+
GetParaphrasePriceCommand.PrivateRequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
typeId: zod_1.z.string().uuid(),
|
|
12
|
+
styleId: zod_1.z.string().uuid(),
|
|
13
|
+
intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
|
|
14
|
+
prompt: zod_1.z.string().min(1).max(100000).optional(),
|
|
15
|
+
fileId: zod_1.z.string().uuid().optional(),
|
|
16
|
+
})
|
|
17
|
+
.refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
|
|
18
|
+
message: 'Требуется ровно один из prompt или fileId',
|
|
19
|
+
});
|
|
20
|
+
GetParaphrasePriceCommand.PublicRequestSchema = zod_1.z
|
|
21
|
+
.object({
|
|
22
|
+
typeId: zod_1.z.string().uuid(),
|
|
23
|
+
styleId: zod_1.z.string().uuid(),
|
|
24
|
+
intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
|
|
25
|
+
prompt: zod_1.z.string().min(1).max(100000),
|
|
26
|
+
})
|
|
27
|
+
.strict();
|
|
28
|
+
GetParaphrasePriceCommand.RequestSchema = GetParaphrasePriceCommand.PrivateRequestSchema;
|
|
29
|
+
GetParaphrasePriceCommand.ResponseSchema = chat_1.CalculateChatPriceCommand.ResponseSchema;
|
|
30
|
+
})(GetParaphrasePriceCommand || (exports.GetParaphrasePriceCommand = GetParaphrasePriceCommand = {}));
|
|
@@ -3,6 +3,7 @@ export declare namespace GetParaphraseToolConfigCommand {
|
|
|
3
3
|
const ResponseSchema: z.ZodObject<{
|
|
4
4
|
data: z.ZodObject<{
|
|
5
5
|
maxSymbols: z.ZodNumber;
|
|
6
|
+
freeMaxSymbols: z.ZodNumber;
|
|
6
7
|
styles: z.ZodArray<z.ZodObject<{
|
|
7
8
|
uuid: z.ZodString;
|
|
8
9
|
title: z.ZodString;
|
|
@@ -19,6 +20,8 @@ export declare namespace GetParaphraseToolConfigCommand {
|
|
|
19
20
|
title: z.ZodString;
|
|
20
21
|
icon: z.ZodString;
|
|
21
22
|
price: z.ZodNumber;
|
|
23
|
+
freeMaxPromptLength: z.ZodNumber;
|
|
24
|
+
maxPromptLength: z.ZodNumber;
|
|
22
25
|
order: z.ZodNumber;
|
|
23
26
|
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
24
27
|
canUse: z.ZodBoolean;
|
|
@@ -24,3 +24,4 @@ __exportStar(require("./find-paraphrase-job-by-uuid.command"), exports);
|
|
|
24
24
|
__exportStar(require("./find-paraphrase-jobs.command"), exports);
|
|
25
25
|
__exportStar(require("./get-paraphrase-tool-config.command"), exports);
|
|
26
26
|
__exportStar(require("./update-paraphrase-job-favorite.command"), exports);
|
|
27
|
+
__exportStar(require("./get-paraphrase-price.command"), exports);
|
|
@@ -4,9 +4,16 @@ export declare namespace ParaphraseCommand {
|
|
|
4
4
|
const RequestSchema: z.ZodObject<{
|
|
5
5
|
styleId: z.ZodString;
|
|
6
6
|
typeId: z.ZodString;
|
|
7
|
-
prompt: z.ZodString
|
|
7
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
8
9
|
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
9
10
|
}, z.core.$strip>;
|
|
11
|
+
const PublicRequestSchema: z.ZodObject<{
|
|
12
|
+
styleId: z.ZodString;
|
|
13
|
+
typeId: z.ZodString;
|
|
14
|
+
prompt: z.ZodString;
|
|
15
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
16
|
+
}, z.core.$strict>;
|
|
10
17
|
type Request = z.infer<typeof RequestSchema>;
|
|
11
18
|
const ResponseSchema: z.ZodObject<{
|
|
12
19
|
data: z.ZodObject<{
|
|
@@ -16,6 +23,34 @@ export declare namespace ParaphraseCommand {
|
|
|
16
23
|
isFavorite: z.ZodBoolean;
|
|
17
24
|
createdAt: z.ZodDate;
|
|
18
25
|
updatedAt: z.ZodDate;
|
|
26
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
userInput: z.ZodString;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
typeId: z.ZodString;
|
|
31
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
32
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
33
|
+
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
35
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
36
|
+
uuid: z.ZodString;
|
|
37
|
+
url: z.ZodString;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
mimeType: z.ZodString;
|
|
40
|
+
type: z.ZodString;
|
|
41
|
+
size: z.ZodNumber;
|
|
42
|
+
extension: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
45
|
+
uuid: z.ZodString;
|
|
46
|
+
url: z.ZodString;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
mimeType: z.ZodString;
|
|
49
|
+
type: z.ZodString;
|
|
50
|
+
size: z.ZodNumber;
|
|
51
|
+
extension: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
53
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
19
54
|
}, z.core.$strip>;
|
|
20
55
|
}, z.core.$strip>;
|
|
21
56
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -6,13 +6,26 @@ const constants_1 = require("../../../constants");
|
|
|
6
6
|
const models_1 = require("../../../models");
|
|
7
7
|
var ParaphraseCommand;
|
|
8
8
|
(function (ParaphraseCommand) {
|
|
9
|
-
ParaphraseCommand.RequestSchema = zod_1.z
|
|
9
|
+
ParaphraseCommand.RequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
10
11
|
styleId: zod_1.z.string().uuid(),
|
|
11
12
|
typeId: zod_1.z.string().uuid(),
|
|
12
|
-
prompt: zod_1.z.string().min(1).max(100000),
|
|
13
|
+
prompt: zod_1.z.string().min(1).max(100000).optional(),
|
|
14
|
+
fileId: zod_1.z.string().uuid().optional(),
|
|
13
15
|
intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
|
|
16
|
+
})
|
|
17
|
+
.refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
|
|
18
|
+
message: 'Требуется ровно один из prompt или fileId',
|
|
14
19
|
});
|
|
20
|
+
ParaphraseCommand.PublicRequestSchema = zod_1.z
|
|
21
|
+
.object({
|
|
22
|
+
styleId: zod_1.z.string().uuid(),
|
|
23
|
+
typeId: zod_1.z.string().uuid(),
|
|
24
|
+
prompt: zod_1.z.string().min(1).max(100000),
|
|
25
|
+
intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
|
|
26
|
+
})
|
|
27
|
+
.strict();
|
|
15
28
|
ParaphraseCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
data: models_1.
|
|
29
|
+
data: models_1.ParaphraseToolJobSchema,
|
|
17
30
|
});
|
|
18
31
|
})(ParaphraseCommand || (exports.ParaphraseCommand = ParaphraseCommand = {}));
|
|
@@ -20,6 +20,26 @@ export declare namespace RetryParaphraseJobCommand {
|
|
|
20
20
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
21
21
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
22
22
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
24
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
uuid: z.ZodString;
|
|
26
|
+
url: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
mimeType: z.ZodString;
|
|
29
|
+
type: z.ZodString;
|
|
30
|
+
size: z.ZodNumber;
|
|
31
|
+
extension: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodString;
|
|
35
|
+
url: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
mimeType: z.ZodString;
|
|
38
|
+
type: z.ZodString;
|
|
39
|
+
size: z.ZodNumber;
|
|
40
|
+
extension: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
23
43
|
}, z.core.$strip>;
|
|
24
44
|
}, z.core.$strip>;
|
|
25
45
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -26,6 +26,26 @@ export declare namespace SetReactionToParaphraseJobCommand {
|
|
|
26
26
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
27
27
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
28
28
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
30
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
uuid: z.ZodString;
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
mimeType: z.ZodString;
|
|
35
|
+
type: z.ZodString;
|
|
36
|
+
size: z.ZodNumber;
|
|
37
|
+
extension: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
uuid: z.ZodString;
|
|
41
|
+
url: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
mimeType: z.ZodString;
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
size: z.ZodNumber;
|
|
46
|
+
extension: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
29
49
|
}, z.core.$strip>;
|
|
30
50
|
}, z.core.$strip>;
|
|
31
51
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -24,6 +24,26 @@ export declare namespace UpdateParaphraseJobFavoriteCommand {
|
|
|
24
24
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
25
25
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
26
26
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
28
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
uuid: z.ZodString;
|
|
30
|
+
url: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
mimeType: z.ZodString;
|
|
33
|
+
type: z.ZodString;
|
|
34
|
+
size: z.ZodNumber;
|
|
35
|
+
extension: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
uuid: z.ZodString;
|
|
39
|
+
url: z.ZodString;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
mimeType: z.ZodString;
|
|
42
|
+
type: z.ZodString;
|
|
43
|
+
size: z.ZodNumber;
|
|
44
|
+
extension: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
27
47
|
}, z.core.$strip>;
|
|
28
48
|
}, z.core.$strip>;
|
|
29
49
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -24,6 +24,26 @@ export declare namespace UpdateParaphraseJobTitleCommand {
|
|
|
24
24
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
25
25
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
26
26
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
28
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
uuid: z.ZodString;
|
|
30
|
+
url: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
mimeType: z.ZodString;
|
|
33
|
+
type: z.ZodString;
|
|
34
|
+
size: z.ZodNumber;
|
|
35
|
+
extension: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
uuid: z.ZodString;
|
|
39
|
+
url: z.ZodString;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
mimeType: z.ZodString;
|
|
42
|
+
type: z.ZodString;
|
|
43
|
+
size: z.ZodNumber;
|
|
44
|
+
extension: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
27
47
|
}, z.core.$strip>;
|
|
28
48
|
}, z.core.$strip>;
|
|
29
49
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -2,7 +2,6 @@ export declare enum AI_MODEL_CONFIG_PARAM {
|
|
|
2
2
|
IMAGE_SIZE = "image-size",
|
|
3
3
|
IMAGE_STYLE = "image-style",
|
|
4
4
|
WEB_SEARCH = "web-search",
|
|
5
|
-
EXTRA_SYMBOLS_PRICING = "extra-symbols-pricing",
|
|
6
5
|
REASONING = "reasoning",
|
|
7
6
|
NO_ACTIVE_SUBSCRIPTION_OR_PRODUCT_MULTIPLIER = "no-active-subscription-or-product-multiplier"
|
|
8
7
|
}
|
|
@@ -6,7 +6,6 @@ var AI_MODEL_CONFIG_PARAM;
|
|
|
6
6
|
AI_MODEL_CONFIG_PARAM["IMAGE_SIZE"] = "image-size";
|
|
7
7
|
AI_MODEL_CONFIG_PARAM["IMAGE_STYLE"] = "image-style";
|
|
8
8
|
AI_MODEL_CONFIG_PARAM["WEB_SEARCH"] = "web-search";
|
|
9
|
-
AI_MODEL_CONFIG_PARAM["EXTRA_SYMBOLS_PRICING"] = "extra-symbols-pricing";
|
|
10
9
|
AI_MODEL_CONFIG_PARAM["REASONING"] = "reasoning";
|
|
11
10
|
AI_MODEL_CONFIG_PARAM["NO_ACTIVE_SUBSCRIPTION_OR_PRODUCT_MULTIPLIER"] = "no-active-subscription-or-product-multiplier";
|
|
12
11
|
})(AI_MODEL_CONFIG_PARAM || (exports.AI_MODEL_CONFIG_PARAM = AI_MODEL_CONFIG_PARAM = {}));
|
|
@@ -6,5 +6,9 @@ export declare enum AVATAR_STUDIO_JOB_TYPE {
|
|
|
6
6
|
VOICE_STT = "voice_stt",
|
|
7
7
|
TALKING_AVATAR = "talking_avatar",
|
|
8
8
|
/** legacy: новые job'ы этого типа не создаются, значение остаётся ради чтения продовой истории. */
|
|
9
|
-
VOICE_DESIGN = "voice_design"
|
|
9
|
+
VOICE_DESIGN = "voice_design",
|
|
10
|
+
/** Генерация reference sheet персонажа. clipId = null, sceneId = null, targetSlot = null. */
|
|
11
|
+
CHARACTER_REFERENCE = "character_reference",
|
|
12
|
+
/** Генерация reference sheet локации. Те же поля, что у CHARACTER_REFERENCE. */
|
|
13
|
+
LOCATION_REFERENCE = "location_reference"
|
|
10
14
|
}
|
|
@@ -11,4 +11,8 @@ var AVATAR_STUDIO_JOB_TYPE;
|
|
|
11
11
|
AVATAR_STUDIO_JOB_TYPE["TALKING_AVATAR"] = "talking_avatar";
|
|
12
12
|
/** legacy: новые job'ы этого типа не создаются, значение остаётся ради чтения продовой истории. */
|
|
13
13
|
AVATAR_STUDIO_JOB_TYPE["VOICE_DESIGN"] = "voice_design";
|
|
14
|
+
/** Генерация reference sheet персонажа. clipId = null, sceneId = null, targetSlot = null. */
|
|
15
|
+
AVATAR_STUDIO_JOB_TYPE["CHARACTER_REFERENCE"] = "character_reference";
|
|
16
|
+
/** Генерация reference sheet локации. Те же поля, что у CHARACTER_REFERENCE. */
|
|
17
|
+
AVATAR_STUDIO_JOB_TYPE["LOCATION_REFERENCE"] = "location_reference";
|
|
14
18
|
})(AVATAR_STUDIO_JOB_TYPE || (exports.AVATAR_STUDIO_JOB_TYPE = AVATAR_STUDIO_JOB_TYPE = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AVATAR_STUDIO_REFERENCE_CARD_STATUS = void 0;
|
|
4
|
+
var AVATAR_STUDIO_REFERENCE_CARD_STATUS;
|
|
5
|
+
(function (AVATAR_STUDIO_REFERENCE_CARD_STATUS) {
|
|
6
|
+
AVATAR_STUDIO_REFERENCE_CARD_STATUS["DRAFT"] = "draft";
|
|
7
|
+
AVATAR_STUDIO_REFERENCE_CARD_STATUS["PROCESSING"] = "processing";
|
|
8
|
+
AVATAR_STUDIO_REFERENCE_CARD_STATUS["READY"] = "ready";
|
|
9
|
+
AVATAR_STUDIO_REFERENCE_CARD_STATUS["FAILED"] = "failed";
|
|
10
|
+
})(AVATAR_STUDIO_REFERENCE_CARD_STATUS || (exports.AVATAR_STUDIO_REFERENCE_CARD_STATUS = AVATAR_STUDIO_REFERENCE_CARD_STATUS = {}));
|
|
@@ -4,6 +4,7 @@ export * from './avatar-studio-job-status.enum';
|
|
|
4
4
|
export * from './avatar-studio-job-type.enum';
|
|
5
5
|
export * from './avatar-studio-media-kind.enum';
|
|
6
6
|
export * from './avatar-studio-model-purpose.enum';
|
|
7
|
+
export * from './avatar-studio-reference-card-status.enum';
|
|
7
8
|
export * from './avatar-studio-scriptwriter-role.enum';
|
|
8
9
|
export * from './avatar-studio-slot.enum';
|
|
9
10
|
export * from './avatar-studio-subtitle-font.enum';
|
|
@@ -20,6 +20,7 @@ __exportStar(require("./avatar-studio-job-status.enum"), exports);
|
|
|
20
20
|
__exportStar(require("./avatar-studio-job-type.enum"), exports);
|
|
21
21
|
__exportStar(require("./avatar-studio-media-kind.enum"), exports);
|
|
22
22
|
__exportStar(require("./avatar-studio-model-purpose.enum"), exports);
|
|
23
|
+
__exportStar(require("./avatar-studio-reference-card-status.enum"), exports);
|
|
23
24
|
__exportStar(require("./avatar-studio-scriptwriter-role.enum"), exports);
|
|
24
25
|
__exportStar(require("./avatar-studio-slot.enum"), exports);
|
|
25
26
|
__exportStar(require("./avatar-studio-subtitle-font.enum"), exports);
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./paraphrasing-intesity.enum"), exports);
|
|
18
|
+
__exportStar(require("./paraphrase-input-kind.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PARAPHRASE_INPUT_KIND = void 0;
|
|
4
|
+
var PARAPHRASE_INPUT_KIND;
|
|
5
|
+
(function (PARAPHRASE_INPUT_KIND) {
|
|
6
|
+
PARAPHRASE_INPUT_KIND["TEXT"] = "text";
|
|
7
|
+
PARAPHRASE_INPUT_KIND["DOCUMENT"] = "document";
|
|
8
|
+
})(PARAPHRASE_INPUT_KIND || (exports.PARAPHRASE_INPUT_KIND = PARAPHRASE_INPUT_KIND = {}));
|
package/build/helpers/index.d.ts
CHANGED
package/build/helpers/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ai-model"), exports);
|
|
18
17
|
__exportStar(require("./presentation"), exports);
|
|
19
18
|
__exportStar(require("./stt"), exports);
|
|
20
19
|
__exportStar(require("./subscription"), exports);
|
|
@@ -45,11 +45,6 @@ export declare const AiModelImageStyleParameter: z.ZodObject<{
|
|
|
45
45
|
export declare const AiModelWebSearchParameter: z.ZodObject<{
|
|
46
46
|
webSearchPrice: z.ZodNumber;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
|
-
export declare const AiModelExtraSymbolsPricingParameter: z.ZodObject<{
|
|
49
|
-
stepSize: z.ZodNumber;
|
|
50
|
-
stepPrice: z.ZodNumber;
|
|
51
|
-
isActive: z.ZodBoolean;
|
|
52
|
-
}, z.core.$strip>;
|
|
53
48
|
export declare const AiModelNoActiveSubscriptionOrProductMultiplierParameter: z.ZodObject<{
|
|
54
49
|
multiplier: z.ZodNumber;
|
|
55
50
|
}, z.core.$strip>;
|
|
@@ -80,11 +75,6 @@ export declare const AiModelConfigSchema: z.ZodObject<{
|
|
|
80
75
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
81
76
|
webSearchPrice: z.ZodNumber;
|
|
82
77
|
}, z.core.$strip>>;
|
|
83
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
84
|
-
stepSize: z.ZodNumber;
|
|
85
|
-
stepPrice: z.ZodNumber;
|
|
86
|
-
isActive: z.ZodBoolean;
|
|
87
|
-
}, z.core.$strip>>;
|
|
88
78
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
89
79
|
multiplier: z.ZodNumber;
|
|
90
80
|
}, z.core.$strip>>;
|
|
@@ -96,6 +86,5 @@ export type AiModelImageSizeParameter = z.infer<typeof AiModelImageSizeParameter
|
|
|
96
86
|
export type AiModelImageStyleOption = z.infer<typeof AiModelImageStyleOptionSchema>;
|
|
97
87
|
export type AiModelImageStyleParameter = z.infer<typeof AiModelImageStyleParameter>;
|
|
98
88
|
export type AiModelWebSeachParameter = z.infer<typeof AiModelWebSearchParameter>;
|
|
99
|
-
export type AiModelExtraSymbolsPricingParameter = z.infer<typeof AiModelExtraSymbolsPricingParameter>;
|
|
100
89
|
export type AiModelNoActiveSubscriptionOrProductMultiplierParameter = z.infer<typeof AiModelNoActiveSubscriptionOrProductMultiplierParameter>;
|
|
101
90
|
export type AiModelConfig = z.infer<typeof AiModelConfigSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AiModelConfigSchema = exports.AiModelNoActiveSubscriptionOrProductMultiplierParameter = exports.
|
|
3
|
+
exports.AiModelConfigSchema = exports.AiModelNoActiveSubscriptionOrProductMultiplierParameter = exports.AiModelWebSearchParameter = exports.AiModelImageStyleParameter = exports.AiModelImageStyleOptionSchema = exports.AiModelImageSizeParameter = exports.AiModelImageSizeOptionSchema = exports.AiModelConfigParameterSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
exports.AiModelConfigParameterSchema = zod_1.z.object({
|
|
@@ -32,12 +32,6 @@ exports.AiModelImageStyleParameter = zod_1.z.object({
|
|
|
32
32
|
exports.AiModelWebSearchParameter = zod_1.z.object({
|
|
33
33
|
webSearchPrice: zod_1.z.number(),
|
|
34
34
|
});
|
|
35
|
-
// EXTRA SYMBOLS PRICING
|
|
36
|
-
exports.AiModelExtraSymbolsPricingParameter = zod_1.z.object({
|
|
37
|
-
stepSize: zod_1.z.number(),
|
|
38
|
-
stepPrice: zod_1.z.number(),
|
|
39
|
-
isActive: zod_1.z.boolean(),
|
|
40
|
-
});
|
|
41
35
|
// NO ACTIVE SUBSCRIPTION OR PRODUCT MULTIPLIER
|
|
42
36
|
exports.AiModelNoActiveSubscriptionOrProductMultiplierParameter = zod_1.z.object({
|
|
43
37
|
multiplier: zod_1.z.number(),
|
|
@@ -49,7 +43,6 @@ exports.AiModelConfigSchema = zod_1.z.object({
|
|
|
49
43
|
[constants_1.AI_MODEL_CONFIG_PARAM.IMAGE_SIZE]: exports.AiModelImageSizeParameter.optional(),
|
|
50
44
|
[constants_1.AI_MODEL_CONFIG_PARAM.IMAGE_STYLE]: exports.AiModelImageStyleParameter.optional(),
|
|
51
45
|
[constants_1.AI_MODEL_CONFIG_PARAM.WEB_SEARCH]: exports.AiModelWebSearchParameter.optional(),
|
|
52
|
-
[constants_1.AI_MODEL_CONFIG_PARAM.EXTRA_SYMBOLS_PRICING]: exports.AiModelExtraSymbolsPricingParameter.optional(),
|
|
53
46
|
[constants_1.AI_MODEL_CONFIG_PARAM.NO_ACTIVE_SUBSCRIPTION_OR_PRODUCT_MULTIPLIER]: exports.AiModelNoActiveSubscriptionOrProductMultiplierParameter.optional(),
|
|
54
47
|
})
|
|
55
48
|
.strict(),
|
|
@@ -52,11 +52,6 @@ export declare const AiModelFormmattedSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
52
52
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
53
53
|
webSearchPrice: z.ZodNumber;
|
|
54
54
|
}, z.core.$strip>>;
|
|
55
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
56
|
-
stepSize: z.ZodNumber;
|
|
57
|
-
stepPrice: z.ZodNumber;
|
|
58
|
-
isActive: z.ZodBoolean;
|
|
59
|
-
}, z.core.$strip>>;
|
|
60
55
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
61
56
|
multiplier: z.ZodNumber;
|
|
62
57
|
}, z.core.$strip>>;
|