@purpleschool/gptbot-tools 0.2.58 → 0.2.59-stage2

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 (154) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
  3. package/build/index.d.ts +3 -0
  4. package/build/index.js +3 -0
  5. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
  6. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  7. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  8. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  9. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  10. package/build/photo-sessions/commands/admin/index.js +19 -0
  11. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +55 -0
  12. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +28 -0
  13. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
  14. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +15 -0
  15. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
  16. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
  17. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +46 -0
  18. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +30 -0
  19. package/build/photo-sessions/commands/index.d.ts +10 -0
  20. package/build/photo-sessions/commands/index.js +26 -0
  21. package/build/photo-sessions/commands/photo-sessions.command.d.ts +147 -0
  22. package/build/photo-sessions/commands/photo-sessions.command.js +41 -0
  23. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +142 -0
  24. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +23 -0
  25. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +115 -0
  26. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
  27. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +113 -0
  28. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
  29. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +113 -0
  30. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
  31. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +118 -0
  32. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
  33. package/build/photo-sessions/enums/index.d.ts +2 -0
  34. package/build/photo-sessions/enums/index.js +18 -0
  35. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  36. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  37. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  38. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  39. package/build/photo-sessions/index.d.ts +5 -0
  40. package/build/photo-sessions/index.js +21 -0
  41. package/build/photo-sessions/models/index.d.ts +4 -0
  42. package/build/photo-sessions/models/index.js +20 -0
  43. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  44. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  45. package/build/photo-sessions/models/photo-session-job.schema.d.ts +78 -0
  46. package/build/photo-sessions/models/photo-session-job.schema.js +46 -0
  47. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  48. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  49. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  50. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  51. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  52. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  53. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  54. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  55. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +110 -0
  56. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +10 -0
  57. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +130 -0
  58. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +28 -0
  59. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  60. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  61. package/build/photo-sessions/queries/index.d.ts +5 -0
  62. package/build/photo-sessions/queries/index.js +21 -0
  63. package/build/photo-sessions/routes/index.d.ts +2 -0
  64. package/build/photo-sessions/routes/index.js +18 -0
  65. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  66. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  67. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  68. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  69. package/build/tools/enums/tool-content-type.enum.d.ts +2 -1
  70. package/build/tools/enums/tool-content-type.enum.js +2 -1
  71. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  72. package/build/tools/enums/tool-type.enum.js +1 -0
  73. package/build/tools/models/global-tools-config.schema.d.ts +76 -0
  74. package/build/tools/models/global-tools-config.schema.js +2 -0
  75. package/build/tools/models/tools-with-configs.schema.d.ts +22 -0
  76. package/build/tools/queries/get-global-tools-config.query.d.ts +152 -0
  77. package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -0
  78. package/build/tts/commands/create-voice-clone.command.d.ts +56 -0
  79. package/build/tts/commands/create-voice-clone.command.js +19 -0
  80. package/build/tts/commands/create-voice-design.command.d.ts +35 -0
  81. package/build/tts/commands/create-voice-design.command.js +18 -0
  82. package/build/tts/commands/delete-voice.command.d.ts +15 -0
  83. package/build/tts/commands/delete-voice.command.js +13 -0
  84. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  85. package/build/tts/commands/download-tts-job.command.js +19 -0
  86. package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
  87. package/build/tts/commands/improve-tts-text.command.js +16 -0
  88. package/build/tts/commands/index.d.ts +7 -0
  89. package/build/tts/commands/index.js +7 -0
  90. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  91. package/build/tts/commands/retry-tts-job.command.js +2 -0
  92. package/build/tts/commands/select-voice-design.command.d.ts +53 -0
  93. package/build/tts/commands/select-voice-design.command.js +16 -0
  94. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  95. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  96. package/build/tts/commands/tts.command.d.ts +35 -3
  97. package/build/tts/commands/tts.command.js +4 -1
  98. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  99. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  100. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  101. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  102. package/build/tts/commands/update-voice.command.d.ts +53 -0
  103. package/build/tts/commands/update-voice.command.js +16 -0
  104. package/build/tts/enums/index.d.ts +7 -0
  105. package/build/tts/enums/index.js +7 -0
  106. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  107. package/build/tts/enums/tts-download-format.enum.js +9 -0
  108. package/build/tts/enums/voice-category.enum.d.ts +14 -0
  109. package/build/tts/enums/voice-category.enum.js +18 -0
  110. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  111. package/build/tts/enums/voice-gender.enum.js +8 -0
  112. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  113. package/build/tts/enums/voice-source.enum.js +9 -0
  114. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  115. package/build/tts/enums/voice-status.enum.js +9 -0
  116. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  117. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  118. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  119. package/build/tts/enums/voice-tag.enum.js +24 -0
  120. package/build/tts/models/index.d.ts +5 -0
  121. package/build/tts/models/index.js +5 -0
  122. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  123. package/build/tts/models/tts-config.schema.d.ts +11 -0
  124. package/build/tts/models/tts-config.schema.js +5 -0
  125. package/build/tts/models/tts-job.schema.d.ts +34 -2
  126. package/build/tts/models/tts-job.schema.js +22 -2
  127. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  128. package/build/tts/models/tts-model.schema.d.ts +1 -0
  129. package/build/tts/models/tts-model.schema.js +1 -0
  130. package/build/tts/models/voice-category.schema.d.ts +7 -0
  131. package/build/tts/models/voice-category.schema.js +9 -0
  132. package/build/tts/models/voice-design-draft.schema.d.ts +12 -0
  133. package/build/tts/models/voice-design-draft.schema.js +12 -0
  134. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  135. package/build/tts/models/voice-design-sample.schema.js +8 -0
  136. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  137. package/build/tts/models/voice-tag.schema.js +11 -0
  138. package/build/tts/models/voice.schema.d.ts +25 -0
  139. package/build/tts/models/voice.schema.js +27 -0
  140. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  141. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  142. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  143. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  144. package/build/tts/queries/find-voice-by-id.query.d.ts +53 -0
  145. package/build/tts/queries/find-voice-by-id.query.js +16 -0
  146. package/build/tts/queries/find-voices.query.d.ts +87 -0
  147. package/build/tts/queries/find-voices.query.js +24 -0
  148. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  149. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  150. package/build/tts/queries/index.d.ts +2 -0
  151. package/build/tts/queries/index.js +2 -0
  152. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  153. package/build/tts/routes/tts.amqp.routes.js +9 -0
  154. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PHOTO_SESSIONS_CONTROLLER = void 0;
4
+ exports.PHOTO_SESSIONS_CONTROLLER = 'photo-sessions';
@@ -10,11 +10,12 @@ export declare enum TOOL_CONTENT_TYPE {
10
10
  VIDEO_EDITOR = "VIDEO_EDITOR",
11
11
  MUSIC = "MUSIC",
12
12
  INTERIOR_DESIGN = "INTERIOR_DESIGN",
13
- NONE = "NONE",
13
+ TEXT = "TEXT",
14
14
  MARKETPLACE_CARD_GENERATION = "MARKETPLACE_CARD",
15
15
  SOLVING_EDU_TASK = "SOLVING_EDU_TASK",
16
16
  SPELL_CORRECTOR = "SPELL_CORRECTOR",
17
17
  DIAGRAMS = "DIAGRAMS",
18
18
  HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
19
+ PHOTO_SESSIONS = "PHOTO_SESSIONS",
19
20
  IMAGE_RECOGNITION = "IMAGE_RECOGNITION"
20
21
  }
@@ -14,11 +14,12 @@ var TOOL_CONTENT_TYPE;
14
14
  TOOL_CONTENT_TYPE["VIDEO_EDITOR"] = "VIDEO_EDITOR";
15
15
  TOOL_CONTENT_TYPE["MUSIC"] = "MUSIC";
16
16
  TOOL_CONTENT_TYPE["INTERIOR_DESIGN"] = "INTERIOR_DESIGN";
17
- TOOL_CONTENT_TYPE["NONE"] = "NONE";
17
+ TOOL_CONTENT_TYPE["TEXT"] = "TEXT";
18
18
  TOOL_CONTENT_TYPE["MARKETPLACE_CARD_GENERATION"] = "MARKETPLACE_CARD";
19
19
  TOOL_CONTENT_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
20
20
  TOOL_CONTENT_TYPE["SPELL_CORRECTOR"] = "SPELL_CORRECTOR";
21
21
  TOOL_CONTENT_TYPE["DIAGRAMS"] = "DIAGRAMS";
22
22
  TOOL_CONTENT_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
23
+ TOOL_CONTENT_TYPE["PHOTO_SESSIONS"] = "PHOTO_SESSIONS";
23
24
  TOOL_CONTENT_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
24
25
  })(TOOL_CONTENT_TYPE || (exports.TOOL_CONTENT_TYPE = TOOL_CONTENT_TYPE = {}));
@@ -18,5 +18,6 @@ export declare enum TOOL_TYPE {
18
18
  SOLVING_EDU_TASK = "SOLVING_EDU_TASK",
19
19
  DIAGRAMS = "DIAGRAMS",
20
20
  HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
21
+ PHOTO_SESSION = "PHOTO_SESSION",
21
22
  IMAGE_RECOGNITION = "IMAGE_RECOGNITION"
22
23
  }
@@ -22,5 +22,6 @@ var TOOL_TYPE;
22
22
  TOOL_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
23
23
  TOOL_TYPE["DIAGRAMS"] = "DIAGRAMS";
24
24
  TOOL_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
25
+ TOOL_TYPE["PHOTO_SESSION"] = "PHOTO_SESSION";
25
26
  TOOL_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
26
27
  })(TOOL_TYPE || (exports.TOOL_TYPE = TOOL_TYPE = {}));
@@ -543,6 +543,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
543
543
  }, z.core.$strip>;
544
544
  strategy: z.ZodOptional<z.ZodString>;
545
545
  maxInputLength: z.ZodNumber;
546
+ maxSpeakers: z.ZodNumber;
546
547
  voices: z.ZodArray<z.ZodObject<{
547
548
  id: z.ZodString;
548
549
  externalId: z.ZodString;
@@ -643,6 +644,16 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
643
644
  createdAt: z.ZodDate;
644
645
  updatedAt: z.ZodDate;
645
646
  }, z.core.$strip>>;
647
+ tags: z.ZodArray<z.ZodObject<{
648
+ id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
649
+ group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
650
+ label: z.ZodString;
651
+ }, z.core.$strip>>;
652
+ categories: z.ZodArray<z.ZodObject<{
653
+ id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
654
+ label: z.ZodString;
655
+ }, z.core.$strip>>;
656
+ speakerMarkerLabel: z.ZodString;
646
657
  }, z.core.$strip>;
647
658
  SPEECH_TO_TEXT: z.ZodObject<{
648
659
  models: z.ZodArray<z.ZodObject<{
@@ -902,6 +913,71 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
902
913
  }, z.core.$strip>>;
903
914
  maxAttachmentsCount: z.ZodNumber;
904
915
  }, z.core.$strip>;
916
+ PHOTO_SESSIONS: z.ZodObject<{
917
+ models: z.ZodArray<z.ZodObject<{
918
+ uuid: z.ZodString;
919
+ title: z.ZodString;
920
+ description: z.ZodString;
921
+ aiModel: z.ZodString;
922
+ isNew: z.ZodBoolean;
923
+ tierLabel: z.ZodString;
924
+ pricePerImage: z.ZodNumber;
925
+ order: z.ZodNumber;
926
+ status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
927
+ icons: z.ZodObject<{
928
+ light: z.ZodObject<{
929
+ svg: z.ZodString;
930
+ png: z.ZodString;
931
+ }, z.core.$strip>;
932
+ dark: z.ZodObject<{
933
+ svg: z.ZodString;
934
+ png: z.ZodString;
935
+ }, z.core.$strip>;
936
+ }, z.core.$strip>;
937
+ strategy: z.ZodEnum<typeof import("../..").PHOTO_SESSION_STRATEGY>;
938
+ maxInputLength: z.ZodNumber;
939
+ params: z.ZodObject<{
940
+ imageAttachment: z.ZodObject<{
941
+ supported: z.ZodBoolean;
942
+ maxImages: z.ZodNumber;
943
+ acceptedTypes: z.ZodArray<z.ZodString>;
944
+ }, z.core.$strip>;
945
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
946
+ width: z.ZodNumber;
947
+ height: z.ZodNumber;
948
+ }, z.core.$strip>>;
949
+ }, z.core.$strip>;
950
+ pricingRules: z.ZodArray<z.ZodObject<{
951
+ condition: z.ZodObject<{
952
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
953
+ }, z.core.$strip>;
954
+ value: z.ZodNumber;
955
+ }, z.core.$strip>>;
956
+ createdAt: z.ZodDate;
957
+ updatedAt: z.ZodDate;
958
+ }, z.core.$strip>>;
959
+ styles: z.ZodArray<z.ZodObject<{
960
+ uuid: z.ZodString;
961
+ code: z.ZodString;
962
+ title: z.ZodString;
963
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
964
+ references: z.ZodArray<z.ZodObject<{
965
+ uuid: z.ZodString;
966
+ styleId: z.ZodString;
967
+ photoUrl: z.ZodString;
968
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
969
+ order: z.ZodNumber;
970
+ createdAt: z.ZodDate;
971
+ updatedAt: z.ZodDate;
972
+ }, z.core.$strip>>;
973
+ createdAt: z.ZodDate;
974
+ updatedAt: z.ZodDate;
975
+ }, z.core.$strip>>;
976
+ looks: z.ZodArray<z.ZodObject<{
977
+ type: z.ZodEnum<typeof import("../..").PHOTO_SESSION_LOOK_TYPE>;
978
+ maxPhotos: z.ZodNumber;
979
+ }, z.core.$strip>>;
980
+ }, z.core.$strip>;
905
981
  IMAGE_RECOGNITION: z.ZodObject<{
906
982
  models: z.ZodArray<z.ZodObject<{
907
983
  uuid: z.ZodString;
@@ -19,6 +19,7 @@ const solving_edu_task_1 = require("../../solving-edu-task");
19
19
  const spell_corrector_1 = require("../../spell-corrector");
20
20
  const diagrams_1 = require("../../diagrams");
21
21
  const models_2 = require("../../html-page-builder/models");
22
+ const photo_sessions_1 = require("../../photo-sessions");
22
23
  const image_recognition_1 = require("../../image-recognition");
23
24
  exports.GlobalToolsConfigSchema = zod_1.z.object({
24
25
  [enums_1.TOOL_CONTENT_TYPE.VIDEO]: video_1.VideoConfigSchema,
@@ -37,5 +38,6 @@ exports.GlobalToolsConfigSchema = zod_1.z.object({
37
38
  [enums_1.TOOL_CONTENT_TYPE.SPELL_CORRECTOR]: spell_corrector_1.SpellCorrectorToolConfigSchema,
38
39
  [enums_1.TOOL_CONTENT_TYPE.DIAGRAMS]: diagrams_1.DiagramsConfigSchema,
39
40
  [enums_1.TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER]: models_2.HtmlPageBuilderConfigSchema,
41
+ [enums_1.TOOL_CONTENT_TYPE.PHOTO_SESSIONS]: photo_sessions_1.PhotoSessionConfigSchema,
40
42
  [enums_1.TOOL_CONTENT_TYPE.IMAGE_RECOGNITION]: image_recognition_1.ImageRecognitionConfigSchema,
41
43
  });
@@ -651,6 +651,7 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
651
651
  }, z.core.$strip>;
652
652
  strategy: z.ZodOptional<z.ZodString>;
653
653
  maxInputLength: z.ZodNumber;
654
+ maxSpeakers: z.ZodNumber;
654
655
  voices: z.ZodArray<z.ZodObject<{
655
656
  id: z.ZodString;
656
657
  externalId: z.ZodString;
@@ -751,6 +752,16 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
751
752
  createdAt: z.ZodDate;
752
753
  updatedAt: z.ZodDate;
753
754
  }, z.core.$strip>>;
755
+ tags: z.ZodArray<z.ZodObject<{
756
+ id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
757
+ group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
758
+ label: z.ZodString;
759
+ }, z.core.$strip>>;
760
+ categories: z.ZodArray<z.ZodObject<{
761
+ id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
762
+ label: z.ZodString;
763
+ }, z.core.$strip>>;
764
+ speakerMarkerLabel: z.ZodString;
754
765
  }, z.core.$strip>;
755
766
  }, z.core.$strip>, z.ZodObject<{
756
767
  uuid: z.ZodString;
@@ -1810,6 +1821,7 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
1810
1821
  }, z.core.$strip>;
1811
1822
  strategy: z.ZodOptional<z.ZodString>;
1812
1823
  maxInputLength: z.ZodNumber;
1824
+ maxSpeakers: z.ZodNumber;
1813
1825
  voices: z.ZodArray<z.ZodObject<{
1814
1826
  id: z.ZodString;
1815
1827
  externalId: z.ZodString;
@@ -1910,6 +1922,16 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
1910
1922
  createdAt: z.ZodDate;
1911
1923
  updatedAt: z.ZodDate;
1912
1924
  }, z.core.$strip>>;
1925
+ tags: z.ZodArray<z.ZodObject<{
1926
+ id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
1927
+ group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
1928
+ label: z.ZodString;
1929
+ }, z.core.$strip>>;
1930
+ categories: z.ZodArray<z.ZodObject<{
1931
+ id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
1932
+ label: z.ZodString;
1933
+ }, z.core.$strip>>;
1934
+ speakerMarkerLabel: z.ZodString;
1913
1935
  }, z.core.$strip>;
1914
1936
  }, z.core.$strip>, z.ZodObject<{
1915
1937
  uuid: z.ZodString;
@@ -550,6 +550,7 @@ export declare namespace GetGlobalToolsConfigQuery {
550
550
  };
551
551
  strategy?: string | undefined;
552
552
  maxInputLength: number;
553
+ maxSpeakers: number;
553
554
  voices: {
554
555
  id: string;
555
556
  externalId: string;
@@ -650,6 +651,16 @@ export declare namespace GetGlobalToolsConfigQuery {
650
651
  createdAt: Date;
651
652
  updatedAt: Date;
652
653
  }[];
654
+ tags: {
655
+ id: import("../..").VOICE_TAG;
656
+ group: import("../..").VOICE_TAG_GROUP;
657
+ label: string;
658
+ }[];
659
+ categories: {
660
+ id: import("../..").VOICE_CATEGORY;
661
+ label: string;
662
+ }[];
663
+ speakerMarkerLabel: string;
653
664
  };
654
665
  SPEECH_TO_TEXT: {
655
666
  models: {
@@ -909,6 +920,71 @@ export declare namespace GetGlobalToolsConfigQuery {
909
920
  }[];
910
921
  maxAttachmentsCount: number;
911
922
  };
923
+ PHOTO_SESSIONS: {
924
+ models: {
925
+ uuid: string;
926
+ title: string;
927
+ description: string;
928
+ aiModel: string;
929
+ isNew: boolean;
930
+ tierLabel: string;
931
+ pricePerImage: number;
932
+ order: number;
933
+ status: import("../..").TOOL_MODEL_STATUS;
934
+ icons: {
935
+ light: {
936
+ svg: string;
937
+ png: string;
938
+ };
939
+ dark: {
940
+ svg: string;
941
+ png: string;
942
+ };
943
+ };
944
+ strategy: import("../..").PHOTO_SESSION_STRATEGY;
945
+ maxInputLength: number;
946
+ params: {
947
+ imageAttachment: {
948
+ supported: boolean;
949
+ maxImages: number;
950
+ acceptedTypes: string[];
951
+ };
952
+ aspectRatio: Record<string, {
953
+ width: number;
954
+ height: number;
955
+ }>;
956
+ };
957
+ pricingRules: {
958
+ condition: {
959
+ withoutSub?: boolean | undefined;
960
+ };
961
+ value: number;
962
+ }[];
963
+ createdAt: Date;
964
+ updatedAt: Date;
965
+ }[];
966
+ styles: {
967
+ uuid: string;
968
+ code: string;
969
+ title: string;
970
+ description?: string | null | undefined;
971
+ references: {
972
+ uuid: string;
973
+ styleId: string;
974
+ photoUrl: string;
975
+ description?: string | null | undefined;
976
+ order: number;
977
+ createdAt: Date;
978
+ updatedAt: Date;
979
+ }[];
980
+ createdAt: Date;
981
+ updatedAt: Date;
982
+ }[];
983
+ looks: {
984
+ type: import("../..").PHOTO_SESSION_LOOK_TYPE;
985
+ maxPhotos: number;
986
+ }[];
987
+ };
912
988
  IMAGE_RECOGNITION: {
913
989
  models: {
914
990
  uuid: string;
@@ -1504,6 +1580,7 @@ export declare namespace GetGlobalToolsConfigQuery {
1504
1580
  };
1505
1581
  strategy?: string | undefined;
1506
1582
  maxInputLength: number;
1583
+ maxSpeakers: number;
1507
1584
  voices: {
1508
1585
  id: string;
1509
1586
  externalId: string;
@@ -1604,6 +1681,16 @@ export declare namespace GetGlobalToolsConfigQuery {
1604
1681
  createdAt: Date;
1605
1682
  updatedAt: Date;
1606
1683
  }[];
1684
+ tags: {
1685
+ id: import("../..").VOICE_TAG;
1686
+ group: import("../..").VOICE_TAG_GROUP;
1687
+ label: string;
1688
+ }[];
1689
+ categories: {
1690
+ id: import("../..").VOICE_CATEGORY;
1691
+ label: string;
1692
+ }[];
1693
+ speakerMarkerLabel: string;
1607
1694
  };
1608
1695
  SPEECH_TO_TEXT: {
1609
1696
  models: {
@@ -1863,6 +1950,71 @@ export declare namespace GetGlobalToolsConfigQuery {
1863
1950
  }[];
1864
1951
  maxAttachmentsCount: number;
1865
1952
  };
1953
+ PHOTO_SESSIONS: {
1954
+ models: {
1955
+ uuid: string;
1956
+ title: string;
1957
+ description: string;
1958
+ aiModel: string;
1959
+ isNew: boolean;
1960
+ tierLabel: string;
1961
+ pricePerImage: number;
1962
+ order: number;
1963
+ status: import("../..").TOOL_MODEL_STATUS;
1964
+ icons: {
1965
+ light: {
1966
+ svg: string;
1967
+ png: string;
1968
+ };
1969
+ dark: {
1970
+ svg: string;
1971
+ png: string;
1972
+ };
1973
+ };
1974
+ strategy: import("../..").PHOTO_SESSION_STRATEGY;
1975
+ maxInputLength: number;
1976
+ params: {
1977
+ imageAttachment: {
1978
+ supported: boolean;
1979
+ maxImages: number;
1980
+ acceptedTypes: string[];
1981
+ };
1982
+ aspectRatio: Record<string, {
1983
+ width: number;
1984
+ height: number;
1985
+ }>;
1986
+ };
1987
+ pricingRules: {
1988
+ condition: {
1989
+ withoutSub?: boolean | undefined;
1990
+ };
1991
+ value: number;
1992
+ }[];
1993
+ createdAt: Date;
1994
+ updatedAt: Date;
1995
+ }[];
1996
+ styles: {
1997
+ uuid: string;
1998
+ code: string;
1999
+ title: string;
2000
+ description?: string | null | undefined;
2001
+ references: {
2002
+ uuid: string;
2003
+ styleId: string;
2004
+ photoUrl: string;
2005
+ description?: string | null | undefined;
2006
+ order: number;
2007
+ createdAt: Date;
2008
+ updatedAt: Date;
2009
+ }[];
2010
+ createdAt: Date;
2011
+ updatedAt: Date;
2012
+ }[];
2013
+ looks: {
2014
+ type: import("../..").PHOTO_SESSION_LOOK_TYPE;
2015
+ maxPhotos: number;
2016
+ }[];
2017
+ };
1866
2018
  IMAGE_RECOGNITION: {
1867
2019
  models: {
1868
2020
  uuid: string;
@@ -657,6 +657,7 @@ export declare namespace GetToolsWithConfigsQuery {
657
657
  };
658
658
  strategy?: string | undefined;
659
659
  maxInputLength: number;
660
+ maxSpeakers: number;
660
661
  voices: {
661
662
  id: string;
662
663
  externalId: string;
@@ -757,6 +758,16 @@ export declare namespace GetToolsWithConfigsQuery {
757
758
  createdAt: Date;
758
759
  updatedAt: Date;
759
760
  }[];
761
+ tags: {
762
+ id: import("../..").VOICE_TAG;
763
+ group: import("../..").VOICE_TAG_GROUP;
764
+ label: string;
765
+ }[];
766
+ categories: {
767
+ id: import("../..").VOICE_CATEGORY;
768
+ label: string;
769
+ }[];
770
+ speakerMarkerLabel: string;
760
771
  };
761
772
  } | {
762
773
  uuid: string;
@@ -1814,6 +1825,7 @@ export declare namespace GetToolsWithConfigsQuery {
1814
1825
  };
1815
1826
  strategy?: string | undefined;
1816
1827
  maxInputLength: number;
1828
+ maxSpeakers: number;
1817
1829
  voices: {
1818
1830
  id: string;
1819
1831
  externalId: string;
@@ -1914,6 +1926,16 @@ export declare namespace GetToolsWithConfigsQuery {
1914
1926
  createdAt: Date;
1915
1927
  updatedAt: Date;
1916
1928
  }[];
1929
+ tags: {
1930
+ id: import("../..").VOICE_TAG;
1931
+ group: import("../..").VOICE_TAG_GROUP;
1932
+ label: string;
1933
+ }[];
1934
+ categories: {
1935
+ id: import("../..").VOICE_CATEGORY;
1936
+ label: string;
1937
+ }[];
1938
+ speakerMarkerLabel: string;
1917
1939
  };
1918
1940
  } | {
1919
1941
  uuid: string;
@@ -0,0 +1,56 @@
1
+ import { z } from 'zod';
2
+ import { VOICE_GENDER } from '../enums/voice-gender.enum';
3
+ export declare namespace CreateVoiceCloneCommand {
4
+ const RequestSchema: z.ZodObject<{
5
+ userId: z.ZodString;
6
+ locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
7
+ title: z.ZodString;
8
+ gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
9
+ fileUrl: z.ZodString;
10
+ fileKey: z.ZodString;
11
+ }, z.core.$strip>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ isSuccess: z.ZodBoolean;
15
+ data: z.ZodOptional<z.ZodType<{
16
+ uuid: string;
17
+ source: import("..").VOICE_SOURCE;
18
+ title: string;
19
+ description: string;
20
+ gender: VOICE_GENDER | null;
21
+ trait: string | null;
22
+ ageRange: string | null;
23
+ categories: import("..").VOICE_CATEGORY[];
24
+ previewUrl: string;
25
+ status: import("..").VOICE_STATUS;
26
+ error: string | null;
27
+ order: number;
28
+ isDeleted: boolean;
29
+ userId: string | null;
30
+ unregisteredUserId: string | null;
31
+ createdAt: Date;
32
+ updatedAt: Date;
33
+ }, unknown, z.core.$ZodTypeInternals<{
34
+ uuid: string;
35
+ source: import("..").VOICE_SOURCE;
36
+ title: string;
37
+ description: string;
38
+ gender: VOICE_GENDER | null;
39
+ trait: string | null;
40
+ ageRange: string | null;
41
+ categories: import("..").VOICE_CATEGORY[];
42
+ previewUrl: string;
43
+ status: import("..").VOICE_STATUS;
44
+ error: string | null;
45
+ order: number;
46
+ isDeleted: boolean;
47
+ userId: string | null;
48
+ unregisteredUserId: string | null;
49
+ createdAt: Date;
50
+ updatedAt: Date;
51
+ }, unknown>>>;
52
+ code: z.ZodOptional<z.ZodString>;
53
+ message: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strip>;
55
+ type Response = z.infer<typeof ResponseSchema>;
56
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateVoiceCloneCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const voice_gender_enum_1 = require("../enums/voice-gender.enum");
7
+ const models_1 = require("../models");
8
+ var CreateVoiceCloneCommand;
9
+ (function (CreateVoiceCloneCommand) {
10
+ CreateVoiceCloneCommand.RequestSchema = zod_1.z.object({
11
+ userId: zod_1.z.string().uuid(),
12
+ locale: common_1.LocaleSchema.optional(),
13
+ title: zod_1.z.string(),
14
+ gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).optional(),
15
+ fileUrl: zod_1.z.string().url(),
16
+ fileKey: zod_1.z.string(),
17
+ });
18
+ CreateVoiceCloneCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
19
+ })(CreateVoiceCloneCommand || (exports.CreateVoiceCloneCommand = CreateVoiceCloneCommand = {}));
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ import { VOICE_GENDER } from '../enums/voice-gender.enum';
3
+ export declare namespace CreateVoiceDesignCommand {
4
+ const RequestSchema: z.ZodObject<{
5
+ userId: z.ZodString;
6
+ locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
7
+ title: z.ZodString;
8
+ gender: z.ZodEnum<typeof VOICE_GENDER>;
9
+ instruction: z.ZodString;
10
+ }, z.core.$strip>;
11
+ type Request = z.infer<typeof RequestSchema>;
12
+ const ResponseSchema: z.ZodObject<{
13
+ isSuccess: z.ZodBoolean;
14
+ data: z.ZodOptional<z.ZodType<{
15
+ designId: string;
16
+ title: string;
17
+ gender: VOICE_GENDER;
18
+ samples: {
19
+ sampleId: string;
20
+ previewUrl: string;
21
+ }[];
22
+ }, unknown, z.core.$ZodTypeInternals<{
23
+ designId: string;
24
+ title: string;
25
+ gender: VOICE_GENDER;
26
+ samples: {
27
+ sampleId: string;
28
+ previewUrl: string;
29
+ }[];
30
+ }, unknown>>>;
31
+ code: z.ZodOptional<z.ZodString>;
32
+ message: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ type Response = z.infer<typeof ResponseSchema>;
35
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateVoiceDesignCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const voice_gender_enum_1 = require("../enums/voice-gender.enum");
7
+ const models_1 = require("../models");
8
+ var CreateVoiceDesignCommand;
9
+ (function (CreateVoiceDesignCommand) {
10
+ CreateVoiceDesignCommand.RequestSchema = zod_1.z.object({
11
+ userId: zod_1.z.string().uuid(),
12
+ locale: common_1.LocaleSchema.optional(),
13
+ title: zod_1.z.string(),
14
+ gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
15
+ instruction: zod_1.z.string().min(1),
16
+ });
17
+ CreateVoiceDesignCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceDesignDraftSchema);
18
+ })(CreateVoiceDesignCommand || (exports.CreateVoiceDesignCommand = CreateVoiceDesignCommand = {}));
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteVoiceCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ userId: z.ZodString;
6
+ }, z.core.$strip>;
7
+ type Request = z.infer<typeof RequestSchema>;
8
+ const ResponseSchema: z.ZodObject<{
9
+ isSuccess: z.ZodBoolean;
10
+ data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
11
+ code: z.ZodOptional<z.ZodString>;
12
+ message: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ type Response = z.infer<typeof ResponseSchema>;
15
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteVoiceCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ var DeleteVoiceCommand;
7
+ (function (DeleteVoiceCommand) {
8
+ DeleteVoiceCommand.RequestSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ userId: zod_1.z.string().uuid(),
11
+ });
12
+ DeleteVoiceCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
13
+ })(DeleteVoiceCommand || (exports.DeleteVoiceCommand = DeleteVoiceCommand = {}));
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ import { TTS_DOWNLOAD_FORMAT } from '../enums/tts-download-format.enum';
3
+ export declare namespace DownloadTTSJobCommand {
4
+ const RequestSchema: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ format: z.ZodEnum<typeof TTS_DOWNLOAD_FORMAT>;
9
+ }, z.core.$strip>;
10
+ type Request = z.infer<typeof RequestSchema>;
11
+ const ResponseDataSchema: z.ZodObject<{
12
+ url: z.ZodString;
13
+ }, z.core.$strip>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ isSuccess: z.ZodBoolean;
16
+ data: z.ZodOptional<z.ZodType<{
17
+ url: string;
18
+ }, unknown, z.core.$ZodTypeInternals<{
19
+ url: string;
20
+ }, unknown>>>;
21
+ code: z.ZodOptional<z.ZodString>;
22
+ message: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ type Response = z.infer<typeof ResponseSchema>;
25
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DownloadTTSJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const tts_download_format_enum_1 = require("../enums/tts-download-format.enum");
7
+ var DownloadTTSJobCommand;
8
+ (function (DownloadTTSJobCommand) {
9
+ DownloadTTSJobCommand.RequestSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ userId: zod_1.z.string().uuid().nullable().optional(),
12
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
+ format: zod_1.z.nativeEnum(tts_download_format_enum_1.TTS_DOWNLOAD_FORMAT),
14
+ });
15
+ DownloadTTSJobCommand.ResponseDataSchema = zod_1.z.object({
16
+ url: zod_1.z.string(),
17
+ });
18
+ DownloadTTSJobCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(DownloadTTSJobCommand.ResponseDataSchema);
19
+ })(DownloadTTSJobCommand || (exports.DownloadTTSJobCommand = DownloadTTSJobCommand = {}));