@purpleschool/gptbot 0.20.0-stage-2 → 0.20.2-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/api/controllers/http/writer.d.ts +2 -0
- package/build/api/controllers/http/writer.js +2 -0
- package/build/api/routes.d.ts +4 -0
- package/build/api/routes.js +4 -0
- package/build/commands/b2b-compatible/anthropic-messages.command.d.ts +78 -4
- package/build/commands/b2b-compatible/anthropic-messages.command.js +71 -2
- package/build/commands/tools/presentation/create-presentation.command.d.ts +3 -0
- package/build/commands/tools/presentation/find-presentation-by-uuid.command.d.ts +3 -0
- package/build/commands/tools/presentation/find-presentations.command.d.ts +3 -0
- package/build/commands/tools/presentation/generate-presentation-outline.command.d.ts +42 -0
- package/build/commands/tools/presentation/generate-presentation-outline.command.js +13 -0
- package/build/commands/tools/presentation/generate-presentation-slides.command.d.ts +3 -0
- package/build/commands/tools/presentation/index.d.ts +1 -0
- package/build/commands/tools/presentation/index.js +1 -0
- package/build/commands/tools/presentation/set-reaction-to-presentation.command.d.ts +3 -0
- package/build/commands/tools/presentation/update-presentation-favorite.command.d.ts +3 -0
- package/build/commands/tools/presentation/update-presentation.command.d.ts +3 -0
- package/build/commands/tools/writer/analyze-writer-document-topic.command.d.ts +51 -0
- package/build/commands/tools/writer/analyze-writer-document-topic.command.js +10 -0
- package/build/commands/tools/writer/collect-writer-document-sources.command.d.ts +2 -0
- package/build/commands/tools/writer/create-writer-document.command.d.ts +2 -0
- package/build/commands/tools/writer/find-writer-document-by-uuid.command.d.ts +2 -0
- package/build/commands/tools/writer/find-writer-documents.command.d.ts +2 -0
- package/build/commands/tools/writer/generate-writer-document-contents.command.d.ts +3 -0
- package/build/commands/tools/writer/generate-writer-document-contents.command.js +1 -0
- package/build/commands/tools/writer/generate-writer-document-outline.command.d.ts +56 -0
- package/build/commands/tools/writer/generate-writer-document-outline.command.js +14 -0
- package/build/commands/tools/writer/index.d.ts +2 -0
- package/build/commands/tools/writer/index.js +2 -0
- package/build/commands/tools/writer/set-reaction.writer-document.command.d.ts +2 -0
- package/build/commands/tools/writer/update-writer-document-favorite.command.d.ts +2 -0
- package/build/commands/tools/writer/update-writer-document-title.command.d.ts +2 -0
- package/build/models/tools/presentation/presentation.schema.d.ts +6 -0
- package/build/models/tools/presentation/presentation.schema.js +3 -0
- package/build/models/tools/writer/writer-document.schema.d.ts +2 -0
- package/build/models/tools/writer/writer-document.schema.js +2 -0
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@ export declare const WRITER_ROUTES: {
|
|
|
10
10
|
readonly UPLOAD_SOURCE: (uuid: string) => string;
|
|
11
11
|
readonly CONFIRM_SOURCE_CITATION_METADATA: (docId: string, sourceId: string) => string;
|
|
12
12
|
readonly GENERATE_CONTENTS: (uuid: string) => string;
|
|
13
|
+
readonly ANALYZE_TOPIC: (uuid: string) => string;
|
|
14
|
+
readonly GENERATE_OUTLINE: (uuid: string) => string;
|
|
13
15
|
readonly UPDATE_OUTLINE: (uuid: string) => string;
|
|
14
16
|
readonly UPDATE_TITLE_PAGE: (uuid: string) => string;
|
|
15
17
|
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
@@ -13,6 +13,8 @@ exports.WRITER_ROUTES = {
|
|
|
13
13
|
UPLOAD_SOURCE: (uuid) => `documents/${uuid}/sources/upload`,
|
|
14
14
|
CONFIRM_SOURCE_CITATION_METADATA: (docId, sourceId) => `documents/${docId}/sources/${sourceId}/confirm`,
|
|
15
15
|
GENERATE_CONTENTS: (uuid) => `documents/${uuid}/generate`,
|
|
16
|
+
ANALYZE_TOPIC: (uuid) => `documents/${uuid}/topic/analyze`,
|
|
17
|
+
GENERATE_OUTLINE: (uuid) => `documents/${uuid}/outline/generate`,
|
|
16
18
|
UPDATE_OUTLINE: (uuid) => `documents/${uuid}/outline`,
|
|
17
19
|
UPDATE_TITLE_PAGE: (uuid) => `documents/${uuid}/title-page`,
|
|
18
20
|
UPDATE_FAVORITE: (uuid) => `documents/${uuid}/favorite`,
|
package/build/api/routes.d.ts
CHANGED
|
@@ -563,6 +563,8 @@ export declare const REST_API: {
|
|
|
563
563
|
readonly UPLOAD_SOURCE: (uuid: string) => string;
|
|
564
564
|
readonly CONFIRM_SOURCE_CITATION_METADATA: (docId: string, sourceId: string) => string;
|
|
565
565
|
readonly GENERATE_CONTENTS: (uuid: string) => string;
|
|
566
|
+
readonly GENERATE_OUTLINE: (uuid: string) => string;
|
|
567
|
+
readonly ANALYZE_TOPIC: (uuid: string) => string;
|
|
566
568
|
readonly UPDATE_OUTLINE: (uuid: string) => string;
|
|
567
569
|
readonly UPDATE_TITLE_PAGE: (uuid: string) => string;
|
|
568
570
|
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
@@ -590,6 +592,8 @@ export declare const REST_API: {
|
|
|
590
592
|
readonly UPLOAD_SOURCE: (uuid: string) => string;
|
|
591
593
|
readonly CONFIRM_SOURCE_CITATION_METADATA: (docId: string, sourceId: string) => string;
|
|
592
594
|
readonly GENERATE_CONTENTS: (uuid: string) => string;
|
|
595
|
+
readonly GENERATE_OUTLINE: (uuid: string) => string;
|
|
596
|
+
readonly ANALYZE_TOPIC: (uuid: string) => string;
|
|
593
597
|
readonly UPDATE_OUTLINE: (uuid: string) => string;
|
|
594
598
|
readonly UPDATE_TITLE_PAGE: (uuid: string) => string;
|
|
595
599
|
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
package/build/api/routes.js
CHANGED
|
@@ -602,6 +602,8 @@ exports.REST_API = {
|
|
|
602
602
|
UPLOAD_SOURCE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.UPLOAD_SOURCE(uuid)}`,
|
|
603
603
|
CONFIRM_SOURCE_CITATION_METADATA: (docId, sourceId) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.CONFIRM_SOURCE_CITATION_METADATA(docId, sourceId)}`,
|
|
604
604
|
GENERATE_CONTENTS: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.GENERATE_CONTENTS(uuid)}`,
|
|
605
|
+
GENERATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
606
|
+
ANALYZE_TOPIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.ANALYZE_TOPIC(uuid)}`,
|
|
605
607
|
UPDATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.UPDATE_OUTLINE(uuid)}`,
|
|
606
608
|
UPDATE_TITLE_PAGE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.UPDATE_TITLE_PAGE(uuid)}`,
|
|
607
609
|
UPDATE_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.UPDATE_FAVORITE(uuid)}`,
|
|
@@ -629,6 +631,8 @@ exports.REST_API = {
|
|
|
629
631
|
UPLOAD_SOURCE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.UPLOAD_SOURCE(uuid)}`,
|
|
630
632
|
CONFIRM_SOURCE_CITATION_METADATA: (docId, sourceId) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.CONFIRM_SOURCE_CITATION_METADATA(docId, sourceId)}`,
|
|
631
633
|
GENERATE_CONTENTS: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.GENERATE_CONTENTS(uuid)}`,
|
|
634
|
+
GENERATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
635
|
+
ANALYZE_TOPIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.ANALYZE_TOPIC(uuid)}`,
|
|
632
636
|
UPDATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.UPDATE_OUTLINE(uuid)}`,
|
|
633
637
|
UPDATE_TITLE_PAGE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.UPDATE_TITLE_PAGE(uuid)}`,
|
|
634
638
|
UPDATE_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.UPDATE_FAVORITE(uuid)}`,
|
|
@@ -212,7 +212,24 @@ export declare namespace AnthropicMessagesCommand {
|
|
|
212
212
|
type: z.ZodLiteral<"text">;
|
|
213
213
|
text: z.ZodString;
|
|
214
214
|
}, z.core.$strict>;
|
|
215
|
-
const ResponseSchema: z.ZodObject<{
|
|
215
|
+
const ResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
216
|
+
id: z.ZodString;
|
|
217
|
+
type: z.ZodLiteral<"message">;
|
|
218
|
+
role: z.ZodLiteral<"assistant">;
|
|
219
|
+
content: z.ZodArray<z.ZodObject<{
|
|
220
|
+
type: z.ZodLiteral<"text">;
|
|
221
|
+
text: z.ZodString;
|
|
222
|
+
}, z.core.$strict>>;
|
|
223
|
+
model: z.ZodString;
|
|
224
|
+
stop_reason: z.ZodNullable<z.ZodString>;
|
|
225
|
+
stop_sequence: z.ZodNullable<z.ZodString>;
|
|
226
|
+
usage: z.ZodObject<{
|
|
227
|
+
input_tokens: z.ZodNumber;
|
|
228
|
+
output_tokens: z.ZodNumber;
|
|
229
|
+
cache_creation_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
cache_read_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
216
233
|
id: z.ZodString;
|
|
217
234
|
type: z.ZodLiteral<"message">;
|
|
218
235
|
role: z.ZodLiteral<import("../..").ANTHROPIC_ROLE.ASSISTANT>;
|
|
@@ -252,8 +269,65 @@ export declare namespace AnthropicMessagesCommand {
|
|
|
252
269
|
cache_read_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
253
270
|
cache_creation_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
254
271
|
}, z.core.$loose>;
|
|
255
|
-
}, z.core.$loose>;
|
|
256
|
-
const StreamEventSchema: z.
|
|
272
|
+
}, z.core.$loose>]>;
|
|
273
|
+
const StreamEventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
274
|
+
type: z.ZodLiteral<"message_start">;
|
|
275
|
+
message: z.ZodObject<{
|
|
276
|
+
id: z.ZodString;
|
|
277
|
+
type: z.ZodLiteral<"message">;
|
|
278
|
+
role: z.ZodLiteral<"assistant">;
|
|
279
|
+
content: z.ZodArray<z.ZodObject<{
|
|
280
|
+
type: z.ZodLiteral<"text">;
|
|
281
|
+
text: z.ZodString;
|
|
282
|
+
}, z.core.$strict>>;
|
|
283
|
+
model: z.ZodString;
|
|
284
|
+
stop_reason: z.ZodNullable<z.ZodString>;
|
|
285
|
+
stop_sequence: z.ZodNullable<z.ZodString>;
|
|
286
|
+
usage: z.ZodObject<{
|
|
287
|
+
input_tokens: z.ZodNumber;
|
|
288
|
+
output_tokens: z.ZodNumber;
|
|
289
|
+
cache_creation_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
cache_read_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
}, z.core.$strict>;
|
|
292
|
+
}, z.core.$strict>;
|
|
293
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
294
|
+
type: z.ZodLiteral<"content_block_start">;
|
|
295
|
+
index: z.ZodNumber;
|
|
296
|
+
content_block: z.ZodObject<{
|
|
297
|
+
type: z.ZodLiteral<"text">;
|
|
298
|
+
text: z.ZodString;
|
|
299
|
+
}, z.core.$strict>;
|
|
300
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
301
|
+
type: z.ZodLiteral<"content_block_delta">;
|
|
302
|
+
index: z.ZodNumber;
|
|
303
|
+
delta: z.ZodObject<{
|
|
304
|
+
type: z.ZodLiteral<"text_delta">;
|
|
305
|
+
text: z.ZodString;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
308
|
+
type: z.ZodLiteral<"content_block_stop">;
|
|
309
|
+
index: z.ZodNumber;
|
|
310
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
311
|
+
type: z.ZodLiteral<"message_delta">;
|
|
312
|
+
delta: z.ZodObject<{
|
|
313
|
+
stop_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
314
|
+
stop_sequence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
|
+
}, z.core.$strict>;
|
|
316
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
317
|
+
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
319
|
+
cache_creation_input_tokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
320
|
+
cache_read_input_tokens: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
321
|
+
}, z.core.$strict>>;
|
|
322
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
323
|
+
type: z.ZodLiteral<"message_stop">;
|
|
324
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
325
|
+
type: z.ZodLiteral<"error">;
|
|
326
|
+
error: z.ZodObject<{
|
|
327
|
+
type: z.ZodString;
|
|
328
|
+
message: z.ZodString;
|
|
329
|
+
}, z.core.$strict>;
|
|
330
|
+
}, z.core.$strict>]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
257
331
|
type: z.ZodLiteral<import("../..").ANTHROPIC_EVENT.MESSAGE_START>;
|
|
258
332
|
message: z.ZodObject<{
|
|
259
333
|
id: z.ZodString;
|
|
@@ -364,7 +438,7 @@ export declare namespace AnthropicMessagesCommand {
|
|
|
364
438
|
}, z.core.$loose>, z.ZodObject<{
|
|
365
439
|
type: z.ZodLiteral<import("../..").ANTHROPIC_EVENT.ERROR>;
|
|
366
440
|
error: z.ZodUnknown;
|
|
367
|
-
}, z.core.$loose>], "type">;
|
|
441
|
+
}, z.core.$loose>], "type">]>;
|
|
368
442
|
const ErrorResponseSchema: z.ZodObject<{
|
|
369
443
|
type: z.ZodLiteral<"error">;
|
|
370
444
|
error: z.ZodObject<{
|
|
@@ -151,7 +151,76 @@ var AnthropicMessagesCommand;
|
|
|
151
151
|
text: zod_1.z.string(),
|
|
152
152
|
})
|
|
153
153
|
.strict();
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
const LegacyResponseSchema = zod_1.z
|
|
155
|
+
.object({
|
|
156
|
+
id: zod_1.z.string(),
|
|
157
|
+
type: zod_1.z.literal('message'),
|
|
158
|
+
role: zod_1.z.literal('assistant'),
|
|
159
|
+
content: zod_1.z.array(AnthropicMessagesCommand.TextContentBlockResponseSchema),
|
|
160
|
+
model: zod_1.z.string(),
|
|
161
|
+
stop_reason: common_schemas_1.NullableStringSchema,
|
|
162
|
+
stop_sequence: common_schemas_1.NullableStringSchema,
|
|
163
|
+
usage: AnthropicMessagesCommand.UsageSchema,
|
|
164
|
+
})
|
|
165
|
+
.strict();
|
|
166
|
+
const LegacyStreamEventSchema = zod_1.z.union([
|
|
167
|
+
zod_1.z
|
|
168
|
+
.object({
|
|
169
|
+
type: zod_1.z.literal('message_start'),
|
|
170
|
+
message: LegacyResponseSchema,
|
|
171
|
+
})
|
|
172
|
+
.strict(),
|
|
173
|
+
zod_1.z
|
|
174
|
+
.object({
|
|
175
|
+
type: zod_1.z.literal('content_block_start'),
|
|
176
|
+
index: zod_1.z.number().int(),
|
|
177
|
+
content_block: AnthropicMessagesCommand.TextContentBlockResponseSchema,
|
|
178
|
+
})
|
|
179
|
+
.strict(),
|
|
180
|
+
zod_1.z
|
|
181
|
+
.object({
|
|
182
|
+
type: zod_1.z.literal('content_block_delta'),
|
|
183
|
+
index: zod_1.z.number().int(),
|
|
184
|
+
delta: zod_1.z
|
|
185
|
+
.object({
|
|
186
|
+
type: zod_1.z.literal('text_delta'),
|
|
187
|
+
text: zod_1.z.string(),
|
|
188
|
+
})
|
|
189
|
+
.strict(),
|
|
190
|
+
})
|
|
191
|
+
.strict(),
|
|
192
|
+
zod_1.z
|
|
193
|
+
.object({
|
|
194
|
+
type: zod_1.z.literal('content_block_stop'),
|
|
195
|
+
index: zod_1.z.number().int(),
|
|
196
|
+
})
|
|
197
|
+
.strict(),
|
|
198
|
+
zod_1.z
|
|
199
|
+
.object({
|
|
200
|
+
type: zod_1.z.literal('message_delta'),
|
|
201
|
+
delta: zod_1.z
|
|
202
|
+
.object({
|
|
203
|
+
stop_reason: common_schemas_1.NullableStringSchema.optional(),
|
|
204
|
+
stop_sequence: common_schemas_1.NullableStringSchema.optional(),
|
|
205
|
+
})
|
|
206
|
+
.strict(),
|
|
207
|
+
usage: AnthropicMessagesCommand.UsageSchema.partial().optional(),
|
|
208
|
+
})
|
|
209
|
+
.strict(),
|
|
210
|
+
zod_1.z
|
|
211
|
+
.object({
|
|
212
|
+
type: zod_1.z.literal('message_stop'),
|
|
213
|
+
})
|
|
214
|
+
.strict(),
|
|
215
|
+
common_schemas_1.AnthropicErrorResponseSchema,
|
|
216
|
+
]);
|
|
217
|
+
AnthropicMessagesCommand.ResponseSchema = zod_1.z.union([
|
|
218
|
+
LegacyResponseSchema,
|
|
219
|
+
anthropic_tool_messages_command_1.AnthropicToolMessagesCommand.ResponseSchema,
|
|
220
|
+
]);
|
|
221
|
+
AnthropicMessagesCommand.StreamEventSchema = zod_1.z.union([
|
|
222
|
+
LegacyStreamEventSchema,
|
|
223
|
+
anthropic_tool_messages_command_1.AnthropicToolMessagesCommand.StreamEventSchema,
|
|
224
|
+
]);
|
|
156
225
|
AnthropicMessagesCommand.ErrorResponseSchema = common_schemas_1.AnthropicErrorResponseSchema;
|
|
157
226
|
})(AnthropicMessagesCommand || (exports.AnthropicMessagesCommand = AnthropicMessagesCommand = {}));
|
|
@@ -24,6 +24,9 @@ export declare namespace CreatePresentationCommand {
|
|
|
24
24
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
25
25
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
26
26
|
slideCount: z.ZodNumber;
|
|
27
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
30
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
28
31
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
29
32
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -19,6 +19,9 @@ export declare namespace FindPresentationByUuidCommand {
|
|
|
19
19
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
20
20
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
21
21
|
slideCount: z.ZodNumber;
|
|
22
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
25
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
23
26
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
24
27
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -25,6 +25,9 @@ export declare namespace FindPresentationsCommand {
|
|
|
25
25
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
26
26
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
27
27
|
slideCount: z.ZodNumber;
|
|
28
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
31
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
29
32
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
30
33
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GeneratePresentationOutlineCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestBodySchema: z.ZodObject<{
|
|
8
|
+
slideCount: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodUUID;
|
|
14
|
+
prompt: z.ZodString;
|
|
15
|
+
stage: z.ZodEnum<typeof import("../../..").PRESENTATION_STAGE>;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
isFavorite: z.ZodBoolean;
|
|
18
|
+
thumbnail: z.ZodString;
|
|
19
|
+
languageId: z.ZodString;
|
|
20
|
+
templateId: z.ZodString;
|
|
21
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
22
|
+
docUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
24
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
25
|
+
slideCount: z.ZodNumber;
|
|
26
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
30
|
+
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
31
|
+
titlePage: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
author: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
createdAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
34
|
+
email: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
targetAudience: z.ZodEnum<typeof import("../../..").PRESENTATION_TARGET_AUDIENCE>;
|
|
37
|
+
createdAt: z.ZodDate;
|
|
38
|
+
updatedAt: z.ZodDate;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeneratePresentationOutlineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GeneratePresentationOutlineCommand;
|
|
7
|
+
(function (GeneratePresentationOutlineCommand) {
|
|
8
|
+
GeneratePresentationOutlineCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.uuid() });
|
|
9
|
+
GeneratePresentationOutlineCommand.RequestBodySchema = zod_1.z.object({
|
|
10
|
+
slideCount: zod_1.z.number().int().positive().optional(),
|
|
11
|
+
});
|
|
12
|
+
GeneratePresentationOutlineCommand.ResponseSchema = zod_1.z.object({ data: models_1.PresentationSchema });
|
|
13
|
+
})(GeneratePresentationOutlineCommand || (exports.GeneratePresentationOutlineCommand = GeneratePresentationOutlineCommand = {}));
|
|
@@ -27,6 +27,9 @@ export declare namespace GeneratePresentationSlidesCommand {
|
|
|
27
27
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
28
28
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
29
29
|
slideCount: z.ZodNumber;
|
|
30
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
33
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
31
34
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
32
35
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -23,3 +23,4 @@ export * from './presentation-generate-report.command';
|
|
|
23
23
|
export * from './update-slide.command';
|
|
24
24
|
export * from './set-reaction-to-presentation.command';
|
|
25
25
|
export * from './update-presentation-favorite.command';
|
|
26
|
+
export * from './generate-presentation-outline.command';
|
|
@@ -39,3 +39,4 @@ __exportStar(require("./presentation-generate-report.command"), exports);
|
|
|
39
39
|
__exportStar(require("./update-slide.command"), exports);
|
|
40
40
|
__exportStar(require("./set-reaction-to-presentation.command"), exports);
|
|
41
41
|
__exportStar(require("./update-presentation-favorite.command"), exports);
|
|
42
|
+
__exportStar(require("./generate-presentation-outline.command"), exports);
|
|
@@ -25,6 +25,9 @@ export declare namespace SetReactionToPresentationCommand {
|
|
|
25
25
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
26
26
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
27
27
|
slideCount: z.ZodNumber;
|
|
28
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
31
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
29
32
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
30
33
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -23,6 +23,9 @@ export declare namespace UpdatePresentationFavoriteCommand {
|
|
|
23
23
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
24
24
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
25
25
|
slideCount: z.ZodNumber;
|
|
26
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
29
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
27
30
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
28
31
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -29,6 +29,9 @@ export declare namespace UpdatePresentationCommand {
|
|
|
29
29
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
30
30
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
31
31
|
slideCount: z.ZodNumber;
|
|
32
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
35
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
33
36
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
34
37
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace AnalyzeWriterDocumentTopicCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
uuid: z.ZodUUID;
|
|
10
|
+
prompt: z.ZodString;
|
|
11
|
+
topic: z.ZodString;
|
|
12
|
+
title: z.ZodNullable<z.ZodString>;
|
|
13
|
+
typeId: z.ZodString;
|
|
14
|
+
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
15
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
outline: z.ZodArray<z.ZodObject<{
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
20
|
+
subsections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
titlePage: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
fullName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
institution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
faculty: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
specialty: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
subject: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
isTitlePageEnabled: z.ZodBoolean;
|
|
34
|
+
isFavorite: z.ZodBoolean;
|
|
35
|
+
sourceMd: z.ZodNullable<z.ZodString>;
|
|
36
|
+
finalMd: z.ZodNullable<z.ZodString>;
|
|
37
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
38
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
39
|
+
modelId: z.ZodNullable<z.ZodString>;
|
|
40
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
41
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
42
|
+
description: z.ZodNullable<z.ZodString>;
|
|
43
|
+
skipSources: z.ZodBoolean;
|
|
44
|
+
pages: z.ZodNumber;
|
|
45
|
+
createdAt: z.ZodDate;
|
|
46
|
+
updatedAt: z.ZodDate;
|
|
47
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnalyzeWriterDocumentTopicCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var AnalyzeWriterDocumentTopicCommand;
|
|
7
|
+
(function (AnalyzeWriterDocumentTopicCommand) {
|
|
8
|
+
AnalyzeWriterDocumentTopicCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.uuid() });
|
|
9
|
+
AnalyzeWriterDocumentTopicCommand.ResponseSchema = zod_1.z.object({ data: models_1.WriterDocumentSchema });
|
|
10
|
+
})(AnalyzeWriterDocumentTopicCommand || (exports.AnalyzeWriterDocumentTopicCommand = AnalyzeWriterDocumentTopicCommand = {}));
|
|
@@ -14,6 +14,8 @@ export declare namespace CollectWriterDocumentSourcesCommand {
|
|
|
14
14
|
title: z.ZodNullable<z.ZodString>;
|
|
15
15
|
typeId: z.ZodString;
|
|
16
16
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
17
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
outline: z.ZodArray<z.ZodObject<{
|
|
18
20
|
title: z.ZodString;
|
|
19
21
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -14,6 +14,8 @@ export declare namespace CreateWriterDocumentCommand {
|
|
|
14
14
|
title: z.ZodNullable<z.ZodString>;
|
|
15
15
|
typeId: z.ZodString;
|
|
16
16
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
17
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
outline: z.ZodArray<z.ZodObject<{
|
|
18
20
|
title: z.ZodString;
|
|
19
21
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -12,6 +12,8 @@ export declare namespace FindWriterDocumentByUUIDCommand {
|
|
|
12
12
|
title: z.ZodNullable<z.ZodString>;
|
|
13
13
|
typeId: z.ZodString;
|
|
14
14
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
15
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
outline: z.ZodArray<z.ZodObject<{
|
|
16
18
|
title: z.ZodString;
|
|
17
19
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -18,6 +18,8 @@ export declare namespace FindWriterDocumentsCommand {
|
|
|
18
18
|
title: z.ZodNullable<z.ZodString>;
|
|
19
19
|
typeId: z.ZodString;
|
|
20
20
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
21
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
outline: z.ZodArray<z.ZodObject<{
|
|
22
24
|
title: z.ZodString;
|
|
23
25
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -6,6 +6,7 @@ export declare namespace GenerateWriterDocumentContentsCommand {
|
|
|
6
6
|
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
7
|
const RequestBodySchema: z.ZodObject<{
|
|
8
8
|
modelId: z.ZodUUID;
|
|
9
|
+
skipSources: z.ZodOptional<z.ZodBoolean>;
|
|
9
10
|
}, z.core.$strip>;
|
|
10
11
|
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
11
12
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -16,6 +17,8 @@ export declare namespace GenerateWriterDocumentContentsCommand {
|
|
|
16
17
|
title: z.ZodNullable<z.ZodString>;
|
|
17
18
|
typeId: z.ZodString;
|
|
18
19
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
20
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
22
|
outline: z.ZodArray<z.ZodObject<{
|
|
20
23
|
title: z.ZodString;
|
|
21
24
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -10,6 +10,7 @@ var GenerateWriterDocumentContentsCommand;
|
|
|
10
10
|
});
|
|
11
11
|
GenerateWriterDocumentContentsCommand.RequestBodySchema = zod_1.z.object({
|
|
12
12
|
modelId: zod_1.z.uuid(),
|
|
13
|
+
skipSources: zod_1.z.boolean().optional(),
|
|
13
14
|
});
|
|
14
15
|
GenerateWriterDocumentContentsCommand.ResponseSchema = zod_1.z.object({
|
|
15
16
|
data: models_1.WriterDocumentSchema,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GenerateWriterDocumentOutlineCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestBodySchema: z.ZodObject<{
|
|
8
|
+
numPages: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
12
|
+
const ResponseSchema: z.ZodObject<{
|
|
13
|
+
data: z.ZodObject<{
|
|
14
|
+
uuid: z.ZodUUID;
|
|
15
|
+
prompt: z.ZodString;
|
|
16
|
+
topic: z.ZodString;
|
|
17
|
+
title: z.ZodNullable<z.ZodString>;
|
|
18
|
+
typeId: z.ZodString;
|
|
19
|
+
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
20
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
outline: z.ZodArray<z.ZodObject<{
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
25
|
+
subsections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
titlePage: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
fullName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
institution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
faculty: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
specialty: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
subject: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
isTitlePageEnabled: z.ZodBoolean;
|
|
39
|
+
isFavorite: z.ZodBoolean;
|
|
40
|
+
sourceMd: z.ZodNullable<z.ZodString>;
|
|
41
|
+
finalMd: z.ZodNullable<z.ZodString>;
|
|
42
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
43
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
44
|
+
modelId: z.ZodNullable<z.ZodString>;
|
|
45
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
46
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
47
|
+
description: z.ZodNullable<z.ZodString>;
|
|
48
|
+
skipSources: z.ZodBoolean;
|
|
49
|
+
pages: z.ZodNumber;
|
|
50
|
+
createdAt: z.ZodDate;
|
|
51
|
+
updatedAt: z.ZodDate;
|
|
52
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateWriterDocumentOutlineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GenerateWriterDocumentOutlineCommand;
|
|
7
|
+
(function (GenerateWriterDocumentOutlineCommand) {
|
|
8
|
+
GenerateWriterDocumentOutlineCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.uuid() });
|
|
9
|
+
GenerateWriterDocumentOutlineCommand.RequestBodySchema = zod_1.z.object({
|
|
10
|
+
numPages: zod_1.z.number().int().positive().optional(),
|
|
11
|
+
description: zod_1.z.string().nullable().optional(),
|
|
12
|
+
});
|
|
13
|
+
GenerateWriterDocumentOutlineCommand.ResponseSchema = zod_1.z.object({ data: models_1.WriterDocumentSchema });
|
|
14
|
+
})(GenerateWriterDocumentOutlineCommand || (exports.GenerateWriterDocumentOutlineCommand = GenerateWriterDocumentOutlineCommand = {}));
|
|
@@ -23,3 +23,5 @@ export * from './confirm-source-citation-metadata.command';
|
|
|
23
23
|
export * from './discard-writer-source.command';
|
|
24
24
|
export * from './update-writer-document-favorite.command';
|
|
25
25
|
export * from './update-writer-document-title.command';
|
|
26
|
+
export * from './analyze-writer-document-topic.command';
|
|
27
|
+
export * from './generate-writer-document-outline.command';
|
|
@@ -39,3 +39,5 @@ __exportStar(require("./confirm-source-citation-metadata.command"), exports);
|
|
|
39
39
|
__exportStar(require("./discard-writer-source.command"), exports);
|
|
40
40
|
__exportStar(require("./update-writer-document-favorite.command"), exports);
|
|
41
41
|
__exportStar(require("./update-writer-document-title.command"), exports);
|
|
42
|
+
__exportStar(require("./analyze-writer-document-topic.command"), exports);
|
|
43
|
+
__exportStar(require("./generate-writer-document-outline.command"), exports);
|
|
@@ -18,6 +18,8 @@ export declare namespace SetReactionWriterDocumentCommand {
|
|
|
18
18
|
title: z.ZodNullable<z.ZodString>;
|
|
19
19
|
typeId: z.ZodString;
|
|
20
20
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
21
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
outline: z.ZodArray<z.ZodObject<{
|
|
22
24
|
title: z.ZodString;
|
|
23
25
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -16,6 +16,8 @@ export declare namespace UpdateWriterDocumentFavoriteCommand {
|
|
|
16
16
|
title: z.ZodNullable<z.ZodString>;
|
|
17
17
|
typeId: z.ZodString;
|
|
18
18
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
19
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
outline: z.ZodArray<z.ZodObject<{
|
|
20
22
|
title: z.ZodString;
|
|
21
23
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -16,6 +16,8 @@ export declare namespace UpdateWriterDocumentTitleCommand {
|
|
|
16
16
|
title: z.ZodNullable<z.ZodString>;
|
|
17
17
|
typeId: z.ZodString;
|
|
18
18
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
19
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
outline: z.ZodArray<z.ZodObject<{
|
|
20
22
|
title: z.ZodString;
|
|
21
23
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -14,6 +14,9 @@ export declare const PresentationSchema: z.ZodObject<{
|
|
|
14
14
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
15
15
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
16
16
|
slideCount: z.ZodNumber;
|
|
17
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
20
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
18
21
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
19
22
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -40,6 +43,9 @@ export declare const PresentationWithSlidesSchema: z.ZodObject<{
|
|
|
40
43
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
41
44
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
42
45
|
slideCount: z.ZodNumber;
|
|
46
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
49
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
44
50
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
45
51
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -20,6 +20,9 @@ exports.PresentationSchema = zod_1.z.object({
|
|
|
20
20
|
reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable(),
|
|
21
21
|
dislikeReason: zod_1.z.string().nullable(),
|
|
22
22
|
slideCount: zod_1.z.number(),
|
|
23
|
+
requestedSlideCount: zod_1.z.number().int().nullable().optional(),
|
|
24
|
+
errorCode: zod_1.z.string().nullable().optional(),
|
|
25
|
+
error: zod_1.z.string().nullable().optional(),
|
|
23
26
|
lastContentUpdateAt: zod_1.z.date().nullable(),
|
|
24
27
|
lastPptxExportedAt: zod_1.z.date().nullable(),
|
|
25
28
|
titlePage: presentation_title_page_schema_1.PresentationTitlePageSchema.nullable(),
|
|
@@ -7,6 +7,8 @@ export declare const WriterDocumentSchema: z.ZodObject<{
|
|
|
7
7
|
title: z.ZodNullable<z.ZodString>;
|
|
8
8
|
typeId: z.ZodString;
|
|
9
9
|
stage: z.ZodEnum<typeof WRITER_DOCUMENT_STAGE>;
|
|
10
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
12
|
outline: z.ZodArray<z.ZodObject<{
|
|
11
13
|
title: z.ZodString;
|
|
12
14
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -12,6 +12,8 @@ exports.WriterDocumentSchema = zod_1.z.object({
|
|
|
12
12
|
title: zod_1.z.string().nullable(),
|
|
13
13
|
typeId: zod_1.z.string(),
|
|
14
14
|
stage: zod_1.z.enum(constants_1.WRITER_DOCUMENT_STAGE),
|
|
15
|
+
errorCode: zod_1.z.string().nullable().optional(),
|
|
16
|
+
error: zod_1.z.string().nullable().optional(),
|
|
15
17
|
outline: writer_document_outline_schema_1.WriterDocumentOutlineSchema,
|
|
16
18
|
titlePage: writer_document_title_page_schema_1.WriterDocumentTitlePageSchema.nullable(),
|
|
17
19
|
isTitlePageEnabled: zod_1.z.boolean(),
|