@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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TTS_DOWNLOAD_FORMAT = void 0;
|
|
4
|
+
var TTS_DOWNLOAD_FORMAT;
|
|
5
|
+
(function (TTS_DOWNLOAD_FORMAT) {
|
|
6
|
+
TTS_DOWNLOAD_FORMAT["MP3"] = "mp3";
|
|
7
|
+
TTS_DOWNLOAD_FORMAT["WAV"] = "wav";
|
|
8
|
+
TTS_DOWNLOAD_FORMAT["OPUS"] = "opus";
|
|
9
|
+
})(TTS_DOWNLOAD_FORMAT || (exports.TTS_DOWNLOAD_FORMAT = TTS_DOWNLOAD_FORMAT = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum VOICE_CATEGORY {
|
|
2
|
+
GAMES = "GAMES",
|
|
3
|
+
AUDIOBOOKS = "AUDIOBOOKS",
|
|
4
|
+
YOUTUBE = "YOUTUBE",
|
|
5
|
+
PODCASTS = "PODCASTS",
|
|
6
|
+
NEWS = "NEWS",
|
|
7
|
+
EDUCATION = "EDUCATION",
|
|
8
|
+
ADVERTISING = "ADVERTISING",
|
|
9
|
+
IVR = "IVR",
|
|
10
|
+
FAIRY_TALES = "FAIRY_TALES",
|
|
11
|
+
HORROR = "HORROR",
|
|
12
|
+
WHISPER = "WHISPER",
|
|
13
|
+
ROMANCE = "ROMANCE"
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_CATEGORY = void 0;
|
|
4
|
+
var VOICE_CATEGORY;
|
|
5
|
+
(function (VOICE_CATEGORY) {
|
|
6
|
+
VOICE_CATEGORY["GAMES"] = "GAMES";
|
|
7
|
+
VOICE_CATEGORY["AUDIOBOOKS"] = "AUDIOBOOKS";
|
|
8
|
+
VOICE_CATEGORY["YOUTUBE"] = "YOUTUBE";
|
|
9
|
+
VOICE_CATEGORY["PODCASTS"] = "PODCASTS";
|
|
10
|
+
VOICE_CATEGORY["NEWS"] = "NEWS";
|
|
11
|
+
VOICE_CATEGORY["EDUCATION"] = "EDUCATION";
|
|
12
|
+
VOICE_CATEGORY["ADVERTISING"] = "ADVERTISING";
|
|
13
|
+
VOICE_CATEGORY["IVR"] = "IVR";
|
|
14
|
+
VOICE_CATEGORY["FAIRY_TALES"] = "FAIRY_TALES";
|
|
15
|
+
VOICE_CATEGORY["HORROR"] = "HORROR";
|
|
16
|
+
VOICE_CATEGORY["WHISPER"] = "WHISPER";
|
|
17
|
+
VOICE_CATEGORY["ROMANCE"] = "ROMANCE";
|
|
18
|
+
})(VOICE_CATEGORY || (exports.VOICE_CATEGORY = VOICE_CATEGORY = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_GENDER = void 0;
|
|
4
|
+
var VOICE_GENDER;
|
|
5
|
+
(function (VOICE_GENDER) {
|
|
6
|
+
VOICE_GENDER["M"] = "M";
|
|
7
|
+
VOICE_GENDER["F"] = "F";
|
|
8
|
+
})(VOICE_GENDER || (exports.VOICE_GENDER = VOICE_GENDER = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_SOURCE = void 0;
|
|
4
|
+
var VOICE_SOURCE;
|
|
5
|
+
(function (VOICE_SOURCE) {
|
|
6
|
+
VOICE_SOURCE["LIBRARY"] = "LIBRARY";
|
|
7
|
+
VOICE_SOURCE["CLONE"] = "CLONE";
|
|
8
|
+
VOICE_SOURCE["DESIGN"] = "DESIGN";
|
|
9
|
+
})(VOICE_SOURCE || (exports.VOICE_SOURCE = VOICE_SOURCE = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_STATUS = void 0;
|
|
4
|
+
var VOICE_STATUS;
|
|
5
|
+
(function (VOICE_STATUS) {
|
|
6
|
+
VOICE_STATUS["PENDING"] = "PENDING";
|
|
7
|
+
VOICE_STATUS["READY"] = "READY";
|
|
8
|
+
VOICE_STATUS["FAILED"] = "FAILED";
|
|
9
|
+
})(VOICE_STATUS || (exports.VOICE_STATUS = VOICE_STATUS = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_TAG_GROUP = void 0;
|
|
4
|
+
var VOICE_TAG_GROUP;
|
|
5
|
+
(function (VOICE_TAG_GROUP) {
|
|
6
|
+
VOICE_TAG_GROUP["EMOTION"] = "EMOTION";
|
|
7
|
+
VOICE_TAG_GROUP["DELIVERY"] = "DELIVERY";
|
|
8
|
+
VOICE_TAG_GROUP["SOUND"] = "SOUND";
|
|
9
|
+
})(VOICE_TAG_GROUP || (exports.VOICE_TAG_GROUP = VOICE_TAG_GROUP = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum VOICE_TAG {
|
|
2
|
+
JOYFUL = "JOYFUL",
|
|
3
|
+
SAD = "SAD",
|
|
4
|
+
ANGRY = "ANGRY",
|
|
5
|
+
SURPRISED = "SURPRISED",
|
|
6
|
+
TENDER = "TENDER",
|
|
7
|
+
IRONIC = "IRONIC",
|
|
8
|
+
CONVERSATIONAL = "CONVERSATIONAL",
|
|
9
|
+
PROFESSIONAL = "PROFESSIONAL",
|
|
10
|
+
WHISPER = "WHISPER",
|
|
11
|
+
LOUDER = "LOUDER",
|
|
12
|
+
QUIETER = "QUIETER",
|
|
13
|
+
FASTER = "FASTER",
|
|
14
|
+
PAUSE = "PAUSE",
|
|
15
|
+
SHORT_PAUSE = "SHORT_PAUSE",
|
|
16
|
+
LAUGH = "LAUGH",
|
|
17
|
+
SIGH = "SIGH",
|
|
18
|
+
COUGH = "COUGH",
|
|
19
|
+
BREATH = "BREATH"
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VOICE_TAG = void 0;
|
|
4
|
+
var VOICE_TAG;
|
|
5
|
+
(function (VOICE_TAG) {
|
|
6
|
+
VOICE_TAG["JOYFUL"] = "JOYFUL";
|
|
7
|
+
VOICE_TAG["SAD"] = "SAD";
|
|
8
|
+
VOICE_TAG["ANGRY"] = "ANGRY";
|
|
9
|
+
VOICE_TAG["SURPRISED"] = "SURPRISED";
|
|
10
|
+
VOICE_TAG["TENDER"] = "TENDER";
|
|
11
|
+
VOICE_TAG["IRONIC"] = "IRONIC";
|
|
12
|
+
VOICE_TAG["CONVERSATIONAL"] = "CONVERSATIONAL";
|
|
13
|
+
VOICE_TAG["PROFESSIONAL"] = "PROFESSIONAL";
|
|
14
|
+
VOICE_TAG["WHISPER"] = "WHISPER";
|
|
15
|
+
VOICE_TAG["LOUDER"] = "LOUDER";
|
|
16
|
+
VOICE_TAG["QUIETER"] = "QUIETER";
|
|
17
|
+
VOICE_TAG["FASTER"] = "FASTER";
|
|
18
|
+
VOICE_TAG["PAUSE"] = "PAUSE";
|
|
19
|
+
VOICE_TAG["SHORT_PAUSE"] = "SHORT_PAUSE";
|
|
20
|
+
VOICE_TAG["LAUGH"] = "LAUGH";
|
|
21
|
+
VOICE_TAG["SIGH"] = "SIGH";
|
|
22
|
+
VOICE_TAG["COUGH"] = "COUGH";
|
|
23
|
+
VOICE_TAG["BREATH"] = "BREATH";
|
|
24
|
+
})(VOICE_TAG || (exports.VOICE_TAG = VOICE_TAG = {}));
|
|
@@ -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);
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./video-editor-model-limitation.enum"), exports);
|
|
18
|
-
__exportStar(require("./video-editor-model-strategy.enum"), exports);
|
|
19
18
|
__exportStar(require("./video-editor-pricing-rule-type.enum"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare enum VIDEO_EDITOR_MODEL_LIMITATION {
|
|
2
2
|
OUTPUT_VIDEO_LENGTH_CAPPED_TO_5_SECONDS = "OUTPUT_VIDEO_LENGTH_CAPPED_TO_5_SECONDS",
|
|
3
|
-
DOES_NOT_AFFECT_AUDIO = "DOES_NOT_AFFECT_AUDIO"
|
|
3
|
+
DOES_NOT_AFFECT_AUDIO = "DOES_NOT_AFFECT_AUDIO",
|
|
4
|
+
AUDIO_WITH_NO_REFERENCE_FORBIDDEN = "AUDIO_WITH_NO_REFERENCE_FORBIDDEN"
|
|
4
5
|
}
|
|
@@ -5,4 +5,5 @@ var VIDEO_EDITOR_MODEL_LIMITATION;
|
|
|
5
5
|
(function (VIDEO_EDITOR_MODEL_LIMITATION) {
|
|
6
6
|
VIDEO_EDITOR_MODEL_LIMITATION["OUTPUT_VIDEO_LENGTH_CAPPED_TO_5_SECONDS"] = "OUTPUT_VIDEO_LENGTH_CAPPED_TO_5_SECONDS";
|
|
7
7
|
VIDEO_EDITOR_MODEL_LIMITATION["DOES_NOT_AFFECT_AUDIO"] = "DOES_NOT_AFFECT_AUDIO";
|
|
8
|
+
VIDEO_EDITOR_MODEL_LIMITATION["AUDIO_WITH_NO_REFERENCE_FORBIDDEN"] = "AUDIO_WITH_NO_REFERENCE_FORBIDDEN";
|
|
8
9
|
})(VIDEO_EDITOR_MODEL_LIMITATION || (exports.VIDEO_EDITOR_MODEL_LIMITATION = VIDEO_EDITOR_MODEL_LIMITATION = {}));
|
package/build/helpers/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './video-editor';
|
|
|
8
8
|
export * from './writer';
|
|
9
9
|
export * from './image-editor';
|
|
10
10
|
export * from './image-generation';
|
|
11
|
+
export * from './photo-session';
|
|
11
12
|
export * from './music';
|
|
12
13
|
export * from './interior-design';
|
|
13
14
|
export * from './query-boolean.schema';
|
package/build/helpers/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./video-editor"), exports);
|
|
|
24
24
|
__exportStar(require("./writer"), exports);
|
|
25
25
|
__exportStar(require("./image-editor"), exports);
|
|
26
26
|
__exportStar(require("./image-generation"), exports);
|
|
27
|
+
__exportStar(require("./photo-session"), exports);
|
|
27
28
|
__exportStar(require("./music"), exports);
|
|
28
29
|
__exportStar(require("./interior-design"), exports);
|
|
29
30
|
__exportStar(require("./query-boolean.schema"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PhotoSessionModelPricingRules } from '../../models';
|
|
2
|
+
export declare function calculatePhotoSessionPrice({ basePrice, userHasActiveSubscriptionOrProduct, rules, }: {
|
|
3
|
+
basePrice: number;
|
|
4
|
+
userHasActiveSubscriptionOrProduct: boolean;
|
|
5
|
+
rules: PhotoSessionModelPricingRules;
|
|
6
|
+
}): number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculatePhotoSessionPrice = calculatePhotoSessionPrice;
|
|
4
|
+
function calculatePhotoSessionPrice({ basePrice, userHasActiveSubscriptionOrProduct, rules, }) {
|
|
5
|
+
let price = basePrice;
|
|
6
|
+
for (const rule of rules !== null && rules !== void 0 ? rules : []) {
|
|
7
|
+
const condition = rule.condition;
|
|
8
|
+
if (condition.withoutSub && userHasActiveSubscriptionOrProduct === false) {
|
|
9
|
+
price += rule.value;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return price;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calculate-photo-session-price.helper';
|
|
@@ -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("./calculate-photo-session-price.helper"), exports);
|
|
@@ -340,6 +340,7 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
340
340
|
}, z.core.$strip>;
|
|
341
341
|
}, z.core.$strip>;
|
|
342
342
|
maxInputLength: z.ZodNumber;
|
|
343
|
+
maxSpeakers: z.ZodNumber;
|
|
343
344
|
params: z.ZodObject<{
|
|
344
345
|
speed: z.ZodOptional<z.ZodObject<{
|
|
345
346
|
title: z.ZodString;
|
|
@@ -443,6 +444,16 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
443
444
|
canUse: z.ZodBoolean;
|
|
444
445
|
status: z.ZodString;
|
|
445
446
|
}, z.core.$strip>>;
|
|
447
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
448
|
+
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
449
|
+
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
450
|
+
label: z.ZodString;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
453
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
454
|
+
label: z.ZodString;
|
|
455
|
+
}, z.core.$strip>>;
|
|
456
|
+
speakerMarkerLabel: z.ZodString;
|
|
446
457
|
}, z.core.$strip>;
|
|
447
458
|
}, z.core.$strip>, z.ZodObject<{
|
|
448
459
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -583,7 +594,6 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
583
594
|
title: z.ZodString;
|
|
584
595
|
description: z.ZodString;
|
|
585
596
|
aiModel: z.ZodString;
|
|
586
|
-
pricePerCall: z.ZodNumber;
|
|
587
597
|
order: z.ZodNumber;
|
|
588
598
|
icons: z.ZodObject<{
|
|
589
599
|
light: z.ZodObject<{
|
|
@@ -600,18 +610,49 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
600
610
|
maxInputVideoDurationInSeconds: z.ZodNumber;
|
|
601
611
|
supportedFormats: z.ZodArray<z.ZodString>;
|
|
602
612
|
params: z.ZodObject<{
|
|
613
|
+
imageAttachment: z.ZodOptional<z.ZodObject<{
|
|
614
|
+
supported: z.ZodBoolean;
|
|
615
|
+
maxImages: z.ZodNumber;
|
|
616
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
617
|
+
}, z.core.$strip>>;
|
|
618
|
+
referenceImageAttachment: z.ZodOptional<z.ZodObject<{
|
|
619
|
+
supported: z.ZodBoolean;
|
|
620
|
+
maxImages: z.ZodNumber;
|
|
621
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
622
|
+
minWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
maxWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
624
|
+
minWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
625
|
+
maxWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
626
|
+
minHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
627
|
+
maxHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
628
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
629
|
+
}, z.core.$strip>>;
|
|
630
|
+
audioAttachment: z.ZodOptional<z.ZodObject<{
|
|
631
|
+
supported: z.ZodBoolean;
|
|
632
|
+
maxAudios: z.ZodNumber;
|
|
633
|
+
maxDurationSeconds: z.ZodNumber;
|
|
634
|
+
minDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
635
|
+
maxTotalDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
636
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
638
|
+
mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
639
|
+
}, z.core.$strip>>;
|
|
603
640
|
duration: z.ZodOptional<z.ZodObject<{
|
|
604
641
|
options: z.ZodArray<z.ZodNumber>;
|
|
605
642
|
}, z.core.$strip>>;
|
|
606
643
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
607
644
|
options: z.ZodArray<z.ZodString>;
|
|
608
645
|
}, z.core.$strip>>;
|
|
646
|
+
aspectRatio: z.ZodOptional<z.ZodObject<{
|
|
647
|
+
options: z.ZodArray<z.ZodString>;
|
|
648
|
+
}, z.core.$strip>>;
|
|
609
649
|
}, z.core.$strip>;
|
|
610
650
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
611
651
|
type: z.ZodEnum<typeof import("..").VIDEO_EDITOR_PRICING_RULE_TYPE>;
|
|
612
652
|
condition: z.ZodObject<{
|
|
613
653
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
614
654
|
resolution: z.ZodOptional<z.ZodString>;
|
|
655
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
615
656
|
}, z.core.$strip>;
|
|
616
657
|
value: z.ZodNumber;
|
|
617
658
|
}, z.core.$strip>>;
|
|
@@ -623,7 +664,6 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
623
664
|
}, z.core.$strip>>;
|
|
624
665
|
limitations: z.ZodArray<z.ZodEnum<typeof import("..").VIDEO_EDITOR_MODEL_LIMITATION>>;
|
|
625
666
|
canUse: z.ZodBoolean;
|
|
626
|
-
status: z.ZodString;
|
|
627
667
|
}, z.core.$strip>>;
|
|
628
668
|
}, z.core.$strip>;
|
|
629
669
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1035,6 +1075,7 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1035
1075
|
}, z.core.$strip>;
|
|
1036
1076
|
}, z.core.$strip>;
|
|
1037
1077
|
maxInputLength: z.ZodNumber;
|
|
1078
|
+
maxSpeakers: z.ZodNumber;
|
|
1038
1079
|
params: z.ZodObject<{
|
|
1039
1080
|
speed: z.ZodOptional<z.ZodObject<{
|
|
1040
1081
|
title: z.ZodString;
|
|
@@ -1138,6 +1179,16 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1138
1179
|
canUse: z.ZodBoolean;
|
|
1139
1180
|
status: z.ZodString;
|
|
1140
1181
|
}, z.core.$strip>>;
|
|
1182
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1183
|
+
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
1184
|
+
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
1185
|
+
label: z.ZodString;
|
|
1186
|
+
}, z.core.$strip>>;
|
|
1187
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
1188
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
1189
|
+
label: z.ZodString;
|
|
1190
|
+
}, z.core.$strip>>;
|
|
1191
|
+
speakerMarkerLabel: z.ZodString;
|
|
1141
1192
|
}, z.core.$strip>;
|
|
1142
1193
|
}, z.core.$strip>, z.ZodObject<{
|
|
1143
1194
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -1278,7 +1329,6 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1278
1329
|
title: z.ZodString;
|
|
1279
1330
|
description: z.ZodString;
|
|
1280
1331
|
aiModel: z.ZodString;
|
|
1281
|
-
pricePerCall: z.ZodNumber;
|
|
1282
1332
|
order: z.ZodNumber;
|
|
1283
1333
|
icons: z.ZodObject<{
|
|
1284
1334
|
light: z.ZodObject<{
|
|
@@ -1295,18 +1345,49 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1295
1345
|
maxInputVideoDurationInSeconds: z.ZodNumber;
|
|
1296
1346
|
supportedFormats: z.ZodArray<z.ZodString>;
|
|
1297
1347
|
params: z.ZodObject<{
|
|
1348
|
+
imageAttachment: z.ZodOptional<z.ZodObject<{
|
|
1349
|
+
supported: z.ZodBoolean;
|
|
1350
|
+
maxImages: z.ZodNumber;
|
|
1351
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
1352
|
+
}, z.core.$strip>>;
|
|
1353
|
+
referenceImageAttachment: z.ZodOptional<z.ZodObject<{
|
|
1354
|
+
supported: z.ZodBoolean;
|
|
1355
|
+
maxImages: z.ZodNumber;
|
|
1356
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1357
|
+
minWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
1358
|
+
maxWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
1359
|
+
minWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
1360
|
+
maxWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
1361
|
+
minHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
1362
|
+
maxHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
1363
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
1364
|
+
}, z.core.$strip>>;
|
|
1365
|
+
audioAttachment: z.ZodOptional<z.ZodObject<{
|
|
1366
|
+
supported: z.ZodBoolean;
|
|
1367
|
+
maxAudios: z.ZodNumber;
|
|
1368
|
+
maxDurationSeconds: z.ZodNumber;
|
|
1369
|
+
minDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1370
|
+
maxTotalDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1371
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
1372
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1373
|
+
mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1374
|
+
}, z.core.$strip>>;
|
|
1298
1375
|
duration: z.ZodOptional<z.ZodObject<{
|
|
1299
1376
|
options: z.ZodArray<z.ZodNumber>;
|
|
1300
1377
|
}, z.core.$strip>>;
|
|
1301
1378
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1302
1379
|
options: z.ZodArray<z.ZodString>;
|
|
1303
1380
|
}, z.core.$strip>>;
|
|
1381
|
+
aspectRatio: z.ZodOptional<z.ZodObject<{
|
|
1382
|
+
options: z.ZodArray<z.ZodString>;
|
|
1383
|
+
}, z.core.$strip>>;
|
|
1304
1384
|
}, z.core.$strip>;
|
|
1305
1385
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
1306
1386
|
type: z.ZodEnum<typeof import("..").VIDEO_EDITOR_PRICING_RULE_TYPE>;
|
|
1307
1387
|
condition: z.ZodObject<{
|
|
1308
1388
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
1309
1389
|
resolution: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
1310
1391
|
}, z.core.$strip>;
|
|
1311
1392
|
value: z.ZodNumber;
|
|
1312
1393
|
}, z.core.$strip>>;
|
|
@@ -1318,7 +1399,6 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1318
1399
|
}, z.core.$strip>>;
|
|
1319
1400
|
limitations: z.ZodArray<z.ZodEnum<typeof import("..").VIDEO_EDITOR_MODEL_LIMITATION>>;
|
|
1320
1401
|
canUse: z.ZodBoolean;
|
|
1321
|
-
status: z.ZodString;
|
|
1322
1402
|
}, z.core.$strip>>;
|
|
1323
1403
|
}, z.core.$strip>;
|
|
1324
1404
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1688,6 +1768,7 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1688
1768
|
}, z.core.$strip>;
|
|
1689
1769
|
}, z.core.$strip>;
|
|
1690
1770
|
maxInputLength: z.ZodNumber;
|
|
1771
|
+
maxSpeakers: z.ZodNumber;
|
|
1691
1772
|
params: z.ZodObject<{
|
|
1692
1773
|
speed: z.ZodOptional<z.ZodObject<{
|
|
1693
1774
|
title: z.ZodString;
|
|
@@ -1791,6 +1872,16 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1791
1872
|
canUse: z.ZodBoolean;
|
|
1792
1873
|
status: z.ZodString;
|
|
1793
1874
|
}, z.core.$strip>>;
|
|
1875
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1876
|
+
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
1877
|
+
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
1878
|
+
label: z.ZodString;
|
|
1879
|
+
}, z.core.$strip>>;
|
|
1880
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
1881
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
1882
|
+
label: z.ZodString;
|
|
1883
|
+
}, z.core.$strip>>;
|
|
1884
|
+
speakerMarkerLabel: z.ZodString;
|
|
1794
1885
|
}, z.core.$strip>;
|
|
1795
1886
|
}, z.core.$strip>, z.ZodObject<{
|
|
1796
1887
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -1931,7 +2022,6 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1931
2022
|
title: z.ZodString;
|
|
1932
2023
|
description: z.ZodString;
|
|
1933
2024
|
aiModel: z.ZodString;
|
|
1934
|
-
pricePerCall: z.ZodNumber;
|
|
1935
2025
|
order: z.ZodNumber;
|
|
1936
2026
|
icons: z.ZodObject<{
|
|
1937
2027
|
light: z.ZodObject<{
|
|
@@ -1948,18 +2038,49 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1948
2038
|
maxInputVideoDurationInSeconds: z.ZodNumber;
|
|
1949
2039
|
supportedFormats: z.ZodArray<z.ZodString>;
|
|
1950
2040
|
params: z.ZodObject<{
|
|
2041
|
+
imageAttachment: z.ZodOptional<z.ZodObject<{
|
|
2042
|
+
supported: z.ZodBoolean;
|
|
2043
|
+
maxImages: z.ZodNumber;
|
|
2044
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
2045
|
+
}, z.core.$strip>>;
|
|
2046
|
+
referenceImageAttachment: z.ZodOptional<z.ZodObject<{
|
|
2047
|
+
supported: z.ZodBoolean;
|
|
2048
|
+
maxImages: z.ZodNumber;
|
|
2049
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2050
|
+
minWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
2051
|
+
maxWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
|
|
2052
|
+
minWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
2053
|
+
maxWidthPx: z.ZodOptional<z.ZodNumber>;
|
|
2054
|
+
minHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
2055
|
+
maxHeightPx: z.ZodOptional<z.ZodNumber>;
|
|
2056
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
2057
|
+
}, z.core.$strip>>;
|
|
2058
|
+
audioAttachment: z.ZodOptional<z.ZodObject<{
|
|
2059
|
+
supported: z.ZodBoolean;
|
|
2060
|
+
maxAudios: z.ZodNumber;
|
|
2061
|
+
maxDurationSeconds: z.ZodNumber;
|
|
2062
|
+
minDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
2063
|
+
maxTotalDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
2064
|
+
maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
|
|
2065
|
+
formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2066
|
+
mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2067
|
+
}, z.core.$strip>>;
|
|
1951
2068
|
duration: z.ZodOptional<z.ZodObject<{
|
|
1952
2069
|
options: z.ZodArray<z.ZodNumber>;
|
|
1953
2070
|
}, z.core.$strip>>;
|
|
1954
2071
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1955
2072
|
options: z.ZodArray<z.ZodString>;
|
|
1956
2073
|
}, z.core.$strip>>;
|
|
2074
|
+
aspectRatio: z.ZodOptional<z.ZodObject<{
|
|
2075
|
+
options: z.ZodArray<z.ZodString>;
|
|
2076
|
+
}, z.core.$strip>>;
|
|
1957
2077
|
}, z.core.$strip>;
|
|
1958
2078
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
1959
2079
|
type: z.ZodEnum<typeof import("..").VIDEO_EDITOR_PRICING_RULE_TYPE>;
|
|
1960
2080
|
condition: z.ZodObject<{
|
|
1961
2081
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
1962
2082
|
resolution: z.ZodOptional<z.ZodString>;
|
|
2083
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
1963
2084
|
}, z.core.$strip>;
|
|
1964
2085
|
value: z.ZodNumber;
|
|
1965
2086
|
}, z.core.$strip>>;
|
|
@@ -1971,7 +2092,6 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1971
2092
|
}, z.core.$strip>>;
|
|
1972
2093
|
limitations: z.ZodArray<z.ZodEnum<typeof import("..").VIDEO_EDITOR_MODEL_LIMITATION>>;
|
|
1973
2094
|
canUse: z.ZodBoolean;
|
|
1974
|
-
status: z.ZodString;
|
|
1975
2095
|
}, z.core.$strip>>;
|
|
1976
2096
|
}, z.core.$strip>;
|
|
1977
2097
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -45,6 +45,16 @@ export declare const VideoEditorCommunityMediaSchema: z.ZodObject<{
|
|
|
45
45
|
prompt: z.ZodString;
|
|
46
46
|
inputVideoUrl: z.ZodString;
|
|
47
47
|
outputVideoUrl: z.ZodNullable<z.ZodString>;
|
|
48
|
+
inputVideoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
outputVideoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
imageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
|
+
referenceImageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
audioIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
56
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
48
58
|
}, z.core.$strip>;
|
|
49
59
|
export declare const MusicCommunityMediaSchema: z.ZodObject<{
|
|
50
60
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MUSIC>;
|
|
@@ -149,6 +159,16 @@ export declare const CommunityPostMediaDataSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
149
159
|
prompt: z.ZodString;
|
|
150
160
|
inputVideoUrl: z.ZodString;
|
|
151
161
|
outputVideoUrl: z.ZodNullable<z.ZodString>;
|
|
162
|
+
inputVideoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
outputVideoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
imageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
166
|
+
referenceImageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
|
+
audioIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
168
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
170
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$strip>>;
|
|
152
172
|
}, z.core.$strip>, z.ZodObject<{
|
|
153
173
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MUSIC>;
|
|
154
174
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -6,6 +6,7 @@ const constants_1 = require("../../constants");
|
|
|
6
6
|
const video_job_schema_1 = require("../tools/video/video-job.schema");
|
|
7
7
|
const file_schema_1 = require("../file.schema");
|
|
8
8
|
const tools_1 = require("../tools");
|
|
9
|
+
const video_editor_job_schema_1 = require("../tools/video-editor/video-editor-job.schema");
|
|
9
10
|
exports.ImageCommunityMediaSchema = zod_1.z.object({
|
|
10
11
|
type: zod_1.z.literal(constants_1.COMMUNITY_POST_TYPE.IMAGE),
|
|
11
12
|
text: zod_1.z.string().max(10000),
|
|
@@ -31,6 +32,9 @@ exports.VideoEditorCommunityMediaSchema = zod_1.z.object({
|
|
|
31
32
|
prompt: zod_1.z.string(),
|
|
32
33
|
inputVideoUrl: zod_1.z.string(),
|
|
33
34
|
outputVideoUrl: zod_1.z.string().nullable(),
|
|
35
|
+
inputVideoId: zod_1.z.string().nullable().optional(),
|
|
36
|
+
outputVideoId: zod_1.z.string().nullable().optional(),
|
|
37
|
+
params: video_editor_job_schema_1.VideoEditorJobParamsSchema.optional(),
|
|
34
38
|
});
|
|
35
39
|
exports.MusicCommunityMediaSchema = zod_1.z.object({
|
|
36
40
|
type: zod_1.z.literal(constants_1.COMMUNITY_POST_TYPE.MUSIC),
|