@purpleschool/gptbot 0.15.63 → 0.15.65
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/api/controllers/http/spell-corrector.d.ts +1 -0
- package/build/api/controllers/http/spell-corrector.js +1 -0
- package/build/api/routes.d.ts +2 -0
- package/build/api/routes.js +2 -0
- package/build/commands/community/create-community-post.command.d.ts +4 -0
- package/build/commands/community/get-all-community-posts-by-criteria.command.d.ts +4 -0
- package/build/commands/community/get-community-post-by-uuid.command.d.ts +4 -0
- package/build/commands/community/get-my-community-posts-by-criteria.command.d.ts +4 -0
- package/build/commands/community/get-my-favorite-community-posts.command.d.ts +4 -0
- package/build/commands/community/get-my-likes-community-posts.command.d.ts +4 -0
- package/build/commands/community/set-like-community-post.command.d.ts +4 -0
- package/build/commands/tools/music/add-track-to-music-playlist.command.d.ts +90 -23
- package/build/commands/tools/music/add-track-to-music-playlist.command.js +1 -1
- package/build/commands/tools/music/create-music-playlist.command.d.ts +89 -22
- package/build/commands/tools/music/edit-music.command.d.ts +6 -0
- package/build/commands/tools/music/find-music-job-by-uuid.command.d.ts +6 -0
- package/build/commands/tools/music/find-music-jobs.command.d.ts +6 -0
- package/build/commands/tools/music/find-music-playlists.command.d.ts +98 -22
- package/build/commands/tools/music/find-music-playlists.command.js +8 -0
- package/build/commands/tools/music/generate-music.command.d.ts +6 -0
- package/build/commands/tools/music/remove-track-from-music-playlist.command.d.ts +90 -23
- package/build/commands/tools/music/remove-track-from-music-playlist.command.js +1 -1
- package/build/commands/tools/music/retry-music-job.command.d.ts +6 -0
- package/build/commands/tools/music/set-reaction-to-music-job.command.d.ts +6 -0
- package/build/commands/tools/music/update-music-job-favorite.command.d.ts +6 -0
- package/build/commands/tools/music/update-music-job-title.command.d.ts +6 -0
- package/build/commands/tools/music/update-music-playlist.command.d.ts +89 -22
- package/build/commands/tools/spell-corrector/find-spell-corrector-job-by-uuid.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/get-spell-corrector-price.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/get-spell-corrector-price.command.js +25 -0
- package/build/commands/tools/spell-corrector/get-spell-corrector-tool-config.command.d.ts +3 -0
- package/build/commands/tools/spell-corrector/index.d.ts +1 -0
- package/build/commands/tools/spell-corrector/index.js +1 -0
- package/build/commands/tools/spell-corrector/retry-spell-corrector-job.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/set-reaction-to-spell-corrector-job.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/spell-corrector.command.d.ts +37 -1
- package/build/commands/tools/spell-corrector/spell-corrector.command.js +16 -3
- package/build/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.d.ts +24 -0
- package/build/commands/tools/spell-corrector/update-spell-corrector-job-title.command.d.ts +24 -0
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -0
- package/build/constants/tool-music/enums/music-action-type.enum.d.ts +0 -2
- package/build/constants/tool-music/enums/music-action-type.enum.js +0 -2
- package/build/constants/tool-music/enums/music-audio-action-type.enum.d.ts +0 -2
- package/build/constants/tool-music/enums/music-audio-action-type.enum.js +0 -2
- package/build/constants/tool-music/enums/music-generation-action-type.enum.d.ts +2 -1
- package/build/constants/tool-music/enums/music-generation-action-type.enum.js +1 -0
- package/build/constants/tool-spell-corrector/enums/index.d.ts +1 -0
- package/build/constants/tool-spell-corrector/enums/index.js +17 -0
- package/build/constants/tool-spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
- package/build/constants/tool-spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
- package/build/constants/tool-spell-corrector/index.d.ts +1 -0
- package/build/constants/tool-spell-corrector/index.js +17 -0
- package/build/models/community/community-post-media-data.schema.d.ts +8 -0
- package/build/models/community/community-post.schema.d.ts +12 -0
- package/build/models/tools/music/music-job.schema.d.ts +10 -0
- package/build/models/tools/music/music-job.schema.js +20 -19
- package/build/models/tools/music/music-playlist.schema.d.ts +89 -22
- package/build/models/tools/music/music-playlist.schema.js +3 -3
- package/build/models/tools/spell-corrector/spell-corrector-config.schema.d.ts +3 -0
- package/build/models/tools/spell-corrector/spell-corrector-config.schema.js +1 -0
- package/build/models/tools/spell-corrector/spell-corrector-job.schema.d.ts +39 -1
- package/build/models/tools/spell-corrector/spell-corrector-job.schema.js +23 -1
- package/build/models/tools/spell-corrector/spell-corrector-model.schema.d.ts +2 -0
- package/build/models/tools/spell-corrector/spell-corrector-model.schema.js +2 -0
- package/package.json +1 -1
package/build/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.d.ts
CHANGED
|
@@ -17,6 +17,30 @@ export declare namespace UpdateSpellCorrectorJobFavoriteCommand {
|
|
|
17
17
|
createdAt: z.ZodDate;
|
|
18
18
|
updatedAt: z.ZodDate;
|
|
19
19
|
modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
|
|
21
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
uuid: z.ZodString;
|
|
23
|
+
url: z.ZodString;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
mimeType: z.ZodString;
|
|
26
|
+
type: z.ZodString;
|
|
27
|
+
size: z.ZodNumber;
|
|
28
|
+
extension: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
total: z.ZodNumber;
|
|
32
|
+
spelling: z.ZodNumber;
|
|
33
|
+
punctuation: z.ZodNumber;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
36
|
+
uuid: z.ZodString;
|
|
37
|
+
url: z.ZodString;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
mimeType: z.ZodString;
|
|
40
|
+
type: z.ZodString;
|
|
41
|
+
size: z.ZodNumber;
|
|
42
|
+
extension: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
20
44
|
userInput: z.ZodString;
|
|
21
45
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
46
|
title: z.ZodString;
|
|
@@ -17,6 +17,30 @@ export declare namespace UpdateSpellCorrectorJobTitleCommand {
|
|
|
17
17
|
createdAt: z.ZodDate;
|
|
18
18
|
updatedAt: z.ZodDate;
|
|
19
19
|
modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
|
|
21
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
uuid: z.ZodString;
|
|
23
|
+
url: z.ZodString;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
mimeType: z.ZodString;
|
|
26
|
+
type: z.ZodString;
|
|
27
|
+
size: z.ZodNumber;
|
|
28
|
+
extension: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
total: z.ZodNumber;
|
|
32
|
+
spelling: z.ZodNumber;
|
|
33
|
+
punctuation: z.ZodNumber;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
36
|
+
uuid: z.ZodString;
|
|
37
|
+
url: z.ZodString;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
mimeType: z.ZodString;
|
|
40
|
+
type: z.ZodString;
|
|
41
|
+
size: z.ZodNumber;
|
|
42
|
+
extension: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
20
44
|
userInput: z.ZodString;
|
|
21
45
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
46
|
title: z.ZodString;
|
|
@@ -30,6 +30,7 @@ export * from './task';
|
|
|
30
30
|
export * from './telegram';
|
|
31
31
|
export * from './tool';
|
|
32
32
|
export * from './tool-paraphrase';
|
|
33
|
+
export * from './tool-spell-corrector';
|
|
33
34
|
export * from './transaction';
|
|
34
35
|
export * from './unregistered-user';
|
|
35
36
|
export * from './user';
|
package/build/constants/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __exportStar(require("./task"), exports);
|
|
|
46
46
|
__exportStar(require("./telegram"), exports);
|
|
47
47
|
__exportStar(require("./tool"), exports);
|
|
48
48
|
__exportStar(require("./tool-paraphrase"), exports);
|
|
49
|
+
__exportStar(require("./tool-spell-corrector"), exports);
|
|
49
50
|
__exportStar(require("./transaction"), exports);
|
|
50
51
|
__exportStar(require("./unregistered-user"), exports);
|
|
51
52
|
__exportStar(require("./user"), exports);
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -6,4 +6,5 @@ var MUSIC_GENERATION_ACTION_TYPE;
|
|
|
6
6
|
MUSIC_GENERATION_ACTION_TYPE["GENERATE"] = "generate";
|
|
7
7
|
MUSIC_GENERATION_ACTION_TYPE["GIFT"] = "gift";
|
|
8
8
|
MUSIC_GENERATION_ACTION_TYPE["BACKGROUND"] = "background";
|
|
9
|
+
MUSIC_GENERATION_ACTION_TYPE["GENERATE_LYRICS"] = "generateLyrics";
|
|
9
10
|
})(MUSIC_GENERATION_ACTION_TYPE || (exports.MUSIC_GENERATION_ACTION_TYPE = MUSIC_GENERATION_ACTION_TYPE = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './spell-corrector-input-kind.enum';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./spell-corrector-input-kind.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SPELL_CORRECTOR_INPUT_KIND = void 0;
|
|
4
|
+
var SPELL_CORRECTOR_INPUT_KIND;
|
|
5
|
+
(function (SPELL_CORRECTOR_INPUT_KIND) {
|
|
6
|
+
SPELL_CORRECTOR_INPUT_KIND["TEXT"] = "text";
|
|
7
|
+
SPELL_CORRECTOR_INPUT_KIND["DOCUMENT"] = "document";
|
|
8
|
+
})(SPELL_CORRECTOR_INPUT_KIND || (exports.SPELL_CORRECTOR_INPUT_KIND = SPELL_CORRECTOR_INPUT_KIND = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enums';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
@@ -76,6 +76,10 @@ export declare const MusicCommunityMediaSchema: z.ZodObject<{
|
|
|
76
76
|
mode: z.ZodLiteral<import("../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
77
77
|
style: z.ZodString;
|
|
78
78
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
79
|
+
prompt: z.ZodString;
|
|
80
|
+
style: z.ZodOptional<z.ZodString>;
|
|
81
|
+
structure: z.ZodEnum<typeof import("../..").MUSIC_LYRICS_STRUCTURE>;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
83
|
audioId: z.ZodString;
|
|
80
84
|
style: z.ZodString;
|
|
81
85
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -189,6 +193,10 @@ export declare const CommunityPostMediaDataSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
189
193
|
mode: z.ZodLiteral<import("../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
190
194
|
style: z.ZodString;
|
|
191
195
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
196
|
+
prompt: z.ZodString;
|
|
197
|
+
style: z.ZodOptional<z.ZodString>;
|
|
198
|
+
structure: z.ZodEnum<typeof import("../..").MUSIC_LYRICS_STRUCTURE>;
|
|
199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
192
200
|
audioId: z.ZodString;
|
|
193
201
|
style: z.ZodString;
|
|
194
202
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -79,6 +79,10 @@ export declare const CommunityPostSchema: z.ZodObject<{
|
|
|
79
79
|
mode: z.ZodLiteral<import("../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
80
80
|
style: z.ZodString;
|
|
81
81
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
82
|
+
prompt: z.ZodString;
|
|
83
|
+
style: z.ZodOptional<z.ZodString>;
|
|
84
|
+
structure: z.ZodEnum<typeof import("../..").MUSIC_LYRICS_STRUCTURE>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
86
|
audioId: z.ZodString;
|
|
83
87
|
style: z.ZodString;
|
|
84
88
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -221,6 +225,10 @@ export declare const ResponseCommunityPostSchema: z.ZodObject<{
|
|
|
221
225
|
mode: z.ZodLiteral<import("../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
222
226
|
style: z.ZodString;
|
|
223
227
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
228
|
+
prompt: z.ZodString;
|
|
229
|
+
style: z.ZodOptional<z.ZodString>;
|
|
230
|
+
structure: z.ZodEnum<typeof import("../..").MUSIC_LYRICS_STRUCTURE>;
|
|
231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
224
232
|
audioId: z.ZodString;
|
|
225
233
|
style: z.ZodString;
|
|
226
234
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -364,6 +372,10 @@ export declare const ResponseCommunityPostWithRelationsSchema: z.ZodObject<{
|
|
|
364
372
|
mode: z.ZodLiteral<import("../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
365
373
|
style: z.ZodString;
|
|
366
374
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
375
|
+
prompt: z.ZodString;
|
|
376
|
+
style: z.ZodOptional<z.ZodString>;
|
|
377
|
+
structure: z.ZodEnum<typeof import("../..").MUSIC_LYRICS_STRUCTURE>;
|
|
378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
367
379
|
audioId: z.ZodString;
|
|
368
380
|
style: z.ZodString;
|
|
369
381
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -106,6 +106,10 @@ export declare const MusicAnyJobParamsSchema: z.ZodUnion<readonly [z.ZodDiscrimi
|
|
|
106
106
|
mode: z.ZodLiteral<SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
107
107
|
style: z.ZodString;
|
|
108
108
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
109
|
+
prompt: z.ZodString;
|
|
110
|
+
style: z.ZodOptional<z.ZodString>;
|
|
111
|
+
structure: z.ZodEnum<typeof MUSIC_LYRICS_STRUCTURE>;
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
113
|
audioId: z.ZodString;
|
|
110
114
|
style: z.ZodString;
|
|
111
115
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -150,6 +154,8 @@ export declare const MusicJobSchema: z.ZodObject<{
|
|
|
150
154
|
isFavorite: z.ZodBoolean;
|
|
151
155
|
createdAt: z.ZodDate;
|
|
152
156
|
updatedAt: z.ZodDate;
|
|
157
|
+
actionType: z.ZodUnion<readonly [z.ZodEnum<typeof MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof MUSIC_AUDIO_ACTION_TYPE>]>;
|
|
158
|
+
lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
159
|
title: z.ZodString;
|
|
154
160
|
prompt: z.ZodString;
|
|
155
161
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
@@ -196,6 +202,10 @@ export declare const MusicJobSchema: z.ZodObject<{
|
|
|
196
202
|
mode: z.ZodLiteral<SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
197
203
|
style: z.ZodString;
|
|
198
204
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
205
|
+
prompt: z.ZodString;
|
|
206
|
+
style: z.ZodOptional<z.ZodString>;
|
|
207
|
+
structure: z.ZodEnum<typeof MUSIC_LYRICS_STRUCTURE>;
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
209
|
audioId: z.ZodString;
|
|
200
210
|
style: z.ZodString;
|
|
201
211
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -82,27 +82,20 @@ exports.MusicEditRequestSchema = zod_1.z
|
|
|
82
82
|
params: zod_1.z.unknown(),
|
|
83
83
|
})
|
|
84
84
|
.superRefine((data, ctx) => {
|
|
85
|
-
|
|
86
|
-
constants_1.MUSIC_AUDIO_ACTION_TYPE.REMOVE_VOCALS,
|
|
87
|
-
constants_1.MUSIC_AUDIO_ACTION_TYPE.EXTRACT_VOCALS,
|
|
88
|
-
].includes(data.actionType);
|
|
89
|
-
if (requiresModel && !data.modelId) {
|
|
85
|
+
if (!data.modelId) {
|
|
90
86
|
ctx.addIssue({
|
|
91
87
|
code: zod_1.z.ZodIssueCode.custom,
|
|
92
88
|
message: 'modelId is required',
|
|
93
89
|
path: ['modelId'],
|
|
94
90
|
});
|
|
95
91
|
}
|
|
96
|
-
const paramsValidation = data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
: data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.ADD_INSTRUMENTAL
|
|
104
|
-
? exports.MusicAddInstrumentalParamsSchema.safeParse(data.params)
|
|
105
|
-
: exports.MusicAddVocalsParamsSchema.safeParse(data.params);
|
|
92
|
+
const paramsValidation = data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.COVER
|
|
93
|
+
? exports.MusicUploadCoverParamsSchema.safeParse(data.params)
|
|
94
|
+
: data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.EXTEND
|
|
95
|
+
? exports.MusicUploadExtendParamsSchema.safeParse(data.params)
|
|
96
|
+
: data.actionType === constants_1.MUSIC_AUDIO_ACTION_TYPE.ADD_INSTRUMENTAL
|
|
97
|
+
? exports.MusicAddInstrumentalParamsSchema.safeParse(data.params)
|
|
98
|
+
: exports.MusicAddVocalsParamsSchema.safeParse(data.params);
|
|
106
99
|
if (!paramsValidation.success) {
|
|
107
100
|
for (const issue of paramsValidation.error.issues) {
|
|
108
101
|
ctx.addIssue(Object.assign(Object.assign({}, issue), { path: ['params', ...issue.path] }));
|
|
@@ -119,6 +112,7 @@ exports.MusicEditActionResultSchema = zod_1.z.object({
|
|
|
119
112
|
});
|
|
120
113
|
exports.MusicAnyJobParamsSchema = zod_1.z.union([
|
|
121
114
|
exports.MusicJobParamsSchema,
|
|
115
|
+
exports.MusicLyricsParamsSchema,
|
|
122
116
|
exports.MusicUploadCoverParamsSchema,
|
|
123
117
|
exports.MusicUploadExtendParamsSchema,
|
|
124
118
|
exports.MusicAddInstrumentalParamsSchema,
|
|
@@ -134,16 +128,18 @@ exports.MusicExecuteRequestSchema = zod_1.z
|
|
|
134
128
|
params: zod_1.z.unknown(),
|
|
135
129
|
})
|
|
136
130
|
.superRefine((data, ctx) => {
|
|
137
|
-
if (!data.modelId) {
|
|
131
|
+
if (data.actionType !== constants_1.MUSIC_GENERATION_ACTION_TYPE.GENERATE_LYRICS && !data.modelId) {
|
|
138
132
|
ctx.addIssue({
|
|
139
133
|
code: zod_1.z.ZodIssueCode.custom,
|
|
140
134
|
message: 'modelId is required',
|
|
141
135
|
path: ['modelId'],
|
|
142
136
|
});
|
|
143
137
|
}
|
|
144
|
-
const paramsValidation = data.actionType === constants_1.MUSIC_GENERATION_ACTION_TYPE.
|
|
145
|
-
? exports.
|
|
146
|
-
:
|
|
138
|
+
const paramsValidation = data.actionType === constants_1.MUSIC_GENERATION_ACTION_TYPE.GENERATE_LYRICS
|
|
139
|
+
? exports.MusicLyricsParamsSchema.safeParse(data.params)
|
|
140
|
+
: data.actionType === constants_1.MUSIC_GENERATION_ACTION_TYPE.BACKGROUND
|
|
141
|
+
? exports.MusicBackgroundParamsSchema.safeParse(data.params)
|
|
142
|
+
: exports.MusicJobParamsSchema.safeParse(data.params);
|
|
147
143
|
if (!paramsValidation.success) {
|
|
148
144
|
for (const issue of paramsValidation.error.issues) {
|
|
149
145
|
ctx.addIssue(Object.assign(Object.assign({}, issue), { path: ['params', ...issue.path] }));
|
|
@@ -151,6 +147,11 @@ exports.MusicExecuteRequestSchema = zod_1.z
|
|
|
151
147
|
}
|
|
152
148
|
});
|
|
153
149
|
exports.MusicJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
150
|
+
actionType: zod_1.z.union([
|
|
151
|
+
zod_1.z.nativeEnum(constants_1.MUSIC_GENERATION_ACTION_TYPE),
|
|
152
|
+
zod_1.z.nativeEnum(constants_1.MUSIC_AUDIO_ACTION_TYPE),
|
|
153
|
+
]),
|
|
154
|
+
lyrics: zod_1.z.string().nullable().optional(),
|
|
154
155
|
title: zod_1.z.string(),
|
|
155
156
|
prompt: zod_1.z.string(),
|
|
156
157
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
@@ -2,32 +2,99 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const MusicPlaylistSchema: z.ZodObject<{
|
|
3
3
|
uuid: z.ZodString;
|
|
4
4
|
title: z.ZodString;
|
|
5
|
-
|
|
5
|
+
jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
6
|
uuid: z.ZodString;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
-
uuid: z.ZodString;
|
|
12
|
-
originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
mimeType: z.ZodString;
|
|
14
|
-
url: z.ZodString;
|
|
15
|
-
duration: z.ZodNullable<z.ZodNumber>;
|
|
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
|
-
isPublished: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
waveformPeaks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
25
|
-
genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
8
|
+
error: z.ZodNullable<z.ZodString>;
|
|
9
|
+
isFavorite: z.ZodBoolean;
|
|
27
10
|
createdAt: z.ZodDate;
|
|
28
11
|
updatedAt: z.ZodDate;
|
|
12
|
+
actionType: z.ZodUnion<readonly [z.ZodEnum<typeof import("../../..").MUSIC_GENERATION_ACTION_TYPE>, z.ZodEnum<typeof import("../../..").MUSIC_AUDIO_ACTION_TYPE>]>;
|
|
13
|
+
lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
prompt: z.ZodString;
|
|
16
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
17
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
18
|
+
uuid: z.ZodString;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
audioId: z.ZodString;
|
|
21
|
+
audioUrl: z.ZodString;
|
|
22
|
+
audioFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
|
+
uuid: z.ZodString;
|
|
24
|
+
originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
mimeType: z.ZodString;
|
|
26
|
+
url: z.ZodString;
|
|
27
|
+
duration: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
coverUrl: z.ZodString;
|
|
30
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
31
|
+
fullLyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
tags: z.ZodString;
|
|
33
|
+
duration: z.ZodNumber;
|
|
34
|
+
isPublished: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
waveformPeaks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
37
|
+
genJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
editorJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
createdAt: z.ZodDate;
|
|
40
|
+
updatedAt: z.ZodDate;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
43
|
+
mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.SIMPLE>;
|
|
44
|
+
prompt: z.ZodString;
|
|
45
|
+
style: z.ZodString;
|
|
46
|
+
vocalGender: z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.SIMPLE_INSTRUMENTAL>;
|
|
49
|
+
prompt: z.ZodString;
|
|
50
|
+
style: z.ZodString;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM>;
|
|
53
|
+
prompt: z.ZodString;
|
|
54
|
+
style: z.ZodString;
|
|
55
|
+
vocalGender: z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
mode: z.ZodLiteral<import("../../..").SUNO_MODE_TYPE.CUSTOM_INSTRUMENTAL>;
|
|
58
|
+
style: z.ZodString;
|
|
59
|
+
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
60
|
+
prompt: z.ZodString;
|
|
61
|
+
style: z.ZodOptional<z.ZodString>;
|
|
62
|
+
structure: z.ZodEnum<typeof import("../../..").MUSIC_LYRICS_STRUCTURE>;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
audioId: z.ZodString;
|
|
65
|
+
style: z.ZodString;
|
|
66
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
67
|
+
title: z.ZodOptional<z.ZodString>;
|
|
68
|
+
negativeTags: z.ZodOptional<z.ZodString>;
|
|
69
|
+
vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
|
|
70
|
+
instrumental: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
audioId: z.ZodString;
|
|
73
|
+
continueAt: z.ZodNumber;
|
|
74
|
+
prompt: z.ZodString;
|
|
75
|
+
style: z.ZodOptional<z.ZodString>;
|
|
76
|
+
title: z.ZodOptional<z.ZodString>;
|
|
77
|
+
negativeTags: z.ZodOptional<z.ZodString>;
|
|
78
|
+
vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
|
|
79
|
+
instrumental: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
audioId: z.ZodString;
|
|
82
|
+
style: z.ZodString;
|
|
83
|
+
title: z.ZodOptional<z.ZodString>;
|
|
84
|
+
negativeTags: z.ZodOptional<z.ZodString>;
|
|
85
|
+
vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
|
|
86
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
+
audioId: z.ZodString;
|
|
88
|
+
prompt: z.ZodString;
|
|
89
|
+
style: z.ZodString;
|
|
90
|
+
title: z.ZodOptional<z.ZodString>;
|
|
91
|
+
negativeTags: z.ZodOptional<z.ZodString>;
|
|
92
|
+
vocalGender: z.ZodOptional<z.ZodEnum<typeof import("../../..").MUSIC_VOCAL_GENDER>>;
|
|
93
|
+
}, z.core.$strip>]>;
|
|
94
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
95
|
+
modelId: z.ZodString;
|
|
29
96
|
}, z.core.$strip>>>;
|
|
30
|
-
|
|
97
|
+
jobCount: z.ZodNumber;
|
|
31
98
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
99
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
100
|
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
|
|
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
|
-
|
|
10
|
-
|
|
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(),
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const SpellCorrectorToolConfigSchema: z.ZodObject<{
|
|
3
3
|
maxSymbols: z.ZodNumber;
|
|
4
|
+
freeMaxSymbols: z.ZodNumber;
|
|
4
5
|
models: z.ZodArray<z.ZodObject<{
|
|
5
6
|
uuid: z.ZodString;
|
|
6
7
|
title: z.ZodString;
|
|
7
8
|
description: z.ZodString;
|
|
8
9
|
icon: z.ZodString;
|
|
9
10
|
price: z.ZodNumber;
|
|
11
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
10
13
|
order: z.ZodNumber;
|
|
11
14
|
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
12
15
|
canUse: z.ZodBoolean;
|
|
@@ -5,5 +5,6 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const spell_corrector_model_schema_1 = require("./spell-corrector-model.schema");
|
|
6
6
|
exports.SpellCorrectorToolConfigSchema = zod_1.z.object({
|
|
7
7
|
maxSymbols: zod_1.z.number(),
|
|
8
|
+
freeMaxSymbols: zod_1.z.number(),
|
|
8
9
|
models: zod_1.z.array(spell_corrector_model_schema_1.SpellCorrectorModelSchema),
|
|
9
10
|
});
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { USER_REACTION } from '../../../constants';
|
|
2
|
+
import { SPELL_CORRECTOR_INPUT_KIND, USER_REACTION } from '../../../constants';
|
|
3
|
+
export declare const SpellCorrectorCorrectionStatisticsSchema: z.ZodObject<{
|
|
4
|
+
total: z.ZodNumber;
|
|
5
|
+
spelling: z.ZodNumber;
|
|
6
|
+
punctuation: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const SpellCorrectorDocumentMetadataSchema: 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
|
+
}, z.core.$strip>;
|
|
3
17
|
export declare const SpellCorrectorToolJobSchema: z.ZodObject<{
|
|
4
18
|
uuid: z.ZodString;
|
|
5
19
|
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
@@ -8,6 +22,30 @@ export declare const SpellCorrectorToolJobSchema: z.ZodObject<{
|
|
|
8
22
|
createdAt: z.ZodDate;
|
|
9
23
|
updatedAt: z.ZodDate;
|
|
10
24
|
modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
inputKind: z.ZodDefault<z.ZodEnum<typeof SPELL_CORRECTOR_INPUT_KIND>>;
|
|
26
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
uuid: z.ZodString;
|
|
28
|
+
url: z.ZodString;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
mimeType: z.ZodString;
|
|
31
|
+
type: z.ZodString;
|
|
32
|
+
size: z.ZodNumber;
|
|
33
|
+
extension: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
36
|
+
total: z.ZodNumber;
|
|
37
|
+
spelling: z.ZodNumber;
|
|
38
|
+
punctuation: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>>>;
|
|
40
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
41
|
+
uuid: z.ZodString;
|
|
42
|
+
url: z.ZodString;
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
mimeType: z.ZodString;
|
|
45
|
+
type: z.ZodString;
|
|
46
|
+
size: z.ZodNumber;
|
|
47
|
+
extension: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
11
49
|
userInput: z.ZodString;
|
|
12
50
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
51
|
title: z.ZodString;
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SpellCorrectorToolJobSchema = void 0;
|
|
3
|
+
exports.SpellCorrectorToolJobSchema = exports.SpellCorrectorDocumentMetadataSchema = exports.SpellCorrectorCorrectionStatisticsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
+
exports.SpellCorrectorCorrectionStatisticsSchema = zod_1.z
|
|
8
|
+
.object({
|
|
9
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
10
|
+
spelling: zod_1.z.number().int().nonnegative(),
|
|
11
|
+
punctuation: zod_1.z.number().int().nonnegative(),
|
|
12
|
+
})
|
|
13
|
+
.refine((statistics) => statistics.total === statistics.spelling + statistics.punctuation, {
|
|
14
|
+
message: 'total must equal spelling + punctuation',
|
|
15
|
+
});
|
|
16
|
+
exports.SpellCorrectorDocumentMetadataSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
url: zod_1.z.string(),
|
|
19
|
+
name: zod_1.z.string(),
|
|
20
|
+
mimeType: zod_1.z.string(),
|
|
21
|
+
type: zod_1.z.string(),
|
|
22
|
+
size: zod_1.z.number().nonnegative(),
|
|
23
|
+
extension: zod_1.z.string(),
|
|
24
|
+
});
|
|
7
25
|
exports.SpellCorrectorToolJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
8
26
|
modelId: zod_1.z.string().uuid().nullable().optional(),
|
|
27
|
+
inputKind: zod_1.z.nativeEnum(constants_1.SPELL_CORRECTOR_INPUT_KIND).default(constants_1.SPELL_CORRECTOR_INPUT_KIND.TEXT),
|
|
28
|
+
sourceDocument: exports.SpellCorrectorDocumentMetadataSchema.nullable().default(null),
|
|
29
|
+
statistics: exports.SpellCorrectorCorrectionStatisticsSchema.nullable().default(null),
|
|
30
|
+
outputDocument: exports.SpellCorrectorDocumentMetadataSchema.nullable().default(null),
|
|
9
31
|
userInput: zod_1.z.string(),
|
|
10
32
|
aiOutput: zod_1.z.string().nullable().optional(),
|
|
11
33
|
title: zod_1.z.string(),
|
|
@@ -6,6 +6,8 @@ export declare const SpellCorrectorModelSchema: z.ZodObject<{
|
|
|
6
6
|
description: z.ZodString;
|
|
7
7
|
icon: z.ZodString;
|
|
8
8
|
price: z.ZodNumber;
|
|
9
|
+
freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
maxPromptLength: z.ZodNullable<z.ZodNumber>;
|
|
9
11
|
order: z.ZodNumber;
|
|
10
12
|
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
11
13
|
canUse: z.ZodBoolean;
|
|
@@ -11,6 +11,8 @@ exports.SpellCorrectorModelSchema = zod_1.z.object({
|
|
|
11
11
|
description: zod_1.z.string(),
|
|
12
12
|
icon: zod_1.z.string(),
|
|
13
13
|
price: zod_1.z.number(),
|
|
14
|
+
freeMaxPromptLength: zod_1.z.number().nullable(),
|
|
15
|
+
maxPromptLength: zod_1.z.number().nullable(),
|
|
14
16
|
order: zod_1.z.number(),
|
|
15
17
|
status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
|
|
16
18
|
canUse: zod_1.z.boolean(),
|