@purpleschool/gptbot-tools 0.2.67-stage2 → 0.2.67

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 (280) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +0 -1
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +0 -1
  3. package/build/diagrams/commands/diagrams.command.d.ts +1 -0
  4. package/build/diagrams/commands/diagrams.command.js +1 -0
  5. package/build/diagrams/commands/edit-diagrams-job.command.d.ts +1 -0
  6. package/build/diagrams/commands/edit-diagrams-job.command.js +1 -0
  7. package/build/diagrams/commands/retry-diagrams-job.command.d.ts +1 -0
  8. package/build/diagrams/commands/retry-diagrams-job.command.js +1 -0
  9. package/build/html-page-builder/commands/html-page-builder-execute.command.d.ts +1 -0
  10. package/build/html-page-builder/commands/html-page-builder-execute.command.js +1 -0
  11. package/build/image-editor/commands/image-editor.command.d.ts +1 -0
  12. package/build/image-editor/commands/image-editor.command.js +1 -0
  13. package/build/image-editor/commands/retry-image-editor-job.command.d.ts +1 -0
  14. package/build/image-editor/commands/retry-image-editor-job.command.js +1 -0
  15. package/build/image-editor/enums/image-editor-strategy.enum.d.ts +1 -0
  16. package/build/image-editor/enums/image-editor-strategy.enum.js +1 -0
  17. package/build/image-generation/commands/execute-image-generation.command.d.ts +1 -0
  18. package/build/image-generation/commands/execute-image-generation.command.js +1 -0
  19. package/build/image-generation/commands/retry-image-generation-job.command.d.ts +1 -0
  20. package/build/image-generation/commands/retry-image-generation-job.command.js +1 -0
  21. package/build/image-generation/enums/image-generation-model-strategy.enum.d.ts +2 -1
  22. package/build/image-generation/enums/image-generation-model-strategy.enum.js +2 -0
  23. package/build/image-recognition/commands/image-recognition.command.d.ts +1 -0
  24. package/build/image-recognition/commands/image-recognition.command.js +1 -0
  25. package/build/image-recognition/commands/retry-image-recognition-job.command.d.ts +1 -0
  26. package/build/image-recognition/commands/retry-image-recognition-job.command.js +1 -0
  27. package/build/index.d.ts +0 -3
  28. package/build/index.js +0 -3
  29. package/build/interior-design/commands/interior-design.command.d.ts +1 -0
  30. package/build/interior-design/commands/interior-design.command.js +1 -0
  31. package/build/interior-design/commands/retry-interior-design-job.command.d.ts +1 -0
  32. package/build/interior-design/commands/retry-interior-design-job.command.js +1 -0
  33. package/build/marketplace-card/commands/execute-marketplace-card.command.d.ts +1 -0
  34. package/build/marketplace-card/commands/execute-marketplace-card.command.js +1 -0
  35. package/build/marketplace-card/commands/generate-marketplace-card-description.command.d.ts +1 -0
  36. package/build/marketplace-card/commands/generate-marketplace-card-description.command.js +1 -0
  37. package/build/marketplace-card/commands/retry-marketplace-card-job.command.d.ts +1 -0
  38. package/build/marketplace-card/commands/retry-marketplace-card-job.command.js +1 -0
  39. package/build/music/commands/boost-music-style.command.d.ts +1 -0
  40. package/build/music/commands/boost-music-style.command.js +1 -0
  41. package/build/music/commands/convert-to-wav.command.d.ts +1 -0
  42. package/build/music/commands/convert-to-wav.command.js +1 -0
  43. package/build/music/commands/edit-music.command.d.ts +1 -0
  44. package/build/music/commands/generate-lyrics.command.d.ts +1 -0
  45. package/build/music/commands/generate-lyrics.command.js +1 -0
  46. package/build/music/commands/generate-music.command.d.ts +1 -0
  47. package/build/music/commands/generate-music.command.js +1 -0
  48. package/build/music/commands/retry-music-job.command.d.ts +1 -0
  49. package/build/music/commands/retry-music-job.command.js +1 -0
  50. package/build/music/models/music-job.schema.d.ts +1 -0
  51. package/build/music/models/music-job.schema.js +1 -0
  52. package/build/paraphrase/commands/paraphrase.command.d.ts +1 -0
  53. package/build/paraphrase/commands/paraphrase.command.js +1 -0
  54. package/build/paraphrase/commands/retry-paraphrase-job.command.d.ts +1 -0
  55. package/build/paraphrase/commands/retry-paraphrase-job.command.js +1 -0
  56. package/build/presentation/commands/create-presentation.command.d.ts +1 -0
  57. package/build/presentation/commands/create-presentation.command.js +1 -0
  58. package/build/presentation/commands/generate-and-insert-slide.command.d.ts +1 -0
  59. package/build/presentation/commands/generate-and-insert-slide.command.js +1 -0
  60. package/build/presentation/commands/generate-presentation-outline.command.d.ts +1 -0
  61. package/build/presentation/commands/generate-presentation-outline.command.js +1 -0
  62. package/build/presentation/commands/generate-slides.command.d.ts +1 -0
  63. package/build/presentation/commands/generate-slides.command.js +1 -0
  64. package/build/presentation/commands/presentation-generate-report.command.d.ts +1 -0
  65. package/build/presentation/commands/presentation-generate-report.command.js +1 -0
  66. package/build/presentation/commands/presentation-paraphrase.command.d.ts +1 -0
  67. package/build/presentation/commands/presentation-paraphrase.command.js +1 -0
  68. package/build/presentation/commands/update-slide-image-slot.command.d.ts +1 -0
  69. package/build/presentation/commands/update-slide-image-slot.command.js +1 -0
  70. package/build/solving-edu-task/commands/retry-solving-edu-task-job.command.d.ts +1 -0
  71. package/build/solving-edu-task/commands/retry-solving-edu-task-job.command.js +1 -0
  72. package/build/solving-edu-task/commands/solving-edu-task.command.d.ts +1 -0
  73. package/build/solving-edu-task/commands/solving-edu-task.command.js +1 -0
  74. package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +1 -0
  75. package/build/sound-generation/commands/retry-sound-generation-job.command.js +1 -0
  76. package/build/sound-generation/commands/sound-generation.command.d.ts +1 -0
  77. package/build/sound-generation/commands/sound-generation.command.js +1 -0
  78. package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +1 -0
  79. package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +1 -0
  80. package/build/spell-corrector/commands/spell-corrector.command.d.ts +1 -0
  81. package/build/spell-corrector/commands/spell-corrector.command.js +1 -0
  82. package/build/stt/commands/retry-stt-job.command.d.ts +1 -0
  83. package/build/stt/commands/retry-stt-job.command.js +1 -0
  84. package/build/stt/commands/stt.command.d.ts +1 -0
  85. package/build/stt/commands/stt.command.js +1 -0
  86. package/build/tools/enums/tool-content-type.enum.d.ts +0 -1
  87. package/build/tools/enums/tool-content-type.enum.js +0 -1
  88. package/build/tools/enums/tool-group.enum.d.ts +1 -1
  89. package/build/tools/enums/tool-group.enum.js +1 -1
  90. package/build/tools/enums/tool-type.enum.d.ts +0 -1
  91. package/build/tools/enums/tool-type.enum.js +0 -1
  92. package/build/tools/events/tool-job-complete.event.d.ts +0 -1
  93. package/build/tools/events/tool-job-failed.event.d.ts +0 -1
  94. package/build/tools/models/global-tools-config.schema.d.ts +0 -76
  95. package/build/tools/models/global-tools-config.schema.js +0 -2
  96. package/build/tools/models/tool-group.schema.d.ts +1 -0
  97. package/build/tools/models/tool-group.schema.js +1 -0
  98. package/build/tools/models/tool-job.schema.d.ts +0 -1
  99. package/build/tools/models/tool-job.schema.js +0 -1
  100. package/build/tools/models/tools-with-configs.schema.d.ts +0 -22
  101. package/build/tools/queries/find-grouped-tools.query.d.ts +2 -0
  102. package/build/tools/queries/get-global-tools-config.query.d.ts +0 -152
  103. package/build/tools/queries/get-tools-with-configs.query.d.ts +0 -22
  104. package/build/tts/commands/index.d.ts +0 -7
  105. package/build/tts/commands/index.js +0 -7
  106. package/build/tts/commands/retry-tts-job.command.d.ts +3 -29
  107. package/build/tts/commands/retry-tts-job.command.js +1 -2
  108. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
  109. package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
  110. package/build/tts/commands/tts.command.d.ts +4 -35
  111. package/build/tts/commands/tts.command.js +2 -4
  112. package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
  113. package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
  114. package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
  115. package/build/tts/commands/update-tts-job-title.command.js +0 -2
  116. package/build/tts/enums/index.d.ts +0 -7
  117. package/build/tts/enums/index.js +0 -7
  118. package/build/tts/models/index.d.ts +0 -7
  119. package/build/tts/models/index.js +0 -7
  120. package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
  121. package/build/tts/models/tts-config.schema.d.ts +0 -11
  122. package/build/tts/models/tts-config.schema.js +0 -5
  123. package/build/tts/models/tts-job.schema.d.ts +2 -34
  124. package/build/tts/models/tts-job.schema.js +2 -22
  125. package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
  126. package/build/tts/models/tts-model.schema.d.ts +0 -1
  127. package/build/tts/models/tts-model.schema.js +0 -1
  128. package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
  129. package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
  130. package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
  131. package/build/tts/queries/find-tts-jobs.query.js +0 -1
  132. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
  133. package/build/tts/queries/get-tts-config.query.d.ts +0 -22
  134. package/build/tts/queries/index.d.ts +0 -2
  135. package/build/tts/queries/index.js +0 -2
  136. package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
  137. package/build/tts/routes/tts.amqp.routes.js +0 -9
  138. package/build/video/commands/retry-video-job.command.d.ts +1 -0
  139. package/build/video/commands/retry-video-job.command.js +1 -0
  140. package/build/video/commands/video.command.d.ts +1 -0
  141. package/build/video/commands/video.command.js +1 -0
  142. package/build/video/enums/video-strategy.enum.d.ts +2 -1
  143. package/build/video/enums/video-strategy.enum.js +1 -0
  144. package/build/video-editor/commands/edit-video.command.d.ts +1 -0
  145. package/build/video-editor/commands/edit-video.command.js +1 -0
  146. package/build/video-editor/commands/retry-video-editor-job.command.d.ts +1 -0
  147. package/build/video-editor/commands/retry-video-editor-job.command.js +1 -0
  148. package/build/writer/commands/collect-sources.command.d.ts +1 -0
  149. package/build/writer/commands/collect-sources.command.js +1 -0
  150. package/build/writer/commands/create-writer-document.command.d.ts +1 -0
  151. package/build/writer/commands/create-writer-document.command.js +1 -0
  152. package/build/writer/commands/generate-document-contents.command.d.ts +1 -0
  153. package/build/writer/commands/generate-document-contents.command.js +1 -0
  154. package/build/writer/commands/generate-document-outline.command.d.ts +1 -0
  155. package/build/writer/commands/generate-document-outline.command.js +1 -0
  156. package/build/writer/commands/writer-extend-text.command.d.ts +1 -0
  157. package/build/writer/commands/writer-extend-text.command.js +1 -0
  158. package/build/writer/commands/writer-fix-errors.command.d.ts +1 -0
  159. package/build/writer/commands/writer-fix-errors.command.js +1 -0
  160. package/build/writer/commands/writer-generate-text.command.d.ts +1 -0
  161. package/build/writer/commands/writer-generate-text.command.js +1 -0
  162. package/build/writer/commands/writer-paraphrase.command.d.ts +1 -0
  163. package/build/writer/commands/writer-paraphrase.command.js +1 -0
  164. package/build/writer/commands/writer-shorten-text.command.d.ts +1 -0
  165. package/build/writer/commands/writer-shorten-text.command.js +1 -0
  166. package/package.json +1 -1
  167. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
  168. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
  169. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
  170. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
  171. package/build/photo-sessions/commands/admin/index.d.ts +0 -3
  172. package/build/photo-sessions/commands/admin/index.js +0 -19
  173. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -54
  174. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -18
  175. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +0 -17
  176. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -19
  177. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +0 -16
  178. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
  179. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -74
  180. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -28
  181. package/build/photo-sessions/commands/index.d.ts +0 -10
  182. package/build/photo-sessions/commands/index.js +0 -26
  183. package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -272
  184. package/build/photo-sessions/commands/photo-sessions.command.js +0 -37
  185. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -179
  186. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -17
  187. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -181
  188. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +0 -27
  189. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -179
  190. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
  191. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -217
  192. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
  193. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -184
  194. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
  195. package/build/photo-sessions/enums/index.d.ts +0 -3
  196. package/build/photo-sessions/enums/index.js +0 -19
  197. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +0 -6
  198. package/build/photo-sessions/enums/photo-session-group-status.enum.js +0 -10
  199. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
  200. package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
  201. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
  202. package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
  203. package/build/photo-sessions/index.d.ts +0 -5
  204. package/build/photo-sessions/index.js +0 -21
  205. package/build/photo-sessions/models/index.d.ts +0 -5
  206. package/build/photo-sessions/models/index.js +0 -21
  207. package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
  208. package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
  209. package/build/photo-sessions/models/photo-session-group.schema.d.ts +0 -113
  210. package/build/photo-sessions/models/photo-session-group.schema.js +0 -27
  211. package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -159
  212. package/build/photo-sessions/models/photo-session-job.schema.js +0 -55
  213. package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
  214. package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
  215. package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
  216. package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
  217. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
  218. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
  219. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
  220. package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
  221. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -216
  222. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -18
  223. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -235
  224. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +0 -33
  225. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
  226. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
  227. package/build/photo-sessions/queries/index.d.ts +0 -5
  228. package/build/photo-sessions/queries/index.js +0 -21
  229. package/build/photo-sessions/routes/index.d.ts +0 -2
  230. package/build/photo-sessions/routes/index.js +0 -18
  231. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
  232. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
  233. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
  234. package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
  235. package/build/tts/commands/create-voice-clone.command.d.ts +0 -81
  236. package/build/tts/commands/create-voice-clone.command.js +0 -21
  237. package/build/tts/commands/create-voice-design.command.d.ts +0 -40
  238. package/build/tts/commands/create-voice-design.command.js +0 -20
  239. package/build/tts/commands/delete-voice.command.d.ts +0 -17
  240. package/build/tts/commands/delete-voice.command.js +0 -14
  241. package/build/tts/commands/download-tts-job.command.d.ts +0 -25
  242. package/build/tts/commands/download-tts-job.command.js +0 -19
  243. package/build/tts/commands/improve-tts-text.command.d.ts +0 -22
  244. package/build/tts/commands/improve-tts-text.command.js +0 -16
  245. package/build/tts/commands/select-voice-design.command.d.ts +0 -77
  246. package/build/tts/commands/select-voice-design.command.js +0 -17
  247. package/build/tts/commands/update-voice.command.d.ts +0 -78
  248. package/build/tts/commands/update-voice.command.js +0 -18
  249. package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
  250. package/build/tts/enums/tts-download-format.enum.js +0 -9
  251. package/build/tts/enums/voice-category.enum.d.ts +0 -19
  252. package/build/tts/enums/voice-category.enum.js +0 -23
  253. package/build/tts/enums/voice-gender.enum.d.ts +0 -4
  254. package/build/tts/enums/voice-gender.enum.js +0 -8
  255. package/build/tts/enums/voice-source.enum.d.ts +0 -5
  256. package/build/tts/enums/voice-source.enum.js +0 -9
  257. package/build/tts/enums/voice-status.enum.d.ts +0 -5
  258. package/build/tts/enums/voice-status.enum.js +0 -9
  259. package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
  260. package/build/tts/enums/voice-tag-group.enum.js +0 -9
  261. package/build/tts/enums/voice-tag.enum.d.ts +0 -20
  262. package/build/tts/enums/voice-tag.enum.js +0 -24
  263. package/build/tts/models/voice-category.schema.d.ts +0 -7
  264. package/build/tts/models/voice-category.schema.js +0 -9
  265. package/build/tts/models/voice-design-draft.schema.d.ts +0 -13
  266. package/build/tts/models/voice-design-draft.schema.js +0 -13
  267. package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
  268. package/build/tts/models/voice-design-sample.schema.js +0 -8
  269. package/build/tts/models/voice-gender.schema.d.ts +0 -7
  270. package/build/tts/models/voice-gender.schema.js +0 -9
  271. package/build/tts/models/voice-source.schema.d.ts +0 -7
  272. package/build/tts/models/voice-source.schema.js +0 -9
  273. package/build/tts/models/voice-tag.schema.d.ts +0 -9
  274. package/build/tts/models/voice-tag.schema.js +0 -11
  275. package/build/tts/models/voice.schema.d.ts +0 -34
  276. package/build/tts/models/voice.schema.js +0 -30
  277. package/build/tts/queries/find-voice-by-id.query.d.ts +0 -77
  278. package/build/tts/queries/find-voice-by-id.query.js +0 -17
  279. package/build/tts/queries/find-voices.query.d.ts +0 -122
  280. package/build/tts/queries/find-voices.query.js +0 -25
@@ -11,6 +11,7 @@ var WriterFixErrorsCommand;
11
11
  documentId: zod_1.z.string().uuid(),
12
12
  selectionText: zod_1.z.string(),
13
13
  userBalance: zod_1.z.number(),
14
+ mock: zod_1.z.boolean().optional(),
14
15
  });
15
16
  WriterFixErrorsCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.object({
16
17
  output: zod_1.z.string(),
@@ -9,6 +9,7 @@ export declare namespace WriterGenerateTextCommand {
9
9
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  userBalance: z.ZodNumber;
12
+ mock: z.ZodOptional<z.ZodBoolean>;
12
13
  }, z.core.$strip>;
13
14
  type Request = z.infer<typeof RequestSchema>;
14
15
  const ResponseSchema: z.ZodObject<{
@@ -14,6 +14,7 @@ var WriterGenerateTextCommand;
14
14
  userId: zod_1.z.string().uuid().nullable().optional(),
15
15
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
16
16
  userBalance: zod_1.z.number(),
17
+ mock: zod_1.z.boolean().optional(),
17
18
  });
18
19
  WriterGenerateTextCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.object({
19
20
  output: zod_1.z.string(),
@@ -6,6 +6,7 @@ export declare namespace WriterParaphraseCommand {
6
6
  documentId: z.ZodString;
7
7
  selectionText: z.ZodString;
8
8
  userBalance: z.ZodNumber;
9
+ mock: z.ZodOptional<z.ZodBoolean>;
9
10
  }, z.core.$strip>;
10
11
  type Request = z.infer<typeof RequestSchema>;
11
12
  const ResponseSchema: z.ZodObject<{
@@ -11,6 +11,7 @@ var WriterParaphraseCommand;
11
11
  documentId: zod_1.z.string().uuid(),
12
12
  selectionText: zod_1.z.string(),
13
13
  userBalance: zod_1.z.number(),
14
+ mock: zod_1.z.boolean().optional(),
14
15
  });
15
16
  WriterParaphraseCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.object({
16
17
  output: zod_1.z.string(),
@@ -6,6 +6,7 @@ export declare namespace WriterShortenTextCommand {
6
6
  documentId: z.ZodString;
7
7
  selectionText: z.ZodString;
8
8
  userBalance: z.ZodNumber;
9
+ mock: z.ZodOptional<z.ZodBoolean>;
9
10
  }, z.core.$strip>;
10
11
  type Request = z.infer<typeof RequestSchema>;
11
12
  const ResponseSchema: z.ZodObject<{
@@ -11,6 +11,7 @@ var WriterShortenTextCommand;
11
11
  documentId: zod_1.z.string().uuid(),
12
12
  selectionText: zod_1.z.string(),
13
13
  userBalance: zod_1.z.number(),
14
+ mock: zod_1.z.boolean().optional(),
14
15
  });
15
16
  WriterShortenTextCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.object({
16
17
  output: zod_1.z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.67-stage2",
3
+ "version": "0.2.67",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [
@@ -1,58 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
3
- photoUrl: z.ZodString;
4
- description: z.ZodOptional<z.ZodString>;
5
- order: z.ZodNumber;
6
- }, z.core.$strip>;
7
- export declare namespace CreatePhotoSessionStyleCommand {
8
- const RequestSchema: z.ZodObject<{
9
- code: z.ZodString;
10
- title: z.ZodString;
11
- description: z.ZodOptional<z.ZodString>;
12
- references: z.ZodArray<z.ZodObject<{
13
- photoUrl: z.ZodString;
14
- description: z.ZodOptional<z.ZodString>;
15
- order: z.ZodNumber;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>;
18
- type Request = z.infer<typeof RequestSchema>;
19
- const ResponseSchema: z.ZodObject<{
20
- isSuccess: z.ZodBoolean;
21
- data: z.ZodOptional<z.ZodType<{
22
- uuid: string;
23
- code: string;
24
- title: string;
25
- description?: string | null | undefined;
26
- references: {
27
- uuid: string;
28
- styleId: string;
29
- photoUrl: string;
30
- description?: string | null | undefined;
31
- order: number;
32
- createdAt: Date;
33
- updatedAt: Date;
34
- }[];
35
- createdAt: Date;
36
- updatedAt: Date;
37
- }, unknown, z.core.$ZodTypeInternals<{
38
- uuid: string;
39
- code: string;
40
- title: string;
41
- description?: string | null | undefined;
42
- references: {
43
- uuid: string;
44
- styleId: string;
45
- photoUrl: string;
46
- description?: string | null | undefined;
47
- order: number;
48
- createdAt: Date;
49
- updatedAt: Date;
50
- }[];
51
- createdAt: Date;
52
- updatedAt: Date;
53
- }, unknown>>>;
54
- code: z.ZodOptional<z.ZodString>;
55
- message: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strip>;
57
- type Response = z.infer<typeof ResponseSchema>;
58
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreatePhotoSessionStyleCommand = exports.CreatePhotoSessionStyleReferenceSchema = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../../common/models/command-response.schema");
6
- const models_1 = require("../../models");
7
- exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
8
- photoUrl: zod_1.z.string(),
9
- description: zod_1.z.string().optional(),
10
- order: zod_1.z.number().int().min(0).max(5),
11
- });
12
- var CreatePhotoSessionStyleCommand;
13
- (function (CreatePhotoSessionStyleCommand) {
14
- CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
15
- code: zod_1.z.string(),
16
- title: zod_1.z.string(),
17
- description: zod_1.z.string().optional(),
18
- references: zod_1.z.array(exports.CreatePhotoSessionStyleReferenceSchema).max(6),
19
- });
20
- CreatePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
21
- })(CreatePhotoSessionStyleCommand || (exports.CreatePhotoSessionStyleCommand = CreatePhotoSessionStyleCommand = {}));
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace DeletePhotoSessionStyleCommand {
3
- const RequestSchema: z.ZodObject<{
4
- uuid: z.ZodString;
5
- }, z.core.$strip>;
6
- type Request = z.infer<typeof RequestSchema>;
7
- const ResponseSchema: z.ZodObject<{
8
- isSuccess: z.ZodBoolean;
9
- data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
10
- code: z.ZodOptional<z.ZodString>;
11
- message: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>;
13
- type Response = z.infer<typeof ResponseSchema>;
14
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeletePhotoSessionStyleCommand = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../../common/models/command-response.schema");
6
- var DeletePhotoSessionStyleCommand;
7
- (function (DeletePhotoSessionStyleCommand) {
8
- DeletePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
9
- uuid: zod_1.z.string().uuid(),
10
- });
11
- DeletePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
12
- })(DeletePhotoSessionStyleCommand || (exports.DeletePhotoSessionStyleCommand = DeletePhotoSessionStyleCommand = {}));
@@ -1,3 +0,0 @@
1
- export * from './create-photo-session-style.command';
2
- export * from './update-photo-session-style.command';
3
- export * from './delete-photo-session-style.command';
@@ -1,19 +0,0 @@
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("./create-photo-session-style.command"), exports);
18
- __exportStar(require("./update-photo-session-style.command"), exports);
19
- __exportStar(require("./delete-photo-session-style.command"), exports);
@@ -1,54 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UpdatePhotoSessionStyleCommand {
3
- const RequestSchema: z.ZodObject<{
4
- uuid: z.ZodString;
5
- code: z.ZodOptional<z.ZodString>;
6
- title: z.ZodOptional<z.ZodString>;
7
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- references: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
- photoUrl: z.ZodString;
10
- description: z.ZodOptional<z.ZodString>;
11
- order: z.ZodNumber;
12
- }, z.core.$strip>>>;
13
- }, z.core.$strip>;
14
- type Request = z.infer<typeof RequestSchema>;
15
- const ResponseSchema: z.ZodObject<{
16
- isSuccess: z.ZodBoolean;
17
- data: z.ZodOptional<z.ZodType<{
18
- uuid: string;
19
- code: string;
20
- title: string;
21
- description?: string | null | undefined;
22
- references: {
23
- uuid: string;
24
- styleId: string;
25
- photoUrl: string;
26
- description?: string | null | undefined;
27
- order: number;
28
- createdAt: Date;
29
- updatedAt: Date;
30
- }[];
31
- createdAt: Date;
32
- updatedAt: Date;
33
- }, unknown, z.core.$ZodTypeInternals<{
34
- uuid: string;
35
- code: string;
36
- title: string;
37
- description?: string | null | undefined;
38
- references: {
39
- uuid: string;
40
- styleId: string;
41
- photoUrl: string;
42
- description?: string | null | undefined;
43
- order: number;
44
- createdAt: Date;
45
- updatedAt: Date;
46
- }[];
47
- createdAt: Date;
48
- updatedAt: Date;
49
- }, unknown>>>;
50
- code: z.ZodOptional<z.ZodString>;
51
- message: z.ZodOptional<z.ZodString>;
52
- }, z.core.$strip>;
53
- type Response = z.infer<typeof ResponseSchema>;
54
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePhotoSessionStyleCommand = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../../common/models/command-response.schema");
6
- const models_1 = require("../../models");
7
- const create_photo_session_style_command_1 = require("./create-photo-session-style.command");
8
- var UpdatePhotoSessionStyleCommand;
9
- (function (UpdatePhotoSessionStyleCommand) {
10
- UpdatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
11
- uuid: zod_1.z.string().uuid(),
12
- code: zod_1.z.string().optional(),
13
- title: zod_1.z.string().optional(),
14
- description: zod_1.z.string().nullable().optional(),
15
- references: zod_1.z.array(create_photo_session_style_command_1.CreatePhotoSessionStyleReferenceSchema).max(6).optional(),
16
- });
17
- UpdatePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
18
- })(UpdatePhotoSessionStyleCommand || (exports.UpdatePhotoSessionStyleCommand = UpdatePhotoSessionStyleCommand = {}));
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
- import { JOB_SCOPE } from '../../common';
3
- export declare namespace DeleteAllPhotoSessionsJobsCommand {
4
- const RequestSchema: z.ZodObject<{
5
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- scope: z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>;
8
- }, z.core.$strip>;
9
- type Request = z.infer<typeof RequestSchema>;
10
- const ResponseSchema: z.ZodObject<{
11
- isSuccess: z.ZodBoolean;
12
- data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
13
- code: z.ZodOptional<z.ZodString>;
14
- message: z.ZodOptional<z.ZodString>;
15
- }, z.core.$strip>;
16
- type Response = z.infer<typeof ResponseSchema>;
17
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteAllPhotoSessionsJobsCommand = void 0;
4
- const zod_1 = require("zod");
5
- const common_1 = require("../../common");
6
- const command_response_schema_1 = require("../../common/models/command-response.schema");
7
- var DeleteAllPhotoSessionsJobsCommand;
8
- (function (DeleteAllPhotoSessionsJobsCommand) {
9
- DeleteAllPhotoSessionsJobsCommand.RequestSchema = zod_1.z
10
- .object({
11
- userId: zod_1.z.string().uuid().nullable().optional(),
12
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
- scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional(),
14
- })
15
- .refine((data) => Boolean(data.userId) !== Boolean(data.unregisteredUserId), {
16
- message: 'Exactly one owner identity is required',
17
- });
18
- DeleteAllPhotoSessionsJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
19
- })(DeleteAllPhotoSessionsJobsCommand || (exports.DeleteAllPhotoSessionsJobsCommand = DeleteAllPhotoSessionsJobsCommand = {}));
@@ -1,16 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace DeletePhotoSessionsJobByUuidCommand {
3
- const RequestSchema: z.ZodObject<{
4
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- uuid: z.ZodString;
7
- }, z.core.$strip>;
8
- type Request = z.infer<typeof RequestSchema>;
9
- const ResponseSchema: z.ZodObject<{
10
- isSuccess: z.ZodBoolean;
11
- data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
12
- code: z.ZodOptional<z.ZodString>;
13
- message: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>;
15
- type Response = z.infer<typeof ResponseSchema>;
16
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeletePhotoSessionsJobByUuidCommand = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../common/models/command-response.schema");
6
- var DeletePhotoSessionsJobByUuidCommand;
7
- (function (DeletePhotoSessionsJobByUuidCommand) {
8
- DeletePhotoSessionsJobByUuidCommand.RequestSchema = zod_1.z.object({
9
- userId: zod_1.z.string().uuid().nullable().optional(),
10
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
11
- uuid: zod_1.z.string(),
12
- });
13
- DeletePhotoSessionsJobByUuidCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
14
- })(DeletePhotoSessionsJobByUuidCommand || (exports.DeletePhotoSessionsJobByUuidCommand = DeletePhotoSessionsJobByUuidCommand = {}));
@@ -1,74 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace GetPhotoSessionsPriceCommand {
3
- const RequestSchema: z.ZodObject<{
4
- modelId: z.ZodString;
5
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- prompt: z.ZodOptional<z.ZodString>;
8
- params: z.ZodObject<{
9
- attachedFiles: z.ZodArray<z.ZodObject<{
10
- uuid: z.ZodString;
11
- url: z.ZodString;
12
- name: z.ZodString;
13
- mimeType: z.ZodString;
14
- type: z.ZodString;
15
- size: z.ZodNumber;
16
- duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
17
- content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
- contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
19
- }, z.core.$strip>>;
20
- styleId: z.ZodNullable<z.ZodString>;
21
- photosCount: z.ZodNumber;
22
- clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
- uuid: z.ZodString;
24
- url: z.ZodString;
25
- name: z.ZodString;
26
- mimeType: z.ZodString;
27
- type: z.ZodString;
28
- size: z.ZodNumber;
29
- duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
30
- content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
- contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
32
- }, z.core.$strip>>>;
33
- hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
- uuid: z.ZodString;
35
- url: z.ZodString;
36
- name: z.ZodString;
37
- mimeType: z.ZodString;
38
- type: z.ZodString;
39
- size: z.ZodNumber;
40
- duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
41
- content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
42
- contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
43
- }, z.core.$strip>>>;
44
- accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
- uuid: z.ZodString;
46
- url: z.ZodString;
47
- name: z.ZodString;
48
- mimeType: z.ZodString;
49
- type: z.ZodString;
50
- size: z.ZodNumber;
51
- duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
52
- content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
53
- contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
54
- }, z.core.$strip>>>;
55
- }, z.core.$strip>;
56
- userHasActiveSubscriptionOrProduct: z.ZodBoolean;
57
- }, z.core.$strip>;
58
- type Request = z.infer<typeof RequestSchema>;
59
- const ResponseDataSchema: z.ZodObject<{
60
- price: z.ZodNumber;
61
- }, z.core.$strip>;
62
- type ResponseData = z.infer<typeof ResponseDataSchema>;
63
- const ResponseSchema: z.ZodObject<{
64
- isSuccess: z.ZodBoolean;
65
- data: z.ZodOptional<z.ZodType<{
66
- price: number;
67
- }, unknown, z.core.$ZodTypeInternals<{
68
- price: number;
69
- }, unknown>>>;
70
- code: z.ZodOptional<z.ZodString>;
71
- message: z.ZodOptional<z.ZodString>;
72
- }, z.core.$strip>;
73
- type Response = z.infer<typeof ResponseSchema>;
74
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPhotoSessionsPriceCommand = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../common/models/command-response.schema");
6
- const common_1 = require("../../common");
7
- var GetPhotoSessionsPriceCommand;
8
- (function (GetPhotoSessionsPriceCommand) {
9
- GetPhotoSessionsPriceCommand.RequestSchema = zod_1.z.object({
10
- modelId: zod_1.z.string().uuid(),
11
- userId: zod_1.z.string().uuid().nullable().optional(),
12
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
- prompt: zod_1.z.string().optional(),
14
- params: zod_1.z.object({
15
- attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).min(1).max(3),
16
- styleId: zod_1.z.string().uuid().nullable(),
17
- photosCount: zod_1.z.number().int().min(1).max(6),
18
- clothingPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
19
- hairstylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
20
- accessoriesPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
21
- }),
22
- userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
23
- });
24
- GetPhotoSessionsPriceCommand.ResponseDataSchema = zod_1.z.object({
25
- price: zod_1.z.number(),
26
- });
27
- GetPhotoSessionsPriceCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(GetPhotoSessionsPriceCommand.ResponseDataSchema);
28
- })(GetPhotoSessionsPriceCommand || (exports.GetPhotoSessionsPriceCommand = GetPhotoSessionsPriceCommand = {}));
@@ -1,10 +0,0 @@
1
- export * from './delete-photo-sessions-job-by-uuid.command';
2
- export * from './delete-all-photo-sessions-jobs.command';
3
- export * from './get-photo-sessions-price.command';
4
- export * from './retry-photo-sessions-job.command';
5
- export * from './set-reaction-to-photo-sessions-job.command';
6
- export * from './photo-sessions.command';
7
- export * from './update-photo-sessions-job-title.command';
8
- export * from './update-photo-sessions-job-favorite.command';
9
- export * from './update-published-status-photo-sessions-jobs.command';
10
- export * from './admin';
@@ -1,26 +0,0 @@
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("./delete-photo-sessions-job-by-uuid.command"), exports);
18
- __exportStar(require("./delete-all-photo-sessions-jobs.command"), exports);
19
- __exportStar(require("./get-photo-sessions-price.command"), exports);
20
- __exportStar(require("./retry-photo-sessions-job.command"), exports);
21
- __exportStar(require("./set-reaction-to-photo-sessions-job.command"), exports);
22
- __exportStar(require("./photo-sessions.command"), exports);
23
- __exportStar(require("./update-photo-sessions-job-title.command"), exports);
24
- __exportStar(require("./update-photo-sessions-job-favorite.command"), exports);
25
- __exportStar(require("./update-published-status-photo-sessions-jobs.command"), exports);
26
- __exportStar(require("./admin"), exports);