@purpleschool/gptbot 0.15.60-stage2 → 0.15.61

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 (269) hide show
  1. package/build/api/controllers/http/avatar-studio.d.ts +2 -5
  2. package/build/api/controllers/http/avatar-studio.js +4 -6
  3. package/build/api/controllers/http/index.d.ts +0 -1
  4. package/build/api/controllers/http/index.js +0 -1
  5. package/build/api/controllers/http/tts.d.ts +0 -9
  6. package/build/api/controllers/http/tts.js +0 -9
  7. package/build/api/routes.d.ts +3 -50
  8. package/build/api/routes.js +3 -50
  9. package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +1 -11
  10. package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +1 -1
  11. package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +1 -1
  12. package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +1 -1
  13. package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +1 -1
  14. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.d.ts +2 -4
  15. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.js +2 -4
  16. package/build/commands/avatar-studio/scene/{apply-avatar-studio-voice-to-all-scenes.command.d.ts → apply-avatar-studio-voice-sample-to-all-scenes.command.d.ts} +3 -3
  17. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-sample-to-all-scenes.command.js +15 -0
  18. package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +1 -1
  19. package/build/commands/avatar-studio/scene/index.d.ts +1 -1
  20. package/build/commands/avatar-studio/scene/index.js +1 -1
  21. package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +1 -1
  22. package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +1 -1
  23. package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +2 -2
  24. package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +1 -1
  25. package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +1 -1
  26. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +6 -5
  27. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +12 -7
  28. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +56 -26
  29. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.js +7 -6
  30. package/build/commands/avatar-studio/voice/index.d.ts +0 -3
  31. package/build/commands/avatar-studio/voice/index.js +0 -3
  32. package/build/commands/photo-studio/get-photo-studio-config.query.d.ts +2 -0
  33. package/build/commands/product/create-product.command.d.ts +100 -0
  34. package/build/commands/product/find-product.command.d.ts +100 -0
  35. package/build/commands/product/get-my-products.command.d.ts +50 -0
  36. package/build/commands/product/update-product.command.d.ts +100 -0
  37. package/build/commands/subscription/create-subscription.command.d.ts +100 -0
  38. package/build/commands/subscription/find-subscription.command.d.ts +150 -0
  39. package/build/commands/subscription/get-available-upgrades.command.d.ts +100 -0
  40. package/build/commands/subscription/get-free-subscription.command.d.ts +50 -0
  41. package/build/commands/subscription/get-subscriptions-summary.command.d.ts +250 -0
  42. package/build/commands/subscription/update-subscription.command.d.ts +100 -0
  43. package/build/commands/team-account/find-current-team-account-products-by-team-account-id.command.d.ts +50 -0
  44. package/build/commands/team-account/find-current-team-account-products.command.d.ts +50 -0
  45. package/build/commands/team-account/find-current-team-account-subscriptions-by-team-account-id.command.d.ts +50 -0
  46. package/build/commands/team-account/find-current-team-account-subscriptions.command.d.ts +50 -0
  47. package/build/commands/team-account/find-team-account-products.command.d.ts +50 -0
  48. package/build/commands/team-account/find-team-account-subscriptions.command.d.ts +100 -0
  49. package/build/commands/team-account/get-team-account-available-upgrades.command.d.ts +50 -0
  50. package/build/commands/team-to-product/get-team-to-products.command.d.ts +50 -0
  51. package/build/commands/team-to-subscription/get-team-to-subscriptions.command.d.ts +50 -0
  52. package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +0 -2
  53. package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +0 -2
  54. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +0 -2
  55. package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +0 -2
  56. package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +0 -2
  57. package/build/commands/tools/image-editor/find-image-editor-job-by-uuid.command.d.ts +0 -2
  58. package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +0 -2
  59. package/build/commands/tools/image-editor/get-image-editor-tool-config.command.d.ts +1 -0
  60. package/build/commands/tools/image-editor/retry-image-editor-job.command.d.ts +0 -2
  61. package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.d.ts +0 -2
  62. package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.d.ts +0 -2
  63. package/build/commands/tools/image-editor/update-image-editor-job-title.command.d.ts +0 -2
  64. package/build/commands/tools/image-recognition/find-image-recognition-job-by-uuid.command.d.ts +0 -2
  65. package/build/commands/tools/image-recognition/find-image-recognition-jobs.command.d.ts +0 -2
  66. package/build/commands/tools/image-recognition/image-recognition.command.d.ts +0 -2
  67. package/build/commands/tools/image-recognition/retry-image-recognition-job.command.d.ts +0 -2
  68. package/build/commands/tools/image-recognition/set-reaction-to-image-recognition-job.command.d.ts +0 -2
  69. package/build/commands/tools/image-recognition/update-image-recognition-job-favorite.command.d.ts +0 -2
  70. package/build/commands/tools/image-recognition/update-image-recognition-job-title.command.d.ts +0 -2
  71. package/build/commands/tools/index.d.ts +0 -1
  72. package/build/commands/tools/index.js +0 -1
  73. package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.d.ts +0 -2
  74. package/build/commands/tools/interior-design/find-interior-design-jobs.command.d.ts +0 -2
  75. package/build/commands/tools/interior-design/retry-interior-design-job.command.d.ts +0 -2
  76. package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.d.ts +0 -2
  77. package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.d.ts +0 -2
  78. package/build/commands/tools/interior-design/update-interior-design-job-title.command.d.ts +0 -2
  79. package/build/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.d.ts +0 -2
  80. package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.d.ts +0 -2
  81. package/build/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.d.ts +0 -2
  82. package/build/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.d.ts +0 -2
  83. package/build/commands/tools/solving-edu-task/solving-edu-task.command.d.ts +0 -2
  84. package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.d.ts +0 -2
  85. package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.d.ts +0 -2
  86. package/build/commands/tools/tool/find-grouped-tools.command.d.ts +1 -0
  87. package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +1 -13
  88. package/build/commands/tools/tts/find-tts-jobs.command.d.ts +1 -13
  89. package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +0 -11
  90. package/build/commands/tools/tts/index.d.ts +0 -9
  91. package/build/commands/tools/tts/index.js +0 -9
  92. package/build/commands/tools/tts/retry-tts-job.command.d.ts +1 -13
  93. package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +1 -13
  94. package/build/commands/tools/tts/tts.command.d.ts +1 -6
  95. package/build/commands/tools/tts/tts.command.js +1 -7
  96. package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +1 -13
  97. package/build/commands/tools/tts/update-tts-job-title.command.d.ts +1 -13
  98. package/build/commands/user/get-user-products.command.d.ts +50 -0
  99. package/build/commands/user/get-user-subscriptions.command.d.ts +50 -0
  100. package/build/commands/user-to-subscription/get-user-to-subscriptions.command.d.ts +50 -0
  101. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +0 -1
  102. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +0 -1
  103. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.d.ts +2 -1
  104. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.js +1 -0
  105. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.d.ts +1 -1
  106. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.js +1 -1
  107. package/build/constants/index.d.ts +0 -2
  108. package/build/constants/index.js +0 -2
  109. package/build/constants/subscription/enums/subscription-feature-type.enum.d.ts +2 -0
  110. package/build/constants/subscription/enums/subscription-feature-type.enum.js +2 -0
  111. package/build/constants/tool/enums/index.d.ts +0 -1
  112. package/build/constants/tool/enums/index.js +0 -1
  113. package/build/constants/tool/enums/tool-group.enum.d.ts +1 -1
  114. package/build/constants/tool/enums/tool-group.enum.js +1 -1
  115. package/build/helpers/image-editor/calculate-image-editor-price.helper.d.ts +2 -1
  116. package/build/helpers/image-editor/calculate-image-editor-price.helper.js +4 -1
  117. package/build/helpers/index.d.ts +0 -1
  118. package/build/helpers/index.js +0 -1
  119. package/build/models/avatar-studio/avatar-studio.schema.d.ts +6 -6
  120. package/build/models/avatar-studio/avatar-studio.schema.js +3 -3
  121. package/build/models/canvas-node-definition.schema.d.ts +3 -33
  122. package/build/models/product.schema.d.ts +50 -0
  123. package/build/models/subscription-feature.schema.d.ts +103 -0
  124. package/build/models/subscription-feature.schema.js +14 -1
  125. package/build/models/subscription-upgrade-schema.d.ts +50 -0
  126. package/build/models/subscription.schema.d.ts +250 -0
  127. package/build/models/team-account/team-to-product.schema.d.ts +50 -0
  128. package/build/models/team-account/team-to-subscription.schema.d.ts +50 -0
  129. package/build/models/tool-group.schema.d.ts +1 -0
  130. package/build/models/tool-group.schema.js +1 -0
  131. package/build/models/tools/common/attached-tool-file.schema.d.ts +0 -2
  132. package/build/models/tools/common/attached-tool-file.schema.js +0 -2
  133. package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +0 -4
  134. package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +0 -2
  135. package/build/models/tools/image-editor/image-editor-config.schema.d.ts +1 -0
  136. package/build/models/tools/image-editor/image-editor-job.schema.d.ts +0 -4
  137. package/build/models/tools/image-editor/image-editor-model.schema.d.ts +3 -0
  138. package/build/models/tools/image-editor/image-editor-model.schema.js +1 -0
  139. package/build/models/tools/image-recognition/image-recognition-job.schema.d.ts +0 -4
  140. package/build/models/tools/index.d.ts +0 -1
  141. package/build/models/tools/index.js +0 -1
  142. package/build/models/tools/interior-design/interior-design-job.schema.d.ts +0 -4
  143. package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.d.ts +0 -4
  144. package/build/models/tools/tts/index.d.ts +0 -3
  145. package/build/models/tools/tts/index.js +0 -3
  146. package/build/models/tools/tts/tts-config.schema.d.ts +0 -23
  147. package/build/models/tools/tts/tts-config.schema.js +1 -14
  148. package/build/models/tools/tts/tts-job.schema.d.ts +1 -26
  149. package/build/models/tools/tts/tts-job.schema.js +2 -16
  150. package/build/models/tools/tts/tts-model.schema.d.ts +0 -1
  151. package/build/models/tools/tts/tts-model.schema.js +0 -1
  152. package/build/models/user-to-product.schema.d.ts +50 -0
  153. package/build/models/user-to-subscription.schema.d.ts +150 -0
  154. package/package.json +1 -1
  155. package/build/api/controllers/http/photo-session.d.ts +0 -20
  156. package/build/api/controllers/http/photo-session.js +0 -23
  157. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js +0 -17
  158. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +0 -43
  159. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.js +0 -19
  160. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.d.ts +0 -11
  161. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.js +0 -13
  162. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +0 -36
  163. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.js +0 -11
  164. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +0 -39
  165. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +0 -22
  166. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +0 -9
  167. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +0 -11
  168. package/build/commands/tools/photo-session/admin/index.d.ts +0 -4
  169. package/build/commands/tools/photo-session/admin/index.js +0 -20
  170. package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +0 -8
  171. package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +0 -11
  172. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +0 -38
  173. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +0 -21
  174. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +0 -5
  175. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +0 -8
  176. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +0 -9
  177. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +0 -11
  178. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +0 -119
  179. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +0 -14
  180. package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +0 -128
  181. package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +0 -24
  182. package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +0 -75
  183. package/build/commands/tools/photo-session/get-photo-session-config.command.js +0 -11
  184. package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +0 -23
  185. package/build/commands/tools/photo-session/get-photo-session-styles.command.js +0 -11
  186. package/build/commands/tools/photo-session/index.d.ts +0 -13
  187. package/build/commands/tools/photo-session/index.js +0 -29
  188. package/build/commands/tools/photo-session/photo-session.command.d.ts +0 -138
  189. package/build/commands/tools/photo-session/photo-session.command.js +0 -25
  190. package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +0 -100
  191. package/build/commands/tools/photo-session/retry-photo-session-job.command.js +0 -14
  192. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +0 -106
  193. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +0 -28
  194. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +0 -104
  195. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +0 -17
  196. package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +0 -123
  197. package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +0 -17
  198. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +0 -105
  199. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +0 -23
  200. package/build/commands/tools/tts/create-voice-clone.command.d.ts +0 -44
  201. package/build/commands/tools/tts/create-voice-clone.command.js +0 -18
  202. package/build/commands/tools/tts/create-voice-design.command.d.ts +0 -24
  203. package/build/commands/tools/tts/create-voice-design.command.js +0 -18
  204. package/build/commands/tools/tts/delete-voice.command.d.ts +0 -9
  205. package/build/commands/tools/tts/delete-voice.command.js +0 -11
  206. package/build/commands/tools/tts/download-tts-job.command.d.ts +0 -18
  207. package/build/commands/tools/tts/download-tts-job.command.js +0 -17
  208. package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +0 -40
  209. package/build/commands/tools/tts/find-voice-by-uuid.query.js +0 -14
  210. package/build/commands/tools/tts/find-voices.query.d.ts +0 -48
  211. package/build/commands/tools/tts/find-voices.query.js +0 -18
  212. package/build/commands/tools/tts/improve-tts-text.command.d.ts +0 -13
  213. package/build/commands/tools/tts/improve-tts-text.command.js +0 -13
  214. package/build/commands/tools/tts/select-voice-design.command.d.ts +0 -44
  215. package/build/commands/tools/tts/select-voice-design.command.js +0 -17
  216. package/build/commands/tools/tts/update-voice.command.d.ts +0 -45
  217. package/build/commands/tools/tts/update-voice.command.js +0 -18
  218. package/build/constants/tool/enums/job-scope.enum.d.ts +0 -5
  219. package/build/constants/tool/enums/job-scope.enum.js +0 -9
  220. package/build/constants/tool-photo-session/enums/index.d.ts +0 -3
  221. package/build/constants/tool-photo-session/enums/index.js +0 -19
  222. package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.d.ts +0 -6
  223. package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.js +0 -10
  224. package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +0 -5
  225. package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +0 -9
  226. package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +0 -3
  227. package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +0 -7
  228. package/build/constants/tool-photo-session/index.d.ts +0 -1
  229. package/build/constants/tool-photo-session/index.js +0 -17
  230. package/build/constants/tool-tts/enums/index.d.ts +0 -7
  231. package/build/constants/tool-tts/enums/index.js +0 -23
  232. package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +0 -5
  233. package/build/constants/tool-tts/enums/tts-download-format.enum.js +0 -9
  234. package/build/constants/tool-tts/enums/voice-category.enum.d.ts +0 -19
  235. package/build/constants/tool-tts/enums/voice-category.enum.js +0 -23
  236. package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +0 -4
  237. package/build/constants/tool-tts/enums/voice-gender.enum.js +0 -8
  238. package/build/constants/tool-tts/enums/voice-source.enum.d.ts +0 -5
  239. package/build/constants/tool-tts/enums/voice-source.enum.js +0 -9
  240. package/build/constants/tool-tts/enums/voice-status.enum.d.ts +0 -5
  241. package/build/constants/tool-tts/enums/voice-status.enum.js +0 -9
  242. package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +0 -5
  243. package/build/constants/tool-tts/enums/voice-tag-group.enum.js +0 -9
  244. package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +0 -20
  245. package/build/constants/tool-tts/enums/voice-tag.enum.js +0 -24
  246. package/build/constants/tool-tts/index.d.ts +0 -1
  247. package/build/constants/tool-tts/index.js +0 -17
  248. package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +0 -6
  249. package/build/helpers/photo-session/calculate-photo-session-price.helper.js +0 -13
  250. package/build/helpers/photo-session/index.d.ts +0 -1
  251. package/build/helpers/photo-session/index.js +0 -17
  252. package/build/models/tools/photo-session/index.d.ts +0 -5
  253. package/build/models/tools/photo-session/index.js +0 -21
  254. package/build/models/tools/photo-session/photo-session-config.schema.d.ts +0 -141
  255. package/build/models/tools/photo-session/photo-session-config.schema.js +0 -21
  256. package/build/models/tools/photo-session/photo-session-group.schema.d.ts +0 -112
  257. package/build/models/tools/photo-session/photo-session-group.schema.js +0 -26
  258. package/build/models/tools/photo-session/photo-session-job.schema.d.ts +0 -158
  259. package/build/models/tools/photo-session/photo-session-job.schema.js +0 -55
  260. package/build/models/tools/photo-session/photo-session-model.schema.d.ts +0 -114
  261. package/build/models/tools/photo-session/photo-session-model.schema.js +0 -46
  262. package/build/models/tools/photo-session/photo-session-style.schema.d.ts +0 -29
  263. package/build/models/tools/photo-session/photo-session-style.schema.js +0 -22
  264. package/build/models/tools/tts/voice-design-draft.schema.d.ts +0 -13
  265. package/build/models/tools/tts/voice-design-draft.schema.js +0 -13
  266. package/build/models/tools/tts/voice-design-sample.schema.d.ts +0 -6
  267. package/build/models/tools/tts/voice-design-sample.schema.js +0 -8
  268. package/build/models/tools/tts/voice.schema.d.ts +0 -33
  269. package/build/models/tools/tts/voice.schema.js +0 -37
@@ -1,40 +1,70 @@
1
1
  import { z } from 'zod';
2
- import { VOICE_GENDER } from '../../../constants';
3
2
  export declare namespace DesignAvatarStudioVoiceCommand {
4
3
  const RequestSchema: z.ZodObject<{
5
- title: z.ZodString;
6
- gender: z.ZodEnum<typeof VOICE_GENDER>;
4
+ title: z.ZodOptional<z.ZodString>;
7
5
  instruction: z.ZodString;
6
+ language: z.ZodOptional<z.ZodString>;
8
7
  }, z.core.$strict>;
9
8
  type Request = z.infer<typeof RequestSchema>;
9
+ /**
10
+ * Отдаём job, как и все остальные генерации: созданный голос лежит в job.resultMedia.
11
+ * Отдельного поля media нет — форма ответа одинакова у всех роутов генерации.
12
+ */
10
13
  const ResponseSchema: z.ZodObject<{
11
14
  data: z.ZodObject<{
12
15
  uuid: z.ZodString;
13
- scope: z.ZodEnum<typeof import("../../..").JOB_SCOPE>;
14
- source: z.ZodObject<{
15
- id: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
16
- label: z.ZodString;
17
- }, z.core.$strip>;
18
- title: z.ZodString;
19
- description: z.ZodString;
20
- gender: z.ZodNullable<z.ZodObject<{
21
- id: z.ZodEnum<typeof VOICE_GENDER>;
22
- label: z.ZodString;
23
- }, z.core.$strip>>;
24
- trait: z.ZodNullable<z.ZodString>;
25
- ageRange: z.ZodNullable<z.ZodString>;
26
- categories: z.ZodArray<z.ZodObject<{
27
- id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
28
- label: z.ZodString;
29
- }, z.core.$strip>>;
30
- previewUrl: z.ZodString;
31
- imageUrl: z.ZodNullable<z.ZodString>;
32
- status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
33
- error: z.ZodNullable<z.ZodString>;
34
- order: z.ZodNumber;
35
- isDeleted: z.ZodBoolean;
36
16
  userId: z.ZodNullable<z.ZodString>;
37
17
  unregisteredUserId: z.ZodNullable<z.ZodString>;
18
+ clipId: z.ZodNullable<z.ZodString>;
19
+ sceneId: z.ZodNullable<z.ZodString>;
20
+ toolJobId: z.ZodNullable<z.ZodString>;
21
+ type: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_TYPE>;
22
+ targetSlot: z.ZodNullable<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_SLOT>>;
23
+ status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_STATUS>;
24
+ request: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>>;
25
+ resultMediaId: z.ZodNullable<z.ZodString>;
26
+ error: z.ZodNullable<z.ZodString>;
27
+ resultMedia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
+ uuid: z.ZodString;
29
+ userId: z.ZodNullable<z.ZodString>;
30
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
31
+ fileId: z.ZodString;
32
+ kind: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_MEDIA_KIND>;
33
+ title: z.ZodNullable<z.ZodString>;
34
+ toolJobId: z.ZodNullable<z.ZodString>;
35
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
36
+ transcript: z.ZodNullable<z.ZodString>;
37
+ wordTimings: z.ZodNullable<z.ZodArray<z.ZodObject<{
38
+ word: z.ZodString;
39
+ start: z.ZodNumber;
40
+ end: z.ZodNumber;
41
+ }, z.core.$strip>>>;
42
+ subtitles: z.ZodNullable<z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>;
43
+ deletedAt: z.ZodNullable<z.ZodDate>;
44
+ file: z.ZodOptional<z.ZodObject<{
45
+ uuid: z.ZodString;
46
+ name: z.ZodString;
47
+ size: z.ZodNumber;
48
+ originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
50
+ width: z.ZodNumber;
51
+ height: z.ZodNumber;
52
+ }, z.core.$strip>>>;
53
+ mimeType: z.ZodString;
54
+ url: z.ZodString;
55
+ key: z.ZodString;
56
+ type: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
57
+ duration: z.ZodNullable<z.ZodNumber>;
58
+ attachmentCost: z.ZodDefault<z.ZodNumber>;
59
+ contentLength: z.ZodNullable<z.ZodNumber>;
60
+ createdAt: z.ZodDate;
61
+ updatedAt: z.ZodDate;
62
+ }, z.core.$strip>>;
63
+ createdAt: z.ZodDate;
64
+ updatedAt: z.ZodDate;
65
+ }, z.core.$strip>>>;
66
+ startedAt: z.ZodNullable<z.ZodDate>;
67
+ completedAt: z.ZodNullable<z.ZodDate>;
38
68
  createdAt: z.ZodDate;
39
69
  updatedAt: z.ZodDate;
40
70
  }, z.core.$strip>;
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DesignAvatarStudioVoiceCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const constants_1 = require("../../../constants");
6
5
  const models_1 = require("../../../models");
7
6
  var DesignAvatarStudioVoiceCommand;
8
7
  (function (DesignAvatarStudioVoiceCommand) {
9
8
  DesignAvatarStudioVoiceCommand.RequestSchema = zod_1.z
10
9
  .object({
11
- title: zod_1.z.string().trim().min(1).max(255),
12
- gender: zod_1.z.nativeEnum(constants_1.VOICE_GENDER),
10
+ title: zod_1.z.string().trim().min(1).optional(),
13
11
  instruction: zod_1.z.string().trim().min(1),
12
+ language: zod_1.z.string().trim().min(2).optional(),
14
13
  })
15
14
  .strict();
16
- // Дизайн — синхронная операция инструмента: кандидата выбирает сервер, поэтому
17
- // ответ — сразу готовый голос, а не job на отслеживание.
15
+ /**
16
+ * Отдаём job, как и все остальные генерации: созданный голос лежит в job.resultMedia.
17
+ * Отдельного поля media нет — форма ответа одинакова у всех роутов генерации.
18
+ */
18
19
  DesignAvatarStudioVoiceCommand.ResponseSchema = zod_1.z.object({
19
- data: models_1.VoiceSchema,
20
+ data: models_1.AvatarStudioGenerationJobSchema,
20
21
  });
21
22
  })(DesignAvatarStudioVoiceCommand || (exports.DesignAvatarStudioVoiceCommand = DesignAvatarStudioVoiceCommand = {}));
@@ -1,4 +1 @@
1
1
  export * from './design-avatar-studio-voice.command';
2
- export * from './find-avatar-studio-voices.query';
3
- export * from './clone-avatar-studio-voice.command';
4
- export * from './delete-avatar-studio-voice.command';
@@ -15,6 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./design-avatar-studio-voice.command"), exports);
18
- __exportStar(require("./find-avatar-studio-voices.query"), exports);
19
- __exportStar(require("./clone-avatar-studio-voice.command"), exports);
20
- __exportStar(require("./delete-avatar-studio-voice.command"), exports);
@@ -98,6 +98,7 @@ export declare namespace GetPhotoStudioConfigQuery {
98
98
  pricingRules: z.ZodArray<z.ZodObject<{
99
99
  condition: z.ZodObject<{
100
100
  withoutSub: z.ZodOptional<z.ZodBoolean>;
101
+ resolution: z.ZodOptional<z.ZodString>;
101
102
  }, z.core.$strip>;
102
103
  value: z.ZodNumber;
103
104
  }, z.core.$strip>>;
@@ -245,6 +246,7 @@ export declare namespace GetPhotoStudioConfigQuery {
245
246
  pricingRules: z.ZodArray<z.ZodObject<{
246
247
  condition: z.ZodObject<{
247
248
  withoutSub: z.ZodOptional<z.ZodBoolean>;
249
+ resolution: z.ZodOptional<z.ZodString>;
248
250
  }, z.core.$strip>;
249
251
  value: z.ZodNumber;
250
252
  }, z.core.$strip>>;