@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,112 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE, PHOTO_SESSION_GROUP_STATUS } from '../../../constants';
3
+ export declare const PhotoSessionGroupSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ title: z.ZodString;
6
+ prompt: z.ZodString;
7
+ status: z.ZodEnum<typeof PHOTO_SESSION_GROUP_STATUS>;
8
+ error: z.ZodNullable<z.ZodString>;
9
+ modelId: z.ZodString;
10
+ price: z.ZodNumber;
11
+ tokenReservationId: z.ZodNullable<z.ZodString>;
12
+ params: z.ZodUnknown;
13
+ attempts: z.ZodArray<z.ZodUnknown>;
14
+ scope: z.ZodEnum<typeof JOB_SCOPE>;
15
+ userId: z.ZodNullable<z.ZodString>;
16
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
17
+ isDeleted: z.ZodBoolean;
18
+ subJobs: z.ZodArray<z.ZodObject<{
19
+ uuid: z.ZodString;
20
+ prompt: z.ZodString;
21
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
22
+ dislikeReason: z.ZodNullable<z.ZodString>;
23
+ externalId: z.ZodNullable<z.ZodString>;
24
+ title: z.ZodString;
25
+ status: z.ZodEnum<{
26
+ completed: import("../../..").TOOL_JOB_STATUS.COMPLETED;
27
+ failed: import("../../..").TOOL_JOB_STATUS.FAILED;
28
+ pending: import("../../..").TOOL_JOB_STATUS.PENDING;
29
+ }>;
30
+ error: z.ZodNullable<z.ZodString>;
31
+ modelId: z.ZodString;
32
+ groupId: z.ZodString;
33
+ previewUrl: z.ZodNullable<z.ZodString>;
34
+ params: z.ZodObject<{
35
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
36
+ uuid: z.ZodString;
37
+ url: z.ZodString;
38
+ name: z.ZodString;
39
+ mimeType: z.ZodString;
40
+ type: z.ZodString;
41
+ size: z.ZodNumber;
42
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
43
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
45
+ }, z.core.$strip>>>;
46
+ styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
47
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ photosCount: z.ZodOptional<z.ZodNumber>;
50
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ uuid: z.ZodString;
52
+ url: z.ZodString;
53
+ name: z.ZodString;
54
+ mimeType: z.ZodString;
55
+ type: z.ZodString;
56
+ size: z.ZodNumber;
57
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
58
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
59
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
60
+ }, z.core.$strip>>>;
61
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
+ uuid: z.ZodString;
63
+ url: z.ZodString;
64
+ name: z.ZodString;
65
+ mimeType: z.ZodString;
66
+ type: z.ZodString;
67
+ size: z.ZodNumber;
68
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
69
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
71
+ }, z.core.$strip>>>;
72
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
73
+ uuid: z.ZodString;
74
+ url: z.ZodString;
75
+ name: z.ZodString;
76
+ mimeType: z.ZodString;
77
+ type: z.ZodString;
78
+ size: z.ZodNumber;
79
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
80
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
81
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
82
+ }, z.core.$strip>>>;
83
+ aspectRatio: z.ZodOptional<z.ZodString>;
84
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
85
+ }, z.core.$strip>;
86
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
87
+ attempts: z.ZodArray<z.ZodObject<{
88
+ order: z.ZodNumber;
89
+ attemptId: z.ZodOptional<z.ZodString>;
90
+ status: z.ZodEnum<{
91
+ completed: import("../../..").TOOL_JOB_STATUS.COMPLETED;
92
+ failed: import("../../..").TOOL_JOB_STATUS.FAILED;
93
+ pending: import("../../..").TOOL_JOB_STATUS.PENDING;
94
+ }>;
95
+ error: z.ZodNullable<z.ZodString>;
96
+ timestamp: z.ZodCoercedDate<unknown>;
97
+ }, z.core.$strip>>;
98
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ isPublished: z.ZodBoolean;
101
+ postId: z.ZodNullable<z.ZodString>;
102
+ isDeleted: z.ZodBoolean;
103
+ isFavorite: z.ZodBoolean;
104
+ createdAt: z.ZodCoercedDate<unknown>;
105
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
106
+ updatedAt: z.ZodCoercedDate<unknown>;
107
+ }, z.core.$strip>>;
108
+ createdAt: z.ZodCoercedDate<unknown>;
109
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
110
+ updatedAt: z.ZodCoercedDate<unknown>;
111
+ }, z.core.$strip>;
112
+ export type PhotoSessionGroup = z.infer<typeof PhotoSessionGroupSchema>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionGroupSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const photo_session_job_schema_1 = require("./photo-session-job.schema");
7
+ exports.PhotoSessionGroupSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string(),
9
+ title: zod_1.z.string(),
10
+ prompt: zod_1.z.string(),
11
+ status: zod_1.z.nativeEnum(constants_1.PHOTO_SESSION_GROUP_STATUS),
12
+ error: zod_1.z.string().nullable(),
13
+ modelId: zod_1.z.string(),
14
+ price: zod_1.z.number(),
15
+ tokenReservationId: zod_1.z.string().nullable(),
16
+ params: zod_1.z.unknown(),
17
+ attempts: zod_1.z.array(zod_1.z.unknown()),
18
+ scope: zod_1.z.nativeEnum(constants_1.JOB_SCOPE),
19
+ userId: zod_1.z.string().nullable(),
20
+ unregisteredUserId: zod_1.z.string().nullable(),
21
+ isDeleted: zod_1.z.boolean(),
22
+ subJobs: zod_1.z.array(photo_session_job_schema_1.PhotoSessionJobSchema),
23
+ createdAt: zod_1.z.coerce.date(),
24
+ completedAt: zod_1.z.coerce.date().nullable(),
25
+ updatedAt: zod_1.z.coerce.date(),
26
+ });
@@ -0,0 +1,158 @@
1
+ import { z } from 'zod';
2
+ import { TOOL_JOB_STATUS, USER_REACTION } from '../../../constants';
3
+ export declare const PhotoSessionJobParamsSchema: z.ZodObject<{
4
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ url: z.ZodString;
7
+ name: z.ZodString;
8
+ mimeType: z.ZodString;
9
+ type: z.ZodString;
10
+ size: z.ZodNumber;
11
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
12
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
14
+ }, z.core.$strip>>>;
15
+ styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
16
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ photosCount: z.ZodOptional<z.ZodNumber>;
19
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ uuid: z.ZodString;
21
+ url: z.ZodString;
22
+ name: z.ZodString;
23
+ mimeType: z.ZodString;
24
+ type: z.ZodString;
25
+ size: z.ZodNumber;
26
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
27
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
29
+ }, z.core.$strip>>>;
30
+ hairstylePhotos: 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
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ uuid: z.ZodString;
43
+ url: z.ZodString;
44
+ name: z.ZodString;
45
+ mimeType: z.ZodString;
46
+ type: z.ZodString;
47
+ size: z.ZodNumber;
48
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
49
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
51
+ }, z.core.$strip>>>;
52
+ aspectRatio: z.ZodOptional<z.ZodString>;
53
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
54
+ }, z.core.$strip>;
55
+ export type PhotoSessionJobParams = z.infer<typeof PhotoSessionJobParamsSchema>;
56
+ export declare const PhotoSessionJobAttemptSchema: z.ZodObject<{
57
+ order: z.ZodNumber;
58
+ attemptId: z.ZodOptional<z.ZodString>;
59
+ status: z.ZodEnum<{
60
+ completed: TOOL_JOB_STATUS.COMPLETED;
61
+ failed: TOOL_JOB_STATUS.FAILED;
62
+ pending: TOOL_JOB_STATUS.PENDING;
63
+ }>;
64
+ error: z.ZodNullable<z.ZodString>;
65
+ timestamp: z.ZodCoercedDate<unknown>;
66
+ }, z.core.$strip>;
67
+ export type PhotoSessionJobAttempt = z.infer<typeof PhotoSessionJobAttemptSchema>;
68
+ export declare const PhotoSessionJobSchema: z.ZodObject<{
69
+ uuid: z.ZodString;
70
+ prompt: z.ZodString;
71
+ reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
72
+ dislikeReason: z.ZodNullable<z.ZodString>;
73
+ externalId: z.ZodNullable<z.ZodString>;
74
+ title: z.ZodString;
75
+ status: z.ZodEnum<{
76
+ completed: TOOL_JOB_STATUS.COMPLETED;
77
+ failed: TOOL_JOB_STATUS.FAILED;
78
+ pending: TOOL_JOB_STATUS.PENDING;
79
+ }>;
80
+ error: z.ZodNullable<z.ZodString>;
81
+ modelId: z.ZodString;
82
+ groupId: z.ZodString;
83
+ previewUrl: z.ZodNullable<z.ZodString>;
84
+ params: z.ZodObject<{
85
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
86
+ uuid: z.ZodString;
87
+ url: z.ZodString;
88
+ name: z.ZodString;
89
+ mimeType: z.ZodString;
90
+ type: z.ZodString;
91
+ size: z.ZodNumber;
92
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
93
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
94
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
95
+ }, z.core.$strip>>>;
96
+ styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
97
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ photosCount: z.ZodOptional<z.ZodNumber>;
100
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
101
+ uuid: z.ZodString;
102
+ url: z.ZodString;
103
+ name: z.ZodString;
104
+ mimeType: z.ZodString;
105
+ type: z.ZodString;
106
+ size: z.ZodNumber;
107
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
108
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
110
+ }, z.core.$strip>>>;
111
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
112
+ uuid: z.ZodString;
113
+ url: z.ZodString;
114
+ name: z.ZodString;
115
+ mimeType: z.ZodString;
116
+ type: z.ZodString;
117
+ size: z.ZodNumber;
118
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
119
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
120
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
121
+ }, z.core.$strip>>>;
122
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
123
+ uuid: z.ZodString;
124
+ url: z.ZodString;
125
+ name: z.ZodString;
126
+ mimeType: z.ZodString;
127
+ type: z.ZodString;
128
+ size: z.ZodNumber;
129
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
130
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
131
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
132
+ }, z.core.$strip>>>;
133
+ aspectRatio: z.ZodOptional<z.ZodString>;
134
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
135
+ }, z.core.$strip>;
136
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
137
+ attempts: z.ZodArray<z.ZodObject<{
138
+ order: z.ZodNumber;
139
+ attemptId: z.ZodOptional<z.ZodString>;
140
+ status: z.ZodEnum<{
141
+ completed: TOOL_JOB_STATUS.COMPLETED;
142
+ failed: TOOL_JOB_STATUS.FAILED;
143
+ pending: TOOL_JOB_STATUS.PENDING;
144
+ }>;
145
+ error: z.ZodNullable<z.ZodString>;
146
+ timestamp: z.ZodCoercedDate<unknown>;
147
+ }, z.core.$strip>>;
148
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ isPublished: z.ZodBoolean;
151
+ postId: z.ZodNullable<z.ZodString>;
152
+ isDeleted: z.ZodBoolean;
153
+ isFavorite: z.ZodBoolean;
154
+ createdAt: z.ZodCoercedDate<unknown>;
155
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
156
+ updatedAt: z.ZodCoercedDate<unknown>;
157
+ }, z.core.$strip>;
158
+ export type PhotoSessionJob = z.infer<typeof PhotoSessionJobSchema>;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionJobSchema = exports.PhotoSessionJobAttemptSchema = exports.PhotoSessionJobParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const common_1 = require("../common");
7
+ const PhotoSessionJobStatusSchema = zod_1.z.enum([
8
+ constants_1.TOOL_JOB_STATUS.PENDING,
9
+ constants_1.TOOL_JOB_STATUS.COMPLETED,
10
+ constants_1.TOOL_JOB_STATUS.FAILED,
11
+ ]);
12
+ exports.PhotoSessionJobParamsSchema = zod_1.z.object({
13
+ attachedFiles: zod_1.z.array(common_1.AttachedToolFileSchema).max(3).optional(),
14
+ styleReferenceImageUrl: zod_1.z.string().optional(),
15
+ styleId: zod_1.z.string().uuid().nullable().optional(),
16
+ referenceId: zod_1.z.string().uuid().nullable().optional(),
17
+ photosCount: zod_1.z.number().int().min(1).max(6).optional(),
18
+ clothingPhotos: zod_1.z.array(common_1.AttachedToolFileSchema).max(2).optional(),
19
+ hairstylePhotos: zod_1.z.array(common_1.AttachedToolFileSchema).max(2).optional(),
20
+ accessoriesPhotos: zod_1.z.array(common_1.AttachedToolFileSchema).max(2).optional(),
21
+ aspectRatio: zod_1.z.string().optional(),
22
+ userHasActiveSubscriptionOrProduct: zod_1.z.boolean().optional(),
23
+ });
24
+ exports.PhotoSessionJobAttemptSchema = zod_1.z.object({
25
+ order: zod_1.z.number(),
26
+ attemptId: zod_1.z.string().optional(),
27
+ status: PhotoSessionJobStatusSchema,
28
+ error: zod_1.z.string().nullable(),
29
+ timestamp: zod_1.z.coerce.date(),
30
+ });
31
+ exports.PhotoSessionJobSchema = zod_1.z.object({
32
+ uuid: zod_1.z.string(),
33
+ prompt: zod_1.z.string(),
34
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
35
+ dislikeReason: zod_1.z.string().nullable(),
36
+ externalId: zod_1.z.string().nullable(),
37
+ title: zod_1.z.string(),
38
+ status: PhotoSessionJobStatusSchema,
39
+ error: zod_1.z.string().nullable(),
40
+ modelId: zod_1.z.string(),
41
+ groupId: zod_1.z.string(),
42
+ previewUrl: zod_1.z.string().nullable(),
43
+ params: exports.PhotoSessionJobParamsSchema,
44
+ imageUrls: zod_1.z.array(zod_1.z.string()).nullable(),
45
+ attempts: zod_1.z.array(exports.PhotoSessionJobAttemptSchema),
46
+ userId: zod_1.z.string().nullable().optional(),
47
+ unregisteredUserId: zod_1.z.string().nullable().optional(),
48
+ isPublished: zod_1.z.boolean(),
49
+ postId: zod_1.z.string().nullable(),
50
+ isDeleted: zod_1.z.boolean(),
51
+ isFavorite: zod_1.z.boolean(),
52
+ createdAt: zod_1.z.coerce.date(),
53
+ completedAt: zod_1.z.coerce.date().nullable().optional(),
54
+ updatedAt: zod_1.z.coerce.date(),
55
+ });
@@ -0,0 +1,114 @@
1
+ import { TOOL_MODEL_STATUS } from '../../../constants';
2
+ import { z } from 'zod';
3
+ export declare const PhotoSessionModelParamsSchema: z.ZodObject<{
4
+ imageAttachment: z.ZodObject<{
5
+ supported: z.ZodBoolean;
6
+ maxImages: z.ZodNumber;
7
+ acceptedTypes: z.ZodArray<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
10
+ width: z.ZodNumber;
11
+ height: z.ZodNumber;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ export type PhotoSessionModelParams = z.infer<typeof PhotoSessionModelParamsSchema>;
15
+ export declare const PhotoSessionModelPricingRuleConditionSchema: z.ZodObject<{
16
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
17
+ }, z.core.$strip>;
18
+ export type PhotoSessionModelPricingRuleCondition = z.infer<typeof PhotoSessionModelPricingRuleConditionSchema>;
19
+ export declare const PhotoSessionModelPricingRulesSchema: z.ZodArray<z.ZodObject<{
20
+ condition: z.ZodObject<{
21
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
22
+ }, z.core.$strip>;
23
+ value: z.ZodNumber;
24
+ }, z.core.$strip>>;
25
+ export type PhotoSessionModelPricingRules = z.infer<typeof PhotoSessionModelPricingRulesSchema>;
26
+ export declare const RawPhotoSessionModelSchema: z.ZodObject<{
27
+ uuid: z.ZodString;
28
+ title: z.ZodString;
29
+ description: z.ZodString;
30
+ aiModel: z.ZodString;
31
+ isNew: z.ZodBoolean;
32
+ tierLabel: z.ZodString;
33
+ pricePerImage: z.ZodNumber;
34
+ order: z.ZodNumber;
35
+ status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
36
+ icons: z.ZodObject<{
37
+ light: z.ZodObject<{
38
+ svg: z.ZodString;
39
+ png: z.ZodString;
40
+ }, z.core.$strip>;
41
+ dark: z.ZodObject<{
42
+ svg: z.ZodString;
43
+ png: z.ZodString;
44
+ }, z.core.$strip>;
45
+ }, z.core.$strip>;
46
+ maxInputLength: z.ZodNumber;
47
+ params: z.ZodObject<{
48
+ imageAttachment: z.ZodObject<{
49
+ supported: z.ZodBoolean;
50
+ maxImages: z.ZodNumber;
51
+ acceptedTypes: z.ZodArray<z.ZodString>;
52
+ }, z.core.$strip>;
53
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
54
+ width: z.ZodNumber;
55
+ height: z.ZodNumber;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ pricingRules: z.ZodArray<z.ZodObject<{
59
+ condition: z.ZodObject<{
60
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
61
+ }, z.core.$strip>;
62
+ value: z.ZodNumber;
63
+ }, z.core.$strip>>;
64
+ createdAt: z.ZodCoercedDate<unknown>;
65
+ updatedAt: z.ZodCoercedDate<unknown>;
66
+ }, z.core.$strip>;
67
+ export type RawPhotoSessionModel = z.infer<typeof RawPhotoSessionModelSchema>;
68
+ export declare const PhotoSessionModelSchema: z.ZodObject<{
69
+ uuid: z.ZodString;
70
+ title: z.ZodString;
71
+ description: z.ZodString;
72
+ aiModel: z.ZodString;
73
+ isNew: z.ZodBoolean;
74
+ tierLabel: z.ZodString;
75
+ pricePerImage: z.ZodNumber;
76
+ order: z.ZodNumber;
77
+ status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
78
+ icons: z.ZodObject<{
79
+ light: z.ZodObject<{
80
+ svg: z.ZodString;
81
+ png: z.ZodString;
82
+ }, z.core.$strip>;
83
+ dark: z.ZodObject<{
84
+ svg: z.ZodString;
85
+ png: z.ZodString;
86
+ }, z.core.$strip>;
87
+ }, z.core.$strip>;
88
+ maxInputLength: z.ZodNumber;
89
+ params: z.ZodObject<{
90
+ imageAttachment: z.ZodObject<{
91
+ supported: z.ZodBoolean;
92
+ maxImages: z.ZodNumber;
93
+ acceptedTypes: z.ZodArray<z.ZodString>;
94
+ }, z.core.$strip>;
95
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
96
+ width: z.ZodNumber;
97
+ height: z.ZodNumber;
98
+ }, z.core.$strip>>;
99
+ }, z.core.$strip>;
100
+ pricingRules: z.ZodArray<z.ZodObject<{
101
+ condition: z.ZodObject<{
102
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
103
+ }, z.core.$strip>;
104
+ value: z.ZodNumber;
105
+ }, z.core.$strip>>;
106
+ createdAt: z.ZodCoercedDate<unknown>;
107
+ updatedAt: z.ZodCoercedDate<unknown>;
108
+ unlockedBy: z.ZodNullable<z.ZodObject<{
109
+ uuid: z.ZodString;
110
+ name: z.ZodString;
111
+ }, z.core.$strip>>;
112
+ canUse: z.ZodBoolean;
113
+ }, z.core.$strip>;
114
+ export type PhotoSessionModel = z.infer<typeof PhotoSessionModelSchema>;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionModelSchema = exports.RawPhotoSessionModelSchema = exports.PhotoSessionModelPricingRulesSchema = exports.PhotoSessionModelPricingRuleConditionSchema = exports.PhotoSessionModelParamsSchema = void 0;
4
+ const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
5
+ const constants_1 = require("../../../constants");
6
+ const zod_1 = require("zod");
7
+ const icon_variants_schema_1 = require("../../icon-variants.schema");
8
+ exports.PhotoSessionModelParamsSchema = zod_1.z.object({
9
+ imageAttachment: zod_1.z.object({
10
+ supported: zod_1.z.boolean(),
11
+ maxImages: zod_1.z.number(),
12
+ acceptedTypes: zod_1.z.array(zod_1.z.string()),
13
+ }),
14
+ aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
15
+ width: zod_1.z.number(),
16
+ height: zod_1.z.number(),
17
+ })),
18
+ });
19
+ exports.PhotoSessionModelPricingRuleConditionSchema = zod_1.z.object({
20
+ withoutSub: zod_1.z.boolean().optional(),
21
+ });
22
+ exports.PhotoSessionModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
23
+ condition: exports.PhotoSessionModelPricingRuleConditionSchema,
24
+ value: zod_1.z.number(),
25
+ }));
26
+ exports.RawPhotoSessionModelSchema = zod_1.z.object({
27
+ uuid: zod_1.z.string(),
28
+ title: zod_1.z.string(),
29
+ description: zod_1.z.string(),
30
+ aiModel: zod_1.z.string(),
31
+ isNew: zod_1.z.boolean(),
32
+ tierLabel: zod_1.z.string(),
33
+ pricePerImage: zod_1.z.number(),
34
+ order: zod_1.z.number(),
35
+ status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
36
+ icons: icon_variants_schema_1.IconVariantsSchema,
37
+ maxInputLength: zod_1.z.number(),
38
+ params: exports.PhotoSessionModelParamsSchema,
39
+ pricingRules: exports.PhotoSessionModelPricingRulesSchema,
40
+ createdAt: zod_1.z.coerce.date(),
41
+ updatedAt: zod_1.z.coerce.date(),
42
+ });
43
+ exports.PhotoSessionModelSchema = exports.RawPhotoSessionModelSchema.extend({
44
+ unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
45
+ canUse: zod_1.z.boolean(),
46
+ });
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export declare const PhotoSessionStyleReferenceSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ styleId: z.ZodString;
5
+ photoUrl: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ order: z.ZodNumber;
8
+ createdAt: z.ZodCoercedDate<unknown>;
9
+ updatedAt: z.ZodCoercedDate<unknown>;
10
+ }, z.core.$strip>;
11
+ export type PhotoSessionStyleReference = z.infer<typeof PhotoSessionStyleReferenceSchema>;
12
+ export declare const PhotoSessionStyleSchema: z.ZodObject<{
13
+ uuid: z.ZodString;
14
+ code: z.ZodString;
15
+ title: z.ZodString;
16
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ references: z.ZodArray<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ styleId: z.ZodString;
20
+ photoUrl: z.ZodString;
21
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ order: z.ZodNumber;
23
+ createdAt: z.ZodCoercedDate<unknown>;
24
+ updatedAt: z.ZodCoercedDate<unknown>;
25
+ }, z.core.$strip>>;
26
+ createdAt: z.ZodCoercedDate<unknown>;
27
+ updatedAt: z.ZodCoercedDate<unknown>;
28
+ }, z.core.$strip>;
29
+ export type PhotoSessionStyle = z.infer<typeof PhotoSessionStyleSchema>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
7
+ styleId: zod_1.z.string().uuid(),
8
+ photoUrl: zod_1.z.string(),
9
+ description: zod_1.z.string().nullable().optional(),
10
+ order: zod_1.z.number().int().min(0).max(5),
11
+ createdAt: zod_1.z.coerce.date(),
12
+ updatedAt: zod_1.z.coerce.date(),
13
+ });
14
+ exports.PhotoSessionStyleSchema = zod_1.z.object({
15
+ uuid: zod_1.z.string().uuid(),
16
+ code: zod_1.z.string(),
17
+ title: zod_1.z.string(),
18
+ description: zod_1.z.string().nullable().optional(),
19
+ references: zod_1.z.array(exports.PhotoSessionStyleReferenceSchema),
20
+ createdAt: zod_1.z.coerce.date(),
21
+ updatedAt: zod_1.z.coerce.date(),
22
+ });
@@ -10,6 +10,8 @@ export declare const SolvingEduTaskJobParamsSchema: z.ZodObject<{
10
10
  type: z.ZodString;
11
11
  size: z.ZodNumber;
12
12
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
13
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
13
15
  }, z.core.$strip>>;
14
16
  }, z.core.$strip>;
15
17
  export type SolvingEduTaskJobParams = z.infer<typeof SolvingEduTaskJobParamsSchema>;
@@ -31,6 +33,8 @@ export declare const SolvingEduTaskJobSchema: z.ZodObject<{
31
33
  type: z.ZodString;
32
34
  size: z.ZodNumber;
33
35
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
36
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
34
38
  }, z.core.$strip>>;
35
39
  }, z.core.$strip>;
36
40
  error: z.ZodNullable<z.ZodString>;
@@ -1,12 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  export declare const SpellCorrectorToolConfigSchema: z.ZodObject<{
3
3
  maxSymbols: z.ZodNumber;
4
+ freeMaxSymbols: z.ZodNumber;
4
5
  models: z.ZodArray<z.ZodObject<{
5
6
  uuid: z.ZodString;
6
7
  title: z.ZodString;
7
8
  description: z.ZodString;
8
9
  icon: z.ZodString;
9
10
  price: z.ZodNumber;
11
+ freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
12
+ maxPromptLength: z.ZodNullable<z.ZodNumber>;
10
13
  order: z.ZodNumber;
11
14
  status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
12
15
  canUse: z.ZodBoolean;
@@ -5,5 +5,6 @@ const zod_1 = require("zod");
5
5
  const spell_corrector_model_schema_1 = require("./spell-corrector-model.schema");
6
6
  exports.SpellCorrectorToolConfigSchema = zod_1.z.object({
7
7
  maxSymbols: zod_1.z.number(),
8
+ freeMaxSymbols: zod_1.z.number(),
8
9
  models: zod_1.z.array(spell_corrector_model_schema_1.SpellCorrectorModelSchema),
9
10
  });
@@ -1,5 +1,19 @@
1
1
  import { z } from 'zod';
2
- import { USER_REACTION } from '../../../constants';
2
+ import { SPELL_CORRECTOR_INPUT_KIND, USER_REACTION } from '../../../constants';
3
+ export declare const SpellCorrectorCorrectionStatisticsSchema: z.ZodObject<{
4
+ total: z.ZodNumber;
5
+ spelling: z.ZodNumber;
6
+ punctuation: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ export declare const SpellCorrectorDocumentMetadataSchema: z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ url: z.ZodString;
11
+ name: z.ZodString;
12
+ mimeType: z.ZodString;
13
+ type: z.ZodString;
14
+ size: z.ZodNumber;
15
+ extension: z.ZodString;
16
+ }, z.core.$strip>;
3
17
  export declare const SpellCorrectorToolJobSchema: z.ZodObject<{
4
18
  uuid: z.ZodString;
5
19
  status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
@@ -8,6 +22,30 @@ export declare const SpellCorrectorToolJobSchema: z.ZodObject<{
8
22
  createdAt: z.ZodDate;
9
23
  updatedAt: z.ZodDate;
10
24
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ inputKind: z.ZodDefault<z.ZodEnum<typeof SPELL_CORRECTOR_INPUT_KIND>>;
26
+ sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
27
+ uuid: z.ZodString;
28
+ url: z.ZodString;
29
+ name: z.ZodString;
30
+ mimeType: z.ZodString;
31
+ type: z.ZodString;
32
+ size: z.ZodNumber;
33
+ extension: z.ZodString;
34
+ }, z.core.$strip>>>;
35
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
36
+ total: z.ZodNumber;
37
+ spelling: z.ZodNumber;
38
+ punctuation: z.ZodNumber;
39
+ }, z.core.$strip>>>;
40
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
41
+ uuid: z.ZodString;
42
+ url: z.ZodString;
43
+ name: z.ZodString;
44
+ mimeType: z.ZodString;
45
+ type: z.ZodString;
46
+ size: z.ZodNumber;
47
+ extension: z.ZodString;
48
+ }, z.core.$strip>>>;
11
49
  userInput: z.ZodString;
12
50
  aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
51
  title: z.ZodString;