@purpleschool/gptbot 0.14.60-stage2 → 0.14.62-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.
Files changed (86) hide show
  1. package/build/api/controllers/http/avatar-studio.d.ts +5 -2
  2. package/build/api/controllers/http/avatar-studio.js +6 -4
  3. package/build/api/controllers/http/photo-session.d.ts +0 -1
  4. package/build/api/controllers/http/photo-session.js +0 -1
  5. package/build/api/routes.d.ts +6 -5
  6. package/build/api/routes.js +6 -5
  7. package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +1 -1
  8. package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +1 -1
  9. package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +1 -1
  10. package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +1 -1
  11. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.d.ts +4 -2
  12. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.js +4 -2
  13. package/build/commands/avatar-studio/scene/{apply-avatar-studio-voice-sample-to-all-scenes.command.d.ts → apply-avatar-studio-voice-to-all-scenes.command.d.ts} +3 -3
  14. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js +17 -0
  15. package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +1 -1
  16. package/build/commands/avatar-studio/scene/index.d.ts +1 -1
  17. package/build/commands/avatar-studio/scene/index.js +1 -1
  18. package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +1 -1
  19. package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +1 -1
  20. package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +2 -2
  21. package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +1 -1
  22. package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +1 -1
  23. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +5 -6
  24. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +7 -12
  25. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +33 -0
  26. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.js +19 -0
  27. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.d.ts +11 -0
  28. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.js +13 -0
  29. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +16 -56
  30. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.js +6 -7
  31. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +26 -0
  32. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.js +11 -0
  33. package/build/commands/avatar-studio/voice/index.d.ts +3 -0
  34. package/build/commands/avatar-studio/voice/index.js +3 -0
  35. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +4 -4
  36. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +4 -4
  37. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +3 -2
  38. package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +5 -4
  39. package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +3 -3
  40. package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +7 -7
  41. package/build/commands/tools/photo-session/get-photo-session-price.command.d.ts +6 -6
  42. package/build/commands/tools/photo-session/get-photo-session-price.command.js +6 -6
  43. package/build/commands/tools/photo-session/index.d.ts +1 -0
  44. package/build/commands/tools/photo-session/index.js +1 -0
  45. package/build/commands/tools/photo-session/photo-session.command.d.ts +20 -16
  46. package/build/commands/tools/photo-session/photo-session.command.js +13 -13
  47. package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +23 -3
  48. package/build/commands/tools/photo-session/retry-photo-session-job.command.js +12 -13
  49. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +4 -3
  50. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +2 -2
  51. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +3 -2
  52. package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +3 -2
  53. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +69 -0
  54. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +18 -0
  55. package/build/commands/tools/tts/create-voice-clone.command.d.ts +1 -0
  56. package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +1 -0
  57. package/build/commands/tools/tts/find-voices.query.d.ts +2 -1
  58. package/build/commands/tools/tts/find-voices.query.js +1 -1
  59. package/build/commands/tools/tts/select-voice-design.command.d.ts +1 -0
  60. package/build/commands/tools/tts/update-voice.command.d.ts +1 -0
  61. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +1 -0
  62. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +1 -0
  63. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.d.ts +1 -2
  64. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.js +0 -1
  65. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.d.ts +1 -1
  66. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.js +1 -1
  67. package/build/constants/tool/enums/index.d.ts +1 -0
  68. package/build/constants/tool/enums/index.js +1 -0
  69. package/build/constants/tool/enums/job-scope.enum.d.ts +5 -0
  70. package/build/constants/tool/enums/job-scope.enum.js +9 -0
  71. package/build/constants/tool-tts/enums/voice-category.enum.d.ts +6 -1
  72. package/build/constants/tool-tts/enums/voice-category.enum.js +5 -0
  73. package/build/models/avatar-studio/avatar-studio.schema.d.ts +6 -6
  74. package/build/models/avatar-studio/avatar-studio.schema.js +3 -3
  75. package/build/models/tools/photo-session/photo-session-config.schema.d.ts +73 -7
  76. package/build/models/tools/photo-session/photo-session-config.schema.js +6 -1
  77. package/build/models/tools/photo-session/photo-session-job.schema.d.ts +3 -2
  78. package/build/models/tools/photo-session/photo-session-job.schema.js +3 -0
  79. package/build/models/tools/photo-session/photo-session-model.schema.d.ts +46 -3
  80. package/build/models/tools/photo-session/photo-session-model.schema.js +7 -5
  81. package/build/models/tools/photo-session/photo-session-style.schema.d.ts +6 -6
  82. package/build/models/tools/photo-session/photo-session-style.schema.js +4 -4
  83. package/build/models/tools/tts/voice.schema.d.ts +2 -1
  84. package/build/models/tools/tts/voice.schema.js +1 -0
  85. package/package.json +1 -1
  86. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-sample-to-all-scenes.command.js +0 -15
@@ -8,8 +8,8 @@ exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
8
8
  photoUrl: zod_1.z.string(),
9
9
  description: zod_1.z.string().nullable().optional(),
10
10
  order: zod_1.z.number().int().min(0).max(5),
11
- createdAt: zod_1.z.date(),
12
- updatedAt: zod_1.z.date(),
11
+ createdAt: zod_1.z.coerce.date(),
12
+ updatedAt: zod_1.z.coerce.date(),
13
13
  });
14
14
  exports.PhotoSessionStyleSchema = zod_1.z.object({
15
15
  uuid: zod_1.z.string().uuid(),
@@ -17,6 +17,6 @@ exports.PhotoSessionStyleSchema = zod_1.z.object({
17
17
  title: zod_1.z.string(),
18
18
  description: zod_1.z.string().nullable().optional(),
19
19
  references: zod_1.z.array(exports.PhotoSessionStyleReferenceSchema),
20
- createdAt: zod_1.z.date(),
21
- updatedAt: zod_1.z.date(),
20
+ createdAt: zod_1.z.coerce.date(),
21
+ updatedAt: zod_1.z.coerce.date(),
22
22
  });
@@ -1,7 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { VOICE_CATEGORY, VOICE_GENDER, VOICE_SOURCE, VOICE_STATUS } from '../../../constants';
2
+ import { JOB_SCOPE, VOICE_CATEGORY, VOICE_GENDER, VOICE_SOURCE, VOICE_STATUS } from '../../../constants';
3
3
  export declare const VoiceSchema: z.ZodObject<{
4
4
  uuid: z.ZodString;
5
+ scope: z.ZodEnum<typeof JOB_SCOPE>;
5
6
  source: z.ZodEnum<typeof VOICE_SOURCE>;
6
7
  title: z.ZodString;
7
8
  description: z.ZodString;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const constants_1 = require("../../../constants");
6
6
  exports.VoiceSchema = zod_1.z.object({
7
7
  uuid: zod_1.z.string().uuid(),
8
+ scope: zod_1.z.nativeEnum(constants_1.JOB_SCOPE),
8
9
  source: zod_1.z.nativeEnum(constants_1.VOICE_SOURCE),
9
10
  title: zod_1.z.string(),
10
11
  description: zod_1.z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.14.60-stage2",
3
+ "version": "0.14.62-stage2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApplyAvatarStudioVoiceSampleToAllScenesCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../../models");
6
- const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
7
- var ApplyAvatarStudioVoiceSampleToAllScenesCommand;
8
- (function (ApplyAvatarStudioVoiceSampleToAllScenesCommand) {
9
- ApplyAvatarStudioVoiceSampleToAllScenesCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioClipIdParamsSchema.merge(avatar_studio_common_schema_1.AvatarStudioMediaIdParamsSchema);
10
- // Ответ — клип со сценами, а не список сцен: фронт перерисовывает клип целиком
11
- // и не ходит следом за GET /clips/:clipId.
12
- ApplyAvatarStudioVoiceSampleToAllScenesCommand.ResponseSchema = zod_1.z.object({
13
- data: models_1.AvatarStudioClipSchema,
14
- });
15
- })(ApplyAvatarStudioVoiceSampleToAllScenesCommand || (exports.ApplyAvatarStudioVoiceSampleToAllScenesCommand = ApplyAvatarStudioVoiceSampleToAllScenesCommand = {}));