@purpleschool/gptbot 0.15.63 → 0.15.65

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/api/controllers/http/spell-corrector.d.ts +1 -0
  2. package/build/api/controllers/http/spell-corrector.js +1 -0
  3. package/build/api/routes.d.ts +2 -0
  4. package/build/api/routes.js +2 -0
  5. package/build/commands/community/create-community-post.command.d.ts +4 -0
  6. package/build/commands/community/get-all-community-posts-by-criteria.command.d.ts +4 -0
  7. package/build/commands/community/get-community-post-by-uuid.command.d.ts +4 -0
  8. package/build/commands/community/get-my-community-posts-by-criteria.command.d.ts +4 -0
  9. package/build/commands/community/get-my-favorite-community-posts.command.d.ts +4 -0
  10. package/build/commands/community/get-my-likes-community-posts.command.d.ts +4 -0
  11. package/build/commands/community/set-like-community-post.command.d.ts +4 -0
  12. package/build/commands/tools/music/add-track-to-music-playlist.command.d.ts +90 -23
  13. package/build/commands/tools/music/add-track-to-music-playlist.command.js +1 -1
  14. package/build/commands/tools/music/create-music-playlist.command.d.ts +89 -22
  15. package/build/commands/tools/music/edit-music.command.d.ts +6 -0
  16. package/build/commands/tools/music/find-music-job-by-uuid.command.d.ts +6 -0
  17. package/build/commands/tools/music/find-music-jobs.command.d.ts +6 -0
  18. package/build/commands/tools/music/find-music-playlists.command.d.ts +98 -22
  19. package/build/commands/tools/music/find-music-playlists.command.js +8 -0
  20. package/build/commands/tools/music/generate-music.command.d.ts +6 -0
  21. package/build/commands/tools/music/remove-track-from-music-playlist.command.d.ts +90 -23
  22. package/build/commands/tools/music/remove-track-from-music-playlist.command.js +1 -1
  23. package/build/commands/tools/music/retry-music-job.command.d.ts +6 -0
  24. package/build/commands/tools/music/set-reaction-to-music-job.command.d.ts +6 -0
  25. package/build/commands/tools/music/update-music-job-favorite.command.d.ts +6 -0
  26. package/build/commands/tools/music/update-music-job-title.command.d.ts +6 -0
  27. package/build/commands/tools/music/update-music-playlist.command.d.ts +89 -22
  28. package/build/commands/tools/spell-corrector/find-spell-corrector-job-by-uuid.command.d.ts +24 -0
  29. package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.d.ts +24 -0
  30. package/build/commands/tools/spell-corrector/get-spell-corrector-price.command.d.ts +24 -0
  31. package/build/commands/tools/spell-corrector/get-spell-corrector-price.command.js +25 -0
  32. package/build/commands/tools/spell-corrector/get-spell-corrector-tool-config.command.d.ts +3 -0
  33. package/build/commands/tools/spell-corrector/index.d.ts +1 -0
  34. package/build/commands/tools/spell-corrector/index.js +1 -0
  35. package/build/commands/tools/spell-corrector/retry-spell-corrector-job.command.d.ts +24 -0
  36. package/build/commands/tools/spell-corrector/set-reaction-to-spell-corrector-job.command.d.ts +24 -0
  37. package/build/commands/tools/spell-corrector/spell-corrector.command.d.ts +37 -1
  38. package/build/commands/tools/spell-corrector/spell-corrector.command.js +16 -3
  39. package/build/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.d.ts +24 -0
  40. package/build/commands/tools/spell-corrector/update-spell-corrector-job-title.command.d.ts +24 -0
  41. package/build/constants/index.d.ts +1 -0
  42. package/build/constants/index.js +1 -0
  43. package/build/constants/tool-music/enums/music-action-type.enum.d.ts +0 -2
  44. package/build/constants/tool-music/enums/music-action-type.enum.js +0 -2
  45. package/build/constants/tool-music/enums/music-audio-action-type.enum.d.ts +0 -2
  46. package/build/constants/tool-music/enums/music-audio-action-type.enum.js +0 -2
  47. package/build/constants/tool-music/enums/music-generation-action-type.enum.d.ts +2 -1
  48. package/build/constants/tool-music/enums/music-generation-action-type.enum.js +1 -0
  49. package/build/constants/tool-spell-corrector/enums/index.d.ts +1 -0
  50. package/build/constants/tool-spell-corrector/enums/index.js +17 -0
  51. package/build/constants/tool-spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
  52. package/build/constants/tool-spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
  53. package/build/constants/tool-spell-corrector/index.d.ts +1 -0
  54. package/build/constants/tool-spell-corrector/index.js +17 -0
  55. package/build/models/community/community-post-media-data.schema.d.ts +8 -0
  56. package/build/models/community/community-post.schema.d.ts +12 -0
  57. package/build/models/tools/music/music-job.schema.d.ts +10 -0
  58. package/build/models/tools/music/music-job.schema.js +20 -19
  59. package/build/models/tools/music/music-playlist.schema.d.ts +89 -22
  60. package/build/models/tools/music/music-playlist.schema.js +3 -3
  61. package/build/models/tools/spell-corrector/spell-corrector-config.schema.d.ts +3 -0
  62. package/build/models/tools/spell-corrector/spell-corrector-config.schema.js +1 -0
  63. package/build/models/tools/spell-corrector/spell-corrector-job.schema.d.ts +39 -1
  64. package/build/models/tools/spell-corrector/spell-corrector-job.schema.js +23 -1
  65. package/build/models/tools/spell-corrector/spell-corrector-model.schema.d.ts +2 -0
  66. package/build/models/tools/spell-corrector/spell-corrector-model.schema.js +2 -0
  67. package/package.json +1 -1
@@ -2,39 +2,106 @@ import { z } from 'zod';
2
2
  export declare namespace RemoveTrackFromMusicPlaylistCommand {
3
3
  const RequestParamsSchema: z.ZodObject<{
4
4
  uuid: z.ZodString;
5
- trackId: z.ZodString;
5
+ jobId: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  type RequestParams = z.infer<typeof RequestParamsSchema>;
8
8
  const ResponseSchema: z.ZodObject<{
9
9
  data: z.ZodObject<{
10
10
  uuid: z.ZodString;
11
11
  title: z.ZodString;
12
- tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
13
  uuid: z.ZodString;
14
- title: z.ZodString;
15
- audioId: z.ZodString;
16
- audioUrl: z.ZodString;
17
- audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
- uuid: z.ZodString;
19
- originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- mimeType: z.ZodString;
21
- url: z.ZodString;
22
- duration: z.ZodNullable<z.ZodNumber>;
23
- }, z.core.$strip>>>;
24
- coverUrl: z.ZodString;
25
- prompt: z.ZodNullable<z.ZodString>;
26
- fullLyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- tags: z.ZodString;
28
- duration: z.ZodNumber;
29
- isPublished: z.ZodOptional<z.ZodBoolean>;
30
- postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
- waveformPeaks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
32
- genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
15
+ error: z.ZodNullable<z.ZodString>;
16
+ isFavorite: z.ZodBoolean;
34
17
  createdAt: z.ZodDate;
35
18
  updatedAt: z.ZodDate;
19
+ actionType: z.ZodUnion<readonly [z.ZodEnum<typeof import("../../..").MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof import("../../..").MUSIC_AUDIO_ACTION_TYPE>]>;
20
+ lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ title: z.ZodString;
22
+ prompt: z.ZodString;
23
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
24
+ tracks: z.ZodArray<z.ZodObject<{
25
+ uuid: z.ZodString;
26
+ title: z.ZodString;
27
+ audioId: z.ZodString;
28
+ audioUrl: z.ZodString;
29
+ audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
30
+ uuid: z.ZodString;
31
+ originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ mimeType: z.ZodString;
33
+ url: z.ZodString;
34
+ duration: z.ZodNullable<z.ZodNumber>;
35
+ }, z.core.$strip>>>;
36
+ coverUrl: z.ZodString;
37
+ prompt: z.ZodNullable<z.ZodString>;
38
+ fullLyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ tags: z.ZodString;
40
+ duration: z.ZodNumber;
41
+ isPublished: z.ZodOptional<z.ZodBoolean>;
42
+ postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ waveformPeaks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
44
+ genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ createdAt: z.ZodDate;
47
+ updatedAt: z.ZodDate;
48
+ }, z.core.$strip>>;
49
+ params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
50
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.SIMPLE>;
51
+ prompt: z.ZodString;
52
+ style: z.ZodString;
53
+ vocalGender: z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL>;
56
+ prompt: z.ZodString;
57
+ style: z.ZodString;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM>;
60
+ prompt: z.ZodString;
61
+ style: z.ZodString;
62
+ vocalGender: z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
65
+ style: z.ZodString;
66
+ }, z.core.$strip>], "mode">, z.ZodObject<{
67
+ prompt: z.ZodString;
68
+ style: z.ZodOptional<z.ZodString>;
69
+ structure: z.ZodEnum<typeof import("../../..").MUSIC_LYRICS_STRUCTURE>;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ audioId: z.ZodString;
72
+ style: z.ZodString;
73
+ prompt: z.ZodOptional<z.ZodString>;
74
+ title: z.ZodOptional<z.ZodString>;
75
+ negativeTags: z.ZodOptional<z.ZodString>;
76
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
77
+ instrumental: z.ZodOptional<z.ZodBoolean>;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ audioId: z.ZodString;
80
+ continueAt: z.ZodNumber;
81
+ prompt: z.ZodString;
82
+ style: z.ZodOptional<z.ZodString>;
83
+ title: z.ZodOptional<z.ZodString>;
84
+ negativeTags: z.ZodOptional<z.ZodString>;
85
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
86
+ instrumental: z.ZodOptional<z.ZodBoolean>;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ audioId: z.ZodString;
89
+ style: z.ZodString;
90
+ title: z.ZodOptional<z.ZodString>;
91
+ negativeTags: z.ZodOptional<z.ZodString>;
92
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ audioId: z.ZodString;
95
+ prompt: z.ZodString;
96
+ style: z.ZodString;
97
+ title: z.ZodOptional<z.ZodString>;
98
+ negativeTags: z.ZodOptional<z.ZodString>;
99
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
100
+ }, z.core.$strip>]>;
101
+ externalId: z.ZodNullable<z.ZodString>;
102
+ modelId: z.ZodString;
36
103
  }, z.core.$strip>>>;
37
- trackCount: z.ZodNumber;
104
+ jobCount: z.ZodNumber;
38
105
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
106
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
107
  createdAt: z.ZodDate;
@@ -7,7 +7,7 @@ var RemoveTrackFromMusicPlaylistCommand;
7
7
  (function (RemoveTrackFromMusicPlaylistCommand) {
8
8
  RemoveTrackFromMusicPlaylistCommand.RequestParamsSchema = zod_1.z.object({
9
9
  uuid: zod_1.z.string().uuid(),
10
- trackId: zod_1.z.string().uuid(),
10
+ jobId: zod_1.z.string().uuid(),
11
11
  });
12
12
  RemoveTrackFromMusicPlaylistCommand.ResponseSchema = zod_1.z.object({
13
13
  data: models_1.MusicPlaylistSchema,
@@ -34,6 +34,8 @@ export declare namespace RetryMusicJobCommand {
34
34
  isFavorite: z.ZodBoolean;
35
35
  createdAt: z.ZodDate;
36
36
  updatedAt: z.ZodDate;
37
+ actionType: z.ZodUnion<readonly [z.ZodEnum<typeof import("../../..").MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof import("../../..").MUSIC_AUDIO_ACTION_TYPE>]>;
38
+ lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
39
  title: z.ZodString;
38
40
  prompt: z.ZodString;
39
41
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -80,6 +82,10 @@ export declare namespace RetryMusicJobCommand {
80
82
  mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
81
83
  style: z.ZodString;
82
84
  }, z.core.$strip>], "mode">, z.ZodObject<{
85
+ prompt: z.ZodString;
86
+ style: z.ZodOptional<z.ZodString>;
87
+ structure: z.ZodEnum<typeof import("../../..").MUSIC_LYRICS_STRUCTURE>;
88
+ }, z.core.$strip>, z.ZodObject<{
83
89
  audioId: z.ZodString;
84
90
  style: z.ZodString;
85
91
  prompt: z.ZodOptional<z.ZodString>;
@@ -18,6 +18,8 @@ export declare namespace SetReactionToMusicJobCommand {
18
18
  isFavorite: z.ZodBoolean;
19
19
  createdAt: z.ZodDate;
20
20
  updatedAt: z.ZodDate;
21
+ actionType: z.ZodUnion<readonly [z.ZodEnum<typeof import("../../..").MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof import("../../..").MUSIC_AUDIO_ACTION_TYPE>]>;
22
+ lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  title: z.ZodString;
22
24
  prompt: z.ZodString;
23
25
  reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
@@ -64,6 +66,10 @@ export declare namespace SetReactionToMusicJobCommand {
64
66
  mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
65
67
  style: z.ZodString;
66
68
  }, z.core.$strip>], "mode">, z.ZodObject<{
69
+ prompt: z.ZodString;
70
+ style: z.ZodOptional<z.ZodString>;
71
+ structure: z.ZodEnum<typeof import("../../..").MUSIC_LYRICS_STRUCTURE>;
72
+ }, z.core.$strip>, z.ZodObject<{
67
73
  audioId: z.ZodString;
68
74
  style: z.ZodString;
69
75
  prompt: z.ZodOptional<z.ZodString>;
@@ -16,6 +16,8 @@ export declare namespace UpdateMusicJobFavoriteCommand {
16
16
  isFavorite: z.ZodBoolean;
17
17
  createdAt: z.ZodDate;
18
18
  updatedAt: z.ZodDate;
19
+ actionType: z.ZodUnion<readonly [z.ZodEnum<typeof import("../../..").MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof import("../../..").MUSIC_AUDIO_ACTION_TYPE>]>;
20
+ lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  title: z.ZodString;
20
22
  prompt: z.ZodString;
21
23
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -62,6 +64,10 @@ export declare namespace UpdateMusicJobFavoriteCommand {
62
64
  mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
63
65
  style: z.ZodString;
64
66
  }, z.core.$strip>], "mode">, z.ZodObject<{
67
+ prompt: z.ZodString;
68
+ style: z.ZodOptional<z.ZodString>;
69
+ structure: z.ZodEnum<typeof import("../../..").MUSIC_LYRICS_STRUCTURE>;
70
+ }, z.core.$strip>, z.ZodObject<{
65
71
  audioId: z.ZodString;
66
72
  style: z.ZodString;
67
73
  prompt: z.ZodOptional<z.ZodString>;
@@ -16,6 +16,8 @@ export declare namespace UpdateMusicJobTitleCommand {
16
16
  isFavorite: z.ZodBoolean;
17
17
  createdAt: z.ZodDate;
18
18
  updatedAt: z.ZodDate;
19
+ actionType: z.ZodUnion<readonly [z.ZodEnum<typeof import("../../..").MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof import("../../..").MUSIC_AUDIO_ACTION_TYPE>]>;
20
+ lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  title: z.ZodString;
20
22
  prompt: z.ZodString;
21
23
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -62,6 +64,10 @@ export declare namespace UpdateMusicJobTitleCommand {
62
64
  mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
63
65
  style: z.ZodString;
64
66
  }, z.core.$strip>], "mode">, z.ZodObject<{
67
+ prompt: z.ZodString;
68
+ style: z.ZodOptional<z.ZodString>;
69
+ structure: z.ZodEnum<typeof import("../../..").MUSIC_LYRICS_STRUCTURE>;
70
+ }, z.core.$strip>, z.ZodObject<{
65
71
  audioId: z.ZodString;
66
72
  style: z.ZodString;
67
73
  prompt: z.ZodOptional<z.ZodString>;
@@ -12,32 +12,99 @@ export declare namespace UpdateMusicPlaylistCommand {
12
12
  data: z.ZodObject<{
13
13
  uuid: z.ZodString;
14
14
  title: z.ZodString;
15
- tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
16
  uuid: z.ZodString;
17
- title: z.ZodString;
18
- audioId: z.ZodString;
19
- audioUrl: z.ZodString;
20
- audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
- uuid: z.ZodString;
22
- originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- mimeType: z.ZodString;
24
- url: z.ZodString;
25
- duration: z.ZodNullable<z.ZodNumber>;
26
- }, z.core.$strip>>>;
27
- coverUrl: z.ZodString;
28
- prompt: z.ZodNullable<z.ZodString>;
29
- fullLyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- tags: z.ZodString;
31
- duration: z.ZodNumber;
32
- isPublished: z.ZodOptional<z.ZodBoolean>;
33
- postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
- waveformPeaks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
35
- genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
18
+ error: z.ZodNullable<z.ZodString>;
19
+ isFavorite: z.ZodBoolean;
37
20
  createdAt: z.ZodDate;
38
21
  updatedAt: z.ZodDate;
22
+ actionType: z.ZodUnion<readonly [z.ZodEnum<typeof import("../../..").MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof import("../../..").MUSIC_AUDIO_ACTION_TYPE>]>;
23
+ lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ title: z.ZodString;
25
+ prompt: z.ZodString;
26
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
27
+ tracks: z.ZodArray<z.ZodObject<{
28
+ uuid: z.ZodString;
29
+ title: z.ZodString;
30
+ audioId: z.ZodString;
31
+ audioUrl: z.ZodString;
32
+ audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ uuid: z.ZodString;
34
+ originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ mimeType: z.ZodString;
36
+ url: z.ZodString;
37
+ duration: z.ZodNullable<z.ZodNumber>;
38
+ }, z.core.$strip>>>;
39
+ coverUrl: z.ZodString;
40
+ prompt: z.ZodNullable<z.ZodString>;
41
+ fullLyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ tags: z.ZodString;
43
+ duration: z.ZodNumber;
44
+ isPublished: z.ZodOptional<z.ZodBoolean>;
45
+ postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ waveformPeaks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
47
+ genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ createdAt: z.ZodDate;
50
+ updatedAt: z.ZodDate;
51
+ }, z.core.$strip>>;
52
+ params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
53
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.SIMPLE>;
54
+ prompt: z.ZodString;
55
+ style: z.ZodString;
56
+ vocalGender: z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL>;
59
+ prompt: z.ZodString;
60
+ style: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM>;
63
+ prompt: z.ZodString;
64
+ style: z.ZodString;
65
+ vocalGender: z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>;
66
+ }, z.core.$strip>, z.ZodObject<{
67
+ mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
68
+ style: z.ZodString;
69
+ }, z.core.$strip>], "mode">, z.ZodObject<{
70
+ prompt: z.ZodString;
71
+ style: z.ZodOptional<z.ZodString>;
72
+ structure: z.ZodEnum<typeof import("../../..").MUSIC_LYRICS_STRUCTURE>;
73
+ }, z.core.$strip>, z.ZodObject<{
74
+ audioId: z.ZodString;
75
+ style: z.ZodString;
76
+ prompt: z.ZodOptional<z.ZodString>;
77
+ title: z.ZodOptional<z.ZodString>;
78
+ negativeTags: z.ZodOptional<z.ZodString>;
79
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
80
+ instrumental: z.ZodOptional<z.ZodBoolean>;
81
+ }, z.core.$strip>, z.ZodObject<{
82
+ audioId: z.ZodString;
83
+ continueAt: z.ZodNumber;
84
+ prompt: z.ZodString;
85
+ style: z.ZodOptional<z.ZodString>;
86
+ title: z.ZodOptional<z.ZodString>;
87
+ negativeTags: z.ZodOptional<z.ZodString>;
88
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
89
+ instrumental: z.ZodOptional<z.ZodBoolean>;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ audioId: z.ZodString;
92
+ style: z.ZodString;
93
+ title: z.ZodOptional<z.ZodString>;
94
+ negativeTags: z.ZodOptional<z.ZodString>;
95
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ audioId: z.ZodString;
98
+ prompt: z.ZodString;
99
+ style: z.ZodString;
100
+ title: z.ZodOptional<z.ZodString>;
101
+ negativeTags: z.ZodOptional<z.ZodString>;
102
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
103
+ }, z.core.$strip>]>;
104
+ externalId: z.ZodNullable<z.ZodString>;
105
+ modelId: z.ZodString;
39
106
  }, z.core.$strip>>>;
40
- trackCount: z.ZodNumber;
107
+ jobCount: z.ZodNumber;
41
108
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
109
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
110
  createdAt: z.ZodDate;
@@ -13,6 +13,30 @@ export declare namespace FindSpellCorrectorJobByUUIDCommand {
13
13
  createdAt: z.ZodDate;
14
14
  updatedAt: z.ZodDate;
15
15
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
17
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ url: z.ZodString;
20
+ name: z.ZodString;
21
+ mimeType: z.ZodString;
22
+ type: z.ZodString;
23
+ size: z.ZodNumber;
24
+ extension: z.ZodString;
25
+ }, z.core.$strip>>>;
26
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
27
+ total: z.ZodNumber;
28
+ spelling: z.ZodNumber;
29
+ punctuation: z.ZodNumber;
30
+ }, z.core.$strip>>>;
31
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
32
+ uuid: z.ZodString;
33
+ url: z.ZodString;
34
+ name: z.ZodString;
35
+ mimeType: z.ZodString;
36
+ type: z.ZodString;
37
+ size: z.ZodNumber;
38
+ extension: z.ZodString;
39
+ }, z.core.$strip>>>;
16
40
  userInput: z.ZodString;
17
41
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
42
  title: z.ZodString;
@@ -19,6 +19,30 @@ export declare namespace FindSpellCorrectorJobsCommand {
19
19
  createdAt: z.ZodDate;
20
20
  updatedAt: z.ZodDate;
21
21
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
23
+ sourceDocument: 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>>>;
32
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
33
+ total: z.ZodNumber;
34
+ spelling: z.ZodNumber;
35
+ punctuation: z.ZodNumber;
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>>>;
22
46
  userInput: z.ZodString;
23
47
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
48
  title: z.ZodString;
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetSpellCorrectorPriceCommand {
3
+ const PrivateRequestSchema: z.ZodObject<{
4
+ modelId: z.ZodString;
5
+ prompt: z.ZodOptional<z.ZodString>;
6
+ fileId: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ const PublicRequestSchema: z.ZodObject<{
9
+ modelId: z.ZodString;
10
+ prompt: z.ZodString;
11
+ }, z.core.$strict>;
12
+ const RequestSchema: z.ZodObject<{
13
+ modelId: z.ZodString;
14
+ prompt: z.ZodOptional<z.ZodString>;
15
+ fileId: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ type Request = z.infer<typeof RequestSchema>;
18
+ const ResponseSchema: z.ZodObject<{
19
+ price: z.ZodNumber;
20
+ charsUntilNextPriceIncrease: z.ZodNullable<z.ZodNumber>;
21
+ charsUntilNextPriceDecrease: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$strip>;
23
+ type Response = z.infer<typeof ResponseSchema>;
24
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSpellCorrectorPriceCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const chat_1 = require("../../chat");
6
+ var GetSpellCorrectorPriceCommand;
7
+ (function (GetSpellCorrectorPriceCommand) {
8
+ GetSpellCorrectorPriceCommand.PrivateRequestSchema = zod_1.z
9
+ .object({
10
+ modelId: zod_1.z.string().uuid(),
11
+ prompt: zod_1.z.string().min(1).max(100000).optional(),
12
+ fileId: zod_1.z.string().uuid().optional(),
13
+ })
14
+ .refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
15
+ message: 'Требуется ровно один из prompt или fileId',
16
+ });
17
+ GetSpellCorrectorPriceCommand.PublicRequestSchema = zod_1.z
18
+ .object({
19
+ modelId: zod_1.z.string().uuid(),
20
+ prompt: zod_1.z.string().min(1).max(100000),
21
+ })
22
+ .strict();
23
+ GetSpellCorrectorPriceCommand.RequestSchema = GetSpellCorrectorPriceCommand.PrivateRequestSchema;
24
+ GetSpellCorrectorPriceCommand.ResponseSchema = chat_1.CalculateChatPriceCommand.ResponseSchema;
25
+ })(GetSpellCorrectorPriceCommand || (exports.GetSpellCorrectorPriceCommand = GetSpellCorrectorPriceCommand = {}));
@@ -3,12 +3,15 @@ export declare namespace GetSpellCorrectorToolConfigCommand {
3
3
  const ResponseSchema: z.ZodObject<{
4
4
  data: z.ZodObject<{
5
5
  maxSymbols: z.ZodNumber;
6
+ freeMaxSymbols: z.ZodNumber;
6
7
  models: z.ZodArray<z.ZodObject<{
7
8
  uuid: z.ZodString;
8
9
  title: z.ZodString;
9
10
  description: z.ZodString;
10
11
  icon: z.ZodString;
11
12
  price: z.ZodNumber;
13
+ freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
14
+ maxPromptLength: z.ZodNullable<z.ZodNumber>;
12
15
  order: z.ZodNumber;
13
16
  status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
14
17
  canUse: z.ZodBoolean;
@@ -1,4 +1,5 @@
1
1
  export * from './spell-corrector.command';
2
+ export * from './get-spell-corrector-price.command';
2
3
  export * from './delete-spell-corrector-job-by-uuid.command';
3
4
  export * from './delete-all-spell-corrector-jobs.command';
4
5
  export * from './set-reaction-to-spell-corrector-job.command';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./spell-corrector.command"), exports);
18
+ __exportStar(require("./get-spell-corrector-price.command"), exports);
18
19
  __exportStar(require("./delete-spell-corrector-job-by-uuid.command"), exports);
19
20
  __exportStar(require("./delete-all-spell-corrector-jobs.command"), exports);
20
21
  __exportStar(require("./set-reaction-to-spell-corrector-job.command"), exports);
@@ -13,6 +13,30 @@ export declare namespace RetrySpellCorrectorJobCommand {
13
13
  createdAt: z.ZodDate;
14
14
  updatedAt: z.ZodDate;
15
15
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
17
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ url: z.ZodString;
20
+ name: z.ZodString;
21
+ mimeType: z.ZodString;
22
+ type: z.ZodString;
23
+ size: z.ZodNumber;
24
+ extension: z.ZodString;
25
+ }, z.core.$strip>>>;
26
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
27
+ total: z.ZodNumber;
28
+ spelling: z.ZodNumber;
29
+ punctuation: z.ZodNumber;
30
+ }, z.core.$strip>>>;
31
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
32
+ uuid: z.ZodString;
33
+ url: z.ZodString;
34
+ name: z.ZodString;
35
+ mimeType: z.ZodString;
36
+ type: z.ZodString;
37
+ size: z.ZodNumber;
38
+ extension: z.ZodString;
39
+ }, z.core.$strip>>>;
16
40
  userInput: z.ZodString;
17
41
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
42
  title: z.ZodString;
@@ -19,6 +19,30 @@ export declare namespace SetReactionToSpellCorrectorJobCommand {
19
19
  createdAt: z.ZodDate;
20
20
  updatedAt: z.ZodDate;
21
21
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
23
+ sourceDocument: 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>>>;
32
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
33
+ total: z.ZodNumber;
34
+ spelling: z.ZodNumber;
35
+ punctuation: z.ZodNumber;
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>>>;
22
46
  userInput: z.ZodString;
23
47
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
48
  title: z.ZodString;
@@ -2,8 +2,15 @@ import { z } from 'zod';
2
2
  export declare namespace SpellCorrectorCommand {
3
3
  const RequestSchema: z.ZodObject<{
4
4
  modelId: z.ZodString;
5
- prompt: z.ZodString;
5
+ requestId: z.ZodOptional<z.ZodString>;
6
+ prompt: z.ZodOptional<z.ZodString>;
7
+ fileId: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
9
+ const PublicRequestSchema: z.ZodObject<{
10
+ modelId: z.ZodString;
11
+ requestId: z.ZodOptional<z.ZodString>;
12
+ prompt: z.ZodString;
13
+ }, z.core.$strict>;
7
14
  type Request = z.infer<typeof RequestSchema>;
8
15
  const ResponseSchema: z.ZodObject<{
9
16
  data: z.ZodObject<{
@@ -13,6 +20,35 @@ export declare namespace SpellCorrectorCommand {
13
20
  isFavorite: z.ZodBoolean;
14
21
  createdAt: z.ZodDate;
15
22
  updatedAt: z.ZodDate;
23
+ modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
25
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
26
+ uuid: z.ZodString;
27
+ url: z.ZodString;
28
+ name: z.ZodString;
29
+ mimeType: z.ZodString;
30
+ type: z.ZodString;
31
+ size: z.ZodNumber;
32
+ extension: z.ZodString;
33
+ }, z.core.$strip>>>;
34
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
35
+ total: z.ZodNumber;
36
+ spelling: z.ZodNumber;
37
+ punctuation: z.ZodNumber;
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
+ userInput: z.ZodString;
49
+ aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ title: z.ZodString;
51
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
16
52
  }, z.core.$strip>;
17
53
  }, z.core.$strip>;
18
54
  type Response = z.infer<typeof ResponseSchema>;
@@ -5,11 +5,24 @@ const zod_1 = require("zod");
5
5
  const models_1 = require("../../../models");
6
6
  var SpellCorrectorCommand;
7
7
  (function (SpellCorrectorCommand) {
8
- SpellCorrectorCommand.RequestSchema = zod_1.z.object({
8
+ SpellCorrectorCommand.RequestSchema = zod_1.z
9
+ .object({
9
10
  modelId: zod_1.z.string().uuid(),
10
- prompt: zod_1.z.string().min(1).max(100000),
11
+ requestId: zod_1.z.string().uuid().optional(),
12
+ prompt: zod_1.z.string().min(1).max(100000).optional(),
13
+ fileId: zod_1.z.string().uuid().optional(),
14
+ })
15
+ .refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
16
+ message: 'Требуется ровно один из prompt или fileId',
11
17
  });
18
+ SpellCorrectorCommand.PublicRequestSchema = zod_1.z
19
+ .object({
20
+ modelId: zod_1.z.string().uuid(),
21
+ requestId: zod_1.z.string().uuid().optional(),
22
+ prompt: zod_1.z.string().min(1).max(100000),
23
+ })
24
+ .strict();
12
25
  SpellCorrectorCommand.ResponseSchema = zod_1.z.object({
13
- data: models_1.ToolJobSchema,
26
+ data: models_1.SpellCorrectorToolJobSchema,
14
27
  });
15
28
  })(SpellCorrectorCommand || (exports.SpellCorrectorCommand = SpellCorrectorCommand = {}));