@purpleschool/gptbot 0.13.24 → 0.13.26

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 (51) hide show
  1. package/api/controllers/http/agents/agent-document.ts +1 -0
  2. package/build/api/controllers/http/agents/agent-document.js +1 -0
  3. package/build/commands/agents/agent-document/add-document-from-url.command.js +20 -0
  4. package/build/commands/agents/agent-document/index.js +1 -0
  5. package/build/commands/tools/diagrams/find-diagrams-jobs.command.js +1 -0
  6. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.js +1 -0
  7. package/build/commands/tools/image-editor/find-image-editor-jobs.command.js +1 -0
  8. package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +1 -0
  9. package/build/commands/tools/image-generation/image-generation.command.js +2 -1
  10. package/build/commands/tools/interior-design/find-interior-design-jobs.command.js +1 -0
  11. package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.js +1 -0
  12. package/build/commands/tools/music/find-music-jobs.command.js +1 -0
  13. package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +1 -0
  14. package/build/commands/tools/presentation/find-presentations.command.js +1 -0
  15. package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.js +1 -0
  16. package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.js +1 -0
  17. package/build/commands/tools/stt/find-stt-jobs.command.js +1 -0
  18. package/build/commands/tools/tts/find-tts-jobs.command.js +1 -0
  19. package/build/commands/tools/video/find-video-jobs.command.js +1 -0
  20. package/build/commands/tools/video-editor/find-video-editor-jobs.command.js +1 -0
  21. package/build/commands/tools/writer/find-writer-documents.command.js +1 -0
  22. package/build/constants/agents/enums/index.js +1 -0
  23. package/build/constants/agents/enums/url-ingestion-strategy.enum.js +10 -0
  24. package/build/models/agents/agent-document.schema.js +1 -0
  25. package/build/models/tools/image-generation/image-generation-job.schema.js +1 -0
  26. package/build/models/tools/video-editor/video-editor-job.schema.js +1 -0
  27. package/commands/agents/agent-document/add-document-from-url.command.ts +24 -0
  28. package/commands/agents/agent-document/index.ts +1 -0
  29. package/commands/tools/diagrams/find-diagrams-jobs.command.ts +1 -0
  30. package/commands/tools/html-page-builder/find-html-page-builder-sessions.command.ts +1 -0
  31. package/commands/tools/image-editor/find-image-editor-jobs.command.ts +1 -0
  32. package/commands/tools/image-generation/find-image-generation-jobs.command.ts +1 -0
  33. package/commands/tools/image-generation/image-generation.command.ts +2 -1
  34. package/commands/tools/interior-design/find-interior-design-jobs.command.ts +1 -0
  35. package/commands/tools/marketplace-card/find-marketplace-card-jobs.command.ts +1 -0
  36. package/commands/tools/music/find-music-jobs.command.ts +1 -0
  37. package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +1 -0
  38. package/commands/tools/presentation/find-presentations.command.ts +1 -0
  39. package/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.ts +1 -0
  40. package/commands/tools/spell-corrector/find-spell-corrector-jobs.command.ts +1 -0
  41. package/commands/tools/stt/find-stt-jobs.command.ts +1 -0
  42. package/commands/tools/tts/find-tts-jobs.command.ts +1 -0
  43. package/commands/tools/video/find-video-jobs.command.ts +1 -0
  44. package/commands/tools/video-editor/find-video-editor-jobs.command.ts +1 -0
  45. package/commands/tools/writer/find-writer-documents.command.ts +1 -0
  46. package/constants/agents/enums/index.ts +1 -0
  47. package/constants/agents/enums/url-ingestion-strategy.enum.ts +6 -0
  48. package/models/agents/agent-document.schema.ts +1 -0
  49. package/models/tools/image-generation/image-generation-job.schema.ts +1 -0
  50. package/models/tools/video-editor/video-editor-job.schema.ts +1 -0
  51. package/package.json +1 -1
@@ -5,4 +5,5 @@ export const AGENT_DOCUMENT_ROUTES = {
5
5
  GET_BY_ID: (agentId: string, documentId: string) => `${agentId}/${documentId}`,
6
6
  DELETE: (agentId: string, documentId: string) => `${agentId}/${documentId}`,
7
7
  UPLOAD: (agentId: string) => `${agentId}/upload`,
8
+ ADD_FROM_URL: (agentId: string) => `${agentId}/add-from-url`,
8
9
  } as const;
@@ -7,4 +7,5 @@ exports.AGENT_DOCUMENT_ROUTES = {
7
7
  GET_BY_ID: (agentId, documentId) => `${agentId}/${documentId}`,
8
8
  DELETE: (agentId, documentId) => `${agentId}/${documentId}`,
9
9
  UPLOAD: (agentId) => `${agentId}/upload`,
10
+ ADD_FROM_URL: (agentId) => `${agentId}/add-from-url`,
10
11
  };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddDocumentFromUrlCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var AddDocumentFromUrlCommand;
6
+ (function (AddDocumentFromUrlCommand) {
7
+ AddDocumentFromUrlCommand.RequestParamsSchema = zod_1.z.object({
8
+ agentId: zod_1.z.string().uuid(),
9
+ });
10
+ AddDocumentFromUrlCommand.RequestBodySchema = zod_1.z.object({
11
+ url: zod_1.z.string().url(),
12
+ });
13
+ AddDocumentFromUrlCommand.ResponseDataSchema = zod_1.z.object({
14
+ sourceId: zod_1.z.string().uuid(),
15
+ accepted: zod_1.z.literal(true),
16
+ });
17
+ AddDocumentFromUrlCommand.ResponseSchema = zod_1.z.object({
18
+ data: AddDocumentFromUrlCommand.ResponseDataSchema,
19
+ });
20
+ })(AddDocumentFromUrlCommand || (exports.AddDocumentFromUrlCommand = AddDocumentFromUrlCommand = {}));
@@ -18,3 +18,4 @@ __exportStar(require("./find-agent-documents.command"), exports);
18
18
  __exportStar(require("./get-agent-document-by-id.command"), exports);
19
19
  __exportStar(require("./delete-agent-document.command"), exports);
20
20
  __exportStar(require("./upload-agent-document.command"), exports);
21
+ __exportStar(require("./add-document-from-url.command"), exports);
@@ -18,6 +18,7 @@ var FindDiagramsJobsCommand;
18
18
  FindDiagramsJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.DiagramsJobSchemaResponse),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindDiagramsJobsCommand || (exports.FindDiagramsJobsCommand = FindDiagramsJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindHtmlPageBuilderSessionsCommand;
18
18
  FindHtmlPageBuilderSessionsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.HtmlPageBuilderSessionSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindHtmlPageBuilderSessionsCommand || (exports.FindHtmlPageBuilderSessionsCommand = FindHtmlPageBuilderSessionsCommand = {}));
@@ -18,6 +18,7 @@ var FindImageEditorJobsCommand;
18
18
  FindImageEditorJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.ImageEditorJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindImageEditorJobsCommand || (exports.FindImageEditorJobsCommand = FindImageEditorJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindImageGenerationJobsCommand;
18
18
  FindImageGenerationJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.ImageGenerationJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindImageGenerationJobsCommand || (exports.FindImageGenerationJobsCommand = FindImageGenerationJobsCommand = {}));
@@ -14,10 +14,11 @@ var ImageGenerationCommand;
14
14
  attachedFiles: zod_1.z.string().array(),
15
15
  enhancePrompt: zod_1.z.boolean(),
16
16
  resolution: zod_1.z.nativeEnum(constants_1.IMAGE_GENERATION_RESOLUTION).optional(),
17
+ batching: zod_1.z.coerce.number().int().min(1).max(4).default(1),
17
18
  }),
18
19
  presetId: zod_1.z.string().uuid().nullable().optional(),
19
20
  });
20
21
  ImageGenerationCommand.ResponseSchema = zod_1.z.object({
21
- data: models_1.ToolJobSchema,
22
+ data: zod_1.z.array(models_1.ToolJobSchema),
22
23
  });
23
24
  })(ImageGenerationCommand || (exports.ImageGenerationCommand = ImageGenerationCommand = {}));
@@ -18,6 +18,7 @@ var FindInteriorDesignJobsCommand;
18
18
  FindInteriorDesignJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.InteriorDesignJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindInteriorDesignJobsCommand || (exports.FindInteriorDesignJobsCommand = FindInteriorDesignJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindMarketplaceCardJobsCommand;
18
18
  FindMarketplaceCardJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.MarketplaceCardJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindMarketplaceCardJobsCommand || (exports.FindMarketplaceCardJobsCommand = FindMarketplaceCardJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindMusicJobsCommand;
18
18
  FindMusicJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.MusicJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindMusicJobsCommand || (exports.FindMusicJobsCommand = FindMusicJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindParaphraseJobsCommand;
18
18
  FindParaphraseJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.ParaphraseToolJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindParaphraseJobsCommand || (exports.FindParaphraseJobsCommand = FindParaphraseJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindPresentationsCommand;
18
18
  FindPresentationsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(presentation_1.PresentationSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindPresentationsCommand || (exports.FindPresentationsCommand = FindPresentationsCommand = {}));
@@ -18,6 +18,7 @@ var FindSolvingEduTaskJobsCommand;
18
18
  FindSolvingEduTaskJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.SolvingEduTaskJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindSolvingEduTaskJobsCommand || (exports.FindSolvingEduTaskJobsCommand = FindSolvingEduTaskJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindSpellCorrectorJobsCommand;
18
18
  FindSpellCorrectorJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.SpellCorrectorToolJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindSpellCorrectorJobsCommand || (exports.FindSpellCorrectorJobsCommand = FindSpellCorrectorJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindSTTJobsCommand;
18
18
  FindSTTJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.STTJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindSTTJobsCommand || (exports.FindSTTJobsCommand = FindSTTJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindTTSJobsCommand;
18
18
  FindTTSJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.TTSJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindTTSJobsCommand || (exports.FindTTSJobsCommand = FindTTSJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindVideoJobsCommand;
18
18
  FindVideoJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.VideoJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindVideoJobsCommand || (exports.FindVideoJobsCommand = FindVideoJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindVideoEditorJobsCommand;
18
18
  FindVideoEditorJobsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.VideoEditorJobSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindVideoEditorJobsCommand || (exports.FindVideoEditorJobsCommand = FindVideoEditorJobsCommand = {}));
@@ -18,6 +18,7 @@ var FindWriterDocumentsCommand;
18
18
  FindWriterDocumentsCommand.ResponseSchema = zod_1.z.object({
19
19
  data: zod_1.z.array(models_1.WriterDocumentSchema),
20
20
  totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
21
22
  page: zod_1.z.number(),
22
23
  });
23
24
  })(FindWriterDocumentsCommand || (exports.FindWriterDocumentsCommand = FindWriterDocumentsCommand = {}));
@@ -22,3 +22,4 @@ __exportStar(require("./agent-tool-status.enum"), exports);
22
22
  __exportStar(require("./agent-document-status.enum"), exports);
23
23
  __exportStar(require("./dialog-status.enum"), exports);
24
24
  __exportStar(require("./message-sender-type.enum"), exports);
25
+ __exportStar(require("./url-ingestion-strategy.enum"), exports);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.URL_INGESTION_STRATEGY_TYPE = void 0;
4
+ var URL_INGESTION_STRATEGY_TYPE;
5
+ (function (URL_INGESTION_STRATEGY_TYPE) {
6
+ URL_INGESTION_STRATEGY_TYPE["SINGLE_PAGE_FETCH"] = "single_page_fetch";
7
+ URL_INGESTION_STRATEGY_TYPE["FETCH_CRAWLER"] = "fetch_crawler";
8
+ URL_INGESTION_STRATEGY_TYPE["SINGLE_PAGE_CSR"] = "single_page_csr";
9
+ URL_INGESTION_STRATEGY_TYPE["CSR_CRAWLER"] = "csr_crawler";
10
+ })(URL_INGESTION_STRATEGY_TYPE || (exports.URL_INGESTION_STRATEGY_TYPE = URL_INGESTION_STRATEGY_TYPE = {}));
@@ -11,6 +11,7 @@ exports.AgentDocumentSchema = zod_1.z.object({
11
11
  fileSize: zod_1.z.number().optional(),
12
12
  contentType: zod_1.z.string(),
13
13
  status: zod_1.z.nativeEnum(enums_1.AGENT_DOCUMENT_STATUS),
14
+ sourceId: zod_1.z.string().uuid().optional(),
14
15
  chunksCount: zod_1.z.number().optional(),
15
16
  isDeleted: zod_1.z.boolean(),
16
17
  createdAt: zod_1.z.date(),
@@ -18,6 +18,7 @@ exports.ImageGenerationJobParamsSchema = zod_1.z.object({
18
18
  attachedFiles: zod_1.z.array(exports.ImageGenerationFileAttachmentSchema),
19
19
  enhancePrompt: zod_1.z.boolean().optional(),
20
20
  resolution: zod_1.z.nativeEnum(constants_1.IMAGE_GENERATION_RESOLUTION).optional(),
21
+ batching: zod_1.z.number().int().min(1).max(4).optional(),
21
22
  });
22
23
  exports.ImageGenerationJobSchema = tool_job_schema_1.ToolJobSchema.extend({
23
24
  title: zod_1.z.string(),
@@ -15,6 +15,7 @@ exports.VideoEditorJobSchema = tool_job_schema_1.ToolJobSchema.extend({
15
15
  inputVideoId: zod_1.z.string().nullable(),
16
16
  inputVideoUrl: zod_1.z.string(),
17
17
  outputVideoUrl: zod_1.z.string().nullable(),
18
+ previewUrl: zod_1.z.string().nullable().optional(),
18
19
  video: zod_1.z
19
20
  .object({
20
21
  uuid: zod_1.z.string(),
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace AddDocumentFromUrlCommand {
4
+ export const RequestParamsSchema = z.object({
5
+ agentId: z.string().uuid(),
6
+ });
7
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
8
+
9
+ export const RequestBodySchema = z.object({
10
+ url: z.string().url(),
11
+ });
12
+ export type RequestBody = z.infer<typeof RequestBodySchema>;
13
+
14
+ export const ResponseDataSchema = z.object({
15
+ sourceId: z.string().uuid(),
16
+ accepted: z.literal(true),
17
+ });
18
+ export type ResponseData = z.infer<typeof ResponseDataSchema>;
19
+
20
+ export const ResponseSchema = z.object({
21
+ data: ResponseDataSchema,
22
+ });
23
+ export type Response = z.infer<typeof ResponseSchema>;
24
+ }
@@ -2,3 +2,4 @@ export * from './find-agent-documents.command';
2
2
  export * from './get-agent-document-by-id.command';
3
3
  export * from './delete-agent-document.command';
4
4
  export * from './upload-agent-document.command';
5
+ export * from './add-document-from-url.command';
@@ -17,6 +17,7 @@ export namespace FindDiagramsJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(DiagramsJobSchemaResponse),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindHtmlPageBuilderSessionsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(HtmlPageBuilderSessionSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindImageEditorJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(ImageEditorJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindImageGenerationJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(ImageGenerationJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -11,6 +11,7 @@ export namespace ImageGenerationCommand {
11
11
  attachedFiles: z.string().array(),
12
12
  enhancePrompt: z.boolean(),
13
13
  resolution: z.nativeEnum(IMAGE_GENERATION_RESOLUTION).optional(),
14
+ batching: z.coerce.number().int().min(1).max(4).default(1),
14
15
  }),
15
16
  presetId: z.string().uuid().nullable().optional(),
16
17
  });
@@ -18,7 +19,7 @@ export namespace ImageGenerationCommand {
18
19
  export type Request = z.infer<typeof RequestSchema>;
19
20
 
20
21
  export const ResponseSchema = z.object({
21
- data: ToolJobSchema,
22
+ data: z.array(ToolJobSchema),
22
23
  });
23
24
 
24
25
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindInteriorDesignJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(InteriorDesignJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindMarketplaceCardJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(MarketplaceCardJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindMusicJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(MusicJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindParaphraseJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(ParaphraseToolJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindPresentationsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(PresentationSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindSolvingEduTaskJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(SolvingEduTaskJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindSpellCorrectorJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(SpellCorrectorToolJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindSTTJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(STTJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindTTSJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(TTSJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindVideoJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(VideoJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindVideoEditorJobsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(VideoEditorJobSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -17,6 +17,7 @@ export namespace FindWriterDocumentsCommand {
17
17
  export const ResponseSchema = z.object({
18
18
  data: z.array(WriterDocumentSchema),
19
19
  totalPages: z.number(),
20
+ total: z.number(),
20
21
  page: z.number(),
21
22
  });
22
23
  export type Response = z.infer<typeof ResponseSchema>;
@@ -6,3 +6,4 @@ export * from './agent-tool-status.enum';
6
6
  export * from './agent-document-status.enum';
7
7
  export * from './dialog-status.enum';
8
8
  export * from './message-sender-type.enum';
9
+ export * from './url-ingestion-strategy.enum';
@@ -0,0 +1,6 @@
1
+ export enum URL_INGESTION_STRATEGY_TYPE {
2
+ SINGLE_PAGE_FETCH = 'single_page_fetch',
3
+ FETCH_CRAWLER = 'fetch_crawler',
4
+ SINGLE_PAGE_CSR = 'single_page_csr',
5
+ CSR_CRAWLER = 'csr_crawler',
6
+ }
@@ -9,6 +9,7 @@ export const AgentDocumentSchema = z.object({
9
9
  fileSize: z.number().optional(),
10
10
  contentType: z.string(),
11
11
  status: z.nativeEnum(AGENT_DOCUMENT_STATUS),
12
+ sourceId: z.string().uuid().optional(),
12
13
  chunksCount: z.number().optional(),
13
14
  isDeleted: z.boolean(),
14
15
  createdAt: z.date(),
@@ -18,6 +18,7 @@ export const ImageGenerationJobParamsSchema = z.object({
18
18
  attachedFiles: z.array(ImageGenerationFileAttachmentSchema),
19
19
  enhancePrompt: z.boolean().optional(),
20
20
  resolution: z.nativeEnum(IMAGE_GENERATION_RESOLUTION).optional(),
21
+ batching: z.number().int().min(1).max(4).optional(),
21
22
  });
22
23
 
23
24
  export type ImageGenerationJobParams = z.infer<typeof ImageGenerationJobParamsSchema>;
@@ -16,6 +16,7 @@ export const VideoEditorJobSchema = ToolJobSchema.extend({
16
16
  inputVideoId: z.string().nullable(),
17
17
  inputVideoUrl: z.string(),
18
18
  outputVideoUrl: z.string().nullable(),
19
+ previewUrl: z.string().nullable().optional(),
19
20
  video: z
20
21
  .object({
21
22
  uuid: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.13.24",
3
+ "version": "0.13.26",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",