@purpleschool/gptbot-tools 0.2.12-stage-2 → 0.2.13-stage-2
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/diagrams/commands/diagrams.command.js +1 -0
- package/build/diagrams/commands/edit-diagrams-job.command.js +1 -0
- package/build/diagrams/commands/retry-diagrams-job.command.js +2 -0
- package/build/image-editor/commands/image-editor.command.js +2 -0
- package/build/image-editor/commands/retry-image-editor-job.command.js +2 -0
- package/build/image-generation/commands/execute-image-generation.command.js +2 -0
- package/build/image-generation/commands/retry-image-generation-job.command.js +2 -0
- package/build/interior-design/commands/get-interior-design-price.command.js +1 -0
- package/build/interior-design/commands/interior-design.command.js +1 -0
- package/build/interior-design/commands/retry-interior-design-job.command.js +2 -0
- package/build/marketplace-card/commands/execute-marketplace-card.command.js +1 -0
- package/build/marketplace-card/commands/retry-marketplace-card-job.command.js +1 -0
- package/build/music/commands/generate-lyrics.command.js +2 -0
- package/build/music/commands/generate-music.command.js +2 -0
- package/build/music/commands/retry-music-job.command.js +2 -0
- package/build/presentation/commands/generate-and-insert-slide.command.js +1 -0
- package/build/presentation/commands/generate-slides.command.js +1 -0
- package/build/solving-edu-task/commands/retry-solving-edu-task-job.command.js +2 -0
- package/build/solving-edu-task/commands/solving-edu-task.command.js +1 -0
- package/build/video/commands/retry-video-job.command.js +2 -0
- package/build/video/commands/video.command.js +2 -0
- package/diagrams/commands/diagrams.command.ts +2 -1
- package/diagrams/commands/edit-diagrams-job.command.ts +2 -1
- package/diagrams/commands/retry-diagrams-job.command.ts +2 -0
- package/image-editor/commands/image-editor.command.ts +2 -0
- package/image-editor/commands/retry-image-editor-job.command.ts +2 -0
- package/image-generation/commands/execute-image-generation.command.ts +2 -0
- package/image-generation/commands/retry-image-generation-job.command.ts +2 -0
- package/interior-design/commands/get-interior-design-price.command.ts +2 -1
- package/interior-design/commands/interior-design.command.ts +2 -1
- package/interior-design/commands/retry-interior-design-job.command.ts +2 -0
- package/marketplace-card/commands/execute-marketplace-card.command.ts +2 -1
- package/marketplace-card/commands/retry-marketplace-card-job.command.ts +2 -1
- package/music/commands/generate-lyrics.command.ts +2 -0
- package/music/commands/generate-music.command.ts +2 -0
- package/music/commands/retry-music-job.command.ts +2 -0
- package/package.json +1 -1
- package/presentation/commands/generate-and-insert-slide.command.ts +2 -1
- package/presentation/commands/generate-slides.command.ts +2 -1
- package/solving-edu-task/commands/retry-solving-edu-task-job.command.ts +2 -0
- package/solving-edu-task/commands/solving-edu-task.command.ts +2 -1
- package/video/commands/retry-video-job.command.ts +2 -0
- package/video/commands/video.command.ts +2 -0
|
@@ -7,6 +7,7 @@ const models_1 = require("../models");
|
|
|
7
7
|
var DiagramsCommand;
|
|
8
8
|
(function (DiagramsCommand) {
|
|
9
9
|
DiagramsCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
locale: common_1.LocaleSchema,
|
|
10
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
13
|
prompt: zod_1.z.string(),
|
|
@@ -7,6 +7,7 @@ const models_1 = require("../models");
|
|
|
7
7
|
var EditDiagramsJobCommand;
|
|
8
8
|
(function (EditDiagramsJobCommand) {
|
|
9
9
|
EditDiagramsJobCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
locale: common_1.LocaleSchema,
|
|
10
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
13
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RetryDiagramsJobCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
6
7
|
const models_1 = require("../models");
|
|
7
8
|
var RetryDiagramsJobCommand;
|
|
8
9
|
(function (RetryDiagramsJobCommand) {
|
|
9
10
|
RetryDiagramsJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: locale_schema_1.LocaleSchema,
|
|
10
12
|
uuid: zod_1.z.string().uuid(),
|
|
11
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ImageEditorCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
6
7
|
const models_1 = require("../models");
|
|
7
8
|
const common_1 = require("../../common");
|
|
8
9
|
const tool_workspace_1 = require("../../tool-workspace");
|
|
@@ -10,6 +11,7 @@ const tools_1 = require("../../tools");
|
|
|
10
11
|
var ImageEditorCommand;
|
|
11
12
|
(function (ImageEditorCommand) {
|
|
12
13
|
ImageEditorCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
locale: locale_schema_1.LocaleSchema,
|
|
13
15
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
16
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
17
|
workspaceId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -4,9 +4,11 @@ exports.RetryImageEditorJobCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const models_1 = require("../models");
|
|
7
|
+
const common_1 = require("../../common");
|
|
7
8
|
var RetryImageEditorJobCommand;
|
|
8
9
|
(function (RetryImageEditorJobCommand) {
|
|
9
10
|
RetryImageEditorJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: common_1.LocaleSchema,
|
|
10
12
|
uuid: zod_1.z.string().uuid(),
|
|
11
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ExecuteImageGenerationCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
6
7
|
const models_1 = require("../models");
|
|
7
8
|
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
8
9
|
var ExecuteImageGenerationCommand;
|
|
9
10
|
(function (ExecuteImageGenerationCommand) {
|
|
10
11
|
ExecuteImageGenerationCommand.RequestSchema = zod_1.z.object({
|
|
12
|
+
locale: locale_schema_1.LocaleSchema,
|
|
11
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
15
|
prompt: zod_1.z.string(),
|
|
@@ -4,9 +4,11 @@ exports.RetryImageGenerationJobCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const models_1 = require("../models");
|
|
7
|
+
const common_1 = require("../../common");
|
|
7
8
|
var RetryImageGenerationJobCommand;
|
|
8
9
|
(function (RetryImageGenerationJobCommand) {
|
|
9
10
|
RetryImageGenerationJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: common_1.LocaleSchema,
|
|
10
12
|
uuid: zod_1.z.string().uuid(),
|
|
11
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -7,6 +7,7 @@ const common_1 = require("../../common");
|
|
|
7
7
|
var GetInteriorDesignPriceCommand;
|
|
8
8
|
(function (GetInteriorDesignPriceCommand) {
|
|
9
9
|
GetInteriorDesignPriceCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
locale: common_1.LocaleSchema,
|
|
10
11
|
modelId: zod_1.z.string().uuid(),
|
|
11
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -9,6 +9,7 @@ const enums_1 = require("../enums");
|
|
|
9
9
|
var InteriorDesignCommand;
|
|
10
10
|
(function (InteriorDesignCommand) {
|
|
11
11
|
InteriorDesignCommand.RequestSchema = zod_1.z.object({
|
|
12
|
+
locale: common_1.LocaleSchema,
|
|
12
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
15
|
prompt: zod_1.z.string(),
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RetryInteriorDesignJobCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const common_1 = require("../../common");
|
|
6
7
|
const models_1 = require("../models");
|
|
7
8
|
var RetryInteriorDesignJobCommand;
|
|
8
9
|
(function (RetryInteriorDesignJobCommand) {
|
|
9
10
|
RetryInteriorDesignJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: common_1.LocaleSchema,
|
|
10
12
|
uuid: zod_1.z.string().uuid(),
|
|
11
13
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
12
14
|
precalculatedPrice: zod_1.z.number(),
|
|
@@ -10,6 +10,7 @@ const common_1 = require("../../common");
|
|
|
10
10
|
var ExecuteMarketplaceCardCommand;
|
|
11
11
|
(function (ExecuteMarketplaceCardCommand) {
|
|
12
12
|
ExecuteMarketplaceCardCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
locale: common_1.LocaleSchema,
|
|
13
14
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
15
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
16
|
workspaceId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -8,6 +8,7 @@ const models_1 = require("../models");
|
|
|
8
8
|
var RetryMarketplaceCardJobCommand;
|
|
9
9
|
(function (RetryMarketplaceCardJobCommand) {
|
|
10
10
|
RetryMarketplaceCardJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: common_1.LocaleSchema,
|
|
11
12
|
uuid: zod_1.z.string().uuid(),
|
|
12
13
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
13
14
|
precalculatedPrice: zod_1.z.number(),
|
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GenerateLyricsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
6
7
|
var GenerateLyricsCommand;
|
|
7
8
|
(function (GenerateLyricsCommand) {
|
|
8
9
|
GenerateLyricsCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
locale: locale_schema_1.LocaleSchema,
|
|
9
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
10
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
13
|
userBalance: zod_1.z.number(),
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GenerateMusicCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
6
7
|
const music_job_schema_1 = require("../models/music-job.schema");
|
|
7
8
|
const models_1 = require("../models");
|
|
8
9
|
var GenerateMusicCommand;
|
|
9
10
|
(function (GenerateMusicCommand) {
|
|
10
11
|
GenerateMusicCommand.RequestSchema = zod_1.z.object({
|
|
12
|
+
locale: locale_schema_1.LocaleSchema,
|
|
11
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
15
|
modelId: zod_1.z.string(),
|
|
@@ -4,9 +4,11 @@ exports.RetryMusicJobCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const music_job_schema_1 = require("../models/music-job.schema");
|
|
7
|
+
const common_1 = require("../../common");
|
|
7
8
|
var RetryMusicJobCommand;
|
|
8
9
|
(function (RetryMusicJobCommand) {
|
|
9
10
|
RetryMusicJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: common_1.LocaleSchema,
|
|
10
12
|
uuid: zod_1.z.string().uuid(),
|
|
11
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -8,6 +8,7 @@ const models_1 = require("../models");
|
|
|
8
8
|
var GenerateAndInsertSlideCommand;
|
|
9
9
|
(function (GenerateAndInsertSlideCommand) {
|
|
10
10
|
GenerateAndInsertSlideCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: common_1.LocaleSchema,
|
|
11
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
14
|
userBalance: zod_1.z.number(),
|
|
@@ -7,6 +7,7 @@ const models_1 = require("../models");
|
|
|
7
7
|
var GenerateSlidesCommand;
|
|
8
8
|
(function (GenerateSlidesCommand) {
|
|
9
9
|
GenerateSlidesCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
locale: common_1.LocaleSchema,
|
|
10
11
|
uuid: zod_1.z.string().uuid(),
|
|
11
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RetrySolvingEduTaskJobCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
6
7
|
const models_1 = require("../models");
|
|
7
8
|
const common_1 = require("../../common");
|
|
8
9
|
var RetrySolvingEduTaskJobCommand;
|
|
9
10
|
(function (RetrySolvingEduTaskJobCommand) {
|
|
10
11
|
RetrySolvingEduTaskJobCommand.RequestSchema = zod_1.z.object({
|
|
12
|
+
locale: locale_schema_1.LocaleSchema,
|
|
11
13
|
uuid: zod_1.z.string().uuid(),
|
|
12
14
|
tokenReservationId: zod_1.z.string().uuid().optional(),
|
|
13
15
|
precalculatedPrice: zod_1.z.number().optional(),
|
|
@@ -8,6 +8,7 @@ const common_1 = require("../../common");
|
|
|
8
8
|
var SolvingEduTaskCommand;
|
|
9
9
|
(function (SolvingEduTaskCommand) {
|
|
10
10
|
SolvingEduTaskCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: common_1.LocaleSchema,
|
|
11
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
14
|
prompt: zod_1.z.string(),
|
|
@@ -5,9 +5,11 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const video_job_schema_1 = require("../models/video-job.schema");
|
|
7
7
|
const models_1 = require("../models");
|
|
8
|
+
const common_1 = require("../../common");
|
|
8
9
|
var RetryVideoJobCommand;
|
|
9
10
|
(function (RetryVideoJobCommand) {
|
|
10
11
|
RetryVideoJobCommand.RequestSchema = zod_1.z.object({
|
|
12
|
+
locale: common_1.LocaleSchema,
|
|
11
13
|
uuid: zod_1.z.string().uuid(),
|
|
12
14
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
15
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VideoCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
6
7
|
const tool_workspace_1 = require("../../tool-workspace");
|
|
7
8
|
const tools_1 = require("../../tools");
|
|
8
9
|
const video_job_schema_1 = require("../models/video-job.schema");
|
|
@@ -10,6 +11,7 @@ const models_1 = require("../models");
|
|
|
10
11
|
var VideoCommand;
|
|
11
12
|
(function (VideoCommand) {
|
|
12
13
|
VideoCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
locale: locale_schema_1.LocaleSchema,
|
|
13
15
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
16
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
17
|
workspaceId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema } from '../../common';
|
|
2
|
+
import { ICommandResponseSchema, LocaleSchema } from '../../common';
|
|
3
3
|
import { DiagramsJobParamsSchema, DiagramsJobSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace DiagramsCommand {
|
|
6
6
|
export const RequestSchema = z.object({
|
|
7
|
+
locale: LocaleSchema,
|
|
7
8
|
userId: z.string().uuid().nullable().optional(),
|
|
8
9
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
9
10
|
prompt: z.string(),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema } from '../../common';
|
|
2
|
+
import { ICommandResponseSchema, LocaleSchema } from '../../common';
|
|
3
3
|
import { DiagramsJobSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace EditDiagramsJobCommand {
|
|
6
6
|
export const RequestSchema = z.object({
|
|
7
|
+
locale: LocaleSchema,
|
|
7
8
|
userId: z.string().uuid().nullable().optional(),
|
|
8
9
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
9
10
|
uuid: z.string().uuid(),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { LocaleSchema } from '../../common/models/locale.schema';
|
|
3
4
|
import { DiagramsJobParamsSchema, DiagramsJobSchema } from '../models';
|
|
4
5
|
|
|
5
6
|
export namespace RetryDiagramsJobCommand {
|
|
6
7
|
export const RequestSchema = z.object({
|
|
8
|
+
locale: LocaleSchema,
|
|
7
9
|
uuid: z.string().uuid(),
|
|
8
10
|
userId: z.string().uuid().nullable().optional(),
|
|
9
11
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { LocaleSchema } from '../../common/models/locale.schema';
|
|
3
4
|
import { ImageEditorJobSchema } from '../models';
|
|
4
5
|
import { AttachedFileSchema } from '../../common';
|
|
5
6
|
import { TOOL_WORKSPACE_ITEM_SLOT } from '../../tool-workspace';
|
|
@@ -7,6 +8,7 @@ import { TOOL_CONTENT_TYPE } from '../../tools';
|
|
|
7
8
|
|
|
8
9
|
export namespace ImageEditorCommand {
|
|
9
10
|
export const RequestSchema = z.object({
|
|
11
|
+
locale: LocaleSchema,
|
|
10
12
|
userId: z.string().uuid().nullable().optional(),
|
|
11
13
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
12
14
|
workspaceId: z.string().uuid().nullable().optional(),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { ImageEditorJobParamsSchema, ImageEditorJobSchema } from '../models';
|
|
4
|
+
import { LocaleSchema } from '../../common';
|
|
4
5
|
|
|
5
6
|
export namespace RetryImageEditorJobCommand {
|
|
6
7
|
export const RequestSchema = z.object({
|
|
8
|
+
locale: LocaleSchema,
|
|
7
9
|
uuid: z.string().uuid(),
|
|
8
10
|
userId: z.string().uuid().nullable().optional(),
|
|
9
11
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { LocaleSchema } from '../../common/models/locale.schema';
|
|
3
4
|
import { ImageGenerationJobSchema, ImageGenerationRequestParamsSchema } from '../models';
|
|
4
5
|
import { STATISTICS_CALL_ORIGIN } from '@purpleschool/rugpt-lib-common';
|
|
5
6
|
|
|
6
7
|
export namespace ExecuteImageGenerationCommand {
|
|
7
8
|
export const RequestSchema = z.object({
|
|
9
|
+
locale: LocaleSchema,
|
|
8
10
|
userId: z.string().uuid().nullable().optional(),
|
|
9
11
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
10
12
|
prompt: z.string(),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { ImageGenerationJobSchema, ImageGenerationRequestParamsSchema } from '../models';
|
|
4
|
+
import { LocaleSchema } from '../../common';
|
|
4
5
|
|
|
5
6
|
export namespace RetryImageGenerationJobCommand {
|
|
6
7
|
export const RequestSchema = z.object({
|
|
8
|
+
locale: LocaleSchema,
|
|
7
9
|
uuid: z.string().uuid(),
|
|
8
10
|
userId: z.string().uuid().nullable().optional(),
|
|
9
11
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
-
import { AttachedFileSchema } from '../../common';
|
|
3
|
+
import { AttachedFileSchema, LocaleSchema } from '../../common';
|
|
4
4
|
|
|
5
5
|
export namespace GetInteriorDesignPriceCommand {
|
|
6
6
|
export const RequestSchema = z.object({
|
|
7
|
+
locale: LocaleSchema,
|
|
7
8
|
modelId: z.string().uuid(),
|
|
8
9
|
userId: z.string().uuid().nullable().optional(),
|
|
9
10
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { InteriorDesignJobSchema } from '../models';
|
|
4
|
-
import { AttachedFileSchema } from '../../common';
|
|
4
|
+
import { AttachedFileSchema, LocaleSchema } from '../../common';
|
|
5
5
|
import { INTERIOR_DESIGN_JOB_SOURCE } from '../enums';
|
|
6
6
|
|
|
7
7
|
export namespace InteriorDesignCommand {
|
|
8
8
|
export const RequestSchema = z.object({
|
|
9
|
+
locale: LocaleSchema,
|
|
9
10
|
userId: z.string().uuid().nullable().optional(),
|
|
10
11
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
11
12
|
prompt: z.string(),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { LocaleSchema } from '../../common';
|
|
3
4
|
import { InteriorDesignJobParamsSchema, InteriorDesignJobSchema } from '../models';
|
|
4
5
|
|
|
5
6
|
export namespace RetryInteriorDesignJobCommand {
|
|
6
7
|
export const RequestSchema = z.object({
|
|
8
|
+
locale: LocaleSchema,
|
|
7
9
|
uuid: z.string().uuid(),
|
|
8
10
|
tokenReservationId: z.string().uuid(),
|
|
9
11
|
precalculatedPrice: z.number(),
|
|
@@ -3,10 +3,11 @@ import { ICommandResponseSchema } from '../../common/models/command-response.sch
|
|
|
3
3
|
import { MarketplaceCardJobSchema } from '../models';
|
|
4
4
|
import { TOOL_CONTENT_TYPE } from '../../tools';
|
|
5
5
|
import { TOOL_WORKSPACE_ITEM_SLOT } from '../../tool-workspace';
|
|
6
|
-
import { AttachedFileSchema } from '../../common';
|
|
6
|
+
import { AttachedFileSchema, LocaleSchema } from '../../common';
|
|
7
7
|
|
|
8
8
|
export namespace ExecuteMarketplaceCardCommand {
|
|
9
9
|
export const RequestSchema = z.object({
|
|
10
|
+
locale: LocaleSchema,
|
|
10
11
|
userId: z.string().uuid().nullable().optional(),
|
|
11
12
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
12
13
|
workspaceId: z.string().uuid().nullable().optional(),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
-
import { AttachedFileSchema } from '../../common';
|
|
3
|
+
import { AttachedFileSchema, LocaleSchema } from '../../common';
|
|
4
4
|
import { MarketplaceCardJobSchema } from '../models';
|
|
5
5
|
|
|
6
6
|
export namespace RetryMarketplaceCardJobCommand {
|
|
7
7
|
export const RequestSchema = z.object({
|
|
8
|
+
locale: LocaleSchema,
|
|
8
9
|
uuid: z.string().uuid(),
|
|
9
10
|
tokenReservationId: z.string().uuid(),
|
|
10
11
|
precalculatedPrice: z.number(),
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { LocaleSchema } from '../../common/models/locale.schema';
|
|
3
4
|
|
|
4
5
|
export namespace GenerateLyricsCommand {
|
|
5
6
|
export const RequestSchema = z.object({
|
|
7
|
+
locale: LocaleSchema,
|
|
6
8
|
userId: z.string().uuid().nullable().optional(),
|
|
7
9
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
8
10
|
userBalance: z.number(),
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { LocaleSchema } from '../../common/models/locale.schema';
|
|
3
4
|
import { MusicJobSchema } from '../models/music-job.schema';
|
|
4
5
|
import { MusicJobParamsSchema } from '../models';
|
|
5
6
|
|
|
6
7
|
export namespace GenerateMusicCommand {
|
|
7
8
|
export const RequestSchema = z.object({
|
|
9
|
+
locale: LocaleSchema,
|
|
8
10
|
userId: z.string().uuid().nullable().optional(),
|
|
9
11
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
10
12
|
modelId: z.string(),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { MusicJobParamsSchema, MusicJobSchema } from '../models/music-job.schema';
|
|
4
|
+
import { LocaleSchema } from '../../common';
|
|
4
5
|
|
|
5
6
|
export namespace RetryMusicJobCommand {
|
|
6
7
|
export const RequestSchema = z.object({
|
|
8
|
+
locale: LocaleSchema,
|
|
7
9
|
uuid: z.string().uuid(),
|
|
8
10
|
userId: z.string().uuid().nullable().optional(),
|
|
9
11
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema } from '../../common';
|
|
2
|
+
import { ICommandResponseSchema, LocaleSchema } from '../../common';
|
|
3
3
|
import { SLIDE_CONTENT_TYPE, SLIDE_LAYOUT } from '../enums';
|
|
4
4
|
import { SlideSchema } from '../models';
|
|
5
5
|
|
|
6
6
|
export namespace GenerateAndInsertSlideCommand {
|
|
7
7
|
export const RequestSchema = z.object({
|
|
8
|
+
locale: LocaleSchema,
|
|
8
9
|
userId: z.string().uuid().nullable().optional(),
|
|
9
10
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
10
11
|
userBalance: z.number(),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema } from '../../common';
|
|
2
|
+
import { ICommandResponseSchema, LocaleSchema } from '../../common';
|
|
3
3
|
import { PresentationSchema, PresentationTitlePageSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace GenerateSlidesCommand {
|
|
6
6
|
export const RequestSchema = z.object({
|
|
7
|
+
locale: LocaleSchema,
|
|
7
8
|
uuid: z.string().uuid(),
|
|
8
9
|
userId: z.string().uuid().nullable().optional(),
|
|
9
10
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { LocaleSchema } from '../../common/models/locale.schema';
|
|
3
4
|
import { SolvingEduTaskJobSchema } from '../models';
|
|
4
5
|
import { AttachedFileSchema } from '../../common';
|
|
5
6
|
|
|
6
7
|
export namespace RetrySolvingEduTaskJobCommand {
|
|
7
8
|
export const RequestSchema = z.object({
|
|
9
|
+
locale: LocaleSchema,
|
|
8
10
|
uuid: z.string().uuid(),
|
|
9
11
|
tokenReservationId: z.string().uuid().optional(),
|
|
10
12
|
precalculatedPrice: z.number().optional(),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { SolvingEduTaskJobSchema } from '../models';
|
|
4
|
-
import { AttachedFileSchema } from '../../common';
|
|
4
|
+
import { AttachedFileSchema, LocaleSchema } from '../../common';
|
|
5
5
|
|
|
6
6
|
export namespace SolvingEduTaskCommand {
|
|
7
7
|
export const RequestSchema = z.object({
|
|
8
|
+
locale: LocaleSchema,
|
|
8
9
|
userId: z.string().uuid().nullable().optional(),
|
|
9
10
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
10
11
|
prompt: z.string(),
|
|
@@ -2,9 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { VideoJobSchema } from '../models/video-job.schema';
|
|
4
4
|
import { VideoGenerationRequestParamsSchema } from '../models';
|
|
5
|
+
import { LocaleSchema } from '../../common';
|
|
5
6
|
|
|
6
7
|
export namespace RetryVideoJobCommand {
|
|
7
8
|
export const RequestSchema = z.object({
|
|
9
|
+
locale: LocaleSchema,
|
|
8
10
|
uuid: z.string().uuid(),
|
|
9
11
|
userId: z.string().uuid().nullable().optional(),
|
|
10
12
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { LocaleSchema } from '../../common/models/locale.schema';
|
|
3
4
|
import { TOOL_WORKSPACE_ITEM_SLOT } from '../../tool-workspace';
|
|
4
5
|
import { TOOL_CONTENT_TYPE } from '../../tools';
|
|
5
6
|
import { VideoJobSchema } from '../models/video-job.schema';
|
|
@@ -7,6 +8,7 @@ import { VideoGenerationRequestParamsSchema } from '../models';
|
|
|
7
8
|
|
|
8
9
|
export namespace VideoCommand {
|
|
9
10
|
export const RequestSchema = z.object({
|
|
11
|
+
locale: LocaleSchema,
|
|
10
12
|
userId: z.string().uuid().nullable().optional(),
|
|
11
13
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
12
14
|
workspaceId: z.string().uuid().nullable().optional(),
|