@purpleschool/gptbot 0.19.10 → 0.19.12-stage-2
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/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/motion-control.d.ts +15 -0
- package/build/api/controllers/http/motion-control.js +18 -0
- package/build/api/routes.d.ts +26 -0
- package/build/api/routes.js +26 -0
- package/build/commands/community/create-community-post.command.d.ts +19 -0
- package/build/commands/community/get-all-community-posts-by-criteria.command.d.ts +19 -0
- package/build/commands/community/get-community-post-by-uuid.command.d.ts +19 -0
- package/build/commands/community/get-my-community-posts-by-criteria.command.d.ts +19 -0
- package/build/commands/community/get-my-favorite-community-posts.command.d.ts +19 -0
- package/build/commands/community/get-my-likes-community-posts.command.d.ts +19 -0
- package/build/commands/community/set-like-community-post.command.d.ts +19 -0
- package/build/commands/content-report/create-content-report.command.d.ts +2 -0
- package/build/commands/content-report/find-content-reports.query.d.ts +2 -0
- package/build/commands/content-report/update-content-report-status.command.d.ts +1 -0
- package/build/commands/tools/index.d.ts +1 -0
- package/build/commands/tools/index.js +1 -0
- package/build/commands/tools/motion-control/index.d.ts +590 -0
- package/build/commands/tools/motion-control/index.js +100 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.d.ts +1 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +1 -0
- package/build/constants/community/enums/community-tool-type.enum.d.ts +1 -0
- package/build/constants/community/enums/community-tool-type.enum.js +1 -0
- package/build/constants/community/enums/community-type.enum.d.ts +1 -0
- package/build/constants/community/enums/community-type.enum.js +1 -0
- package/build/constants/content-report/enums/content-report-target-type.enum.d.ts +1 -0
- package/build/constants/file/file.constants.js +2 -0
- package/build/constants/model/enums/unified-model-content-type.enum.d.ts +1 -0
- package/build/constants/model/enums/unified-model-content-type.enum.js +1 -0
- package/build/constants/tool/enums/tool-content-type.enum.d.ts +1 -0
- package/build/constants/tool/enums/tool-content-type.enum.js +1 -0
- package/build/constants/tool/enums/tool-type.enum.d.ts +1 -0
- package/build/constants/tool/enums/tool-type.enum.js +1 -0
- package/build/models/community/community-post-media-data.schema.d.ts +40 -0
- package/build/models/community/community-post-media-data.schema.js +16 -1
- package/build/models/community/community-post.schema.d.ts +57 -0
- package/build/models/content-report.schema.d.ts +1 -0
- package/build/models/tools/index.d.ts +1 -0
- package/build/models/tools/index.js +1 -0
- package/build/models/tools/motion-control/index.d.ts +258 -0
- package/build/models/tools/motion-control/index.js +86 -0
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ export declare enum STATISTICS_REQUEST_TYPE {
|
|
|
13
13
|
PRESENTATION_AI_ACTION = "PRESENTATION_AI_ACTION",
|
|
14
14
|
WRITER_ACTION = "WRITER_ACTION",
|
|
15
15
|
VIDEO_EDITOR = "VIDEO_EDITOR",
|
|
16
|
+
MOTION_CONTROL = "MOTION_CONTROL",
|
|
16
17
|
MUSIC = "MUSIC",
|
|
17
18
|
MUSIC_ACTION = "MUSIC_ACTION",
|
|
18
19
|
INTERIOR_DESIGN = "INTERIOR_DESIGN",
|
|
@@ -17,6 +17,7 @@ var STATISTICS_REQUEST_TYPE;
|
|
|
17
17
|
STATISTICS_REQUEST_TYPE["PRESENTATION_AI_ACTION"] = "PRESENTATION_AI_ACTION";
|
|
18
18
|
STATISTICS_REQUEST_TYPE["WRITER_ACTION"] = "WRITER_ACTION";
|
|
19
19
|
STATISTICS_REQUEST_TYPE["VIDEO_EDITOR"] = "VIDEO_EDITOR";
|
|
20
|
+
STATISTICS_REQUEST_TYPE["MOTION_CONTROL"] = "MOTION_CONTROL";
|
|
20
21
|
STATISTICS_REQUEST_TYPE["MUSIC"] = "MUSIC";
|
|
21
22
|
STATISTICS_REQUEST_TYPE["MUSIC_ACTION"] = "MUSIC_ACTION";
|
|
22
23
|
STATISTICS_REQUEST_TYPE["INTERIOR_DESIGN"] = "INTERIOR_DESIGN";
|
|
@@ -7,5 +7,6 @@ var COMMUNITY_TOOL_TYPE;
|
|
|
7
7
|
COMMUNITY_TOOL_TYPE["IMAGE_EDITOR"] = "image_editor";
|
|
8
8
|
COMMUNITY_TOOL_TYPE["VIDEO"] = "video";
|
|
9
9
|
COMMUNITY_TOOL_TYPE["VIDEO_EDITOR"] = "video_editor";
|
|
10
|
+
COMMUNITY_TOOL_TYPE["MOTION_CONTROL"] = "motion_control";
|
|
10
11
|
COMMUNITY_TOOL_TYPE["MUSIC"] = "music";
|
|
11
12
|
})(COMMUNITY_TOOL_TYPE || (exports.COMMUNITY_TOOL_TYPE = COMMUNITY_TOOL_TYPE = {}));
|
|
@@ -7,5 +7,6 @@ var COMMUNITY_POST_TYPE;
|
|
|
7
7
|
COMMUNITY_POST_TYPE["IMAGE_EDITOR"] = "image_editor";
|
|
8
8
|
COMMUNITY_POST_TYPE["VIDEO"] = "video";
|
|
9
9
|
COMMUNITY_POST_TYPE["VIDEO_EDITOR"] = "video_editor";
|
|
10
|
+
COMMUNITY_POST_TYPE["MOTION_CONTROL"] = "motion_control";
|
|
10
11
|
COMMUNITY_POST_TYPE["MUSIC"] = "music";
|
|
11
12
|
})(COMMUNITY_POST_TYPE || (exports.COMMUNITY_POST_TYPE = COMMUNITY_POST_TYPE = {}));
|
|
@@ -11,6 +11,7 @@ export declare const CONTENT_REPORT_TARGET_TYPE: {
|
|
|
11
11
|
readonly PRESENTATION: TOOL_CONTENT_TYPE.PRESENTATION;
|
|
12
12
|
readonly WRITER: TOOL_CONTENT_TYPE.WRITER;
|
|
13
13
|
readonly VIDEO_EDITOR: TOOL_CONTENT_TYPE.VIDEO_EDITOR;
|
|
14
|
+
readonly MOTION_CONTROL: TOOL_CONTENT_TYPE.MOTION_CONTROL;
|
|
14
15
|
readonly MUSIC: TOOL_CONTENT_TYPE.MUSIC;
|
|
15
16
|
readonly INTERIOR_DESIGN: TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
|
|
16
17
|
readonly TEXT: TOOL_CONTENT_TYPE.TEXT;
|
|
@@ -28,6 +28,8 @@ exports.SUPPORTED_FILES = new Map([
|
|
|
28
28
|
['audio/wave', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
29
29
|
['audio/wav', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
30
30
|
['audio/x-wav', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
31
|
+
['audio/x-m4a', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
32
|
+
['audio/m4a', { type: enums_1.FILE_TYPE.AUDIO, size: exports.MAX_AUDIO_UPLOAD_SIZE }],
|
|
31
33
|
['text/plain', { type: enums_1.FILE_TYPE.TEXT, size: exports.MAX_TEXT_UPLOAD_SIZE }],
|
|
32
34
|
['text/markdown', { type: enums_1.FILE_TYPE.TEXT, size: exports.MAX_TEXT_UPLOAD_SIZE }],
|
|
33
35
|
['text/csv', { type: enums_1.FILE_TYPE.TEXT, size: exports.MAX_TEXT_UPLOAD_SIZE }],
|
|
@@ -14,6 +14,7 @@ var UNIFIED_MODEL_CONTENT_TYPE;
|
|
|
14
14
|
UNIFIED_MODEL_CONTENT_TYPE["PRESENTATION"] = "PRESENTATION";
|
|
15
15
|
UNIFIED_MODEL_CONTENT_TYPE["WRITER"] = "WRITER";
|
|
16
16
|
UNIFIED_MODEL_CONTENT_TYPE["VIDEO_EDITOR"] = "VIDEO_EDITOR";
|
|
17
|
+
UNIFIED_MODEL_CONTENT_TYPE["MOTION_CONTROL"] = "MOTION_CONTROL";
|
|
17
18
|
UNIFIED_MODEL_CONTENT_TYPE["MUSIC"] = "MUSIC";
|
|
18
19
|
UNIFIED_MODEL_CONTENT_TYPE["NONE"] = "NONE";
|
|
19
20
|
UNIFIED_MODEL_CONTENT_TYPE["IMAGE_GENERATION"] = "IMAGE_GENERATION";
|
|
@@ -13,6 +13,7 @@ var TOOL_CONTENT_TYPE;
|
|
|
13
13
|
TOOL_CONTENT_TYPE["PRESENTATION"] = "PRESENTATION";
|
|
14
14
|
TOOL_CONTENT_TYPE["WRITER"] = "WRITER";
|
|
15
15
|
TOOL_CONTENT_TYPE["VIDEO_EDITOR"] = "VIDEO_EDITOR";
|
|
16
|
+
TOOL_CONTENT_TYPE["MOTION_CONTROL"] = "MOTION_CONTROL";
|
|
16
17
|
TOOL_CONTENT_TYPE["MUSIC"] = "MUSIC";
|
|
17
18
|
TOOL_CONTENT_TYPE["INTERIOR_DESIGN"] = "INTERIOR_DESIGN";
|
|
18
19
|
TOOL_CONTENT_TYPE["TEXT"] = "TEXT";
|
|
@@ -13,6 +13,7 @@ var TOOL_TYPE;
|
|
|
13
13
|
TOOL_TYPE["PARAPHRASE"] = "PARAPHRASE";
|
|
14
14
|
TOOL_TYPE["WRITER_ACTION"] = "WRITER_ACTION";
|
|
15
15
|
TOOL_TYPE["VIDEO_EDITOR"] = "VIDEO_EDITOR";
|
|
16
|
+
TOOL_TYPE["MOTION_CONTROL"] = "MOTION_CONTROL";
|
|
16
17
|
TOOL_TYPE["MUSIC"] = "MUSIC";
|
|
17
18
|
TOOL_TYPE["MUSIC_ACTION"] = "MUSIC_ACTION";
|
|
18
19
|
TOOL_TYPE["IMAGE_GENERATION"] = "IMAGE_GENERATION";
|
|
@@ -121,6 +121,27 @@ export declare const MusicCommunityMediaSchema: z.ZodObject<{
|
|
|
121
121
|
tags: z.ZodString;
|
|
122
122
|
}, z.core.$strip>;
|
|
123
123
|
}, z.core.$strip>;
|
|
124
|
+
export declare const MotionControlCommunityMediaSchema: z.ZodObject<{
|
|
125
|
+
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
126
|
+
title: z.ZodString;
|
|
127
|
+
prompt: z.ZodString;
|
|
128
|
+
motionVideoUrl: z.ZodString;
|
|
129
|
+
characterImageUrl: z.ZodString;
|
|
130
|
+
outputVideoUrl: z.ZodString;
|
|
131
|
+
outputVideoId: z.ZodString;
|
|
132
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
133
|
+
params: z.ZodObject<{
|
|
134
|
+
resolution: z.ZodEnum<{
|
|
135
|
+
"1080p": "1080p";
|
|
136
|
+
"720p": "720p";
|
|
137
|
+
}>;
|
|
138
|
+
backgroundSource: z.ZodEnum<{
|
|
139
|
+
image: "image";
|
|
140
|
+
video: "video";
|
|
141
|
+
}>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type MotionControlCommunityMedia = z.infer<typeof MotionControlCommunityMediaSchema>;
|
|
124
145
|
export declare const CommunityPostMediaDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
125
146
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.IMAGE>;
|
|
126
147
|
text: z.ZodString;
|
|
@@ -173,6 +194,25 @@ export declare const CommunityPostMediaDataSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
173
194
|
resolution: z.ZodOptional<z.ZodString>;
|
|
174
195
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
175
196
|
}, z.core.$strip>>;
|
|
197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
198
|
+
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
199
|
+
title: z.ZodString;
|
|
200
|
+
prompt: z.ZodString;
|
|
201
|
+
motionVideoUrl: z.ZodString;
|
|
202
|
+
characterImageUrl: z.ZodString;
|
|
203
|
+
outputVideoUrl: z.ZodString;
|
|
204
|
+
outputVideoId: z.ZodString;
|
|
205
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
206
|
+
params: z.ZodObject<{
|
|
207
|
+
resolution: z.ZodEnum<{
|
|
208
|
+
"1080p": "1080p";
|
|
209
|
+
"720p": "720p";
|
|
210
|
+
}>;
|
|
211
|
+
backgroundSource: z.ZodEnum<{
|
|
212
|
+
image: "image";
|
|
213
|
+
video: "video";
|
|
214
|
+
}>;
|
|
215
|
+
}, z.core.$strip>;
|
|
176
216
|
}, z.core.$strip>, z.ZodObject<{
|
|
177
217
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MUSIC>;
|
|
178
218
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommunityPostMediaDataSchema = exports.MusicCommunityMediaSchema = exports.VideoEditorCommunityMediaSchema = exports.VideoCommunityMediaSchema = exports.ImageEditorCommunityMediaSchema = exports.ImageCommunityMediaSchema = void 0;
|
|
3
|
+
exports.CommunityPostMediaDataSchema = exports.MotionControlCommunityMediaSchema = exports.MusicCommunityMediaSchema = exports.VideoEditorCommunityMediaSchema = exports.VideoCommunityMediaSchema = exports.ImageEditorCommunityMediaSchema = exports.ImageCommunityMediaSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const video_job_schema_1 = require("../tools/video/video-job.schema");
|
|
@@ -50,10 +50,25 @@ exports.MusicCommunityMediaSchema = zod_1.z.object({
|
|
|
50
50
|
tags: zod_1.z.string(),
|
|
51
51
|
}),
|
|
52
52
|
});
|
|
53
|
+
exports.MotionControlCommunityMediaSchema = zod_1.z.object({
|
|
54
|
+
type: zod_1.z.literal(constants_1.COMMUNITY_POST_TYPE.MOTION_CONTROL),
|
|
55
|
+
title: zod_1.z.string(),
|
|
56
|
+
prompt: zod_1.z.string(),
|
|
57
|
+
motionVideoUrl: zod_1.z.string(),
|
|
58
|
+
characterImageUrl: zod_1.z.string(),
|
|
59
|
+
outputVideoUrl: zod_1.z.string(),
|
|
60
|
+
outputVideoId: zod_1.z.string(),
|
|
61
|
+
previewUrl: zod_1.z.string().nullable(),
|
|
62
|
+
params: zod_1.z.object({
|
|
63
|
+
resolution: zod_1.z.enum(['720p', '1080p']),
|
|
64
|
+
backgroundSource: zod_1.z.enum(['image', 'video']),
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
53
67
|
exports.CommunityPostMediaDataSchema = zod_1.z.discriminatedUnion('type', [
|
|
54
68
|
exports.ImageCommunityMediaSchema,
|
|
55
69
|
exports.ImageEditorCommunityMediaSchema,
|
|
56
70
|
exports.VideoCommunityMediaSchema,
|
|
57
71
|
exports.VideoEditorCommunityMediaSchema,
|
|
72
|
+
exports.MotionControlCommunityMediaSchema,
|
|
58
73
|
exports.MusicCommunityMediaSchema,
|
|
59
74
|
]);
|
|
@@ -59,6 +59,25 @@ export declare const CommunityPostSchema: z.ZodObject<{
|
|
|
59
59
|
resolution: z.ZodOptional<z.ZodString>;
|
|
60
60
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
61
61
|
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
64
|
+
title: z.ZodString;
|
|
65
|
+
prompt: z.ZodString;
|
|
66
|
+
motionVideoUrl: z.ZodString;
|
|
67
|
+
characterImageUrl: z.ZodString;
|
|
68
|
+
outputVideoUrl: z.ZodString;
|
|
69
|
+
outputVideoId: z.ZodString;
|
|
70
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
71
|
+
params: z.ZodObject<{
|
|
72
|
+
resolution: z.ZodEnum<{
|
|
73
|
+
"1080p": "1080p";
|
|
74
|
+
"720p": "720p";
|
|
75
|
+
}>;
|
|
76
|
+
backgroundSource: z.ZodEnum<{
|
|
77
|
+
image: "image";
|
|
78
|
+
video: "video";
|
|
79
|
+
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
62
81
|
}, z.core.$strip>, z.ZodObject<{
|
|
63
82
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MUSIC>;
|
|
64
83
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -205,6 +224,25 @@ export declare const ResponseCommunityPostSchema: z.ZodObject<{
|
|
|
205
224
|
resolution: z.ZodOptional<z.ZodString>;
|
|
206
225
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
207
226
|
}, z.core.$strip>>;
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
+
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
229
|
+
title: z.ZodString;
|
|
230
|
+
prompt: z.ZodString;
|
|
231
|
+
motionVideoUrl: z.ZodString;
|
|
232
|
+
characterImageUrl: z.ZodString;
|
|
233
|
+
outputVideoUrl: z.ZodString;
|
|
234
|
+
outputVideoId: z.ZodString;
|
|
235
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
236
|
+
params: z.ZodObject<{
|
|
237
|
+
resolution: z.ZodEnum<{
|
|
238
|
+
"1080p": "1080p";
|
|
239
|
+
"720p": "720p";
|
|
240
|
+
}>;
|
|
241
|
+
backgroundSource: z.ZodEnum<{
|
|
242
|
+
image: "image";
|
|
243
|
+
video: "video";
|
|
244
|
+
}>;
|
|
245
|
+
}, z.core.$strip>;
|
|
208
246
|
}, z.core.$strip>, z.ZodObject<{
|
|
209
247
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MUSIC>;
|
|
210
248
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -352,6 +390,25 @@ export declare const ResponseCommunityPostWithRelationsSchema: z.ZodObject<{
|
|
|
352
390
|
resolution: z.ZodOptional<z.ZodString>;
|
|
353
391
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
354
392
|
}, z.core.$strip>>;
|
|
393
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
394
|
+
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
395
|
+
title: z.ZodString;
|
|
396
|
+
prompt: z.ZodString;
|
|
397
|
+
motionVideoUrl: z.ZodString;
|
|
398
|
+
characterImageUrl: z.ZodString;
|
|
399
|
+
outputVideoUrl: z.ZodString;
|
|
400
|
+
outputVideoId: z.ZodString;
|
|
401
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
402
|
+
params: z.ZodObject<{
|
|
403
|
+
resolution: z.ZodEnum<{
|
|
404
|
+
"1080p": "1080p";
|
|
405
|
+
"720p": "720p";
|
|
406
|
+
}>;
|
|
407
|
+
backgroundSource: z.ZodEnum<{
|
|
408
|
+
image: "image";
|
|
409
|
+
video: "video";
|
|
410
|
+
}>;
|
|
411
|
+
}, z.core.$strip>;
|
|
355
412
|
}, z.core.$strip>, z.ZodObject<{
|
|
356
413
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MUSIC>;
|
|
357
414
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -15,6 +15,7 @@ export declare const ContentReportSchema: z.ZodObject<{
|
|
|
15
15
|
readonly PRESENTATION: import("..").TOOL_CONTENT_TYPE.PRESENTATION;
|
|
16
16
|
readonly WRITER: import("..").TOOL_CONTENT_TYPE.WRITER;
|
|
17
17
|
readonly VIDEO_EDITOR: import("..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
|
|
18
|
+
readonly MOTION_CONTROL: import("..").TOOL_CONTENT_TYPE.MOTION_CONTROL;
|
|
18
19
|
readonly MUSIC: import("..").TOOL_CONTENT_TYPE.MUSIC;
|
|
19
20
|
readonly INTERIOR_DESIGN: import("..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
|
|
20
21
|
readonly TEXT: import("..").TOOL_CONTENT_TYPE.TEXT;
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_REACTION, TOOL_MODEL_STATUS } from '../../../constants';
|
|
3
|
+
export declare const MotionControlSourceGeometrySchema: z.ZodObject<{
|
|
4
|
+
minWidth: z.ZodNumber;
|
|
5
|
+
minHeight: z.ZodNumber;
|
|
6
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const MotionControlResolutionSchema: z.ZodEnum<{
|
|
12
|
+
"1080p": "1080p";
|
|
13
|
+
"720p": "720p";
|
|
14
|
+
}>;
|
|
15
|
+
export declare const MotionControlBackgroundSourceSchema: z.ZodEnum<{
|
|
16
|
+
image: "image";
|
|
17
|
+
video: "video";
|
|
18
|
+
}>;
|
|
19
|
+
export declare const MotionControlJobParamsSchema: z.ZodObject<{
|
|
20
|
+
resolution: z.ZodEnum<{
|
|
21
|
+
"1080p": "1080p";
|
|
22
|
+
"720p": "720p";
|
|
23
|
+
}>;
|
|
24
|
+
backgroundSource: z.ZodEnum<{
|
|
25
|
+
image: "image";
|
|
26
|
+
video: "video";
|
|
27
|
+
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export declare const MotionControlModelSchema: z.ZodObject<{
|
|
30
|
+
uuid: z.ZodUUID;
|
|
31
|
+
title: z.ZodString;
|
|
32
|
+
description: z.ZodString;
|
|
33
|
+
aiModel: z.ZodString;
|
|
34
|
+
order: z.ZodNumber;
|
|
35
|
+
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
36
|
+
icons: z.ZodObject<{
|
|
37
|
+
light: z.ZodObject<{
|
|
38
|
+
svg: z.ZodString;
|
|
39
|
+
png: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
dark: z.ZodObject<{
|
|
42
|
+
svg: z.ZodString;
|
|
43
|
+
png: z.ZodString;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
maxPromptLength: z.ZodNumber;
|
|
47
|
+
maxInputVideoSizeBytes: z.ZodNumber;
|
|
48
|
+
maxInputImageSizeBytes: z.ZodNumber;
|
|
49
|
+
supportedVideoFormats: z.ZodArray<z.ZodString>;
|
|
50
|
+
supportedImageFormats: z.ZodArray<z.ZodString>;
|
|
51
|
+
params: z.ZodObject<{
|
|
52
|
+
resolution: z.ZodObject<{
|
|
53
|
+
options: z.ZodArray<z.ZodEnum<{
|
|
54
|
+
"1080p": "1080p";
|
|
55
|
+
"720p": "720p";
|
|
56
|
+
}>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
backgroundSource: z.ZodObject<{
|
|
59
|
+
options: z.ZodArray<z.ZodEnum<{
|
|
60
|
+
image: "image";
|
|
61
|
+
video: "video";
|
|
62
|
+
}>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
duration: z.ZodObject<{
|
|
65
|
+
min: z.ZodNumber;
|
|
66
|
+
maxByBackgroundSource: z.ZodObject<{
|
|
67
|
+
image: z.ZodNumber;
|
|
68
|
+
video: z.ZodNumber;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
geometry: z.ZodObject<{
|
|
72
|
+
minWidth: z.ZodNumber;
|
|
73
|
+
minHeight: z.ZodNumber;
|
|
74
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
sourceGeometry: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
image: z.ZodObject<{
|
|
81
|
+
minWidth: z.ZodNumber;
|
|
82
|
+
minHeight: z.ZodNumber;
|
|
83
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
video: z.ZodNullable<z.ZodObject<{
|
|
89
|
+
minWidth: z.ZodNumber;
|
|
90
|
+
minHeight: z.ZodNumber;
|
|
91
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
99
|
+
resolution: z.ZodEnum<{
|
|
100
|
+
"1080p": "1080p";
|
|
101
|
+
"720p": "720p";
|
|
102
|
+
}>;
|
|
103
|
+
pricePerSecond: z.ZodNumber;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
canUse: z.ZodBoolean;
|
|
106
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
107
|
+
uuid: z.ZodString;
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export declare const MotionControlConfigSchema: z.ZodObject<{
|
|
112
|
+
models: z.ZodArray<z.ZodObject<{
|
|
113
|
+
uuid: z.ZodUUID;
|
|
114
|
+
title: z.ZodString;
|
|
115
|
+
description: z.ZodString;
|
|
116
|
+
aiModel: z.ZodString;
|
|
117
|
+
order: z.ZodNumber;
|
|
118
|
+
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
119
|
+
icons: z.ZodObject<{
|
|
120
|
+
light: z.ZodObject<{
|
|
121
|
+
svg: z.ZodString;
|
|
122
|
+
png: z.ZodString;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
dark: z.ZodObject<{
|
|
125
|
+
svg: z.ZodString;
|
|
126
|
+
png: z.ZodString;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
maxPromptLength: z.ZodNumber;
|
|
130
|
+
maxInputVideoSizeBytes: z.ZodNumber;
|
|
131
|
+
maxInputImageSizeBytes: z.ZodNumber;
|
|
132
|
+
supportedVideoFormats: z.ZodArray<z.ZodString>;
|
|
133
|
+
supportedImageFormats: z.ZodArray<z.ZodString>;
|
|
134
|
+
params: z.ZodObject<{
|
|
135
|
+
resolution: z.ZodObject<{
|
|
136
|
+
options: z.ZodArray<z.ZodEnum<{
|
|
137
|
+
"1080p": "1080p";
|
|
138
|
+
"720p": "720p";
|
|
139
|
+
}>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
backgroundSource: z.ZodObject<{
|
|
142
|
+
options: z.ZodArray<z.ZodEnum<{
|
|
143
|
+
image: "image";
|
|
144
|
+
video: "video";
|
|
145
|
+
}>>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
duration: z.ZodObject<{
|
|
148
|
+
min: z.ZodNumber;
|
|
149
|
+
maxByBackgroundSource: z.ZodObject<{
|
|
150
|
+
image: z.ZodNumber;
|
|
151
|
+
video: z.ZodNumber;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
geometry: z.ZodObject<{
|
|
155
|
+
minWidth: z.ZodNumber;
|
|
156
|
+
minHeight: z.ZodNumber;
|
|
157
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
sourceGeometry: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
image: z.ZodObject<{
|
|
164
|
+
minWidth: z.ZodNumber;
|
|
165
|
+
minHeight: z.ZodNumber;
|
|
166
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
video: z.ZodNullable<z.ZodObject<{
|
|
172
|
+
minWidth: z.ZodNumber;
|
|
173
|
+
minHeight: z.ZodNumber;
|
|
174
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
182
|
+
resolution: z.ZodEnum<{
|
|
183
|
+
"1080p": "1080p";
|
|
184
|
+
"720p": "720p";
|
|
185
|
+
}>;
|
|
186
|
+
pricePerSecond: z.ZodNumber;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
canUse: z.ZodBoolean;
|
|
189
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
190
|
+
uuid: z.ZodString;
|
|
191
|
+
name: z.ZodString;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
defaults: z.ZodObject<{
|
|
195
|
+
modelId: z.ZodNullable<z.ZodUUID>;
|
|
196
|
+
resolution: z.ZodEnum<{
|
|
197
|
+
"1080p": "1080p";
|
|
198
|
+
"720p": "720p";
|
|
199
|
+
}>;
|
|
200
|
+
backgroundSource: z.ZodEnum<{
|
|
201
|
+
image: "image";
|
|
202
|
+
video: "video";
|
|
203
|
+
}>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
export declare const MotionControlJobSchema: z.ZodObject<{
|
|
207
|
+
uuid: z.ZodUUID;
|
|
208
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
209
|
+
error: z.ZodNullable<z.ZodString>;
|
|
210
|
+
isFavorite: z.ZodBoolean;
|
|
211
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
212
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
213
|
+
title: z.ZodString;
|
|
214
|
+
prompt: z.ZodString;
|
|
215
|
+
modelId: z.ZodUUID;
|
|
216
|
+
motionVideoFileId: z.ZodUUID;
|
|
217
|
+
motionVideoUrl: z.ZodString;
|
|
218
|
+
characterImageFileId: z.ZodUUID;
|
|
219
|
+
characterImageUrl: z.ZodString;
|
|
220
|
+
duration: z.ZodNumber;
|
|
221
|
+
resolution: z.ZodEnum<{
|
|
222
|
+
"1080p": "1080p";
|
|
223
|
+
"720p": "720p";
|
|
224
|
+
}>;
|
|
225
|
+
backgroundSource: z.ZodEnum<{
|
|
226
|
+
image: "image";
|
|
227
|
+
video: "video";
|
|
228
|
+
}>;
|
|
229
|
+
params: z.ZodObject<{
|
|
230
|
+
resolution: z.ZodEnum<{
|
|
231
|
+
"1080p": "1080p";
|
|
232
|
+
"720p": "720p";
|
|
233
|
+
}>;
|
|
234
|
+
backgroundSource: z.ZodEnum<{
|
|
235
|
+
image: "image";
|
|
236
|
+
video: "video";
|
|
237
|
+
}>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
price: z.ZodNumber;
|
|
240
|
+
outputVideoId: z.ZodNullable<z.ZodString>;
|
|
241
|
+
outputVideoUrl: z.ZodNullable<z.ZodString>;
|
|
242
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
243
|
+
video: z.ZodNullable<z.ZodObject<{
|
|
244
|
+
uuid: z.ZodString;
|
|
245
|
+
url: z.ZodString;
|
|
246
|
+
}, z.core.$strip>>;
|
|
247
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
248
|
+
uuid: z.ZodString;
|
|
249
|
+
url: z.ZodString;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
252
|
+
isPublished: z.ZodBoolean;
|
|
253
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
254
|
+
thumbnail: z.ZodNullable<z.ZodString>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
export type MotionControlModel = z.infer<typeof MotionControlModelSchema>;
|
|
257
|
+
export type MotionControlJob = z.infer<typeof MotionControlJobSchema>;
|
|
258
|
+
export type MotionControlConfig = z.infer<typeof MotionControlConfigSchema>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MotionControlJobSchema = exports.MotionControlConfigSchema = exports.MotionControlModelSchema = exports.MotionControlJobParamsSchema = exports.MotionControlBackgroundSourceSchema = exports.MotionControlResolutionSchema = exports.MotionControlSourceGeometrySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
6
|
+
const icon_variants_schema_1 = require("../../icon-variants.schema");
|
|
7
|
+
const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
|
|
8
|
+
const constants_1 = require("../../../constants");
|
|
9
|
+
exports.MotionControlSourceGeometrySchema = zod_1.z.object({
|
|
10
|
+
minWidth: zod_1.z.number(),
|
|
11
|
+
minHeight: zod_1.z.number(),
|
|
12
|
+
maxWidth: zod_1.z.number().optional(),
|
|
13
|
+
maxHeight: zod_1.z.number().optional(),
|
|
14
|
+
minAspectRatio: zod_1.z.number().optional(),
|
|
15
|
+
maxAspectRatio: zod_1.z.number().optional(),
|
|
16
|
+
});
|
|
17
|
+
exports.MotionControlResolutionSchema = zod_1.z.enum(['720p', '1080p']);
|
|
18
|
+
exports.MotionControlBackgroundSourceSchema = zod_1.z.enum(['image', 'video']);
|
|
19
|
+
exports.MotionControlJobParamsSchema = zod_1.z.object({
|
|
20
|
+
resolution: exports.MotionControlResolutionSchema,
|
|
21
|
+
backgroundSource: exports.MotionControlBackgroundSourceSchema,
|
|
22
|
+
});
|
|
23
|
+
exports.MotionControlModelSchema = zod_1.z.object({
|
|
24
|
+
uuid: zod_1.z.uuid(),
|
|
25
|
+
title: zod_1.z.string(),
|
|
26
|
+
description: zod_1.z.string(),
|
|
27
|
+
aiModel: zod_1.z.string(),
|
|
28
|
+
order: zod_1.z.number(),
|
|
29
|
+
status: zod_1.z.enum(constants_1.TOOL_MODEL_STATUS),
|
|
30
|
+
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
31
|
+
maxPromptLength: zod_1.z.number(),
|
|
32
|
+
maxInputVideoSizeBytes: zod_1.z.number(),
|
|
33
|
+
maxInputImageSizeBytes: zod_1.z.number(),
|
|
34
|
+
supportedVideoFormats: zod_1.z.array(zod_1.z.string()),
|
|
35
|
+
supportedImageFormats: zod_1.z.array(zod_1.z.string()),
|
|
36
|
+
params: zod_1.z.object({
|
|
37
|
+
resolution: zod_1.z.object({ options: zod_1.z.array(exports.MotionControlResolutionSchema) }),
|
|
38
|
+
backgroundSource: zod_1.z.object({ options: zod_1.z.array(exports.MotionControlBackgroundSourceSchema) }),
|
|
39
|
+
duration: zod_1.z.object({
|
|
40
|
+
min: zod_1.z.number(),
|
|
41
|
+
maxByBackgroundSource: zod_1.z.object({ image: zod_1.z.number(), video: zod_1.z.number() }),
|
|
42
|
+
}),
|
|
43
|
+
geometry: exports.MotionControlSourceGeometrySchema,
|
|
44
|
+
sourceGeometry: zod_1.z
|
|
45
|
+
.object({
|
|
46
|
+
image: exports.MotionControlSourceGeometrySchema,
|
|
47
|
+
video: exports.MotionControlSourceGeometrySchema.nullable(),
|
|
48
|
+
})
|
|
49
|
+
.optional(),
|
|
50
|
+
}),
|
|
51
|
+
pricingRules: zod_1.z.array(zod_1.z.object({ resolution: exports.MotionControlResolutionSchema, pricePerSecond: zod_1.z.number() })),
|
|
52
|
+
canUse: zod_1.z.boolean(),
|
|
53
|
+
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
54
|
+
});
|
|
55
|
+
exports.MotionControlConfigSchema = zod_1.z.object({
|
|
56
|
+
models: zod_1.z.array(exports.MotionControlModelSchema),
|
|
57
|
+
defaults: zod_1.z.object({
|
|
58
|
+
modelId: zod_1.z.uuid().nullable(),
|
|
59
|
+
resolution: exports.MotionControlResolutionSchema,
|
|
60
|
+
backgroundSource: exports.MotionControlBackgroundSourceSchema,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
const MediaSchema = zod_1.z.object({ uuid: zod_1.z.string(), url: zod_1.z.string() });
|
|
64
|
+
exports.MotionControlJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
65
|
+
title: zod_1.z.string(),
|
|
66
|
+
prompt: zod_1.z.string(),
|
|
67
|
+
modelId: zod_1.z.uuid(),
|
|
68
|
+
motionVideoFileId: zod_1.z.uuid(),
|
|
69
|
+
motionVideoUrl: zod_1.z.string(),
|
|
70
|
+
characterImageFileId: zod_1.z.uuid(),
|
|
71
|
+
characterImageUrl: zod_1.z.string(),
|
|
72
|
+
duration: zod_1.z.number(),
|
|
73
|
+
resolution: exports.MotionControlResolutionSchema,
|
|
74
|
+
backgroundSource: exports.MotionControlBackgroundSourceSchema,
|
|
75
|
+
params: exports.MotionControlJobParamsSchema,
|
|
76
|
+
price: zod_1.z.number(),
|
|
77
|
+
outputVideoId: zod_1.z.string().nullable(),
|
|
78
|
+
outputVideoUrl: zod_1.z.string().nullable(),
|
|
79
|
+
previewUrl: zod_1.z.string().nullable(),
|
|
80
|
+
video: MediaSchema.nullable(),
|
|
81
|
+
preview: MediaSchema.nullable(),
|
|
82
|
+
reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable(),
|
|
83
|
+
isPublished: zod_1.z.boolean(),
|
|
84
|
+
postId: zod_1.z.string().nullable(),
|
|
85
|
+
thumbnail: zod_1.z.string().nullable(),
|
|
86
|
+
});
|