@purpleschool/gptbot 0.15.64 → 0.15.65-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 (265) hide show
  1. package/build/api/controllers/http/avatar-studio.d.ts +5 -3
  2. package/build/api/controllers/http/avatar-studio.js +6 -5
  3. package/build/api/controllers/http/index.d.ts +1 -0
  4. package/build/api/controllers/http/index.js +1 -0
  5. package/build/api/controllers/http/photo-session.d.ts +20 -0
  6. package/build/api/controllers/http/photo-session.js +23 -0
  7. package/build/api/controllers/http/spell-corrector.d.ts +1 -0
  8. package/build/api/controllers/http/spell-corrector.js +1 -0
  9. package/build/api/controllers/http/tts.d.ts +9 -0
  10. package/build/api/controllers/http/tts.js +9 -0
  11. package/build/api/routes.d.ts +52 -5
  12. package/build/api/routes.js +52 -5
  13. package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +11 -0
  14. package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +3 -2
  15. package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +3 -2
  16. package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +3 -2
  17. package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +3 -2
  18. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-video.command.d.ts +2 -1
  19. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.d.ts +4 -2
  20. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.js +4 -2
  21. package/build/commands/avatar-studio/generation-job/index.d.ts +0 -1
  22. package/build/commands/avatar-studio/generation-job/index.js +0 -1
  23. package/build/commands/avatar-studio/scene/{apply-avatar-studio-voice-sample-to-all-scenes.command.d.ts → apply-avatar-studio-voice-to-all-scenes.command.d.ts} +5 -4
  24. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js +17 -0
  25. package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +3 -2
  26. package/build/commands/avatar-studio/scene/index.d.ts +1 -1
  27. package/build/commands/avatar-studio/scene/index.js +1 -1
  28. package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +3 -2
  29. package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +3 -2
  30. package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +6 -4
  31. package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +3 -2
  32. package/build/commands/avatar-studio/scriptwriter/create-avatar-studio-scriptwriter-message.command.d.ts +7 -4
  33. package/build/commands/avatar-studio/scriptwriter/create-avatar-studio-scriptwriter-message.command.js +4 -2
  34. package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +8 -5
  35. package/build/commands/avatar-studio/shared/avatar-studio-common.schema.js +2 -1
  36. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +68 -65
  37. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +58 -40
  38. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +43 -0
  39. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.js +19 -0
  40. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.d.ts +11 -0
  41. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.js +13 -0
  42. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +26 -56
  43. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.js +6 -7
  44. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +36 -0
  45. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.js +11 -0
  46. package/build/commands/avatar-studio/voice/index.d.ts +3 -0
  47. package/build/commands/avatar-studio/voice/index.js +3 -0
  48. package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +2 -0
  49. package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +2 -0
  50. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +2 -0
  51. package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +2 -0
  52. package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +2 -0
  53. package/build/commands/tools/image-editor/find-image-editor-job-by-uuid.command.d.ts +2 -0
  54. package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +2 -0
  55. package/build/commands/tools/image-editor/retry-image-editor-job.command.d.ts +2 -0
  56. package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.d.ts +2 -0
  57. package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.d.ts +2 -0
  58. package/build/commands/tools/image-editor/update-image-editor-job-title.command.d.ts +2 -0
  59. package/build/commands/tools/image-recognition/find-image-recognition-job-by-uuid.command.d.ts +2 -0
  60. package/build/commands/tools/image-recognition/find-image-recognition-jobs.command.d.ts +2 -0
  61. package/build/commands/tools/image-recognition/image-recognition.command.d.ts +2 -0
  62. package/build/commands/tools/image-recognition/retry-image-recognition-job.command.d.ts +2 -0
  63. package/build/commands/tools/image-recognition/set-reaction-to-image-recognition-job.command.d.ts +2 -0
  64. package/build/commands/tools/image-recognition/update-image-recognition-job-favorite.command.d.ts +2 -0
  65. package/build/commands/tools/image-recognition/update-image-recognition-job-title.command.d.ts +2 -0
  66. package/build/commands/tools/index.d.ts +1 -0
  67. package/build/commands/tools/index.js +1 -0
  68. package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.d.ts +2 -0
  69. package/build/commands/tools/interior-design/find-interior-design-jobs.command.d.ts +2 -0
  70. package/build/commands/tools/interior-design/retry-interior-design-job.command.d.ts +2 -0
  71. package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.d.ts +2 -0
  72. package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.d.ts +2 -0
  73. package/build/commands/tools/interior-design/update-interior-design-job-title.command.d.ts +2 -0
  74. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +39 -0
  75. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +22 -0
  76. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +9 -0
  77. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +11 -0
  78. package/build/commands/tools/photo-session/admin/index.d.ts +4 -0
  79. package/build/commands/tools/photo-session/admin/index.js +20 -0
  80. package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +8 -0
  81. package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +11 -0
  82. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +38 -0
  83. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +21 -0
  84. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +5 -0
  85. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +8 -0
  86. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +9 -0
  87. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +11 -0
  88. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +119 -0
  89. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +14 -0
  90. package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +128 -0
  91. package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +24 -0
  92. package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +75 -0
  93. package/build/commands/tools/photo-session/get-photo-session-config.command.js +11 -0
  94. package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +23 -0
  95. package/build/commands/tools/photo-session/get-photo-session-styles.command.js +11 -0
  96. package/build/commands/tools/photo-session/index.d.ts +13 -0
  97. package/build/commands/tools/photo-session/index.js +29 -0
  98. package/build/commands/tools/photo-session/photo-session.command.d.ts +138 -0
  99. package/build/commands/tools/photo-session/photo-session.command.js +25 -0
  100. package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +100 -0
  101. package/build/commands/tools/photo-session/retry-photo-session-job.command.js +14 -0
  102. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +106 -0
  103. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +28 -0
  104. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +104 -0
  105. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +17 -0
  106. package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +123 -0
  107. package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +17 -0
  108. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +105 -0
  109. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +23 -0
  110. package/build/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.d.ts +2 -0
  111. package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.d.ts +2 -0
  112. package/build/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.d.ts +2 -0
  113. package/build/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.d.ts +2 -0
  114. package/build/commands/tools/solving-edu-task/solving-edu-task.command.d.ts +2 -0
  115. package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.d.ts +2 -0
  116. package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.d.ts +2 -0
  117. package/build/commands/tools/spell-corrector/find-spell-corrector-job-by-uuid.command.d.ts +24 -0
  118. package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.d.ts +24 -0
  119. package/build/commands/tools/spell-corrector/get-spell-corrector-price.command.d.ts +24 -0
  120. package/build/commands/tools/spell-corrector/get-spell-corrector-price.command.js +25 -0
  121. package/build/commands/tools/spell-corrector/get-spell-corrector-tool-config.command.d.ts +3 -0
  122. package/build/commands/tools/spell-corrector/index.d.ts +1 -0
  123. package/build/commands/tools/spell-corrector/index.js +1 -0
  124. package/build/commands/tools/spell-corrector/retry-spell-corrector-job.command.d.ts +24 -0
  125. package/build/commands/tools/spell-corrector/set-reaction-to-spell-corrector-job.command.d.ts +24 -0
  126. package/build/commands/tools/spell-corrector/spell-corrector.command.d.ts +37 -1
  127. package/build/commands/tools/spell-corrector/spell-corrector.command.js +16 -3
  128. package/build/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.d.ts +24 -0
  129. package/build/commands/tools/spell-corrector/update-spell-corrector-job-title.command.d.ts +24 -0
  130. package/build/commands/tools/tts/create-voice-clone.command.d.ts +44 -0
  131. package/build/commands/tools/tts/create-voice-clone.command.js +18 -0
  132. package/build/commands/tools/tts/create-voice-design.command.d.ts +24 -0
  133. package/build/commands/tools/tts/create-voice-design.command.js +18 -0
  134. package/build/commands/tools/tts/delete-voice.command.d.ts +9 -0
  135. package/build/commands/tools/tts/delete-voice.command.js +11 -0
  136. package/build/commands/tools/tts/download-tts-job.command.d.ts +18 -0
  137. package/build/commands/tools/tts/download-tts-job.command.js +17 -0
  138. package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +13 -1
  139. package/build/commands/tools/tts/find-tts-jobs.command.d.ts +13 -1
  140. package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +40 -0
  141. package/build/commands/tools/tts/find-voice-by-uuid.query.js +14 -0
  142. package/build/commands/tools/tts/find-voices.query.d.ts +48 -0
  143. package/build/commands/tools/tts/find-voices.query.js +18 -0
  144. package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +11 -0
  145. package/build/commands/tools/tts/improve-tts-text.command.d.ts +13 -0
  146. package/build/commands/tools/tts/improve-tts-text.command.js +13 -0
  147. package/build/commands/tools/tts/index.d.ts +9 -0
  148. package/build/commands/tools/tts/index.js +9 -0
  149. package/build/commands/tools/tts/retry-tts-job.command.d.ts +13 -1
  150. package/build/commands/tools/tts/select-voice-design.command.d.ts +44 -0
  151. package/build/commands/tools/tts/select-voice-design.command.js +17 -0
  152. package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +13 -1
  153. package/build/commands/tools/tts/tts.command.d.ts +6 -1
  154. package/build/commands/tools/tts/tts.command.js +7 -1
  155. package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +13 -1
  156. package/build/commands/tools/tts/update-tts-job-title.command.d.ts +13 -1
  157. package/build/commands/tools/tts/update-voice.command.d.ts +45 -0
  158. package/build/commands/tools/tts/update-voice.command.js +18 -0
  159. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +1 -0
  160. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +1 -0
  161. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.d.ts +1 -2
  162. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.js +0 -1
  163. package/build/constants/avatar-studio/enums/avatar-studio-model-purpose.enum.d.ts +6 -0
  164. package/build/constants/avatar-studio/enums/avatar-studio-model-purpose.enum.js +10 -0
  165. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.d.ts +1 -1
  166. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.js +1 -1
  167. package/build/constants/avatar-studio/enums/index.d.ts +1 -1
  168. package/build/constants/avatar-studio/enums/index.js +1 -1
  169. package/build/constants/index.d.ts +3 -0
  170. package/build/constants/index.js +3 -0
  171. package/build/constants/tool/enums/index.d.ts +1 -0
  172. package/build/constants/tool/enums/index.js +1 -0
  173. package/build/constants/tool/enums/job-scope.enum.d.ts +5 -0
  174. package/build/constants/tool/enums/job-scope.enum.js +9 -0
  175. package/build/constants/tool-photo-session/enums/index.d.ts +3 -0
  176. package/build/constants/tool-photo-session/enums/index.js +19 -0
  177. package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.d.ts +6 -0
  178. package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.js +10 -0
  179. package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +5 -0
  180. package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +9 -0
  181. package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +3 -0
  182. package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +7 -0
  183. package/build/constants/tool-photo-session/index.d.ts +1 -0
  184. package/build/constants/tool-photo-session/index.js +17 -0
  185. package/build/constants/tool-spell-corrector/enums/index.d.ts +1 -0
  186. package/build/constants/tool-spell-corrector/enums/index.js +17 -0
  187. package/build/constants/tool-spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
  188. package/build/constants/tool-spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
  189. package/build/constants/tool-spell-corrector/index.d.ts +1 -0
  190. package/build/constants/tool-spell-corrector/index.js +17 -0
  191. package/build/constants/tool-tts/enums/index.d.ts +7 -0
  192. package/build/constants/tool-tts/enums/index.js +23 -0
  193. package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +5 -0
  194. package/build/constants/tool-tts/enums/tts-download-format.enum.js +9 -0
  195. package/build/constants/tool-tts/enums/voice-category.enum.d.ts +19 -0
  196. package/build/constants/tool-tts/enums/voice-category.enum.js +23 -0
  197. package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +4 -0
  198. package/build/constants/tool-tts/enums/voice-gender.enum.js +8 -0
  199. package/build/constants/tool-tts/enums/voice-source.enum.d.ts +5 -0
  200. package/build/constants/tool-tts/enums/voice-source.enum.js +9 -0
  201. package/build/constants/tool-tts/enums/voice-status.enum.d.ts +5 -0
  202. package/build/constants/tool-tts/enums/voice-status.enum.js +9 -0
  203. package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +5 -0
  204. package/build/constants/tool-tts/enums/voice-tag-group.enum.js +9 -0
  205. package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +20 -0
  206. package/build/constants/tool-tts/enums/voice-tag.enum.js +24 -0
  207. package/build/constants/tool-tts/index.d.ts +1 -0
  208. package/build/constants/tool-tts/index.js +17 -0
  209. package/build/helpers/index.d.ts +1 -0
  210. package/build/helpers/index.js +1 -0
  211. package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +6 -0
  212. package/build/helpers/photo-session/calculate-photo-session-price.helper.js +13 -0
  213. package/build/helpers/photo-session/index.d.ts +1 -0
  214. package/build/helpers/photo-session/index.js +17 -0
  215. package/build/models/avatar-studio/avatar-studio.schema.d.ts +15 -11
  216. package/build/models/avatar-studio/avatar-studio.schema.js +8 -4
  217. package/build/models/canvas-node-definition.schema.d.ts +33 -0
  218. package/build/models/tools/common/attached-tool-file.schema.d.ts +2 -0
  219. package/build/models/tools/common/attached-tool-file.schema.js +2 -0
  220. package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +4 -0
  221. package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +2 -0
  222. package/build/models/tools/image-editor/image-editor-job.schema.d.ts +4 -0
  223. package/build/models/tools/image-recognition/image-recognition-job.schema.d.ts +4 -0
  224. package/build/models/tools/index.d.ts +1 -0
  225. package/build/models/tools/index.js +1 -0
  226. package/build/models/tools/interior-design/interior-design-job.schema.d.ts +4 -0
  227. package/build/models/tools/photo-session/index.d.ts +5 -0
  228. package/build/models/tools/photo-session/index.js +21 -0
  229. package/build/models/tools/photo-session/photo-session-config.schema.d.ts +141 -0
  230. package/build/models/tools/photo-session/photo-session-config.schema.js +21 -0
  231. package/build/models/tools/photo-session/photo-session-group.schema.d.ts +112 -0
  232. package/build/models/tools/photo-session/photo-session-group.schema.js +26 -0
  233. package/build/models/tools/photo-session/photo-session-job.schema.d.ts +158 -0
  234. package/build/models/tools/photo-session/photo-session-job.schema.js +55 -0
  235. package/build/models/tools/photo-session/photo-session-model.schema.d.ts +114 -0
  236. package/build/models/tools/photo-session/photo-session-model.schema.js +46 -0
  237. package/build/models/tools/photo-session/photo-session-style.schema.d.ts +29 -0
  238. package/build/models/tools/photo-session/photo-session-style.schema.js +22 -0
  239. package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.d.ts +4 -0
  240. package/build/models/tools/spell-corrector/spell-corrector-config.schema.d.ts +3 -0
  241. package/build/models/tools/spell-corrector/spell-corrector-config.schema.js +1 -0
  242. package/build/models/tools/spell-corrector/spell-corrector-job.schema.d.ts +39 -1
  243. package/build/models/tools/spell-corrector/spell-corrector-job.schema.js +23 -1
  244. package/build/models/tools/spell-corrector/spell-corrector-model.schema.d.ts +2 -0
  245. package/build/models/tools/spell-corrector/spell-corrector-model.schema.js +2 -0
  246. package/build/models/tools/tts/index.d.ts +3 -0
  247. package/build/models/tools/tts/index.js +3 -0
  248. package/build/models/tools/tts/tts-config.schema.d.ts +23 -0
  249. package/build/models/tools/tts/tts-config.schema.js +14 -1
  250. package/build/models/tools/tts/tts-job.schema.d.ts +26 -1
  251. package/build/models/tools/tts/tts-job.schema.js +16 -2
  252. package/build/models/tools/tts/tts-model.schema.d.ts +1 -0
  253. package/build/models/tools/tts/tts-model.schema.js +1 -0
  254. package/build/models/tools/tts/voice-design-draft.schema.d.ts +13 -0
  255. package/build/models/tools/tts/voice-design-draft.schema.js +13 -0
  256. package/build/models/tools/tts/voice-design-sample.schema.d.ts +6 -0
  257. package/build/models/tools/tts/voice-design-sample.schema.js +8 -0
  258. package/build/models/tools/tts/voice.schema.d.ts +33 -0
  259. package/build/models/tools/tts/voice.schema.js +37 -0
  260. package/package.json +1 -1
  261. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-talking-avatar.command.d.ts +0 -78
  262. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-talking-avatar.command.js +0 -14
  263. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-sample-to-all-scenes.command.js +0 -15
  264. package/build/constants/avatar-studio/enums/avatar-studio-video-quality.enum.d.ts +0 -4
  265. package/build/constants/avatar-studio/enums/avatar-studio-video-quality.enum.js +0 -8
@@ -0,0 +1,123 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdatePhotoSessionJobTitleCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ title: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Request = z.infer<typeof RequestSchema>;
7
+ const RequestParamsSchema: z.ZodObject<{
8
+ uuid: z.ZodString;
9
+ }, z.core.$strip>;
10
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ data: z.ZodObject<{
13
+ uuid: z.ZodString;
14
+ title: z.ZodString;
15
+ prompt: z.ZodString;
16
+ status: z.ZodEnum<typeof import("../../..").PHOTO_SESSION_GROUP_STATUS>;
17
+ error: z.ZodNullable<z.ZodString>;
18
+ modelId: z.ZodString;
19
+ price: z.ZodNumber;
20
+ tokenReservationId: z.ZodNullable<z.ZodString>;
21
+ params: z.ZodUnknown;
22
+ attempts: z.ZodArray<z.ZodUnknown>;
23
+ scope: z.ZodEnum<typeof import("../../..").JOB_SCOPE>;
24
+ userId: z.ZodNullable<z.ZodString>;
25
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
26
+ isDeleted: z.ZodBoolean;
27
+ subJobs: z.ZodArray<z.ZodObject<{
28
+ uuid: z.ZodString;
29
+ prompt: z.ZodString;
30
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
31
+ dislikeReason: z.ZodNullable<z.ZodString>;
32
+ externalId: z.ZodNullable<z.ZodString>;
33
+ title: z.ZodString;
34
+ status: z.ZodEnum<{
35
+ completed: import("../../..").TOOL_JOB_STATUS.COMPLETED;
36
+ failed: import("../../..").TOOL_JOB_STATUS.FAILED;
37
+ pending: import("../../..").TOOL_JOB_STATUS.PENDING;
38
+ }>;
39
+ error: z.ZodNullable<z.ZodString>;
40
+ modelId: z.ZodString;
41
+ groupId: z.ZodString;
42
+ previewUrl: z.ZodNullable<z.ZodString>;
43
+ params: z.ZodObject<{
44
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
+ uuid: z.ZodString;
46
+ url: z.ZodString;
47
+ name: z.ZodString;
48
+ mimeType: z.ZodString;
49
+ type: z.ZodString;
50
+ size: z.ZodNumber;
51
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
52
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
53
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
54
+ }, z.core.$strip>>>;
55
+ styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
56
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ photosCount: z.ZodOptional<z.ZodNumber>;
59
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ uuid: z.ZodString;
61
+ url: z.ZodString;
62
+ name: z.ZodString;
63
+ mimeType: z.ZodString;
64
+ type: z.ZodString;
65
+ size: z.ZodNumber;
66
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
67
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
69
+ }, z.core.$strip>>>;
70
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
71
+ uuid: z.ZodString;
72
+ url: z.ZodString;
73
+ name: z.ZodString;
74
+ mimeType: z.ZodString;
75
+ type: z.ZodString;
76
+ size: z.ZodNumber;
77
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
78
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
79
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
80
+ }, z.core.$strip>>>;
81
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
+ uuid: z.ZodString;
83
+ url: z.ZodString;
84
+ name: z.ZodString;
85
+ mimeType: z.ZodString;
86
+ type: z.ZodString;
87
+ size: z.ZodNumber;
88
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
89
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
90
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
91
+ }, z.core.$strip>>>;
92
+ aspectRatio: z.ZodOptional<z.ZodString>;
93
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
94
+ }, z.core.$strip>;
95
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
96
+ attempts: z.ZodArray<z.ZodObject<{
97
+ order: z.ZodNumber;
98
+ attemptId: z.ZodOptional<z.ZodString>;
99
+ status: z.ZodEnum<{
100
+ completed: import("../../..").TOOL_JOB_STATUS.COMPLETED;
101
+ failed: import("../../..").TOOL_JOB_STATUS.FAILED;
102
+ pending: import("../../..").TOOL_JOB_STATUS.PENDING;
103
+ }>;
104
+ error: z.ZodNullable<z.ZodString>;
105
+ timestamp: z.ZodCoercedDate<unknown>;
106
+ }, z.core.$strip>>;
107
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ isPublished: z.ZodBoolean;
110
+ postId: z.ZodNullable<z.ZodString>;
111
+ isDeleted: z.ZodBoolean;
112
+ isFavorite: z.ZodBoolean;
113
+ createdAt: z.ZodCoercedDate<unknown>;
114
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
115
+ updatedAt: z.ZodCoercedDate<unknown>;
116
+ }, z.core.$strip>>;
117
+ createdAt: z.ZodCoercedDate<unknown>;
118
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
119
+ updatedAt: z.ZodCoercedDate<unknown>;
120
+ }, z.core.$strip>;
121
+ }, z.core.$strip>;
122
+ type Response = z.infer<typeof ResponseSchema>;
123
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePhotoSessionJobTitleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var UpdatePhotoSessionJobTitleCommand;
7
+ (function (UpdatePhotoSessionJobTitleCommand) {
8
+ UpdatePhotoSessionJobTitleCommand.RequestSchema = zod_1.z.object({
9
+ title: zod_1.z.string().min(1).max(40),
10
+ });
11
+ UpdatePhotoSessionJobTitleCommand.RequestParamsSchema = zod_1.z.object({
12
+ uuid: zod_1.z.string().uuid(),
13
+ });
14
+ UpdatePhotoSessionJobTitleCommand.ResponseSchema = zod_1.z.object({
15
+ data: models_1.PhotoSessionGroupSchema,
16
+ });
17
+ })(UpdatePhotoSessionJobTitleCommand || (exports.UpdatePhotoSessionJobTitleCommand = UpdatePhotoSessionJobTitleCommand = {}));
@@ -0,0 +1,105 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdatePublishedStatusPhotoSessionJobCommand {
3
+ const RequestParamsSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
7
+ const RequestSchema: z.ZodObject<{
8
+ isPublished: z.ZodBoolean;
9
+ postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, z.core.$strip>;
11
+ type Request = z.infer<typeof RequestSchema>;
12
+ const ResponseSchema: z.ZodObject<{
13
+ data: z.ZodObject<{
14
+ uuid: z.ZodString;
15
+ prompt: z.ZodString;
16
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
17
+ dislikeReason: z.ZodNullable<z.ZodString>;
18
+ externalId: z.ZodNullable<z.ZodString>;
19
+ title: z.ZodString;
20
+ status: z.ZodEnum<{
21
+ completed: import("../../..").TOOL_JOB_STATUS.COMPLETED;
22
+ failed: import("../../..").TOOL_JOB_STATUS.FAILED;
23
+ pending: import("../../..").TOOL_JOB_STATUS.PENDING;
24
+ }>;
25
+ error: z.ZodNullable<z.ZodString>;
26
+ modelId: z.ZodString;
27
+ groupId: z.ZodString;
28
+ previewUrl: z.ZodNullable<z.ZodString>;
29
+ params: z.ZodObject<{
30
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
+ uuid: z.ZodString;
32
+ url: z.ZodString;
33
+ name: z.ZodString;
34
+ mimeType: z.ZodString;
35
+ type: z.ZodString;
36
+ size: z.ZodNumber;
37
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
38
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
40
+ }, z.core.$strip>>>;
41
+ styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
42
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ photosCount: z.ZodOptional<z.ZodNumber>;
45
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
46
+ uuid: z.ZodString;
47
+ url: z.ZodString;
48
+ name: z.ZodString;
49
+ mimeType: z.ZodString;
50
+ type: z.ZodString;
51
+ size: z.ZodNumber;
52
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
53
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
54
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
55
+ }, z.core.$strip>>>;
56
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
+ uuid: z.ZodString;
58
+ url: z.ZodString;
59
+ name: z.ZodString;
60
+ mimeType: z.ZodString;
61
+ type: z.ZodString;
62
+ size: z.ZodNumber;
63
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
64
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
65
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
66
+ }, z.core.$strip>>>;
67
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
68
+ uuid: z.ZodString;
69
+ url: z.ZodString;
70
+ name: z.ZodString;
71
+ mimeType: z.ZodString;
72
+ type: z.ZodString;
73
+ size: z.ZodNumber;
74
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
75
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
76
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
77
+ }, z.core.$strip>>>;
78
+ aspectRatio: z.ZodOptional<z.ZodString>;
79
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
80
+ }, z.core.$strip>;
81
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
82
+ attempts: z.ZodArray<z.ZodObject<{
83
+ order: z.ZodNumber;
84
+ attemptId: z.ZodOptional<z.ZodString>;
85
+ status: z.ZodEnum<{
86
+ completed: import("../../..").TOOL_JOB_STATUS.COMPLETED;
87
+ failed: import("../../..").TOOL_JOB_STATUS.FAILED;
88
+ pending: import("../../..").TOOL_JOB_STATUS.PENDING;
89
+ }>;
90
+ error: z.ZodNullable<z.ZodString>;
91
+ timestamp: z.ZodCoercedDate<unknown>;
92
+ }, z.core.$strip>>;
93
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ isPublished: z.ZodBoolean;
96
+ postId: z.ZodNullable<z.ZodString>;
97
+ isDeleted: z.ZodBoolean;
98
+ isFavorite: z.ZodBoolean;
99
+ createdAt: z.ZodCoercedDate<unknown>;
100
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
101
+ updatedAt: z.ZodCoercedDate<unknown>;
102
+ }, z.core.$strip>;
103
+ }, z.core.$strip>;
104
+ type Response = z.infer<typeof ResponseSchema>;
105
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePublishedStatusPhotoSessionJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var UpdatePublishedStatusPhotoSessionJobCommand;
7
+ (function (UpdatePublishedStatusPhotoSessionJobCommand) {
8
+ UpdatePublishedStatusPhotoSessionJobCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ UpdatePublishedStatusPhotoSessionJobCommand.RequestSchema = zod_1.z
12
+ .object({
13
+ isPublished: zod_1.z.boolean(),
14
+ postId: zod_1.z.string().nullable().optional(),
15
+ })
16
+ .refine((data) => (data.isPublished ? Boolean(data.postId) : true), {
17
+ message: 'Post ID is required when job is published',
18
+ path: ['postId'],
19
+ });
20
+ UpdatePublishedStatusPhotoSessionJobCommand.ResponseSchema = zod_1.z.object({
21
+ data: models_1.PhotoSessionJobSchema,
22
+ });
23
+ })(UpdatePublishedStatusPhotoSessionJobCommand || (exports.UpdatePublishedStatusPhotoSessionJobCommand = UpdatePublishedStatusPhotoSessionJobCommand = {}));
@@ -23,6 +23,8 @@ export declare namespace FindSolvingEduTaskJobByUUIDCommand {
23
23
  type: z.ZodString;
24
24
  size: z.ZodNumber;
25
25
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
26
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
26
28
  }, z.core.$strip>>;
27
29
  }, z.core.$strip>;
28
30
  error: z.ZodNullable<z.ZodString>;
@@ -29,6 +29,8 @@ export declare namespace FindSolvingEduTaskJobsCommand {
29
29
  type: z.ZodString;
30
30
  size: z.ZodNumber;
31
31
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
32
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
32
34
  }, z.core.$strip>>;
33
35
  }, z.core.$strip>;
34
36
  error: z.ZodNullable<z.ZodString>;
@@ -31,6 +31,8 @@ export declare namespace RetrySolvingEduTaskJobCommand {
31
31
  type: z.ZodString;
32
32
  size: z.ZodNumber;
33
33
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
34
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
35
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
34
36
  }, z.core.$strip>>;
35
37
  }, z.core.$strip>;
36
38
  error: z.ZodNullable<z.ZodString>;
@@ -29,6 +29,8 @@ export declare namespace SetReactionToSolvingEduTaskJobCommand {
29
29
  type: z.ZodString;
30
30
  size: z.ZodNumber;
31
31
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
32
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
32
34
  }, z.core.$strip>>;
33
35
  }, z.core.$strip>;
34
36
  error: z.ZodNullable<z.ZodString>;
@@ -27,6 +27,8 @@ export declare namespace SolvingEduTaskCommand {
27
27
  type: z.ZodString;
28
28
  size: z.ZodNumber;
29
29
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
30
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
30
32
  }, z.core.$strip>>;
31
33
  }, z.core.$strip>;
32
34
  error: z.ZodNullable<z.ZodString>;
@@ -27,6 +27,8 @@ export declare namespace UpdateSolvingEduTaskJobFavoriteCommand {
27
27
  type: z.ZodString;
28
28
  size: z.ZodNumber;
29
29
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
30
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
30
32
  }, z.core.$strip>>;
31
33
  }, z.core.$strip>;
32
34
  error: z.ZodNullable<z.ZodString>;
@@ -27,6 +27,8 @@ export declare namespace UpdateSolvingEduTaskJobTitleCommand {
27
27
  type: z.ZodString;
28
28
  size: z.ZodNumber;
29
29
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
30
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
30
32
  }, z.core.$strip>>;
31
33
  }, z.core.$strip>;
32
34
  error: z.ZodNullable<z.ZodString>;
@@ -13,6 +13,30 @@ export declare namespace FindSpellCorrectorJobByUUIDCommand {
13
13
  createdAt: z.ZodDate;
14
14
  updatedAt: z.ZodDate;
15
15
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
17
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ url: z.ZodString;
20
+ name: z.ZodString;
21
+ mimeType: z.ZodString;
22
+ type: z.ZodString;
23
+ size: z.ZodNumber;
24
+ extension: z.ZodString;
25
+ }, z.core.$strip>>>;
26
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
27
+ total: z.ZodNumber;
28
+ spelling: z.ZodNumber;
29
+ punctuation: z.ZodNumber;
30
+ }, z.core.$strip>>>;
31
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
32
+ uuid: z.ZodString;
33
+ url: z.ZodString;
34
+ name: z.ZodString;
35
+ mimeType: z.ZodString;
36
+ type: z.ZodString;
37
+ size: z.ZodNumber;
38
+ extension: z.ZodString;
39
+ }, z.core.$strip>>>;
16
40
  userInput: z.ZodString;
17
41
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
42
  title: z.ZodString;
@@ -19,6 +19,30 @@ export declare namespace FindSpellCorrectorJobsCommand {
19
19
  createdAt: z.ZodDate;
20
20
  updatedAt: z.ZodDate;
21
21
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
23
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
24
+ uuid: z.ZodString;
25
+ url: z.ZodString;
26
+ name: z.ZodString;
27
+ mimeType: z.ZodString;
28
+ type: z.ZodString;
29
+ size: z.ZodNumber;
30
+ extension: z.ZodString;
31
+ }, z.core.$strip>>>;
32
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
33
+ total: z.ZodNumber;
34
+ spelling: z.ZodNumber;
35
+ punctuation: z.ZodNumber;
36
+ }, z.core.$strip>>>;
37
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
38
+ uuid: z.ZodString;
39
+ url: z.ZodString;
40
+ name: z.ZodString;
41
+ mimeType: z.ZodString;
42
+ type: z.ZodString;
43
+ size: z.ZodNumber;
44
+ extension: z.ZodString;
45
+ }, z.core.$strip>>>;
22
46
  userInput: z.ZodString;
23
47
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
48
  title: z.ZodString;
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetSpellCorrectorPriceCommand {
3
+ const PrivateRequestSchema: z.ZodObject<{
4
+ modelId: z.ZodString;
5
+ prompt: z.ZodOptional<z.ZodString>;
6
+ fileId: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ const PublicRequestSchema: z.ZodObject<{
9
+ modelId: z.ZodString;
10
+ prompt: z.ZodString;
11
+ }, z.core.$strict>;
12
+ const RequestSchema: z.ZodObject<{
13
+ modelId: z.ZodString;
14
+ prompt: z.ZodOptional<z.ZodString>;
15
+ fileId: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ type Request = z.infer<typeof RequestSchema>;
18
+ const ResponseSchema: z.ZodObject<{
19
+ price: z.ZodNumber;
20
+ charsUntilNextPriceIncrease: z.ZodNullable<z.ZodNumber>;
21
+ charsUntilNextPriceDecrease: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$strip>;
23
+ type Response = z.infer<typeof ResponseSchema>;
24
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSpellCorrectorPriceCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const chat_1 = require("../../chat");
6
+ var GetSpellCorrectorPriceCommand;
7
+ (function (GetSpellCorrectorPriceCommand) {
8
+ GetSpellCorrectorPriceCommand.PrivateRequestSchema = zod_1.z
9
+ .object({
10
+ modelId: zod_1.z.string().uuid(),
11
+ prompt: zod_1.z.string().min(1).max(100000).optional(),
12
+ fileId: zod_1.z.string().uuid().optional(),
13
+ })
14
+ .refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
15
+ message: 'Требуется ровно один из prompt или fileId',
16
+ });
17
+ GetSpellCorrectorPriceCommand.PublicRequestSchema = zod_1.z
18
+ .object({
19
+ modelId: zod_1.z.string().uuid(),
20
+ prompt: zod_1.z.string().min(1).max(100000),
21
+ })
22
+ .strict();
23
+ GetSpellCorrectorPriceCommand.RequestSchema = GetSpellCorrectorPriceCommand.PrivateRequestSchema;
24
+ GetSpellCorrectorPriceCommand.ResponseSchema = chat_1.CalculateChatPriceCommand.ResponseSchema;
25
+ })(GetSpellCorrectorPriceCommand || (exports.GetSpellCorrectorPriceCommand = GetSpellCorrectorPriceCommand = {}));
@@ -3,12 +3,15 @@ export declare namespace GetSpellCorrectorToolConfigCommand {
3
3
  const ResponseSchema: z.ZodObject<{
4
4
  data: z.ZodObject<{
5
5
  maxSymbols: z.ZodNumber;
6
+ freeMaxSymbols: z.ZodNumber;
6
7
  models: z.ZodArray<z.ZodObject<{
7
8
  uuid: z.ZodString;
8
9
  title: z.ZodString;
9
10
  description: z.ZodString;
10
11
  icon: z.ZodString;
11
12
  price: z.ZodNumber;
13
+ freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
14
+ maxPromptLength: z.ZodNullable<z.ZodNumber>;
12
15
  order: z.ZodNumber;
13
16
  status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
14
17
  canUse: z.ZodBoolean;
@@ -1,4 +1,5 @@
1
1
  export * from './spell-corrector.command';
2
+ export * from './get-spell-corrector-price.command';
2
3
  export * from './delete-spell-corrector-job-by-uuid.command';
3
4
  export * from './delete-all-spell-corrector-jobs.command';
4
5
  export * from './set-reaction-to-spell-corrector-job.command';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./spell-corrector.command"), exports);
18
+ __exportStar(require("./get-spell-corrector-price.command"), exports);
18
19
  __exportStar(require("./delete-spell-corrector-job-by-uuid.command"), exports);
19
20
  __exportStar(require("./delete-all-spell-corrector-jobs.command"), exports);
20
21
  __exportStar(require("./set-reaction-to-spell-corrector-job.command"), exports);
@@ -13,6 +13,30 @@ export declare namespace RetrySpellCorrectorJobCommand {
13
13
  createdAt: z.ZodDate;
14
14
  updatedAt: z.ZodDate;
15
15
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
17
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ url: z.ZodString;
20
+ name: z.ZodString;
21
+ mimeType: z.ZodString;
22
+ type: z.ZodString;
23
+ size: z.ZodNumber;
24
+ extension: z.ZodString;
25
+ }, z.core.$strip>>>;
26
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
27
+ total: z.ZodNumber;
28
+ spelling: z.ZodNumber;
29
+ punctuation: z.ZodNumber;
30
+ }, z.core.$strip>>>;
31
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
32
+ uuid: z.ZodString;
33
+ url: z.ZodString;
34
+ name: z.ZodString;
35
+ mimeType: z.ZodString;
36
+ type: z.ZodString;
37
+ size: z.ZodNumber;
38
+ extension: z.ZodString;
39
+ }, z.core.$strip>>>;
16
40
  userInput: z.ZodString;
17
41
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
42
  title: z.ZodString;
@@ -19,6 +19,30 @@ export declare namespace SetReactionToSpellCorrectorJobCommand {
19
19
  createdAt: z.ZodDate;
20
20
  updatedAt: z.ZodDate;
21
21
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
23
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
24
+ uuid: z.ZodString;
25
+ url: z.ZodString;
26
+ name: z.ZodString;
27
+ mimeType: z.ZodString;
28
+ type: z.ZodString;
29
+ size: z.ZodNumber;
30
+ extension: z.ZodString;
31
+ }, z.core.$strip>>>;
32
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
33
+ total: z.ZodNumber;
34
+ spelling: z.ZodNumber;
35
+ punctuation: z.ZodNumber;
36
+ }, z.core.$strip>>>;
37
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
38
+ uuid: z.ZodString;
39
+ url: z.ZodString;
40
+ name: z.ZodString;
41
+ mimeType: z.ZodString;
42
+ type: z.ZodString;
43
+ size: z.ZodNumber;
44
+ extension: z.ZodString;
45
+ }, z.core.$strip>>>;
22
46
  userInput: z.ZodString;
23
47
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
48
  title: z.ZodString;
@@ -2,8 +2,15 @@ import { z } from 'zod';
2
2
  export declare namespace SpellCorrectorCommand {
3
3
  const RequestSchema: z.ZodObject<{
4
4
  modelId: z.ZodString;
5
- prompt: z.ZodString;
5
+ requestId: z.ZodOptional<z.ZodString>;
6
+ prompt: z.ZodOptional<z.ZodString>;
7
+ fileId: z.ZodOptional<z.ZodString>;
6
8
  }, z.core.$strip>;
9
+ const PublicRequestSchema: z.ZodObject<{
10
+ modelId: z.ZodString;
11
+ requestId: z.ZodOptional<z.ZodString>;
12
+ prompt: z.ZodString;
13
+ }, z.core.$strict>;
7
14
  type Request = z.infer<typeof RequestSchema>;
8
15
  const ResponseSchema: z.ZodObject<{
9
16
  data: z.ZodObject<{
@@ -13,6 +20,35 @@ export declare namespace SpellCorrectorCommand {
13
20
  isFavorite: z.ZodBoolean;
14
21
  createdAt: z.ZodDate;
15
22
  updatedAt: z.ZodDate;
23
+ modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ inputKind: z.ZodDefault<z.ZodEnum<typeof import("../../..").SPELL_CORRECTOR_INPUT_KIND>>;
25
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
26
+ uuid: z.ZodString;
27
+ url: z.ZodString;
28
+ name: z.ZodString;
29
+ mimeType: z.ZodString;
30
+ type: z.ZodString;
31
+ size: z.ZodNumber;
32
+ extension: z.ZodString;
33
+ }, z.core.$strip>>>;
34
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
35
+ total: z.ZodNumber;
36
+ spelling: z.ZodNumber;
37
+ punctuation: z.ZodNumber;
38
+ }, z.core.$strip>>>;
39
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
40
+ uuid: z.ZodString;
41
+ url: z.ZodString;
42
+ name: z.ZodString;
43
+ mimeType: z.ZodString;
44
+ type: z.ZodString;
45
+ size: z.ZodNumber;
46
+ extension: z.ZodString;
47
+ }, z.core.$strip>>>;
48
+ userInput: z.ZodString;
49
+ aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ title: z.ZodString;
51
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
16
52
  }, z.core.$strip>;
17
53
  }, z.core.$strip>;
18
54
  type Response = z.infer<typeof ResponseSchema>;
@@ -5,11 +5,24 @@ const zod_1 = require("zod");
5
5
  const models_1 = require("../../../models");
6
6
  var SpellCorrectorCommand;
7
7
  (function (SpellCorrectorCommand) {
8
- SpellCorrectorCommand.RequestSchema = zod_1.z.object({
8
+ SpellCorrectorCommand.RequestSchema = zod_1.z
9
+ .object({
9
10
  modelId: zod_1.z.string().uuid(),
10
- prompt: zod_1.z.string().min(1).max(100000),
11
+ requestId: zod_1.z.string().uuid().optional(),
12
+ prompt: zod_1.z.string().min(1).max(100000).optional(),
13
+ fileId: zod_1.z.string().uuid().optional(),
14
+ })
15
+ .refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
16
+ message: 'Требуется ровно один из prompt или fileId',
11
17
  });
18
+ SpellCorrectorCommand.PublicRequestSchema = zod_1.z
19
+ .object({
20
+ modelId: zod_1.z.string().uuid(),
21
+ requestId: zod_1.z.string().uuid().optional(),
22
+ prompt: zod_1.z.string().min(1).max(100000),
23
+ })
24
+ .strict();
12
25
  SpellCorrectorCommand.ResponseSchema = zod_1.z.object({
13
- data: models_1.ToolJobSchema,
26
+ data: models_1.SpellCorrectorToolJobSchema,
14
27
  });
15
28
  })(SpellCorrectorCommand || (exports.SpellCorrectorCommand = SpellCorrectorCommand = {}));