@purpleschool/gptbot-tools 0.2.68 → 0.2.70

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 (40) hide show
  1. package/build/image-generation/commands/image-generation-model/get-image-generation-model-by-uuid.command.d.ts +2 -0
  2. package/build/image-generation/enums/image-generation-model-strategy.enum.d.ts +1 -0
  3. package/build/image-generation/enums/image-generation-model-strategy.enum.js +1 -0
  4. package/build/image-generation/models/image-generation-config.schema.d.ts +1 -0
  5. package/build/image-generation/models/image-generation-model.schema.d.ts +3 -0
  6. package/build/image-generation/models/image-generation-model.schema.js +1 -0
  7. package/build/image-generation/queries/get-image-generation-config.query.d.ts +2 -0
  8. package/build/music/commands/add-track-to-music-playlist.command.d.ts +199 -41
  9. package/build/music/commands/add-track-to-music-playlist.command.js +1 -1
  10. package/build/music/commands/create-music-playlist.command.d.ts +198 -40
  11. package/build/music/commands/edit-music.command.d.ts +12 -0
  12. package/build/music/commands/generate-music.command.d.ts +18 -2
  13. package/build/music/commands/generate-music.command.js +1 -1
  14. package/build/music/commands/get-music-price.command.d.ts +2 -0
  15. package/build/music/commands/get-music-price.command.js +2 -0
  16. package/build/music/commands/remove-track-from-music-playlist.command.d.ts +199 -41
  17. package/build/music/commands/remove-track-from-music-playlist.command.js +1 -1
  18. package/build/music/commands/retry-music-job.command.d.ts +12 -0
  19. package/build/music/commands/set-reaction-to-music-job.command.d.ts +12 -0
  20. package/build/music/commands/update-music-job-favorite.command.d.ts +12 -0
  21. package/build/music/commands/update-music-job-title.command.d.ts +12 -0
  22. package/build/music/commands/update-music-playlist.command.d.ts +198 -40
  23. package/build/music/commands/update-published-status-music-jobs.command.d.ts +12 -0
  24. package/build/music/enums/music-action-type.enum.d.ts +0 -2
  25. package/build/music/enums/music-action-type.enum.js +0 -2
  26. package/build/music/enums/music-audio-action-type.enum.d.ts +0 -2
  27. package/build/music/enums/music-audio-action-type.enum.js +0 -2
  28. package/build/music/models/music-job.schema.d.ts +10 -0
  29. package/build/music/models/music-job.schema.js +14 -15
  30. package/build/music/models/music-playlist.schema.d.ts +99 -20
  31. package/build/music/models/music-playlist.schema.js +3 -3
  32. package/build/music/queries/find-music-job-by-id.query.d.ts +12 -0
  33. package/build/music/queries/find-music-jobs.query.d.ts +12 -0
  34. package/build/music/queries/find-music-playlists.query.d.ts +227 -56
  35. package/build/music/queries/find-music-playlists.query.js +9 -1
  36. package/build/tools/models/global-tools-config.schema.d.ts +1 -0
  37. package/build/tools/models/tools-with-configs.schema.d.ts +2 -0
  38. package/build/tools/queries/get-global-tools-config.query.d.ts +2 -0
  39. package/build/tools/queries/get-tools-with-configs.query.d.ts +2 -0
  40. 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 = {}));
@@ -349,6 +349,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
349
349
  condition: z.ZodObject<{
350
350
  resolution: z.ZodOptional<z.ZodString>;
351
351
  withoutSub: z.ZodOptional<z.ZodBoolean>;
352
+ perAttachedImage: z.ZodOptional<z.ZodBoolean>;
352
353
  }, z.core.$strip>;
353
354
  value: z.ZodNumber;
354
355
  }, z.core.$strip>>;
@@ -409,6 +409,7 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
409
409
  condition: z.ZodObject<{
410
410
  resolution: z.ZodOptional<z.ZodString>;
411
411
  withoutSub: z.ZodOptional<z.ZodBoolean>;
412
+ perAttachedImage: z.ZodOptional<z.ZodBoolean>;
412
413
  }, z.core.$strip>;
413
414
  value: z.ZodNumber;
414
415
  }, z.core.$strip>>;
@@ -1613,6 +1614,7 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
1613
1614
  condition: z.ZodObject<{
1614
1615
  resolution: z.ZodOptional<z.ZodString>;
1615
1616
  withoutSub: z.ZodOptional<z.ZodBoolean>;
1617
+ perAttachedImage: z.ZodOptional<z.ZodBoolean>;
1616
1618
  }, z.core.$strip>;
1617
1619
  value: z.ZodNumber;
1618
1620
  }, z.core.$strip>>;
@@ -356,6 +356,7 @@ export declare namespace GetGlobalToolsConfigQuery {
356
356
  condition: {
357
357
  resolution?: string | undefined;
358
358
  withoutSub?: boolean | undefined;
359
+ perAttachedImage?: boolean | undefined;
359
360
  };
360
361
  value: number;
361
362
  }[];
@@ -1343,6 +1344,7 @@ export declare namespace GetGlobalToolsConfigQuery {
1343
1344
  condition: {
1344
1345
  resolution?: string | undefined;
1345
1346
  withoutSub?: boolean | undefined;
1347
+ perAttachedImage?: boolean | undefined;
1346
1348
  };
1347
1349
  value: number;
1348
1350
  }[];
@@ -415,6 +415,7 @@ export declare namespace GetToolsWithConfigsQuery {
415
415
  condition: {
416
416
  resolution?: string | undefined;
417
417
  withoutSub?: boolean | undefined;
418
+ perAttachedImage?: boolean | undefined;
418
419
  };
419
420
  value: number;
420
421
  }[];
@@ -1617,6 +1618,7 @@ export declare namespace GetToolsWithConfigsQuery {
1617
1618
  condition: {
1618
1619
  resolution?: string | undefined;
1619
1620
  withoutSub?: boolean | undefined;
1621
+ perAttachedImage?: boolean | undefined;
1620
1622
  };
1621
1623
  value: number;
1622
1624
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.68",
3
+ "version": "0.2.70",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [