@purpleschool/gptbot-tools 0.2.69 → 0.2.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/build/music/commands/add-track-to-music-playlist.command.d.ts +199 -41
  2. package/build/music/commands/add-track-to-music-playlist.command.js +1 -1
  3. package/build/music/commands/create-music-playlist.command.d.ts +198 -40
  4. package/build/music/commands/edit-music.command.d.ts +12 -0
  5. package/build/music/commands/generate-music.command.d.ts +18 -2
  6. package/build/music/commands/generate-music.command.js +1 -1
  7. package/build/music/commands/get-music-price.command.d.ts +2 -0
  8. package/build/music/commands/get-music-price.command.js +2 -0
  9. package/build/music/commands/remove-track-from-music-playlist.command.d.ts +199 -41
  10. package/build/music/commands/remove-track-from-music-playlist.command.js +1 -1
  11. package/build/music/commands/retry-music-job.command.d.ts +12 -0
  12. package/build/music/commands/set-reaction-to-music-job.command.d.ts +12 -0
  13. package/build/music/commands/update-music-job-favorite.command.d.ts +12 -0
  14. package/build/music/commands/update-music-job-title.command.d.ts +12 -0
  15. package/build/music/commands/update-music-playlist.command.d.ts +198 -40
  16. package/build/music/commands/update-published-status-music-jobs.command.d.ts +12 -0
  17. package/build/music/enums/music-action-type.enum.d.ts +0 -2
  18. package/build/music/enums/music-action-type.enum.js +0 -2
  19. package/build/music/enums/music-audio-action-type.enum.d.ts +0 -2
  20. package/build/music/enums/music-audio-action-type.enum.js +0 -2
  21. package/build/music/models/music-job.schema.d.ts +10 -0
  22. package/build/music/models/music-job.schema.js +14 -15
  23. package/build/music/models/music-playlist.schema.d.ts +99 -20
  24. package/build/music/models/music-playlist.schema.js +3 -3
  25. package/build/music/queries/find-music-job-by-id.query.d.ts +12 -0
  26. package/build/music/queries/find-music-jobs.query.d.ts +12 -0
  27. package/build/music/queries/find-music-playlists.query.d.ts +227 -56
  28. package/build/music/queries/find-music-playlists.query.js +9 -1
  29. package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
  30. package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
  31. package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
  32. package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
  33. package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
  34. package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
  35. package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
  36. package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
  37. package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
  38. package/build/spell-corrector/constants/index.d.ts +1 -0
  39. package/build/spell-corrector/constants/index.js +17 -0
  40. package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
  41. package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
  42. package/build/spell-corrector/enums/index.d.ts +1 -0
  43. package/build/spell-corrector/enums/index.js +17 -0
  44. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
  45. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
  46. package/build/spell-corrector/index.d.ts +2 -0
  47. package/build/spell-corrector/index.js +2 -0
  48. package/build/spell-corrector/models/index.d.ts +2 -0
  49. package/build/spell-corrector/models/index.js +2 -0
  50. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
  51. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
  52. package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
  53. package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
  54. package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
  55. package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
  56. package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
  57. package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
  58. package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
  59. package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
  60. package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
  61. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
  62. package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
  63. package/build/tools/models/global-tools-config.schema.d.ts +5 -0
  64. package/build/tools/models/tools-with-configs.schema.d.ts +10 -0
  65. package/build/tools/queries/get-global-tools-config.query.d.ts +10 -0
  66. package/build/tools/queries/get-tools-with-configs.query.d.ts +10 -0
  67. package/package.json +1 -1
@@ -3,77 +3,248 @@ export declare namespace FindMusicPlaylistsQuery {
3
3
  const RequestSchema: z.ZodObject<{
4
4
  userId: z.ZodOptional<z.ZodString>;
5
5
  unregisteredUserId: z.ZodOptional<z.ZodString>;
6
+ title: z.ZodOptional<z.ZodString>;
7
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
8
+ offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
6
9
  }, z.core.$strip>;
7
10
  type Request = z.infer<typeof RequestSchema>;
8
11
  const ResponseSchema: z.ZodObject<{
9
12
  isSuccess: z.ZodBoolean;
10
13
  data: z.ZodOptional<z.ZodType<{
11
- uuid: string;
12
- title: string;
13
- tracks?: {
14
+ data: {
14
15
  uuid: string;
15
16
  title: string;
16
- audioId: string;
17
- audioUrl: string;
18
- audioFile?: {
17
+ jobs?: {
19
18
  uuid: string;
20
- url: string;
21
- mimeType: string;
22
- duration: number | null;
23
- originalName?: string | null | undefined;
24
- } | null | undefined;
25
- coverUrl: string;
26
- prompt: string | null;
27
- fullLyrics?: string | null | undefined;
28
- tags: string;
29
- duration: number;
30
- waveformPeaks: number[];
31
- isPublished?: boolean | undefined;
32
- postId?: string | null | undefined;
33
- genJobId?: string | null | undefined;
34
- editorJobId?: string | null | undefined;
19
+ prompt: string;
20
+ reaction: import("../..").USER_REACTION | null;
21
+ dislikeReason: string | null;
22
+ externalId: string | null;
23
+ title: string;
24
+ status: import("../..").JOB_STATUS;
25
+ error: string | null;
26
+ modelId: string;
27
+ price: number;
28
+ params: {
29
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE;
30
+ prompt: string;
31
+ style: string;
32
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
33
+ } | {
34
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL;
35
+ prompt: string;
36
+ style: string;
37
+ } | {
38
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM;
39
+ prompt: string;
40
+ style: string;
41
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
42
+ } | {
43
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
44
+ style: string;
45
+ } | {
46
+ prompt: string;
47
+ style?: string | undefined;
48
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
49
+ } | {
50
+ audioId: string;
51
+ uploadUrl: string;
52
+ style: string;
53
+ prompt?: string | undefined;
54
+ title?: string | undefined;
55
+ negativeTags?: string | undefined;
56
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
57
+ instrumental?: boolean | undefined;
58
+ } | {
59
+ audioId: string;
60
+ uploadUrl: string;
61
+ continueAt: number;
62
+ prompt: string;
63
+ style?: string | undefined;
64
+ title?: string | undefined;
65
+ negativeTags?: string | undefined;
66
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
67
+ instrumental?: boolean | undefined;
68
+ } | {
69
+ audioId: string;
70
+ uploadUrl: string;
71
+ style: string;
72
+ title?: string | undefined;
73
+ negativeTags?: string | undefined;
74
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
75
+ } | {
76
+ audioId: string;
77
+ uploadUrl: string;
78
+ prompt: string;
79
+ style: string;
80
+ title?: string | undefined;
81
+ negativeTags?: string | undefined;
82
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
83
+ };
84
+ tracks: {
85
+ uuid: string;
86
+ title: string;
87
+ audioId: string;
88
+ audioUrl: string;
89
+ audioFile?: {
90
+ uuid: string;
91
+ url: string;
92
+ mimeType: string;
93
+ duration: number | null;
94
+ originalName?: string | null | undefined;
95
+ } | null | undefined;
96
+ coverUrl: string;
97
+ prompt: string | null;
98
+ fullLyrics?: string | null | undefined;
99
+ tags: string;
100
+ duration: number;
101
+ waveformPeaks: number[];
102
+ isPublished?: boolean | undefined;
103
+ postId?: string | null | undefined;
104
+ genJobId?: string | null | undefined;
105
+ editorJobId?: string | null | undefined;
106
+ createdAt: Date;
107
+ updatedAt: Date;
108
+ }[];
109
+ attempts: any[];
110
+ userId?: string | null | undefined;
111
+ unregisteredUserId?: string | null | undefined;
112
+ isDeleted: boolean;
113
+ isFavorite: boolean;
114
+ tokenReservationId?: string | null | undefined;
115
+ createdAt: Date;
116
+ completedAt?: Date | null | undefined;
117
+ updatedAt: Date;
118
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
119
+ lyrics?: string | null | undefined;
120
+ }[] | undefined;
121
+ jobCount: number;
122
+ userId?: string | null | undefined;
123
+ unregisteredUserId?: string | null | undefined;
35
124
  createdAt: Date;
36
125
  updatedAt: Date;
37
- }[] | undefined;
38
- trackCount: number;
39
- userId?: string | null | undefined;
40
- unregisteredUserId?: string | null | undefined;
41
- createdAt: Date;
42
- updatedAt: Date;
43
- }[], unknown, z.core.$ZodTypeInternals<{
44
- uuid: string;
45
- title: string;
46
- tracks?: {
126
+ }[];
127
+ page: number;
128
+ totalPages: number;
129
+ total: number;
130
+ }, unknown, z.core.$ZodTypeInternals<{
131
+ data: {
47
132
  uuid: string;
48
133
  title: string;
49
- audioId: string;
50
- audioUrl: string;
51
- audioFile?: {
134
+ jobs?: {
52
135
  uuid: string;
53
- url: string;
54
- mimeType: string;
55
- duration: number | null;
56
- originalName?: string | null | undefined;
57
- } | null | undefined;
58
- coverUrl: string;
59
- prompt: string | null;
60
- fullLyrics?: string | null | undefined;
61
- tags: string;
62
- duration: number;
63
- waveformPeaks: number[];
64
- isPublished?: boolean | undefined;
65
- postId?: string | null | undefined;
66
- genJobId?: string | null | undefined;
67
- editorJobId?: string | null | undefined;
136
+ prompt: string;
137
+ reaction: import("../..").USER_REACTION | null;
138
+ dislikeReason: string | null;
139
+ externalId: string | null;
140
+ title: string;
141
+ status: import("../..").JOB_STATUS;
142
+ error: string | null;
143
+ modelId: string;
144
+ price: number;
145
+ params: {
146
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE;
147
+ prompt: string;
148
+ style: string;
149
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
150
+ } | {
151
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL;
152
+ prompt: string;
153
+ style: string;
154
+ } | {
155
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM;
156
+ prompt: string;
157
+ style: string;
158
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
159
+ } | {
160
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
161
+ style: string;
162
+ } | {
163
+ prompt: string;
164
+ style?: string | undefined;
165
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
166
+ } | {
167
+ audioId: string;
168
+ uploadUrl: string;
169
+ style: string;
170
+ prompt?: string | undefined;
171
+ title?: string | undefined;
172
+ negativeTags?: string | undefined;
173
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
174
+ instrumental?: boolean | undefined;
175
+ } | {
176
+ audioId: string;
177
+ uploadUrl: string;
178
+ continueAt: number;
179
+ prompt: string;
180
+ style?: string | undefined;
181
+ title?: string | undefined;
182
+ negativeTags?: string | undefined;
183
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
184
+ instrumental?: boolean | undefined;
185
+ } | {
186
+ audioId: string;
187
+ uploadUrl: string;
188
+ style: string;
189
+ title?: string | undefined;
190
+ negativeTags?: string | undefined;
191
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
192
+ } | {
193
+ audioId: string;
194
+ uploadUrl: string;
195
+ prompt: string;
196
+ style: string;
197
+ title?: string | undefined;
198
+ negativeTags?: string | undefined;
199
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
200
+ };
201
+ tracks: {
202
+ uuid: string;
203
+ title: string;
204
+ audioId: string;
205
+ audioUrl: string;
206
+ audioFile?: {
207
+ uuid: string;
208
+ url: string;
209
+ mimeType: string;
210
+ duration: number | null;
211
+ originalName?: string | null | undefined;
212
+ } | null | undefined;
213
+ coverUrl: string;
214
+ prompt: string | null;
215
+ fullLyrics?: string | null | undefined;
216
+ tags: string;
217
+ duration: number;
218
+ waveformPeaks: number[];
219
+ isPublished?: boolean | undefined;
220
+ postId?: string | null | undefined;
221
+ genJobId?: string | null | undefined;
222
+ editorJobId?: string | null | undefined;
223
+ createdAt: Date;
224
+ updatedAt: Date;
225
+ }[];
226
+ attempts: any[];
227
+ userId?: string | null | undefined;
228
+ unregisteredUserId?: string | null | undefined;
229
+ isDeleted: boolean;
230
+ isFavorite: boolean;
231
+ tokenReservationId?: string | null | undefined;
232
+ createdAt: Date;
233
+ completedAt?: Date | null | undefined;
234
+ updatedAt: Date;
235
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
236
+ lyrics?: string | null | undefined;
237
+ }[] | undefined;
238
+ jobCount: number;
239
+ userId?: string | null | undefined;
240
+ unregisteredUserId?: string | null | undefined;
68
241
  createdAt: Date;
69
242
  updatedAt: Date;
70
- }[] | undefined;
71
- trackCount: number;
72
- userId?: string | null | undefined;
73
- unregisteredUserId?: string | null | undefined;
74
- createdAt: Date;
75
- updatedAt: Date;
76
- }[], unknown>>>;
243
+ }[];
244
+ page: number;
245
+ totalPages: number;
246
+ total: number;
247
+ }, unknown>>>;
77
248
  code: z.ZodOptional<z.ZodString>;
78
249
  message: z.ZodOptional<z.ZodString>;
79
250
  }, z.core.$strip>;
@@ -10,6 +10,9 @@ var FindMusicPlaylistsQuery;
10
10
  .object({
11
11
  userId: zod_1.z.string().uuid().optional(),
12
12
  unregisteredUserId: zod_1.z.string().uuid().optional(),
13
+ title: zod_1.z.string().optional(),
14
+ limit: zod_1.z.coerce.number().min(1).optional(),
15
+ offset: zod_1.z.coerce.number().min(0).default(0).optional(),
13
16
  })
14
17
  .refine((data) => {
15
18
  return Boolean(data.userId) !== Boolean(data.unregisteredUserId);
@@ -17,5 +20,10 @@ var FindMusicPlaylistsQuery;
17
20
  message: 'At least userId or unregisteredUserId must be present',
18
21
  path: ['userId', 'unregisteredUserId'],
19
22
  });
20
- FindMusicPlaylistsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.array(music_playlist_schema_1.MusicPlaylistSchema));
23
+ FindMusicPlaylistsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
24
+ data: zod_1.z.array(music_playlist_schema_1.MusicPlaylistSchema),
25
+ page: zod_1.z.number(),
26
+ totalPages: zod_1.z.number(),
27
+ total: zod_1.z.number(),
28
+ }));
21
29
  })(FindMusicPlaylistsQuery || (exports.FindMusicPlaylistsQuery = FindMusicPlaylistsQuery = {}));
@@ -2,17 +2,30 @@ import { z } from 'zod';
2
2
  export declare namespace GetSpellCorrectorPriceCommand {
3
3
  const RequestSchema: z.ZodObject<{
4
4
  modelId: z.ZodString;
5
+ contentLength: z.ZodNumber;
5
6
  }, z.core.$strip>;
6
7
  type Request = z.infer<typeof RequestSchema>;
7
8
  const ResponseDataSchema: z.ZodObject<{
8
- price: z.ZodNumber;
9
+ modelPricing: z.ZodObject<{
10
+ inputPrice: z.ZodNumber;
11
+ outputPrice: z.ZodNumber;
12
+ }, z.core.$strip>;
13
+ effectivePromptLength: z.ZodNumber;
9
14
  }, z.core.$strip>;
10
15
  const ResponseSchema: z.ZodObject<{
11
16
  isSuccess: z.ZodBoolean;
12
17
  data: z.ZodOptional<z.ZodType<{
13
- price: number;
18
+ modelPricing: {
19
+ inputPrice: number;
20
+ outputPrice: number;
21
+ };
22
+ effectivePromptLength: number;
14
23
  }, unknown, z.core.$ZodTypeInternals<{
15
- price: number;
24
+ modelPricing: {
25
+ inputPrice: number;
26
+ outputPrice: number;
27
+ };
28
+ effectivePromptLength: number;
16
29
  }, unknown>>>;
17
30
  code: z.ZodOptional<z.ZodString>;
18
31
  message: z.ZodOptional<z.ZodString>;
@@ -7,9 +7,14 @@ var GetSpellCorrectorPriceCommand;
7
7
  (function (GetSpellCorrectorPriceCommand) {
8
8
  GetSpellCorrectorPriceCommand.RequestSchema = zod_1.z.object({
9
9
  modelId: zod_1.z.string().uuid(),
10
+ contentLength: zod_1.z.number().int().nonnegative(),
10
11
  });
11
12
  GetSpellCorrectorPriceCommand.ResponseDataSchema = zod_1.z.object({
12
- price: zod_1.z.number(),
13
+ modelPricing: zod_1.z.object({
14
+ inputPrice: zod_1.z.number(),
15
+ outputPrice: zod_1.z.number(),
16
+ }),
17
+ effectivePromptLength: zod_1.z.number(),
13
18
  });
14
19
  GetSpellCorrectorPriceCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(GetSpellCorrectorPriceCommand.ResponseDataSchema);
15
20
  })(GetSpellCorrectorPriceCommand || (exports.GetSpellCorrectorPriceCommand = GetSpellCorrectorPriceCommand = {}));
@@ -6,6 +6,17 @@ export declare namespace RetrySpellCorrectorJobCommand {
6
6
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  tokenReservationId: z.ZodString;
8
8
  precalculatedPrice: z.ZodNumber;
9
+ userHasActiveSubscriptionOrProduct: z.ZodBoolean;
10
+ document: z.ZodOptional<z.ZodObject<{
11
+ uuid: z.ZodString;
12
+ url: z.ZodString;
13
+ name: z.ZodString;
14
+ mimeType: z.ZodString;
15
+ type: z.ZodString;
16
+ size: z.ZodNumber;
17
+ extension: z.ZodString;
18
+ content: z.ZodString;
19
+ }, z.core.$strip>>;
9
20
  mock: z.ZodOptional<z.ZodBoolean>;
10
21
  }, z.core.$strip>;
11
22
  type Request = z.infer<typeof RequestSchema>;
@@ -13,11 +24,39 @@ export declare namespace RetrySpellCorrectorJobCommand {
13
24
  isSuccess: z.ZodBoolean;
14
25
  data: z.ZodOptional<z.ZodType<{
15
26
  uuid: string;
27
+ requestId: string | null;
28
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
29
+ sourceDocument: {
30
+ uuid: string;
31
+ url: string;
32
+ name: string;
33
+ mimeType: string;
34
+ type: string;
35
+ size: number;
36
+ extension: string;
37
+ } | null;
38
+ statistics: {
39
+ total: number;
40
+ spelling: number;
41
+ punctuation: number;
42
+ } | null;
43
+ outputDocument: {
44
+ uuid: string;
45
+ url: string;
46
+ name: string;
47
+ mimeType: string;
48
+ type: string;
49
+ size: number;
50
+ extension: string;
51
+ } | null;
16
52
  userId: string | null;
17
53
  unregisteredUserId: string | null;
18
54
  userInput: string;
19
55
  aiOutput: string | null;
20
56
  aiTokenUsage: number | null;
57
+ wordsChanged: number | null;
58
+ lettersChanged: number | null;
59
+ editOperations: number | null;
21
60
  price: number;
22
61
  status: import("../..").JOB_STATUS;
23
62
  title: string;
@@ -31,11 +70,39 @@ export declare namespace RetrySpellCorrectorJobCommand {
31
70
  completedAt: Date | null;
32
71
  }, unknown, z.core.$ZodTypeInternals<{
33
72
  uuid: string;
73
+ requestId: string | null;
74
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
75
+ sourceDocument: {
76
+ uuid: string;
77
+ url: string;
78
+ name: string;
79
+ mimeType: string;
80
+ type: string;
81
+ size: number;
82
+ extension: string;
83
+ } | null;
84
+ statistics: {
85
+ total: number;
86
+ spelling: number;
87
+ punctuation: number;
88
+ } | null;
89
+ outputDocument: {
90
+ uuid: string;
91
+ url: string;
92
+ name: string;
93
+ mimeType: string;
94
+ type: string;
95
+ size: number;
96
+ extension: string;
97
+ } | null;
34
98
  userId: string | null;
35
99
  unregisteredUserId: string | null;
36
100
  userInput: string;
37
101
  aiOutput: string | null;
38
102
  aiTokenUsage: number | null;
103
+ wordsChanged: number | null;
104
+ lettersChanged: number | null;
105
+ editOperations: number | null;
39
106
  price: number;
40
107
  status: import("../..").JOB_STATUS;
41
108
  title: string;
@@ -12,6 +12,8 @@ var RetrySpellCorrectorJobCommand;
12
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
13
  tokenReservationId: zod_1.z.string().uuid(),
14
14
  precalculatedPrice: zod_1.z.number(),
15
+ userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
16
+ document: models_1.SpellCorrectorDocumentInputSchema.optional(),
15
17
  mock: zod_1.z.boolean().optional(),
16
18
  });
17
19
  RetrySpellCorrectorJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.SpellCorrectorJobSchema);
@@ -13,11 +13,39 @@ export declare namespace SetReactionToSpellCorrectorJobCommand {
13
13
  isSuccess: z.ZodBoolean;
14
14
  data: z.ZodOptional<z.ZodType<{
15
15
  uuid: string;
16
+ requestId: string | null;
17
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
18
+ sourceDocument: {
19
+ uuid: string;
20
+ url: string;
21
+ name: string;
22
+ mimeType: string;
23
+ type: string;
24
+ size: number;
25
+ extension: string;
26
+ } | null;
27
+ statistics: {
28
+ total: number;
29
+ spelling: number;
30
+ punctuation: number;
31
+ } | null;
32
+ outputDocument: {
33
+ uuid: string;
34
+ url: string;
35
+ name: string;
36
+ mimeType: string;
37
+ type: string;
38
+ size: number;
39
+ extension: string;
40
+ } | null;
16
41
  userId: string | null;
17
42
  unregisteredUserId: string | null;
18
43
  userInput: string;
19
44
  aiOutput: string | null;
20
45
  aiTokenUsage: number | null;
46
+ wordsChanged: number | null;
47
+ lettersChanged: number | null;
48
+ editOperations: number | null;
21
49
  price: number;
22
50
  status: import("../..").JOB_STATUS;
23
51
  title: string;
@@ -31,11 +59,39 @@ export declare namespace SetReactionToSpellCorrectorJobCommand {
31
59
  completedAt: Date | null;
32
60
  }, unknown, z.core.$ZodTypeInternals<{
33
61
  uuid: string;
62
+ requestId: string | null;
63
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
64
+ sourceDocument: {
65
+ uuid: string;
66
+ url: string;
67
+ name: string;
68
+ mimeType: string;
69
+ type: string;
70
+ size: number;
71
+ extension: string;
72
+ } | null;
73
+ statistics: {
74
+ total: number;
75
+ spelling: number;
76
+ punctuation: number;
77
+ } | null;
78
+ outputDocument: {
79
+ uuid: string;
80
+ url: string;
81
+ name: string;
82
+ mimeType: string;
83
+ type: string;
84
+ size: number;
85
+ extension: string;
86
+ } | null;
34
87
  userId: string | null;
35
88
  unregisteredUserId: string | null;
36
89
  userInput: string;
37
90
  aiOutput: string | null;
38
91
  aiTokenUsage: number | null;
92
+ wordsChanged: number | null;
93
+ lettersChanged: number | null;
94
+ editOperations: number | null;
39
95
  price: number;
40
96
  status: import("../..").JOB_STATUS;
41
97
  title: string;
@@ -3,10 +3,22 @@ export declare namespace SpellCorrectorCommand {
3
3
  const RequestSchema: z.ZodObject<{
4
4
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- prompt: z.ZodString;
6
+ requestId: z.ZodString;
7
+ prompt: z.ZodOptional<z.ZodString>;
8
+ document: z.ZodOptional<z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ url: z.ZodString;
11
+ name: z.ZodString;
12
+ mimeType: z.ZodString;
13
+ type: z.ZodString;
14
+ size: z.ZodNumber;
15
+ extension: z.ZodString;
16
+ content: z.ZodString;
17
+ }, z.core.$strip>>;
7
18
  modelId: z.ZodString;
8
19
  tokenReservationId: z.ZodString;
9
20
  precalculatedPrice: z.ZodNumber;
21
+ userHasActiveSubscriptionOrProduct: z.ZodBoolean;
10
22
  mock: z.ZodOptional<z.ZodBoolean>;
11
23
  }, z.core.$strip>;
12
24
  type Request = z.infer<typeof RequestSchema>;
@@ -14,11 +26,39 @@ export declare namespace SpellCorrectorCommand {
14
26
  isSuccess: z.ZodBoolean;
15
27
  data: z.ZodOptional<z.ZodType<{
16
28
  uuid: string;
29
+ requestId: string | null;
30
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
31
+ sourceDocument: {
32
+ uuid: string;
33
+ url: string;
34
+ name: string;
35
+ mimeType: string;
36
+ type: string;
37
+ size: number;
38
+ extension: string;
39
+ } | null;
40
+ statistics: {
41
+ total: number;
42
+ spelling: number;
43
+ punctuation: number;
44
+ } | null;
45
+ outputDocument: {
46
+ uuid: string;
47
+ url: string;
48
+ name: string;
49
+ mimeType: string;
50
+ type: string;
51
+ size: number;
52
+ extension: string;
53
+ } | null;
17
54
  userId: string | null;
18
55
  unregisteredUserId: string | null;
19
56
  userInput: string;
20
57
  aiOutput: string | null;
21
58
  aiTokenUsage: number | null;
59
+ wordsChanged: number | null;
60
+ lettersChanged: number | null;
61
+ editOperations: number | null;
22
62
  price: number;
23
63
  status: import("../..").JOB_STATUS;
24
64
  title: string;
@@ -32,11 +72,39 @@ export declare namespace SpellCorrectorCommand {
32
72
  completedAt: Date | null;
33
73
  }, unknown, z.core.$ZodTypeInternals<{
34
74
  uuid: string;
75
+ requestId: string | null;
76
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
77
+ sourceDocument: {
78
+ uuid: string;
79
+ url: string;
80
+ name: string;
81
+ mimeType: string;
82
+ type: string;
83
+ size: number;
84
+ extension: string;
85
+ } | null;
86
+ statistics: {
87
+ total: number;
88
+ spelling: number;
89
+ punctuation: number;
90
+ } | null;
91
+ outputDocument: {
92
+ uuid: string;
93
+ url: string;
94
+ name: string;
95
+ mimeType: string;
96
+ type: string;
97
+ size: number;
98
+ extension: string;
99
+ } | null;
35
100
  userId: string | null;
36
101
  unregisteredUserId: string | null;
37
102
  userInput: string;
38
103
  aiOutput: string | null;
39
104
  aiTokenUsage: number | null;
105
+ wordsChanged: number | null;
106
+ lettersChanged: number | null;
107
+ editOperations: number | null;
40
108
  price: number;
41
109
  status: import("../..").JOB_STATUS;
42
110
  title: string;