@purpleschool/gptbot 0.14.48 → 0.14.50-stage2
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/photo-session.d.ts +20 -0
- package/build/api/controllers/http/photo-session.js +23 -0
- package/build/api/controllers/http/tts.d.ts +9 -0
- package/build/api/controllers/http/tts.js +9 -0
- package/build/api/routes.d.ts +12 -0
- package/build/api/routes.js +12 -0
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +42 -2
- package/build/commands/community/create-community-post.command.d.ts +10 -0
- package/build/commands/community/get-all-community-posts-by-criteria.command.d.ts +10 -0
- package/build/commands/community/get-community-post-by-uuid.command.d.ts +10 -0
- package/build/commands/community/get-my-community-posts-by-criteria.command.d.ts +10 -0
- package/build/commands/community/get-my-favorite-community-posts.command.d.ts +10 -0
- package/build/commands/community/get-my-likes-community-posts.command.d.ts +10 -0
- package/build/commands/community/set-like-community-post.command.d.ts +10 -0
- package/build/commands/tools/index.d.ts +1 -0
- package/build/commands/tools/index.js +1 -0
- package/build/commands/tools/marketplace-card/get-marketplace-card-config.command.d.ts +0 -1
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +39 -0
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +22 -0
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +9 -0
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +11 -0
- package/build/commands/tools/photo-session/admin/index.d.ts +3 -0
- package/build/commands/tools/photo-session/admin/index.js +19 -0
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +45 -0
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +31 -0
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +5 -0
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +8 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +9 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +11 -0
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +61 -0
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +14 -0
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +70 -0
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +24 -0
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +76 -0
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +11 -0
- package/build/commands/tools/photo-session/get-photo-session-price.command.d.ts +32 -0
- package/build/commands/tools/photo-session/get-photo-session-price.command.js +27 -0
- package/build/commands/tools/photo-session/index.d.ts +12 -0
- package/build/commands/tools/photo-session/index.js +28 -0
- package/build/commands/tools/photo-session/photo-session.command.d.ts +87 -0
- package/build/commands/tools/photo-session/photo-session.command.js +33 -0
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +85 -0
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +32 -0
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +67 -0
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +28 -0
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +65 -0
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +17 -0
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +65 -0
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +17 -0
- package/build/commands/tools/tts/create-voice-clone.command.d.ts +32 -0
- package/build/commands/tools/tts/create-voice-clone.command.js +17 -0
- package/build/commands/tools/tts/create-voice-design.command.d.ts +22 -0
- package/build/commands/tools/tts/create-voice-design.command.js +17 -0
- package/build/commands/tools/tts/delete-voice.command.d.ts +9 -0
- package/build/commands/tools/tts/delete-voice.command.js +11 -0
- package/build/commands/tools/tts/download-tts-job.command.d.ts +18 -0
- package/build/commands/tools/tts/download-tts-job.command.js +17 -0
- package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +13 -1
- package/build/commands/tools/tts/find-tts-jobs.command.d.ts +13 -1
- package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +29 -0
- package/build/commands/tools/tts/find-voice-by-uuid.query.js +14 -0
- package/build/commands/tools/tts/find-voices.query.d.ts +37 -0
- package/build/commands/tools/tts/find-voices.query.js +18 -0
- package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +11 -0
- package/build/commands/tools/tts/improve-tts-text.command.d.ts +13 -0
- package/build/commands/tools/tts/improve-tts-text.command.js +13 -0
- package/build/commands/tools/tts/index.d.ts +9 -0
- package/build/commands/tools/tts/index.js +9 -0
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +13 -1
- package/build/commands/tools/tts/select-voice-design.command.d.ts +33 -0
- package/build/commands/tools/tts/select-voice-design.command.js +17 -0
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +13 -1
- package/build/commands/tools/tts/tts.command.d.ts +6 -1
- package/build/commands/tools/tts/tts.command.js +7 -1
- package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +13 -1
- package/build/commands/tools/tts/update-tts-job-title.command.d.ts +13 -1
- package/build/commands/tools/tts/update-voice.command.d.ts +33 -0
- package/build/commands/tools/tts/update-voice.command.js +17 -0
- package/build/commands/tools/video-editor/edit-video.command.d.ts +13 -0
- package/build/commands/tools/video-editor/edit-video.command.js +1 -0
- package/build/commands/tools/video-editor/find-video-editor-job-by-id.command.d.ts +5 -0
- package/build/commands/tools/video-editor/find-video-editor-jobs.command.d.ts +5 -0
- package/build/commands/tools/video-editor/get-video-editor-config.command.d.ts +31 -2
- package/build/commands/tools/video-editor/retry-video-editor-job.command.d.ts +13 -0
- package/build/commands/tools/video-editor/retry-video-editor-job.command.js +1 -0
- package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.d.ts +5 -0
- package/build/commands/tools/video-editor/update-video-editor-job-favorite.command.d.ts +5 -0
- package/build/commands/tools/video-editor/update-video-editor-job-title.command.d.ts +5 -0
- package/build/constants/index.d.ts +2 -0
- package/build/constants/index.js +2 -0
- package/build/constants/tool-photo-session/enums/index.d.ts +3 -0
- package/build/constants/tool-photo-session/enums/index.js +19 -0
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +5 -0
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +9 -0
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +3 -0
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +7 -0
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.d.ts +4 -0
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.js +8 -0
- package/build/constants/tool-photo-session/index.d.ts +1 -0
- package/build/constants/tool-photo-session/index.js +17 -0
- package/build/constants/tool-tts/enums/index.d.ts +7 -0
- package/build/constants/tool-tts/enums/index.js +23 -0
- package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/tts-download-format.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-category.enum.d.ts +14 -0
- package/build/constants/tool-tts/enums/voice-category.enum.js +18 -0
- package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +4 -0
- package/build/constants/tool-tts/enums/voice-gender.enum.js +8 -0
- package/build/constants/tool-tts/enums/voice-source.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/voice-source.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-status.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/voice-status.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +5 -0
- package/build/constants/tool-tts/enums/voice-tag-group.enum.js +9 -0
- package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +20 -0
- package/build/constants/tool-tts/enums/voice-tag.enum.js +24 -0
- package/build/constants/tool-tts/index.d.ts +1 -0
- package/build/constants/tool-tts/index.js +17 -0
- package/build/constants/tool-video-editor/enums/index.d.ts +0 -1
- package/build/constants/tool-video-editor/enums/index.js +0 -1
- package/build/constants/tool-video-editor/enums/video-editor-model-limitation.enum.d.ts +2 -1
- package/build/constants/tool-video-editor/enums/video-editor-model-limitation.enum.js +1 -0
- package/build/helpers/index.d.ts +1 -0
- package/build/helpers/index.js +1 -0
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +6 -0
- package/build/helpers/photo-session/calculate-photo-session-price.helper.js +13 -0
- package/build/helpers/photo-session/index.d.ts +1 -0
- package/build/helpers/photo-session/index.js +17 -0
- package/build/models/canvas-node-definition.schema.d.ts +126 -6
- package/build/models/community/community-post-media-data.schema.d.ts +20 -0
- package/build/models/community/community-post-media-data.schema.js +4 -0
- package/build/models/community/community-post.schema.d.ts +30 -0
- package/build/models/tools/index.d.ts +1 -0
- package/build/models/tools/index.js +1 -0
- package/build/models/tools/marketplace-card/marketplace-card-config.schema.d.ts +0 -2
- package/build/models/tools/marketplace-card/marketplace-card-config.schema.js +0 -1
- package/build/models/tools/photo-session/index.d.ts +4 -0
- package/build/models/tools/photo-session/index.js +20 -0
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +77 -0
- package/build/models/tools/photo-session/photo-session-config.schema.js +16 -0
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +77 -0
- package/build/models/tools/photo-session/photo-session-job.schema.js +45 -0
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +73 -0
- package/build/models/tools/photo-session/photo-session-model.schema.js +45 -0
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +29 -0
- package/build/models/tools/photo-session/photo-session-style.schema.js +22 -0
- package/build/models/tools/tts/index.d.ts +3 -0
- package/build/models/tools/tts/index.js +3 -0
- package/build/models/tools/tts/tts-config.schema.d.ts +23 -0
- package/build/models/tools/tts/tts-config.schema.js +14 -1
- package/build/models/tools/tts/tts-job.schema.d.ts +26 -1
- package/build/models/tools/tts/tts-job.schema.js +16 -2
- package/build/models/tools/tts/tts-model.schema.d.ts +1 -0
- package/build/models/tools/tts/tts-model.schema.js +1 -0
- package/build/models/tools/tts/voice-design-draft.schema.d.ts +12 -0
- package/build/models/tools/tts/voice-design-draft.schema.js +12 -0
- package/build/models/tools/tts/voice-design-sample.schema.d.ts +6 -0
- package/build/models/tools/tts/voice-design-sample.schema.js +8 -0
- package/build/models/tools/tts/voice.schema.d.ts +22 -0
- package/build/models/tools/tts/voice.schema.js +24 -0
- package/build/models/tools/video-editor/video-editor-config.schema.d.ts +31 -2
- package/build/models/tools/video-editor/video-editor-job.schema.d.ts +9 -0
- package/build/models/tools/video-editor/video-editor-job.schema.js +5 -0
- package/build/models/tools/video-editor/video-editor-model.schema.d.ts +65 -2
- package/build/models/tools/video-editor/video-editor-model.schema.js +40 -2
- package/package.json +1 -1
- package/build/constants/tool-video-editor/enums/video-editor-model-strategy.enum.d.ts +0 -3
- package/build/constants/tool-video-editor/enums/video-editor-model-strategy.enum.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSJobSchema = exports.TTSJobParamsSchema = void 0;
|
|
3
|
+
exports.TTSJobSchema = exports.TTSJobVoiceSchema = exports.TTSJobSpeakerSchema = exports.TTSJobParamsSchema = 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");
|
|
@@ -10,6 +10,17 @@ exports.TTSJobParamsSchema = zod_1.z.object({
|
|
|
10
10
|
stability: zod_1.z.number().optional(),
|
|
11
11
|
style: zod_1.z.number().optional(),
|
|
12
12
|
});
|
|
13
|
+
exports.TTSJobSpeakerSchema = zod_1.z.object({
|
|
14
|
+
speaker: zod_1.z.number(),
|
|
15
|
+
voiceId: zod_1.z.string(),
|
|
16
|
+
});
|
|
17
|
+
exports.TTSJobVoiceSchema = zod_1.z.object({
|
|
18
|
+
uuid: zod_1.z.string(),
|
|
19
|
+
title: zod_1.z.string(),
|
|
20
|
+
previewUrl: zod_1.z.string(),
|
|
21
|
+
isDeleted: zod_1.z.boolean(),
|
|
22
|
+
speaker: zod_1.z.number().nullable(),
|
|
23
|
+
});
|
|
13
24
|
exports.TTSJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
14
25
|
userInput: zod_1.z.string(),
|
|
15
26
|
title: zod_1.z.string(),
|
|
@@ -18,5 +29,8 @@ exports.TTSJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
18
29
|
duration: zod_1.z.string(),
|
|
19
30
|
params: exports.TTSJobParamsSchema,
|
|
20
31
|
modelId: zod_1.z.string(),
|
|
21
|
-
voiceId: zod_1.z.string(),
|
|
32
|
+
voiceId: zod_1.z.string().nullable(),
|
|
33
|
+
isDialog: zod_1.z.boolean(),
|
|
34
|
+
speakers: zod_1.z.array(exports.TTSJobSpeakerSchema),
|
|
35
|
+
voices: zod_1.z.array(exports.TTSJobVoiceSchema),
|
|
22
36
|
});
|
|
@@ -45,6 +45,7 @@ exports.TTSModelSchema = zod_1.z.object({
|
|
|
45
45
|
order: zod_1.z.number(),
|
|
46
46
|
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
47
47
|
maxInputLength: zod_1.z.number(),
|
|
48
|
+
maxSpeakers: zod_1.z.number(),
|
|
48
49
|
params: exports.TTSModelParams,
|
|
49
50
|
voices: zod_1.z.array(exports.TTSVoiceSchema),
|
|
50
51
|
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_GENDER } from '../../../constants';
|
|
3
|
+
export declare const VoiceDesignDraftSchema: z.ZodObject<{
|
|
4
|
+
designId: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
7
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
8
|
+
sampleId: z.ZodString;
|
|
9
|
+
previewUrl: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type VoiceDesignDraft = z.infer<typeof VoiceDesignDraftSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceDesignDraftSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const voice_design_sample_schema_1 = require("./voice-design-sample.schema");
|
|
7
|
+
exports.VoiceDesignDraftSchema = zod_1.z.object({
|
|
8
|
+
designId: zod_1.z.string().uuid(),
|
|
9
|
+
title: zod_1.z.string(),
|
|
10
|
+
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER),
|
|
11
|
+
samples: zod_1.z.array(voice_design_sample_schema_1.VoiceDesignSampleSchema),
|
|
12
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceDesignSampleSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.VoiceDesignSampleSchema = zod_1.z.object({
|
|
6
|
+
sampleId: zod_1.z.string().uuid(),
|
|
7
|
+
previewUrl: zod_1.z.string(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VOICE_CATEGORY, VOICE_GENDER, VOICE_SOURCE, VOICE_STATUS } from '../../../constants';
|
|
3
|
+
export declare const VoiceSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
source: z.ZodEnum<typeof VOICE_SOURCE>;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
description: z.ZodString;
|
|
8
|
+
gender: z.ZodNullable<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
9
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
10
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
11
|
+
categories: z.ZodArray<z.ZodEnum<typeof VOICE_CATEGORY>>;
|
|
12
|
+
previewUrl: z.ZodString;
|
|
13
|
+
status: z.ZodEnum<typeof VOICE_STATUS>;
|
|
14
|
+
error: z.ZodNullable<z.ZodString>;
|
|
15
|
+
order: z.ZodNumber;
|
|
16
|
+
isDeleted: z.ZodBoolean;
|
|
17
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
18
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
createdAt: z.ZodDate;
|
|
20
|
+
updatedAt: z.ZodDate;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type Voice = z.infer<typeof VoiceSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
exports.VoiceSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.string().uuid(),
|
|
8
|
+
source: zod_1.z.nativeEnum(constants_1.VOICE_SOURCE),
|
|
9
|
+
title: zod_1.z.string(),
|
|
10
|
+
description: zod_1.z.string(),
|
|
11
|
+
gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER).nullable(),
|
|
12
|
+
trait: zod_1.z.string().nullable(),
|
|
13
|
+
ageRange: zod_1.z.string().nullable(),
|
|
14
|
+
categories: zod_1.z.array(zod_1.z.nativeEnum(constants_1.VOICE_CATEGORY)),
|
|
15
|
+
previewUrl: zod_1.z.string(),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.VOICE_STATUS),
|
|
17
|
+
error: zod_1.z.string().nullable(),
|
|
18
|
+
order: zod_1.z.number(),
|
|
19
|
+
isDeleted: zod_1.z.boolean(),
|
|
20
|
+
userId: zod_1.z.string().uuid().nullable(),
|
|
21
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable(),
|
|
22
|
+
createdAt: zod_1.z.date(),
|
|
23
|
+
updatedAt: zod_1.z.date(),
|
|
24
|
+
});
|
|
@@ -5,7 +5,6 @@ export declare const VideoEditorConfigSchema: z.ZodObject<{
|
|
|
5
5
|
title: z.ZodString;
|
|
6
6
|
description: z.ZodString;
|
|
7
7
|
aiModel: z.ZodString;
|
|
8
|
-
pricePerCall: z.ZodNumber;
|
|
9
8
|
order: z.ZodNumber;
|
|
10
9
|
icons: z.ZodObject<{
|
|
11
10
|
light: z.ZodObject<{
|
|
@@ -22,18 +21,49 @@ export declare const VideoEditorConfigSchema: z.ZodObject<{
|
|
|
22
21
|
maxInputVideoDurationInSeconds: z.ZodNumber;
|
|
23
22
|
supportedFormats: z.ZodArray<z.ZodString>;
|
|
24
23
|
params: z.ZodObject<{
|
|
24
|
+
imageAttachment: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
supported: z.ZodBoolean;
|
|
26
|
+
maxImages: z.ZodNumber;
|
|
27
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
referenceImageAttachment: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
supported: z.ZodBoolean;
|
|
31
|
+
maxImages: z.ZodNumber;
|
|
32
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
|
+
minWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
maxWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
minWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
maxWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
minHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
maxHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
audioAttachment: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
supported: z.ZodBoolean;
|
|
43
|
+
maxAudios: z.ZodNumber;
|
|
44
|
+
maxDurationSeconds: z.ZodNumber;
|
|
45
|
+
minDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
maxTotalDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
+
mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
25
51
|
duration: z.ZodOptional<z.ZodObject<{
|
|
26
52
|
options: z.ZodArray<z.ZodNumber>;
|
|
27
53
|
}, z.core.$strip>>;
|
|
28
54
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
29
55
|
options: z.ZodArray<z.ZodString>;
|
|
30
56
|
}, z.core.$strip>>;
|
|
57
|
+
aspectRatio: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
options: z.ZodArray<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
31
60
|
}, z.core.$strip>;
|
|
32
61
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
33
62
|
type: z.ZodEnum<typeof import("../../..").VIDEO_EDITOR_PRICING_RULE_TYPE>;
|
|
34
63
|
condition: z.ZodObject<{
|
|
35
64
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
36
65
|
resolution: z.ZodOptional<z.ZodString>;
|
|
66
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
37
67
|
}, z.core.$strip>;
|
|
38
68
|
value: z.ZodNumber;
|
|
39
69
|
}, z.core.$strip>>;
|
|
@@ -45,6 +75,5 @@ export declare const VideoEditorConfigSchema: z.ZodObject<{
|
|
|
45
75
|
}, z.core.$strip>>;
|
|
46
76
|
limitations: z.ZodArray<z.ZodEnum<typeof import("../../..").VIDEO_EDITOR_MODEL_LIMITATION>>;
|
|
47
77
|
canUse: z.ZodBoolean;
|
|
48
|
-
status: z.ZodString;
|
|
49
78
|
}, z.core.$strip>>;
|
|
50
79
|
}, z.core.$strip>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { USER_REACTION } from '../../../constants';
|
|
3
3
|
export declare const VideoEditorJobParamsSchema: z.ZodObject<{
|
|
4
|
+
imageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5
|
+
referenceImageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
audioIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4
7
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
5
8
|
resolution: z.ZodOptional<z.ZodString>;
|
|
9
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
6
10
|
}, z.core.$strip>;
|
|
7
11
|
export type VideoEditorJobParams = z.infer<typeof VideoEditorJobParamsSchema>;
|
|
8
12
|
export declare const VideoEditorJobSchema: z.ZodObject<{
|
|
@@ -18,6 +22,7 @@ export declare const VideoEditorJobSchema: z.ZodObject<{
|
|
|
18
22
|
inputVideoId: z.ZodNullable<z.ZodString>;
|
|
19
23
|
inputVideoUrl: z.ZodString;
|
|
20
24
|
outputVideoUrl: z.ZodNullable<z.ZodString>;
|
|
25
|
+
outputVideoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
26
|
previewUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
27
|
video: z.ZodNullable<z.ZodObject<{
|
|
23
28
|
uuid: z.ZodString;
|
|
@@ -28,8 +33,12 @@ export declare const VideoEditorJobSchema: z.ZodObject<{
|
|
|
28
33
|
url: z.ZodString;
|
|
29
34
|
}, z.core.$strip>>;
|
|
30
35
|
params: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
imageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
referenceImageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
audioIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
39
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
32
40
|
resolution: z.ZodOptional<z.ZodString>;
|
|
41
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
33
42
|
}, z.core.$strip>>;
|
|
34
43
|
modelId: z.ZodString;
|
|
35
44
|
isPublished: z.ZodBoolean;
|
|
@@ -5,8 +5,12 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const constants_1 = require("../../../constants");
|
|
6
6
|
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
7
7
|
exports.VideoEditorJobParamsSchema = zod_1.z.object({
|
|
8
|
+
imageIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
9
|
+
referenceImageIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
10
|
+
audioIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
8
11
|
duration: zod_1.z.number().optional(),
|
|
9
12
|
resolution: zod_1.z.string().optional(),
|
|
13
|
+
aspectRatio: zod_1.z.string().optional(),
|
|
10
14
|
});
|
|
11
15
|
exports.VideoEditorJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
12
16
|
title: zod_1.z.string(),
|
|
@@ -15,6 +19,7 @@ exports.VideoEditorJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
15
19
|
inputVideoId: zod_1.z.string().nullable(),
|
|
16
20
|
inputVideoUrl: zod_1.z.string(),
|
|
17
21
|
outputVideoUrl: zod_1.z.string().nullable(),
|
|
22
|
+
outputVideoId: zod_1.z.string().nullable().optional(),
|
|
18
23
|
previewUrl: zod_1.z.string().nullable().optional(),
|
|
19
24
|
video: zod_1.z
|
|
20
25
|
.object({
|
|
@@ -2,21 +2,54 @@ import { z } from 'zod';
|
|
|
2
2
|
import { VIDEO_EDITOR_MODEL_LIMITATION } from '../../../constants/tool-video-editor/enums/video-editor-model-limitation.enum';
|
|
3
3
|
import { VIDEO_EDITOR_PRICING_RULE_TYPE } from '../../../constants/tool-video-editor/enums/video-editor-pricing-rule-type.enum';
|
|
4
4
|
export declare const VideoEditorModelParamsSchema: z.ZodObject<{
|
|
5
|
+
imageAttachment: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
supported: z.ZodBoolean;
|
|
7
|
+
maxImages: z.ZodNumber;
|
|
8
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
referenceImageAttachment: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
supported: z.ZodBoolean;
|
|
12
|
+
maxImages: z.ZodNumber;
|
|
13
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
minWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
maxWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
minWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
maxWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
minHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
maxHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
audioAttachment: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
supported: z.ZodBoolean;
|
|
24
|
+
maxAudios: z.ZodNumber;
|
|
25
|
+
maxDurationSeconds: z.ZodNumber;
|
|
26
|
+
minDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
maxTotalDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
5
32
|
duration: z.ZodOptional<z.ZodObject<{
|
|
6
33
|
options: z.ZodArray<z.ZodNumber>;
|
|
7
34
|
}, z.core.$strip>>;
|
|
8
35
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
9
36
|
options: z.ZodArray<z.ZodString>;
|
|
10
37
|
}, z.core.$strip>>;
|
|
38
|
+
aspectRatio: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
options: z.ZodArray<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
11
41
|
}, z.core.$strip>;
|
|
42
|
+
export type VideoEditorModelParams = z.infer<typeof VideoEditorModelParamsSchema>;
|
|
12
43
|
export declare const VideoEditorPricingRequestParamsSchema: z.ZodObject<{
|
|
13
44
|
duration: z.ZodNumber;
|
|
14
45
|
resolution: z.ZodOptional<z.ZodString>;
|
|
46
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
15
47
|
}, z.core.$strip>;
|
|
16
48
|
export type VideoEditorPricingRequestParams = z.infer<typeof VideoEditorPricingRequestParamsSchema>;
|
|
17
49
|
export declare const VideoEditorModelPricingRuleConditionSchema: z.ZodObject<{
|
|
18
50
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
19
51
|
resolution: z.ZodOptional<z.ZodString>;
|
|
52
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
20
53
|
}, z.core.$strip>;
|
|
21
54
|
export type VideoEditorModelPricingRuleCondition = z.infer<typeof VideoEditorModelPricingRuleConditionSchema>;
|
|
22
55
|
export declare const VideoEditorModelPricingRulesSchema: z.ZodArray<z.ZodObject<{
|
|
@@ -24,6 +57,7 @@ export declare const VideoEditorModelPricingRulesSchema: z.ZodArray<z.ZodObject<
|
|
|
24
57
|
condition: z.ZodObject<{
|
|
25
58
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
26
59
|
resolution: z.ZodOptional<z.ZodString>;
|
|
60
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
27
61
|
}, z.core.$strip>;
|
|
28
62
|
value: z.ZodNumber;
|
|
29
63
|
}, z.core.$strip>>;
|
|
@@ -33,7 +67,6 @@ export declare const VideoEditorModelSchema: z.ZodObject<{
|
|
|
33
67
|
title: z.ZodString;
|
|
34
68
|
description: z.ZodString;
|
|
35
69
|
aiModel: z.ZodString;
|
|
36
|
-
pricePerCall: z.ZodNumber;
|
|
37
70
|
order: z.ZodNumber;
|
|
38
71
|
icons: z.ZodObject<{
|
|
39
72
|
light: z.ZodObject<{
|
|
@@ -50,18 +83,49 @@ export declare const VideoEditorModelSchema: z.ZodObject<{
|
|
|
50
83
|
maxInputVideoDurationInSeconds: z.ZodNumber;
|
|
51
84
|
supportedFormats: z.ZodArray<z.ZodString>;
|
|
52
85
|
params: z.ZodObject<{
|
|
86
|
+
imageAttachment: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
supported: z.ZodBoolean;
|
|
88
|
+
maxImages: z.ZodNumber;
|
|
89
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
referenceImageAttachment: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
supported: z.ZodBoolean;
|
|
93
|
+
maxImages: z.ZodNumber;
|
|
94
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
+
minWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
maxWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
minWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
maxWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
minHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
maxHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
audioAttachment: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
supported: z.ZodBoolean;
|
|
105
|
+
maxAudios: z.ZodNumber;
|
|
106
|
+
maxDurationSeconds: z.ZodNumber;
|
|
107
|
+
minDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
maxTotalDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
|
+
mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
53
113
|
duration: z.ZodOptional<z.ZodObject<{
|
|
54
114
|
options: z.ZodArray<z.ZodNumber>;
|
|
55
115
|
}, z.core.$strip>>;
|
|
56
116
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
57
117
|
options: z.ZodArray<z.ZodString>;
|
|
58
118
|
}, z.core.$strip>>;
|
|
119
|
+
aspectRatio: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
options: z.ZodArray<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
59
122
|
}, z.core.$strip>;
|
|
60
123
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
61
124
|
type: z.ZodEnum<typeof VIDEO_EDITOR_PRICING_RULE_TYPE>;
|
|
62
125
|
condition: z.ZodObject<{
|
|
63
126
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
64
127
|
resolution: z.ZodOptional<z.ZodString>;
|
|
128
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
65
129
|
}, z.core.$strip>;
|
|
66
130
|
value: z.ZodNumber;
|
|
67
131
|
}, z.core.$strip>>;
|
|
@@ -73,5 +137,4 @@ export declare const VideoEditorModelSchema: z.ZodObject<{
|
|
|
73
137
|
}, z.core.$strip>>;
|
|
74
138
|
limitations: z.ZodArray<z.ZodEnum<typeof VIDEO_EDITOR_MODEL_LIMITATION>>;
|
|
75
139
|
canUse: z.ZodBoolean;
|
|
76
|
-
status: z.ZodString;
|
|
77
140
|
}, z.core.$strip>;
|
|
@@ -7,6 +7,39 @@ const video_editor_pricing_rule_type_enum_1 = require("../../../constants/tool-v
|
|
|
7
7
|
const icon_variants_schema_1 = require("../../icon-variants.schema");
|
|
8
8
|
const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
|
|
9
9
|
exports.VideoEditorModelParamsSchema = zod_1.z.object({
|
|
10
|
+
imageAttachment: zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
supported: zod_1.z.boolean(),
|
|
13
|
+
maxImages: zod_1.z.number(),
|
|
14
|
+
maxFileSizeMb: zod_1.z.number().optional(),
|
|
15
|
+
})
|
|
16
|
+
.optional(),
|
|
17
|
+
referenceImageAttachment: zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
supported: zod_1.z.boolean(),
|
|
20
|
+
maxImages: zod_1.z.number(),
|
|
21
|
+
formats: zod_1.z.array(zod_1.z.string()).optional(),
|
|
22
|
+
minWidthToHeightRatio: zod_1.z.number().optional(),
|
|
23
|
+
maxWidthToHeightRatio: zod_1.z.number().optional(),
|
|
24
|
+
minWidthPx: zod_1.z.number().optional(),
|
|
25
|
+
maxWidthPx: zod_1.z.number().optional(),
|
|
26
|
+
minHeightPx: zod_1.z.number().optional(),
|
|
27
|
+
maxHeightPx: zod_1.z.number().optional(),
|
|
28
|
+
maxFileSizeMb: zod_1.z.number().optional(),
|
|
29
|
+
})
|
|
30
|
+
.optional(),
|
|
31
|
+
audioAttachment: zod_1.z
|
|
32
|
+
.object({
|
|
33
|
+
supported: zod_1.z.boolean(),
|
|
34
|
+
maxAudios: zod_1.z.number(),
|
|
35
|
+
maxDurationSeconds: zod_1.z.number(),
|
|
36
|
+
minDurationSeconds: zod_1.z.number().optional(),
|
|
37
|
+
maxTotalDurationSeconds: zod_1.z.number().optional(),
|
|
38
|
+
maxFileSizeMb: zod_1.z.number().optional(),
|
|
39
|
+
formats: zod_1.z.array(zod_1.z.string()).optional(),
|
|
40
|
+
mimeTypes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
41
|
+
})
|
|
42
|
+
.optional(),
|
|
10
43
|
duration: zod_1.z
|
|
11
44
|
.object({
|
|
12
45
|
options: zod_1.z.array(zod_1.z.number()),
|
|
@@ -17,14 +50,21 @@ exports.VideoEditorModelParamsSchema = zod_1.z.object({
|
|
|
17
50
|
options: zod_1.z.array(zod_1.z.string()),
|
|
18
51
|
})
|
|
19
52
|
.optional(),
|
|
53
|
+
aspectRatio: zod_1.z
|
|
54
|
+
.object({
|
|
55
|
+
options: zod_1.z.array(zod_1.z.string()),
|
|
56
|
+
})
|
|
57
|
+
.optional(),
|
|
20
58
|
});
|
|
21
59
|
exports.VideoEditorPricingRequestParamsSchema = zod_1.z.object({
|
|
22
60
|
duration: zod_1.z.number(),
|
|
23
61
|
resolution: zod_1.z.string().optional(),
|
|
62
|
+
aspectRatio: zod_1.z.string().optional(),
|
|
24
63
|
});
|
|
25
64
|
exports.VideoEditorModelPricingRuleConditionSchema = zod_1.z.object({
|
|
26
65
|
duration: zod_1.z.number().optional(),
|
|
27
66
|
resolution: zod_1.z.string().optional(),
|
|
67
|
+
aspectRatio: zod_1.z.string().optional(),
|
|
28
68
|
});
|
|
29
69
|
exports.VideoEditorModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
|
|
30
70
|
type: zod_1.z.nativeEnum(video_editor_pricing_rule_type_enum_1.VIDEO_EDITOR_PRICING_RULE_TYPE),
|
|
@@ -36,7 +76,6 @@ exports.VideoEditorModelSchema = zod_1.z.object({
|
|
|
36
76
|
title: zod_1.z.string(),
|
|
37
77
|
description: zod_1.z.string(),
|
|
38
78
|
aiModel: zod_1.z.string(),
|
|
39
|
-
pricePerCall: zod_1.z.number(),
|
|
40
79
|
order: zod_1.z.number(),
|
|
41
80
|
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
42
81
|
maxPromptLength: zod_1.z.number(),
|
|
@@ -50,5 +89,4 @@ exports.VideoEditorModelSchema = zod_1.z.object({
|
|
|
50
89
|
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
51
90
|
limitations: zod_1.z.array(zod_1.z.nativeEnum(video_editor_model_limitation_enum_1.VIDEO_EDITOR_MODEL_LIMITATION)),
|
|
52
91
|
canUse: zod_1.z.boolean(),
|
|
53
|
-
status: zod_1.z.string(),
|
|
54
92
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VIDEO_EDITOR_MODEL_STRATEGY = void 0;
|
|
4
|
-
var VIDEO_EDITOR_MODEL_STRATEGY;
|
|
5
|
-
(function (VIDEO_EDITOR_MODEL_STRATEGY) {
|
|
6
|
-
VIDEO_EDITOR_MODEL_STRATEGY["LUMA_MODIFY_POLLING"] = "LUMA_MODIFY_POLLING";
|
|
7
|
-
})(VIDEO_EDITOR_MODEL_STRATEGY || (exports.VIDEO_EDITOR_MODEL_STRATEGY = VIDEO_EDITOR_MODEL_STRATEGY = {}));
|