@purpleschool/gptbot-tools 0.2.69 → 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.
Files changed (67) hide show
  1. package/build/music/commands/add-track-to-music-playlist.command.d.ts +199 -41
  2. package/build/music/commands/add-track-to-music-playlist.command.js +1 -1
  3. package/build/music/commands/create-music-playlist.command.d.ts +198 -40
  4. package/build/music/commands/edit-music.command.d.ts +12 -0
  5. package/build/music/commands/generate-music.command.d.ts +18 -2
  6. package/build/music/commands/generate-music.command.js +1 -1
  7. package/build/music/commands/get-music-price.command.d.ts +2 -0
  8. package/build/music/commands/get-music-price.command.js +2 -0
  9. package/build/music/commands/remove-track-from-music-playlist.command.d.ts +199 -41
  10. package/build/music/commands/remove-track-from-music-playlist.command.js +1 -1
  11. package/build/music/commands/retry-music-job.command.d.ts +12 -0
  12. package/build/music/commands/set-reaction-to-music-job.command.d.ts +12 -0
  13. package/build/music/commands/update-music-job-favorite.command.d.ts +12 -0
  14. package/build/music/commands/update-music-job-title.command.d.ts +12 -0
  15. package/build/music/commands/update-music-playlist.command.d.ts +198 -40
  16. package/build/music/commands/update-published-status-music-jobs.command.d.ts +12 -0
  17. package/build/music/enums/music-action-type.enum.d.ts +0 -2
  18. package/build/music/enums/music-action-type.enum.js +0 -2
  19. package/build/music/enums/music-audio-action-type.enum.d.ts +0 -2
  20. package/build/music/enums/music-audio-action-type.enum.js +0 -2
  21. package/build/music/models/music-job.schema.d.ts +10 -0
  22. package/build/music/models/music-job.schema.js +14 -15
  23. package/build/music/models/music-playlist.schema.d.ts +99 -20
  24. package/build/music/models/music-playlist.schema.js +3 -3
  25. package/build/music/queries/find-music-job-by-id.query.d.ts +12 -0
  26. package/build/music/queries/find-music-jobs.query.d.ts +12 -0
  27. package/build/music/queries/find-music-playlists.query.d.ts +227 -56
  28. package/build/music/queries/find-music-playlists.query.js +9 -1
  29. package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
  30. package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
  31. package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
  32. package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
  33. package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
  34. package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
  35. package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
  36. package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
  37. package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
  38. package/build/spell-corrector/constants/index.d.ts +1 -0
  39. package/build/spell-corrector/constants/index.js +17 -0
  40. package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
  41. package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
  42. package/build/spell-corrector/enums/index.d.ts +1 -0
  43. package/build/spell-corrector/enums/index.js +17 -0
  44. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
  45. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
  46. package/build/spell-corrector/index.d.ts +2 -0
  47. package/build/spell-corrector/index.js +2 -0
  48. package/build/spell-corrector/models/index.d.ts +2 -0
  49. package/build/spell-corrector/models/index.js +2 -0
  50. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
  51. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
  52. package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
  53. package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
  54. package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
  55. package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
  56. package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
  57. package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
  58. package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
  59. package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
  60. package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
  61. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
  62. package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
  63. package/build/tools/models/global-tools-config.schema.d.ts +5 -0
  64. package/build/tools/models/tools-with-configs.schema.d.ts +10 -0
  65. package/build/tools/queries/get-global-tools-config.query.d.ts +10 -0
  66. package/build/tools/queries/get-tools-with-configs.query.d.ts +10 -0
  67. package/package.json +1 -1
@@ -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.object({
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
- prompt: zod_1.z.string(),
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,4 @@
1
+ export declare enum SPELL_CORRECTOR_INPUT_KIND {
2
+ TEXT = "text",
3
+ DOCUMENT = "document"
4
+ }
@@ -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 = {}));
@@ -2,3 +2,5 @@ export * from './routes';
2
2
  export * from './commands';
3
3
  export * from './models';
4
4
  export * from './queries';
5
+ export * from './constants';
6
+ export * from './enums';
@@ -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);
@@ -1,3 +1,5 @@
1
1
  export * from './spell-corrector-model.schema';
2
2
  export * from './spell-corrector-job.schema';
3
3
  export * from './spell-corrector-tool-config.schema';
4
+ export * from './spell-corrector-document.schema';
5
+ export * from './spell-corrector-correction-statistics.schema';
@@ -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;