@purpleschool/gptbot 0.15.75-paraphrase-special → 0.15.75

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 (32) hide show
  1. package/build/api/controllers/http/paraphrase.d.ts +0 -1
  2. package/build/api/controllers/http/paraphrase.js +0 -1
  3. package/build/api/routes.d.ts +0 -2
  4. package/build/api/routes.js +0 -2
  5. package/build/commands/tools/paraphrase/find-paraphrase-job-by-uuid.command.d.ts +0 -20
  6. package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.d.ts +0 -20
  7. package/build/commands/tools/paraphrase/get-paraphrase-tool-config.command.d.ts +0 -3
  8. package/build/commands/tools/paraphrase/index.d.ts +0 -1
  9. package/build/commands/tools/paraphrase/index.js +0 -1
  10. package/build/commands/tools/paraphrase/paraphrase.command.d.ts +1 -36
  11. package/build/commands/tools/paraphrase/paraphrase.command.js +3 -16
  12. package/build/commands/tools/paraphrase/retry-paraphrase-job.command.d.ts +0 -20
  13. package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.d.ts +0 -20
  14. package/build/commands/tools/paraphrase/update-paraphrase-job-favorite.command.d.ts +0 -20
  15. package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.d.ts +0 -20
  16. package/build/constants/tool-paraphrase/enums/index.d.ts +0 -1
  17. package/build/constants/tool-paraphrase/enums/index.js +0 -1
  18. package/build/models/tools/paraphrase/index.d.ts +0 -1
  19. package/build/models/tools/paraphrase/index.js +0 -1
  20. package/build/models/tools/paraphrase/paraphrase-config.schema.d.ts +0 -3
  21. package/build/models/tools/paraphrase/paraphrase-config.schema.js +0 -1
  22. package/build/models/tools/paraphrase/paraphrase-job.schema.d.ts +1 -21
  23. package/build/models/tools/paraphrase/paraphrase-job.schema.js +0 -5
  24. package/build/models/tools/paraphrase/paraphrase-model.schema.d.ts +0 -2
  25. package/build/models/tools/paraphrase/paraphrase-model.schema.js +0 -2
  26. package/package.json +1 -1
  27. package/build/commands/tools/paraphrase/get-paraphrase-price.command.d.ts +0 -31
  28. package/build/commands/tools/paraphrase/get-paraphrase-price.command.js +0 -30
  29. package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.d.ts +0 -4
  30. package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.js +0 -8
  31. package/build/models/tools/paraphrase/paraphrase-document.schema.d.ts +0 -10
  32. package/build/models/tools/paraphrase/paraphrase-document.schema.js +0 -13
@@ -2,7 +2,6 @@ export declare const PARAPHRASE_CONTROLLER_PRIVATE: 'private/tools/paraphrase';
2
2
  export declare const PARAPHRASE_CONTROLLER_PUBLIC: 'public/tools/paraphrase';
3
3
  export declare const PARAPHRASE_ROUTES: {
4
4
  readonly CONFIG: 'config';
5
- readonly PRICE: 'price';
6
5
  readonly EXECUTE: 'execute';
7
6
  readonly GET_JOBS: 'jobs';
8
7
  readonly GET_JOB: (uuid: string) => string;
@@ -5,7 +5,6 @@ exports.PARAPHRASE_CONTROLLER_PRIVATE = 'private/tools/paraphrase';
5
5
  exports.PARAPHRASE_CONTROLLER_PUBLIC = 'public/tools/paraphrase';
6
6
  exports.PARAPHRASE_ROUTES = {
7
7
  CONFIG: 'config',
8
- PRICE: 'price',
9
8
  EXECUTE: 'execute',
10
9
  GET_JOBS: 'jobs',
11
10
  GET_JOB: (uuid) => `jobs/${uuid}`,
@@ -687,7 +687,6 @@ export declare const REST_API: {
687
687
  };
688
688
  readonly PARAPHRASE_PUBLIC: {
689
689
  readonly CONFIG: "/api/public/tools/paraphrase/config";
690
- readonly PRICE: "/api/public/tools/paraphrase/price";
691
690
  readonly EXECUTE: "/api/public/tools/paraphrase/execute";
692
691
  readonly GET_JOBS: "/api/public/tools/paraphrase/jobs";
693
692
  readonly GET_JOB: (uuid: string) => string;
@@ -700,7 +699,6 @@ export declare const REST_API: {
700
699
  };
701
700
  readonly PARAPHRASE_PRIVATE: {
702
701
  readonly CONFIG: "/api/private/tools/paraphrase/config";
703
- readonly PRICE: "/api/private/tools/paraphrase/price";
704
702
  readonly EXECUTE: "/api/private/tools/paraphrase/execute";
705
703
  readonly GET_JOBS: "/api/private/tools/paraphrase/jobs";
706
704
  readonly GET_JOB: (uuid: string) => string;
@@ -725,7 +725,6 @@ exports.REST_API = {
725
725
  },
726
726
  PARAPHRASE_PUBLIC: {
727
727
  CONFIG: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.CONFIG}`,
728
- PRICE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.PRICE}`,
729
728
  EXECUTE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.EXECUTE}`,
730
729
  GET_JOBS: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOBS}`,
731
730
  GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOB(uuid)}`,
@@ -738,7 +737,6 @@ exports.REST_API = {
738
737
  },
739
738
  PARAPHRASE_PRIVATE: {
740
739
  CONFIG: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.CONFIG}`,
741
- PRICE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.PRICE}`,
742
740
  EXECUTE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.EXECUTE}`,
743
741
  GET_JOBS: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOBS}`,
744
742
  GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOB(uuid)}`,
@@ -20,26 +20,6 @@ export declare namespace FindParaphraseJobByUUIDCommand {
20
20
  intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
21
21
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
22
22
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
24
- sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
25
- uuid: z.ZodString;
26
- url: z.ZodString;
27
- name: z.ZodString;
28
- mimeType: z.ZodString;
29
- type: z.ZodString;
30
- size: z.ZodNumber;
31
- extension: z.ZodString;
32
- }, z.core.$strip>>>;
33
- outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
34
- uuid: z.ZodString;
35
- url: z.ZodString;
36
- name: z.ZodString;
37
- mimeType: z.ZodString;
38
- type: z.ZodString;
39
- size: z.ZodNumber;
40
- extension: z.ZodString;
41
- }, z.core.$strip>>>;
42
- uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
43
23
  }, z.core.$strip>;
44
24
  }, z.core.$strip>;
45
25
  type Response = z.infer<typeof ResponseSchema>;
@@ -26,26 +26,6 @@ export declare namespace FindParaphraseJobsCommand {
26
26
  intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
27
27
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
28
28
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
30
- sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
31
- uuid: z.ZodString;
32
- url: z.ZodString;
33
- name: z.ZodString;
34
- mimeType: z.ZodString;
35
- type: z.ZodString;
36
- size: z.ZodNumber;
37
- extension: z.ZodString;
38
- }, z.core.$strip>>>;
39
- outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
40
- uuid: z.ZodString;
41
- url: z.ZodString;
42
- name: z.ZodString;
43
- mimeType: z.ZodString;
44
- type: z.ZodString;
45
- size: z.ZodNumber;
46
- extension: z.ZodString;
47
- }, z.core.$strip>>>;
48
- uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
49
29
  }, z.core.$strip>>;
50
30
  totalPages: z.ZodNumber;
51
31
  total: z.ZodNumber;
@@ -3,7 +3,6 @@ export declare namespace GetParaphraseToolConfigCommand {
3
3
  const ResponseSchema: z.ZodObject<{
4
4
  data: z.ZodObject<{
5
5
  maxSymbols: z.ZodNumber;
6
- freeMaxSymbols: z.ZodNumber;
7
6
  styles: z.ZodArray<z.ZodObject<{
8
7
  uuid: z.ZodString;
9
8
  title: z.ZodString;
@@ -20,8 +19,6 @@ export declare namespace GetParaphraseToolConfigCommand {
20
19
  title: z.ZodString;
21
20
  icon: z.ZodString;
22
21
  price: z.ZodNumber;
23
- freeMaxPromptLength: z.ZodNumber;
24
- maxPromptLength: z.ZodNumber;
25
22
  order: z.ZodNumber;
26
23
  status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
27
24
  canUse: z.ZodBoolean;
@@ -8,4 +8,3 @@ export * from './find-paraphrase-job-by-uuid.command';
8
8
  export * from './find-paraphrase-jobs.command';
9
9
  export * from './get-paraphrase-tool-config.command';
10
10
  export * from './update-paraphrase-job-favorite.command';
11
- export * from './get-paraphrase-price.command';
@@ -24,4 +24,3 @@ __exportStar(require("./find-paraphrase-job-by-uuid.command"), exports);
24
24
  __exportStar(require("./find-paraphrase-jobs.command"), exports);
25
25
  __exportStar(require("./get-paraphrase-tool-config.command"), exports);
26
26
  __exportStar(require("./update-paraphrase-job-favorite.command"), exports);
27
- __exportStar(require("./get-paraphrase-price.command"), exports);
@@ -2,18 +2,11 @@ import { z } from 'zod';
2
2
  import { PARAPHRASING_INTENSITY } from '../../../constants';
3
3
  export declare namespace ParaphraseCommand {
4
4
  const RequestSchema: z.ZodObject<{
5
- styleId: z.ZodString;
6
- typeId: z.ZodString;
7
- prompt: z.ZodOptional<z.ZodString>;
8
- fileId: z.ZodOptional<z.ZodString>;
9
- intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
10
- }, z.core.$strip>;
11
- const PublicRequestSchema: z.ZodObject<{
12
5
  styleId: z.ZodString;
13
6
  typeId: z.ZodString;
14
7
  prompt: z.ZodString;
15
8
  intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
16
- }, z.core.$strict>;
9
+ }, z.core.$strip>;
17
10
  type Request = z.infer<typeof RequestSchema>;
18
11
  const ResponseSchema: z.ZodObject<{
19
12
  data: z.ZodObject<{
@@ -23,34 +16,6 @@ export declare namespace ParaphraseCommand {
23
16
  isFavorite: z.ZodBoolean;
24
17
  createdAt: z.ZodDate;
25
18
  updatedAt: z.ZodDate;
26
- styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- userInput: z.ZodString;
29
- title: z.ZodString;
30
- typeId: z.ZodString;
31
- intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
32
- reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
33
- aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
- inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
35
- sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
36
- uuid: z.ZodString;
37
- url: z.ZodString;
38
- name: z.ZodString;
39
- mimeType: z.ZodString;
40
- type: z.ZodString;
41
- size: z.ZodNumber;
42
- extension: z.ZodString;
43
- }, z.core.$strip>>>;
44
- outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
45
- uuid: z.ZodString;
46
- url: z.ZodString;
47
- name: z.ZodString;
48
- mimeType: z.ZodString;
49
- type: z.ZodString;
50
- size: z.ZodNumber;
51
- extension: z.ZodString;
52
- }, z.core.$strip>>>;
53
- uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
54
19
  }, z.core.$strip>;
55
20
  }, z.core.$strip>;
56
21
  type Response = z.infer<typeof ResponseSchema>;
@@ -6,26 +6,13 @@ const constants_1 = require("../../../constants");
6
6
  const models_1 = require("../../../models");
7
7
  var ParaphraseCommand;
8
8
  (function (ParaphraseCommand) {
9
- ParaphraseCommand.RequestSchema = zod_1.z
10
- .object({
11
- styleId: zod_1.z.string().uuid(),
12
- typeId: zod_1.z.string().uuid(),
13
- prompt: zod_1.z.string().min(1).max(100000).optional(),
14
- fileId: zod_1.z.string().uuid().optional(),
15
- intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
16
- })
17
- .refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
18
- message: 'Требуется ровно один из prompt или fileId',
19
- });
20
- ParaphraseCommand.PublicRequestSchema = zod_1.z
21
- .object({
9
+ ParaphraseCommand.RequestSchema = zod_1.z.object({
22
10
  styleId: zod_1.z.string().uuid(),
23
11
  typeId: zod_1.z.string().uuid(),
24
12
  prompt: zod_1.z.string().min(1).max(100000),
25
13
  intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
26
- })
27
- .strict();
14
+ });
28
15
  ParaphraseCommand.ResponseSchema = zod_1.z.object({
29
- data: models_1.ParaphraseToolJobSchema,
16
+ data: models_1.ToolJobSchema,
30
17
  });
31
18
  })(ParaphraseCommand || (exports.ParaphraseCommand = ParaphraseCommand = {}));
@@ -20,26 +20,6 @@ export declare namespace RetryParaphraseJobCommand {
20
20
  intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
21
21
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
22
22
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
24
- sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
25
- uuid: z.ZodString;
26
- url: z.ZodString;
27
- name: z.ZodString;
28
- mimeType: z.ZodString;
29
- type: z.ZodString;
30
- size: z.ZodNumber;
31
- extension: z.ZodString;
32
- }, z.core.$strip>>>;
33
- outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
34
- uuid: z.ZodString;
35
- url: z.ZodString;
36
- name: z.ZodString;
37
- mimeType: z.ZodString;
38
- type: z.ZodString;
39
- size: z.ZodNumber;
40
- extension: z.ZodString;
41
- }, z.core.$strip>>>;
42
- uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
43
23
  }, z.core.$strip>;
44
24
  }, z.core.$strip>;
45
25
  type Response = z.infer<typeof ResponseSchema>;
@@ -26,26 +26,6 @@ export declare namespace SetReactionToParaphraseJobCommand {
26
26
  intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
27
27
  reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
28
28
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
30
- sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
31
- uuid: z.ZodString;
32
- url: z.ZodString;
33
- name: z.ZodString;
34
- mimeType: z.ZodString;
35
- type: z.ZodString;
36
- size: z.ZodNumber;
37
- extension: z.ZodString;
38
- }, z.core.$strip>>>;
39
- outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
40
- uuid: z.ZodString;
41
- url: z.ZodString;
42
- name: z.ZodString;
43
- mimeType: z.ZodString;
44
- type: z.ZodString;
45
- size: z.ZodNumber;
46
- extension: z.ZodString;
47
- }, z.core.$strip>>>;
48
- uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
49
29
  }, z.core.$strip>;
50
30
  }, z.core.$strip>;
51
31
  type Response = z.infer<typeof ResponseSchema>;
@@ -24,26 +24,6 @@ export declare namespace UpdateParaphraseJobFavoriteCommand {
24
24
  intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
25
25
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
26
26
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
28
- sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
29
- uuid: z.ZodString;
30
- url: z.ZodString;
31
- name: z.ZodString;
32
- mimeType: z.ZodString;
33
- type: z.ZodString;
34
- size: z.ZodNumber;
35
- extension: z.ZodString;
36
- }, z.core.$strip>>>;
37
- outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
38
- uuid: z.ZodString;
39
- url: z.ZodString;
40
- name: z.ZodString;
41
- mimeType: z.ZodString;
42
- type: z.ZodString;
43
- size: z.ZodNumber;
44
- extension: z.ZodString;
45
- }, z.core.$strip>>>;
46
- uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
47
27
  }, z.core.$strip>;
48
28
  }, z.core.$strip>;
49
29
  type Response = z.infer<typeof ResponseSchema>;
@@ -24,26 +24,6 @@ export declare namespace UpdateParaphraseJobTitleCommand {
24
24
  intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
25
25
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
26
26
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
28
- sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
29
- uuid: z.ZodString;
30
- url: z.ZodString;
31
- name: z.ZodString;
32
- mimeType: z.ZodString;
33
- type: z.ZodString;
34
- size: z.ZodNumber;
35
- extension: z.ZodString;
36
- }, z.core.$strip>>>;
37
- outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
38
- uuid: z.ZodString;
39
- url: z.ZodString;
40
- name: z.ZodString;
41
- mimeType: z.ZodString;
42
- type: z.ZodString;
43
- size: z.ZodNumber;
44
- extension: z.ZodString;
45
- }, z.core.$strip>>>;
46
- uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
47
27
  }, z.core.$strip>;
48
28
  }, z.core.$strip>;
49
29
  type Response = z.infer<typeof ResponseSchema>;
@@ -1,2 +1 @@
1
1
  export * from './paraphrasing-intesity.enum';
2
- export * from './paraphrase-input-kind.enum';
@@ -15,4 +15,3 @@ 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);
@@ -2,4 +2,3 @@ export * from './paraphrase-config.schema';
2
2
  export * from './paraphrase-job.schema';
3
3
  export * from './paraphrase-model.schema';
4
4
  export * from './paraphrase-style.schema';
5
- export * from './paraphrase-document.schema';
@@ -18,4 +18,3 @@ __exportStar(require("./paraphrase-config.schema"), exports);
18
18
  __exportStar(require("./paraphrase-job.schema"), exports);
19
19
  __exportStar(require("./paraphrase-model.schema"), exports);
20
20
  __exportStar(require("./paraphrase-style.schema"), exports);
21
- __exportStar(require("./paraphrase-document.schema"), exports);
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ParaphraseToolConfigSchema: z.ZodObject<{
3
3
  maxSymbols: z.ZodNumber;
4
- freeMaxSymbols: z.ZodNumber;
5
4
  styles: z.ZodArray<z.ZodObject<{
6
5
  uuid: z.ZodString;
7
6
  title: z.ZodString;
@@ -18,8 +17,6 @@ export declare const ParaphraseToolConfigSchema: z.ZodObject<{
18
17
  title: z.ZodString;
19
18
  icon: z.ZodString;
20
19
  price: z.ZodNumber;
21
- freeMaxPromptLength: z.ZodNumber;
22
- maxPromptLength: z.ZodNumber;
23
20
  order: z.ZodNumber;
24
21
  status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
25
22
  canUse: z.ZodBoolean;
@@ -6,7 +6,6 @@ const paraphrase_style_schema_1 = require("./paraphrase-style.schema");
6
6
  const paraphrase_model_schema_1 = require("./paraphrase-model.schema");
7
7
  exports.ParaphraseToolConfigSchema = zod_1.z.object({
8
8
  maxSymbols: zod_1.z.number(),
9
- freeMaxSymbols: zod_1.z.number(),
10
9
  styles: zod_1.z.array(paraphrase_style_schema_1.ParaphraseStyleSchema),
11
10
  types: zod_1.z.array(paraphrase_model_schema_1.ParaphraseModelSchema),
12
11
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { PARAPHRASE_INPUT_KIND, PARAPHRASING_INTENSITY, USER_REACTION } from '../../../constants';
2
+ import { PARAPHRASING_INTENSITY, USER_REACTION } from '../../../constants';
3
3
  export declare const ParaphraseToolJobSchema: z.ZodObject<{
4
4
  uuid: z.ZodString;
5
5
  status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
@@ -15,24 +15,4 @@ export declare const ParaphraseToolJobSchema: z.ZodObject<{
15
15
  intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
16
16
  reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
17
17
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof PARAPHRASE_INPUT_KIND>>>;
19
- sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
20
- uuid: z.ZodString;
21
- url: z.ZodString;
22
- name: z.ZodString;
23
- mimeType: z.ZodString;
24
- type: z.ZodString;
25
- size: z.ZodNumber;
26
- extension: z.ZodString;
27
- }, z.core.$strip>>>;
28
- outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
29
- uuid: z.ZodString;
30
- url: z.ZodString;
31
- name: z.ZodString;
32
- mimeType: z.ZodString;
33
- type: z.ZodString;
34
- size: z.ZodNumber;
35
- extension: z.ZodString;
36
- }, z.core.$strip>>>;
37
- uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
38
18
  }, z.core.$strip>;
@@ -4,7 +4,6 @@ exports.ParaphraseToolJobSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const tool_job_schema_1 = require("../../tool-job.schema");
6
6
  const constants_1 = require("../../../constants");
7
- const paraphrase_document_schema_1 = require("./paraphrase-document.schema");
8
7
  exports.ParaphraseToolJobSchema = tool_job_schema_1.ToolJobSchema.extend({
9
8
  styleId: zod_1.z.string().uuid().nullable().optional(),
10
9
  modelId: zod_1.z.string().uuid().nullable().optional(),
@@ -14,8 +13,4 @@ exports.ParaphraseToolJobSchema = tool_job_schema_1.ToolJobSchema.extend({
14
13
  intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
15
14
  reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
16
15
  aiOutput: zod_1.z.string().nullable().optional(),
17
- inputKind: zod_1.z.nativeEnum(constants_1.PARAPHRASE_INPUT_KIND).nullable().default(null),
18
- sourceDocument: paraphrase_document_schema_1.ParaphraseDocumentMetadataSchema.nullable().default(null),
19
- outputDocument: paraphrase_document_schema_1.ParaphraseDocumentMetadataSchema.nullable().default(null),
20
- uniquenessPercentage: zod_1.z.number().int().min(0).max(100).nullable().default(null),
21
16
  });
@@ -5,8 +5,6 @@ export declare const ParaphraseModelSchema: z.ZodObject<{
5
5
  title: z.ZodString;
6
6
  icon: z.ZodString;
7
7
  price: z.ZodNumber;
8
- freeMaxPromptLength: z.ZodNumber;
9
- maxPromptLength: z.ZodNumber;
10
8
  order: z.ZodNumber;
11
9
  status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
12
10
  canUse: z.ZodBoolean;
@@ -9,8 +9,6 @@ exports.ParaphraseModelSchema = zod_1.z.object({
9
9
  title: zod_1.z.string(),
10
10
  icon: zod_1.z.string(),
11
11
  price: zod_1.z.number(),
12
- freeMaxPromptLength: zod_1.z.number(),
13
- maxPromptLength: zod_1.z.number(),
14
12
  order: zod_1.z.number(),
15
13
  status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
16
14
  canUse: zod_1.z.boolean(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.15.75-paraphrase-special",
3
+ "version": "0.15.75",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,31 +0,0 @@
1
- import { z } from 'zod';
2
- import { PARAPHRASING_INTENSITY } from '../../../constants';
3
- export declare namespace GetParaphrasePriceCommand {
4
- const PrivateRequestSchema: z.ZodObject<{
5
- typeId: z.ZodString;
6
- styleId: z.ZodString;
7
- intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
8
- prompt: z.ZodOptional<z.ZodString>;
9
- fileId: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strip>;
11
- const PublicRequestSchema: z.ZodObject<{
12
- typeId: z.ZodString;
13
- styleId: z.ZodString;
14
- intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
15
- prompt: z.ZodString;
16
- }, z.core.$strict>;
17
- const RequestSchema: z.ZodObject<{
18
- typeId: z.ZodString;
19
- styleId: z.ZodString;
20
- intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
21
- prompt: z.ZodOptional<z.ZodString>;
22
- fileId: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strip>;
24
- type Request = z.infer<typeof RequestSchema>;
25
- const ResponseSchema: z.ZodObject<{
26
- price: z.ZodNumber;
27
- charsUntilNextPriceIncrease: z.ZodNullable<z.ZodNumber>;
28
- charsUntilNextPriceDecrease: z.ZodNullable<z.ZodNumber>;
29
- }, z.core.$strip>;
30
- type Response = z.infer<typeof ResponseSchema>;
31
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetParaphrasePriceCommand = void 0;
4
- const zod_1 = require("zod");
5
- const constants_1 = require("../../../constants");
6
- const chat_1 = require("../../chat");
7
- var GetParaphrasePriceCommand;
8
- (function (GetParaphrasePriceCommand) {
9
- GetParaphrasePriceCommand.PrivateRequestSchema = zod_1.z
10
- .object({
11
- typeId: zod_1.z.string().uuid(),
12
- styleId: zod_1.z.string().uuid(),
13
- intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
14
- prompt: zod_1.z.string().min(1).max(100000).optional(),
15
- fileId: zod_1.z.string().uuid().optional(),
16
- })
17
- .refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
18
- message: 'Требуется ровно один из prompt или fileId',
19
- });
20
- GetParaphrasePriceCommand.PublicRequestSchema = zod_1.z
21
- .object({
22
- typeId: zod_1.z.string().uuid(),
23
- styleId: zod_1.z.string().uuid(),
24
- intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
25
- prompt: zod_1.z.string().min(1).max(100000),
26
- })
27
- .strict();
28
- GetParaphrasePriceCommand.RequestSchema = GetParaphrasePriceCommand.PrivateRequestSchema;
29
- GetParaphrasePriceCommand.ResponseSchema = chat_1.CalculateChatPriceCommand.ResponseSchema;
30
- })(GetParaphrasePriceCommand || (exports.GetParaphrasePriceCommand = GetParaphrasePriceCommand = {}));
@@ -1,4 +0,0 @@
1
- export declare enum PARAPHRASE_INPUT_KIND {
2
- TEXT = "text",
3
- DOCUMENT = "document"
4
- }
@@ -1,8 +0,0 @@
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 = {}));
@@ -1,10 +0,0 @@
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>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ParaphraseDocumentMetadataSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.ParaphraseDocumentMetadataSchema = zod_1.z.object({
6
- uuid: zod_1.z.string().uuid(),
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().nonnegative(),
12
- extension: zod_1.z.string(),
13
- });