@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.
- 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/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
- package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
- package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
- package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
- package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
- package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
- package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
- package/build/spell-corrector/constants/index.d.ts +1 -0
- package/build/spell-corrector/constants/index.js +17 -0
- package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
- package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
- package/build/spell-corrector/enums/index.d.ts +1 -0
- package/build/spell-corrector/enums/index.js +17 -0
- package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
- package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
- package/build/spell-corrector/index.d.ts +2 -0
- package/build/spell-corrector/index.js +2 -0
- package/build/spell-corrector/models/index.d.ts +2 -0
- package/build/spell-corrector/models/index.js +2 -0
- package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
- package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
- package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
- package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
- package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
- package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
- package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
- package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
- package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
- package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
- package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
- package/build/tools/models/global-tools-config.schema.d.ts +5 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +10 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +10 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +10 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare namespace AddTrackToMusicPlaylistCommand {
|
|
3
3
|
const RequestSchema: z.ZodObject<{
|
|
4
4
|
playlistId: z.ZodString;
|
|
5
|
-
|
|
5
|
+
jobId: z.ZodString;
|
|
6
6
|
userId: z.ZodOptional<z.ZodString>;
|
|
7
7
|
unregisteredUserId: z.ZodOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strip>;
|
|
@@ -12,32 +12,111 @@ export declare namespace AddTrackToMusicPlaylistCommand {
|
|
|
12
12
|
data: z.ZodOptional<z.ZodType<{
|
|
13
13
|
uuid: string;
|
|
14
14
|
title: string;
|
|
15
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
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 AddTrackToMusicPlaylistCommand {
|
|
|
45
124
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
46
125
|
uuid: string;
|
|
47
126
|
title: string;
|
|
48
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
231
|
+
jobCount: number;
|
|
74
232
|
userId?: string | null | undefined;
|
|
75
233
|
unregisteredUserId?: string | null | undefined;
|
|
76
234
|
createdAt: Date;
|
|
@@ -9,7 +9,7 @@ var AddTrackToMusicPlaylistCommand;
|
|
|
9
9
|
AddTrackToMusicPlaylistCommand.RequestSchema = zod_1.z
|
|
10
10
|
.object({
|
|
11
11
|
playlistId: zod_1.z.string().uuid(),
|
|
12
|
-
|
|
12
|
+
jobId: zod_1.z.string().uuid(),
|
|
13
13
|
userId: zod_1.z.string().uuid().optional(),
|
|
14
14
|
unregisteredUserId: zod_1.z.string().uuid().optional(),
|
|
15
15
|
})
|
|
@@ -11,32 +11,111 @@ export declare namespace CreateMusicPlaylistCommand {
|
|
|
11
11
|
data: z.ZodOptional<z.ZodType<{
|
|
12
12
|
uuid: string;
|
|
13
13
|
title: string;
|
|
14
|
-
|
|
14
|
+
jobs?: {
|
|
15
15
|
uuid: string;
|
|
16
|
+
prompt: string;
|
|
17
|
+
reaction: import("../..").USER_REACTION | null;
|
|
18
|
+
dislikeReason: string | null;
|
|
19
|
+
externalId: string | null;
|
|
16
20
|
title: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
status: import("../..").JOB_STATUS;
|
|
22
|
+
error: string | null;
|
|
23
|
+
modelId: string;
|
|
24
|
+
price: number;
|
|
25
|
+
params: {
|
|
26
|
+
mode: import("..").SUNO_MODE_TYPE.SIMPLE;
|
|
27
|
+
prompt: string;
|
|
28
|
+
style: string;
|
|
29
|
+
vocalGender: import("..").MUSIC_VOCAL_GENDER;
|
|
30
|
+
} | {
|
|
31
|
+
mode: import("..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL;
|
|
32
|
+
prompt: string;
|
|
33
|
+
style: string;
|
|
34
|
+
} | {
|
|
35
|
+
mode: import("..").SUNO_MODE_TYPE.CUSTOM;
|
|
36
|
+
prompt: string;
|
|
37
|
+
style: string;
|
|
38
|
+
vocalGender: import("..").MUSIC_VOCAL_GENDER;
|
|
39
|
+
} | {
|
|
40
|
+
mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
|
|
41
|
+
style: string;
|
|
42
|
+
} | {
|
|
43
|
+
prompt: string;
|
|
44
|
+
style?: string | undefined;
|
|
45
|
+
structure: import("..").MUSIC_LYRICS_STRUCTURE;
|
|
46
|
+
} | {
|
|
47
|
+
audioId: string;
|
|
48
|
+
uploadUrl: string;
|
|
49
|
+
style: string;
|
|
50
|
+
prompt?: string | undefined;
|
|
51
|
+
title?: string | undefined;
|
|
52
|
+
negativeTags?: string | undefined;
|
|
53
|
+
vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
|
|
54
|
+
instrumental?: boolean | undefined;
|
|
55
|
+
} | {
|
|
56
|
+
audioId: string;
|
|
57
|
+
uploadUrl: string;
|
|
58
|
+
continueAt: number;
|
|
59
|
+
prompt: string;
|
|
60
|
+
style?: string | undefined;
|
|
61
|
+
title?: string | undefined;
|
|
62
|
+
negativeTags?: string | undefined;
|
|
63
|
+
vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
|
|
64
|
+
instrumental?: boolean | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
audioId: string;
|
|
67
|
+
uploadUrl: string;
|
|
68
|
+
style: string;
|
|
69
|
+
title?: string | undefined;
|
|
70
|
+
negativeTags?: string | undefined;
|
|
71
|
+
vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
|
|
72
|
+
} | {
|
|
73
|
+
audioId: string;
|
|
74
|
+
uploadUrl: string;
|
|
75
|
+
prompt: string;
|
|
76
|
+
style: string;
|
|
77
|
+
title?: string | undefined;
|
|
78
|
+
negativeTags?: string | undefined;
|
|
79
|
+
vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
|
|
80
|
+
};
|
|
81
|
+
tracks: {
|
|
20
82
|
uuid: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
83
|
+
title: string;
|
|
84
|
+
audioId: string;
|
|
85
|
+
audioUrl: string;
|
|
86
|
+
audioFile?: {
|
|
87
|
+
uuid: string;
|
|
88
|
+
url: string;
|
|
89
|
+
mimeType: string;
|
|
90
|
+
duration: number | null;
|
|
91
|
+
originalName?: string | null | undefined;
|
|
92
|
+
} | null | undefined;
|
|
93
|
+
coverUrl: string;
|
|
94
|
+
prompt: string | null;
|
|
95
|
+
fullLyrics?: string | null | undefined;
|
|
96
|
+
tags: string;
|
|
97
|
+
duration: number;
|
|
98
|
+
waveformPeaks: number[];
|
|
99
|
+
isPublished?: boolean | undefined;
|
|
100
|
+
postId?: string | null | undefined;
|
|
101
|
+
genJobId?: string | null | undefined;
|
|
102
|
+
editorJobId?: string | null | undefined;
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
updatedAt: Date;
|
|
105
|
+
}[];
|
|
106
|
+
attempts: any[];
|
|
107
|
+
userId?: string | null | undefined;
|
|
108
|
+
unregisteredUserId?: string | null | undefined;
|
|
109
|
+
isDeleted: boolean;
|
|
110
|
+
isFavorite: boolean;
|
|
111
|
+
tokenReservationId?: string | null | undefined;
|
|
36
112
|
createdAt: Date;
|
|
113
|
+
completedAt?: Date | null | undefined;
|
|
37
114
|
updatedAt: Date;
|
|
115
|
+
actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
|
|
116
|
+
lyrics?: string | null | undefined;
|
|
38
117
|
}[] | undefined;
|
|
39
|
-
|
|
118
|
+
jobCount: number;
|
|
40
119
|
userId?: string | null | undefined;
|
|
41
120
|
unregisteredUserId?: string | null | undefined;
|
|
42
121
|
createdAt: Date;
|
|
@@ -44,32 +123,111 @@ export declare namespace CreateMusicPlaylistCommand {
|
|
|
44
123
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
45
124
|
uuid: string;
|
|
46
125
|
title: string;
|
|
47
|
-
|
|
126
|
+
jobs?: {
|
|
48
127
|
uuid: string;
|
|
128
|
+
prompt: string;
|
|
129
|
+
reaction: import("../..").USER_REACTION | null;
|
|
130
|
+
dislikeReason: string | null;
|
|
131
|
+
externalId: string | null;
|
|
49
132
|
title: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
133
|
+
status: import("../..").JOB_STATUS;
|
|
134
|
+
error: string | null;
|
|
135
|
+
modelId: string;
|
|
136
|
+
price: number;
|
|
137
|
+
params: {
|
|
138
|
+
mode: import("..").SUNO_MODE_TYPE.SIMPLE;
|
|
139
|
+
prompt: string;
|
|
140
|
+
style: string;
|
|
141
|
+
vocalGender: import("..").MUSIC_VOCAL_GENDER;
|
|
142
|
+
} | {
|
|
143
|
+
mode: import("..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL;
|
|
144
|
+
prompt: string;
|
|
145
|
+
style: string;
|
|
146
|
+
} | {
|
|
147
|
+
mode: import("..").SUNO_MODE_TYPE.CUSTOM;
|
|
148
|
+
prompt: string;
|
|
149
|
+
style: string;
|
|
150
|
+
vocalGender: import("..").MUSIC_VOCAL_GENDER;
|
|
151
|
+
} | {
|
|
152
|
+
mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
|
|
153
|
+
style: string;
|
|
154
|
+
} | {
|
|
155
|
+
prompt: string;
|
|
156
|
+
style?: string | undefined;
|
|
157
|
+
structure: import("..").MUSIC_LYRICS_STRUCTURE;
|
|
158
|
+
} | {
|
|
159
|
+
audioId: string;
|
|
160
|
+
uploadUrl: string;
|
|
161
|
+
style: string;
|
|
162
|
+
prompt?: string | undefined;
|
|
163
|
+
title?: string | undefined;
|
|
164
|
+
negativeTags?: string | undefined;
|
|
165
|
+
vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
|
|
166
|
+
instrumental?: boolean | undefined;
|
|
167
|
+
} | {
|
|
168
|
+
audioId: string;
|
|
169
|
+
uploadUrl: string;
|
|
170
|
+
continueAt: number;
|
|
171
|
+
prompt: string;
|
|
172
|
+
style?: string | undefined;
|
|
173
|
+
title?: string | undefined;
|
|
174
|
+
negativeTags?: string | undefined;
|
|
175
|
+
vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
|
|
176
|
+
instrumental?: boolean | undefined;
|
|
177
|
+
} | {
|
|
178
|
+
audioId: string;
|
|
179
|
+
uploadUrl: string;
|
|
180
|
+
style: string;
|
|
181
|
+
title?: string | undefined;
|
|
182
|
+
negativeTags?: string | undefined;
|
|
183
|
+
vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
|
|
184
|
+
} | {
|
|
185
|
+
audioId: string;
|
|
186
|
+
uploadUrl: string;
|
|
187
|
+
prompt: string;
|
|
188
|
+
style: string;
|
|
189
|
+
title?: string | undefined;
|
|
190
|
+
negativeTags?: string | undefined;
|
|
191
|
+
vocalGender?: import("..").MUSIC_VOCAL_GENDER | undefined;
|
|
192
|
+
};
|
|
193
|
+
tracks: {
|
|
53
194
|
uuid: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
195
|
+
title: string;
|
|
196
|
+
audioId: string;
|
|
197
|
+
audioUrl: string;
|
|
198
|
+
audioFile?: {
|
|
199
|
+
uuid: string;
|
|
200
|
+
url: string;
|
|
201
|
+
mimeType: string;
|
|
202
|
+
duration: number | null;
|
|
203
|
+
originalName?: string | null | undefined;
|
|
204
|
+
} | null | undefined;
|
|
205
|
+
coverUrl: string;
|
|
206
|
+
prompt: string | null;
|
|
207
|
+
fullLyrics?: string | null | undefined;
|
|
208
|
+
tags: string;
|
|
209
|
+
duration: number;
|
|
210
|
+
waveformPeaks: number[];
|
|
211
|
+
isPublished?: boolean | undefined;
|
|
212
|
+
postId?: string | null | undefined;
|
|
213
|
+
genJobId?: string | null | undefined;
|
|
214
|
+
editorJobId?: string | null | undefined;
|
|
215
|
+
createdAt: Date;
|
|
216
|
+
updatedAt: Date;
|
|
217
|
+
}[];
|
|
218
|
+
attempts: any[];
|
|
219
|
+
userId?: string | null | undefined;
|
|
220
|
+
unregisteredUserId?: string | null | undefined;
|
|
221
|
+
isDeleted: boolean;
|
|
222
|
+
isFavorite: boolean;
|
|
223
|
+
tokenReservationId?: string | null | undefined;
|
|
69
224
|
createdAt: Date;
|
|
225
|
+
completedAt?: Date | null | undefined;
|
|
70
226
|
updatedAt: Date;
|
|
227
|
+
actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
|
|
228
|
+
lyrics?: string | null | undefined;
|
|
71
229
|
}[] | undefined;
|
|
72
|
-
|
|
230
|
+
jobCount: number;
|
|
73
231
|
userId?: string | null | undefined;
|
|
74
232
|
unregisteredUserId?: string | null | undefined;
|
|
75
233
|
createdAt: Date;
|
|
@@ -40,6 +40,10 @@ export declare namespace EditMusicCommand {
|
|
|
40
40
|
} | {
|
|
41
41
|
mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
|
|
42
42
|
style: string;
|
|
43
|
+
} | {
|
|
44
|
+
prompt: string;
|
|
45
|
+
style?: string | undefined;
|
|
46
|
+
structure: import("..").MUSIC_LYRICS_STRUCTURE;
|
|
43
47
|
} | {
|
|
44
48
|
audioId: string;
|
|
45
49
|
uploadUrl: string;
|
|
@@ -109,6 +113,8 @@ export declare namespace EditMusicCommand {
|
|
|
109
113
|
createdAt: Date;
|
|
110
114
|
completedAt?: Date | null | undefined;
|
|
111
115
|
updatedAt: Date;
|
|
116
|
+
actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
|
|
117
|
+
lyrics?: string | null | undefined;
|
|
112
118
|
} | {
|
|
113
119
|
actionType: import("..").MUSIC_AUDIO_ACTION_TYPE;
|
|
114
120
|
url: string;
|
|
@@ -144,6 +150,10 @@ export declare namespace EditMusicCommand {
|
|
|
144
150
|
} | {
|
|
145
151
|
mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
|
|
146
152
|
style: string;
|
|
153
|
+
} | {
|
|
154
|
+
prompt: string;
|
|
155
|
+
style?: string | undefined;
|
|
156
|
+
structure: import("..").MUSIC_LYRICS_STRUCTURE;
|
|
147
157
|
} | {
|
|
148
158
|
audioId: string;
|
|
149
159
|
uploadUrl: string;
|
|
@@ -213,6 +223,8 @@ export declare namespace EditMusicCommand {
|
|
|
213
223
|
createdAt: Date;
|
|
214
224
|
completedAt?: Date | null | undefined;
|
|
215
225
|
updatedAt: Date;
|
|
226
|
+
actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | import("..").MUSIC_GENERATION_ACTION_TYPE;
|
|
227
|
+
lyrics?: string | null | undefined;
|
|
216
228
|
} | {
|
|
217
229
|
actionType: import("..").MUSIC_AUDIO_ACTION_TYPE;
|
|
218
230
|
url: string;
|
|
@@ -7,7 +7,7 @@ export declare namespace GenerateMusicCommand {
|
|
|
7
7
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
actionType: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof MUSIC_GENERATION_ACTION_TYPE>>>;
|
|
9
9
|
modelId: z.ZodString;
|
|
10
|
-
params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
11
|
mode: z.ZodLiteral<import("..").SUNO_MODE_TYPE.SIMPLE>;
|
|
12
12
|
prompt: z.ZodString;
|
|
13
13
|
style: z.ZodString;
|
|
@@ -24,7 +24,11 @@ export declare namespace GenerateMusicCommand {
|
|
|
24
24
|
}, z.core.$strip>, z.ZodObject<{
|
|
25
25
|
mode: z.ZodLiteral<import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
26
26
|
style: z.ZodString;
|
|
27
|
-
}, z.core.$strip>], "mode"
|
|
27
|
+
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
28
|
+
prompt: z.ZodString;
|
|
29
|
+
style: z.ZodOptional<z.ZodString>;
|
|
30
|
+
structure: z.ZodEnum<typeof import("..").MUSIC_LYRICS_STRUCTURE>;
|
|
31
|
+
}, z.core.$strip>]>;
|
|
28
32
|
tokenReservationId: z.ZodString;
|
|
29
33
|
precalculatedPrice: z.ZodNumber;
|
|
30
34
|
userHasActiveSubscriptionOrProduct: z.ZodBoolean;
|
|
@@ -61,6 +65,10 @@ export declare namespace GenerateMusicCommand {
|
|
|
61
65
|
} | {
|
|
62
66
|
mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
|
|
63
67
|
style: string;
|
|
68
|
+
} | {
|
|
69
|
+
prompt: string;
|
|
70
|
+
style?: string | undefined;
|
|
71
|
+
structure: import("..").MUSIC_LYRICS_STRUCTURE;
|
|
64
72
|
} | {
|
|
65
73
|
audioId: string;
|
|
66
74
|
uploadUrl: string;
|
|
@@ -130,6 +138,8 @@ export declare namespace GenerateMusicCommand {
|
|
|
130
138
|
createdAt: Date;
|
|
131
139
|
completedAt?: Date | null | undefined;
|
|
132
140
|
updatedAt: Date;
|
|
141
|
+
actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | MUSIC_GENERATION_ACTION_TYPE;
|
|
142
|
+
lyrics?: string | null | undefined;
|
|
133
143
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
134
144
|
uuid: string;
|
|
135
145
|
prompt: string;
|
|
@@ -158,6 +168,10 @@ export declare namespace GenerateMusicCommand {
|
|
|
158
168
|
} | {
|
|
159
169
|
mode: import("..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL;
|
|
160
170
|
style: string;
|
|
171
|
+
} | {
|
|
172
|
+
prompt: string;
|
|
173
|
+
style?: string | undefined;
|
|
174
|
+
structure: import("..").MUSIC_LYRICS_STRUCTURE;
|
|
161
175
|
} | {
|
|
162
176
|
audioId: string;
|
|
163
177
|
uploadUrl: string;
|
|
@@ -227,6 +241,8 @@ export declare namespace GenerateMusicCommand {
|
|
|
227
241
|
createdAt: Date;
|
|
228
242
|
completedAt?: Date | null | undefined;
|
|
229
243
|
updatedAt: Date;
|
|
244
|
+
actionType: import("..").MUSIC_AUDIO_ACTION_TYPE | MUSIC_GENERATION_ACTION_TYPE;
|
|
245
|
+
lyrics?: string | null | undefined;
|
|
230
246
|
}, unknown>>>;
|
|
231
247
|
code: z.ZodOptional<z.ZodString>;
|
|
232
248
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -18,7 +18,7 @@ var GenerateMusicCommand;
|
|
|
18
18
|
.optional()
|
|
19
19
|
.default(enums_1.MUSIC_GENERATION_ACTION_TYPE.GENERATE),
|
|
20
20
|
modelId: zod_1.z.string(),
|
|
21
|
-
params: models_1.MusicJobParamsSchema,
|
|
21
|
+
params: zod_1.z.union([models_1.MusicJobParamsSchema, models_1.MusicLyricsParamsSchema]),
|
|
22
22
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
23
23
|
precalculatedPrice: zod_1.z.number(),
|
|
24
24
|
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { MUSIC_GENERATION_ACTION_TYPE } from '../enums';
|
|
2
3
|
export declare namespace GetMusicPriceCommand {
|
|
3
4
|
const RequestSchema: z.ZodObject<{
|
|
4
5
|
modelId: z.ZodString;
|
|
6
|
+
actionType: z.ZodOptional<z.ZodEnum<typeof MUSIC_GENERATION_ACTION_TYPE>>;
|
|
5
7
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
8
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
9
|
params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|