@purpleschool/gptbot-tools 0.2.78-stage-2 → 0.2.79-stage-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/paraphrase/commands/get-paraphrase-price.command.d.ts +19 -3
  2. package/build/paraphrase/commands/get-paraphrase-price.command.js +9 -1
  3. package/build/paraphrase/commands/paraphrase.command.d.ts +53 -2
  4. package/build/paraphrase/commands/paraphrase.command.js +12 -4
  5. package/build/paraphrase/commands/retry-paraphrase-job.command.d.ts +51 -0
  6. package/build/paraphrase/commands/retry-paraphrase-job.command.js +3 -0
  7. package/build/paraphrase/commands/set-reaction-to-paraphrase-job.command.d.ts +40 -0
  8. package/build/paraphrase/commands/update-paraphrase-job-favorite.command.d.ts +40 -0
  9. package/build/paraphrase/commands/update-paraphrase-job-title.command.d.ts +40 -0
  10. package/build/paraphrase/enums/index.d.ts +1 -0
  11. package/build/paraphrase/enums/index.js +1 -0
  12. package/build/paraphrase/enums/paraphrase-input-kind.enum.d.ts +4 -0
  13. package/build/paraphrase/enums/paraphrase-input-kind.enum.js +8 -0
  14. package/build/paraphrase/models/index.d.ts +1 -0
  15. package/build/paraphrase/models/index.js +1 -0
  16. package/build/paraphrase/models/paraphrase-document.schema.d.ts +22 -0
  17. package/build/paraphrase/models/paraphrase-document.schema.js +16 -0
  18. package/build/paraphrase/models/paraphrase-job.schema.d.ts +21 -1
  19. package/build/paraphrase/models/paraphrase-job.schema.js +5 -0
  20. package/build/paraphrase/models/paraphrase-tool-config.schema.d.ts +4 -1
  21. package/build/paraphrase/models/paraphrase-tool-config.schema.js +0 -1
  22. package/build/paraphrase/models/paraphrase-type.schema.d.ts +4 -0
  23. package/build/paraphrase/models/paraphrase-type.schema.js +4 -0
  24. package/build/paraphrase/queries/find-paraphrase-job-by-uuid.query.d.ts +40 -0
  25. package/build/paraphrase/queries/find-paraphrase-jobs.query.d.ts +40 -0
  26. package/build/paraphrase/queries/get-paraphrase-tool-config.query.d.ts +8 -2
  27. package/build/spell-corrector/index.d.ts +0 -1
  28. package/build/spell-corrector/index.js +0 -1
  29. package/build/tools/models/global-tools-config.schema.d.ts +4 -1
  30. package/build/tools/models/tools-with-configs.schema.d.ts +8 -2
  31. package/build/tools/queries/get-global-tools-config.query.d.ts +8 -2
  32. package/build/tools/queries/get-tools-with-configs.query.d.ts +8 -2
  33. package/package.json +1 -1
  34. package/build/spell-corrector/constants/index.d.ts +0 -1
  35. package/build/spell-corrector/constants/index.js +0 -17
  36. package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +0 -32
  37. package/build/spell-corrector/constants/spell-corrector-errors.constant.js +0 -35
@@ -1,18 +1,34 @@
1
1
  import { z } from 'zod';
2
+ import { PARAPHRASING_INTENSITY } from '../enums';
2
3
  export declare namespace GetParaphrasePriceCommand {
3
4
  const RequestSchema: z.ZodObject<{
4
5
  typeId: z.ZodUUID;
6
+ styleId: z.ZodString;
7
+ intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
8
+ contentLength: z.ZodNumber;
5
9
  }, z.core.$strip>;
6
10
  type Request = z.infer<typeof RequestSchema>;
7
11
  const ResponseDataSchema: z.ZodObject<{
8
- price: z.ZodNumber;
12
+ modelPricing: z.ZodObject<{
13
+ inputPrice: z.ZodNumber;
14
+ outputPrice: z.ZodNumber;
15
+ }, z.core.$strip>;
16
+ effectivePromptLength: z.ZodNumber;
9
17
  }, z.core.$strip>;
10
18
  const ResponseSchema: z.ZodObject<{
11
19
  isSuccess: z.ZodBoolean;
12
20
  data: z.ZodOptional<z.ZodType<{
13
- price: number;
21
+ modelPricing: {
22
+ inputPrice: number;
23
+ outputPrice: number;
24
+ };
25
+ effectivePromptLength: number;
14
26
  }, unknown, z.core.$ZodTypeInternals<{
15
- price: number;
27
+ modelPricing: {
28
+ inputPrice: number;
29
+ outputPrice: number;
30
+ };
31
+ effectivePromptLength: number;
16
32
  }, unknown>>>;
17
33
  code: z.ZodOptional<z.ZodString>;
18
34
  message: z.ZodOptional<z.ZodString>;
@@ -3,13 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetParaphrasePriceCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const enums_1 = require("../enums");
6
7
  var GetParaphrasePriceCommand;
7
8
  (function (GetParaphrasePriceCommand) {
8
9
  GetParaphrasePriceCommand.RequestSchema = zod_1.z.object({
9
10
  typeId: zod_1.z.uuid(),
11
+ styleId: zod_1.z.string().uuid(),
12
+ intensity: zod_1.z.nativeEnum(enums_1.PARAPHRASING_INTENSITY),
13
+ contentLength: zod_1.z.number().int().nonnegative(),
10
14
  });
11
15
  GetParaphrasePriceCommand.ResponseDataSchema = zod_1.z.object({
12
- price: zod_1.z.number(),
16
+ modelPricing: zod_1.z.object({
17
+ inputPrice: zod_1.z.number(),
18
+ outputPrice: zod_1.z.number(),
19
+ }),
20
+ effectivePromptLength: zod_1.z.number(),
13
21
  });
14
22
  GetParaphrasePriceCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(GetParaphrasePriceCommand.ResponseDataSchema);
15
23
  })(GetParaphrasePriceCommand || (exports.GetParaphrasePriceCommand = GetParaphrasePriceCommand = {}));
@@ -4,13 +4,24 @@ export declare namespace ParaphraseCommand {
4
4
  const RequestSchema: z.ZodObject<{
5
5
  userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
6
6
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
7
- prompt: 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>>;
8
18
  typeId: z.ZodUUID;
9
19
  styleId: z.ZodUUID;
10
20
  intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
11
- tokenReservationId: z.ZodUUID;
21
+ tokenReservationId: z.ZodString;
12
22
  precalculatedPrice: z.ZodNumber;
13
23
  mock: z.ZodOptional<z.ZodBoolean>;
24
+ userHasActiveSubscriptionOrProduct: z.ZodBoolean;
14
25
  }, z.core.$strip>;
15
26
  type Request = z.infer<typeof RequestSchema>;
16
27
  const ResponseSchema: z.ZodObject<{
@@ -35,6 +46,26 @@ export declare namespace ParaphraseCommand {
35
46
  createdAt: Date;
36
47
  updatedAt: Date;
37
48
  completedAt: Date | null;
49
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
50
+ sourceDocument: {
51
+ uuid: string;
52
+ url: string;
53
+ name: string;
54
+ mimeType: string;
55
+ type: string;
56
+ size: number;
57
+ extension: string;
58
+ } | null;
59
+ outputDocument: {
60
+ uuid: string;
61
+ url: string;
62
+ name: string;
63
+ mimeType: string;
64
+ type: string;
65
+ size: number;
66
+ extension: string;
67
+ } | null;
68
+ uniquenessPercentage: number | null;
38
69
  }, unknown, z.core.$ZodTypeInternals<{
39
70
  uuid: string;
40
71
  userId: string | null;
@@ -55,6 +86,26 @@ export declare namespace ParaphraseCommand {
55
86
  createdAt: Date;
56
87
  updatedAt: Date;
57
88
  completedAt: Date | null;
89
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
90
+ sourceDocument: {
91
+ uuid: string;
92
+ url: string;
93
+ name: string;
94
+ mimeType: string;
95
+ type: string;
96
+ size: number;
97
+ extension: string;
98
+ } | null;
99
+ outputDocument: {
100
+ uuid: string;
101
+ url: string;
102
+ name: string;
103
+ mimeType: string;
104
+ type: string;
105
+ size: number;
106
+ extension: string;
107
+ } | null;
108
+ uniquenessPercentage: number | null;
58
109
  }, unknown>>>;
59
110
  code: z.ZodOptional<z.ZodString>;
60
111
  message: z.ZodOptional<z.ZodString>;
@@ -5,18 +5,26 @@ const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
6
  const paraphrase_job_schema_1 = require("../models/paraphrase-job.schema");
7
7
  const enums_1 = require("../enums");
8
+ const paraphrase_document_schema_1 = require("../models/paraphrase-document.schema");
8
9
  var ParaphraseCommand;
9
10
  (function (ParaphraseCommand) {
10
- ParaphraseCommand.RequestSchema = zod_1.z.object({
11
+ ParaphraseCommand.RequestSchema = zod_1.z
12
+ .object({
11
13
  userId: zod_1.z.uuid().nullable().optional(),
12
14
  unregisteredUserId: zod_1.z.uuid().nullable().optional(),
13
- prompt: zod_1.z.string(),
15
+ prompt: zod_1.z.string().optional(),
16
+ document: paraphrase_document_schema_1.ParaphraseDocumentInputSchema.optional(),
14
17
  typeId: zod_1.z.uuid(),
15
18
  styleId: zod_1.z.uuid(),
16
- intensity: zod_1.z.enum(enums_1.PARAPHRASING_INTENSITY),
17
- tokenReservationId: zod_1.z.uuid(),
19
+ intensity: zod_1.z.nativeEnum(enums_1.PARAPHRASING_INTENSITY),
20
+ tokenReservationId: zod_1.z.string().uuid(),
18
21
  precalculatedPrice: zod_1.z.number(),
19
22
  mock: zod_1.z.boolean().optional(),
23
+ userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
24
+ })
25
+ .refine((data) => (data.prompt !== undefined) !== (data.document !== undefined), {
26
+ message: 'Exactly one of prompt or document must be provided',
27
+ path: ['prompt', 'document'],
20
28
  });
21
29
  ParaphraseCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(paraphrase_job_schema_1.ParaphraseJobSchema);
22
30
  })(ParaphraseCommand || (exports.ParaphraseCommand = ParaphraseCommand = {}));
@@ -7,6 +7,17 @@ export declare namespace RetryParaphraseJobCommand {
7
7
  tokenReservationId: z.ZodUUID;
8
8
  precalculatedPrice: z.ZodNumber;
9
9
  mock: z.ZodOptional<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>>;
20
+ userHasActiveSubscriptionOrProduct: z.ZodBoolean;
10
21
  }, z.core.$strip>;
11
22
  type Request = z.infer<typeof RequestSchema>;
12
23
  const ResponseSchema: z.ZodObject<{
@@ -31,6 +42,26 @@ export declare namespace RetryParaphraseJobCommand {
31
42
  createdAt: Date;
32
43
  updatedAt: Date;
33
44
  completedAt: Date | null;
45
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
46
+ sourceDocument: {
47
+ uuid: string;
48
+ url: string;
49
+ name: string;
50
+ mimeType: string;
51
+ type: string;
52
+ size: number;
53
+ extension: string;
54
+ } | null;
55
+ outputDocument: {
56
+ uuid: string;
57
+ url: string;
58
+ name: string;
59
+ mimeType: string;
60
+ type: string;
61
+ size: number;
62
+ extension: string;
63
+ } | null;
64
+ uniquenessPercentage: number | null;
34
65
  }, unknown, z.core.$ZodTypeInternals<{
35
66
  uuid: string;
36
67
  userId: string | null;
@@ -51,6 +82,26 @@ export declare namespace RetryParaphraseJobCommand {
51
82
  createdAt: Date;
52
83
  updatedAt: Date;
53
84
  completedAt: Date | null;
85
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
86
+ sourceDocument: {
87
+ uuid: string;
88
+ url: string;
89
+ name: string;
90
+ mimeType: string;
91
+ type: string;
92
+ size: number;
93
+ extension: string;
94
+ } | null;
95
+ outputDocument: {
96
+ uuid: string;
97
+ url: string;
98
+ name: string;
99
+ mimeType: string;
100
+ type: string;
101
+ size: number;
102
+ extension: string;
103
+ } | null;
104
+ uniquenessPercentage: number | null;
54
105
  }, unknown>>>;
55
106
  code: z.ZodOptional<z.ZodString>;
56
107
  message: z.ZodOptional<z.ZodString>;
@@ -4,6 +4,7 @@ exports.RetryParaphraseJobCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
6
  const paraphrase_job_schema_1 = require("../models/paraphrase-job.schema");
7
+ const paraphrase_document_schema_1 = require("../models/paraphrase-document.schema");
7
8
  var RetryParaphraseJobCommand;
8
9
  (function (RetryParaphraseJobCommand) {
9
10
  RetryParaphraseJobCommand.RequestSchema = zod_1.z.object({
@@ -13,6 +14,8 @@ var RetryParaphraseJobCommand;
13
14
  tokenReservationId: zod_1.z.uuid(),
14
15
  precalculatedPrice: zod_1.z.number(),
15
16
  mock: zod_1.z.boolean().optional(),
17
+ document: paraphrase_document_schema_1.ParaphraseDocumentInputSchema.optional(),
18
+ userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
16
19
  });
17
20
  RetryParaphraseJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(paraphrase_job_schema_1.ParaphraseJobSchema);
18
21
  })(RetryParaphraseJobCommand || (exports.RetryParaphraseJobCommand = RetryParaphraseJobCommand = {}));
@@ -31,6 +31,26 @@ export declare namespace SetReactionToParaphraseJobCommand {
31
31
  createdAt: Date;
32
32
  updatedAt: Date;
33
33
  completedAt: Date | null;
34
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
35
+ sourceDocument: {
36
+ uuid: string;
37
+ url: string;
38
+ name: string;
39
+ mimeType: string;
40
+ type: string;
41
+ size: number;
42
+ extension: string;
43
+ } | null;
44
+ outputDocument: {
45
+ uuid: string;
46
+ url: string;
47
+ name: string;
48
+ mimeType: string;
49
+ type: string;
50
+ size: number;
51
+ extension: string;
52
+ } | null;
53
+ uniquenessPercentage: number | null;
34
54
  }, unknown, z.core.$ZodTypeInternals<{
35
55
  uuid: string;
36
56
  userId: string | null;
@@ -51,6 +71,26 @@ export declare namespace SetReactionToParaphraseJobCommand {
51
71
  createdAt: Date;
52
72
  updatedAt: Date;
53
73
  completedAt: Date | null;
74
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
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
+ outputDocument: {
85
+ uuid: string;
86
+ url: string;
87
+ name: string;
88
+ mimeType: string;
89
+ type: string;
90
+ size: number;
91
+ extension: string;
92
+ } | null;
93
+ uniquenessPercentage: number | null;
54
94
  }, unknown>>>;
55
95
  code: z.ZodOptional<z.ZodString>;
56
96
  message: z.ZodOptional<z.ZodString>;
@@ -29,6 +29,26 @@ export declare namespace UpdateParaphraseJobFavoriteCommand {
29
29
  createdAt: Date;
30
30
  updatedAt: Date;
31
31
  completedAt: Date | null;
32
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
33
+ sourceDocument: {
34
+ uuid: string;
35
+ url: string;
36
+ name: string;
37
+ mimeType: string;
38
+ type: string;
39
+ size: number;
40
+ extension: string;
41
+ } | null;
42
+ outputDocument: {
43
+ uuid: string;
44
+ url: string;
45
+ name: string;
46
+ mimeType: string;
47
+ type: string;
48
+ size: number;
49
+ extension: string;
50
+ } | null;
51
+ uniquenessPercentage: number | null;
32
52
  }, unknown, z.core.$ZodTypeInternals<{
33
53
  uuid: string;
34
54
  userId: string | null;
@@ -49,6 +69,26 @@ export declare namespace UpdateParaphraseJobFavoriteCommand {
49
69
  createdAt: Date;
50
70
  updatedAt: Date;
51
71
  completedAt: Date | null;
72
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
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
+ outputDocument: {
83
+ uuid: string;
84
+ url: string;
85
+ name: string;
86
+ mimeType: string;
87
+ type: string;
88
+ size: number;
89
+ extension: string;
90
+ } | null;
91
+ uniquenessPercentage: number | null;
52
92
  }, unknown>>>;
53
93
  code: z.ZodOptional<z.ZodString>;
54
94
  message: z.ZodOptional<z.ZodString>;
@@ -29,6 +29,26 @@ export declare namespace UpdateParaphraseJobTitleCommand {
29
29
  createdAt: Date;
30
30
  updatedAt: Date;
31
31
  completedAt: Date | null;
32
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
33
+ sourceDocument: {
34
+ uuid: string;
35
+ url: string;
36
+ name: string;
37
+ mimeType: string;
38
+ type: string;
39
+ size: number;
40
+ extension: string;
41
+ } | null;
42
+ outputDocument: {
43
+ uuid: string;
44
+ url: string;
45
+ name: string;
46
+ mimeType: string;
47
+ type: string;
48
+ size: number;
49
+ extension: string;
50
+ } | null;
51
+ uniquenessPercentage: number | null;
32
52
  }, unknown, z.core.$ZodTypeInternals<{
33
53
  uuid: string;
34
54
  userId: string | null;
@@ -49,6 +69,26 @@ export declare namespace UpdateParaphraseJobTitleCommand {
49
69
  createdAt: Date;
50
70
  updatedAt: Date;
51
71
  completedAt: Date | null;
72
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
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
+ outputDocument: {
83
+ uuid: string;
84
+ url: string;
85
+ name: string;
86
+ mimeType: string;
87
+ type: string;
88
+ size: number;
89
+ extension: string;
90
+ } | null;
91
+ uniquenessPercentage: number | null;
52
92
  }, unknown>>>;
53
93
  code: z.ZodOptional<z.ZodString>;
54
94
  message: z.ZodOptional<z.ZodString>;
@@ -1 +1,2 @@
1
1
  export * from './paraphrasing-intesity.enum';
2
+ export * from './paraphrase-input-kind.enum';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./paraphrasing-intesity.enum"), exports);
18
+ __exportStar(require("./paraphrase-input-kind.enum"), exports);
@@ -0,0 +1,4 @@
1
+ export declare enum PARAPHRASE_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.PARAPHRASE_INPUT_KIND = void 0;
4
+ var PARAPHRASE_INPUT_KIND;
5
+ (function (PARAPHRASE_INPUT_KIND) {
6
+ PARAPHRASE_INPUT_KIND["TEXT"] = "text";
7
+ PARAPHRASE_INPUT_KIND["DOCUMENT"] = "document";
8
+ })(PARAPHRASE_INPUT_KIND || (exports.PARAPHRASE_INPUT_KIND = PARAPHRASE_INPUT_KIND = {}));
@@ -2,3 +2,4 @@ export * from './paraphrase-type.schema';
2
2
  export * from './paraphrase-style.schema';
3
3
  export * from './paraphrase-job.schema';
4
4
  export * from './paraphrase-tool-config.schema';
5
+ export * from './paraphrase-document.schema';
@@ -18,3 +18,4 @@ __exportStar(require("./paraphrase-type.schema"), exports);
18
18
  __exportStar(require("./paraphrase-style.schema"), exports);
19
19
  __exportStar(require("./paraphrase-job.schema"), exports);
20
20
  __exportStar(require("./paraphrase-tool-config.schema"), exports);
21
+ __exportStar(require("./paraphrase-document.schema"), exports);
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export declare const ParaphraseDocumentMetadataSchema: 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 ParaphraseDocumentInputSchema: 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 ParaphraseDocumentInput = z.infer<typeof ParaphraseDocumentInputSchema>;
22
+ export type ParaphraseDocumentMetadata = z.infer<typeof ParaphraseDocumentMetadataSchema>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParaphraseDocumentInputSchema = exports.ParaphraseDocumentMetadataSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ParaphraseDocumentMetadataSchema = 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.ParaphraseDocumentInputSchema = exports.ParaphraseDocumentMetadataSchema.extend({
15
+ content: zod_1.z.string(),
16
+ });
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { JOB_STATUS } from '../../tools';
3
3
  import { USER_REACTION } from '../../common';
4
- import { PARAPHRASING_INTENSITY } from '../enums';
4
+ import { PARAPHRASE_INPUT_KIND, PARAPHRASING_INTENSITY } from '../enums';
5
5
  export declare const ParaphraseJobSchema: z.ZodObject<{
6
6
  uuid: z.ZodString;
7
7
  userId: z.ZodNullable<z.ZodString>;
@@ -22,5 +22,25 @@ export declare const ParaphraseJobSchema: z.ZodObject<{
22
22
  createdAt: z.ZodDate;
23
23
  updatedAt: z.ZodDate;
24
24
  completedAt: z.ZodNullable<z.ZodDate>;
25
+ inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof PARAPHRASE_INPUT_KIND>>>;
26
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
27
+ uuid: z.ZodString;
28
+ url: z.ZodString;
29
+ name: z.ZodString;
30
+ mimeType: z.ZodString;
31
+ type: z.ZodString;
32
+ size: z.ZodNumber;
33
+ extension: z.ZodString;
34
+ }, z.core.$strip>>>;
35
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
36
+ uuid: z.ZodString;
37
+ url: z.ZodString;
38
+ name: z.ZodString;
39
+ mimeType: z.ZodString;
40
+ type: z.ZodString;
41
+ size: z.ZodNumber;
42
+ extension: z.ZodString;
43
+ }, z.core.$strip>>>;
44
+ uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
25
45
  }, z.core.$strip>;
26
46
  export type ParaphraseJob = z.infer<typeof ParaphraseJobSchema>;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const tools_1 = require("../../tools");
6
6
  const common_1 = require("../../common");
7
7
  const enums_1 = require("../enums");
8
+ const paraphrase_document_schema_1 = require("./paraphrase-document.schema");
8
9
  exports.ParaphraseJobSchema = zod_1.z.object({
9
10
  uuid: zod_1.z.string(),
10
11
  userId: zod_1.z.string().nullable(),
@@ -25,4 +26,8 @@ exports.ParaphraseJobSchema = zod_1.z.object({
25
26
  createdAt: zod_1.z.date(),
26
27
  updatedAt: zod_1.z.date(),
27
28
  completedAt: zod_1.z.date().nullable(),
29
+ inputKind: zod_1.z.nativeEnum(enums_1.PARAPHRASE_INPUT_KIND).nullable().default(null),
30
+ sourceDocument: paraphrase_document_schema_1.ParaphraseDocumentMetadataSchema.nullable().default(null),
31
+ outputDocument: paraphrase_document_schema_1.ParaphraseDocumentMetadataSchema.nullable().default(null),
32
+ uniquenessPercentage: zod_1.z.number().int().min(0).max(100).nullable().default(null),
28
33
  });
@@ -14,6 +14,10 @@ export declare const ParaphraseToolConfigSchema: z.ZodObject<{
14
14
  title: z.ZodString;
15
15
  icon: z.ZodString;
16
16
  price: z.ZodNumber;
17
+ inputPrice: z.ZodNullable<z.ZodNumber>;
18
+ outputPrice: z.ZodNullable<z.ZodNumber>;
19
+ freeMaxPromptLength: z.ZodNumber;
20
+ maxPromptLength: z.ZodNumber;
17
21
  aiModel: z.ZodString;
18
22
  status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
19
23
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
@@ -21,6 +25,5 @@ export declare const ParaphraseToolConfigSchema: z.ZodObject<{
21
25
  createdAt: z.ZodDate;
22
26
  updatedAt: z.ZodDate;
23
27
  }, z.core.$strip>>;
24
- maxSymbols: z.ZodNumber;
25
28
  }, z.core.$strip>;
26
29
  export type ParaphraseTool = z.infer<typeof ParaphraseToolConfigSchema>;
@@ -7,5 +7,4 @@ const paraphrase_type_schema_1 = require("./paraphrase-type.schema");
7
7
  exports.ParaphraseToolConfigSchema = zod_1.z.object({
8
8
  styles: zod_1.z.array(paraphrase_style_schema_1.ParaphraseStyleSchema),
9
9
  types: zod_1.z.array(paraphrase_type_schema_1.ParaphraseTypeSchema),
10
- maxSymbols: zod_1.z.number(),
11
10
  });
@@ -5,6 +5,10 @@ export declare const ParaphraseTypeSchema: z.ZodObject<{
5
5
  title: z.ZodString;
6
6
  icon: z.ZodString;
7
7
  price: z.ZodNumber;
8
+ inputPrice: z.ZodNullable<z.ZodNumber>;
9
+ outputPrice: z.ZodNullable<z.ZodNumber>;
10
+ freeMaxPromptLength: z.ZodNumber;
11
+ maxPromptLength: z.ZodNumber;
8
12
  aiModel: z.ZodString;
9
13
  status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
10
14
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof REASONING_EFFORT>>>;
@@ -8,6 +8,10 @@ exports.ParaphraseTypeSchema = zod_1.z.object({
8
8
  title: zod_1.z.string(),
9
9
  icon: zod_1.z.string(),
10
10
  price: zod_1.z.number(),
11
+ inputPrice: zod_1.z.number().nullable(),
12
+ outputPrice: zod_1.z.number().nullable(),
13
+ freeMaxPromptLength: zod_1.z.number(),
14
+ maxPromptLength: zod_1.z.number(),
11
15
  aiModel: zod_1.z.string(),
12
16
  status: zod_1.z.enum(common_1.TOOL_MODEL_STATUS),
13
17
  reasoningEffort: zod_1.z.enum(common_1.REASONING_EFFORT).nullable().optional(),
@@ -28,6 +28,26 @@ export declare namespace FindParaphraseJobByUuidQuery {
28
28
  createdAt: Date;
29
29
  updatedAt: Date;
30
30
  completedAt: Date | null;
31
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
32
+ sourceDocument: {
33
+ uuid: string;
34
+ url: string;
35
+ name: string;
36
+ mimeType: string;
37
+ type: string;
38
+ size: number;
39
+ extension: string;
40
+ } | null;
41
+ outputDocument: {
42
+ uuid: string;
43
+ url: string;
44
+ name: string;
45
+ mimeType: string;
46
+ type: string;
47
+ size: number;
48
+ extension: string;
49
+ } | null;
50
+ uniquenessPercentage: number | null;
31
51
  }, unknown, z.core.$ZodTypeInternals<{
32
52
  uuid: string;
33
53
  userId: string | null;
@@ -48,6 +68,26 @@ export declare namespace FindParaphraseJobByUuidQuery {
48
68
  createdAt: Date;
49
69
  updatedAt: Date;
50
70
  completedAt: Date | null;
71
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
72
+ sourceDocument: {
73
+ uuid: string;
74
+ url: string;
75
+ name: string;
76
+ mimeType: string;
77
+ type: string;
78
+ size: number;
79
+ extension: string;
80
+ } | null;
81
+ outputDocument: {
82
+ uuid: string;
83
+ url: string;
84
+ name: string;
85
+ mimeType: string;
86
+ type: string;
87
+ size: number;
88
+ extension: string;
89
+ } | null;
90
+ uniquenessPercentage: number | null;
51
91
  }, unknown>>>;
52
92
  code: z.ZodOptional<z.ZodString>;
53
93
  message: z.ZodOptional<z.ZodString>;
@@ -35,6 +35,26 @@ export declare namespace FindParaphraseJobsQuery {
35
35
  createdAt: Date;
36
36
  updatedAt: Date;
37
37
  completedAt: Date | null;
38
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
39
+ sourceDocument: {
40
+ uuid: string;
41
+ url: string;
42
+ name: string;
43
+ mimeType: string;
44
+ type: string;
45
+ size: number;
46
+ extension: string;
47
+ } | null;
48
+ outputDocument: {
49
+ uuid: string;
50
+ url: string;
51
+ name: string;
52
+ mimeType: string;
53
+ type: string;
54
+ size: number;
55
+ extension: string;
56
+ } | null;
57
+ uniquenessPercentage: number | null;
38
58
  }[];
39
59
  page: number;
40
60
  totalPages: number;
@@ -60,6 +80,26 @@ export declare namespace FindParaphraseJobsQuery {
60
80
  createdAt: Date;
61
81
  updatedAt: Date;
62
82
  completedAt: Date | null;
83
+ inputKind: import("..").PARAPHRASE_INPUT_KIND | null;
84
+ sourceDocument: {
85
+ uuid: string;
86
+ url: string;
87
+ name: string;
88
+ mimeType: string;
89
+ type: string;
90
+ size: number;
91
+ extension: string;
92
+ } | null;
93
+ outputDocument: {
94
+ uuid: string;
95
+ url: string;
96
+ name: string;
97
+ mimeType: string;
98
+ type: string;
99
+ size: number;
100
+ extension: string;
101
+ } | null;
102
+ uniquenessPercentage: number | null;
63
103
  }[];
64
104
  page: number;
65
105
  totalPages: number;
@@ -21,6 +21,10 @@ export declare namespace GetParaphraseToolConfigQuery {
21
21
  title: string;
22
22
  icon: string;
23
23
  price: number;
24
+ inputPrice: number | null;
25
+ outputPrice: number | null;
26
+ freeMaxPromptLength: number;
27
+ maxPromptLength: number;
24
28
  aiModel: string;
25
29
  status: import("../..").TOOL_MODEL_STATUS;
26
30
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -28,7 +32,6 @@ export declare namespace GetParaphraseToolConfigQuery {
28
32
  createdAt: Date;
29
33
  updatedAt: Date;
30
34
  }[];
31
- maxSymbols: number;
32
35
  }, unknown, z.core.$ZodTypeInternals<{
33
36
  styles: {
34
37
  uuid: string;
@@ -44,6 +47,10 @@ export declare namespace GetParaphraseToolConfigQuery {
44
47
  title: string;
45
48
  icon: string;
46
49
  price: number;
50
+ inputPrice: number | null;
51
+ outputPrice: number | null;
52
+ freeMaxPromptLength: number;
53
+ maxPromptLength: number;
47
54
  aiModel: string;
48
55
  status: import("../..").TOOL_MODEL_STATUS;
49
56
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -51,7 +58,6 @@ export declare namespace GetParaphraseToolConfigQuery {
51
58
  createdAt: Date;
52
59
  updatedAt: Date;
53
60
  }[];
54
- maxSymbols: number;
55
61
  }, unknown>>>;
56
62
  code: z.ZodOptional<z.ZodString>;
57
63
  message: z.ZodOptional<z.ZodString>;
@@ -2,5 +2,4 @@ export * from './routes';
2
2
  export * from './commands';
3
3
  export * from './models';
4
4
  export * from './queries';
5
- export * from './constants';
6
5
  export * from './enums';
@@ -18,5 +18,4 @@ __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
21
  __exportStar(require("./enums"), exports);
@@ -381,6 +381,10 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
381
381
  title: z.ZodString;
382
382
  icon: z.ZodString;
383
383
  price: z.ZodNumber;
384
+ inputPrice: z.ZodNullable<z.ZodNumber>;
385
+ outputPrice: z.ZodNullable<z.ZodNumber>;
386
+ freeMaxPromptLength: z.ZodNumber;
387
+ maxPromptLength: z.ZodNumber;
384
388
  aiModel: z.ZodString;
385
389
  status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
386
390
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
@@ -388,7 +392,6 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
388
392
  createdAt: z.ZodDate;
389
393
  updatedAt: z.ZodDate;
390
394
  }, z.core.$strip>>;
391
- maxSymbols: z.ZodNumber;
392
395
  }, z.core.$strip>;
393
396
  PRESENTATION: z.ZodObject<{
394
397
  slideContentTypes: z.ZodArray<z.ZodObject<{
@@ -453,6 +453,10 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
453
453
  title: z.ZodString;
454
454
  icon: z.ZodString;
455
455
  price: z.ZodNumber;
456
+ inputPrice: z.ZodNullable<z.ZodNumber>;
457
+ outputPrice: z.ZodNullable<z.ZodNumber>;
458
+ freeMaxPromptLength: z.ZodNumber;
459
+ maxPromptLength: z.ZodNumber;
456
460
  aiModel: z.ZodString;
457
461
  status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
458
462
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
@@ -460,7 +464,6 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
460
464
  createdAt: z.ZodDate;
461
465
  updatedAt: z.ZodDate;
462
466
  }, z.core.$strip>>;
463
- maxSymbols: z.ZodNumber;
464
467
  }, z.core.$strip>;
465
468
  }, z.core.$strip>, z.ZodObject<{
466
469
  uuid: z.ZodString;
@@ -1674,6 +1677,10 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
1674
1677
  title: z.ZodString;
1675
1678
  icon: z.ZodString;
1676
1679
  price: z.ZodNumber;
1680
+ inputPrice: z.ZodNullable<z.ZodNumber>;
1681
+ outputPrice: z.ZodNullable<z.ZodNumber>;
1682
+ freeMaxPromptLength: z.ZodNumber;
1683
+ maxPromptLength: z.ZodNumber;
1677
1684
  aiModel: z.ZodString;
1678
1685
  status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
1679
1686
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
@@ -1681,7 +1688,6 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
1681
1688
  createdAt: z.ZodDate;
1682
1689
  updatedAt: z.ZodDate;
1683
1690
  }, z.core.$strip>>;
1684
- maxSymbols: z.ZodNumber;
1685
1691
  }, z.core.$strip>;
1686
1692
  }, z.core.$strip>, z.ZodObject<{
1687
1693
  uuid: z.ZodString;
@@ -388,6 +388,10 @@ export declare namespace GetGlobalToolsConfigQuery {
388
388
  title: string;
389
389
  icon: string;
390
390
  price: number;
391
+ inputPrice: number | null;
392
+ outputPrice: number | null;
393
+ freeMaxPromptLength: number;
394
+ maxPromptLength: number;
391
395
  aiModel: string;
392
396
  status: import("../..").TOOL_MODEL_STATUS;
393
397
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -395,7 +399,6 @@ export declare namespace GetGlobalToolsConfigQuery {
395
399
  createdAt: Date;
396
400
  updatedAt: Date;
397
401
  }[];
398
- maxSymbols: number;
399
402
  };
400
403
  PRESENTATION: {
401
404
  slideContentTypes: {
@@ -1457,6 +1460,10 @@ export declare namespace GetGlobalToolsConfigQuery {
1457
1460
  title: string;
1458
1461
  icon: string;
1459
1462
  price: number;
1463
+ inputPrice: number | null;
1464
+ outputPrice: number | null;
1465
+ freeMaxPromptLength: number;
1466
+ maxPromptLength: number;
1460
1467
  aiModel: string;
1461
1468
  status: import("../..").TOOL_MODEL_STATUS;
1462
1469
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -1464,7 +1471,6 @@ export declare namespace GetGlobalToolsConfigQuery {
1464
1471
  createdAt: Date;
1465
1472
  updatedAt: Date;
1466
1473
  }[];
1467
- maxSymbols: number;
1468
1474
  };
1469
1475
  PRESENTATION: {
1470
1476
  slideContentTypes: {
@@ -459,6 +459,10 @@ export declare namespace GetToolsWithConfigsQuery {
459
459
  title: string;
460
460
  icon: string;
461
461
  price: number;
462
+ inputPrice: number | null;
463
+ outputPrice: number | null;
464
+ freeMaxPromptLength: number;
465
+ maxPromptLength: number;
462
466
  aiModel: string;
463
467
  status: import("../..").TOOL_MODEL_STATUS;
464
468
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -466,7 +470,6 @@ export declare namespace GetToolsWithConfigsQuery {
466
470
  createdAt: Date;
467
471
  updatedAt: Date;
468
472
  }[];
469
- maxSymbols: number;
470
473
  };
471
474
  } | {
472
475
  uuid: string;
@@ -1678,6 +1681,10 @@ export declare namespace GetToolsWithConfigsQuery {
1678
1681
  title: string;
1679
1682
  icon: string;
1680
1683
  price: number;
1684
+ inputPrice: number | null;
1685
+ outputPrice: number | null;
1686
+ freeMaxPromptLength: number;
1687
+ maxPromptLength: number;
1681
1688
  aiModel: string;
1682
1689
  status: import("../..").TOOL_MODEL_STATUS;
1683
1690
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -1685,7 +1692,6 @@ export declare namespace GetToolsWithConfigsQuery {
1685
1692
  createdAt: Date;
1686
1693
  updatedAt: Date;
1687
1694
  }[];
1688
- maxSymbols: number;
1689
1695
  };
1690
1696
  } | {
1691
1697
  uuid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.78-stage-2",
3
+ "version": "0.2.79-stage-2",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [
@@ -1 +0,0 @@
1
- export * from './spell-corrector-errors.constant';
@@ -1,17 +0,0 @@
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);
@@ -1,32 +0,0 @@
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
- };
@@ -1,35 +0,0 @@
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
- };