@purpleschool/gptbot 0.20.15-stage-2 → 0.20.16-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.
@@ -54,6 +54,10 @@ export declare namespace ExportPresentationAsPptxCommand {
54
54
  }, z.core.$strip>, z.ZodObject<{
55
55
  type: z.ZodLiteral<import("../../..").PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
56
56
  customShapeType: z.ZodOptional<z.ZodEnum<typeof import("../../..").PPTX_CUSTOM_SHAPE_TYPE>>;
57
+ points: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ x: z.ZodNumber;
59
+ y: z.ZodNumber;
60
+ }, z.core.$strip>>>;
57
61
  position: z.ZodObject<{
58
62
  height: z.ZodNumber;
59
63
  width: z.ZodNumber;
@@ -61,6 +65,12 @@ export declare namespace ExportPresentationAsPptxCommand {
61
65
  left: z.ZodNumber;
62
66
  }, z.core.$strip>;
63
67
  borderRadius: z.ZodNumber;
68
+ rotate: z.ZodOptional<z.ZodNumber>;
69
+ border: z.ZodOptional<z.ZodObject<{
70
+ color: z.ZodString;
71
+ px: z.ZodNumber;
72
+ transparency: z.ZodOptional<z.ZodNumber>;
73
+ }, z.core.$strip>>;
64
74
  fill: z.ZodOptional<z.ZodObject<{
65
75
  color: z.ZodString;
66
76
  type: z.ZodEnum<typeof import("../../..").PPTX_FILL_TYPE>;
@@ -50,6 +50,7 @@ export declare namespace FindPresentationByUuidCommand {
50
50
  content: z.ZodDiscriminatedUnion<[z.ZodObject<{
51
51
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.COVER>;
52
52
  title: z.ZodString;
53
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
54
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
54
55
  label: z.ZodString;
55
56
  value: z.ZodString;
@@ -84,6 +85,10 @@ export declare namespace FindPresentationByUuidCommand {
84
85
  pageNumber: z.ZodNumber;
85
86
  title: z.ZodString;
86
87
  }, z.core.$strip>>;
88
+ imageSlot: z.ZodOptional<z.ZodObject<{
89
+ uuid: z.ZodUUID;
90
+ prompt: z.ZodString;
91
+ }, z.core.$strip>>;
87
92
  version: z.ZodLiteral<1>;
88
93
  }, z.core.$strip>, z.ZodObject<{
89
94
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -102,6 +107,7 @@ export declare namespace FindPresentationByUuidCommand {
102
107
  }, z.core.$strip>, z.ZodObject<{
103
108
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.THANK_YOU>;
104
109
  title: z.ZodString;
110
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
111
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
106
112
  label: z.ZodString;
107
113
  value: z.ZodString;
@@ -22,6 +22,7 @@ export declare namespace GenerateAndInsertSlideCommand {
22
22
  content: z.ZodDiscriminatedUnion<[z.ZodObject<{
23
23
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
24
24
  title: z.ZodString;
25
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
26
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
27
  label: z.ZodString;
27
28
  value: z.ZodString;
@@ -56,6 +57,10 @@ export declare namespace GenerateAndInsertSlideCommand {
56
57
  pageNumber: z.ZodNumber;
57
58
  title: z.ZodString;
58
59
  }, z.core.$strip>>;
60
+ imageSlot: z.ZodOptional<z.ZodObject<{
61
+ uuid: z.ZodUUID;
62
+ prompt: z.ZodString;
63
+ }, z.core.$strip>>;
59
64
  version: z.ZodLiteral<1>;
60
65
  }, z.core.$strip>, z.ZodObject<{
61
66
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -74,6 +79,7 @@ export declare namespace GenerateAndInsertSlideCommand {
74
79
  }, z.core.$strip>, z.ZodObject<{
75
80
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
76
81
  title: z.ZodString;
82
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
83
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
78
84
  label: z.ZodString;
79
85
  value: z.ZodString;
@@ -10,6 +10,7 @@ export declare namespace UpdatePresentationSlidesCommand {
10
10
  content: z.ZodDiscriminatedUnion<[z.ZodObject<{
11
11
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.COVER>;
12
12
  title: z.ZodString;
13
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
14
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
15
  label: z.ZodString;
15
16
  value: z.ZodString;
@@ -44,6 +45,10 @@ export declare namespace UpdatePresentationSlidesCommand {
44
45
  pageNumber: z.ZodNumber;
45
46
  title: z.ZodString;
46
47
  }, z.core.$strip>>;
48
+ imageSlot: z.ZodOptional<z.ZodObject<{
49
+ uuid: z.ZodUUID;
50
+ prompt: z.ZodString;
51
+ }, z.core.$strip>>;
47
52
  version: z.ZodLiteral<1>;
48
53
  }, z.core.$strip>, z.ZodObject<{
49
54
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -62,6 +67,7 @@ export declare namespace UpdatePresentationSlidesCommand {
62
67
  }, z.core.$strip>, z.ZodObject<{
63
68
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.THANK_YOU>;
64
69
  title: z.ZodString;
70
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
71
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
66
72
  label: z.ZodString;
67
73
  value: z.ZodString;
@@ -10,6 +10,7 @@ export declare namespace UpdateSlideCommand {
10
10
  content: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11
11
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.COVER>;
12
12
  title: z.ZodString;
13
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
14
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
15
  label: z.ZodString;
15
16
  value: z.ZodString;
@@ -44,6 +45,10 @@ export declare namespace UpdateSlideCommand {
44
45
  pageNumber: z.ZodNumber;
45
46
  title: z.ZodString;
46
47
  }, z.core.$strip>>;
48
+ imageSlot: z.ZodOptional<z.ZodObject<{
49
+ uuid: z.ZodUUID;
50
+ prompt: z.ZodString;
51
+ }, z.core.$strip>>;
47
52
  version: z.ZodLiteral<1>;
48
53
  }, z.core.$strip>, z.ZodObject<{
49
54
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -62,6 +67,7 @@ export declare namespace UpdateSlideCommand {
62
67
  }, z.core.$strip>, z.ZodObject<{
63
68
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.THANK_YOU>;
64
69
  title: z.ZodString;
70
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
71
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
66
72
  label: z.ZodString;
67
73
  value: z.ZodString;
@@ -126,6 +132,7 @@ export declare namespace UpdateSlideCommand {
126
132
  content: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
127
133
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.COVER>;
128
134
  title: z.ZodString;
135
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
136
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
130
137
  label: z.ZodString;
131
138
  value: z.ZodString;
@@ -160,6 +167,10 @@ export declare namespace UpdateSlideCommand {
160
167
  pageNumber: z.ZodNumber;
161
168
  title: z.ZodString;
162
169
  }, z.core.$strip>>;
170
+ imageSlot: z.ZodOptional<z.ZodObject<{
171
+ uuid: z.ZodUUID;
172
+ prompt: z.ZodString;
173
+ }, z.core.$strip>>;
163
174
  version: z.ZodLiteral<1>;
164
175
  }, z.core.$strip>, z.ZodObject<{
165
176
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -178,6 +189,7 @@ export declare namespace UpdateSlideCommand {
178
189
  }, z.core.$strip>, z.ZodObject<{
179
190
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.THANK_YOU>;
180
191
  title: z.ZodString;
192
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
193
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
182
194
  label: z.ZodString;
183
195
  value: z.ZodString;
@@ -246,6 +258,7 @@ export declare namespace UpdateSlideCommand {
246
258
  content: z.ZodDiscriminatedUnion<[z.ZodObject<{
247
259
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.COVER>;
248
260
  title: z.ZodString;
261
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
262
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
250
263
  label: z.ZodString;
251
264
  value: z.ZodString;
@@ -280,6 +293,10 @@ export declare namespace UpdateSlideCommand {
280
293
  pageNumber: z.ZodNumber;
281
294
  title: z.ZodString;
282
295
  }, z.core.$strip>>;
296
+ imageSlot: z.ZodOptional<z.ZodObject<{
297
+ uuid: z.ZodUUID;
298
+ prompt: z.ZodString;
299
+ }, z.core.$strip>>;
283
300
  version: z.ZodLiteral<1>;
284
301
  }, z.core.$strip>, z.ZodObject<{
285
302
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -298,6 +315,7 @@ export declare namespace UpdateSlideCommand {
298
315
  }, z.core.$strip>, z.ZodObject<{
299
316
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.THANK_YOU>;
300
317
  title: z.ZodString;
318
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
319
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
302
320
  label: z.ZodString;
303
321
  value: z.ZodString;
@@ -49,7 +49,9 @@ export declare enum PPTX_SHADOW_TYPE {
49
49
  NONE = "none"
50
50
  }
51
51
  export declare enum PPTX_CUSTOM_SHAPE_TYPE {
52
- ROUND_RECT = "roundRect"
52
+ ROUND_RECT = "roundRect",
53
+ ELLIPSE = "ellipse",
54
+ POLYGON = "polygon"
53
55
  }
54
56
  export declare const PPTXShadowSchema: z.ZodObject<{
55
57
  type: z.ZodEnum<typeof PPTX_SHADOW_TYPE>;
@@ -154,6 +156,10 @@ export type PPTXPictureBox = z.infer<typeof PPTXPictureBoxSchema>;
154
156
  export declare const PPTXCustomShapeSchema: z.ZodObject<{
155
157
  type: z.ZodLiteral<PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
156
158
  customShapeType: z.ZodOptional<z.ZodEnum<typeof PPTX_CUSTOM_SHAPE_TYPE>>;
159
+ points: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
+ x: z.ZodNumber;
161
+ y: z.ZodNumber;
162
+ }, z.core.$strip>>>;
157
163
  position: z.ZodObject<{
158
164
  height: z.ZodNumber;
159
165
  width: z.ZodNumber;
@@ -161,6 +167,12 @@ export declare const PPTXCustomShapeSchema: z.ZodObject<{
161
167
  left: z.ZodNumber;
162
168
  }, z.core.$strip>;
163
169
  borderRadius: z.ZodNumber;
170
+ rotate: z.ZodOptional<z.ZodNumber>;
171
+ border: z.ZodOptional<z.ZodObject<{
172
+ color: z.ZodString;
173
+ px: z.ZodNumber;
174
+ transparency: z.ZodOptional<z.ZodNumber>;
175
+ }, z.core.$strip>>;
164
176
  fill: z.ZodOptional<z.ZodObject<{
165
177
  color: z.ZodString;
166
178
  type: z.ZodEnum<typeof PPTX_FILL_TYPE>;
@@ -344,6 +356,10 @@ export declare const PPTXShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
344
356
  }, z.core.$strip>, z.ZodObject<{
345
357
  type: z.ZodLiteral<PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
346
358
  customShapeType: z.ZodOptional<z.ZodEnum<typeof PPTX_CUSTOM_SHAPE_TYPE>>;
359
+ points: z.ZodOptional<z.ZodArray<z.ZodObject<{
360
+ x: z.ZodNumber;
361
+ y: z.ZodNumber;
362
+ }, z.core.$strip>>>;
347
363
  position: z.ZodObject<{
348
364
  height: z.ZodNumber;
349
365
  width: z.ZodNumber;
@@ -351,6 +367,12 @@ export declare const PPTXShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
351
367
  left: z.ZodNumber;
352
368
  }, z.core.$strip>;
353
369
  borderRadius: z.ZodNumber;
370
+ rotate: z.ZodOptional<z.ZodNumber>;
371
+ border: z.ZodOptional<z.ZodObject<{
372
+ color: z.ZodString;
373
+ px: z.ZodNumber;
374
+ transparency: z.ZodOptional<z.ZodNumber>;
375
+ }, z.core.$strip>>;
354
376
  fill: z.ZodOptional<z.ZodObject<{
355
377
  color: z.ZodString;
356
378
  type: z.ZodEnum<typeof PPTX_FILL_TYPE>;
@@ -498,6 +520,10 @@ export declare const PPTXSlideSchema: z.ZodObject<{
498
520
  }, z.core.$strip>, z.ZodObject<{
499
521
  type: z.ZodLiteral<PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
500
522
  customShapeType: z.ZodOptional<z.ZodEnum<typeof PPTX_CUSTOM_SHAPE_TYPE>>;
523
+ points: z.ZodOptional<z.ZodArray<z.ZodObject<{
524
+ x: z.ZodNumber;
525
+ y: z.ZodNumber;
526
+ }, z.core.$strip>>>;
501
527
  position: z.ZodObject<{
502
528
  height: z.ZodNumber;
503
529
  width: z.ZodNumber;
@@ -505,6 +531,12 @@ export declare const PPTXSlideSchema: z.ZodObject<{
505
531
  left: z.ZodNumber;
506
532
  }, z.core.$strip>;
507
533
  borderRadius: z.ZodNumber;
534
+ rotate: z.ZodOptional<z.ZodNumber>;
535
+ border: z.ZodOptional<z.ZodObject<{
536
+ color: z.ZodString;
537
+ px: z.ZodNumber;
538
+ transparency: z.ZodOptional<z.ZodNumber>;
539
+ }, z.core.$strip>>;
508
540
  fill: z.ZodOptional<z.ZodObject<{
509
541
  color: z.ZodString;
510
542
  type: z.ZodEnum<typeof PPTX_FILL_TYPE>;
@@ -645,6 +677,10 @@ export declare const PPTXExportPayloadSchema: z.ZodObject<{
645
677
  }, z.core.$strip>, z.ZodObject<{
646
678
  type: z.ZodLiteral<PPTX_SHAPE_TYPE.CUSTOM_SHAPE>;
647
679
  customShapeType: z.ZodOptional<z.ZodEnum<typeof PPTX_CUSTOM_SHAPE_TYPE>>;
680
+ points: z.ZodOptional<z.ZodArray<z.ZodObject<{
681
+ x: z.ZodNumber;
682
+ y: z.ZodNumber;
683
+ }, z.core.$strip>>>;
648
684
  position: z.ZodObject<{
649
685
  height: z.ZodNumber;
650
686
  width: z.ZodNumber;
@@ -652,6 +688,12 @@ export declare const PPTXExportPayloadSchema: z.ZodObject<{
652
688
  left: z.ZodNumber;
653
689
  }, z.core.$strip>;
654
690
  borderRadius: z.ZodNumber;
691
+ rotate: z.ZodOptional<z.ZodNumber>;
692
+ border: z.ZodOptional<z.ZodObject<{
693
+ color: z.ZodString;
694
+ px: z.ZodNumber;
695
+ transparency: z.ZodOptional<z.ZodNumber>;
696
+ }, z.core.$strip>>;
655
697
  fill: z.ZodOptional<z.ZodObject<{
656
698
  color: z.ZodString;
657
699
  type: z.ZodEnum<typeof PPTX_FILL_TYPE>;
@@ -63,6 +63,8 @@ var PPTX_SHADOW_TYPE;
63
63
  var PPTX_CUSTOM_SHAPE_TYPE;
64
64
  (function (PPTX_CUSTOM_SHAPE_TYPE) {
65
65
  PPTX_CUSTOM_SHAPE_TYPE["ROUND_RECT"] = "roundRect";
66
+ PPTX_CUSTOM_SHAPE_TYPE["ELLIPSE"] = "ellipse";
67
+ PPTX_CUSTOM_SHAPE_TYPE["POLYGON"] = "polygon";
66
68
  })(PPTX_CUSTOM_SHAPE_TYPE || (exports.PPTX_CUSTOM_SHAPE_TYPE = PPTX_CUSTOM_SHAPE_TYPE = {}));
67
69
  exports.PPTXShadowSchema = zod_1.z.object({
68
70
  type: zod_1.z.enum(PPTX_SHADOW_TYPE),
@@ -138,14 +140,31 @@ exports.PPTXPictureBoxSchema = zod_1.z.object({
138
140
  ]),
139
141
  });
140
142
  // CustomShape
141
- exports.PPTXCustomShapeSchema = zod_1.z.object({
143
+ exports.PPTXCustomShapeSchema = zod_1.z
144
+ .object({
142
145
  type: zod_1.z.literal(PPTX_SHAPE_TYPE.CUSTOM_SHAPE),
143
146
  customShapeType: zod_1.z.enum(PPTX_CUSTOM_SHAPE_TYPE).optional(),
147
+ points: zod_1.z
148
+ .array(zod_1.z.object({ x: zod_1.z.number().min(0).max(1), y: zod_1.z.number().min(0).max(1) }))
149
+ .min(3)
150
+ .max(256)
151
+ .optional(),
144
152
  position: exports.PPTXPositionSchema,
145
153
  borderRadius: zod_1.z.number(),
154
+ rotate: zod_1.z.number().min(-360).max(360).optional(),
155
+ border: zod_1.z
156
+ .object({
157
+ color: zod_1.z.string(),
158
+ px: zod_1.z.number().min(0),
159
+ transparency: zod_1.z.number().min(0).max(100).optional(),
160
+ })
161
+ .optional(),
146
162
  fill: exports.PPTXFillSchema.optional(),
147
163
  shadow: exports.PPTXShadowSchema.optional(),
148
- });
164
+ })
165
+ .refine((shape) => shape.customShapeType === PPTX_CUSTOM_SHAPE_TYPE.POLYGON
166
+ ? shape.points !== undefined
167
+ : shape.points === undefined, { message: 'points are required only for polygon shapes', path: ['points'] });
149
168
  // Table
150
169
  exports.PPTXTableCellSchema = zod_1.z.object({
151
170
  text: zod_1.z.string().optional(),
@@ -74,6 +74,7 @@ export declare const PresentationWithSlidesSchema: z.ZodObject<{
74
74
  content: z.ZodDiscriminatedUnion<[z.ZodObject<{
75
75
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.COVER>;
76
76
  title: z.ZodString;
77
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
78
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
78
79
  label: z.ZodString;
79
80
  value: z.ZodString;
@@ -108,6 +109,10 @@ export declare const PresentationWithSlidesSchema: z.ZodObject<{
108
109
  pageNumber: z.ZodNumber;
109
110
  title: z.ZodString;
110
111
  }, z.core.$strip>>;
112
+ imageSlot: z.ZodOptional<z.ZodObject<{
113
+ uuid: z.ZodUUID;
114
+ prompt: z.ZodString;
115
+ }, z.core.$strip>>;
111
116
  version: z.ZodLiteral<1>;
112
117
  }, z.core.$strip>, z.ZodObject<{
113
118
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -126,6 +131,7 @@ export declare const PresentationWithSlidesSchema: z.ZodObject<{
126
131
  }, z.core.$strip>, z.ZodObject<{
127
132
  contentType: z.ZodLiteral<import("../../..").SLIDE_CONTENT_TYPE.THANK_YOU>;
128
133
  title: z.ZodString;
134
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
135
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
130
136
  label: z.ZodString;
131
137
  value: z.ZodString;
@@ -4,6 +4,7 @@ import { SLIDE_CONTENT_TYPE } from '../../../constants';
4
4
  export declare const CoverSlideDataUserEditSchema: z.ZodObject<{
5
5
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
6
6
  title: z.ZodString;
7
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
8
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
9
  label: z.ZodString;
9
10
  value: z.ZodString;
@@ -21,6 +22,7 @@ export declare const CoverSlideDataUserEditSchema: z.ZodObject<{
21
22
  export declare const ThankYouSlideDataUserEditSchema: z.ZodObject<{
22
23
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
23
24
  title: z.ZodString;
25
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
27
  label: z.ZodString;
26
28
  value: z.ZodString;
@@ -58,6 +60,10 @@ export declare const ContentsSlideDataUserEditSchema: z.ZodObject<{
58
60
  pageNumber: z.ZodNumber;
59
61
  title: z.ZodString;
60
62
  }, z.core.$strip>>;
63
+ imageSlot: z.ZodOptional<z.ZodObject<{
64
+ uuid: z.ZodUUID;
65
+ prompt: z.ZodString;
66
+ }, z.core.$strip>>;
61
67
  version: z.ZodLiteral<1>;
62
68
  }, z.core.$strip>;
63
69
  export declare const ImageSlideDataUserEditSchema: z.ZodObject<{
@@ -134,6 +140,7 @@ export declare const TimelineSlideDataUserEditSchema: z.ZodObject<{
134
140
  export declare const SlideContentUserEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
135
141
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
136
142
  title: z.ZodString;
143
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
144
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
138
145
  label: z.ZodString;
139
146
  value: z.ZodString;
@@ -168,6 +175,10 @@ export declare const SlideContentUserEditSchema: z.ZodDiscriminatedUnion<[z.ZodO
168
175
  pageNumber: z.ZodNumber;
169
176
  title: z.ZodString;
170
177
  }, z.core.$strip>>;
178
+ imageSlot: z.ZodOptional<z.ZodObject<{
179
+ uuid: z.ZodUUID;
180
+ prompt: z.ZodString;
181
+ }, z.core.$strip>>;
171
182
  version: z.ZodLiteral<1>;
172
183
  }, z.core.$strip>, z.ZodObject<{
173
184
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -186,6 +197,7 @@ export declare const SlideContentUserEditSchema: z.ZodDiscriminatedUnion<[z.ZodO
186
197
  }, z.core.$strip>, z.ZodObject<{
187
198
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
188
199
  title: z.ZodString;
200
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
201
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
190
202
  label: z.ZodString;
191
203
  value: z.ZodString;
@@ -10,6 +10,7 @@ const constants_1 = require("../../../constants");
10
10
  exports.CoverSlideDataUserEditSchema = zod_1.default.object({
11
11
  contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.COVER),
12
12
  title: zod_1.default.string().max(1000),
13
+ description: zod_1.default.string().max(1000).nullable().optional(),
13
14
  author: zod_1.default
14
15
  .object({
15
16
  label: zod_1.default.string().min(1).max(100),
@@ -36,6 +37,7 @@ exports.CoverSlideDataUserEditSchema = zod_1.default.object({
36
37
  exports.ThankYouSlideDataUserEditSchema = zod_1.default.object({
37
38
  contentType: zod_1.default.literal(constants_1.SLIDE_CONTENT_TYPE.THANK_YOU),
38
39
  title: zod_1.default.string().max(1000),
40
+ description: zod_1.default.string().max(1000).nullable().optional(),
39
41
  author: zod_1.default
40
42
  .object({
41
43
  label: zod_1.default.string().min(1).max(100),
@@ -86,6 +88,7 @@ exports.ContentsSlideDataUserEditSchema = zod_1.default.object({
86
88
  title: zod_1.default.string().max(1000),
87
89
  }))
88
90
  .max(100),
91
+ imageSlot: slide_content_schema_1.ImageSlotSchema.optional(),
89
92
  version: zod_1.default.literal(1),
90
93
  });
91
94
  exports.ImageSlideDataUserEditSchema = zod_1.default.object({
@@ -14,6 +14,7 @@ export declare const IconSlotSchema: z.ZodObject<{
14
14
  }, z.core.$strip>;
15
15
  export type IconSlot = z.infer<typeof IconSlotSchema>;
16
16
  export interface ICoverSlideDataStructure {
17
+ description?: string | null;
17
18
  contentType: SLIDE_CONTENT_TYPE.COVER;
18
19
  title: string;
19
20
  author?: {
@@ -31,6 +32,7 @@ export interface ICoverSlideDataStructure {
31
32
  version: 1;
32
33
  }
33
34
  export interface IThankYouSlideDataStructure {
35
+ description?: string | null;
34
36
  contentType: SLIDE_CONTENT_TYPE.THANK_YOU;
35
37
  title: string;
36
38
  author?: {
@@ -70,6 +72,7 @@ export interface IContentsSlideDataStructure {
70
72
  pageNumber: number;
71
73
  title: string;
72
74
  }>;
75
+ imageSlot?: ImageSlot;
73
76
  version: 1;
74
77
  }
75
78
  export interface IImageSlideDataStructure {
@@ -132,6 +135,7 @@ export interface ITimelineSlideDataStructure {
132
135
  export declare const CoverSlideDataSchema: z.ZodObject<{
133
136
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
134
137
  title: z.ZodString;
138
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
139
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
136
140
  label: z.ZodString;
137
141
  value: z.ZodString;
@@ -150,6 +154,7 @@ export type CoverSlideData = z.infer<typeof CoverSlideDataSchema>;
150
154
  export declare const ThankYouSlideDataSchema: z.ZodObject<{
151
155
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
152
156
  title: z.ZodString;
157
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
158
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
154
159
  label: z.ZodString;
155
160
  value: z.ZodString;
@@ -190,6 +195,10 @@ export declare const ContentsSlideDataSchema: z.ZodObject<{
190
195
  pageNumber: z.ZodNumber;
191
196
  title: z.ZodString;
192
197
  }, z.core.$strip>>;
198
+ imageSlot: z.ZodOptional<z.ZodObject<{
199
+ uuid: z.ZodUUID;
200
+ prompt: z.ZodString;
201
+ }, z.core.$strip>>;
193
202
  version: z.ZodLiteral<1>;
194
203
  }, z.core.$strip>;
195
204
  export type ContentsSlideData = z.infer<typeof ContentsSlideDataSchema>;
@@ -273,6 +282,7 @@ export type TimelineSlideData = z.infer<typeof TimelineSlideDataSchema>;
273
282
  export declare const SlideContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
274
283
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
275
284
  title: z.ZodString;
285
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
286
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
277
287
  label: z.ZodString;
278
288
  value: z.ZodString;
@@ -307,6 +317,10 @@ export declare const SlideContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
307
317
  pageNumber: z.ZodNumber;
308
318
  title: z.ZodString;
309
319
  }, z.core.$strip>>;
320
+ imageSlot: z.ZodOptional<z.ZodObject<{
321
+ uuid: z.ZodUUID;
322
+ prompt: z.ZodString;
323
+ }, z.core.$strip>>;
310
324
  version: z.ZodLiteral<1>;
311
325
  }, z.core.$strip>, z.ZodObject<{
312
326
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -325,6 +339,7 @@ export declare const SlideContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
325
339
  }, z.core.$strip>, z.ZodObject<{
326
340
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
327
341
  title: z.ZodString;
342
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
343
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
329
344
  label: z.ZodString;
330
345
  value: z.ZodString;
@@ -22,6 +22,12 @@ exports.IconSlotSchema = zod_1.z.object({
22
22
  exports.CoverSlideDataSchema = zod_1.z.object({
23
23
  contentType: zod_1.z.literal(constants_1.SLIDE_CONTENT_TYPE.COVER),
24
24
  title: zod_1.z.string().describe('Slide title in about 6 words').min(10).max(150),
25
+ description: zod_1.z
26
+ .string()
27
+ .max(1000)
28
+ .nullable()
29
+ .optional()
30
+ .describe('Optional short subtitle below the title in the presentation language; null when absent'),
25
31
  author: zod_1.z
26
32
  .object({
27
33
  label: zod_1.z.string().describe('Literal "Author" in presentation\'s language'),
@@ -54,6 +60,12 @@ exports.ThankYouSlideDataSchema = zod_1.z.object({
54
60
  .describe('"Thank you for your attention" in presentation\'s language')
55
61
  .min(10)
56
62
  .max(150),
63
+ description: zod_1.z
64
+ .string()
65
+ .max(1000)
66
+ .nullable()
67
+ .optional()
68
+ .describe('Optional short subtitle below the title in the presentation language; null when absent'),
57
69
  author: zod_1.z
58
70
  .object({
59
71
  label: zod_1.z.string().describe('Literal "Author" in presentation\'s language'),
@@ -115,6 +127,7 @@ exports.ContentsSlideDataSchema = zod_1.z.object({
115
127
  }))
116
128
  .min(1)
117
129
  .describe('List of slide titles. Must be relevant and generated after all the slides are generated'),
130
+ imageSlot: exports.ImageSlotSchema.optional(),
118
131
  version: zod_1.z.literal(1),
119
132
  });
120
133
  exports.ImageSlideDataSchema = zod_1.z
@@ -8,6 +8,7 @@ export declare const SlideSchema: z.ZodObject<{
8
8
  content: z.ZodDiscriminatedUnion<[z.ZodObject<{
9
9
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
10
10
  title: z.ZodString;
11
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
12
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
13
  label: z.ZodString;
13
14
  value: z.ZodString;
@@ -42,6 +43,10 @@ export declare const SlideSchema: z.ZodObject<{
42
43
  pageNumber: z.ZodNumber;
43
44
  title: z.ZodString;
44
45
  }, z.core.$strip>>;
46
+ imageSlot: z.ZodOptional<z.ZodObject<{
47
+ uuid: z.ZodUUID;
48
+ prompt: z.ZodString;
49
+ }, z.core.$strip>>;
45
50
  version: z.ZodLiteral<1>;
46
51
  }, z.core.$strip>, z.ZodObject<{
47
52
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -60,6 +65,7 @@ export declare const SlideSchema: z.ZodObject<{
60
65
  }, z.core.$strip>, z.ZodObject<{
61
66
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
62
67
  title: z.ZodString;
68
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
69
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
64
70
  label: z.ZodString;
65
71
  value: z.ZodString;
@@ -145,6 +151,7 @@ export declare const SlideUpdateSchema: z.ZodObject<{
145
151
  content: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
146
152
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
147
153
  title: z.ZodString;
154
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
155
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
149
156
  label: z.ZodString;
150
157
  value: z.ZodString;
@@ -179,6 +186,10 @@ export declare const SlideUpdateSchema: z.ZodObject<{
179
186
  pageNumber: z.ZodNumber;
180
187
  title: z.ZodString;
181
188
  }, z.core.$strip>>;
189
+ imageSlot: z.ZodOptional<z.ZodObject<{
190
+ uuid: z.ZodUUID;
191
+ prompt: z.ZodString;
192
+ }, z.core.$strip>>;
182
193
  version: z.ZodLiteral<1>;
183
194
  }, z.core.$strip>, z.ZodObject<{
184
195
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -197,6 +208,7 @@ export declare const SlideUpdateSchema: z.ZodObject<{
197
208
  }, z.core.$strip>, z.ZodObject<{
198
209
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
199
210
  title: z.ZodString;
211
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
212
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
201
213
  label: z.ZodString;
202
214
  value: z.ZodString;
@@ -262,6 +274,7 @@ export declare const SlideBulkUpdateSchema: z.ZodArray<z.ZodObject<{
262
274
  content: z.ZodDiscriminatedUnion<[z.ZodObject<{
263
275
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.COVER>;
264
276
  title: z.ZodString;
277
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
278
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
266
279
  label: z.ZodString;
267
280
  value: z.ZodString;
@@ -296,6 +309,10 @@ export declare const SlideBulkUpdateSchema: z.ZodArray<z.ZodObject<{
296
309
  pageNumber: z.ZodNumber;
297
310
  title: z.ZodString;
298
311
  }, z.core.$strip>>;
312
+ imageSlot: z.ZodOptional<z.ZodObject<{
313
+ uuid: z.ZodUUID;
314
+ prompt: z.ZodString;
315
+ }, z.core.$strip>>;
299
316
  version: z.ZodLiteral<1>;
300
317
  }, z.core.$strip>, z.ZodObject<{
301
318
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.SECTION_BREAK>;
@@ -314,6 +331,7 @@ export declare const SlideBulkUpdateSchema: z.ZodArray<z.ZodObject<{
314
331
  }, z.core.$strip>, z.ZodObject<{
315
332
  contentType: z.ZodLiteral<SLIDE_CONTENT_TYPE.THANK_YOU>;
316
333
  title: z.ZodString;
334
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
335
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
318
336
  label: z.ZodString;
319
337
  value: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.20.15-stage-2",
3
+ "version": "0.20.16-stage-2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "author": "",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@purpleschool/gptbot-tools": "0.4.36-stage-2",
18
+ "@purpleschool/gptbot-tools": "0.4.37-stage-2",
19
19
  "@purpleschool/rugpt-lib-common": "0.0.120",
20
20
  "zod": "4.6.5"
21
21
  }