vidspotai-shared 1.0.29 → 1.0.31

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.
Files changed (108) hide show
  1. package/lib/globals/aiModels/enums.d.ts +40 -0
  2. package/lib/globals/aiModels/enums.d.ts.map +1 -0
  3. package/lib/globals/aiModels/enums.js +46 -0
  4. package/lib/globals/aiModels/index.d.ts +6 -0
  5. package/lib/globals/aiModels/index.d.ts.map +1 -0
  6. package/lib/globals/aiModels/index.js +35 -0
  7. package/lib/globals/aiModels/providers/bytedance.d.ts +4 -0
  8. package/lib/globals/aiModels/providers/bytedance.d.ts.map +1 -0
  9. package/lib/globals/aiModels/providers/bytedance.js +65 -0
  10. package/lib/globals/aiModels/providers/google.d.ts +4 -0
  11. package/lib/globals/aiModels/providers/google.d.ts.map +1 -0
  12. package/lib/globals/aiModels/providers/google.js +111 -0
  13. package/lib/globals/aiModels/providers/kling.d.ts +4 -0
  14. package/lib/globals/aiModels/providers/kling.d.ts.map +1 -0
  15. package/lib/globals/aiModels/providers/kling.js +129 -0
  16. package/lib/globals/aiModels/providers/minimax.d.ts +4 -0
  17. package/lib/globals/aiModels/providers/minimax.d.ts.map +1 -0
  18. package/lib/globals/aiModels/providers/minimax.js +66 -0
  19. package/lib/globals/aiModels/providers/openai.d.ts +4 -0
  20. package/lib/globals/aiModels/providers/openai.d.ts.map +1 -0
  21. package/lib/globals/aiModels/providers/openai.js +82 -0
  22. package/lib/globals/aiModels/providers/pixverse.d.ts +4 -0
  23. package/lib/globals/aiModels/providers/pixverse.d.ts.map +1 -0
  24. package/lib/globals/aiModels/providers/pixverse.js +108 -0
  25. package/lib/globals/aiModels/providers/runway.d.ts +4 -0
  26. package/lib/globals/aiModels/providers/runway.d.ts.map +1 -0
  27. package/lib/globals/aiModels/providers/runway.js +52 -0
  28. package/lib/globals/aiModels/types.d.ts +45 -0
  29. package/lib/globals/aiModels/types.d.ts.map +1 -0
  30. package/lib/globals/aiModels/types.js +2 -0
  31. package/lib/globals/index.d.ts +1 -0
  32. package/lib/globals/index.d.ts.map +1 -1
  33. package/lib/globals/index.js +1 -0
  34. package/lib/globals/ttsModels/index.d.ts +6 -0
  35. package/lib/globals/ttsModels/index.d.ts.map +1 -0
  36. package/lib/globals/ttsModels/index.js +25 -0
  37. package/lib/globals/ttsModels/providers/elevenlabs.d.ts +3 -0
  38. package/lib/globals/ttsModels/providers/elevenlabs.d.ts.map +1 -0
  39. package/lib/globals/ttsModels/providers/elevenlabs.js +13 -0
  40. package/lib/globals/ttsModels/types.d.ts +15 -0
  41. package/lib/globals/ttsModels/types.d.ts.map +1 -0
  42. package/lib/globals/ttsModels/types.js +2 -0
  43. package/lib/globals/ttsModels/voices.d.ts +21 -0
  44. package/lib/globals/ttsModels/voices.d.ts.map +1 -0
  45. package/lib/globals/ttsModels/voices.js +135 -0
  46. package/lib/models/user.model.d.ts +2 -0
  47. package/lib/models/user.model.d.ts.map +1 -1
  48. package/lib/models/video.model.d.ts +14 -0
  49. package/lib/models/video.model.d.ts.map +1 -1
  50. package/lib/services/aiGen/aiGenFactory.service.d.ts.map +1 -1
  51. package/lib/services/aiGen/aiGenFactory.service.js +36 -12
  52. package/lib/services/aiGen/providers/bytedance/bytedance.service.d.ts +9 -0
  53. package/lib/services/aiGen/providers/bytedance/bytedance.service.d.ts.map +1 -0
  54. package/lib/services/aiGen/providers/bytedance/bytedance.service.js +188 -0
  55. package/lib/services/aiGen/providers/bytedance/constants.d.ts +2 -0
  56. package/lib/services/aiGen/providers/bytedance/constants.d.ts.map +1 -0
  57. package/lib/services/aiGen/providers/bytedance/constants.js +27 -0
  58. package/lib/services/aiGen/providers/bytedance/index.d.ts +2 -0
  59. package/lib/services/aiGen/providers/bytedance/index.d.ts.map +1 -0
  60. package/lib/services/aiGen/providers/bytedance/index.js +17 -0
  61. package/lib/services/aiGen/providers/bytedance/types.d.ts +5 -0
  62. package/lib/services/aiGen/providers/bytedance/types.d.ts.map +1 -0
  63. package/lib/services/aiGen/providers/bytedance/types.js +1 -0
  64. package/lib/services/aiGen/providers/google/google.service.js +1 -1
  65. package/lib/services/aiGen/providers/kling/kling.service.d.ts +7 -2
  66. package/lib/services/aiGen/providers/kling/kling.service.d.ts.map +1 -1
  67. package/lib/services/aiGen/providers/kling/kling.service.js +126 -10
  68. package/lib/services/aiGen/providers/kling/types.d.ts +13 -0
  69. package/lib/services/aiGen/providers/kling/types.d.ts.map +1 -1
  70. package/lib/services/aiGen/providers/pixverse/pixverse.service.d.ts +9 -0
  71. package/lib/services/aiGen/providers/pixverse/pixverse.service.d.ts.map +1 -0
  72. package/lib/services/aiGen/providers/pixverse/pixverse.service.js +188 -0
  73. package/lib/services/aiGen/providers/runway/runway.service.d.ts.map +1 -1
  74. package/lib/services/aiGen/providers/runway/runway.service.js +16 -4
  75. package/lib/services/aiGen/providers/types.d.ts +6 -0
  76. package/lib/services/aiGen/providers/types.d.ts.map +1 -1
  77. package/lib/services/credit.service.d.ts +1 -0
  78. package/lib/services/credit.service.d.ts.map +1 -1
  79. package/lib/services/credit.service.js +17 -0
  80. package/lib/services/gcp/gsheet.service.d.ts +7 -0
  81. package/lib/services/gcp/gsheet.service.d.ts.map +1 -1
  82. package/lib/services/gcp/gsheet.service.js +46 -0
  83. package/lib/services/index.d.ts +1 -0
  84. package/lib/services/index.d.ts.map +1 -1
  85. package/lib/services/index.js +1 -0
  86. package/lib/services/tts/index.d.ts +4 -0
  87. package/lib/services/tts/index.d.ts.map +1 -0
  88. package/lib/services/tts/index.js +19 -0
  89. package/lib/services/tts/providers/elevenlabs.service.d.ts +7 -0
  90. package/lib/services/tts/providers/elevenlabs.service.d.ts.map +1 -0
  91. package/lib/services/tts/providers/elevenlabs.service.js +44 -0
  92. package/lib/services/tts/ttsFactory.service.d.ts +4 -0
  93. package/lib/services/tts/ttsFactory.service.d.ts.map +1 -0
  94. package/lib/services/tts/ttsFactory.service.js +12 -0
  95. package/lib/services/tts/types.d.ts +14 -0
  96. package/lib/services/tts/types.d.ts.map +1 -0
  97. package/lib/services/tts/types.js +6 -0
  98. package/lib/utils/helpers.js +2 -2
  99. package/lib/utils/index.d.ts +1 -0
  100. package/lib/utils/index.d.ts.map +1 -1
  101. package/lib/utils/index.js +1 -0
  102. package/lib/utils/logger.d.ts +2 -1
  103. package/lib/utils/logger.d.ts.map +1 -1
  104. package/lib/utils/logger.js +2 -0
  105. package/lib/utils/ttsUtils.d.ts +11 -0
  106. package/lib/utils/ttsUtils.d.ts.map +1 -0
  107. package/lib/utils/ttsUtils.js +16 -0
  108. package/package.json +1 -1
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pixverseConfigs = void 0;
4
+ exports.pixverseConfigs = {
5
+ "pixverse-v5.6": {
6
+ modelId: "v5.6",
7
+ type: ["text-to-video", "image-to-video"],
8
+ fields: {
9
+ prompt: { required: true },
10
+ aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] },
11
+ resolution: { allowedValues: ["360p", "540p", "720p", "1080p"] },
12
+ duration: { allowedValues: [5, 8, 10] },
13
+ audio: {},
14
+ },
15
+ durationRules: {
16
+ 5: ["360p", "540p", "720p", "1080p"],
17
+ 8: ["360p", "540p", "720p", "1080p"],
18
+ 10: ["360p", "540p", "720p"], // 1080p not available for 10s
19
+ },
20
+ concurrentRequests: 5,
21
+ cost: {
22
+ noAudio: {
23
+ table: {
24
+ "360p": { 5: 0.35, 8: 0.7, 10: 0.77 },
25
+ "540p": { 5: 0.35, 8: 0.7, 10: 0.77 },
26
+ "720p": { 5: 0.45, 8: 0.9, 10: 0.99 },
27
+ "1080p": { 5: 0.75, 8: 1.5 },
28
+ },
29
+ },
30
+ audio: {
31
+ table: {
32
+ "360p": { 5: 0.8, 8: 1.15, 10: 1.22 },
33
+ "540p": { 5: 0.8, 8: 1.15, 10: 1.22 },
34
+ "720p": { 5: 0.8, 8: 1.35, 10: 1.44 },
35
+ "1080p": { 5: 1.5, 8: 1.95 },
36
+ },
37
+ },
38
+ },
39
+ },
40
+ "pixverse-v5.5": {
41
+ modelId: "v5.5",
42
+ type: ["text-to-video", "image-to-video", "video-to-video"],
43
+ fields: {
44
+ prompt: { required: true },
45
+ multiClip: { default: false },
46
+ resolution: { allowedValues: ["360p", "540p", "720p", "1080p"] },
47
+ duration: { allowedValues: [5, 8, 10] },
48
+ audio: {},
49
+ },
50
+ cost: {
51
+ noAudio: {
52
+ singleClip: {
53
+ table: {
54
+ "360p": { 5: 0.45, 8: 0.9, 10: 0.99 },
55
+ "540p": { 5: 0.45, 8: 0.9, 10: 0.99 },
56
+ "720p": { 5: 0.6, 8: 1.2, 10: 1.32 },
57
+ "1080p": { 5: 1.2, 8: 2.4 },
58
+ },
59
+ },
60
+ multiClip: {
61
+ table: {
62
+ "360p": { 5: 0.75, 8: 1.2, 10: 1.29 },
63
+ "540p": { 5: 0.75, 8: 1.2, 10: 1.29 },
64
+ "720p": { 5: 0.9, 8: 1.5, 10: 1.62 },
65
+ "1080p": { 5: 1.5, 8: 2.7 },
66
+ },
67
+ },
68
+ },
69
+ audio: {
70
+ singleClip: {
71
+ table: {
72
+ "360p": { 5: 0.55, 8: 1.0, 10: 1.09 },
73
+ "540p": { 5: 0.55, 8: 1.0, 10: 1.09 },
74
+ "720p": { 5: 0.7, 8: 1.3, 10: 1.42 },
75
+ "1080p": { 5: 1.3, 8: 2.5 },
76
+ },
77
+ },
78
+ multiClip: {
79
+ table: {
80
+ "360p": { 5: 0.85, 8: 1.3, 10: 1.39 },
81
+ "540p": { 5: 0.85, 8: 1.3, 10: 1.39 },
82
+ "720p": { 5: 1.0, 8: 1.6, 10: 1.72 },
83
+ "1080p": { 5: 1.6, 8: 2.8 },
84
+ },
85
+ },
86
+ },
87
+ },
88
+ },
89
+ "pixverse-v5": {
90
+ modelId: "v5",
91
+ type: ["text-to-video", "image-to-video"],
92
+ fields: {
93
+ prompt: { required: true },
94
+ resolution: { allowedValues: ["360p", "540p", "720p", "1080p"] },
95
+ duration: { allowedValues: [5, 8] },
96
+ },
97
+ cost: {
98
+ noAudio: {
99
+ table: {
100
+ "360p": { 5: 0.45, 8: 0.9 },
101
+ "540p": { 5: 0.45, 8: 0.9 },
102
+ "720p": { 5: 0.6, 8: 1.2 },
103
+ "1080p": { 5: 1.2, 8: 2.4 },
104
+ },
105
+ },
106
+ },
107
+ },
108
+ };
@@ -0,0 +1,4 @@
1
+ import { TAiGenModel } from "../enums";
2
+ import { IModelSchema } from "../types";
3
+ export declare const runwayConfigs: Partial<Record<TAiGenModel, IModelSchema>>;
4
+ //# sourceMappingURL=runway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runway.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/runway.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAiDpE,CAAC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runwayConfigs = void 0;
4
+ const types_1 = require("../../../services/aiGen/providers/runway/types");
5
+ exports.runwayConfigs = {
6
+ "runway-gen4.5": {
7
+ modelId: "gen4.5",
8
+ type: ["text-to-video", "image-to-video"],
9
+ fields: {
10
+ prompt: { required: true },
11
+ aspectRatio: { allowedValues: ["1280x720", "720x1280"] },
12
+ duration: { allowedValues: [2, 3, 4, 5, 6, 7, 8, 9, 10] }, // in seconds
13
+ },
14
+ cost: {
15
+ perSecond: 0.12,
16
+ },
17
+ },
18
+ "runway-gen4-turbo": {
19
+ modelId: "gen4_turbo",
20
+ type: ["image-to-video"],
21
+ fields: {
22
+ prompt: { required: true },
23
+ imageUrl: { required: true },
24
+ aspectRatio: {
25
+ allowedValues: types_1.GEN4_TURBO_RATIOS,
26
+ },
27
+ duration: {
28
+ allowedValues: types_1.GEN4_TURBO_DURATIONS,
29
+ }, // in seconds
30
+ },
31
+ // parallelRequests: 1,
32
+ cost: {
33
+ perSecond: 0.05,
34
+ },
35
+ },
36
+ "runway-gen4-aleph": {
37
+ modelId: "gen4_aleph",
38
+ type: ["video-to-video"],
39
+ fields: {
40
+ prompt: { required: true },
41
+ videoUrl: { required: true },
42
+ aspecetRatio: {
43
+ allowedValues: types_1.GEN4_ALEPH_RATIOS,
44
+ },
45
+ duration: { allowedValues: types_1.GEN4_ALEPH_DURATIONS }, // in seconds
46
+ },
47
+ // parallelRequests: 1,
48
+ cost: {
49
+ perSecond: 0.15,
50
+ },
51
+ },
52
+ };
@@ -0,0 +1,45 @@
1
+ import { TtsProvider } from "../ttsModels/types";
2
+ export type GenerationType = "text-to-video" | "image-to-video" | "video-to-video" | "avatar-video" | "text-to-text" | "image-to-text";
3
+ /**
4
+ * Config block present on every avatar-video type model.
5
+ * Encapsulates all avatar-specific constraints and provider defaults
6
+ * so validation and credit logic never need per-model hardcoded constants.
7
+ */
8
+ export interface IAvatarModelConfig {
9
+ /** Minimum accepted audio duration (seconds) — enforced at both schema and job level */
10
+ audioDurationMin: number;
11
+ /** Maximum accepted audio duration (seconds) */
12
+ audioDurationMax: number;
13
+ /** Default TTS provider used when the request includes ttsText */
14
+ ttsProvider: TtsProvider;
15
+ }
16
+ export interface ISchemaField {
17
+ required?: boolean;
18
+ allowedValues?: string[] | number[] | boolean[];
19
+ default?: string | number | boolean;
20
+ }
21
+ export interface ICostTable {
22
+ [key: string]: {
23
+ [key: number]: number;
24
+ };
25
+ }
26
+ export interface IModelSchema {
27
+ modelId: string;
28
+ type: GenerationType[];
29
+ fields: Record<string, ISchemaField>;
30
+ resolutionRules?: Record<string, string[]>;
31
+ durationRules?: Record<number, string[]>;
32
+ concurrentRequests?: number;
33
+ requestPerMin?: number;
34
+ requestPerDay?: number;
35
+ cost?: {
36
+ perSecond?: number;
37
+ per1KTokens?: number;
38
+ table?: ICostTable;
39
+ fixed?: number;
40
+ [key: string]: any;
41
+ };
42
+ /** Required when type includes "avatar-video". Contains all avatar-specific constraints. */
43
+ avatar?: IAvatarModelConfig;
44
+ }
45
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,cAAc,GACtB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,cAAc,GACd,eAAe,CAAC;AAEpB;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,wFAAwF;IACxF,gBAAgB,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,gBAAgB,EAAE,MAAM,CAAC;IACzB,kEAAkE;IAClE,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAErC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE;QACL,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,4FAA4F;IAC5F,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,5 +2,6 @@ export * from "./aiModels";
2
2
  export * from "./config";
3
3
  export * from "./plans";
4
4
  export * from "./schemas";
5
+ export * from "./ttsModels";
5
6
  export * from "./types";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/globals/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/globals/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -18,4 +18,5 @@ __exportStar(require("./aiModels"), exports);
18
18
  __exportStar(require("./config"), exports);
19
19
  __exportStar(require("./plans"), exports);
20
20
  __exportStar(require("./schemas"), exports);
21
+ __exportStar(require("./ttsModels"), exports);
21
22
  __exportStar(require("./types"), exports);
@@ -0,0 +1,6 @@
1
+ export * from "./types";
2
+ export * from "./voices";
3
+ import { TtsProvider, ITtsProviderConfig } from "./types";
4
+ export { elevenlabsConfig } from "./providers/elevenlabs";
5
+ export declare const ttsProviderConfigs: Record<TtsProvider, ITtsProviderConfig>;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/globals/ttsModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE,kBAAkB,CAEtE,CAAC"}
@@ -0,0 +1,25 @@
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
+ exports.ttsProviderConfigs = exports.elevenlabsConfig = void 0;
18
+ __exportStar(require("./types"), exports);
19
+ __exportStar(require("./voices"), exports);
20
+ const elevenlabs_1 = require("./providers/elevenlabs");
21
+ var elevenlabs_2 = require("./providers/elevenlabs");
22
+ Object.defineProperty(exports, "elevenlabsConfig", { enumerable: true, get: function () { return elevenlabs_2.elevenlabsConfig; } });
23
+ exports.ttsProviderConfigs = {
24
+ elevenlabs: elevenlabs_1.elevenlabsConfig,
25
+ };
@@ -0,0 +1,3 @@
1
+ import { ITtsProviderConfig } from "../types";
2
+ export declare const elevenlabsConfig: ITtsProviderConfig;
3
+ //# sourceMappingURL=elevenlabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elevenlabs.d.ts","sourceRoot":"","sources":["../../../../src/globals/ttsModels/providers/elevenlabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,kBAS9B,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.elevenlabsConfig = void 0;
4
+ exports.elevenlabsConfig = {
5
+ name: "ElevenLabs",
6
+ /** eleven_multilingual_v2 pay-as-you-go rate */
7
+ costPer1KChars: 0.3,
8
+ /** Sarah — neutral, clear default voice */
9
+ defaultVoiceId: "EXAVITQu4vr4xnSDxMaL",
10
+ modelId: "eleven_multilingual_v2",
11
+ /** ~150 words/min = 2.5 words/sec */
12
+ wordsPerSecond: 2.5,
13
+ };
@@ -0,0 +1,15 @@
1
+ /** Union of all supported TTS provider keys. Extend as new providers are added. */
2
+ export type TtsProvider = "elevenlabs";
3
+ export interface ITtsProviderConfig {
4
+ /** Human-readable provider name */
5
+ name: string;
6
+ /** Cost in USD per 1,000 characters (pay-as-you-go rate) */
7
+ costPer1KChars: number;
8
+ /** Default voice ID sent to the provider API */
9
+ defaultVoiceId: string;
10
+ /** Model/engine identifier used by the provider */
11
+ modelId: string;
12
+ /** Average spoken words per second for duration estimation (~150 wpm = 2.5 wps) */
13
+ wordsPerSecond: number;
14
+ }
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/globals/ttsModels/types.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC;AAEvC,MAAM,WAAW,kBAAkB;IACjC,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,cAAc,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,cAAc,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,cAAc,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ export interface ITtsVoice {
2
+ id: string;
3
+ name: string;
4
+ gender: "male" | "female";
5
+ accent: string;
6
+ /** Public preview MP3 hosted by ElevenLabs */
7
+ previewUrl: string;
8
+ }
9
+ /**
10
+ * Curated list of ElevenLabs voices compatible with eleven_multilingual_v2.
11
+ * Any voice can speak any supported language via the language_code parameter.
12
+ */
13
+ export declare const ELEVENLABS_VOICES: ITtsVoice[];
14
+ /** Default voice ID — Sarah (female, American) */
15
+ export declare const DEFAULT_ELEVENLABS_VOICE_ID = "EXAVITQu4vr4xnSDxMaL";
16
+ /**
17
+ * Maps frontend language keys → ElevenLabs language_code (ISO 639-1).
18
+ * Used to improve pronunciation when eleven_multilingual_v2 is the model.
19
+ */
20
+ export declare const LANG_TO_ELEVENLABS_CODE: Record<string, string>;
21
+ //# sourceMappingURL=voices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voices.d.ts","sourceRoot":"","sources":["../../../src/globals/ttsModels/voices.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,EAuFxC,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,2BAA2B,yBAAyB,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAiC1D,CAAC"}
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LANG_TO_ELEVENLABS_CODE = exports.DEFAULT_ELEVENLABS_VOICE_ID = exports.ELEVENLABS_VOICES = void 0;
4
+ /**
5
+ * Curated list of ElevenLabs voices compatible with eleven_multilingual_v2.
6
+ * Any voice can speak any supported language via the language_code parameter.
7
+ */
8
+ exports.ELEVENLABS_VOICES = [
9
+ // ── Female ──────────────────────────────────────────────────────────────
10
+ {
11
+ id: "EXAVITQu4vr4xnSDxMaL",
12
+ name: "Sarah",
13
+ gender: "female",
14
+ accent: "American",
15
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/EXAVITQu4vr4xnSDxMaL/preview.mp3",
16
+ },
17
+ {
18
+ id: "21m00Tcm4TlvDq8ikWAM",
19
+ name: "Rachel",
20
+ gender: "female",
21
+ accent: "American",
22
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/21m00Tcm4TlvDq8ikWAM/preview.mp3",
23
+ },
24
+ {
25
+ id: "XrExE9yKIg1WjnnlVkGX",
26
+ name: "Matilda",
27
+ gender: "female",
28
+ accent: "American",
29
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/XrExE9yKIg1WjnnlVkGX/preview.mp3",
30
+ },
31
+ {
32
+ id: "9BWtsMINqrJLrRacOk9x",
33
+ name: "Aria",
34
+ gender: "female",
35
+ accent: "American",
36
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/9BWtsMINqrJLrRacOk9x/preview.mp3",
37
+ },
38
+ {
39
+ id: "XB0fDUnXU5powFXDhCwa",
40
+ name: "Charlotte",
41
+ gender: "female",
42
+ accent: "Swedish",
43
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/XB0fDUnXU5powFXDhCwa/preview.mp3",
44
+ },
45
+ {
46
+ id: "ThT5KcBeYPX3keUQqHPh",
47
+ name: "Dorothy",
48
+ gender: "female",
49
+ accent: "British",
50
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/ThT5KcBeYPX3keUQqHPh/preview.mp3",
51
+ },
52
+ // ── Male ────────────────────────────────────────────────────────────────
53
+ {
54
+ id: "pNInz6obpgDQGcFmaJgB",
55
+ name: "Adam",
56
+ gender: "male",
57
+ accent: "American",
58
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/pNInz6obpgDQGcFmaJgB/preview.mp3",
59
+ },
60
+ {
61
+ id: "IKne3meq5aSn9XLyUdCD",
62
+ name: "Charlie",
63
+ gender: "male",
64
+ accent: "Australian",
65
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/IKne3meq5aSn9XLyUdCD/preview.mp3",
66
+ },
67
+ {
68
+ id: "JBFqnCBsd6RMkjVDRZzb",
69
+ name: "George",
70
+ gender: "male",
71
+ accent: "British",
72
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/JBFqnCBsd6RMkjVDRZzb/preview.mp3",
73
+ },
74
+ {
75
+ id: "N2lVS1w4EtoT3dr4eOWO",
76
+ name: "Callum",
77
+ gender: "male",
78
+ accent: "American",
79
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/N2lVS1w4EtoT3dr4eOWO/preview.mp3",
80
+ },
81
+ {
82
+ id: "TX3LPaxmHKxFdv7VOQHJ",
83
+ name: "Liam",
84
+ gender: "male",
85
+ accent: "American",
86
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/TX3LPaxmHKxFdv7VOQHJ/preview.mp3",
87
+ },
88
+ {
89
+ id: "onwK4e9ZLuTAKqWW03F9",
90
+ name: "Daniel",
91
+ gender: "male",
92
+ accent: "British",
93
+ previewUrl: "https://storage.googleapis.com/eleven-public-prod/premade/voices/onwK4e9ZLuTAKqWW03F9/preview.mp3",
94
+ },
95
+ ];
96
+ /** Default voice ID — Sarah (female, American) */
97
+ exports.DEFAULT_ELEVENLABS_VOICE_ID = "EXAVITQu4vr4xnSDxMaL";
98
+ /**
99
+ * Maps frontend language keys → ElevenLabs language_code (ISO 639-1).
100
+ * Used to improve pronunciation when eleven_multilingual_v2 is the model.
101
+ */
102
+ exports.LANG_TO_ELEVENLABS_CODE = {
103
+ en: "en",
104
+ ar: "ar",
105
+ bg: "bg",
106
+ ca: "ca",
107
+ "zh-cn": "zh",
108
+ hr: "hr",
109
+ cs: "cs",
110
+ da: "da",
111
+ nl: "nl",
112
+ tl: "fil",
113
+ fi: "fi",
114
+ fr: "fr",
115
+ de: "de",
116
+ el: "el",
117
+ iw: "he",
118
+ hu: "hu",
119
+ id: "id",
120
+ it: "it",
121
+ ja: "ja",
122
+ ko: "ko",
123
+ ms: "ms",
124
+ no: "no",
125
+ pl: "pl",
126
+ pt: "pt",
127
+ ro: "ro",
128
+ sk: "sk",
129
+ es: "es",
130
+ sv: "sv",
131
+ th: "th",
132
+ tr: "tr",
133
+ uk: "uk",
134
+ vi: "vi",
135
+ };
@@ -40,5 +40,7 @@ export interface IUserSubscription {
40
40
  trialUsed?: boolean;
41
41
  trialStart?: number | null;
42
42
  trialEnd?: number | null;
43
+ cancelAt?: number | null;
44
+ nextCreditRefreshAt?: number | null;
43
45
  }
44
46
  //# sourceMappingURL=user.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EACL,SAAS,EACT,kBAAkB,EAElB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,UA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,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAOrC"}
@@ -10,6 +10,7 @@ export interface IVideoScene {
10
10
  outputVideoUrl?: string;
11
11
  inputVideoUrl?: string;
12
12
  inputImageUrl?: string;
13
+ inputAudioUrl?: string;
13
14
  status: EVideoSceneStatus;
14
15
  creditsUsed?: number;
15
16
  errorMessage?: string;
@@ -32,13 +33,26 @@ export interface IVideoJobModel {
32
33
  totalCreditsUsed?: number;
33
34
  estimatedCredits?: number;
34
35
  durationType?: EVideoDurationType;
36
+ feedback?: {
37
+ rating?: number;
38
+ comment?: string;
39
+ createdAt?: FieldValue;
40
+ };
35
41
  duration?: number;
36
42
  mode?: EVideoMode;
43
+ audio?: boolean;
37
44
  dimensions?: string;
38
45
  resolution?: string;
39
46
  aspectRatio?: string;
40
47
  inputVideoUrl?: string;
41
48
  inputImageUrl?: string;
49
+ inputAudioUrl?: string;
50
+ contentType?: "video" | "avatar-video";
51
+ ttsText?: string;
52
+ ttsProvider?: string;
53
+ ttsVoiceId?: string;
54
+ ttsLanguageCode?: string;
55
+ generatedAudioUrl?: string;
42
56
  createdAt: FieldValue;
43
57
  updatedAt: FieldValue;
44
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"video.model.d.ts","sourceRoot":"","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zB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"aiGenFactory.service.d.ts","sourceRoot":"","sources":["../../../src/services/aiGen/aiGenFactory.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EACL,cAAc,EACd,eAAe,EACf,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAUhC,KAAK,uBAAuB,GAAG,UAAU,wBAAwB,CAAC;AAElE,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,eAAe,EACf,uBAAuB,CAqBxB,CAAC;AAUF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAQzE,CAAC;AAEJ,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,WAAW,GACpB,wBAAwB,CAY1B"}
1
+ {"version":3,"file":"aiGenFactory.service.d.ts","sourceRoot":"","sources":["../../../src/services/aiGen/aiGenFactory.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EACL,cAAc,EACd,eAAe,EACf,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAYhC,KAAK,uBAAuB,GAAG,UAAU,wBAAwB,CAAC;AAElE,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,eAAe,EACf,uBAAuB,CAmDxB,CAAC;AAUF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAQzE,CAAC;AAEJ,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,WAAW,GACpB,wBAAwB,CAY1B"}
@@ -7,28 +7,52 @@ const kling_service_1 = require("./providers/kling/kling.service");
7
7
  const minimax_service_1 = require("./providers/minimax/minimax.service");
8
8
  const openai_service_1 = require("./providers/openai/openai.service");
9
9
  const runway_service_1 = require("./providers/runway/runway.service");
10
- const alibaba_1 = require("./providers/alibaba/alibaba");
11
- const azure_1 = require("./providers/azure");
10
+ // import { AlibabaService } from "./providers/alibaba/alibaba";
11
+ // import { AzureService } from "./providers/azure";
12
+ const pixverse_service_1 = require("./providers/pixverse/pixverse.service");
13
+ const bytedance_service_1 = require("./providers/bytedance/bytedance.service");
12
14
  exports.videoServicesMap = {
13
- "google-veo-3.1-preview": google_service_1.GoogleService,
14
- "google-veo-3.1-fast-preview": google_service_1.GoogleService,
15
+ // --- Pixverse ---
16
+ "pixverse-v5.6": pixverse_service_1.PixVerseService,
17
+ "pixverse-v5.5": pixverse_service_1.PixVerseService,
18
+ "pixverse-v5": pixverse_service_1.PixVerseService,
19
+ // --- ByteDance ---
20
+ "bytedance-seedance-1.5-pro": bytedance_service_1.ByteDanceService,
21
+ "bytedance-seedance-1.0-pro-fast": bytedance_service_1.ByteDanceService,
22
+ "bytedance-seedance-1.0-pro": bytedance_service_1.ByteDanceService,
23
+ // --- Google ---
24
+ "google-veo-3.1": google_service_1.GoogleService,
25
+ "google-veo-3.1-fast": google_service_1.GoogleService,
15
26
  "google-veo-3": google_service_1.GoogleService,
16
- "google-veo-2": google_service_1.GoogleService,
17
27
  "google-veo-3-fast": google_service_1.GoogleService,
28
+ "google-veo-2": google_service_1.GoogleService,
29
+ // --- Runway ---
30
+ "runway-gen4.5": runway_service_1.RunwayService,
18
31
  "runway-gen4-turbo": runway_service_1.RunwayService,
19
32
  "runway-gen4-aleph": runway_service_1.RunwayService,
20
- "kling-v1": kling_service_1.KlingService,
21
- "kling-v1.6": kling_service_1.KlingService,
33
+ // --- Kling ---
34
+ "kling-v2.6": kling_service_1.KlingService,
35
+ "kling-v2.5-turbo": kling_service_1.KlingService,
22
36
  "kling-v2-master": kling_service_1.KlingService,
37
+ "kling-v2.1": kling_service_1.KlingService,
23
38
  "kling-v2.1-master": kling_service_1.KlingService,
24
- "T2V-01": minimax_service_1.MinimaxService,
25
- "T2V-01-Director": minimax_service_1.MinimaxService,
39
+ "kling-avatar": kling_service_1.KlingService,
40
+ // "kling-v1.6": KlingService,
41
+ // "kling-v1": KlingService,
42
+ // --- MiniMax ---
43
+ "minimax-hailuo-2.3-fast": minimax_service_1.MinimaxService,
44
+ "minimax-hailuo-2.3": minimax_service_1.MinimaxService,
26
45
  "minimax-hailuo-02": minimax_service_1.MinimaxService,
27
- "azure-sora": azure_1.AzureService,
46
+ // "T2V-01-Director": MinimaxService,
47
+ // "T2V-01": MinimaxService,
48
+ // --- Azure ---
49
+ // "azure-sora": AzureService,
50
+ // --- OpenAI ---
28
51
  "openai-sora-2": openai_service_1.OpenaiService,
29
52
  "openai-sora-2-pro": openai_service_1.OpenaiService,
30
- "alibaba-wan-2.5": alibaba_1.AlibabaService,
31
- "alibaba-wan-2.2": alibaba_1.AlibabaService,
53
+ // --- Alibaba ---
54
+ // "alibaba-wan-2.5": AlibabaService,
55
+ // "alibaba-wan-2.2": AlibabaService,
32
56
  };
33
57
  // export const imageServicesMap: Record<imageGenModel, BaseAiGenProviderService> = {
34
58
  // "openai-dalle-3": DalleService,
@@ -0,0 +1,9 @@
1
+ import { BaseAiGenProviderService } from "../baseAiGenProvider.service";
2
+ import { CreditUsageParams, VideoGenerationParams, VideoGenerationResult, VideoStatusParams, VideoStatusResult } from "../types";
3
+ export declare class ByteDanceService extends BaseAiGenProviderService {
4
+ private readonly baseUrl;
5
+ generateVideo(params: VideoGenerationParams): Promise<VideoGenerationResult>;
6
+ checkVideoStatus({ task, outputFilename, outputFilePath, }: VideoStatusParams): Promise<VideoStatusResult>;
7
+ getCreditUsed(params: CreditUsageParams): number;
8
+ }
9
+ //# sourceMappingURL=bytedance.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bytedance.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/aiGen/providers/bytedance/bytedance.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AASlB,qBAAa,gBAAiB,SAAQ,wBAAwB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CACsD;IAExE,aAAa,CACjB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC;IA6D3B,gBAAgB,CAAC,EACrB,IAAI,EACJ,cAAc,EACd,cAAyB,GAC1B,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA8FjD,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM;CAoCjD"}