@purpleschool/gptbot-tools 0.2.69 → 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 (29) 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/package.json +1 -1
@@ -12,32 +12,111 @@ export declare namespace UpdateMusicPlaylistCommand {
12
12
  data: z.ZodOptional<z.ZodType<{
13
13
  uuid: string;
14
14
  title: string;
15
- tracks?: {
15
+ jobs?: {
16
16
  uuid: string;
17
+ prompt: string;
18
+ reaction: import("../..").USER_REACTION | null;
19
+ dislikeReason: string | null;
20
+ externalId: string | null;
17
21
  title: string;
18
- audioId: string;
19
- audioUrl: string;
20
- audioFile?: {
22
+ status: import("../..").JOB_STATUS;
23
+ error: string | null;
24
+ modelId: string;
25
+ price: number;
26
+ params: {
27
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE;
28
+ prompt: string;
29
+ style: string;
30
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
31
+ } | {
32
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL;
33
+ prompt: string;
34
+ style: string;
35
+ } | {
36
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM;
37
+ prompt: string;
38
+ style: string;
39
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
40
+ } | {
41
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
42
+ style: string;
43
+ } | {
44
+ prompt: string;
45
+ style?: string | undefined;
46
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
47
+ } | {
48
+ audioId: string;
49
+ uploadUrl: string;
50
+ style: string;
51
+ prompt?: string | undefined;
52
+ title?: string | undefined;
53
+ negativeTags?: string | undefined;
54
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
55
+ instrumental?: boolean | undefined;
56
+ } | {
57
+ audioId: string;
58
+ uploadUrl: string;
59
+ continueAt: number;
60
+ prompt: string;
61
+ style?: string | undefined;
62
+ title?: string | undefined;
63
+ negativeTags?: string | undefined;
64
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
65
+ instrumental?: boolean | undefined;
66
+ } | {
67
+ audioId: string;
68
+ uploadUrl: string;
69
+ style: string;
70
+ title?: string | undefined;
71
+ negativeTags?: string | undefined;
72
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
73
+ } | {
74
+ audioId: string;
75
+ uploadUrl: string;
76
+ prompt: string;
77
+ style: string;
78
+ title?: string | undefined;
79
+ negativeTags?: string | undefined;
80
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
81
+ };
82
+ tracks: {
21
83
  uuid: string;
22
- url: string;
23
- mimeType: string;
24
- duration: number | null;
25
- originalName?: string | null | undefined;
26
- } | null | undefined;
27
- coverUrl: string;
28
- prompt: string | null;
29
- fullLyrics?: string | null | undefined;
30
- tags: string;
31
- duration: number;
32
- waveformPeaks: number[];
33
- isPublished?: boolean | undefined;
34
- postId?: string | null | undefined;
35
- genJobId?: string | null | undefined;
36
- editorJobId?: string | null | undefined;
84
+ title: string;
85
+ audioId: string;
86
+ audioUrl: string;
87
+ audioFile?: {
88
+ uuid: string;
89
+ url: string;
90
+ mimeType: string;
91
+ duration: number | null;
92
+ originalName?: string | null | undefined;
93
+ } | null | undefined;
94
+ coverUrl: string;
95
+ prompt: string | null;
96
+ fullLyrics?: string | null | undefined;
97
+ tags: string;
98
+ duration: number;
99
+ waveformPeaks: number[];
100
+ isPublished?: boolean | undefined;
101
+ postId?: string | null | undefined;
102
+ genJobId?: string | null | undefined;
103
+ editorJobId?: string | null | undefined;
104
+ createdAt: Date;
105
+ updatedAt: Date;
106
+ }[];
107
+ attempts: any[];
108
+ userId?: string | null | undefined;
109
+ unregisteredUserId?: string | null | undefined;
110
+ isDeleted: boolean;
111
+ isFavorite: boolean;
112
+ tokenReservationId?: string | null | undefined;
37
113
  createdAt: Date;
114
+ completedAt?: Date | null | undefined;
38
115
  updatedAt: Date;
116
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
117
+ lyrics?: string | null | undefined;
39
118
  }[] | undefined;
40
- trackCount: number;
119
+ jobCount: number;
41
120
  userId?: string | null | undefined;
42
121
  unregisteredUserId?: string | null | undefined;
43
122
  createdAt: Date;
@@ -45,32 +124,111 @@ export declare namespace UpdateMusicPlaylistCommand {
45
124
  }, unknown, z.core.$ZodTypeInternals<{
46
125
  uuid: string;
47
126
  title: string;
48
- tracks?: {
127
+ jobs?: {
49
128
  uuid: string;
129
+ prompt: string;
130
+ reaction: import("../..").USER_REACTION | null;
131
+ dislikeReason: string | null;
132
+ externalId: string | null;
50
133
  title: string;
51
- audioId: string;
52
- audioUrl: string;
53
- audioFile?: {
134
+ status: import("../..").JOB_STATUS;
135
+ error: string | null;
136
+ modelId: string;
137
+ price: number;
138
+ params: {
139
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE;
140
+ prompt: string;
141
+ style: string;
142
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
143
+ } | {
144
+ mode: import("..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL;
145
+ prompt: string;
146
+ style: string;
147
+ } | {
148
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM;
149
+ prompt: string;
150
+ style: string;
151
+ vocalGender: import("..").MUSIC_VOCAL_GENDER;
152
+ } | {
153
+ mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
154
+ style: string;
155
+ } | {
156
+ prompt: string;
157
+ style?: string | undefined;
158
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
159
+ } | {
160
+ audioId: string;
161
+ uploadUrl: string;
162
+ style: string;
163
+ prompt?: string | undefined;
164
+ title?: string | undefined;
165
+ negativeTags?: string | undefined;
166
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
167
+ instrumental?: boolean | undefined;
168
+ } | {
169
+ audioId: string;
170
+ uploadUrl: string;
171
+ continueAt: number;
172
+ prompt: string;
173
+ style?: string | undefined;
174
+ title?: string | undefined;
175
+ negativeTags?: string | undefined;
176
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
177
+ instrumental?: boolean | undefined;
178
+ } | {
179
+ audioId: string;
180
+ uploadUrl: string;
181
+ style: string;
182
+ title?: string | undefined;
183
+ negativeTags?: string | undefined;
184
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
185
+ } | {
186
+ audioId: string;
187
+ uploadUrl: string;
188
+ prompt: string;
189
+ style: string;
190
+ title?: string | undefined;
191
+ negativeTags?: string | undefined;
192
+ vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
193
+ };
194
+ tracks: {
54
195
  uuid: string;
55
- url: string;
56
- mimeType: string;
57
- duration: number | null;
58
- originalName?: string | null | undefined;
59
- } | null | undefined;
60
- coverUrl: string;
61
- prompt: string | null;
62
- fullLyrics?: string | null | undefined;
63
- tags: string;
64
- duration: number;
65
- waveformPeaks: number[];
66
- isPublished?: boolean | undefined;
67
- postId?: string | null | undefined;
68
- genJobId?: string | null | undefined;
69
- editorJobId?: string | null | undefined;
196
+ title: string;
197
+ audioId: string;
198
+ audioUrl: string;
199
+ audioFile?: {
200
+ uuid: string;
201
+ url: string;
202
+ mimeType: string;
203
+ duration: number | null;
204
+ originalName?: string | null | undefined;
205
+ } | null | undefined;
206
+ coverUrl: string;
207
+ prompt: string | null;
208
+ fullLyrics?: string | null | undefined;
209
+ tags: string;
210
+ duration: number;
211
+ waveformPeaks: number[];
212
+ isPublished?: boolean | undefined;
213
+ postId?: string | null | undefined;
214
+ genJobId?: string | null | undefined;
215
+ editorJobId?: string | null | undefined;
216
+ createdAt: Date;
217
+ updatedAt: Date;
218
+ }[];
219
+ attempts: any[];
220
+ userId?: string | null | undefined;
221
+ unregisteredUserId?: string | null | undefined;
222
+ isDeleted: boolean;
223
+ isFavorite: boolean;
224
+ tokenReservationId?: string | null | undefined;
70
225
  createdAt: Date;
226
+ completedAt?: Date | null | undefined;
71
227
  updatedAt: Date;
228
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
229
+ lyrics?: string | null | undefined;
72
230
  }[] | undefined;
73
- trackCount: number;
231
+ jobCount: number;
74
232
  userId?: string | null | undefined;
75
233
  unregisteredUserId?: string | null | undefined;
76
234
  createdAt: Date;
@@ -43,6 +43,10 @@ export declare namespace UpdatePublishedStatusMusicJobsCommand {
43
43
  } | {
44
44
  mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
45
45
  style: string;
46
+ } | {
47
+ prompt: string;
48
+ style?: string | undefined;
49
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
46
50
  } | {
47
51
  audioId: string;
48
52
  uploadUrl: string;
@@ -112,6 +116,8 @@ export declare namespace UpdatePublishedStatusMusicJobsCommand {
112
116
  createdAt: Date;
113
117
  completedAt?: Date | null | undefined;
114
118
  updatedAt: Date;
119
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
120
+ lyrics?: string | null | undefined;
115
121
  }, unknown, z.core.$ZodTypeInternals<{
116
122
  uuid: string;
117
123
  prompt: string;
@@ -140,6 +146,10 @@ export declare namespace UpdatePublishedStatusMusicJobsCommand {
140
146
  } | {
141
147
  mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
142
148
  style: string;
149
+ } | {
150
+ prompt: string;
151
+ style?: string | undefined;
152
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
143
153
  } | {
144
154
  audioId: string;
145
155
  uploadUrl: string;
@@ -209,6 +219,8 @@ export declare namespace UpdatePublishedStatusMusicJobsCommand {
209
219
  createdAt: Date;
210
220
  completedAt?: Date | null | undefined;
211
221
  updatedAt: Date;
222
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
223
+ lyrics?: string | null | undefined;
212
224
  }, unknown>>>;
213
225
  code: z.ZodOptional<z.ZodString>;
214
226
  message: z.ZodOptional<z.ZodString>;
@@ -1,8 +1,6 @@
1
1
  export declare enum MUSIC_ACTION_TYPE {
2
2
  LYRICS = "LYRICS",
3
3
  BOOST_STYLE = "BOOST_STYLE",
4
- REMOVE_VOCALS = "REMOVE_VOCALS",
5
- EXTRACT_VOCALS = "EXTRACT_VOCALS",
6
4
  COVER = "COVER",
7
5
  EXTEND = "EXTEND",
8
6
  ADD_INSTRUMENTAL = "ADD_INSTRUMENTAL",
@@ -5,8 +5,6 @@ var MUSIC_ACTION_TYPE;
5
5
  (function (MUSIC_ACTION_TYPE) {
6
6
  MUSIC_ACTION_TYPE["LYRICS"] = "LYRICS";
7
7
  MUSIC_ACTION_TYPE["BOOST_STYLE"] = "BOOST_STYLE";
8
- MUSIC_ACTION_TYPE["REMOVE_VOCALS"] = "REMOVE_VOCALS";
9
- MUSIC_ACTION_TYPE["EXTRACT_VOCALS"] = "EXTRACT_VOCALS";
10
8
  MUSIC_ACTION_TYPE["COVER"] = "COVER";
11
9
  MUSIC_ACTION_TYPE["EXTEND"] = "EXTEND";
12
10
  MUSIC_ACTION_TYPE["ADD_INSTRUMENTAL"] = "ADD_INSTRUMENTAL";
@@ -1,6 +1,4 @@
1
1
  export declare enum MUSIC_AUDIO_ACTION_TYPE {
2
- REMOVE_VOCALS = "removeVocals",
3
- EXTRACT_VOCALS = "extractVocals",
4
2
  COVER = "cover",
5
3
  EXTEND = "extend",
6
4
  ADD_INSTRUMENTAL = "addInstrumental",
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MUSIC_AUDIO_ACTION_TYPE = void 0;
4
4
  var MUSIC_AUDIO_ACTION_TYPE;
5
5
  (function (MUSIC_AUDIO_ACTION_TYPE) {
6
- MUSIC_AUDIO_ACTION_TYPE["REMOVE_VOCALS"] = "removeVocals";
7
- MUSIC_AUDIO_ACTION_TYPE["EXTRACT_VOCALS"] = "extractVocals";
8
6
  MUSIC_AUDIO_ACTION_TYPE["COVER"] = "cover";
9
7
  MUSIC_AUDIO_ACTION_TYPE["EXTEND"] = "extend";
10
8
  MUSIC_AUDIO_ACTION_TYPE["ADD_INSTRUMENTAL"] = "addInstrumental";
@@ -117,6 +117,10 @@ export declare const MusicAnyJobParamsSchema: z.ZodUnion<readonly [z.ZodDiscrimi
117
117
  mode: z.ZodLiteral<SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
118
118
  style: z.ZodString;
119
119
  }, z.core.$strip>], "mode">, z.ZodObject<{
120
+ prompt: z.ZodString;
121
+ style: z.ZodOptional<z.ZodString>;
122
+ structure: z.ZodEnum<typeof MUSIC_LYRICS_STRUCTURE>;
123
+ }, z.core.$strip>, z.ZodObject<{
120
124
  audioId: z.ZodString;
121
125
  uploadUrl: z.ZodString;
122
126
  style: z.ZodString;
@@ -187,6 +191,10 @@ export declare const MusicJobSchema: z.ZodObject<{
187
191
  mode: z.ZodLiteral<SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
188
192
  style: z.ZodString;
189
193
  }, z.core.$strip>], "mode">, z.ZodObject<{
194
+ prompt: z.ZodString;
195
+ style: z.ZodOptional<z.ZodString>;
196
+ structure: z.ZodEnum<typeof MUSIC_LYRICS_STRUCTURE>;
197
+ }, z.core.$strip>, z.ZodObject<{
190
198
  audioId: z.ZodString;
191
199
  uploadUrl: z.ZodString;
192
200
  style: z.ZodString;
@@ -255,5 +263,7 @@ export declare const MusicJobSchema: z.ZodObject<{
255
263
  createdAt: z.ZodDate;
256
264
  completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
257
265
  updatedAt: z.ZodDate;
266
+ actionType: z.ZodUnion<readonly [z.ZodEnum<typeof MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof MUSIC_AUDIO_ACTION_TYPE>]>;
267
+ lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
268
  }, z.core.$strip>;
259
269
  export type MusicJob = z.infer<typeof MusicJobSchema>;
@@ -92,27 +92,20 @@ exports.MusicEditRequestSchema = zod_1.z
92
92
  mock: zod_1.z.boolean().optional(),
93
93
  })
94
94
  .superRefine((data, ctx) => {
95
- const requiresModel = ![
96
- enums_1.MUSIC_AUDIO_ACTION_TYPE.REMOVE_VOCALS,
97
- enums_1.MUSIC_AUDIO_ACTION_TYPE.EXTRACT_VOCALS,
98
- ].includes(data.actionType);
99
- if (requiresModel && !data.modelId) {
95
+ if (!data.modelId) {
100
96
  ctx.addIssue({
101
97
  code: zod_1.z.ZodIssueCode.custom,
102
98
  message: 'modelId is required',
103
99
  path: ['modelId'],
104
100
  });
105
101
  }
106
- const paramsValidation = data.actionType === enums_1.MUSIC_AUDIO_ACTION_TYPE.REMOVE_VOCALS ||
107
- data.actionType === enums_1.MUSIC_AUDIO_ACTION_TYPE.EXTRACT_VOCALS
108
- ? exports.MusicSeparateVocalsParamsSchema.safeParse(data.params)
109
- : data.actionType === enums_1.MUSIC_AUDIO_ACTION_TYPE.COVER
110
- ? exports.MusicUploadCoverParamsSchema.safeParse(data.params)
111
- : data.actionType === enums_1.MUSIC_AUDIO_ACTION_TYPE.EXTEND
112
- ? exports.MusicUploadExtendParamsSchema.safeParse(data.params)
113
- : data.actionType === enums_1.MUSIC_AUDIO_ACTION_TYPE.ADD_INSTRUMENTAL
114
- ? exports.MusicAddInstrumentalParamsSchema.safeParse(data.params)
115
- : exports.MusicAddVocalsParamsSchema.safeParse(data.params);
102
+ const paramsValidation = data.actionType === enums_1.MUSIC_AUDIO_ACTION_TYPE.COVER
103
+ ? exports.MusicUploadCoverParamsSchema.safeParse(data.params)
104
+ : data.actionType === enums_1.MUSIC_AUDIO_ACTION_TYPE.EXTEND
105
+ ? exports.MusicUploadExtendParamsSchema.safeParse(data.params)
106
+ : data.actionType === enums_1.MUSIC_AUDIO_ACTION_TYPE.ADD_INSTRUMENTAL
107
+ ? exports.MusicAddInstrumentalParamsSchema.safeParse(data.params)
108
+ : exports.MusicAddVocalsParamsSchema.safeParse(data.params);
116
109
  if (!paramsValidation.success) {
117
110
  for (const issue of paramsValidation.error.issues) {
118
111
  ctx.addIssue(Object.assign(Object.assign({}, issue), { path: ['params', ...issue.path] }));
@@ -129,6 +122,7 @@ exports.MusicEditActionResultSchema = zod_1.z.object({
129
122
  });
130
123
  exports.MusicAnyJobParamsSchema = zod_1.z.union([
131
124
  exports.MusicJobParamsSchema,
125
+ exports.MusicLyricsParamsSchema,
132
126
  exports.MusicUploadCoverParamsSchema,
133
127
  exports.MusicUploadExtendParamsSchema,
134
128
  exports.MusicAddInstrumentalParamsSchema,
@@ -184,4 +178,9 @@ exports.MusicJobSchema = zod_1.z.object({
184
178
  createdAt: zod_1.z.date(),
185
179
  completedAt: zod_1.z.date().nullable().optional(),
186
180
  updatedAt: zod_1.z.date(),
181
+ actionType: zod_1.z.union([
182
+ zod_1.z.nativeEnum(enums_1.MUSIC_GENERATION_ACTION_TYPE),
183
+ zod_1.z.nativeEnum(enums_1.MUSIC_AUDIO_ACTION_TYPE),
184
+ ]),
185
+ lyrics: zod_1.z.string().nullable().optional(),
187
186
  });
@@ -2,32 +2,111 @@ import { z } from 'zod';
2
2
  export declare const MusicPlaylistSchema: z.ZodObject<{
3
3
  uuid: z.ZodString;
4
4
  title: z.ZodString;
5
- tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
6
  uuid: z.ZodString;
7
+ prompt: z.ZodString;
8
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../..").USER_REACTION>>;
9
+ dislikeReason: z.ZodNullable<z.ZodString>;
10
+ externalId: z.ZodNullable<z.ZodString>;
7
11
  title: z.ZodString;
8
- audioId: z.ZodString;
9
- audioUrl: z.ZodString;
10
- audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
+ status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
13
+ error: z.ZodNullable<z.ZodString>;
14
+ modelId: z.ZodString;
15
+ price: z.ZodNumber;
16
+ params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
17
+ mode: z.ZodLiteral<import("..").SUNO_MODE_TYPE.SIMPLE>;
18
+ prompt: z.ZodString;
19
+ style: z.ZodString;
20
+ vocalGender: z.ZodEnum<typeof import("..").MUSIC_VOCAL_GENDER>;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ mode: z.ZodLiteral<import("..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL>;
23
+ prompt: z.ZodString;
24
+ style: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ mode: z.ZodLiteral<import("..").SUNO_MODE_TYPE.CUSTOM>;
27
+ prompt: z.ZodString;
28
+ style: z.ZodString;
29
+ vocalGender: z.ZodEnum<typeof import("..").MUSIC_VOCAL_GENDER>;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ mode: z.ZodLiteral<import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
32
+ style: z.ZodString;
33
+ }, z.core.$strip>], "mode">, z.ZodObject<{
34
+ prompt: z.ZodString;
35
+ style: z.ZodOptional<z.ZodString>;
36
+ structure: z.ZodEnum<typeof import("..").MUSIC_LYRICS_STRUCTURE>;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ audioId: z.ZodString;
39
+ uploadUrl: z.ZodString;
40
+ style: z.ZodString;
41
+ prompt: z.ZodOptional<z.ZodString>;
42
+ title: z.ZodOptional<z.ZodString>;
43
+ negativeTags: z.ZodOptional<z.ZodString>;
44
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("..").MUSIC_VOCAL_GENDER>>;
45
+ instrumental: z.ZodOptional<z.ZodBoolean>;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ audioId: z.ZodString;
48
+ uploadUrl: z.ZodString;
49
+ continueAt: z.ZodNumber;
50
+ prompt: z.ZodString;
51
+ style: z.ZodOptional<z.ZodString>;
52
+ title: z.ZodOptional<z.ZodString>;
53
+ negativeTags: z.ZodOptional<z.ZodString>;
54
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("..").MUSIC_VOCAL_GENDER>>;
55
+ instrumental: z.ZodOptional<z.ZodBoolean>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ audioId: z.ZodString;
58
+ uploadUrl: z.ZodString;
59
+ style: z.ZodString;
60
+ title: z.ZodOptional<z.ZodString>;
61
+ negativeTags: z.ZodOptional<z.ZodString>;
62
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("..").MUSIC_VOCAL_GENDER>>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ audioId: z.ZodString;
65
+ uploadUrl: z.ZodString;
66
+ prompt: z.ZodString;
67
+ style: z.ZodString;
68
+ title: z.ZodOptional<z.ZodString>;
69
+ negativeTags: z.ZodOptional<z.ZodString>;
70
+ vocalGender: z.ZodOptional<z.ZodEnum<typeof import("..").MUSIC_VOCAL_GENDER>>;
71
+ }, z.core.$strip>]>;
72
+ tracks: z.ZodArray<z.ZodObject<{
11
73
  uuid: z.ZodString;
12
- url: z.ZodString;
13
- mimeType: z.ZodString;
14
- duration: z.ZodNullable<z.ZodNumber>;
15
- originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- }, z.core.$strip>>>;
17
- coverUrl: z.ZodString;
18
- prompt: z.ZodNullable<z.ZodString>;
19
- fullLyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- tags: z.ZodString;
21
- duration: z.ZodNumber;
22
- waveformPeaks: z.ZodArray<z.ZodNumber>;
23
- isPublished: z.ZodOptional<z.ZodBoolean>;
24
- postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ title: z.ZodString;
75
+ audioId: z.ZodString;
76
+ audioUrl: z.ZodString;
77
+ audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
78
+ uuid: z.ZodString;
79
+ url: z.ZodString;
80
+ mimeType: z.ZodString;
81
+ duration: z.ZodNullable<z.ZodNumber>;
82
+ originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ }, z.core.$strip>>>;
84
+ coverUrl: z.ZodString;
85
+ prompt: z.ZodNullable<z.ZodString>;
86
+ fullLyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ tags: z.ZodString;
88
+ duration: z.ZodNumber;
89
+ waveformPeaks: z.ZodArray<z.ZodNumber>;
90
+ isPublished: z.ZodOptional<z.ZodBoolean>;
91
+ postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ createdAt: z.ZodDate;
95
+ updatedAt: z.ZodDate;
96
+ }, z.core.$strip>>;
97
+ attempts: z.ZodArray<z.ZodAny>;
98
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ isDeleted: z.ZodBoolean;
101
+ isFavorite: z.ZodBoolean;
102
+ tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
103
  createdAt: z.ZodDate;
104
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
28
105
  updatedAt: z.ZodDate;
106
+ actionType: z.ZodUnion<readonly [z.ZodEnum<typeof import("..").MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof import("..").MUSIC_AUDIO_ACTION_TYPE>]>;
107
+ lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
108
  }, z.core.$strip>>>;
30
- trackCount: z.ZodNumber;
109
+ jobCount: z.ZodNumber;
31
110
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
111
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
112
  createdAt: z.ZodDate;
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MusicPlaylistSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const music_track_schema_1 = require("./music-track.schema");
5
+ const music_job_schema_1 = require("./music-job.schema");
6
6
  exports.MusicPlaylistSchema = zod_1.z.object({
7
7
  uuid: zod_1.z.string().uuid(),
8
8
  title: zod_1.z.string(),
9
- tracks: zod_1.z.array(music_track_schema_1.MusicTrackSchema).optional(),
10
- trackCount: zod_1.z.number(),
9
+ jobs: zod_1.z.array(music_job_schema_1.MusicJobSchema).optional(),
10
+ jobCount: zod_1.z.number(),
11
11
  userId: zod_1.z.string().uuid().nullable().optional(),
12
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
13
  createdAt: zod_1.z.date(),
@@ -36,6 +36,10 @@ export declare namespace FindMusicJobByIdQuery {
36
36
  } | {
37
37
  mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
38
38
  style: string;
39
+ } | {
40
+ prompt: string;
41
+ style?: string | undefined;
42
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
39
43
  } | {
40
44
  audioId: string;
41
45
  uploadUrl: string;
@@ -105,6 +109,8 @@ export declare namespace FindMusicJobByIdQuery {
105
109
  createdAt: Date;
106
110
  completedAt?: Date | null | undefined;
107
111
  updatedAt: Date;
112
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
113
+ lyrics?: string | null | undefined;
108
114
  }, unknown, z.core.$ZodTypeInternals<{
109
115
  uuid: string;
110
116
  prompt: string;
@@ -133,6 +139,10 @@ export declare namespace FindMusicJobByIdQuery {
133
139
  } | {
134
140
  mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
135
141
  style: string;
142
+ } | {
143
+ prompt: string;
144
+ style?: string | undefined;
145
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
136
146
  } | {
137
147
  audioId: string;
138
148
  uploadUrl: string;
@@ -202,6 +212,8 @@ export declare namespace FindMusicJobByIdQuery {
202
212
  createdAt: Date;
203
213
  completedAt?: Date | null | undefined;
204
214
  updatedAt: Date;
215
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
216
+ lyrics?: string | null | undefined;
205
217
  }, unknown>>>;
206
218
  code: z.ZodOptional<z.ZodString>;
207
219
  message: z.ZodOptional<z.ZodString>;
@@ -43,6 +43,10 @@ export declare namespace FindMusicJobsQuery {
43
43
  } | {
44
44
  mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
45
45
  style: string;
46
+ } | {
47
+ prompt: string;
48
+ style?: string | undefined;
49
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
46
50
  } | {
47
51
  audioId: string;
48
52
  uploadUrl: string;
@@ -112,6 +116,8 @@ export declare namespace FindMusicJobsQuery {
112
116
  createdAt: Date;
113
117
  completedAt?: Date | null | undefined;
114
118
  updatedAt: Date;
119
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
120
+ lyrics?: string | null | undefined;
115
121
  }[];
116
122
  page: number;
117
123
  totalPages: number;
@@ -145,6 +151,10 @@ export declare namespace FindMusicJobsQuery {
145
151
  } | {
146
152
  mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
147
153
  style: string;
154
+ } | {
155
+ prompt: string;
156
+ style?: string | undefined;
157
+ structure: import("..").MUSIC_LYRICS_STRUCTURE;
148
158
  } | {
149
159
  audioId: string;
150
160
  uploadUrl: string;
@@ -214,6 +224,8 @@ export declare namespace FindMusicJobsQuery {
214
224
  createdAt: Date;
215
225
  completedAt?: Date | null | undefined;
216
226
  updatedAt: Date;
227
+ actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
228
+ lyrics?: string | null | undefined;
217
229
  }[];
218
230
  page: number;
219
231
  totalPages: number;