@purpleschool/gptbot-tools 0.2.70 → 0.2.72
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/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/models/global-tools-config.schema.d.ts +5 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +10 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +10 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +10 -0
- package/package.json +1 -1
|
@@ -2,17 +2,30 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare namespace GetSpellCorrectorPriceCommand {
|
|
3
3
|
const RequestSchema: z.ZodObject<{
|
|
4
4
|
modelId: z.ZodString;
|
|
5
|
+
contentLength: z.ZodNumber;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
type Request = z.infer<typeof RequestSchema>;
|
|
7
8
|
const ResponseDataSchema: z.ZodObject<{
|
|
8
|
-
|
|
9
|
+
modelPricing: z.ZodObject<{
|
|
10
|
+
inputPrice: z.ZodNumber;
|
|
11
|
+
outputPrice: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
effectivePromptLength: z.ZodNumber;
|
|
9
14
|
}, z.core.$strip>;
|
|
10
15
|
const ResponseSchema: z.ZodObject<{
|
|
11
16
|
isSuccess: z.ZodBoolean;
|
|
12
17
|
data: z.ZodOptional<z.ZodType<{
|
|
13
|
-
|
|
18
|
+
modelPricing: {
|
|
19
|
+
inputPrice: number;
|
|
20
|
+
outputPrice: number;
|
|
21
|
+
};
|
|
22
|
+
effectivePromptLength: number;
|
|
14
23
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
15
|
-
|
|
24
|
+
modelPricing: {
|
|
25
|
+
inputPrice: number;
|
|
26
|
+
outputPrice: number;
|
|
27
|
+
};
|
|
28
|
+
effectivePromptLength: number;
|
|
16
29
|
}, unknown>>>;
|
|
17
30
|
code: z.ZodOptional<z.ZodString>;
|
|
18
31
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -7,9 +7,14 @@ var GetSpellCorrectorPriceCommand;
|
|
|
7
7
|
(function (GetSpellCorrectorPriceCommand) {
|
|
8
8
|
GetSpellCorrectorPriceCommand.RequestSchema = zod_1.z.object({
|
|
9
9
|
modelId: zod_1.z.string().uuid(),
|
|
10
|
+
contentLength: zod_1.z.number().int().nonnegative(),
|
|
10
11
|
});
|
|
11
12
|
GetSpellCorrectorPriceCommand.ResponseDataSchema = zod_1.z.object({
|
|
12
|
-
|
|
13
|
+
modelPricing: zod_1.z.object({
|
|
14
|
+
inputPrice: zod_1.z.number(),
|
|
15
|
+
outputPrice: zod_1.z.number(),
|
|
16
|
+
}),
|
|
17
|
+
effectivePromptLength: zod_1.z.number(),
|
|
13
18
|
});
|
|
14
19
|
GetSpellCorrectorPriceCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(GetSpellCorrectorPriceCommand.ResponseDataSchema);
|
|
15
20
|
})(GetSpellCorrectorPriceCommand || (exports.GetSpellCorrectorPriceCommand = GetSpellCorrectorPriceCommand = {}));
|
|
@@ -6,6 +6,17 @@ export declare namespace RetrySpellCorrectorJobCommand {
|
|
|
6
6
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
tokenReservationId: z.ZodString;
|
|
8
8
|
precalculatedPrice: z.ZodNumber;
|
|
9
|
+
userHasActiveSubscriptionOrProduct: z.ZodBoolean;
|
|
10
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
uuid: z.ZodString;
|
|
12
|
+
url: z.ZodString;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
mimeType: z.ZodString;
|
|
15
|
+
type: z.ZodString;
|
|
16
|
+
size: z.ZodNumber;
|
|
17
|
+
extension: z.ZodString;
|
|
18
|
+
content: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>;
|
|
9
20
|
mock: z.ZodOptional<z.ZodBoolean>;
|
|
10
21
|
}, z.core.$strip>;
|
|
11
22
|
type Request = z.infer<typeof RequestSchema>;
|
|
@@ -13,11 +24,39 @@ export declare namespace RetrySpellCorrectorJobCommand {
|
|
|
13
24
|
isSuccess: z.ZodBoolean;
|
|
14
25
|
data: z.ZodOptional<z.ZodType<{
|
|
15
26
|
uuid: string;
|
|
27
|
+
requestId: string | null;
|
|
28
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
29
|
+
sourceDocument: {
|
|
30
|
+
uuid: string;
|
|
31
|
+
url: string;
|
|
32
|
+
name: string;
|
|
33
|
+
mimeType: string;
|
|
34
|
+
type: string;
|
|
35
|
+
size: number;
|
|
36
|
+
extension: string;
|
|
37
|
+
} | null;
|
|
38
|
+
statistics: {
|
|
39
|
+
total: number;
|
|
40
|
+
spelling: number;
|
|
41
|
+
punctuation: number;
|
|
42
|
+
} | null;
|
|
43
|
+
outputDocument: {
|
|
44
|
+
uuid: string;
|
|
45
|
+
url: string;
|
|
46
|
+
name: string;
|
|
47
|
+
mimeType: string;
|
|
48
|
+
type: string;
|
|
49
|
+
size: number;
|
|
50
|
+
extension: string;
|
|
51
|
+
} | null;
|
|
16
52
|
userId: string | null;
|
|
17
53
|
unregisteredUserId: string | null;
|
|
18
54
|
userInput: string;
|
|
19
55
|
aiOutput: string | null;
|
|
20
56
|
aiTokenUsage: number | null;
|
|
57
|
+
wordsChanged: number | null;
|
|
58
|
+
lettersChanged: number | null;
|
|
59
|
+
editOperations: number | null;
|
|
21
60
|
price: number;
|
|
22
61
|
status: import("../..").JOB_STATUS;
|
|
23
62
|
title: string;
|
|
@@ -31,11 +70,39 @@ export declare namespace RetrySpellCorrectorJobCommand {
|
|
|
31
70
|
completedAt: Date | null;
|
|
32
71
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
33
72
|
uuid: string;
|
|
73
|
+
requestId: string | null;
|
|
74
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
75
|
+
sourceDocument: {
|
|
76
|
+
uuid: string;
|
|
77
|
+
url: string;
|
|
78
|
+
name: string;
|
|
79
|
+
mimeType: string;
|
|
80
|
+
type: string;
|
|
81
|
+
size: number;
|
|
82
|
+
extension: string;
|
|
83
|
+
} | null;
|
|
84
|
+
statistics: {
|
|
85
|
+
total: number;
|
|
86
|
+
spelling: number;
|
|
87
|
+
punctuation: number;
|
|
88
|
+
} | null;
|
|
89
|
+
outputDocument: {
|
|
90
|
+
uuid: string;
|
|
91
|
+
url: string;
|
|
92
|
+
name: string;
|
|
93
|
+
mimeType: string;
|
|
94
|
+
type: string;
|
|
95
|
+
size: number;
|
|
96
|
+
extension: string;
|
|
97
|
+
} | null;
|
|
34
98
|
userId: string | null;
|
|
35
99
|
unregisteredUserId: string | null;
|
|
36
100
|
userInput: string;
|
|
37
101
|
aiOutput: string | null;
|
|
38
102
|
aiTokenUsage: number | null;
|
|
103
|
+
wordsChanged: number | null;
|
|
104
|
+
lettersChanged: number | null;
|
|
105
|
+
editOperations: number | null;
|
|
39
106
|
price: number;
|
|
40
107
|
status: import("../..").JOB_STATUS;
|
|
41
108
|
title: string;
|
|
@@ -12,6 +12,8 @@ var RetrySpellCorrectorJobCommand;
|
|
|
12
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
13
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
14
14
|
precalculatedPrice: zod_1.z.number(),
|
|
15
|
+
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
16
|
+
document: models_1.SpellCorrectorDocumentInputSchema.optional(),
|
|
15
17
|
mock: zod_1.z.boolean().optional(),
|
|
16
18
|
});
|
|
17
19
|
RetrySpellCorrectorJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.SpellCorrectorJobSchema);
|
|
@@ -13,11 +13,39 @@ export declare namespace SetReactionToSpellCorrectorJobCommand {
|
|
|
13
13
|
isSuccess: z.ZodBoolean;
|
|
14
14
|
data: z.ZodOptional<z.ZodType<{
|
|
15
15
|
uuid: string;
|
|
16
|
+
requestId: string | null;
|
|
17
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
18
|
+
sourceDocument: {
|
|
19
|
+
uuid: string;
|
|
20
|
+
url: string;
|
|
21
|
+
name: string;
|
|
22
|
+
mimeType: string;
|
|
23
|
+
type: string;
|
|
24
|
+
size: number;
|
|
25
|
+
extension: string;
|
|
26
|
+
} | null;
|
|
27
|
+
statistics: {
|
|
28
|
+
total: number;
|
|
29
|
+
spelling: number;
|
|
30
|
+
punctuation: number;
|
|
31
|
+
} | null;
|
|
32
|
+
outputDocument: {
|
|
33
|
+
uuid: string;
|
|
34
|
+
url: string;
|
|
35
|
+
name: string;
|
|
36
|
+
mimeType: string;
|
|
37
|
+
type: string;
|
|
38
|
+
size: number;
|
|
39
|
+
extension: string;
|
|
40
|
+
} | null;
|
|
16
41
|
userId: string | null;
|
|
17
42
|
unregisteredUserId: string | null;
|
|
18
43
|
userInput: string;
|
|
19
44
|
aiOutput: string | null;
|
|
20
45
|
aiTokenUsage: number | null;
|
|
46
|
+
wordsChanged: number | null;
|
|
47
|
+
lettersChanged: number | null;
|
|
48
|
+
editOperations: number | null;
|
|
21
49
|
price: number;
|
|
22
50
|
status: import("../..").JOB_STATUS;
|
|
23
51
|
title: string;
|
|
@@ -31,11 +59,39 @@ export declare namespace SetReactionToSpellCorrectorJobCommand {
|
|
|
31
59
|
completedAt: Date | null;
|
|
32
60
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
33
61
|
uuid: string;
|
|
62
|
+
requestId: string | null;
|
|
63
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
64
|
+
sourceDocument: {
|
|
65
|
+
uuid: string;
|
|
66
|
+
url: string;
|
|
67
|
+
name: string;
|
|
68
|
+
mimeType: string;
|
|
69
|
+
type: string;
|
|
70
|
+
size: number;
|
|
71
|
+
extension: string;
|
|
72
|
+
} | null;
|
|
73
|
+
statistics: {
|
|
74
|
+
total: number;
|
|
75
|
+
spelling: number;
|
|
76
|
+
punctuation: number;
|
|
77
|
+
} | null;
|
|
78
|
+
outputDocument: {
|
|
79
|
+
uuid: string;
|
|
80
|
+
url: string;
|
|
81
|
+
name: string;
|
|
82
|
+
mimeType: string;
|
|
83
|
+
type: string;
|
|
84
|
+
size: number;
|
|
85
|
+
extension: string;
|
|
86
|
+
} | null;
|
|
34
87
|
userId: string | null;
|
|
35
88
|
unregisteredUserId: string | null;
|
|
36
89
|
userInput: string;
|
|
37
90
|
aiOutput: string | null;
|
|
38
91
|
aiTokenUsage: number | null;
|
|
92
|
+
wordsChanged: number | null;
|
|
93
|
+
lettersChanged: number | null;
|
|
94
|
+
editOperations: number | null;
|
|
39
95
|
price: number;
|
|
40
96
|
status: import("../..").JOB_STATUS;
|
|
41
97
|
title: string;
|
|
@@ -3,10 +3,22 @@ export declare namespace SpellCorrectorCommand {
|
|
|
3
3
|
const RequestSchema: z.ZodObject<{
|
|
4
4
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
-
|
|
6
|
+
requestId: z.ZodString;
|
|
7
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
uuid: z.ZodString;
|
|
10
|
+
url: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
mimeType: z.ZodString;
|
|
13
|
+
type: z.ZodString;
|
|
14
|
+
size: z.ZodNumber;
|
|
15
|
+
extension: z.ZodString;
|
|
16
|
+
content: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
7
18
|
modelId: z.ZodString;
|
|
8
19
|
tokenReservationId: z.ZodString;
|
|
9
20
|
precalculatedPrice: z.ZodNumber;
|
|
21
|
+
userHasActiveSubscriptionOrProduct: z.ZodBoolean;
|
|
10
22
|
mock: z.ZodOptional<z.ZodBoolean>;
|
|
11
23
|
}, z.core.$strip>;
|
|
12
24
|
type Request = z.infer<typeof RequestSchema>;
|
|
@@ -14,11 +26,39 @@ export declare namespace SpellCorrectorCommand {
|
|
|
14
26
|
isSuccess: z.ZodBoolean;
|
|
15
27
|
data: z.ZodOptional<z.ZodType<{
|
|
16
28
|
uuid: string;
|
|
29
|
+
requestId: string | null;
|
|
30
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
31
|
+
sourceDocument: {
|
|
32
|
+
uuid: string;
|
|
33
|
+
url: string;
|
|
34
|
+
name: string;
|
|
35
|
+
mimeType: string;
|
|
36
|
+
type: string;
|
|
37
|
+
size: number;
|
|
38
|
+
extension: string;
|
|
39
|
+
} | null;
|
|
40
|
+
statistics: {
|
|
41
|
+
total: number;
|
|
42
|
+
spelling: number;
|
|
43
|
+
punctuation: number;
|
|
44
|
+
} | null;
|
|
45
|
+
outputDocument: {
|
|
46
|
+
uuid: string;
|
|
47
|
+
url: string;
|
|
48
|
+
name: string;
|
|
49
|
+
mimeType: string;
|
|
50
|
+
type: string;
|
|
51
|
+
size: number;
|
|
52
|
+
extension: string;
|
|
53
|
+
} | null;
|
|
17
54
|
userId: string | null;
|
|
18
55
|
unregisteredUserId: string | null;
|
|
19
56
|
userInput: string;
|
|
20
57
|
aiOutput: string | null;
|
|
21
58
|
aiTokenUsage: number | null;
|
|
59
|
+
wordsChanged: number | null;
|
|
60
|
+
lettersChanged: number | null;
|
|
61
|
+
editOperations: number | null;
|
|
22
62
|
price: number;
|
|
23
63
|
status: import("../..").JOB_STATUS;
|
|
24
64
|
title: string;
|
|
@@ -32,11 +72,39 @@ export declare namespace SpellCorrectorCommand {
|
|
|
32
72
|
completedAt: Date | null;
|
|
33
73
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
34
74
|
uuid: string;
|
|
75
|
+
requestId: string | null;
|
|
76
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
77
|
+
sourceDocument: {
|
|
78
|
+
uuid: string;
|
|
79
|
+
url: string;
|
|
80
|
+
name: string;
|
|
81
|
+
mimeType: string;
|
|
82
|
+
type: string;
|
|
83
|
+
size: number;
|
|
84
|
+
extension: string;
|
|
85
|
+
} | null;
|
|
86
|
+
statistics: {
|
|
87
|
+
total: number;
|
|
88
|
+
spelling: number;
|
|
89
|
+
punctuation: number;
|
|
90
|
+
} | null;
|
|
91
|
+
outputDocument: {
|
|
92
|
+
uuid: string;
|
|
93
|
+
url: string;
|
|
94
|
+
name: string;
|
|
95
|
+
mimeType: string;
|
|
96
|
+
type: string;
|
|
97
|
+
size: number;
|
|
98
|
+
extension: string;
|
|
99
|
+
} | null;
|
|
35
100
|
userId: string | null;
|
|
36
101
|
unregisteredUserId: string | null;
|
|
37
102
|
userInput: string;
|
|
38
103
|
aiOutput: string | null;
|
|
39
104
|
aiTokenUsage: number | null;
|
|
105
|
+
wordsChanged: number | null;
|
|
106
|
+
lettersChanged: number | null;
|
|
107
|
+
editOperations: number | null;
|
|
40
108
|
price: number;
|
|
41
109
|
status: import("../..").JOB_STATUS;
|
|
42
110
|
title: string;
|
|
@@ -6,14 +6,21 @@ const command_response_schema_1 = require("../../common/models/command-response.
|
|
|
6
6
|
const models_1 = require("../models");
|
|
7
7
|
var SpellCorrectorCommand;
|
|
8
8
|
(function (SpellCorrectorCommand) {
|
|
9
|
-
SpellCorrectorCommand.RequestSchema = zod_1.z
|
|
9
|
+
SpellCorrectorCommand.RequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
10
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
-
|
|
13
|
+
requestId: zod_1.z.string().uuid(),
|
|
14
|
+
prompt: zod_1.z.string().optional(),
|
|
15
|
+
document: models_1.SpellCorrectorDocumentInputSchema.optional(),
|
|
13
16
|
modelId: zod_1.z.string().uuid(),
|
|
14
17
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
15
18
|
precalculatedPrice: zod_1.z.number(),
|
|
19
|
+
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
16
20
|
mock: zod_1.z.boolean().optional(),
|
|
21
|
+
})
|
|
22
|
+
.refine((request) => (request.prompt !== undefined) !== (request.document !== undefined), {
|
|
23
|
+
message: 'Требуется ровно один из prompt или document',
|
|
17
24
|
});
|
|
18
25
|
SpellCorrectorCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.SpellCorrectorJobSchema);
|
|
19
26
|
})(SpellCorrectorCommand || (exports.SpellCorrectorCommand = SpellCorrectorCommand = {}));
|
|
@@ -11,11 +11,39 @@ export declare namespace UpdateSpellCorrectorJobFavoriteCommand {
|
|
|
11
11
|
isSuccess: z.ZodBoolean;
|
|
12
12
|
data: z.ZodOptional<z.ZodType<{
|
|
13
13
|
uuid: string;
|
|
14
|
+
requestId: string | null;
|
|
15
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
16
|
+
sourceDocument: {
|
|
17
|
+
uuid: string;
|
|
18
|
+
url: string;
|
|
19
|
+
name: string;
|
|
20
|
+
mimeType: string;
|
|
21
|
+
type: string;
|
|
22
|
+
size: number;
|
|
23
|
+
extension: string;
|
|
24
|
+
} | null;
|
|
25
|
+
statistics: {
|
|
26
|
+
total: number;
|
|
27
|
+
spelling: number;
|
|
28
|
+
punctuation: number;
|
|
29
|
+
} | null;
|
|
30
|
+
outputDocument: {
|
|
31
|
+
uuid: string;
|
|
32
|
+
url: string;
|
|
33
|
+
name: string;
|
|
34
|
+
mimeType: string;
|
|
35
|
+
type: string;
|
|
36
|
+
size: number;
|
|
37
|
+
extension: string;
|
|
38
|
+
} | null;
|
|
14
39
|
userId: string | null;
|
|
15
40
|
unregisteredUserId: string | null;
|
|
16
41
|
userInput: string;
|
|
17
42
|
aiOutput: string | null;
|
|
18
43
|
aiTokenUsage: number | null;
|
|
44
|
+
wordsChanged: number | null;
|
|
45
|
+
lettersChanged: number | null;
|
|
46
|
+
editOperations: number | null;
|
|
19
47
|
price: number;
|
|
20
48
|
status: import("../..").JOB_STATUS;
|
|
21
49
|
title: string;
|
|
@@ -29,11 +57,39 @@ export declare namespace UpdateSpellCorrectorJobFavoriteCommand {
|
|
|
29
57
|
completedAt: Date | null;
|
|
30
58
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
31
59
|
uuid: string;
|
|
60
|
+
requestId: string | null;
|
|
61
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
62
|
+
sourceDocument: {
|
|
63
|
+
uuid: string;
|
|
64
|
+
url: string;
|
|
65
|
+
name: string;
|
|
66
|
+
mimeType: string;
|
|
67
|
+
type: string;
|
|
68
|
+
size: number;
|
|
69
|
+
extension: string;
|
|
70
|
+
} | null;
|
|
71
|
+
statistics: {
|
|
72
|
+
total: number;
|
|
73
|
+
spelling: number;
|
|
74
|
+
punctuation: number;
|
|
75
|
+
} | null;
|
|
76
|
+
outputDocument: {
|
|
77
|
+
uuid: string;
|
|
78
|
+
url: string;
|
|
79
|
+
name: string;
|
|
80
|
+
mimeType: string;
|
|
81
|
+
type: string;
|
|
82
|
+
size: number;
|
|
83
|
+
extension: string;
|
|
84
|
+
} | null;
|
|
32
85
|
userId: string | null;
|
|
33
86
|
unregisteredUserId: string | null;
|
|
34
87
|
userInput: string;
|
|
35
88
|
aiOutput: string | null;
|
|
36
89
|
aiTokenUsage: number | null;
|
|
90
|
+
wordsChanged: number | null;
|
|
91
|
+
lettersChanged: number | null;
|
|
92
|
+
editOperations: number | null;
|
|
37
93
|
price: number;
|
|
38
94
|
status: import("../..").JOB_STATUS;
|
|
39
95
|
title: string;
|
|
@@ -11,11 +11,39 @@ export declare namespace UpdateSpellCorrectorJobTitleCommand {
|
|
|
11
11
|
isSuccess: z.ZodBoolean;
|
|
12
12
|
data: z.ZodOptional<z.ZodType<{
|
|
13
13
|
uuid: string;
|
|
14
|
+
requestId: string | null;
|
|
15
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
16
|
+
sourceDocument: {
|
|
17
|
+
uuid: string;
|
|
18
|
+
url: string;
|
|
19
|
+
name: string;
|
|
20
|
+
mimeType: string;
|
|
21
|
+
type: string;
|
|
22
|
+
size: number;
|
|
23
|
+
extension: string;
|
|
24
|
+
} | null;
|
|
25
|
+
statistics: {
|
|
26
|
+
total: number;
|
|
27
|
+
spelling: number;
|
|
28
|
+
punctuation: number;
|
|
29
|
+
} | null;
|
|
30
|
+
outputDocument: {
|
|
31
|
+
uuid: string;
|
|
32
|
+
url: string;
|
|
33
|
+
name: string;
|
|
34
|
+
mimeType: string;
|
|
35
|
+
type: string;
|
|
36
|
+
size: number;
|
|
37
|
+
extension: string;
|
|
38
|
+
} | null;
|
|
14
39
|
userId: string | null;
|
|
15
40
|
unregisteredUserId: string | null;
|
|
16
41
|
userInput: string;
|
|
17
42
|
aiOutput: string | null;
|
|
18
43
|
aiTokenUsage: number | null;
|
|
44
|
+
wordsChanged: number | null;
|
|
45
|
+
lettersChanged: number | null;
|
|
46
|
+
editOperations: number | null;
|
|
19
47
|
price: number;
|
|
20
48
|
status: import("../..").JOB_STATUS;
|
|
21
49
|
title: string;
|
|
@@ -29,11 +57,39 @@ export declare namespace UpdateSpellCorrectorJobTitleCommand {
|
|
|
29
57
|
completedAt: Date | null;
|
|
30
58
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
31
59
|
uuid: string;
|
|
60
|
+
requestId: string | null;
|
|
61
|
+
inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
|
|
62
|
+
sourceDocument: {
|
|
63
|
+
uuid: string;
|
|
64
|
+
url: string;
|
|
65
|
+
name: string;
|
|
66
|
+
mimeType: string;
|
|
67
|
+
type: string;
|
|
68
|
+
size: number;
|
|
69
|
+
extension: string;
|
|
70
|
+
} | null;
|
|
71
|
+
statistics: {
|
|
72
|
+
total: number;
|
|
73
|
+
spelling: number;
|
|
74
|
+
punctuation: number;
|
|
75
|
+
} | null;
|
|
76
|
+
outputDocument: {
|
|
77
|
+
uuid: string;
|
|
78
|
+
url: string;
|
|
79
|
+
name: string;
|
|
80
|
+
mimeType: string;
|
|
81
|
+
type: string;
|
|
82
|
+
size: number;
|
|
83
|
+
extension: string;
|
|
84
|
+
} | null;
|
|
32
85
|
userId: string | null;
|
|
33
86
|
unregisteredUserId: string | null;
|
|
34
87
|
userInput: string;
|
|
35
88
|
aiOutput: string | null;
|
|
36
89
|
aiTokenUsage: number | null;
|
|
90
|
+
wordsChanged: number | null;
|
|
91
|
+
lettersChanged: number | null;
|
|
92
|
+
editOperations: number | null;
|
|
37
93
|
price: number;
|
|
38
94
|
status: import("../..").JOB_STATUS;
|
|
39
95
|
title: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './spell-corrector-errors.constant';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./spell-corrector-errors.constant"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const SPELL_CORRECTOR_ERRORS: {
|
|
2
|
+
readonly EMPTY_CONTENT: {
|
|
3
|
+
readonly code: 'SPELL_CORRECTOR.EMPTY_CONTENT';
|
|
4
|
+
readonly httpCode: 400;
|
|
5
|
+
readonly message: 'Содержимое для исправления не должно быть пустым';
|
|
6
|
+
};
|
|
7
|
+
readonly FREE_LIMIT_EXCEEDED: {
|
|
8
|
+
readonly code: 'SPELL_CORRECTOR.FREE_LIMIT_EXCEEDED';
|
|
9
|
+
readonly httpCode: 400;
|
|
10
|
+
readonly message: 'Без платного доступа можно проверить не более 10000 символов';
|
|
11
|
+
};
|
|
12
|
+
readonly MAX_LIMIT_EXCEEDED: {
|
|
13
|
+
readonly code: 'SPELL_CORRECTOR.MAX_LIMIT_EXCEEDED';
|
|
14
|
+
readonly httpCode: 400;
|
|
15
|
+
readonly message: 'Можно проверить не более 100000 символов';
|
|
16
|
+
};
|
|
17
|
+
readonly DOCUMENT_ACCESS_REQUIRED: {
|
|
18
|
+
readonly code: 'SPELL_CORRECTOR.DOCUMENT_ACCESS_REQUIRED';
|
|
19
|
+
readonly httpCode: 403;
|
|
20
|
+
readonly message: 'Проверка документа доступна только при подтвержденном платном доступе';
|
|
21
|
+
};
|
|
22
|
+
readonly DOCUMENT_SOURCE_REQUIRED: {
|
|
23
|
+
readonly code: 'SPELL_CORRECTOR.DOCUMENT_SOURCE_REQUIRED';
|
|
24
|
+
readonly httpCode: 400;
|
|
25
|
+
readonly message: 'Для повторной проверки требуется актуальный подготовленный документ';
|
|
26
|
+
};
|
|
27
|
+
readonly DOCUMENT_SOURCE_MISMATCH: {
|
|
28
|
+
readonly code: 'SPELL_CORRECTOR.DOCUMENT_SOURCE_MISMATCH';
|
|
29
|
+
readonly httpCode: 400;
|
|
30
|
+
readonly message: 'Подготовленный документ не соответствует исходному документу задания';
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SPELL_CORRECTOR_ERRORS = void 0;
|
|
4
|
+
exports.SPELL_CORRECTOR_ERRORS = {
|
|
5
|
+
EMPTY_CONTENT: {
|
|
6
|
+
code: 'SPELL_CORRECTOR.EMPTY_CONTENT',
|
|
7
|
+
httpCode: 400,
|
|
8
|
+
message: 'Содержимое для исправления не должно быть пустым',
|
|
9
|
+
},
|
|
10
|
+
FREE_LIMIT_EXCEEDED: {
|
|
11
|
+
code: 'SPELL_CORRECTOR.FREE_LIMIT_EXCEEDED',
|
|
12
|
+
httpCode: 400,
|
|
13
|
+
message: 'Без платного доступа можно проверить не более 10000 символов',
|
|
14
|
+
},
|
|
15
|
+
MAX_LIMIT_EXCEEDED: {
|
|
16
|
+
code: 'SPELL_CORRECTOR.MAX_LIMIT_EXCEEDED',
|
|
17
|
+
httpCode: 400,
|
|
18
|
+
message: 'Можно проверить не более 100000 символов',
|
|
19
|
+
},
|
|
20
|
+
DOCUMENT_ACCESS_REQUIRED: {
|
|
21
|
+
code: 'SPELL_CORRECTOR.DOCUMENT_ACCESS_REQUIRED',
|
|
22
|
+
httpCode: 403,
|
|
23
|
+
message: 'Проверка документа доступна только при подтвержденном платном доступе',
|
|
24
|
+
},
|
|
25
|
+
DOCUMENT_SOURCE_REQUIRED: {
|
|
26
|
+
code: 'SPELL_CORRECTOR.DOCUMENT_SOURCE_REQUIRED',
|
|
27
|
+
httpCode: 400,
|
|
28
|
+
message: 'Для повторной проверки требуется актуальный подготовленный документ',
|
|
29
|
+
},
|
|
30
|
+
DOCUMENT_SOURCE_MISMATCH: {
|
|
31
|
+
code: 'SPELL_CORRECTOR.DOCUMENT_SOURCE_MISMATCH',
|
|
32
|
+
httpCode: 400,
|
|
33
|
+
message: 'Подготовленный документ не соответствует исходному документу задания',
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './spell-corrector-input-kind.enum';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./spell-corrector-input-kind.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SPELL_CORRECTOR_INPUT_KIND = void 0;
|
|
4
|
+
var SPELL_CORRECTOR_INPUT_KIND;
|
|
5
|
+
(function (SPELL_CORRECTOR_INPUT_KIND) {
|
|
6
|
+
SPELL_CORRECTOR_INPUT_KIND["TEXT"] = "text";
|
|
7
|
+
SPELL_CORRECTOR_INPUT_KIND["DOCUMENT"] = "document";
|
|
8
|
+
})(SPELL_CORRECTOR_INPUT_KIND || (exports.SPELL_CORRECTOR_INPUT_KIND = SPELL_CORRECTOR_INPUT_KIND = {}));
|
|
@@ -18,3 +18,5 @@ __exportStar(require("./routes"), exports);
|
|
|
18
18
|
__exportStar(require("./commands"), exports);
|
|
19
19
|
__exportStar(require("./models"), exports);
|
|
20
20
|
__exportStar(require("./queries"), exports);
|
|
21
|
+
__exportStar(require("./constants"), exports);
|
|
22
|
+
__exportStar(require("./enums"), exports);
|
|
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./spell-corrector-model.schema"), exports);
|
|
18
18
|
__exportStar(require("./spell-corrector-job.schema"), exports);
|
|
19
19
|
__exportStar(require("./spell-corrector-tool-config.schema"), exports);
|
|
20
|
+
__exportStar(require("./spell-corrector-document.schema"), exports);
|
|
21
|
+
__exportStar(require("./spell-corrector-correction-statistics.schema"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SpellCorrectorCorrectionStatisticsSchema: z.ZodObject<{
|
|
3
|
+
total: z.ZodNumber;
|
|
4
|
+
spelling: z.ZodNumber;
|
|
5
|
+
punctuation: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type SpellCorrectorCorrectionStatistics = z.infer<typeof SpellCorrectorCorrectionStatisticsSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpellCorrectorCorrectionStatisticsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.SpellCorrectorCorrectionStatisticsSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
8
|
+
spelling: zod_1.z.number().int().nonnegative(),
|
|
9
|
+
punctuation: zod_1.z.number().int().nonnegative(),
|
|
10
|
+
})
|
|
11
|
+
.refine((statistics) => statistics.total === statistics.spelling + statistics.punctuation, {
|
|
12
|
+
message: 'total must equal spelling + punctuation',
|
|
13
|
+
});
|
|
@@ -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>;
|
|
@@ -813,6 +813,10 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
813
813
|
}, z.core.$strip>;
|
|
814
814
|
}, z.core.$strip>;
|
|
815
815
|
price: z.ZodNumber;
|
|
816
|
+
inputPrice: z.ZodNullable<z.ZodNumber>;
|
|
817
|
+
outputPrice: z.ZodNullable<z.ZodNumber>;
|
|
818
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
819
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
816
820
|
aiModel: z.ZodString;
|
|
817
821
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
818
822
|
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
|
|
@@ -821,6 +825,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
821
825
|
updatedAt: z.ZodDate;
|
|
822
826
|
}, z.core.$strip>>;
|
|
823
827
|
maxSymbols: z.ZodNumber;
|
|
828
|
+
freeMaxSymbols: z.ZodNumber;
|
|
824
829
|
}, z.core.$strip>;
|
|
825
830
|
DIAGRAMS: z.ZodObject<{
|
|
826
831
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -981,6 +981,10 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
981
981
|
}, z.core.$strip>;
|
|
982
982
|
}, z.core.$strip>;
|
|
983
983
|
price: z.ZodNumber;
|
|
984
|
+
inputPrice: z.ZodNullable<z.ZodNumber>;
|
|
985
|
+
outputPrice: z.ZodNullable<z.ZodNumber>;
|
|
986
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
987
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
984
988
|
aiModel: z.ZodString;
|
|
985
989
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
986
990
|
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
|
|
@@ -989,6 +993,7 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
989
993
|
updatedAt: z.ZodDate;
|
|
990
994
|
}, z.core.$strip>>;
|
|
991
995
|
maxSymbols: z.ZodNumber;
|
|
996
|
+
freeMaxSymbols: z.ZodNumber;
|
|
992
997
|
}, z.core.$strip>;
|
|
993
998
|
}, z.core.$strip>, z.ZodObject<{
|
|
994
999
|
uuid: z.ZodString;
|
|
@@ -2186,6 +2191,10 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
2186
2191
|
}, z.core.$strip>;
|
|
2187
2192
|
}, z.core.$strip>;
|
|
2188
2193
|
price: z.ZodNumber;
|
|
2194
|
+
inputPrice: z.ZodNullable<z.ZodNumber>;
|
|
2195
|
+
outputPrice: z.ZodNullable<z.ZodNumber>;
|
|
2196
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
2197
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
2189
2198
|
aiModel: z.ZodString;
|
|
2190
2199
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
2191
2200
|
reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
|
|
@@ -2194,6 +2203,7 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
|
2194
2203
|
updatedAt: z.ZodDate;
|
|
2195
2204
|
}, z.core.$strip>>;
|
|
2196
2205
|
maxSymbols: z.ZodNumber;
|
|
2206
|
+
freeMaxSymbols: z.ZodNumber;
|
|
2197
2207
|
}, z.core.$strip>;
|
|
2198
2208
|
}, z.core.$strip>, z.ZodObject<{
|
|
2199
2209
|
uuid: z.ZodString;
|
|
@@ -820,6 +820,10 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
820
820
|
};
|
|
821
821
|
};
|
|
822
822
|
price: number;
|
|
823
|
+
inputPrice: number | null;
|
|
824
|
+
outputPrice: number | null;
|
|
825
|
+
freeMaxPromptLength: number | null;
|
|
826
|
+
maxPromptLength: number | null;
|
|
823
827
|
aiModel: string;
|
|
824
828
|
status: import("../..").TOOL_MODEL_STATUS;
|
|
825
829
|
reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
|
|
@@ -828,6 +832,7 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
828
832
|
updatedAt: Date;
|
|
829
833
|
}[];
|
|
830
834
|
maxSymbols: number;
|
|
835
|
+
freeMaxSymbols: number;
|
|
831
836
|
};
|
|
832
837
|
DIAGRAMS: {
|
|
833
838
|
models: {
|
|
@@ -1808,6 +1813,10 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
1808
1813
|
};
|
|
1809
1814
|
};
|
|
1810
1815
|
price: number;
|
|
1816
|
+
inputPrice: number | null;
|
|
1817
|
+
outputPrice: number | null;
|
|
1818
|
+
freeMaxPromptLength: number | null;
|
|
1819
|
+
maxPromptLength: number | null;
|
|
1811
1820
|
aiModel: string;
|
|
1812
1821
|
status: import("../..").TOOL_MODEL_STATUS;
|
|
1813
1822
|
reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
|
|
@@ -1816,6 +1825,7 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
1816
1825
|
updatedAt: Date;
|
|
1817
1826
|
}[];
|
|
1818
1827
|
maxSymbols: number;
|
|
1828
|
+
freeMaxSymbols: number;
|
|
1819
1829
|
};
|
|
1820
1830
|
DIAGRAMS: {
|
|
1821
1831
|
models: {
|
|
@@ -987,6 +987,10 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
987
987
|
};
|
|
988
988
|
};
|
|
989
989
|
price: number;
|
|
990
|
+
inputPrice: number | null;
|
|
991
|
+
outputPrice: number | null;
|
|
992
|
+
freeMaxPromptLength: number | null;
|
|
993
|
+
maxPromptLength: number | null;
|
|
990
994
|
aiModel: string;
|
|
991
995
|
status: import("../..").TOOL_MODEL_STATUS;
|
|
992
996
|
reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
|
|
@@ -995,6 +999,7 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
995
999
|
updatedAt: Date;
|
|
996
1000
|
}[];
|
|
997
1001
|
maxSymbols: number;
|
|
1002
|
+
freeMaxSymbols: number;
|
|
998
1003
|
};
|
|
999
1004
|
} | {
|
|
1000
1005
|
uuid: string;
|
|
@@ -2190,6 +2195,10 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
2190
2195
|
};
|
|
2191
2196
|
};
|
|
2192
2197
|
price: number;
|
|
2198
|
+
inputPrice: number | null;
|
|
2199
|
+
outputPrice: number | null;
|
|
2200
|
+
freeMaxPromptLength: number | null;
|
|
2201
|
+
maxPromptLength: number | null;
|
|
2193
2202
|
aiModel: string;
|
|
2194
2203
|
status: import("../..").TOOL_MODEL_STATUS;
|
|
2195
2204
|
reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
|
|
@@ -2198,6 +2207,7 @@ export declare namespace GetToolsWithConfigsQuery {
|
|
|
2198
2207
|
updatedAt: Date;
|
|
2199
2208
|
}[];
|
|
2200
2209
|
maxSymbols: number;
|
|
2210
|
+
freeMaxSymbols: number;
|
|
2201
2211
|
};
|
|
2202
2212
|
} | {
|
|
2203
2213
|
uuid: string;
|