@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.
- package/build/music/commands/add-track-to-music-playlist.command.d.ts +199 -41
- package/build/music/commands/add-track-to-music-playlist.command.js +1 -1
- package/build/music/commands/create-music-playlist.command.d.ts +198 -40
- package/build/music/commands/edit-music.command.d.ts +12 -0
- package/build/music/commands/generate-music.command.d.ts +18 -2
- package/build/music/commands/generate-music.command.js +1 -1
- package/build/music/commands/get-music-price.command.d.ts +2 -0
- package/build/music/commands/get-music-price.command.js +2 -0
- package/build/music/commands/remove-track-from-music-playlist.command.d.ts +199 -41
- package/build/music/commands/remove-track-from-music-playlist.command.js +1 -1
- package/build/music/commands/retry-music-job.command.d.ts +12 -0
- package/build/music/commands/set-reaction-to-music-job.command.d.ts +12 -0
- package/build/music/commands/update-music-job-favorite.command.d.ts +12 -0
- package/build/music/commands/update-music-job-title.command.d.ts +12 -0
- package/build/music/commands/update-music-playlist.command.d.ts +198 -40
- package/build/music/commands/update-published-status-music-jobs.command.d.ts +12 -0
- package/build/music/enums/music-action-type.enum.d.ts +0 -2
- package/build/music/enums/music-action-type.enum.js +0 -2
- package/build/music/enums/music-audio-action-type.enum.d.ts +0 -2
- package/build/music/enums/music-audio-action-type.enum.js +0 -2
- package/build/music/models/music-job.schema.d.ts +10 -0
- package/build/music/models/music-job.schema.js +14 -15
- package/build/music/models/music-playlist.schema.d.ts +99 -20
- package/build/music/models/music-playlist.schema.js +3 -3
- package/build/music/queries/find-music-job-by-id.query.d.ts +12 -0
- package/build/music/queries/find-music-jobs.query.d.ts +12 -0
- package/build/music/queries/find-music-playlists.query.d.ts +227 -56
- package/build/music/queries/find-music-playlists.query.js +9 -1
- 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
|
-
|
|
12
|
-
title: string;
|
|
13
|
-
tracks?: {
|
|
14
|
+
data: {
|
|
14
15
|
uuid: string;
|
|
15
16
|
title: string;
|
|
16
|
-
|
|
17
|
-
audioUrl: string;
|
|
18
|
-
audioFile?: {
|
|
17
|
+
jobs?: {
|
|
19
18
|
uuid: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
}[]
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
50
|
-
audioUrl: string;
|
|
51
|
-
audioFile?: {
|
|
134
|
+
jobs?: {
|
|
52
135
|
uuid: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
}[]
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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.
|
|
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 = {}));
|