@purpleschool/gptbot 0.15.57 → 0.15.58-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 (262) hide show
  1. package/build/api/controllers/http/avatar-studio.d.ts +5 -2
  2. package/build/api/controllers/http/avatar-studio.js +6 -4
  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/tts.d.ts +9 -0
  8. package/build/api/controllers/http/tts.js +9 -0
  9. package/build/api/routes.d.ts +50 -3
  10. package/build/api/routes.js +50 -3
  11. package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +11 -0
  12. package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +1 -1
  13. package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +1 -1
  14. package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +1 -1
  15. package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +1 -1
  16. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.d.ts +4 -2
  17. package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.js +4 -2
  18. 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} +3 -3
  19. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js +17 -0
  20. package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +1 -1
  21. package/build/commands/avatar-studio/scene/index.d.ts +1 -1
  22. package/build/commands/avatar-studio/scene/index.js +1 -1
  23. package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +1 -1
  24. package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +1 -1
  25. package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +2 -2
  26. package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +1 -1
  27. package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +1 -1
  28. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +5 -6
  29. package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +7 -12
  30. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +43 -0
  31. package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.js +19 -0
  32. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.d.ts +11 -0
  33. package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.js +13 -0
  34. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +26 -56
  35. package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.js +6 -7
  36. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +36 -0
  37. package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.js +11 -0
  38. package/build/commands/avatar-studio/voice/index.d.ts +3 -0
  39. package/build/commands/avatar-studio/voice/index.js +3 -0
  40. package/build/commands/product/create-product.command.d.ts +0 -76
  41. package/build/commands/product/find-product.command.d.ts +0 -76
  42. package/build/commands/product/get-my-products.command.d.ts +0 -38
  43. package/build/commands/product/update-product.command.d.ts +0 -76
  44. package/build/commands/subscription/create-subscription.command.d.ts +0 -76
  45. package/build/commands/subscription/find-subscription.command.d.ts +0 -114
  46. package/build/commands/subscription/get-available-upgrades.command.d.ts +0 -76
  47. package/build/commands/subscription/get-free-subscription.command.d.ts +0 -38
  48. package/build/commands/subscription/get-subscriptions-summary.command.d.ts +0 -190
  49. package/build/commands/subscription/update-subscription.command.d.ts +0 -76
  50. package/build/commands/team-account/find-current-team-account-products-by-team-account-id.command.d.ts +0 -38
  51. package/build/commands/team-account/find-current-team-account-products.command.d.ts +0 -38
  52. package/build/commands/team-account/find-current-team-account-subscriptions-by-team-account-id.command.d.ts +0 -38
  53. package/build/commands/team-account/find-current-team-account-subscriptions.command.d.ts +0 -38
  54. package/build/commands/team-account/find-team-account-products.command.d.ts +0 -38
  55. package/build/commands/team-account/find-team-account-subscriptions.command.d.ts +0 -76
  56. package/build/commands/team-account/get-team-account-available-upgrades.command.d.ts +0 -38
  57. package/build/commands/team-to-product/get-team-to-products.command.d.ts +0 -38
  58. package/build/commands/team-to-subscription/get-team-to-subscriptions.command.d.ts +0 -38
  59. package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +2 -0
  60. package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +2 -0
  61. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +2 -0
  62. package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +2 -0
  63. package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +2 -0
  64. package/build/commands/tools/image-editor/find-image-editor-job-by-uuid.command.d.ts +2 -0
  65. package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +2 -0
  66. package/build/commands/tools/image-editor/retry-image-editor-job.command.d.ts +2 -0
  67. package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.d.ts +2 -0
  68. package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.d.ts +2 -0
  69. package/build/commands/tools/image-editor/update-image-editor-job-title.command.d.ts +2 -0
  70. package/build/commands/tools/image-recognition/find-image-recognition-job-by-uuid.command.d.ts +2 -0
  71. package/build/commands/tools/image-recognition/find-image-recognition-jobs.command.d.ts +2 -0
  72. package/build/commands/tools/image-recognition/image-recognition.command.d.ts +2 -0
  73. package/build/commands/tools/image-recognition/retry-image-recognition-job.command.d.ts +2 -0
  74. package/build/commands/tools/image-recognition/set-reaction-to-image-recognition-job.command.d.ts +2 -0
  75. package/build/commands/tools/image-recognition/update-image-recognition-job-favorite.command.d.ts +2 -0
  76. package/build/commands/tools/image-recognition/update-image-recognition-job-title.command.d.ts +2 -0
  77. package/build/commands/tools/index.d.ts +1 -0
  78. package/build/commands/tools/index.js +1 -0
  79. package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.d.ts +2 -0
  80. package/build/commands/tools/interior-design/find-interior-design-jobs.command.d.ts +2 -0
  81. package/build/commands/tools/interior-design/retry-interior-design-job.command.d.ts +2 -0
  82. package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.d.ts +2 -0
  83. package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.d.ts +2 -0
  84. package/build/commands/tools/interior-design/update-interior-design-job-title.command.d.ts +2 -0
  85. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +39 -0
  86. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +22 -0
  87. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +9 -0
  88. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +11 -0
  89. package/build/commands/tools/photo-session/admin/index.d.ts +4 -0
  90. package/build/commands/tools/photo-session/admin/index.js +20 -0
  91. package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +8 -0
  92. package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +11 -0
  93. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +38 -0
  94. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +21 -0
  95. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +5 -0
  96. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +8 -0
  97. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +9 -0
  98. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +11 -0
  99. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +122 -0
  100. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +14 -0
  101. package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +131 -0
  102. package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +24 -0
  103. package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +76 -0
  104. package/build/commands/tools/photo-session/get-photo-session-config.command.js +11 -0
  105. package/build/commands/tools/photo-session/get-photo-session-price.command.d.ts +73 -0
  106. package/build/commands/tools/photo-session/get-photo-session-price.command.js +26 -0
  107. package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +23 -0
  108. package/build/commands/tools/photo-session/get-photo-session-styles.command.js +11 -0
  109. package/build/commands/tools/photo-session/index.d.ts +14 -0
  110. package/build/commands/tools/photo-session/index.js +30 -0
  111. package/build/commands/tools/photo-session/photo-session.command.d.ts +143 -0
  112. package/build/commands/tools/photo-session/photo-session.command.js +26 -0
  113. package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +129 -0
  114. package/build/commands/tools/photo-session/retry-photo-session-job.command.js +29 -0
  115. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +109 -0
  116. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +28 -0
  117. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +107 -0
  118. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +17 -0
  119. package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +126 -0
  120. package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +17 -0
  121. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +108 -0
  122. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +23 -0
  123. package/build/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.d.ts +2 -0
  124. package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.d.ts +2 -0
  125. package/build/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.d.ts +2 -0
  126. package/build/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.d.ts +2 -0
  127. package/build/commands/tools/solving-edu-task/solving-edu-task.command.d.ts +2 -0
  128. package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.d.ts +2 -0
  129. package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.d.ts +2 -0
  130. package/build/commands/tools/tool/find-grouped-tools.command.d.ts +0 -1
  131. package/build/commands/tools/tts/create-voice-clone.command.d.ts +44 -0
  132. package/build/commands/tools/tts/create-voice-clone.command.js +18 -0
  133. package/build/commands/tools/tts/create-voice-design.command.d.ts +24 -0
  134. package/build/commands/tools/tts/create-voice-design.command.js +18 -0
  135. package/build/commands/tools/tts/delete-voice.command.d.ts +9 -0
  136. package/build/commands/tools/tts/delete-voice.command.js +11 -0
  137. package/build/commands/tools/tts/download-tts-job.command.d.ts +18 -0
  138. package/build/commands/tools/tts/download-tts-job.command.js +17 -0
  139. package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +13 -1
  140. package/build/commands/tools/tts/find-tts-jobs.command.d.ts +13 -1
  141. package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +40 -0
  142. package/build/commands/tools/tts/find-voice-by-uuid.query.js +14 -0
  143. package/build/commands/tools/tts/find-voices.query.d.ts +48 -0
  144. package/build/commands/tools/tts/find-voices.query.js +18 -0
  145. package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +11 -0
  146. package/build/commands/tools/tts/improve-tts-text.command.d.ts +13 -0
  147. package/build/commands/tools/tts/improve-tts-text.command.js +13 -0
  148. package/build/commands/tools/tts/index.d.ts +9 -0
  149. package/build/commands/tools/tts/index.js +9 -0
  150. package/build/commands/tools/tts/retry-tts-job.command.d.ts +13 -1
  151. package/build/commands/tools/tts/select-voice-design.command.d.ts +44 -0
  152. package/build/commands/tools/tts/select-voice-design.command.js +17 -0
  153. package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +13 -1
  154. package/build/commands/tools/tts/tts.command.d.ts +6 -1
  155. package/build/commands/tools/tts/tts.command.js +7 -1
  156. package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +13 -1
  157. package/build/commands/tools/tts/update-tts-job-title.command.d.ts +13 -1
  158. package/build/commands/tools/tts/update-voice.command.d.ts +45 -0
  159. package/build/commands/tools/tts/update-voice.command.js +18 -0
  160. package/build/commands/user/get-user-products.command.d.ts +0 -38
  161. package/build/commands/user/get-user-subscriptions.command.d.ts +0 -38
  162. package/build/commands/user-to-subscription/get-user-to-subscriptions.command.d.ts +0 -38
  163. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +1 -0
  164. package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +1 -0
  165. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.d.ts +1 -2
  166. package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.js +0 -1
  167. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.d.ts +1 -1
  168. package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.js +1 -1
  169. package/build/constants/index.d.ts +2 -0
  170. package/build/constants/index.js +2 -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 +4 -0
  176. package/build/constants/tool-photo-session/enums/index.js +20 -0
  177. package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.d.ts +7 -0
  178. package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.js +11 -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/enums/photo-session-strategy.enum.d.ts +4 -0
  184. package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.js +8 -0
  185. package/build/constants/tool-photo-session/index.d.ts +1 -0
  186. package/build/constants/tool-photo-session/index.js +17 -0
  187. package/build/constants/tool-tts/enums/index.d.ts +7 -0
  188. package/build/constants/tool-tts/enums/index.js +23 -0
  189. package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +5 -0
  190. package/build/constants/tool-tts/enums/tts-download-format.enum.js +9 -0
  191. package/build/constants/tool-tts/enums/voice-category.enum.d.ts +19 -0
  192. package/build/constants/tool-tts/enums/voice-category.enum.js +23 -0
  193. package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +4 -0
  194. package/build/constants/tool-tts/enums/voice-gender.enum.js +8 -0
  195. package/build/constants/tool-tts/enums/voice-source.enum.d.ts +5 -0
  196. package/build/constants/tool-tts/enums/voice-source.enum.js +9 -0
  197. package/build/constants/tool-tts/enums/voice-status.enum.d.ts +5 -0
  198. package/build/constants/tool-tts/enums/voice-status.enum.js +9 -0
  199. package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +5 -0
  200. package/build/constants/tool-tts/enums/voice-tag-group.enum.js +9 -0
  201. package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +20 -0
  202. package/build/constants/tool-tts/enums/voice-tag.enum.js +24 -0
  203. package/build/constants/tool-tts/index.d.ts +1 -0
  204. package/build/constants/tool-tts/index.js +17 -0
  205. package/build/helpers/index.d.ts +1 -0
  206. package/build/helpers/index.js +1 -0
  207. package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +6 -0
  208. package/build/helpers/photo-session/calculate-photo-session-price.helper.js +13 -0
  209. package/build/helpers/photo-session/index.d.ts +1 -0
  210. package/build/helpers/photo-session/index.js +17 -0
  211. package/build/models/avatar-studio/avatar-studio.schema.d.ts +6 -6
  212. package/build/models/avatar-studio/avatar-studio.schema.js +3 -3
  213. package/build/models/canvas-node-definition.schema.d.ts +33 -0
  214. package/build/models/product.schema.d.ts +0 -38
  215. package/build/models/subscription-feature.schema.d.ts +0 -77
  216. package/build/models/subscription-feature.schema.js +0 -1
  217. package/build/models/subscription-upgrade-schema.d.ts +0 -38
  218. package/build/models/subscription.schema.d.ts +0 -190
  219. package/build/models/team-account/team-to-product.schema.d.ts +0 -38
  220. package/build/models/team-account/team-to-subscription.schema.d.ts +0 -38
  221. package/build/models/tool-group.schema.d.ts +0 -1
  222. package/build/models/tool-group.schema.js +0 -1
  223. package/build/models/tools/common/attached-tool-file.schema.d.ts +2 -0
  224. package/build/models/tools/common/attached-tool-file.schema.js +2 -0
  225. package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +4 -0
  226. package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +2 -0
  227. package/build/models/tools/image-editor/image-editor-job.schema.d.ts +4 -0
  228. package/build/models/tools/image-recognition/image-recognition-job.schema.d.ts +4 -0
  229. package/build/models/tools/index.d.ts +1 -0
  230. package/build/models/tools/index.js +1 -0
  231. package/build/models/tools/interior-design/interior-design-job.schema.d.ts +4 -0
  232. package/build/models/tools/photo-session/index.d.ts +5 -0
  233. package/build/models/tools/photo-session/index.js +21 -0
  234. package/build/models/tools/photo-session/photo-session-config.schema.d.ts +143 -0
  235. package/build/models/tools/photo-session/photo-session-config.schema.js +21 -0
  236. package/build/models/tools/photo-session/photo-session-group.schema.d.ts +115 -0
  237. package/build/models/tools/photo-session/photo-session-group.schema.js +26 -0
  238. package/build/models/tools/photo-session/photo-session-job.schema.d.ts +168 -0
  239. package/build/models/tools/photo-session/photo-session-job.schema.js +51 -0
  240. package/build/models/tools/photo-session/photo-session-model.schema.d.ts +116 -0
  241. package/build/models/tools/photo-session/photo-session-model.schema.js +47 -0
  242. package/build/models/tools/photo-session/photo-session-style.schema.d.ts +29 -0
  243. package/build/models/tools/photo-session/photo-session-style.schema.js +22 -0
  244. package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.d.ts +4 -0
  245. package/build/models/tools/tts/index.d.ts +3 -0
  246. package/build/models/tools/tts/index.js +3 -0
  247. package/build/models/tools/tts/tts-config.schema.d.ts +23 -0
  248. package/build/models/tools/tts/tts-config.schema.js +14 -1
  249. package/build/models/tools/tts/tts-job.schema.d.ts +26 -1
  250. package/build/models/tools/tts/tts-job.schema.js +16 -2
  251. package/build/models/tools/tts/tts-model.schema.d.ts +1 -0
  252. package/build/models/tools/tts/tts-model.schema.js +1 -0
  253. package/build/models/tools/tts/voice-design-draft.schema.d.ts +13 -0
  254. package/build/models/tools/tts/voice-design-draft.schema.js +13 -0
  255. package/build/models/tools/tts/voice-design-sample.schema.d.ts +6 -0
  256. package/build/models/tools/tts/voice-design-sample.schema.js +8 -0
  257. package/build/models/tools/tts/voice.schema.d.ts +33 -0
  258. package/build/models/tools/tts/voice.schema.js +37 -0
  259. package/build/models/user-to-product.schema.d.ts +0 -38
  260. package/build/models/user-to-subscription.schema.d.ts +0 -114
  261. package/package.json +1 -1
  262. package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-sample-to-all-scenes.command.js +0 -15
@@ -0,0 +1,5 @@
1
+ export * from './photo-session-config.schema';
2
+ export * from './photo-session-job.schema';
3
+ export * from './photo-session-group.schema';
4
+ export * from './photo-session-model.schema';
5
+ export * from './photo-session-style.schema';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./photo-session-config.schema"), exports);
18
+ __exportStar(require("./photo-session-job.schema"), exports);
19
+ __exportStar(require("./photo-session-group.schema"), exports);
20
+ __exportStar(require("./photo-session-model.schema"), exports);
21
+ __exportStar(require("./photo-session-style.schema"), exports);
@@ -0,0 +1,143 @@
1
+ import { z } from 'zod';
2
+ import { PHOTO_SESSION_LOOK_TYPE } from '../../../constants';
3
+ export declare const PhotoSessionLookCategorySchema: z.ZodObject<{
4
+ type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
5
+ maxPhotos: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ export declare const PhotoSessionConfigSchema: z.ZodObject<{
8
+ models: z.ZodArray<z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ title: z.ZodString;
11
+ description: z.ZodString;
12
+ aiModel: z.ZodString;
13
+ isNew: z.ZodBoolean;
14
+ tierLabel: z.ZodString;
15
+ pricePerImage: z.ZodNumber;
16
+ order: z.ZodNumber;
17
+ status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
18
+ icons: z.ZodObject<{
19
+ light: z.ZodObject<{
20
+ svg: z.ZodString;
21
+ png: z.ZodString;
22
+ }, z.core.$strip>;
23
+ dark: z.ZodObject<{
24
+ svg: z.ZodString;
25
+ png: z.ZodString;
26
+ }, z.core.$strip>;
27
+ }, z.core.$strip>;
28
+ strategy: z.ZodEnum<typeof import("../../..").PHOTO_SESSION_STRATEGY>;
29
+ maxInputLength: z.ZodNumber;
30
+ params: z.ZodObject<{
31
+ imageAttachment: z.ZodObject<{
32
+ supported: z.ZodBoolean;
33
+ maxImages: z.ZodNumber;
34
+ acceptedTypes: z.ZodArray<z.ZodString>;
35
+ }, z.core.$strip>;
36
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
37
+ width: z.ZodNumber;
38
+ height: z.ZodNumber;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ pricingRules: z.ZodArray<z.ZodObject<{
42
+ condition: z.ZodObject<{
43
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strip>;
45
+ value: z.ZodNumber;
46
+ }, z.core.$strip>>;
47
+ createdAt: z.ZodCoercedDate<unknown>;
48
+ updatedAt: z.ZodCoercedDate<unknown>;
49
+ unlockedBy: z.ZodNullable<z.ZodObject<{
50
+ uuid: z.ZodString;
51
+ name: z.ZodString;
52
+ }, z.core.$strip>>;
53
+ canUse: z.ZodBoolean;
54
+ }, z.core.$strip>>;
55
+ styles: z.ZodArray<z.ZodObject<{
56
+ uuid: z.ZodString;
57
+ code: z.ZodString;
58
+ title: z.ZodString;
59
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ references: z.ZodArray<z.ZodObject<{
61
+ uuid: z.ZodString;
62
+ styleId: z.ZodString;
63
+ photoUrl: z.ZodString;
64
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ order: z.ZodNumber;
66
+ createdAt: z.ZodCoercedDate<unknown>;
67
+ updatedAt: z.ZodCoercedDate<unknown>;
68
+ }, z.core.$strip>>;
69
+ createdAt: z.ZodCoercedDate<unknown>;
70
+ updatedAt: z.ZodCoercedDate<unknown>;
71
+ }, z.core.$strip>>;
72
+ looks: z.ZodArray<z.ZodObject<{
73
+ type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
74
+ maxPhotos: z.ZodNumber;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$strip>;
77
+ export type PhotoSessionConfig = z.infer<typeof PhotoSessionConfigSchema>;
78
+ export declare const RawPhotoSessionConfigSchema: z.ZodObject<{
79
+ models: z.ZodArray<z.ZodObject<{
80
+ uuid: z.ZodString;
81
+ title: z.ZodString;
82
+ description: z.ZodString;
83
+ aiModel: z.ZodString;
84
+ isNew: z.ZodBoolean;
85
+ tierLabel: z.ZodString;
86
+ pricePerImage: z.ZodNumber;
87
+ order: z.ZodNumber;
88
+ status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
89
+ icons: z.ZodObject<{
90
+ light: z.ZodObject<{
91
+ svg: z.ZodString;
92
+ png: z.ZodString;
93
+ }, z.core.$strip>;
94
+ dark: z.ZodObject<{
95
+ svg: z.ZodString;
96
+ png: z.ZodString;
97
+ }, z.core.$strip>;
98
+ }, z.core.$strip>;
99
+ strategy: z.ZodEnum<typeof import("../../..").PHOTO_SESSION_STRATEGY>;
100
+ maxInputLength: z.ZodNumber;
101
+ params: z.ZodObject<{
102
+ imageAttachment: z.ZodObject<{
103
+ supported: z.ZodBoolean;
104
+ maxImages: z.ZodNumber;
105
+ acceptedTypes: z.ZodArray<z.ZodString>;
106
+ }, z.core.$strip>;
107
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
108
+ width: z.ZodNumber;
109
+ height: z.ZodNumber;
110
+ }, z.core.$strip>>;
111
+ }, z.core.$strip>;
112
+ pricingRules: z.ZodArray<z.ZodObject<{
113
+ condition: z.ZodObject<{
114
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
115
+ }, z.core.$strip>;
116
+ value: z.ZodNumber;
117
+ }, z.core.$strip>>;
118
+ createdAt: z.ZodCoercedDate<unknown>;
119
+ updatedAt: z.ZodCoercedDate<unknown>;
120
+ }, z.core.$strip>>;
121
+ styles: z.ZodArray<z.ZodObject<{
122
+ uuid: z.ZodString;
123
+ code: z.ZodString;
124
+ title: z.ZodString;
125
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ references: z.ZodArray<z.ZodObject<{
127
+ uuid: z.ZodString;
128
+ styleId: z.ZodString;
129
+ photoUrl: z.ZodString;
130
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ order: z.ZodNumber;
132
+ createdAt: z.ZodCoercedDate<unknown>;
133
+ updatedAt: z.ZodCoercedDate<unknown>;
134
+ }, z.core.$strip>>;
135
+ createdAt: z.ZodCoercedDate<unknown>;
136
+ updatedAt: z.ZodCoercedDate<unknown>;
137
+ }, z.core.$strip>>;
138
+ looks: z.ZodArray<z.ZodObject<{
139
+ type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
140
+ maxPhotos: z.ZodNumber;
141
+ }, z.core.$strip>>;
142
+ }, z.core.$strip>;
143
+ export type RawPhotoSessionConfig = z.infer<typeof RawPhotoSessionConfigSchema>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RawPhotoSessionConfigSchema = exports.PhotoSessionConfigSchema = exports.PhotoSessionLookCategorySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const photo_session_model_schema_1 = require("./photo-session-model.schema");
6
+ const photo_session_style_schema_1 = require("./photo-session-style.schema");
7
+ const constants_1 = require("../../../constants");
8
+ exports.PhotoSessionLookCategorySchema = zod_1.z.object({
9
+ type: zod_1.z.nativeEnum(constants_1.PHOTO_SESSION_LOOK_TYPE),
10
+ maxPhotos: zod_1.z.number(),
11
+ });
12
+ exports.PhotoSessionConfigSchema = zod_1.z.object({
13
+ models: zod_1.z.array(photo_session_model_schema_1.PhotoSessionModelSchema),
14
+ styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
15
+ looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
16
+ });
17
+ exports.RawPhotoSessionConfigSchema = zod_1.z.object({
18
+ models: zod_1.z.array(photo_session_model_schema_1.RawPhotoSessionModelSchema),
19
+ styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
20
+ looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
21
+ });
@@ -0,0 +1,115 @@
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<typeof import("../../..").TOOL_JOB_STATUS>;
26
+ error: z.ZodNullable<z.ZodString>;
27
+ modelId: z.ZodString;
28
+ groupId: z.ZodString;
29
+ previewUrl: z.ZodNullable<z.ZodString>;
30
+ params: z.ZodObject<{
31
+ attachedFiles: z.ZodOptional<z.ZodArray<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
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
39
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
41
+ }, z.core.$strip>>>;
42
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ referenceFile: z.ZodOptional<z.ZodObject<{
44
+ uuid: z.ZodString;
45
+ url: z.ZodString;
46
+ name: z.ZodString;
47
+ mimeType: z.ZodString;
48
+ type: z.ZodString;
49
+ size: z.ZodNumber;
50
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
51
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
52
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
53
+ }, z.core.$strip>>;
54
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ uuid: z.ZodString;
59
+ url: z.ZodString;
60
+ name: z.ZodString;
61
+ mimeType: z.ZodString;
62
+ type: z.ZodString;
63
+ size: z.ZodNumber;
64
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
65
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
67
+ }, z.core.$strip>>>;
68
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ uuid: z.ZodString;
70
+ url: z.ZodString;
71
+ name: z.ZodString;
72
+ mimeType: z.ZodString;
73
+ type: z.ZodString;
74
+ size: z.ZodNumber;
75
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
76
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
77
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
78
+ }, z.core.$strip>>>;
79
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
+ uuid: z.ZodString;
81
+ url: z.ZodString;
82
+ name: z.ZodString;
83
+ mimeType: z.ZodString;
84
+ type: z.ZodString;
85
+ size: z.ZodNumber;
86
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
87
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
88
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
89
+ }, z.core.$strip>>>;
90
+ aspectRatio: z.ZodOptional<z.ZodString>;
91
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
92
+ }, z.core.$strip>;
93
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
94
+ attempts: z.ZodArray<z.ZodObject<{
95
+ order: z.ZodNumber;
96
+ attemptId: z.ZodOptional<z.ZodString>;
97
+ status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
98
+ error: z.ZodNullable<z.ZodString>;
99
+ timestamp: z.ZodCoercedDate<unknown>;
100
+ }, z.core.$strip>>;
101
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ isPublished: z.ZodBoolean;
104
+ postId: z.ZodNullable<z.ZodString>;
105
+ isDeleted: z.ZodBoolean;
106
+ isFavorite: z.ZodBoolean;
107
+ createdAt: z.ZodCoercedDate<unknown>;
108
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
109
+ updatedAt: z.ZodCoercedDate<unknown>;
110
+ }, z.core.$strip>>;
111
+ createdAt: z.ZodCoercedDate<unknown>;
112
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
113
+ updatedAt: z.ZodCoercedDate<unknown>;
114
+ }, z.core.$strip>;
115
+ 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,168 @@
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
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
+ referenceFile: z.ZodOptional<z.ZodObject<{
17
+ uuid: z.ZodString;
18
+ url: z.ZodString;
19
+ name: z.ZodString;
20
+ mimeType: z.ZodString;
21
+ type: z.ZodString;
22
+ size: z.ZodNumber;
23
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
24
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
25
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
26
+ }, z.core.$strip>>;
27
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ clothingPhotos: 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
+ hairstylePhotos: 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
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ uuid: z.ZodString;
54
+ url: z.ZodString;
55
+ name: z.ZodString;
56
+ mimeType: z.ZodString;
57
+ type: z.ZodString;
58
+ size: z.ZodNumber;
59
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
60
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
61
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
62
+ }, z.core.$strip>>>;
63
+ aspectRatio: z.ZodOptional<z.ZodString>;
64
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
65
+ }, z.core.$strip>;
66
+ export type PhotoSessionJobParams = z.infer<typeof PhotoSessionJobParamsSchema>;
67
+ export declare const PhotoSessionJobAttemptSchema: z.ZodObject<{
68
+ order: z.ZodNumber;
69
+ attemptId: z.ZodOptional<z.ZodString>;
70
+ status: z.ZodEnum<typeof TOOL_JOB_STATUS>;
71
+ error: z.ZodNullable<z.ZodString>;
72
+ timestamp: z.ZodCoercedDate<unknown>;
73
+ }, z.core.$strip>;
74
+ export type PhotoSessionJobAttempt = z.infer<typeof PhotoSessionJobAttemptSchema>;
75
+ export declare const PhotoSessionJobSchema: z.ZodObject<{
76
+ uuid: z.ZodString;
77
+ prompt: z.ZodString;
78
+ reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
79
+ dislikeReason: z.ZodNullable<z.ZodString>;
80
+ externalId: z.ZodNullable<z.ZodString>;
81
+ title: z.ZodString;
82
+ status: z.ZodEnum<typeof TOOL_JOB_STATUS>;
83
+ error: z.ZodNullable<z.ZodString>;
84
+ modelId: z.ZodString;
85
+ groupId: z.ZodString;
86
+ previewUrl: z.ZodNullable<z.ZodString>;
87
+ params: z.ZodObject<{
88
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
89
+ uuid: z.ZodString;
90
+ url: z.ZodString;
91
+ name: z.ZodString;
92
+ mimeType: z.ZodString;
93
+ type: z.ZodString;
94
+ size: z.ZodNumber;
95
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
96
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
97
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
98
+ }, z.core.$strip>>>;
99
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
100
+ referenceFile: z.ZodOptional<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
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
115
+ uuid: z.ZodString;
116
+ url: z.ZodString;
117
+ name: z.ZodString;
118
+ mimeType: z.ZodString;
119
+ type: z.ZodString;
120
+ size: z.ZodNumber;
121
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
122
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
123
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
124
+ }, z.core.$strip>>>;
125
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ uuid: z.ZodString;
127
+ url: z.ZodString;
128
+ name: z.ZodString;
129
+ mimeType: z.ZodString;
130
+ type: z.ZodString;
131
+ size: z.ZodNumber;
132
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
133
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
134
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
135
+ }, z.core.$strip>>>;
136
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
+ uuid: z.ZodString;
138
+ url: z.ZodString;
139
+ name: z.ZodString;
140
+ mimeType: z.ZodString;
141
+ type: z.ZodString;
142
+ size: z.ZodNumber;
143
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
144
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
145
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
146
+ }, z.core.$strip>>>;
147
+ aspectRatio: z.ZodOptional<z.ZodString>;
148
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
149
+ }, z.core.$strip>;
150
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
151
+ attempts: z.ZodArray<z.ZodObject<{
152
+ order: z.ZodNumber;
153
+ attemptId: z.ZodOptional<z.ZodString>;
154
+ status: z.ZodEnum<typeof TOOL_JOB_STATUS>;
155
+ error: z.ZodNullable<z.ZodString>;
156
+ timestamp: z.ZodCoercedDate<unknown>;
157
+ }, z.core.$strip>>;
158
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ isPublished: z.ZodBoolean;
161
+ postId: z.ZodNullable<z.ZodString>;
162
+ isDeleted: z.ZodBoolean;
163
+ isFavorite: z.ZodBoolean;
164
+ createdAt: z.ZodCoercedDate<unknown>;
165
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
166
+ updatedAt: z.ZodCoercedDate<unknown>;
167
+ }, z.core.$strip>;
168
+ export type PhotoSessionJob = z.infer<typeof PhotoSessionJobSchema>;
@@ -0,0 +1,51 @@
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
+ exports.PhotoSessionJobParamsSchema = zod_1.z.object({
8
+ attachedFiles: zod_1.z.array(common_1.AttachedToolFileSchema).max(3).optional(),
9
+ imageUrls: zod_1.z.array(zod_1.z.string()).optional(),
10
+ referenceFile: common_1.AttachedToolFileSchema.optional(),
11
+ styleId: zod_1.z.string().uuid().nullable().optional(),
12
+ referenceId: zod_1.z.string().uuid().nullable().optional(),
13
+ referenceIds: zod_1.z.array(zod_1.z.string().uuid()).max(6).optional(),
14
+ clothingPhotos: zod_1.z.array(common_1.AttachedToolFileSchema).max(2).optional(),
15
+ hairstylePhotos: zod_1.z.array(common_1.AttachedToolFileSchema).max(2).optional(),
16
+ accessoriesPhotos: zod_1.z.array(common_1.AttachedToolFileSchema).max(2).optional(),
17
+ aspectRatio: zod_1.z.string().optional(),
18
+ userHasActiveSubscriptionOrProduct: zod_1.z.boolean().optional(),
19
+ });
20
+ exports.PhotoSessionJobAttemptSchema = zod_1.z.object({
21
+ order: zod_1.z.number(),
22
+ attemptId: zod_1.z.string().optional(),
23
+ status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS),
24
+ error: zod_1.z.string().nullable(),
25
+ timestamp: zod_1.z.coerce.date(),
26
+ });
27
+ exports.PhotoSessionJobSchema = zod_1.z.object({
28
+ uuid: zod_1.z.string(),
29
+ prompt: zod_1.z.string(),
30
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
31
+ dislikeReason: zod_1.z.string().nullable(),
32
+ externalId: zod_1.z.string().nullable(),
33
+ title: zod_1.z.string(),
34
+ status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS),
35
+ error: zod_1.z.string().nullable(),
36
+ modelId: zod_1.z.string(),
37
+ groupId: zod_1.z.string(),
38
+ previewUrl: zod_1.z.string().nullable(),
39
+ params: exports.PhotoSessionJobParamsSchema,
40
+ imageUrls: zod_1.z.array(zod_1.z.string()).nullable(),
41
+ attempts: zod_1.z.array(exports.PhotoSessionJobAttemptSchema),
42
+ userId: zod_1.z.string().nullable().optional(),
43
+ unregisteredUserId: zod_1.z.string().nullable().optional(),
44
+ isPublished: zod_1.z.boolean(),
45
+ postId: zod_1.z.string().nullable(),
46
+ isDeleted: zod_1.z.boolean(),
47
+ isFavorite: zod_1.z.boolean(),
48
+ createdAt: zod_1.z.coerce.date(),
49
+ completedAt: zod_1.z.coerce.date().nullable().optional(),
50
+ updatedAt: zod_1.z.coerce.date(),
51
+ });
@@ -0,0 +1,116 @@
1
+ import { PHOTO_SESSION_STRATEGY, 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
+ strategy: z.ZodEnum<typeof PHOTO_SESSION_STRATEGY>;
47
+ maxInputLength: z.ZodNumber;
48
+ params: z.ZodObject<{
49
+ imageAttachment: z.ZodObject<{
50
+ supported: z.ZodBoolean;
51
+ maxImages: z.ZodNumber;
52
+ acceptedTypes: z.ZodArray<z.ZodString>;
53
+ }, z.core.$strip>;
54
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
55
+ width: z.ZodNumber;
56
+ height: z.ZodNumber;
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>;
59
+ pricingRules: z.ZodArray<z.ZodObject<{
60
+ condition: z.ZodObject<{
61
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
62
+ }, z.core.$strip>;
63
+ value: z.ZodNumber;
64
+ }, z.core.$strip>>;
65
+ createdAt: z.ZodCoercedDate<unknown>;
66
+ updatedAt: z.ZodCoercedDate<unknown>;
67
+ }, z.core.$strip>;
68
+ export type RawPhotoSessionModel = z.infer<typeof RawPhotoSessionModelSchema>;
69
+ export declare const PhotoSessionModelSchema: z.ZodObject<{
70
+ uuid: z.ZodString;
71
+ title: z.ZodString;
72
+ description: z.ZodString;
73
+ aiModel: z.ZodString;
74
+ isNew: z.ZodBoolean;
75
+ tierLabel: z.ZodString;
76
+ pricePerImage: z.ZodNumber;
77
+ order: z.ZodNumber;
78
+ status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
79
+ icons: z.ZodObject<{
80
+ light: z.ZodObject<{
81
+ svg: z.ZodString;
82
+ png: z.ZodString;
83
+ }, z.core.$strip>;
84
+ dark: z.ZodObject<{
85
+ svg: z.ZodString;
86
+ png: z.ZodString;
87
+ }, z.core.$strip>;
88
+ }, z.core.$strip>;
89
+ strategy: z.ZodEnum<typeof PHOTO_SESSION_STRATEGY>;
90
+ maxInputLength: z.ZodNumber;
91
+ params: z.ZodObject<{
92
+ imageAttachment: z.ZodObject<{
93
+ supported: z.ZodBoolean;
94
+ maxImages: z.ZodNumber;
95
+ acceptedTypes: z.ZodArray<z.ZodString>;
96
+ }, z.core.$strip>;
97
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
98
+ width: z.ZodNumber;
99
+ height: z.ZodNumber;
100
+ }, z.core.$strip>>;
101
+ }, z.core.$strip>;
102
+ pricingRules: z.ZodArray<z.ZodObject<{
103
+ condition: z.ZodObject<{
104
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
105
+ }, z.core.$strip>;
106
+ value: z.ZodNumber;
107
+ }, z.core.$strip>>;
108
+ createdAt: z.ZodCoercedDate<unknown>;
109
+ updatedAt: z.ZodCoercedDate<unknown>;
110
+ unlockedBy: z.ZodNullable<z.ZodObject<{
111
+ uuid: z.ZodString;
112
+ name: z.ZodString;
113
+ }, z.core.$strip>>;
114
+ canUse: z.ZodBoolean;
115
+ }, z.core.$strip>;
116
+ export type PhotoSessionModel = z.infer<typeof PhotoSessionModelSchema>;