@purpleschool/gptbot-tools 0.1.9 → 0.1.11-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.
Files changed (55) hide show
  1. package/build/common/models/index.js +1 -0
  2. package/build/common/models/locale.schema.js +9 -0
  3. package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.js +1 -0
  4. package/build/image-editor/models/image-editor-model.schema.js +2 -0
  5. package/build/image-editor/queries/get-image-editor-config.query.js +3 -2
  6. package/build/image-generation/commands/image-generation-model/get-image-generation-model-by-uuid.command.js +1 -0
  7. package/build/image-generation/models/image-generation-model.schema.js +1 -0
  8. package/build/image-generation/queries/get-image-generation-config.query.js +3 -4
  9. package/build/interior-design/commands/interior-design-model/get-interior-design-model-by-uuid.command.js +1 -0
  10. package/build/interior-design/queries/get-interior-design-config.query.js +3 -2
  11. package/build/marketplace-card/queries/get-marketplace-card-config.query.js +1 -2
  12. package/build/music/commands/music-model/get-music-model-by-uuid.command.js +1 -0
  13. package/build/music/queries/get-music-config.query.js +3 -2
  14. package/build/paraphrase/queries/get-paraphrase-tool-config.query.js +3 -2
  15. package/build/presentation/models/slide-content.schema.js +181 -49
  16. package/build/presentation/queries/get-presentation-config.query.js +1 -0
  17. package/build/solving-edu-task/queries/get-solving-edu-task-config.query.js +1 -2
  18. package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.js +3 -2
  19. package/build/stt/queries/get-stt-config.query.js +3 -2
  20. package/build/tools/queries/find-all-tools.query.js +1 -0
  21. package/build/tools/queries/get-global-tools-config.query.js +3 -2
  22. package/build/tools/queries/get-tools-with-configs.query.js +3 -2
  23. package/build/video/commands/video-model/get-video-model-by-uuid.command.js +1 -0
  24. package/build/video/queries/get-video-config.query.js +3 -2
  25. package/build/video-editor/commands/video-editor-model/get-video-editor-model.command.js +1 -0
  26. package/build/video-editor/queries/get-video-editor-config.query.js +3 -4
  27. package/build/writer/queries/get-writer-config.query.js +1 -0
  28. package/common/models/index.ts +1 -0
  29. package/common/models/locale.schema.ts +11 -0
  30. package/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.ts +2 -1
  31. package/image-editor/models/image-editor-model.schema.ts +2 -0
  32. package/image-editor/queries/get-image-editor-config.query.ts +4 -1
  33. package/image-generation/commands/image-generation-model/get-image-generation-model-by-uuid.command.ts +2 -1
  34. package/image-generation/models/image-generation-model.schema.ts +1 -0
  35. package/image-generation/queries/get-image-generation-config.query.ts +2 -2
  36. package/interior-design/commands/interior-design-model/get-interior-design-model-by-uuid.command.ts +2 -1
  37. package/interior-design/queries/get-interior-design-config.query.ts +4 -1
  38. package/marketplace-card/queries/get-marketplace-card-config.query.ts +2 -2
  39. package/music/commands/music-model/get-music-model-by-uuid.command.ts +2 -1
  40. package/music/queries/get-music-config.query.ts +4 -1
  41. package/package.json +2 -1
  42. package/paraphrase/queries/get-paraphrase-tool-config.query.ts +4 -1
  43. package/presentation/models/slide-content.schema.ts +244 -50
  44. package/presentation/queries/get-presentation-config.query.ts +4 -1
  45. package/solving-edu-task/queries/get-solving-edu-task-config.query.ts +2 -2
  46. package/spell-corrector/queries/get-spell-corrector-tool-config.query.ts +4 -1
  47. package/stt/queries/get-stt-config.query.ts +4 -1
  48. package/tools/queries/find-all-tools.query.ts +4 -1
  49. package/tools/queries/get-global-tools-config.query.ts +4 -1
  50. package/tools/queries/get-tools-with-configs.query.ts +4 -1
  51. package/video/commands/video-model/get-video-model-by-uuid.command.ts +2 -1
  52. package/video/queries/get-video-config.query.ts +4 -1
  53. package/video-editor/commands/video-editor-model/get-video-editor-model.command.ts +2 -1
  54. package/video-editor/queries/get-video-editor-config.query.ts +2 -2
  55. package/writer/queries/get-writer-config.query.ts +4 -1
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./command-response.schema"), exports);
18
18
  __exportStar(require("./icon-variants.schema"), exports);
19
19
  __exportStar(require("./attached-file.schema"), exports);
20
+ __exportStar(require("./locale.schema"), exports);
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocaleRequestSchema = exports.LocaleSchema = void 0;
4
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
5
+ const zod_1 = require("zod");
6
+ exports.LocaleSchema = zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE);
7
+ exports.LocaleRequestSchema = zod_1.z.object({
8
+ locale: exports.LocaleSchema,
9
+ });
@@ -8,6 +8,7 @@ var GetImageEditorModelByUuidCommand;
8
8
  (function (GetImageEditorModelByUuidCommand) {
9
9
  GetImageEditorModelByUuidCommand.RequestSchema = zod_1.z.object({
10
10
  uuid: zod_1.z.string().uuid(),
11
+ locale: common_1.LocaleSchema,
11
12
  });
12
13
  GetImageEditorModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ImageEditorModelSchema);
13
14
  })(GetImageEditorModelByUuidCommand || (exports.GetImageEditorModelByUuidCommand = GetImageEditorModelByUuidCommand = {}));
@@ -27,6 +27,8 @@ exports.ImageEditorModelSchema = zod_1.z.object({
27
27
  title: zod_1.z.string(),
28
28
  description: zod_1.z.string(),
29
29
  aiModel: zod_1.z.string(),
30
+ isNew: zod_1.z.boolean(),
31
+ tierLabel: zod_1.z.string(),
30
32
  pricePerImage: zod_1.z.number(),
31
33
  order: zod_1.z.number(),
32
34
  status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetImageEditorConfigQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetImageEditorConfigQuery;
7
7
  (function (GetImageEditorConfigQuery) {
8
- GetImageEditorConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageEditorConfigSchema);
8
+ GetImageEditorConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetImageEditorConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ImageEditorConfigSchema);
9
10
  })(GetImageEditorConfigQuery || (exports.GetImageEditorConfigQuery = GetImageEditorConfigQuery = {}));
@@ -8,6 +8,7 @@ var GetImageGenerationModelByUuidCommand;
8
8
  (function (GetImageGenerationModelByUuidCommand) {
9
9
  GetImageGenerationModelByUuidCommand.RequestSchema = zod_1.z.object({
10
10
  uuid: zod_1.z.string().uuid(),
11
+ locale: common_1.LocaleSchema,
11
12
  });
12
13
  GetImageGenerationModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ImageGenerationModelSchema);
13
14
  })(GetImageGenerationModelByUuidCommand || (exports.GetImageGenerationModelByUuidCommand = GetImageGenerationModelByUuidCommand = {}));
@@ -35,6 +35,7 @@ exports.ImageGenerationModelSchema = zod_1.z.object({
35
35
  title: zod_1.z.string(),
36
36
  description: zod_1.z.string(),
37
37
  aiModel: zod_1.z.string(),
38
+ isNew: zod_1.z.boolean(),
38
39
  price: zod_1.z.number(),
39
40
  order: zod_1.z.number(),
40
41
  params: exports.ImageGenerationModelParamsSchema,
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetImageGenerationConfigQuery = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
6
5
  const models_1 = require("../models");
7
6
  var GetImageGenerationConfigQuery;
8
7
  (function (GetImageGenerationConfigQuery) {
9
- GetImageGenerationConfigQuery.RequestSchema = zod_1.z.object({});
10
- GetImageGenerationConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationConfigSchema);
8
+ GetImageGenerationConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetImageGenerationConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ImageGenerationConfigSchema);
11
10
  })(GetImageGenerationConfigQuery || (exports.GetImageGenerationConfigQuery = GetImageGenerationConfigQuery = {}));
@@ -8,6 +8,7 @@ var GetInteriorDesignModelByUuidCommand;
8
8
  (function (GetInteriorDesignModelByUuidCommand) {
9
9
  GetInteriorDesignModelByUuidCommand.RequestSchema = zod_1.z.object({
10
10
  uuid: zod_1.z.string().uuid(),
11
+ locale: common_1.LocaleSchema,
11
12
  });
12
13
  GetInteriorDesignModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.InteriorDesignModelSchema);
13
14
  })(GetInteriorDesignModelByUuidCommand || (exports.GetInteriorDesignModelByUuidCommand = GetInteriorDesignModelByUuidCommand = {}));
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetInteriorDesignConfigQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const interior_design_config_schema_1 = require("../models/interior-design-config.schema");
6
6
  var GetInteriorDesignConfigQuery;
7
7
  (function (GetInteriorDesignConfigQuery) {
8
- GetInteriorDesignConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(interior_design_config_schema_1.InteriorDesignConfigSchema);
8
+ GetInteriorDesignConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetInteriorDesignConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(interior_design_config_schema_1.InteriorDesignConfigSchema);
9
10
  })(GetInteriorDesignConfigQuery || (exports.GetInteriorDesignConfigQuery = GetInteriorDesignConfigQuery = {}));
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetMarketplaceCardConfigQuery = void 0;
4
- const zod_1 = require("zod");
5
4
  const common_1 = require("../../common");
6
5
  const models_1 = require("../models");
7
6
  var GetMarketplaceCardConfigQuery;
8
7
  (function (GetMarketplaceCardConfigQuery) {
9
- GetMarketplaceCardConfigQuery.RequestSchema = zod_1.z.object({});
8
+ GetMarketplaceCardConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
10
9
  GetMarketplaceCardConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MarketplaceCardConfigSchema);
11
10
  })(GetMarketplaceCardConfigQuery || (exports.GetMarketplaceCardConfigQuery = GetMarketplaceCardConfigQuery = {}));
@@ -8,6 +8,7 @@ var GetMusicModelByUuidCommand;
8
8
  (function (GetMusicModelByUuidCommand) {
9
9
  GetMusicModelByUuidCommand.RequestSchema = zod_1.z.object({
10
10
  uuid: zod_1.z.string().uuid(),
11
+ locale: common_1.LocaleSchema,
11
12
  });
12
13
  GetMusicModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MusicModelSchema);
13
14
  })(GetMusicModelByUuidCommand || (exports.GetMusicModelByUuidCommand = GetMusicModelByUuidCommand = {}));
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetMusicConfigQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetMusicConfigQuery;
7
7
  (function (GetMusicConfigQuery) {
8
- GetMusicConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.MusicConfigSchema);
8
+ GetMusicConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetMusicConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MusicConfigSchema);
9
10
  })(GetMusicConfigQuery || (exports.GetMusicConfigQuery = GetMusicConfigQuery = {}));
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetParaphraseToolConfigQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetParaphraseToolConfigQuery;
7
7
  (function (GetParaphraseToolConfigQuery) {
8
- GetParaphraseToolConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ParaphraseToolConfigSchema);
8
+ GetParaphraseToolConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetParaphraseToolConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ParaphraseToolConfigSchema);
9
10
  })(GetParaphraseToolConfigQuery || (exports.GetParaphraseToolConfigQuery = GetParaphraseToolConfigQuery = {}));
@@ -12,7 +12,17 @@ exports.ImageSlotSchema = zod_1.z.object({
12
12
  .string()
13
13
  .uuid()
14
14
  .describe('Generate a valid uuid for image slot, that will be used for future lookups'),
15
- prompt: zod_1.z.string().describe('Image prompt for slide'),
15
+ prompt: zod_1.z
16
+ .string()
17
+ .describe('Image generation prompt. MUST be written in ENGLISH regardless of the presentation language. ' +
18
+ 'AI image generators excel at: atmospheric scenes, landscapes, cityscapes, architecture, nature, abstract light and texture, anonymous silhouettes, artistic photography. ' +
19
+ 'AI fundamentally cannot render accurately: legible text on any surface, complex diagrams or flowcharts, data charts/graphs, specific product logos, clocks, precise mechanical parts. ' +
20
+ 'Choose scene types from the first category. Avoid anything in the second. ' +
21
+ 'Structure: [subject/scene] → [mood/atmosphere] → [lighting] → [visual style]. ' +
22
+ 'Evoke the emotional register of the slide — do not illustrate the topic literally. ' +
23
+ 'MODERATION: if the slide topic involves conflict, suffering, politics, or crime, redirect to abstract/atmospheric imagery (fog, ruins, empty landscapes) rather than depicting the subject directly — flagged prompts produce empty placeholders. ' +
24
+ 'GOOD: "A lone figure on an observation deck at dusk gazing over an illuminated city. Cinematic wide-angle, golden-hour light, photorealistic." ' +
25
+ 'BAD: "A bar chart showing quarterly growth. A robot at a laptop with code on the screen."'),
16
26
  });
17
27
  exports.IconSlotSchema = zod_1.z.object({
18
28
  uuid: zod_1.z
@@ -67,28 +77,49 @@ exports.ThankYouSlideDataSchema = zod_1.z.object({
67
77
  });
68
78
  exports.StructuredListSlideDataSchema = zod_1.z.object({
69
79
  contentType: zod_1.z.literal(enums_1.SLIDE_CONTENT_TYPE.STRUCTURED_LIST),
70
- title: zod_1.z.string().describe('Slide title, 2–6 words').max(150),
71
- description: zod_1.z.string().describe('One short framing sentence'),
80
+ title: zod_1.z
81
+ .string()
82
+ .describe('Slide headline — 2–4 words naming the group. A noun phrase, NOT a full sentence. Displayed in very large font on the left panel.')
83
+ .min(5)
84
+ .max(40),
85
+ description: zod_1.z
86
+ .string()
87
+ .describe('One framing sentence answering "What are these 4 things about?". Displayed in small text below the title on the left panel.')
88
+ .min(30)
89
+ .max(80),
72
90
  list: zod_1.z
73
91
  .array(zod_1.z.object({
74
- title: zod_1.z.string().describe('2–4 words, concrete'),
92
+ title: zod_1.z
93
+ .string()
94
+ .describe('2–4 concrete words. A noun phrase or short verb phrase. All 4 titles MUST be grammatically parallel. Displayed in bold next to a large number (01–04).')
95
+ .min(3)
96
+ .max(30),
75
97
  description: zod_1.z
76
98
  .string()
77
- .describe("One clear short framing sentence. DON'T CUT THE TEXT SHORT MID WORD/SENTENCE!. Generate less content if that happened")
99
+ .describe('ONE complete sentence that expands on the title with a specific fact or benefit. NEVER just restate the title. NEVER cut short mid-word or mid-sentence. All 4 descriptions must be roughly equal in length.')
78
100
  .min(50)
79
- .max(120),
101
+ .max(100),
80
102
  }))
81
103
  .length(4),
82
104
  version: zod_1.z.literal(1),
83
105
  });
84
106
  exports.TextSlideDataSchema = zod_1.z.object({
85
107
  contentType: zod_1.z.literal(enums_1.SLIDE_CONTENT_TYPE.TEXT),
86
- title: zod_1.z.string().describe('Slide title in about 6 words').min(10).max(150),
108
+ title: zod_1.z
109
+ .string()
110
+ .describe('Slide headline rendered in very large bold font. Keep to 3–7 words (max 70 characters). It should name the topic or thesis — not summarise all content.')
111
+ .min(10)
112
+ .max(70),
87
113
  description: zod_1.z
88
114
  .string()
89
- .describe("Fairly long textual description of the point presented in the title. A couple of paragraphs. Consider maximum amount of text to be 600 characters. Don't cut the text short.")
115
+ .describe('Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length 300–800 characters. ' +
116
+ 'Use **bold** to highlight 1–3 key terms per paragraph (NOT entire sentences). ' +
117
+ 'Use *italics* for definitions, counter-points, or light emphasis (1 per paragraph max). ' +
118
+ 'NO bullet points, NO markdown headers, NO numbered lists. ' +
119
+ 'Each paragraph covers ONE focused idea: e.g. context → main argument → implication. ' +
120
+ 'Do NOT start consecutive paragraphs with the same word. Do NOT cut text short mid-sentence.')
90
121
  .min(300)
91
- .max(600),
122
+ .max(800),
92
123
  version: zod_1.z.literal(1),
93
124
  });
94
125
  exports.ContentsSlideDataSchema = zod_1.z.object({
@@ -110,43 +141,92 @@ exports.ContentsSlideDataSchema = zod_1.z.object({
110
141
  exports.ImageSlideDataSchema = zod_1.z
111
142
  .object({
112
143
  contentType: zod_1.z.literal(enums_1.SLIDE_CONTENT_TYPE.TEXT_WITH_IMAGE),
113
- title: zod_1.z.string().describe('Slide title in about 6 words').min(10).max(200),
114
- description: zod_1.z
144
+ title: zod_1.z
115
145
  .string()
116
- .describe("Text that elaborates on the title and doesn't just describe the image")
146
+ .describe('Slide headline rendered in very large bold font on the LEFT column. Keep to 3–7 words (max 70 characters). Aim for under 50 characters to avoid overflow. A noun phrase or short declarative phrase — NOT a full sentence.')
117
147
  .min(10)
148
+ .max(70),
149
+ description: zod_1.z
150
+ .string()
151
+ .describe('Expository prose in 2 paragraphs separated by \\n\\n (double newline). Total length 150–500 characters. ' +
152
+ 'Use **bold** for 1–2 key terms per paragraph (NOT entire sentences). ' +
153
+ 'Use *italics* for definitions or emphasis at most once per paragraph. ' +
154
+ 'NO bullet points, NO headers, NO numbered lists. ' +
155
+ 'Each paragraph covers ONE focused idea. NEVER reference or describe the image in the text. ' +
156
+ 'The image provides visual atmosphere — the text must stand alone as complete, readable prose.')
157
+ .min(150)
118
158
  .max(500),
119
159
  imageSlot: exports.ImageSlotSchema,
120
160
  version: zod_1.z.literal(1),
121
161
  })
122
- .describe('Slide that contains a title, description of the title');
162
+ .describe('Slide with a large title and prose description on the left, and a full-bleed supporting image on the right.');
123
163
  exports.SectionBreakSlideDataSchema = zod_1.z.object({
124
164
  contentType: zod_1.z.literal(enums_1.SLIDE_CONTENT_TYPE.SECTION_BREAK),
125
- title: zod_1.z.string().describe('Slide title in about 6 words').min(10).max(200),
126
- description: zod_1.z.string().describe('Description of the slide in about 6 words').min(10).max(200),
165
+ title: zod_1.z
166
+ .string()
167
+ .describe('The section name — a clean noun phrase of 3–6 words that names the thematic block which follows. ' +
168
+ 'NEVER prefix with "Раздел:", "Section:", "Part:", "Глава:", or any structural label. ' +
169
+ 'NEVER include numbers. Just the name itself. ' +
170
+ 'GOOD: "Технологические достижения". BAD: "Раздел 2: Технологические достижения".')
171
+ .min(5)
172
+ .max(60),
173
+ description: zod_1.z
174
+ .string()
175
+ .describe('One sentence (up to 100 characters) that briefly hints at the content of the upcoming section. ' +
176
+ 'Should complement the title without repeating it. No markdown, no labels.')
177
+ .min(10)
178
+ .max(120),
127
179
  version: zod_1.z.literal(1),
128
180
  });
129
181
  exports.TableSlideDataSchema = zod_1.z.object({
130
182
  contentType: zod_1.z.literal(enums_1.SLIDE_CONTENT_TYPE.TABLE),
131
183
  title: zod_1.z
132
184
  .string()
133
- .describe('Slide title and table title at the same time in a couple of words')
185
+ .describe('Table name 2–4 words rendered as large bold heading above the table. ' +
186
+ 'Doubles as both the slide title and the table heading. Keep concise.')
187
+ .min(5)
188
+ .max(55),
189
+ description: zod_1.z
190
+ .string()
191
+ .describe('One short sentence (max 80 characters) describing what the table shows. ' +
192
+ 'Rendered in small gray text below the title. No markdown.')
134
193
  .min(10)
135
- .max(200),
136
- description: zod_1.z.string().describe('Description of the table represents').min(10).max(200),
194
+ .max(100),
137
195
  table: zod_1.z.object({
138
196
  columnHeaders: zod_1.z
139
- .array(zod_1.z.string().min(1).max(50))
197
+ .array(zod_1.z
198
+ .string()
140
199
  .min(1)
141
- .max(10)
142
- .describe('Array of column header labels'),
200
+ .max(20)
201
+ .describe('Column label. Keep SHORT — 1–3 words. Include units here (e.g., "Сумма, ₽"), not in cells. ' +
202
+ 'When hasRowHeaders is true, the first header should be a single space " " or a short category label.'))
203
+ .min(2)
204
+ .max(5)
205
+ .describe('Column header labels. MAXIMUM 5 columns total. Recommended 3–4 data columns. ' +
206
+ 'More columns will overflow the slide — NEVER exceed 5.'),
143
207
  rows: zod_1.z
144
- .array(zod_1.z.array(zod_1.z.string().min(1).max(75)))
145
- .min(3)
208
+ .array(zod_1.z
209
+ .array(zod_1.z
210
+ .string()
211
+ .min(1)
212
+ .max(40)
213
+ .describe('Cell content. NUMERIC tables: numbers only (e.g., "1 200", "85%"). ' +
214
+ 'TEXTUAL tables: 1–3 words maximum — keywords or short phrases ONLY, NEVER full sentences. ' +
215
+ 'Row header cells (first cell when hasRowHeaders=true): category label, max 22 characters.'))
216
+ .describe('One row. Cell count MUST equal columnHeaders length exactly.'))
217
+ .min(2)
146
218
  .max(4)
147
- .describe('Table rows; each row must have exactly the same number of cells as columnHeaders'),
148
- hasRowHeaders: zod_1.z.boolean().describe('If table needs special row headers, set this to true'),
149
- hasSummaryRow: zod_1.z.boolean().describe('If table needs a summary row, set this to true'),
219
+ .describe('Table rows. Max 4 rows total. ' +
220
+ 'When hasSummaryRow is true, the LAST row is the summary row — so at most 3 regular rows + 1 summary = 4 total. ' +
221
+ 'NEVER exceed 4 rows.'),
222
+ hasRowHeaders: zod_1.z
223
+ .boolean()
224
+ .describe('True when the first cell of each row is a descriptive label or category (pivot table). ' +
225
+ 'False for plain data tables where all cells are equivalent data.'),
226
+ hasSummaryRow: zod_1.z
227
+ .boolean()
228
+ .describe('True when the last row contains totals, averages, or aggregated values. ' +
229
+ 'That summary row must be the last element of the rows array.'),
150
230
  }),
151
231
  version: zod_1.z.literal(1),
152
232
  });
@@ -154,61 +234,113 @@ exports.TableSlideDataSchema = zod_1.z.object({
154
234
  exports.BarChartSlideDataSchema = zod_1.z.object({
155
235
  type: zod_1.z.literal(SLIDE_CHART_TYPE.BAR),
156
236
  categories: zod_1.z
157
- .array(zod_1.z.string())
158
- .min(1)
159
- .max(12)
160
- .describe('Category labels (e.g., months, products, regions)'),
237
+ .array(zod_1.z.string().min(1).max(20))
238
+ .min(3)
239
+ .max(10)
240
+ .describe('Category labels (e.g., months, product names, departments). ' +
241
+ 'Recommended: 4–8 items. Keep each label SHORT — 1–3 words, max 15 characters. ' +
242
+ 'Categories work best when naturally ordered: time periods, rankings, or comparable groups.'),
161
243
  series: zod_1.z
162
244
  .array(zod_1.z.object({
163
245
  name: zod_1.z
164
246
  .string()
165
- .describe('Series name for legend. Try to include measurements if needed'),
166
- data: zod_1.z.array(zod_1.z.number()).describe('Values corresponding to categories'),
247
+ .max(40)
248
+ .describe('Series name shown in the chart legend. Do NOT include units here — units belong in the unit field. ' +
249
+ 'GOOD: "Рост продаж". BAD: "Рост продаж (%)" or "Выручка (₽)".'),
250
+ data: zod_1.z
251
+ .array(zod_1.z.number())
252
+ .min(3)
253
+ .describe('Numeric values corresponding to categories. ' +
254
+ 'MUST have EXACTLY the same number of values as categories — mismatch will break the chart. ' +
255
+ 'Use round numbers or simple approximations. NEVER hallucinate precise figures. ' +
256
+ 'Values should show meaningful variation — avoid all bars being the same height.'),
167
257
  type: zod_1.z
168
258
  .number()
169
259
  .min(0)
170
260
  .max(11)
171
- .describe('Series type. Used to discriminate colors when applying theme'),
261
+ .describe('Color index from the theme palette. ALWAYS use 0 (primary blue). Never change this value.'),
172
262
  }))
173
263
  .min(1)
174
264
  .max(1)
175
- .describe('Data series for the chart. Only one series is supported'),
176
- yAxisLabel: zod_1.z.string().max(40).optional().describe('Y-axis label'),
177
- unit: zod_1.z.string().max(10).optional().describe('Unit symbol (%, $, etc.)'),
265
+ .describe('Data series. Only ONE series is supported. Never add more than one.'),
266
+ yAxisLabel: zod_1.z
267
+ .string()
268
+ .max(30)
269
+ .optional()
270
+ .describe('Y-axis label. Include ONLY when the axis needs a descriptor that is not already covered by the unit field. ' +
271
+ 'GOOD use: "Количество студентов" (when there is no unit symbol). ' +
272
+ 'OMIT when unit is set (e.g., "%", "₽") — the unit already contextualises the values.'),
273
+ unit: zod_1.z
274
+ .string()
275
+ .max(10)
276
+ .optional()
277
+ .describe('Unit symbol displayed with each bar value (e.g., "%", "₽", "шт.", "млн"). ' +
278
+ 'ALWAYS include when values represent percentages, currency, or any measurable quantity with a unit. ' +
279
+ 'Omit only for dimensionless counts that are self-explanatory (e.g., raw ranking scores without a fixed scale).'),
178
280
  version: zod_1.z.literal(1),
179
281
  });
180
282
  exports.ChartSlideDataSchema = zod_1.z.object({
181
283
  contentType: zod_1.z.literal(enums_1.SLIDE_CONTENT_TYPE.CHART),
182
- title: zod_1.z.string().describe('Slide title in about 2-6 words').max(100),
183
- description: zod_1.z.string().describe("Information on slide's topic").max(600),
284
+ title: zod_1.z
285
+ .string()
286
+ .describe('Chart name — 2–4 words rendered as large bold heading on the LEFT panel of the slide. ' +
287
+ 'Keep short: the left panel is narrow and the title font is very large.')
288
+ .min(5)
289
+ .max(50),
290
+ description: zod_1.z
291
+ .string()
292
+ .describe('1–2 sentences (max 120 characters) explaining what the chart shows. ' +
293
+ 'Rendered in small gray text below the title on the LEFT panel. No markdown.')
294
+ .min(10)
295
+ .max(150),
184
296
  chart: zod_1.z.discriminatedUnion('type', [exports.BarChartSlideDataSchema]),
185
297
  version: zod_1.z.literal(1),
186
298
  });
187
299
  exports.TimelineSlideDataSchema = zod_1.z.object({
188
300
  contentType: zod_1.z.literal(enums_1.SLIDE_CONTENT_TYPE.TIMELINE),
189
- title: zod_1.z.string().describe('Slide title in about 6 words').min(10).max(150),
190
- description: zod_1.z.string().describe('Brief context for the timeline').min(10).max(200),
301
+ title: zod_1.z
302
+ .string()
303
+ .describe('Timeline name — 2–5 words, rendered as large bold heading above the timeline. ' +
304
+ 'Names the subject or scope of the chronological sequence.')
305
+ .min(5)
306
+ .max(65),
307
+ description: zod_1.z
308
+ .string()
309
+ .describe('One sentence (max 100 characters) providing context for the timeline. ' +
310
+ 'Rendered in small gray text below the title. No markdown.')
311
+ .min(10)
312
+ .max(120),
191
313
  timeline: zod_1.z.object({
192
314
  events: zod_1.z
193
315
  .array(zod_1.z.object({
194
316
  date: zod_1.z
195
317
  .string()
196
- .describe('Date or time period label. MUST be general/approximate if exact date unknown (e.g., "Early 2020s", "Mid-1990s", "Recent years")')
318
+ .describe('Temporal label displayed inside the arrow/chevron shape at the top of each column. ' +
319
+ 'MUST be SHORT — max 20 characters — to fit inside the arrow. ' +
320
+ 'Use a year ("2015"), a range ("2010–2015"), a quarter ("Q1 2023"), ' +
321
+ 'an approximate period ("Early 2020s", "Середина 2010-х"), ' +
322
+ 'or a phase label ("Этап 1", "Запуск") for process timelines. ' +
323
+ 'NEVER fabricate specific dates you are not certain about.')
197
324
  .min(2)
198
- .max(50),
325
+ .max(25),
199
326
  title: zod_1.z
200
327
  .string()
201
- .describe('Event title. Prefer 2 words, max 3 words. Keep it short and punchy.')
202
- .min(5)
203
- .max(60),
328
+ .describe('Event name in bold below the arrow. 2–3 words maximum. ' +
329
+ 'Short and punchy — the column is narrow, long titles wrap to many lines. ' +
330
+ 'GOOD: "Первый запуск", "Выход на рынок". BAD: "Успешный выход компании на международный рынок".')
331
+ .min(3)
332
+ .max(35),
204
333
  description: zod_1.z
205
334
  .string()
206
- .describe('Brief description of the event or milestone')
335
+ .describe('Brief description below the event title. 1–2 sentences, max 100 characters. ' +
336
+ 'The column is narrow — text wraps to ~5 lines at this limit. ' +
337
+ 'Do NOT exceed 100 characters or the description will overflow off the slide.')
207
338
  .min(20)
208
- .max(150),
339
+ .max(110),
209
340
  }))
210
- .length(4)
211
- .describe('Timeline must contain exactly 4 chronological events'),
341
+ .length(5)
342
+ .describe('Exactly 5 chronological events in sequential order (oldest → newest). ' +
343
+ 'The template renders exactly 5 equal columns — NEVER generate fewer or more.'),
212
344
  }),
213
345
  version: zod_1.z.literal(1),
214
346
  });
@@ -5,5 +5,6 @@ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetPresentationConfigQuery;
7
7
  (function (GetPresentationConfigQuery) {
8
+ GetPresentationConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
8
9
  GetPresentationConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.PresentationConfigSchema);
9
10
  })(GetPresentationConfigQuery || (exports.GetPresentationConfigQuery = GetPresentationConfigQuery = {}));
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetSolvingEduTaskConfigQuery = void 0;
4
- const zod_1 = require("zod");
5
4
  const common_1 = require("../../common");
6
5
  const models_1 = require("../models");
7
6
  var GetSolvingEduTaskConfigQuery;
8
7
  (function (GetSolvingEduTaskConfigQuery) {
9
- GetSolvingEduTaskConfigQuery.RequestSchema = zod_1.z.object({});
8
+ GetSolvingEduTaskConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
10
9
  GetSolvingEduTaskConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.SolvingEduTaskConfigSchema);
11
10
  })(GetSolvingEduTaskConfigQuery || (exports.GetSolvingEduTaskConfigQuery = GetSolvingEduTaskConfigQuery = {}));
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetSpellCorrectorToolConfigQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetSpellCorrectorToolConfigQuery;
7
7
  (function (GetSpellCorrectorToolConfigQuery) {
8
- GetSpellCorrectorToolConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.SpellCorrectorToolConfigSchema);
8
+ GetSpellCorrectorToolConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetSpellCorrectorToolConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.SpellCorrectorToolConfigSchema);
9
10
  })(GetSpellCorrectorToolConfigQuery || (exports.GetSpellCorrectorToolConfigQuery = GetSpellCorrectorToolConfigQuery = {}));
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetSTTConfigQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetSTTConfigQuery;
7
7
  (function (GetSTTConfigQuery) {
8
- GetSTTConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.STTConfigSchema);
8
+ GetSTTConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetSTTConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.STTConfigSchema);
9
10
  })(GetSTTConfigQuery || (exports.GetSTTConfigQuery = GetSTTConfigQuery = {}));
@@ -6,5 +6,6 @@ const models_1 = require("../models");
6
6
  const common_1 = require("../../common");
7
7
  var FindAllToolsQuery;
8
8
  (function (FindAllToolsQuery) {
9
+ FindAllToolsQuery.RequestSchema = common_1.LocaleRequestSchema;
9
10
  FindAllToolsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.array(models_1.ToolSchema));
10
11
  })(FindAllToolsQuery || (exports.FindAllToolsQuery = FindAllToolsQuery = {}));
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetGlobalToolsConfigQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetGlobalToolsConfigQuery;
7
7
  (function (GetGlobalToolsConfigQuery) {
8
- GetGlobalToolsConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.GlobalToolsConfigSchema);
8
+ GetGlobalToolsConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetGlobalToolsConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GlobalToolsConfigSchema);
9
10
  })(GetGlobalToolsConfigQuery || (exports.GetGlobalToolsConfigQuery = GetGlobalToolsConfigQuery = {}));
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetToolsWithConfigsQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetToolsWithConfigsQuery;
7
7
  (function (GetToolsWithConfigsQuery) {
8
- GetToolsWithConfigsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ToolsWithConfigsSchema);
8
+ GetToolsWithConfigsQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetToolsWithConfigsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ToolsWithConfigsSchema);
9
10
  })(GetToolsWithConfigsQuery || (exports.GetToolsWithConfigsQuery = GetToolsWithConfigsQuery = {}));
@@ -8,6 +8,7 @@ var GetVideoModelByUuidCommand;
8
8
  (function (GetVideoModelByUuidCommand) {
9
9
  GetVideoModelByUuidCommand.RequestSchema = zod_1.z.object({
10
10
  uuid: zod_1.z.string().uuid(),
11
+ locale: common_1.LocaleSchema,
11
12
  });
12
13
  GetVideoModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoModelSchema);
13
14
  })(GetVideoModelByUuidCommand || (exports.GetVideoModelByUuidCommand = GetVideoModelByUuidCommand = {}));
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetVideoConfigQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetVideoConfigQuery;
7
7
  (function (GetVideoConfigQuery) {
8
- GetVideoConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.VideoConfigSchema);
8
+ GetVideoConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetVideoConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoConfigSchema);
9
10
  })(GetVideoConfigQuery || (exports.GetVideoConfigQuery = GetVideoConfigQuery = {}));
@@ -8,6 +8,7 @@ var GetVideoEditorModelByUuidCommand;
8
8
  (function (GetVideoEditorModelByUuidCommand) {
9
9
  GetVideoEditorModelByUuidCommand.RequestSchema = zod_1.z.object({
10
10
  uuid: zod_1.z.string().uuid(),
11
+ locale: common_1.LocaleSchema,
11
12
  });
12
13
  GetVideoEditorModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoEditorModelSchema);
13
14
  })(GetVideoEditorModelByUuidCommand || (exports.GetVideoEditorModelByUuidCommand = GetVideoEditorModelByUuidCommand = {}));
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetVideoEditorConfigQuery = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
6
5
  const models_1 = require("../models");
7
6
  var GetVideoEditorConfigQuery;
8
7
  (function (GetVideoEditorConfigQuery) {
9
- GetVideoEditorConfigQuery.RequestSchema = zod_1.z.object({});
10
- GetVideoEditorConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.VideoEditorConfigSchema);
8
+ GetVideoEditorConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetVideoEditorConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoEditorConfigSchema);
11
10
  })(GetVideoEditorConfigQuery || (exports.GetVideoEditorConfigQuery = GetVideoEditorConfigQuery = {}));