@purpleschool/gptbot-tools 0.2.62 → 0.2.63-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 (204) 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 -3
  4. package/build/index.js +3 -3
  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/{sound-generation/queries → photo-sessions/commands/admin}/index.js +3 -3
  11. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
  12. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
  13. package/build/{sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts → photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts} +2 -2
  14. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
  15. package/build/{sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts → photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts} +2 -2
  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 +85 -0
  18. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +29 -0
  19. package/build/photo-sessions/commands/index.d.ts +10 -0
  20. package/build/{sound-generation → photo-sessions}/commands/index.js +10 -8
  21. package/build/photo-sessions/commands/photo-sessions.command.d.ts +305 -0
  22. package/build/photo-sessions/commands/photo-sessions.command.js +38 -0
  23. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +266 -0
  24. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +20 -0
  25. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +203 -0
  26. package/build/{sound-generation/commands/set-reaction-to-sound-generation-job.command.js → photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js} +8 -8
  27. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +201 -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 +239 -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 +206 -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 +3 -0
  34. package/build/{sound-generation/routes → photo-sessions/enums}/index.js +3 -1
  35. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +7 -0
  36. package/build/photo-sessions/enums/photo-session-group-status.enum.js +11 -0
  37. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  38. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  39. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  40. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  41. package/build/photo-sessions/models/index.d.ts +5 -0
  42. package/build/photo-sessions/models/index.js +21 -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-group.schema.d.ts +116 -0
  46. package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
  47. package/build/photo-sessions/models/photo-session-job.schema.d.ts +169 -0
  48. package/build/photo-sessions/models/photo-session-job.schema.js +51 -0
  49. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  50. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  51. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  52. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  53. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  54. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  55. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  56. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  57. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +238 -0
  58. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
  59. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +257 -0
  60. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
  61. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  62. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  63. package/build/photo-sessions/queries/index.d.ts +5 -0
  64. package/build/{sound-generation/models → photo-sessions/queries}/index.js +5 -5
  65. package/build/photo-sessions/routes/index.d.ts +2 -0
  66. package/build/{sound-generation/enums → photo-sessions/routes}/index.js +2 -1
  67. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  68. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  69. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  70. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  71. package/build/tools/enums/tool-content-type.enum.d.ts +2 -2
  72. package/build/tools/enums/tool-content-type.enum.js +1 -1
  73. package/build/tools/enums/tool-type.enum.d.ts +2 -2
  74. package/build/tools/enums/tool-type.enum.js +1 -1
  75. package/build/tools/events/tool-job-complete.event.d.ts +1 -0
  76. package/build/tools/events/tool-job-failed.event.d.ts +1 -0
  77. package/build/tools/models/global-tools-config.schema.d.ts +69 -25
  78. package/build/tools/models/global-tools-config.schema.js +2 -2
  79. package/build/tools/models/tool-job.schema.d.ts +1 -0
  80. package/build/tools/models/tool-job.schema.js +1 -0
  81. package/build/tools/models/tools-with-configs.schema.d.ts +22 -88
  82. package/build/tools/models/tools-with-configs.schema.js +0 -5
  83. package/build/tools/queries/get-global-tools-config.query.d.ts +134 -46
  84. package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -88
  85. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  86. package/build/tts/commands/create-voice-clone.command.js +21 -0
  87. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  88. package/build/tts/commands/create-voice-design.command.js +20 -0
  89. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  90. package/build/tts/commands/delete-voice.command.js +14 -0
  91. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  92. package/build/tts/commands/download-tts-job.command.js +19 -0
  93. package/build/{sound-generation/commands/get-sound-generation-price.command.d.ts → tts/commands/improve-tts-text.command.d.ts} +6 -8
  94. package/build/tts/commands/improve-tts-text.command.js +16 -0
  95. package/build/tts/commands/index.d.ts +7 -0
  96. package/build/tts/commands/index.js +7 -0
  97. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  98. package/build/tts/commands/retry-tts-job.command.js +2 -0
  99. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  100. package/build/tts/commands/select-voice-design.command.js +17 -0
  101. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  102. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  103. package/build/tts/commands/tts.command.d.ts +35 -3
  104. package/build/tts/commands/tts.command.js +4 -1
  105. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  106. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  107. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  108. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  109. package/build/tts/commands/update-voice.command.d.ts +78 -0
  110. package/build/tts/commands/update-voice.command.js +18 -0
  111. package/build/tts/enums/index.d.ts +7 -0
  112. package/build/tts/enums/index.js +7 -0
  113. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  114. package/build/tts/enums/tts-download-format.enum.js +9 -0
  115. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  116. package/build/tts/enums/voice-category.enum.js +23 -0
  117. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  118. package/build/tts/enums/voice-gender.enum.js +8 -0
  119. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  120. package/build/tts/enums/voice-source.enum.js +9 -0
  121. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  122. package/build/tts/enums/voice-status.enum.js +9 -0
  123. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  124. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  125. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  126. package/build/tts/enums/voice-tag.enum.js +24 -0
  127. package/build/tts/models/index.d.ts +7 -0
  128. package/build/tts/models/index.js +7 -0
  129. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  130. package/build/tts/models/tts-config.schema.d.ts +11 -0
  131. package/build/tts/models/tts-config.schema.js +5 -0
  132. package/build/tts/models/tts-job.schema.d.ts +34 -2
  133. package/build/tts/models/tts-job.schema.js +22 -2
  134. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  135. package/build/tts/models/tts-model.schema.d.ts +1 -0
  136. package/build/tts/models/tts-model.schema.js +1 -0
  137. package/build/tts/models/voice-category.schema.d.ts +7 -0
  138. package/build/tts/models/voice-category.schema.js +9 -0
  139. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  140. package/build/tts/models/voice-design-draft.schema.js +13 -0
  141. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  142. package/build/tts/models/voice-design-sample.schema.js +8 -0
  143. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  144. package/build/tts/models/voice-gender.schema.js +9 -0
  145. package/build/tts/models/voice-source.schema.d.ts +7 -0
  146. package/build/tts/models/voice-source.schema.js +9 -0
  147. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  148. package/build/tts/models/voice-tag.schema.js +11 -0
  149. package/build/tts/models/voice.schema.d.ts +34 -0
  150. package/build/tts/models/voice.schema.js +30 -0
  151. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  152. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  153. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  154. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  155. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  156. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  157. package/build/tts/queries/find-voices.query.d.ts +122 -0
  158. package/build/tts/queries/find-voices.query.js +25 -0
  159. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  160. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  161. package/build/tts/queries/index.d.ts +2 -0
  162. package/build/tts/queries/index.js +2 -0
  163. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  164. package/build/tts/routes/tts.amqp.routes.js +9 -0
  165. package/package.json +1 -1
  166. package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +0 -14
  167. package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +0 -14
  168. package/build/sound-generation/commands/get-sound-generation-price.command.js +0 -17
  169. package/build/sound-generation/commands/index.d.ts +0 -8
  170. package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +0 -94
  171. package/build/sound-generation/commands/retry-sound-generation-job.command.js +0 -20
  172. package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +0 -87
  173. package/build/sound-generation/commands/sound-generation.command.d.ts +0 -96
  174. package/build/sound-generation/commands/sound-generation.command.js +0 -27
  175. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +0 -85
  176. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +0 -16
  177. package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +0 -85
  178. package/build/sound-generation/commands/update-sound-generation-job-title.command.js +0 -16
  179. package/build/sound-generation/enums/index.d.ts +0 -1
  180. package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +0 -3
  181. package/build/sound-generation/enums/sound-generation-strategy.enum.js +0 -7
  182. package/build/sound-generation/models/index.d.ts +0 -5
  183. package/build/sound-generation/models/sound-generation-config.schema.d.ts +0 -34
  184. package/build/sound-generation/models/sound-generation-config.schema.js +0 -8
  185. package/build/sound-generation/models/sound-generation-job.schema.d.ts +0 -39
  186. package/build/sound-generation/models/sound-generation-job.schema.js +0 -34
  187. package/build/sound-generation/models/sound-generation-model.schema.d.ts +0 -42
  188. package/build/sound-generation/models/sound-generation-model.schema.js +0 -28
  189. package/build/sound-generation/models/sound-generation-params.schema.d.ts +0 -8
  190. package/build/sound-generation/models/sound-generation-params.schema.js +0 -10
  191. package/build/sound-generation/models/sound-generation-result.schema.d.ts +0 -7
  192. package/build/sound-generation/models/sound-generation-result.schema.js +0 -9
  193. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +0 -84
  194. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +0 -15
  195. package/build/sound-generation/queries/find-sound-generation-jobs.query.d.ts +0 -102
  196. package/build/sound-generation/queries/find-sound-generation-jobs.query.js +0 -35
  197. package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +0 -76
  198. package/build/sound-generation/queries/get-sound-generation-config.query.js +0 -10
  199. package/build/sound-generation/queries/index.d.ts +0 -3
  200. package/build/sound-generation/routes/index.d.ts +0 -1
  201. package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +0 -13
  202. package/build/sound-generation/routes/sound-generation.amqp.routes.js +0 -16
  203. /package/build/{sound-generation → photo-sessions}/index.d.ts +0 -0
  204. /package/build/{sound-generation → photo-sessions}/index.js +0 -0
@@ -21,7 +21,6 @@ const spell_corrector_1 = require("../../spell-corrector");
21
21
  const diagrams_1 = require("../../diagrams");
22
22
  const models_2 = require("../../html-page-builder/models");
23
23
  const image_recognition_1 = require("../../image-recognition");
24
- const sound_generation_1 = require("../../sound-generation");
25
24
  // Discriminated union array: Tools with their configs
26
25
  exports.ToolWithConfigSchema = zod_1.z.discriminatedUnion('contentType', [
27
26
  tool_schema_1.ToolSchema.merge(zod_1.z.object({
@@ -92,9 +91,5 @@ exports.ToolWithConfigSchema = zod_1.z.discriminatedUnion('contentType', [
92
91
  contentType: zod_1.z.literal(enums_1.TOOL_CONTENT_TYPE.IMAGE_RECOGNITION),
93
92
  config: image_recognition_1.ImageRecognitionConfigSchema,
94
93
  })),
95
- tool_schema_1.ToolSchema.merge(zod_1.z.object({
96
- contentType: zod_1.z.literal(enums_1.TOOL_CONTENT_TYPE.SOUND_GENERATION),
97
- config: sound_generation_1.SoundGenerationConfigSchema,
98
- })),
99
94
  ]);
100
95
  exports.ToolsWithConfigsSchema = zod_1.z.array(exports.ToolWithConfigSchema);
@@ -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,13 +920,15 @@ export declare namespace GetGlobalToolsConfigQuery {
909
920
  }[];
910
921
  maxAttachmentsCount: number;
911
922
  };
912
- IMAGE_RECOGNITION: {
923
+ PHOTO_SESSIONS: {
913
924
  models: {
914
925
  uuid: string;
915
926
  title: string;
916
927
  description: string;
917
928
  aiModel: string;
918
- price: number;
929
+ isNew: boolean;
930
+ tierLabel: string;
931
+ pricePerImage: number;
919
932
  order: number;
920
933
  status: import("../..").TOOL_MODEL_STATUS;
921
934
  icons: {
@@ -928,22 +941,57 @@ export declare namespace GetGlobalToolsConfigQuery {
928
941
  png: string;
929
942
  };
930
943
  };
931
- maxPromptLength: number;
944
+ strategy: import("../..").PHOTO_SESSION_STRATEGY;
945
+ maxInputLength: number;
932
946
  params: {
933
947
  imageAttachment: {
934
948
  supported: boolean;
935
949
  maxImages: number;
936
950
  acceptedTypes: string[];
937
951
  };
952
+ aspectRatio: Record<string, {
953
+ width: number;
954
+ height: number;
955
+ }>;
938
956
  };
957
+ pricingRules: {
958
+ condition: {
959
+ withoutSub?: boolean | undefined;
960
+ };
961
+ value: number;
962
+ }[];
939
963
  createdAt: Date;
940
964
  updatedAt: Date;
941
965
  }[];
942
- categories: {
966
+ styles: {
943
967
  uuid: string;
944
- parentId: string | null;
968
+ code: string;
945
969
  title: string;
946
- systemPrompt: 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
+ };
988
+ IMAGE_RECOGNITION: {
989
+ models: {
990
+ uuid: string;
991
+ title: string;
992
+ description: string;
993
+ aiModel: string;
994
+ price: number;
947
995
  order: number;
948
996
  status: import("../..").TOOL_MODEL_STATUS;
949
997
  icons: {
@@ -955,18 +1003,23 @@ export declare namespace GetGlobalToolsConfigQuery {
955
1003
  svg: string;
956
1004
  png: string;
957
1005
  };
958
- } | null;
1006
+ };
1007
+ maxPromptLength: number;
1008
+ params: {
1009
+ imageAttachment: {
1010
+ supported: boolean;
1011
+ maxImages: number;
1012
+ acceptedTypes: string[];
1013
+ };
1014
+ };
959
1015
  createdAt: Date;
960
1016
  updatedAt: Date;
961
1017
  }[];
962
- };
963
- SOUND_GENERATION: {
964
- models: {
1018
+ categories: {
965
1019
  uuid: string;
1020
+ parentId: string | null;
966
1021
  title: string;
967
- description: string;
968
- aiModel: string;
969
- pricePerSecond: number;
1022
+ systemPrompt: string;
970
1023
  order: number;
971
1024
  status: import("../..").TOOL_MODEL_STATUS;
972
1025
  icons: {
@@ -978,16 +1031,7 @@ export declare namespace GetGlobalToolsConfigQuery {
978
1031
  svg: string;
979
1032
  png: string;
980
1033
  };
981
- };
982
- strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
983
- maxPromptLength: number;
984
- params: {
985
- minDurationSeconds: number;
986
- maxDurationSeconds: number;
987
- durationStepSeconds: number;
988
- maxVariations: number;
989
- supportsLoop: boolean;
990
- };
1034
+ } | null;
991
1035
  createdAt: Date;
992
1036
  updatedAt: Date;
993
1037
  }[];
@@ -1536,6 +1580,7 @@ export declare namespace GetGlobalToolsConfigQuery {
1536
1580
  };
1537
1581
  strategy?: string | undefined;
1538
1582
  maxInputLength: number;
1583
+ maxSpeakers: number;
1539
1584
  voices: {
1540
1585
  id: string;
1541
1586
  externalId: string;
@@ -1636,6 +1681,16 @@ export declare namespace GetGlobalToolsConfigQuery {
1636
1681
  createdAt: Date;
1637
1682
  updatedAt: Date;
1638
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;
1639
1694
  };
1640
1695
  SPEECH_TO_TEXT: {
1641
1696
  models: {
@@ -1895,13 +1950,15 @@ export declare namespace GetGlobalToolsConfigQuery {
1895
1950
  }[];
1896
1951
  maxAttachmentsCount: number;
1897
1952
  };
1898
- IMAGE_RECOGNITION: {
1953
+ PHOTO_SESSIONS: {
1899
1954
  models: {
1900
1955
  uuid: string;
1901
1956
  title: string;
1902
1957
  description: string;
1903
1958
  aiModel: string;
1904
- price: number;
1959
+ isNew: boolean;
1960
+ tierLabel: string;
1961
+ pricePerImage: number;
1905
1962
  order: number;
1906
1963
  status: import("../..").TOOL_MODEL_STATUS;
1907
1964
  icons: {
@@ -1914,22 +1971,57 @@ export declare namespace GetGlobalToolsConfigQuery {
1914
1971
  png: string;
1915
1972
  };
1916
1973
  };
1917
- maxPromptLength: number;
1974
+ strategy: import("../..").PHOTO_SESSION_STRATEGY;
1975
+ maxInputLength: number;
1918
1976
  params: {
1919
1977
  imageAttachment: {
1920
1978
  supported: boolean;
1921
1979
  maxImages: number;
1922
1980
  acceptedTypes: string[];
1923
1981
  };
1982
+ aspectRatio: Record<string, {
1983
+ width: number;
1984
+ height: number;
1985
+ }>;
1924
1986
  };
1987
+ pricingRules: {
1988
+ condition: {
1989
+ withoutSub?: boolean | undefined;
1990
+ };
1991
+ value: number;
1992
+ }[];
1925
1993
  createdAt: Date;
1926
1994
  updatedAt: Date;
1927
1995
  }[];
1928
- categories: {
1996
+ styles: {
1929
1997
  uuid: string;
1930
- parentId: string | null;
1998
+ code: string;
1931
1999
  title: string;
1932
- systemPrompt: 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
+ };
2018
+ IMAGE_RECOGNITION: {
2019
+ models: {
2020
+ uuid: string;
2021
+ title: string;
2022
+ description: string;
2023
+ aiModel: string;
2024
+ price: number;
1933
2025
  order: number;
1934
2026
  status: import("../..").TOOL_MODEL_STATUS;
1935
2027
  icons: {
@@ -1941,18 +2033,23 @@ export declare namespace GetGlobalToolsConfigQuery {
1941
2033
  svg: string;
1942
2034
  png: string;
1943
2035
  };
1944
- } | null;
2036
+ };
2037
+ maxPromptLength: number;
2038
+ params: {
2039
+ imageAttachment: {
2040
+ supported: boolean;
2041
+ maxImages: number;
2042
+ acceptedTypes: string[];
2043
+ };
2044
+ };
1945
2045
  createdAt: Date;
1946
2046
  updatedAt: Date;
1947
2047
  }[];
1948
- };
1949
- SOUND_GENERATION: {
1950
- models: {
2048
+ categories: {
1951
2049
  uuid: string;
2050
+ parentId: string | null;
1952
2051
  title: string;
1953
- description: string;
1954
- aiModel: string;
1955
- pricePerSecond: number;
2052
+ systemPrompt: string;
1956
2053
  order: number;
1957
2054
  status: import("../..").TOOL_MODEL_STATUS;
1958
2055
  icons: {
@@ -1964,16 +2061,7 @@ export declare namespace GetGlobalToolsConfigQuery {
1964
2061
  svg: string;
1965
2062
  png: string;
1966
2063
  };
1967
- };
1968
- strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
1969
- maxPromptLength: number;
1970
- params: {
1971
- minDurationSeconds: number;
1972
- maxDurationSeconds: number;
1973
- durationStepSeconds: number;
1974
- maxVariations: number;
1975
- supportsLoop: boolean;
1976
- };
2064
+ } | null;
1977
2065
  createdAt: Date;
1978
2066
  updatedAt: Date;
1979
2067
  }[];
@@ -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;
@@ -1163,50 +1174,6 @@ export declare namespace GetToolsWithConfigsQuery {
1163
1174
  updatedAt: Date;
1164
1175
  }[];
1165
1176
  };
1166
- } | {
1167
- uuid: string;
1168
- title: string;
1169
- description: string;
1170
- icon: string;
1171
- alias: string;
1172
- bgColor: string;
1173
- iconColor: string;
1174
- order: number;
1175
- createdAt: Date;
1176
- updatedAt: Date;
1177
- contentType: import("..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
1178
- config: {
1179
- models: {
1180
- uuid: string;
1181
- title: string;
1182
- description: string;
1183
- aiModel: string;
1184
- pricePerSecond: number;
1185
- order: number;
1186
- status: import("../..").TOOL_MODEL_STATUS;
1187
- icons: {
1188
- light: {
1189
- svg: string;
1190
- png: string;
1191
- };
1192
- dark: {
1193
- svg: string;
1194
- png: string;
1195
- };
1196
- };
1197
- strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
1198
- maxPromptLength: number;
1199
- params: {
1200
- minDurationSeconds: number;
1201
- maxDurationSeconds: number;
1202
- durationStepSeconds: number;
1203
- maxVariations: number;
1204
- supportsLoop: boolean;
1205
- };
1206
- createdAt: Date;
1207
- updatedAt: Date;
1208
- }[];
1209
- };
1210
1177
  })[], unknown, z.core.$ZodTypeInternals<({
1211
1178
  uuid: string;
1212
1179
  title: string;
@@ -1858,6 +1825,7 @@ export declare namespace GetToolsWithConfigsQuery {
1858
1825
  };
1859
1826
  strategy?: string | undefined;
1860
1827
  maxInputLength: number;
1828
+ maxSpeakers: number;
1861
1829
  voices: {
1862
1830
  id: string;
1863
1831
  externalId: string;
@@ -1958,6 +1926,16 @@ export declare namespace GetToolsWithConfigsQuery {
1958
1926
  createdAt: Date;
1959
1927
  updatedAt: Date;
1960
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;
1961
1939
  };
1962
1940
  } | {
1963
1941
  uuid: string;
@@ -2364,50 +2342,6 @@ export declare namespace GetToolsWithConfigsQuery {
2364
2342
  updatedAt: Date;
2365
2343
  }[];
2366
2344
  };
2367
- } | {
2368
- uuid: string;
2369
- title: string;
2370
- description: string;
2371
- icon: string;
2372
- alias: string;
2373
- bgColor: string;
2374
- iconColor: string;
2375
- order: number;
2376
- createdAt: Date;
2377
- updatedAt: Date;
2378
- contentType: import("..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
2379
- config: {
2380
- models: {
2381
- uuid: string;
2382
- title: string;
2383
- description: string;
2384
- aiModel: string;
2385
- pricePerSecond: number;
2386
- order: number;
2387
- status: import("../..").TOOL_MODEL_STATUS;
2388
- icons: {
2389
- light: {
2390
- svg: string;
2391
- png: string;
2392
- };
2393
- dark: {
2394
- svg: string;
2395
- png: string;
2396
- };
2397
- };
2398
- strategy: import("../..").SOUND_GENERATION_STRATEGY.ELEVENLABS_SOUND_GENERATION;
2399
- maxPromptLength: number;
2400
- params: {
2401
- minDurationSeconds: number;
2402
- maxDurationSeconds: number;
2403
- durationStepSeconds: number;
2404
- maxVariations: number;
2405
- supportsLoop: boolean;
2406
- };
2407
- createdAt: Date;
2408
- updatedAt: Date;
2409
- }[];
2410
- };
2411
2345
  })[], unknown>>>;
2412
2346
  code: z.ZodOptional<z.ZodString>;
2413
2347
  message: z.ZodOptional<z.ZodString>;
@@ -0,0 +1,81 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ import { VOICE_GENDER } from '../enums/voice-gender.enum';
4
+ export declare namespace CreateVoiceCloneCommand {
5
+ const RequestSchema: z.ZodObject<{
6
+ userId: z.ZodString;
7
+ locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
8
+ scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
9
+ title: z.ZodString;
10
+ gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
11
+ fileUrl: z.ZodString;
12
+ fileKey: z.ZodString;
13
+ imageUrl: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ type Request = z.infer<typeof RequestSchema>;
16
+ const ResponseSchema: z.ZodObject<{
17
+ isSuccess: z.ZodBoolean;
18
+ data: z.ZodOptional<z.ZodType<{
19
+ uuid: string;
20
+ scope: JOB_SCOPE;
21
+ source: {
22
+ id: import("..").VOICE_SOURCE;
23
+ label: string;
24
+ };
25
+ title: string;
26
+ description: string;
27
+ gender: {
28
+ id: VOICE_GENDER;
29
+ label: string;
30
+ } | null;
31
+ trait: string | null;
32
+ ageRange: string | null;
33
+ categories: {
34
+ id: import("..").VOICE_CATEGORY;
35
+ label: string;
36
+ }[];
37
+ previewUrl: string;
38
+ imageUrl: string | null;
39
+ status: import("..").VOICE_STATUS;
40
+ error: string | null;
41
+ order: number;
42
+ isDeleted: boolean;
43
+ userId: string | null;
44
+ unregisteredUserId: string | null;
45
+ createdAt: Date;
46
+ updatedAt: Date;
47
+ }, unknown, z.core.$ZodTypeInternals<{
48
+ uuid: string;
49
+ scope: JOB_SCOPE;
50
+ source: {
51
+ id: import("..").VOICE_SOURCE;
52
+ label: string;
53
+ };
54
+ title: string;
55
+ description: string;
56
+ gender: {
57
+ id: VOICE_GENDER;
58
+ label: string;
59
+ } | null;
60
+ trait: string | null;
61
+ ageRange: string | null;
62
+ categories: {
63
+ id: import("..").VOICE_CATEGORY;
64
+ label: string;
65
+ }[];
66
+ previewUrl: string;
67
+ imageUrl: string | null;
68
+ status: import("..").VOICE_STATUS;
69
+ error: string | null;
70
+ order: number;
71
+ isDeleted: boolean;
72
+ userId: string | null;
73
+ unregisteredUserId: string | null;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ }, unknown>>>;
77
+ code: z.ZodOptional<z.ZodString>;
78
+ message: z.ZodOptional<z.ZodString>;
79
+ }, z.core.$strip>;
80
+ type Response = z.infer<typeof ResponseSchema>;
81
+ }
@@ -0,0 +1,21 @@
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
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
14
+ title: zod_1.z.string(),
15
+ gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).optional(),
16
+ fileUrl: zod_1.z.string().url(),
17
+ fileKey: zod_1.z.string(),
18
+ imageUrl: zod_1.z.string().url().optional(),
19
+ });
20
+ CreateVoiceCloneCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
21
+ })(CreateVoiceCloneCommand || (exports.CreateVoiceCloneCommand = CreateVoiceCloneCommand = {}));
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ import { VOICE_GENDER } from '../enums/voice-gender.enum';
4
+ export declare namespace CreateVoiceDesignCommand {
5
+ const RequestSchema: z.ZodObject<{
6
+ userId: z.ZodString;
7
+ locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
8
+ scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
9
+ title: z.ZodString;
10
+ gender: z.ZodEnum<typeof VOICE_GENDER>;
11
+ instruction: z.ZodString;
12
+ imageUrl: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ type Request = z.infer<typeof RequestSchema>;
15
+ const ResponseSchema: z.ZodObject<{
16
+ isSuccess: z.ZodBoolean;
17
+ data: z.ZodOptional<z.ZodType<{
18
+ designId: string;
19
+ title: string;
20
+ gender: VOICE_GENDER;
21
+ imageUrl: string | null;
22
+ samples: {
23
+ sampleId: string;
24
+ previewUrl: string;
25
+ }[];
26
+ }, unknown, z.core.$ZodTypeInternals<{
27
+ designId: string;
28
+ title: string;
29
+ gender: VOICE_GENDER;
30
+ imageUrl: string | null;
31
+ samples: {
32
+ sampleId: string;
33
+ previewUrl: string;
34
+ }[];
35
+ }, unknown>>>;
36
+ code: z.ZodOptional<z.ZodString>;
37
+ message: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>;
39
+ type Response = z.infer<typeof ResponseSchema>;
40
+ }
@@ -0,0 +1,20 @@
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
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
14
+ title: zod_1.z.string(),
15
+ gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
16
+ instruction: zod_1.z.string().min(1),
17
+ imageUrl: zod_1.z.string().url().optional(),
18
+ });
19
+ CreateVoiceDesignCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceDesignDraftSchema);
20
+ })(CreateVoiceDesignCommand || (exports.CreateVoiceDesignCommand = CreateVoiceDesignCommand = {}));
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ export declare namespace DeleteVoiceCommand {
4
+ const RequestSchema: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ userId: z.ZodString;
7
+ scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
8
+ }, z.core.$strip>;
9
+ type Request = z.infer<typeof RequestSchema>;
10
+ const ResponseSchema: z.ZodObject<{
11
+ isSuccess: z.ZodBoolean;
12
+ data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
13
+ code: z.ZodOptional<z.ZodString>;
14
+ message: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ type Response = z.infer<typeof ResponseSchema>;
17
+ }
@@ -0,0 +1,14 @@
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
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
12
+ });
13
+ DeleteVoiceCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
14
+ })(DeleteVoiceCommand || (exports.DeleteVoiceCommand = DeleteVoiceCommand = {}));