@purpleschool/gptbot-tools 0.2.70 → 0.2.72-stage2
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/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
- package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
- package/build/photo-sessions/commands/admin/index.d.ts +3 -0
- package/build/photo-sessions/commands/admin/index.js +19 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +74 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +28 -0
- package/build/photo-sessions/commands/index.d.ts +10 -0
- package/build/photo-sessions/commands/index.js +26 -0
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +272 -0
- package/build/photo-sessions/commands/photo-sessions.command.js +37 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +179 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +17 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +181 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +179 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +217 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +184 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
- package/build/photo-sessions/enums/index.d.ts +3 -0
- package/build/photo-sessions/enums/index.js +19 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +6 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.js +10 -0
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
- package/build/photo-sessions/index.d.ts +5 -0
- package/build/photo-sessions/index.js +21 -0
- package/build/photo-sessions/models/index.d.ts +5 -0
- package/build/photo-sessions/models/index.js +21 -0
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
- package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
- package/build/photo-sessions/models/photo-session-group.schema.d.ts +113 -0
- package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +159 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +55 -0
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
- package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
- package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +216 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +235 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
- package/build/photo-sessions/queries/index.d.ts +5 -0
- package/build/photo-sessions/queries/index.js +21 -0
- package/build/photo-sessions/routes/index.d.ts +2 -0
- package/build/photo-sessions/routes/index.js +18 -0
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
- package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
- package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
- package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
- package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
- package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
- package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
- package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
- package/build/spell-corrector/constants/index.d.ts +1 -0
- package/build/spell-corrector/constants/index.js +17 -0
- package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
- package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
- package/build/spell-corrector/enums/index.d.ts +1 -0
- package/build/spell-corrector/enums/index.js +17 -0
- package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
- package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
- package/build/spell-corrector/index.d.ts +2 -0
- package/build/spell-corrector/index.js +2 -0
- package/build/spell-corrector/models/index.d.ts +2 -0
- package/build/spell-corrector/models/index.js +2 -0
- package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
- package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
- package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
- package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
- package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
- package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
- package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
- package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
- package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
- package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
- package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-content-type.enum.js +1 -0
- package/build/tools/enums/tool-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-type.enum.js +1 -0
- package/build/tools/events/tool-job-complete.event.d.ts +1 -0
- package/build/tools/events/tool-job-failed.event.d.ts +1 -0
- package/build/tools/models/global-tools-config.schema.d.ts +81 -0
- package/build/tools/models/global-tools-config.schema.js +2 -0
- package/build/tools/models/tool-job.schema.d.ts +1 -0
- package/build/tools/models/tool-job.schema.js +1 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +32 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +162 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +32 -0
- package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
- package/build/tts/commands/create-voice-clone.command.js +21 -0
- package/build/tts/commands/create-voice-design.command.d.ts +40 -0
- package/build/tts/commands/create-voice-design.command.js +20 -0
- package/build/tts/commands/delete-voice.command.d.ts +17 -0
- package/build/tts/commands/delete-voice.command.js +14 -0
- package/build/tts/commands/download-tts-job.command.d.ts +25 -0
- package/build/tts/commands/download-tts-job.command.js +19 -0
- package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
- package/build/tts/commands/improve-tts-text.command.js +16 -0
- package/build/tts/commands/index.d.ts +7 -0
- package/build/tts/commands/index.js +7 -0
- package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
- package/build/tts/commands/retry-tts-job.command.js +2 -0
- package/build/tts/commands/select-voice-design.command.d.ts +77 -0
- package/build/tts/commands/select-voice-design.command.js +17 -0
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
- package/build/tts/commands/tts.command.d.ts +35 -3
- package/build/tts/commands/tts.command.js +4 -1
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
- package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-title.command.js +2 -0
- package/build/tts/commands/update-voice.command.d.ts +78 -0
- package/build/tts/commands/update-voice.command.js +18 -0
- package/build/tts/enums/index.d.ts +7 -0
- package/build/tts/enums/index.js +7 -0
- package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
- package/build/tts/enums/tts-download-format.enum.js +9 -0
- package/build/tts/enums/voice-category.enum.d.ts +19 -0
- package/build/tts/enums/voice-category.enum.js +23 -0
- package/build/tts/enums/voice-gender.enum.d.ts +4 -0
- package/build/tts/enums/voice-gender.enum.js +8 -0
- package/build/tts/enums/voice-source.enum.d.ts +5 -0
- package/build/tts/enums/voice-source.enum.js +9 -0
- package/build/tts/enums/voice-status.enum.d.ts +5 -0
- package/build/tts/enums/voice-status.enum.js +9 -0
- package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
- package/build/tts/enums/voice-tag-group.enum.js +9 -0
- package/build/tts/enums/voice-tag.enum.d.ts +20 -0
- package/build/tts/enums/voice-tag.enum.js +24 -0
- package/build/tts/models/index.d.ts +7 -0
- package/build/tts/models/index.js +7 -0
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
- package/build/tts/models/tts-config.schema.d.ts +11 -0
- package/build/tts/models/tts-config.schema.js +5 -0
- package/build/tts/models/tts-job.schema.d.ts +34 -2
- package/build/tts/models/tts-job.schema.js +22 -2
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.js +1 -0
- package/build/tts/models/voice-category.schema.d.ts +7 -0
- package/build/tts/models/voice-category.schema.js +9 -0
- package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
- package/build/tts/models/voice-design-draft.schema.js +13 -0
- package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
- package/build/tts/models/voice-design-sample.schema.js +8 -0
- package/build/tts/models/voice-gender.schema.d.ts +7 -0
- package/build/tts/models/voice-gender.schema.js +9 -0
- package/build/tts/models/voice-source.schema.d.ts +7 -0
- package/build/tts/models/voice-source.schema.js +9 -0
- package/build/tts/models/voice-tag.schema.d.ts +9 -0
- package/build/tts/models/voice-tag.schema.js +11 -0
- package/build/tts/models/voice.schema.d.ts +34 -0
- package/build/tts/models/voice.schema.js +30 -0
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
- package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
- package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
- package/build/tts/queries/find-tts-jobs.query.js +1 -0
- package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
- package/build/tts/queries/find-voice-by-id.query.js +17 -0
- package/build/tts/queries/find-voices.query.d.ts +122 -0
- package/build/tts/queries/find-voices.query.js +25 -0
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
- package/build/tts/queries/get-tts-config.query.d.ts +22 -0
- package/build/tts/queries/index.d.ts +2 -0
- package/build/tts/queries/index.js +2 -0
- package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
- package/build/tts/routes/tts.amqp.routes.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SpellCorrectorDocumentMetadataSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
mimeType: z.ZodString;
|
|
7
|
+
type: z.ZodString;
|
|
8
|
+
size: z.ZodNumber;
|
|
9
|
+
extension: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const SpellCorrectorDocumentInputSchema: z.ZodObject<{
|
|
12
|
+
uuid: z.ZodString;
|
|
13
|
+
url: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
mimeType: z.ZodString;
|
|
16
|
+
type: z.ZodString;
|
|
17
|
+
size: z.ZodNumber;
|
|
18
|
+
extension: z.ZodString;
|
|
19
|
+
content: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type SpellCorrectorDocumentInput = z.infer<typeof SpellCorrectorDocumentInputSchema>;
|
|
22
|
+
export type SpellCorrectorDocumentMetadata = z.infer<typeof SpellCorrectorDocumentMetadataSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpellCorrectorDocumentInputSchema = exports.SpellCorrectorDocumentMetadataSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.SpellCorrectorDocumentMetadataSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string(),
|
|
7
|
+
url: zod_1.z.string(),
|
|
8
|
+
name: zod_1.z.string(),
|
|
9
|
+
mimeType: zod_1.z.string(),
|
|
10
|
+
type: zod_1.z.string(),
|
|
11
|
+
size: zod_1.z.number(),
|
|
12
|
+
extension: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
exports.SpellCorrectorDocumentInputSchema = exports.SpellCorrectorDocumentMetadataSchema.extend({
|
|
15
|
+
content: zod_1.z.string(),
|
|
16
|
+
});
|
|
@@ -1,13 +1,42 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { JOB_STATUS } from '../../tools';
|
|
3
3
|
import { USER_REACTION } from '../../common';
|
|
4
|
+
import { SPELL_CORRECTOR_INPUT_KIND } from '../enums';
|
|
4
5
|
export declare const SpellCorrectorJobSchema: z.ZodObject<{
|
|
5
6
|
uuid: z.ZodString;
|
|
7
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
8
|
+
inputKind: z.ZodEnum<typeof SPELL_CORRECTOR_INPUT_KIND>;
|
|
9
|
+
sourceDocument: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
uuid: z.ZodString;
|
|
11
|
+
url: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
mimeType: z.ZodString;
|
|
14
|
+
type: z.ZodString;
|
|
15
|
+
size: z.ZodNumber;
|
|
16
|
+
extension: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
19
|
+
total: z.ZodNumber;
|
|
20
|
+
spelling: z.ZodNumber;
|
|
21
|
+
punctuation: z.ZodNumber;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
24
|
+
uuid: z.ZodString;
|
|
25
|
+
url: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
mimeType: z.ZodString;
|
|
28
|
+
type: z.ZodString;
|
|
29
|
+
size: z.ZodNumber;
|
|
30
|
+
extension: z.ZodString;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
6
32
|
userId: z.ZodNullable<z.ZodString>;
|
|
7
33
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
8
34
|
userInput: z.ZodString;
|
|
9
35
|
aiOutput: z.ZodNullable<z.ZodString>;
|
|
10
36
|
aiTokenUsage: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
wordsChanged: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
lettersChanged: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
editOperations: z.ZodNullable<z.ZodNumber>;
|
|
11
40
|
price: z.ZodNumber;
|
|
12
41
|
status: z.ZodEnum<typeof JOB_STATUS>;
|
|
13
42
|
title: z.ZodString;
|
|
@@ -4,13 +4,24 @@ exports.SpellCorrectorJobSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tools_1 = require("../../tools");
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
|
+
const spell_corrector_document_schema_1 = require("./spell-corrector-document.schema");
|
|
8
|
+
const spell_corrector_correction_statistics_schema_1 = require("./spell-corrector-correction-statistics.schema");
|
|
9
|
+
const enums_1 = require("../enums");
|
|
7
10
|
exports.SpellCorrectorJobSchema = zod_1.z.object({
|
|
8
11
|
uuid: zod_1.z.string(),
|
|
12
|
+
requestId: zod_1.z.string().uuid().nullable(),
|
|
13
|
+
inputKind: zod_1.z.nativeEnum(enums_1.SPELL_CORRECTOR_INPUT_KIND),
|
|
14
|
+
sourceDocument: spell_corrector_document_schema_1.SpellCorrectorDocumentMetadataSchema.nullable(),
|
|
15
|
+
statistics: spell_corrector_correction_statistics_schema_1.SpellCorrectorCorrectionStatisticsSchema.nullable().default(null),
|
|
16
|
+
outputDocument: spell_corrector_document_schema_1.SpellCorrectorDocumentMetadataSchema.nullable().default(null),
|
|
9
17
|
userId: zod_1.z.string().nullable(),
|
|
10
18
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
11
19
|
userInput: zod_1.z.string(),
|
|
12
20
|
aiOutput: zod_1.z.string().nullable(),
|
|
13
21
|
aiTokenUsage: zod_1.z.number().nullable(),
|
|
22
|
+
wordsChanged: zod_1.z.number().nullable(),
|
|
23
|
+
lettersChanged: zod_1.z.number().nullable(),
|
|
24
|
+
editOperations: zod_1.z.number().nullable(),
|
|
14
25
|
price: zod_1.z.number(),
|
|
15
26
|
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
|
|
16
27
|
title: zod_1.z.string(),
|
|
@@ -16,6 +16,10 @@ export declare const SpellCorrectorModelSchema: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
price: z.ZodNumber;
|
|
19
|
+
inputPrice: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
outputPrice: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
19
23
|
aiModel: z.ZodString;
|
|
20
24
|
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
21
25
|
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof REASONING_EFFORT>>>;
|
|
@@ -10,6 +10,10 @@ exports.SpellCorrectorModelSchema = zod_1.z.object({
|
|
|
10
10
|
icon: zod_1.z.string(),
|
|
11
11
|
icons: common_1.IconVariantsSchema,
|
|
12
12
|
price: zod_1.z.number(),
|
|
13
|
+
inputPrice: zod_1.z.number().nullable(),
|
|
14
|
+
outputPrice: zod_1.z.number().nullable(),
|
|
15
|
+
freeMaxPromptLength: zod_1.z.number().nullable(),
|
|
16
|
+
maxPromptLength: zod_1.z.number().nullable(),
|
|
13
17
|
aiModel: zod_1.z.string(),
|
|
14
18
|
status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
|
|
15
19
|
reasoningEffort: zod_1.z.nativeEnum(common_1.REASONING_EFFORT).nullable().optional(),
|
|
@@ -16,6 +16,10 @@ export declare const SpellCorrectorToolConfigSchema: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
price: z.ZodNumber;
|
|
19
|
+
inputPrice: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
outputPrice: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
19
23
|
aiModel: z.ZodString;
|
|
20
24
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
21
25
|
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
|
|
@@ -24,5 +28,6 @@ export declare const SpellCorrectorToolConfigSchema: z.ZodObject<{
|
|
|
24
28
|
updatedAt: z.ZodDate;
|
|
25
29
|
}, z.core.$strip>>;
|
|
26
30
|
maxSymbols: z.ZodNumber;
|
|
31
|
+
freeMaxSymbols: z.ZodNumber;
|
|
27
32
|
}, z.core.$strip>;
|
|
28
33
|
export type SpellCorrectorTool = z.infer<typeof SpellCorrectorToolConfigSchema>;
|
|
@@ -6,4 +6,5 @@ const spell_corrector_model_schema_1 = require("./spell-corrector-model.schema")
|
|
|
6
6
|
exports.SpellCorrectorToolConfigSchema = zod_1.z.object({
|
|
7
7
|
models: zod_1.z.array(spell_corrector_model_schema_1.SpellCorrectorModelSchema),
|
|
8
8
|
maxSymbols: zod_1.z.number(),
|
|
9
|
+
freeMaxSymbols: zod_1.z.number(),
|
|
9
10
|
});
|
|
@@ -10,11 +10,39 @@ export declare namespace FindSpellCorrectorJobByUuidQuery {
|
|
|
10
10
|
isSuccess: z.ZodBoolean;
|
|
11
11
|
data: z.ZodOptional<z.ZodType<{
|
|
12
12
|
uuid: string;
|
|
13
|
+
requestId: string | null;
|
|
14
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
15
|
+
sourceDocument: {
|
|
16
|
+
uuid: string;
|
|
17
|
+
url: string;
|
|
18
|
+
name: string;
|
|
19
|
+
mimeType: string;
|
|
20
|
+
type: string;
|
|
21
|
+
size: number;
|
|
22
|
+
extension: string;
|
|
23
|
+
} | null;
|
|
24
|
+
statistics: {
|
|
25
|
+
total: number;
|
|
26
|
+
spelling: number;
|
|
27
|
+
punctuation: number;
|
|
28
|
+
} | null;
|
|
29
|
+
outputDocument: {
|
|
30
|
+
uuid: string;
|
|
31
|
+
url: string;
|
|
32
|
+
name: string;
|
|
33
|
+
mimeType: string;
|
|
34
|
+
type: string;
|
|
35
|
+
size: number;
|
|
36
|
+
extension: string;
|
|
37
|
+
} | null;
|
|
13
38
|
userId: string | null;
|
|
14
39
|
unregisteredUserId: string | null;
|
|
15
40
|
userInput: string;
|
|
16
41
|
aiOutput: string | null;
|
|
17
42
|
aiTokenUsage: number | null;
|
|
43
|
+
wordsChanged: number | null;
|
|
44
|
+
lettersChanged: number | null;
|
|
45
|
+
editOperations: number | null;
|
|
18
46
|
price: number;
|
|
19
47
|
status: import("../..").JOB_STATUS;
|
|
20
48
|
title: string;
|
|
@@ -28,11 +56,39 @@ export declare namespace FindSpellCorrectorJobByUuidQuery {
|
|
|
28
56
|
completedAt: Date | null;
|
|
29
57
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
30
58
|
uuid: string;
|
|
59
|
+
requestId: string | null;
|
|
60
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
61
|
+
sourceDocument: {
|
|
62
|
+
uuid: string;
|
|
63
|
+
url: string;
|
|
64
|
+
name: string;
|
|
65
|
+
mimeType: string;
|
|
66
|
+
type: string;
|
|
67
|
+
size: number;
|
|
68
|
+
extension: string;
|
|
69
|
+
} | null;
|
|
70
|
+
statistics: {
|
|
71
|
+
total: number;
|
|
72
|
+
spelling: number;
|
|
73
|
+
punctuation: number;
|
|
74
|
+
} | null;
|
|
75
|
+
outputDocument: {
|
|
76
|
+
uuid: string;
|
|
77
|
+
url: string;
|
|
78
|
+
name: string;
|
|
79
|
+
mimeType: string;
|
|
80
|
+
type: string;
|
|
81
|
+
size: number;
|
|
82
|
+
extension: string;
|
|
83
|
+
} | null;
|
|
31
84
|
userId: string | null;
|
|
32
85
|
unregisteredUserId: string | null;
|
|
33
86
|
userInput: string;
|
|
34
87
|
aiOutput: string | null;
|
|
35
88
|
aiTokenUsage: number | null;
|
|
89
|
+
wordsChanged: number | null;
|
|
90
|
+
lettersChanged: number | null;
|
|
91
|
+
editOperations: number | null;
|
|
36
92
|
price: number;
|
|
37
93
|
status: import("../..").JOB_STATUS;
|
|
38
94
|
title: string;
|
|
@@ -17,11 +17,39 @@ export declare namespace FindSpellCorrectorJobsQuery {
|
|
|
17
17
|
data: z.ZodOptional<z.ZodType<{
|
|
18
18
|
data: {
|
|
19
19
|
uuid: string;
|
|
20
|
+
requestId: string | null;
|
|
21
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
22
|
+
sourceDocument: {
|
|
23
|
+
uuid: string;
|
|
24
|
+
url: string;
|
|
25
|
+
name: string;
|
|
26
|
+
mimeType: string;
|
|
27
|
+
type: string;
|
|
28
|
+
size: number;
|
|
29
|
+
extension: string;
|
|
30
|
+
} | null;
|
|
31
|
+
statistics: {
|
|
32
|
+
total: number;
|
|
33
|
+
spelling: number;
|
|
34
|
+
punctuation: number;
|
|
35
|
+
} | null;
|
|
36
|
+
outputDocument: {
|
|
37
|
+
uuid: string;
|
|
38
|
+
url: string;
|
|
39
|
+
name: string;
|
|
40
|
+
mimeType: string;
|
|
41
|
+
type: string;
|
|
42
|
+
size: number;
|
|
43
|
+
extension: string;
|
|
44
|
+
} | null;
|
|
20
45
|
userId: string | null;
|
|
21
46
|
unregisteredUserId: string | null;
|
|
22
47
|
userInput: string;
|
|
23
48
|
aiOutput: string | null;
|
|
24
49
|
aiTokenUsage: number | null;
|
|
50
|
+
wordsChanged: number | null;
|
|
51
|
+
lettersChanged: number | null;
|
|
52
|
+
editOperations: number | null;
|
|
25
53
|
price: number;
|
|
26
54
|
status: JOB_STATUS;
|
|
27
55
|
title: string;
|
|
@@ -40,11 +68,39 @@ export declare namespace FindSpellCorrectorJobsQuery {
|
|
|
40
68
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
41
69
|
data: {
|
|
42
70
|
uuid: string;
|
|
71
|
+
requestId: string | null;
|
|
72
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
73
|
+
sourceDocument: {
|
|
74
|
+
uuid: string;
|
|
75
|
+
url: string;
|
|
76
|
+
name: string;
|
|
77
|
+
mimeType: string;
|
|
78
|
+
type: string;
|
|
79
|
+
size: number;
|
|
80
|
+
extension: string;
|
|
81
|
+
} | null;
|
|
82
|
+
statistics: {
|
|
83
|
+
total: number;
|
|
84
|
+
spelling: number;
|
|
85
|
+
punctuation: number;
|
|
86
|
+
} | null;
|
|
87
|
+
outputDocument: {
|
|
88
|
+
uuid: string;
|
|
89
|
+
url: string;
|
|
90
|
+
name: string;
|
|
91
|
+
mimeType: string;
|
|
92
|
+
type: string;
|
|
93
|
+
size: number;
|
|
94
|
+
extension: string;
|
|
95
|
+
} | null;
|
|
43
96
|
userId: string | null;
|
|
44
97
|
unregisteredUserId: string | null;
|
|
45
98
|
userInput: string;
|
|
46
99
|
aiOutput: string | null;
|
|
47
100
|
aiTokenUsage: number | null;
|
|
101
|
+
wordsChanged: number | null;
|
|
102
|
+
lettersChanged: number | null;
|
|
103
|
+
editOperations: number | null;
|
|
48
104
|
price: number;
|
|
49
105
|
status: JOB_STATUS;
|
|
50
106
|
title: string;
|
|
@@ -23,6 +23,10 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
price: number;
|
|
26
|
+
inputPrice: number | null;
|
|
27
|
+
outputPrice: number | null;
|
|
28
|
+
freeMaxPromptLength: number | null;
|
|
29
|
+
maxPromptLength: number | null;
|
|
26
30
|
aiModel: string;
|
|
27
31
|
status: import("../..").TOOL_MODEL_STATUS;
|
|
28
32
|
reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
|
|
@@ -31,6 +35,7 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
|
|
|
31
35
|
updatedAt: Date;
|
|
32
36
|
}[];
|
|
33
37
|
maxSymbols: number;
|
|
38
|
+
freeMaxSymbols: number;
|
|
34
39
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
35
40
|
models: {
|
|
36
41
|
uuid: string;
|
|
@@ -48,6 +53,10 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
|
|
|
48
53
|
};
|
|
49
54
|
};
|
|
50
55
|
price: number;
|
|
56
|
+
inputPrice: number | null;
|
|
57
|
+
outputPrice: number | null;
|
|
58
|
+
freeMaxPromptLength: number | null;
|
|
59
|
+
maxPromptLength: number | null;
|
|
51
60
|
aiModel: string;
|
|
52
61
|
status: import("../..").TOOL_MODEL_STATUS;
|
|
53
62
|
reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
|
|
@@ -56,6 +65,7 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
|
|
|
56
65
|
updatedAt: Date;
|
|
57
66
|
}[];
|
|
58
67
|
maxSymbols: number;
|
|
68
|
+
freeMaxSymbols: number;
|
|
59
69
|
}, unknown>>>;
|
|
60
70
|
code: z.ZodOptional<z.ZodString>;
|
|
61
71
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -16,6 +16,7 @@ export declare enum TOOL_CONTENT_TYPE {
|
|
|
16
16
|
SPELL_CORRECTOR = "SPELL_CORRECTOR",
|
|
17
17
|
DIAGRAMS = "DIAGRAMS",
|
|
18
18
|
HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
|
|
19
|
+
PHOTO_SESSIONS = "PHOTO_SESSIONS",
|
|
19
20
|
IMAGE_RECOGNITION = "IMAGE_RECOGNITION",
|
|
20
21
|
SOUND_GENERATION = "SOUND_GENERATION"
|
|
21
22
|
}
|
|
@@ -20,6 +20,7 @@ var TOOL_CONTENT_TYPE;
|
|
|
20
20
|
TOOL_CONTENT_TYPE["SPELL_CORRECTOR"] = "SPELL_CORRECTOR";
|
|
21
21
|
TOOL_CONTENT_TYPE["DIAGRAMS"] = "DIAGRAMS";
|
|
22
22
|
TOOL_CONTENT_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
|
|
23
|
+
TOOL_CONTENT_TYPE["PHOTO_SESSIONS"] = "PHOTO_SESSIONS";
|
|
23
24
|
TOOL_CONTENT_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
|
|
24
25
|
TOOL_CONTENT_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
|
|
25
26
|
})(TOOL_CONTENT_TYPE || (exports.TOOL_CONTENT_TYPE = TOOL_CONTENT_TYPE = {}));
|
|
@@ -18,6 +18,7 @@ export declare enum TOOL_TYPE {
|
|
|
18
18
|
SOLVING_EDU_TASK = "SOLVING_EDU_TASK",
|
|
19
19
|
DIAGRAMS = "DIAGRAMS",
|
|
20
20
|
HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
|
|
21
|
+
PHOTO_SESSION = "PHOTO_SESSION",
|
|
21
22
|
IMAGE_RECOGNITION = "IMAGE_RECOGNITION",
|
|
22
23
|
SOUND_GENERATION = "SOUND_GENERATION"
|
|
23
24
|
}
|
|
@@ -22,6 +22,7 @@ var TOOL_TYPE;
|
|
|
22
22
|
TOOL_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
|
|
23
23
|
TOOL_TYPE["DIAGRAMS"] = "DIAGRAMS";
|
|
24
24
|
TOOL_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
|
|
25
|
+
TOOL_TYPE["PHOTO_SESSION"] = "PHOTO_SESSION";
|
|
25
26
|
TOOL_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
|
|
26
27
|
TOOL_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
|
|
27
28
|
})(TOOL_TYPE || (exports.TOOL_TYPE = TOOL_TYPE = {}));
|
|
@@ -9,6 +9,7 @@ export declare namespace ToolJobCompleteEvent {
|
|
|
9
9
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
10
10
|
price: z.ZodNumber;
|
|
11
11
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
12
13
|
createdAt: z.ZodDate;
|
|
13
14
|
updatedAt: z.ZodDate;
|
|
14
15
|
toolType: z.ZodEnum<typeof TOOL_TYPE>;
|
|
@@ -8,6 +8,7 @@ export declare namespace ToolJobFailedEvent {
|
|
|
8
8
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
9
9
|
price: z.ZodNumber;
|
|
10
10
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
11
12
|
createdAt: z.ZodDate;
|
|
12
13
|
updatedAt: z.ZodDate;
|
|
13
14
|
toolType: z.ZodEnum<typeof TOOL_TYPE>;
|
|
@@ -544,6 +544,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
544
544
|
}, z.core.$strip>;
|
|
545
545
|
strategy: z.ZodOptional<z.ZodString>;
|
|
546
546
|
maxInputLength: z.ZodNumber;
|
|
547
|
+
maxSpeakers: z.ZodNumber;
|
|
547
548
|
voices: z.ZodArray<z.ZodObject<{
|
|
548
549
|
id: z.ZodString;
|
|
549
550
|
externalId: z.ZodString;
|
|
@@ -644,6 +645,16 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
644
645
|
createdAt: z.ZodDate;
|
|
645
646
|
updatedAt: z.ZodDate;
|
|
646
647
|
}, z.core.$strip>>;
|
|
648
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
649
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
650
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
651
|
+
label: z.ZodString;
|
|
652
|
+
}, z.core.$strip>>;
|
|
653
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
654
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
655
|
+
label: z.ZodString;
|
|
656
|
+
}, z.core.$strip>>;
|
|
657
|
+
speakerMarkerLabel: z.ZodString;
|
|
647
658
|
}, z.core.$strip>;
|
|
648
659
|
SPEECH_TO_TEXT: z.ZodObject<{
|
|
649
660
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -813,6 +824,10 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
813
824
|
}, z.core.$strip>;
|
|
814
825
|
}, z.core.$strip>;
|
|
815
826
|
price: z.ZodNumber;
|
|
827
|
+
inputPrice: z.ZodNullable<z.ZodNumber>;
|
|
828
|
+
outputPrice: z.ZodNullable<z.ZodNumber>;
|
|
829
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
830
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
816
831
|
aiModel: z.ZodString;
|
|
817
832
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
818
833
|
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
|
|
@@ -821,6 +836,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
821
836
|
updatedAt: z.ZodDate;
|
|
822
837
|
}, z.core.$strip>>;
|
|
823
838
|
maxSymbols: z.ZodNumber;
|
|
839
|
+
freeMaxSymbols: z.ZodNumber;
|
|
824
840
|
}, z.core.$strip>;
|
|
825
841
|
DIAGRAMS: z.ZodObject<{
|
|
826
842
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -904,6 +920,71 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
904
920
|
}, z.core.$strip>>;
|
|
905
921
|
maxAttachmentsCount: z.ZodNumber;
|
|
906
922
|
}, z.core.$strip>;
|
|
923
|
+
PHOTO_SESSIONS: z.ZodObject<{
|
|
924
|
+
models: z.ZodArray<z.ZodObject<{
|
|
925
|
+
uuid: z.ZodString;
|
|
926
|
+
title: z.ZodString;
|
|
927
|
+
description: z.ZodString;
|
|
928
|
+
aiModel: z.ZodString;
|
|
929
|
+
isNew: z.ZodBoolean;
|
|
930
|
+
tierLabel: z.ZodString;
|
|
931
|
+
pricePerImage: z.ZodNumber;
|
|
932
|
+
order: z.ZodNumber;
|
|
933
|
+
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
934
|
+
icons: z.ZodObject<{
|
|
935
|
+
light: z.ZodObject<{
|
|
936
|
+
svg: z.ZodString;
|
|
937
|
+
png: z.ZodString;
|
|
938
|
+
}, z.core.$strip>;
|
|
939
|
+
dark: z.ZodObject<{
|
|
940
|
+
svg: z.ZodString;
|
|
941
|
+
png: z.ZodString;
|
|
942
|
+
}, z.core.$strip>;
|
|
943
|
+
}, z.core.$strip>;
|
|
944
|
+
strategy: z.ZodEnum<typeof import("../..").PHOTO_SESSION_STRATEGY>;
|
|
945
|
+
maxInputLength: z.ZodNumber;
|
|
946
|
+
params: z.ZodObject<{
|
|
947
|
+
imageAttachment: z.ZodObject<{
|
|
948
|
+
supported: z.ZodBoolean;
|
|
949
|
+
maxImages: z.ZodNumber;
|
|
950
|
+
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
951
|
+
}, z.core.$strip>;
|
|
952
|
+
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
953
|
+
width: z.ZodNumber;
|
|
954
|
+
height: z.ZodNumber;
|
|
955
|
+
}, z.core.$strip>>;
|
|
956
|
+
}, z.core.$strip>;
|
|
957
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
958
|
+
condition: z.ZodObject<{
|
|
959
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
960
|
+
}, z.core.$strip>;
|
|
961
|
+
value: z.ZodNumber;
|
|
962
|
+
}, z.core.$strip>>;
|
|
963
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
964
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
965
|
+
}, z.core.$strip>>;
|
|
966
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
967
|
+
uuid: z.ZodString;
|
|
968
|
+
code: z.ZodString;
|
|
969
|
+
title: z.ZodString;
|
|
970
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
971
|
+
references: z.ZodArray<z.ZodObject<{
|
|
972
|
+
uuid: z.ZodString;
|
|
973
|
+
styleId: z.ZodString;
|
|
974
|
+
photoUrl: z.ZodString;
|
|
975
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
976
|
+
order: z.ZodNumber;
|
|
977
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
978
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
979
|
+
}, z.core.$strip>>;
|
|
980
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
981
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
982
|
+
}, z.core.$strip>>;
|
|
983
|
+
looks: z.ZodArray<z.ZodObject<{
|
|
984
|
+
type: z.ZodEnum<typeof import("../..").PHOTO_SESSION_LOOK_TYPE>;
|
|
985
|
+
maxPhotos: z.ZodNumber;
|
|
986
|
+
}, z.core.$strip>>;
|
|
987
|
+
}, z.core.$strip>;
|
|
907
988
|
IMAGE_RECOGNITION: z.ZodObject<{
|
|
908
989
|
models: z.ZodArray<z.ZodObject<{
|
|
909
990
|
uuid: z.ZodString;
|
|
@@ -19,6 +19,7 @@ const solving_edu_task_1 = require("../../solving-edu-task");
|
|
|
19
19
|
const spell_corrector_1 = require("../../spell-corrector");
|
|
20
20
|
const diagrams_1 = require("../../diagrams");
|
|
21
21
|
const models_2 = require("../../html-page-builder/models");
|
|
22
|
+
const photo_sessions_1 = require("../../photo-sessions");
|
|
22
23
|
const image_recognition_1 = require("../../image-recognition");
|
|
23
24
|
const sound_generation_1 = require("../../sound-generation");
|
|
24
25
|
exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
@@ -38,6 +39,7 @@ exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
|
38
39
|
[enums_1.TOOL_CONTENT_TYPE.SPELL_CORRECTOR]: spell_corrector_1.SpellCorrectorToolConfigSchema,
|
|
39
40
|
[enums_1.TOOL_CONTENT_TYPE.DIAGRAMS]: diagrams_1.DiagramsConfigSchema,
|
|
40
41
|
[enums_1.TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER]: models_2.HtmlPageBuilderConfigSchema,
|
|
42
|
+
[enums_1.TOOL_CONTENT_TYPE.PHOTO_SESSIONS]: photo_sessions_1.PhotoSessionConfigSchema,
|
|
41
43
|
[enums_1.TOOL_CONTENT_TYPE.IMAGE_RECOGNITION]: image_recognition_1.ImageRecognitionConfigSchema,
|
|
42
44
|
[enums_1.TOOL_CONTENT_TYPE.SOUND_GENERATION]: sound_generation_1.SoundGenerationConfigSchema,
|
|
43
45
|
});
|
|
@@ -5,6 +5,7 @@ export declare const ToolJobSchema: z.ZodObject<{
|
|
|
5
5
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
6
6
|
price: z.ZodNumber;
|
|
7
7
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
8
9
|
createdAt: z.ZodDate;
|
|
9
10
|
updatedAt: z.ZodDate;
|
|
10
11
|
}, z.core.$strip>;
|
|
@@ -8,6 +8,7 @@ exports.ToolJobSchema = zod_1.z.object({
|
|
|
8
8
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
9
9
|
price: zod_1.z.number(),
|
|
10
10
|
tokenReservationId: zod_1.z.string().nullable().optional(),
|
|
11
|
+
idempotencyKey: zod_1.z.string().optional(),
|
|
11
12
|
createdAt: zod_1.z.date(),
|
|
12
13
|
updatedAt: zod_1.z.date(),
|
|
13
14
|
});
|
|
@@ -652,6 +652,7 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
652
652
|
}, z.core.$strip>;
|
|
653
653
|
strategy: z.ZodOptional<z.ZodString>;
|
|
654
654
|
maxInputLength: z.ZodNumber;
|
|
655
|
+
maxSpeakers: z.ZodNumber;
|
|
655
656
|
voices: z.ZodArray<z.ZodObject<{
|
|
656
657
|
id: z.ZodString;
|
|
657
658
|
externalId: z.ZodString;
|
|
@@ -752,6 +753,16 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
752
753
|
createdAt: z.ZodDate;
|
|
753
754
|
updatedAt: z.ZodDate;
|
|
754
755
|
}, z.core.$strip>>;
|
|
756
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
757
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
758
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
759
|
+
label: z.ZodString;
|
|
760
|
+
}, z.core.$strip>>;
|
|
761
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
762
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
763
|
+
label: z.ZodString;
|
|
764
|
+
}, z.core.$strip>>;
|
|
765
|
+
speakerMarkerLabel: z.ZodString;
|
|
755
766
|
}, z.core.$strip>;
|
|
756
767
|
}, z.core.$strip>, z.ZodObject<{
|
|
757
768
|
uuid: z.ZodString;
|
|
@@ -981,6 +992,10 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
981
992
|
}, z.core.$strip>;
|
|
982
993
|
}, z.core.$strip>;
|
|
983
994
|
price: z.ZodNumber;
|
|
995
|
+
inputPrice: z.ZodNullable<z.ZodNumber>;
|
|
996
|
+
outputPrice: z.ZodNullable<z.ZodNumber>;
|
|
997
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
998
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
984
999
|
aiModel: z.ZodString;
|
|
985
1000
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
986
1001
|
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
|
|
@@ -989,6 +1004,7 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
989
1004
|
updatedAt: z.ZodDate;
|
|
990
1005
|
}, z.core.$strip>>;
|
|
991
1006
|
maxSymbols: z.ZodNumber;
|
|
1007
|
+
freeMaxSymbols: z.ZodNumber;
|
|
992
1008
|
}, z.core.$strip>;
|
|
993
1009
|
}, z.core.$strip>, z.ZodObject<{
|
|
994
1010
|
uuid: z.ZodString;
|
|
@@ -1857,6 +1873,7 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
1857
1873
|
}, z.core.$strip>;
|
|
1858
1874
|
strategy: z.ZodOptional<z.ZodString>;
|
|
1859
1875
|
maxInputLength: z.ZodNumber;
|
|
1876
|
+
maxSpeakers: z.ZodNumber;
|
|
1860
1877
|
voices: z.ZodArray<z.ZodObject<{
|
|
1861
1878
|
id: z.ZodString;
|
|
1862
1879
|
externalId: z.ZodString;
|
|
@@ -1957,6 +1974,16 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
1957
1974
|
createdAt: z.ZodDate;
|
|
1958
1975
|
updatedAt: z.ZodDate;
|
|
1959
1976
|
}, z.core.$strip>>;
|
|
1977
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1978
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
1979
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
1980
|
+
label: z.ZodString;
|
|
1981
|
+
}, z.core.$strip>>;
|
|
1982
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
1983
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
1984
|
+
label: z.ZodString;
|
|
1985
|
+
}, z.core.$strip>>;
|
|
1986
|
+
speakerMarkerLabel: z.ZodString;
|
|
1960
1987
|
}, z.core.$strip>;
|
|
1961
1988
|
}, z.core.$strip>, z.ZodObject<{
|
|
1962
1989
|
uuid: z.ZodString;
|
|
@@ -2186,6 +2213,10 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
2186
2213
|
}, z.core.$strip>;
|
|
2187
2214
|
}, z.core.$strip>;
|
|
2188
2215
|
price: z.ZodNumber;
|
|
2216
|
+
inputPrice: z.ZodNullable<z.ZodNumber>;
|
|
2217
|
+
outputPrice: z.ZodNullable<z.ZodNumber>;
|
|
2218
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
2219
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
2189
2220
|
aiModel: z.ZodString;
|
|
2190
2221
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
2191
2222
|
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
|
|
@@ -2194,6 +2225,7 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
2194
2225
|
updatedAt: z.ZodDate;
|
|
2195
2226
|
}, z.core.$strip>>;
|
|
2196
2227
|
maxSymbols: z.ZodNumber;
|
|
2228
|
+
freeMaxSymbols: z.ZodNumber;
|
|
2197
2229
|
}, z.core.$strip>;
|
|
2198
2230
|
}, z.core.$strip>, z.ZodObject<{
|
|
2199
2231
|
uuid: z.ZodString;
|