@purpleschool/gptbot 0.7.85 → 0.7.86

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.
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VIDEO_GENERATION_MODEL_LIMITATION = void 0;
4
+ var VIDEO_GENERATION_MODEL_LIMITATION;
5
+ (function (VIDEO_GENERATION_MODEL_LIMITATION) {
6
+ VIDEO_GENERATION_MODEL_LIMITATION["ASPECT_RATIO_IGNORED_WITH_IMAGE_ATTACHED"] = "ASPECT_RATIO_IGNORED_WITH_IMAGE_ATTACHED";
7
+ })(VIDEO_GENERATION_MODEL_LIMITATION || (exports.VIDEO_GENERATION_MODEL_LIMITATION = VIDEO_GENERATION_MODEL_LIMITATION = {}));
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VIDEO_EDITOR_MODEL_LIMITATION = void 0;
4
+ var VIDEO_EDITOR_MODEL_LIMITATION;
5
+ (function (VIDEO_EDITOR_MODEL_LIMITATION) {
6
+ VIDEO_EDITOR_MODEL_LIMITATION["OUTPUT_VIDEO_LENGTH_CAPPED_TO_5_SECONDS"] = "OUTPUT_VIDEO_LENGTH_CAPPED_TO_5_SECONDS";
7
+ })(VIDEO_EDITOR_MODEL_LIMITATION || (exports.VIDEO_EDITOR_MODEL_LIMITATION = VIDEO_EDITOR_MODEL_LIMITATION = {}));
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.calculateVideoEditingPrice = calculateVideoEditingPrice;
4
- function calculateVideoEditingPrice({ duration, pricePerSecond, }) {
5
- return Math.ceil(duration * pricePerSecond);
4
+ function calculateVideoEditingPrice({ pricePerCall }) {
5
+ return pricePerCall;
6
6
  }
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./video-config.schema"), exports);
18
18
  __exportStar(require("./video-job.schema"), exports);
19
19
  __exportStar(require("./video-model.schema"), exports);
20
+ __exportStar(require("./video-model.schema"), exports);
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const icon_variants_schema_1 = require("../../icon-variants.schema");
6
6
  const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
7
7
  const constants_1 = require("../../../constants");
8
+ const video_generation_model_limitation_enum_1 = require("../../../constants/tool-video/enums/video-generation-model-limitation.enum");
8
9
  exports.VideoModelParamsSchema = zod_1.z.object({
9
10
  imageAttachment: zod_1.z.object({
10
11
  supported: zod_1.z.boolean(),
@@ -46,5 +47,6 @@ exports.VideoModelSchema = zod_1.z.object({
46
47
  params: exports.VideoModelParamsSchema,
47
48
  pricingRules: exports.VideoModelPricingRulesSchema,
48
49
  unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
50
+ limitations: zod_1.z.array(zod_1.z.nativeEnum(video_generation_model_limitation_enum_1.VIDEO_GENERATION_MODEL_LIMITATION)),
49
51
  canUse: zod_1.z.boolean(),
50
52
  });
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./video-editor-config.schema"), exports);
18
18
  __exportStar(require("./video-editor-job.schema"), exports);
19
19
  __exportStar(require("./video-editor-model.schema"), exports);
20
+ __exportStar(require("./video-editor-model.schema"), exports);
@@ -4,6 +4,7 @@ exports.VideoEditorModelSchema = exports.VideoEditorModelParamsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const icon_variants_schema_1 = require("../../icon-variants.schema");
6
6
  const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
7
+ const video_editor_model_limitation_enum_1 = require("../../../constants/tool-video-editor/enums/video-editor-model-limitation.enum");
7
8
  exports.VideoEditorModelParamsSchema = zod_1.z.object({
8
9
  supportedFormats: zod_1.z.array(zod_1.z.string()),
9
10
  });
@@ -12,7 +13,7 @@ exports.VideoEditorModelSchema = zod_1.z.object({
12
13
  title: zod_1.z.string(),
13
14
  description: zod_1.z.string(),
14
15
  aiModel: zod_1.z.string(),
15
- pricePerSecond: zod_1.z.number(),
16
+ pricePerCall: zod_1.z.number(),
16
17
  order: zod_1.z.number(),
17
18
  icons: icon_variants_schema_1.IconVariantsSchema,
18
19
  maxPromptLength: zod_1.z.number(),
@@ -22,5 +23,6 @@ exports.VideoEditorModelSchema = zod_1.z.object({
22
23
  createdAt: zod_1.z.date(),
23
24
  updatedAt: zod_1.z.date(),
24
25
  unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
26
+ limitations: zod_1.z.array(zod_1.z.nativeEnum(video_editor_model_limitation_enum_1.VIDEO_EDITOR_MODEL_LIMITATION)),
25
27
  canUse: zod_1.z.boolean(),
26
28
  });
@@ -0,0 +1,3 @@
1
+ export enum VIDEO_GENERATION_MODEL_LIMITATION {
2
+ ASPECT_RATIO_IGNORED_WITH_IMAGE_ATTACHED = 'ASPECT_RATIO_IGNORED_WITH_IMAGE_ATTACHED',
3
+ }
@@ -0,0 +1,3 @@
1
+ export enum VIDEO_EDITOR_MODEL_LIMITATION {
2
+ OUTPUT_VIDEO_LENGTH_CAPPED_TO_5_SECONDS = 'OUTPUT_VIDEO_LENGTH_CAPPED_TO_5_SECONDS',
3
+ }
@@ -1,9 +1,3 @@
1
- export function calculateVideoEditingPrice({
2
- duration,
3
- pricePerSecond,
4
- }: {
5
- duration: number;
6
- pricePerSecond: number;
7
- }): number {
8
- return Math.ceil(duration * pricePerSecond);
1
+ export function calculateVideoEditingPrice({ pricePerCall }: { pricePerCall: number }) {
2
+ return pricePerCall;
9
3
  }
@@ -1,3 +1,4 @@
1
1
  export * from './video-config.schema';
2
2
  export * from './video-job.schema';
3
3
  export * from './video-model.schema';
4
+ export * from './video-model.schema';
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { IconVariantsSchema } from '../../icon-variants.schema';
3
3
  import { UnlockedBySchema } from '../../unlocked-by-subscription.schema';
4
4
  import { VIDEO_PRICING_RULE_TYPE } from '../../../constants';
5
+ import { VIDEO_GENERATION_MODEL_LIMITATION } from '../../../constants/tool-video/enums/video-generation-model-limitation.enum';
5
6
 
6
7
  export const VideoModelParamsSchema = z.object({
7
8
  imageAttachment: z.object({
@@ -53,5 +54,6 @@ export const VideoModelSchema = z.object({
53
54
  params: VideoModelParamsSchema,
54
55
  pricingRules: VideoModelPricingRulesSchema,
55
56
  unlockedBy: UnlockedBySchema.nullable(),
57
+ limitations: z.array(z.nativeEnum(VIDEO_GENERATION_MODEL_LIMITATION)),
56
58
  canUse: z.boolean(),
57
59
  });
@@ -1,3 +1,4 @@
1
1
  export * from './video-editor-config.schema';
2
2
  export * from './video-editor-job.schema';
3
3
  export * from './video-editor-model.schema';
4
+ export * from './video-editor-model.schema';
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { IconVariantsSchema } from '../../icon-variants.schema';
3
3
  import { UnlockedBySchema } from '../../unlocked-by-subscription.schema';
4
+ import { VIDEO_EDITOR_MODEL_LIMITATION } from '../../../constants/tool-video-editor/enums/video-editor-model-limitation.enum';
4
5
 
5
6
  export const VideoEditorModelParamsSchema = z.object({
6
7
  supportedFormats: z.array(z.string()),
@@ -11,7 +12,7 @@ export const VideoEditorModelSchema = z.object({
11
12
  title: z.string(),
12
13
  description: z.string(),
13
14
  aiModel: z.string(),
14
- pricePerSecond: z.number(),
15
+ pricePerCall: z.number(),
15
16
  order: z.number(),
16
17
  icons: IconVariantsSchema,
17
18
  maxPromptLength: z.number(),
@@ -21,5 +22,6 @@ export const VideoEditorModelSchema = z.object({
21
22
  createdAt: z.date(),
22
23
  updatedAt: z.date(),
23
24
  unlockedBy: UnlockedBySchema.nullable(),
25
+ limitations: z.array(z.nativeEnum(VIDEO_EDITOR_MODEL_LIMITATION)),
24
26
  canUse: z.boolean(),
25
27
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.7.85",
3
+ "version": "0.7.86",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.videoMaxDuration = void 0;
4
- exports.videoMaxDuration = 8;
@@ -1 +0,0 @@
1
- export const videoMaxDuration = 8;