@purpleschool/gptbot 0.14.31 → 0.14.33

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.
@@ -5,8 +5,8 @@ const zod_1 = require("zod");
5
5
  const models_1 = require("../../../models");
6
6
  const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
7
7
  /**
8
- * Генерация изображения в медиатеку пользователя. Клипа у неё нет: медиатека
9
- * принадлежит пользователю, и картинка доступна из любого его клипа.
8
+ * Генерация изображения в медиатеку пользователя. Медиатека принадлежит пользователю,
9
+ * и картинка доступна из любого его клипа — поэтому роут плоский, а clipId опционален.
10
10
  */
11
11
  var GenerateAvatarStudioImageCommand;
12
12
  (function (GenerateAvatarStudioImageCommand) {
@@ -15,6 +15,7 @@ var GenerateAvatarStudioImageCommand;
15
15
  prompt: zod_1.z.string().trim().min(1),
16
16
  referenceMediaIds: avatar_studio_common_schema_1.AvatarStudioUuidListSchema.optional(),
17
17
  aspectRatio: models_1.AvatarStudioAspectRatioSchema.default('9:16'),
18
+ clipId: zod_1.z.string().uuid().optional(),
18
19
  })
19
20
  .strict();
20
21
  GenerateAvatarStudioImageCommand.ResponseSchema = zod_1.z.object({
@@ -1,14 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SendTelegramNotificationCommand = void 0;
4
- const zod_1 = require("zod");
5
4
  const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
5
+ const zod_1 = require("zod");
6
6
  const models_1 = require("../../models");
7
7
  var SendTelegramNotificationCommand;
8
8
  (function (SendTelegramNotificationCommand) {
9
9
  SendTelegramNotificationCommand.MessageMdSchema = zod_1.z.object({
10
10
  [rugpt_lib_common_1.LOCALE.RU]: zod_1.z.string(),
11
11
  [rugpt_lib_common_1.LOCALE.EN]: zod_1.z.string(),
12
+ [rugpt_lib_common_1.LOCALE.ES]: zod_1.z.string(),
12
13
  });
13
14
  SendTelegramNotificationCommand.RequestSchema = zod_1.z.object({
14
15
  filters: models_1.UserFilterSchema,
@@ -3,8 +3,8 @@ import { AvatarStudioAspectRatioSchema, AvatarStudioGenerationJobSchema } from '
3
3
  import { AvatarStudioUuidListSchema } from '../shared/avatar-studio-common.schema';
4
4
 
5
5
  /**
6
- * Генерация изображения в медиатеку пользователя. Клипа у неё нет: медиатека
7
- * принадлежит пользователю, и картинка доступна из любого его клипа.
6
+ * Генерация изображения в медиатеку пользователя. Медиатека принадлежит пользователю,
7
+ * и картинка доступна из любого его клипа — поэтому роут плоский, а clipId опционален.
8
8
  */
9
9
  export namespace GenerateAvatarStudioImageCommand {
10
10
  export const RequestSchema = z
@@ -12,6 +12,7 @@ export namespace GenerateAvatarStudioImageCommand {
12
12
  prompt: z.string().trim().min(1),
13
13
  referenceMediaIds: AvatarStudioUuidListSchema.optional(),
14
14
  aspectRatio: AvatarStudioAspectRatioSchema.default('9:16'),
15
+ clipId: z.string().uuid().optional(),
15
16
  })
16
17
  .strict();
17
18
  export type Request = z.infer<typeof RequestSchema>;
@@ -1,11 +1,12 @@
1
- import { z } from 'zod';
2
1
  import { LOCALE } from '@purpleschool/rugpt-lib-common';
2
+ import { z } from 'zod';
3
3
  import { UserFilterSchema } from '../../models';
4
4
 
5
5
  export namespace SendTelegramNotificationCommand {
6
6
  export const MessageMdSchema = z.object({
7
7
  [LOCALE.RU]: z.string(),
8
8
  [LOCALE.EN]: z.string(),
9
+ [LOCALE.ES]: z.string(),
9
10
  });
10
11
  export type MessageMd = z.infer<typeof MessageMdSchema>;
11
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.14.31",
3
+ "version": "0.14.33",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "author": "",
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
- "@purpleschool/rugpt-lib-common": "^0.0.72-es-add-test",
15
+ "@purpleschool/rugpt-lib-common": "0.0.72-es-add-test",
16
16
  "zod": "^3.25.67"
17
17
  }
18
18
  }