@purpleschool/gptbot-tools 0.2.69 → 0.2.72-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 (228) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
  3. package/build/index.d.ts +3 -0
  4. package/build/index.js +3 -0
  5. package/build/music/commands/add-track-to-music-playlist.command.d.ts +199 -41
  6. package/build/music/commands/add-track-to-music-playlist.command.js +1 -1
  7. package/build/music/commands/create-music-playlist.command.d.ts +198 -40
  8. package/build/music/commands/edit-music.command.d.ts +12 -0
  9. package/build/music/commands/generate-music.command.d.ts +18 -2
  10. package/build/music/commands/generate-music.command.js +1 -1
  11. package/build/music/commands/get-music-price.command.d.ts +2 -0
  12. package/build/music/commands/get-music-price.command.js +2 -0
  13. package/build/music/commands/remove-track-from-music-playlist.command.d.ts +199 -41
  14. package/build/music/commands/remove-track-from-music-playlist.command.js +1 -1
  15. package/build/music/commands/retry-music-job.command.d.ts +12 -0
  16. package/build/music/commands/set-reaction-to-music-job.command.d.ts +12 -0
  17. package/build/music/commands/update-music-job-favorite.command.d.ts +12 -0
  18. package/build/music/commands/update-music-job-title.command.d.ts +12 -0
  19. package/build/music/commands/update-music-playlist.command.d.ts +198 -40
  20. package/build/music/commands/update-published-status-music-jobs.command.d.ts +12 -0
  21. package/build/music/enums/music-action-type.enum.d.ts +0 -2
  22. package/build/music/enums/music-action-type.enum.js +0 -2
  23. package/build/music/enums/music-audio-action-type.enum.d.ts +0 -2
  24. package/build/music/enums/music-audio-action-type.enum.js +0 -2
  25. package/build/music/models/music-job.schema.d.ts +10 -0
  26. package/build/music/models/music-job.schema.js +14 -15
  27. package/build/music/models/music-playlist.schema.d.ts +99 -20
  28. package/build/music/models/music-playlist.schema.js +3 -3
  29. package/build/music/queries/find-music-job-by-id.query.d.ts +12 -0
  30. package/build/music/queries/find-music-jobs.query.d.ts +12 -0
  31. package/build/music/queries/find-music-playlists.query.d.ts +227 -56
  32. package/build/music/queries/find-music-playlists.query.js +9 -1
  33. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
  34. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  35. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  36. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  37. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  38. package/build/photo-sessions/commands/admin/index.js +19 -0
  39. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
  40. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
  41. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
  42. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
  43. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
  44. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
  45. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +74 -0
  46. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +28 -0
  47. package/build/photo-sessions/commands/index.d.ts +10 -0
  48. package/build/photo-sessions/commands/index.js +26 -0
  49. package/build/photo-sessions/commands/photo-sessions.command.d.ts +272 -0
  50. package/build/photo-sessions/commands/photo-sessions.command.js +37 -0
  51. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +179 -0
  52. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +17 -0
  53. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +181 -0
  54. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
  55. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +179 -0
  56. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
  57. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +217 -0
  58. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
  59. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +184 -0
  60. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
  61. package/build/photo-sessions/enums/index.d.ts +3 -0
  62. package/build/photo-sessions/enums/index.js +19 -0
  63. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +6 -0
  64. package/build/photo-sessions/enums/photo-session-group-status.enum.js +10 -0
  65. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  66. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  67. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  68. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  69. package/build/photo-sessions/index.d.ts +5 -0
  70. package/build/photo-sessions/index.js +21 -0
  71. package/build/photo-sessions/models/index.d.ts +5 -0
  72. package/build/photo-sessions/models/index.js +21 -0
  73. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  74. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  75. package/build/photo-sessions/models/photo-session-group.schema.d.ts +113 -0
  76. package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
  77. package/build/photo-sessions/models/photo-session-job.schema.d.ts +159 -0
  78. package/build/photo-sessions/models/photo-session-job.schema.js +55 -0
  79. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  80. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  81. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  82. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  83. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  84. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  85. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  86. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  87. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +216 -0
  88. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
  89. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +235 -0
  90. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
  91. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  92. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  93. package/build/photo-sessions/queries/index.d.ts +5 -0
  94. package/build/photo-sessions/queries/index.js +21 -0
  95. package/build/photo-sessions/routes/index.d.ts +2 -0
  96. package/build/photo-sessions/routes/index.js +18 -0
  97. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  98. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  99. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  100. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  101. package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
  102. package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
  103. package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
  104. package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
  105. package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
  106. package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
  107. package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
  108. package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
  109. package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
  110. package/build/spell-corrector/constants/index.d.ts +1 -0
  111. package/build/spell-corrector/constants/index.js +17 -0
  112. package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
  113. package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
  114. package/build/spell-corrector/enums/index.d.ts +1 -0
  115. package/build/spell-corrector/enums/index.js +17 -0
  116. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
  117. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
  118. package/build/spell-corrector/index.d.ts +2 -0
  119. package/build/spell-corrector/index.js +2 -0
  120. package/build/spell-corrector/models/index.d.ts +2 -0
  121. package/build/spell-corrector/models/index.js +2 -0
  122. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
  123. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
  124. package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
  125. package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
  126. package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
  127. package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
  128. package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
  129. package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
  130. package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
  131. package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
  132. package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
  133. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
  134. package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
  135. package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
  136. package/build/tools/enums/tool-content-type.enum.js +1 -0
  137. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  138. package/build/tools/enums/tool-type.enum.js +1 -0
  139. package/build/tools/events/tool-job-complete.event.d.ts +1 -0
  140. package/build/tools/events/tool-job-failed.event.d.ts +1 -0
  141. package/build/tools/models/global-tools-config.schema.d.ts +81 -0
  142. package/build/tools/models/global-tools-config.schema.js +2 -0
  143. package/build/tools/models/tool-job.schema.d.ts +1 -0
  144. package/build/tools/models/tool-job.schema.js +1 -0
  145. package/build/tools/models/tools-with-configs.schema.d.ts +32 -0
  146. package/build/tools/queries/get-global-tools-config.query.d.ts +162 -0
  147. package/build/tools/queries/get-tools-with-configs.query.d.ts +32 -0
  148. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  149. package/build/tts/commands/create-voice-clone.command.js +21 -0
  150. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  151. package/build/tts/commands/create-voice-design.command.js +20 -0
  152. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  153. package/build/tts/commands/delete-voice.command.js +14 -0
  154. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  155. package/build/tts/commands/download-tts-job.command.js +19 -0
  156. package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
  157. package/build/tts/commands/improve-tts-text.command.js +16 -0
  158. package/build/tts/commands/index.d.ts +7 -0
  159. package/build/tts/commands/index.js +7 -0
  160. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  161. package/build/tts/commands/retry-tts-job.command.js +2 -0
  162. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  163. package/build/tts/commands/select-voice-design.command.js +17 -0
  164. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  165. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  166. package/build/tts/commands/tts.command.d.ts +35 -3
  167. package/build/tts/commands/tts.command.js +4 -1
  168. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  169. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  170. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  171. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  172. package/build/tts/commands/update-voice.command.d.ts +78 -0
  173. package/build/tts/commands/update-voice.command.js +18 -0
  174. package/build/tts/enums/index.d.ts +7 -0
  175. package/build/tts/enums/index.js +7 -0
  176. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  177. package/build/tts/enums/tts-download-format.enum.js +9 -0
  178. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  179. package/build/tts/enums/voice-category.enum.js +23 -0
  180. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  181. package/build/tts/enums/voice-gender.enum.js +8 -0
  182. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  183. package/build/tts/enums/voice-source.enum.js +9 -0
  184. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  185. package/build/tts/enums/voice-status.enum.js +9 -0
  186. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  187. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  188. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  189. package/build/tts/enums/voice-tag.enum.js +24 -0
  190. package/build/tts/models/index.d.ts +7 -0
  191. package/build/tts/models/index.js +7 -0
  192. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  193. package/build/tts/models/tts-config.schema.d.ts +11 -0
  194. package/build/tts/models/tts-config.schema.js +5 -0
  195. package/build/tts/models/tts-job.schema.d.ts +34 -2
  196. package/build/tts/models/tts-job.schema.js +22 -2
  197. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  198. package/build/tts/models/tts-model.schema.d.ts +1 -0
  199. package/build/tts/models/tts-model.schema.js +1 -0
  200. package/build/tts/models/voice-category.schema.d.ts +7 -0
  201. package/build/tts/models/voice-category.schema.js +9 -0
  202. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  203. package/build/tts/models/voice-design-draft.schema.js +13 -0
  204. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  205. package/build/tts/models/voice-design-sample.schema.js +8 -0
  206. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  207. package/build/tts/models/voice-gender.schema.js +9 -0
  208. package/build/tts/models/voice-source.schema.d.ts +7 -0
  209. package/build/tts/models/voice-source.schema.js +9 -0
  210. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  211. package/build/tts/models/voice-tag.schema.js +11 -0
  212. package/build/tts/models/voice.schema.d.ts +34 -0
  213. package/build/tts/models/voice.schema.js +30 -0
  214. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  215. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  216. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  217. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  218. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  219. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  220. package/build/tts/queries/find-voices.query.d.ts +122 -0
  221. package/build/tts/queries/find-voices.query.js +25 -0
  222. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  223. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  224. package/build/tts/queries/index.d.ts +2 -0
  225. package/build/tts/queries/index.js +2 -0
  226. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  227. package/build/tts/routes/tts.amqp.routes.js +9 -0
  228. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ export declare const SPELL_CORRECTOR_ERRORS: {
2
+ readonly EMPTY_CONTENT: {
3
+ readonly code: 'SPELL_CORRECTOR.EMPTY_CONTENT';
4
+ readonly httpCode: 400;
5
+ readonly message: 'Содержимое для исправления не должно быть пустым';
6
+ };
7
+ readonly FREE_LIMIT_EXCEEDED: {
8
+ readonly code: 'SPELL_CORRECTOR.FREE_LIMIT_EXCEEDED';
9
+ readonly httpCode: 400;
10
+ readonly message: 'Без платного доступа можно проверить не более 10000 символов';
11
+ };
12
+ readonly MAX_LIMIT_EXCEEDED: {
13
+ readonly code: 'SPELL_CORRECTOR.MAX_LIMIT_EXCEEDED';
14
+ readonly httpCode: 400;
15
+ readonly message: 'Можно проверить не более 100000 символов';
16
+ };
17
+ readonly DOCUMENT_ACCESS_REQUIRED: {
18
+ readonly code: 'SPELL_CORRECTOR.DOCUMENT_ACCESS_REQUIRED';
19
+ readonly httpCode: 403;
20
+ readonly message: 'Проверка документа доступна только при подтвержденном платном доступе';
21
+ };
22
+ readonly DOCUMENT_SOURCE_REQUIRED: {
23
+ readonly code: 'SPELL_CORRECTOR.DOCUMENT_SOURCE_REQUIRED';
24
+ readonly httpCode: 400;
25
+ readonly message: 'Для повторной проверки требуется актуальный подготовленный документ';
26
+ };
27
+ readonly DOCUMENT_SOURCE_MISMATCH: {
28
+ readonly code: 'SPELL_CORRECTOR.DOCUMENT_SOURCE_MISMATCH';
29
+ readonly httpCode: 400;
30
+ readonly message: 'Подготовленный документ не соответствует исходному документу задания';
31
+ };
32
+ };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SPELL_CORRECTOR_ERRORS = void 0;
4
+ exports.SPELL_CORRECTOR_ERRORS = {
5
+ EMPTY_CONTENT: {
6
+ code: 'SPELL_CORRECTOR.EMPTY_CONTENT',
7
+ httpCode: 400,
8
+ message: 'Содержимое для исправления не должно быть пустым',
9
+ },
10
+ FREE_LIMIT_EXCEEDED: {
11
+ code: 'SPELL_CORRECTOR.FREE_LIMIT_EXCEEDED',
12
+ httpCode: 400,
13
+ message: 'Без платного доступа можно проверить не более 10000 символов',
14
+ },
15
+ MAX_LIMIT_EXCEEDED: {
16
+ code: 'SPELL_CORRECTOR.MAX_LIMIT_EXCEEDED',
17
+ httpCode: 400,
18
+ message: 'Можно проверить не более 100000 символов',
19
+ },
20
+ DOCUMENT_ACCESS_REQUIRED: {
21
+ code: 'SPELL_CORRECTOR.DOCUMENT_ACCESS_REQUIRED',
22
+ httpCode: 403,
23
+ message: 'Проверка документа доступна только при подтвержденном платном доступе',
24
+ },
25
+ DOCUMENT_SOURCE_REQUIRED: {
26
+ code: 'SPELL_CORRECTOR.DOCUMENT_SOURCE_REQUIRED',
27
+ httpCode: 400,
28
+ message: 'Для повторной проверки требуется актуальный подготовленный документ',
29
+ },
30
+ DOCUMENT_SOURCE_MISMATCH: {
31
+ code: 'SPELL_CORRECTOR.DOCUMENT_SOURCE_MISMATCH',
32
+ httpCode: 400,
33
+ message: 'Подготовленный документ не соответствует исходному документу задания',
34
+ },
35
+ };
@@ -0,0 +1 @@
1
+ export * from './spell-corrector-input-kind.enum';
@@ -0,0 +1,17 @@
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("./spell-corrector-input-kind.enum"), exports);
@@ -0,0 +1,4 @@
1
+ export declare enum SPELL_CORRECTOR_INPUT_KIND {
2
+ TEXT = "text",
3
+ DOCUMENT = "document"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SPELL_CORRECTOR_INPUT_KIND = void 0;
4
+ var SPELL_CORRECTOR_INPUT_KIND;
5
+ (function (SPELL_CORRECTOR_INPUT_KIND) {
6
+ SPELL_CORRECTOR_INPUT_KIND["TEXT"] = "text";
7
+ SPELL_CORRECTOR_INPUT_KIND["DOCUMENT"] = "document";
8
+ })(SPELL_CORRECTOR_INPUT_KIND || (exports.SPELL_CORRECTOR_INPUT_KIND = SPELL_CORRECTOR_INPUT_KIND = {}));
@@ -2,3 +2,5 @@ export * from './routes';
2
2
  export * from './commands';
3
3
  export * from './models';
4
4
  export * from './queries';
5
+ export * from './constants';
6
+ export * from './enums';
@@ -18,3 +18,5 @@ __exportStar(require("./routes"), exports);
18
18
  __exportStar(require("./commands"), exports);
19
19
  __exportStar(require("./models"), exports);
20
20
  __exportStar(require("./queries"), exports);
21
+ __exportStar(require("./constants"), exports);
22
+ __exportStar(require("./enums"), exports);
@@ -1,3 +1,5 @@
1
1
  export * from './spell-corrector-model.schema';
2
2
  export * from './spell-corrector-job.schema';
3
3
  export * from './spell-corrector-tool-config.schema';
4
+ export * from './spell-corrector-document.schema';
5
+ export * from './spell-corrector-correction-statistics.schema';
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./spell-corrector-model.schema"), exports);
18
18
  __exportStar(require("./spell-corrector-job.schema"), exports);
19
19
  __exportStar(require("./spell-corrector-tool-config.schema"), exports);
20
+ __exportStar(require("./spell-corrector-document.schema"), exports);
21
+ __exportStar(require("./spell-corrector-correction-statistics.schema"), exports);
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const SpellCorrectorCorrectionStatisticsSchema: z.ZodObject<{
3
+ total: z.ZodNumber;
4
+ spelling: z.ZodNumber;
5
+ punctuation: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ export type SpellCorrectorCorrectionStatistics = z.infer<typeof SpellCorrectorCorrectionStatisticsSchema>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpellCorrectorCorrectionStatisticsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.SpellCorrectorCorrectionStatisticsSchema = zod_1.z
6
+ .object({
7
+ total: zod_1.z.number().int().nonnegative(),
8
+ spelling: zod_1.z.number().int().nonnegative(),
9
+ punctuation: zod_1.z.number().int().nonnegative(),
10
+ })
11
+ .refine((statistics) => statistics.total === statistics.spelling + statistics.punctuation, {
12
+ message: 'total must equal spelling + punctuation',
13
+ });
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export declare const SpellCorrectorDocumentMetadataSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ url: z.ZodString;
5
+ name: z.ZodString;
6
+ mimeType: z.ZodString;
7
+ type: z.ZodString;
8
+ size: z.ZodNumber;
9
+ extension: z.ZodString;
10
+ }, z.core.$strip>;
11
+ export declare const SpellCorrectorDocumentInputSchema: z.ZodObject<{
12
+ uuid: z.ZodString;
13
+ url: z.ZodString;
14
+ name: z.ZodString;
15
+ mimeType: z.ZodString;
16
+ type: z.ZodString;
17
+ size: z.ZodNumber;
18
+ extension: z.ZodString;
19
+ content: z.ZodString;
20
+ }, z.core.$strip>;
21
+ export type SpellCorrectorDocumentInput = z.infer<typeof SpellCorrectorDocumentInputSchema>;
22
+ export type SpellCorrectorDocumentMetadata = z.infer<typeof SpellCorrectorDocumentMetadataSchema>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpellCorrectorDocumentInputSchema = exports.SpellCorrectorDocumentMetadataSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.SpellCorrectorDocumentMetadataSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string(),
7
+ url: zod_1.z.string(),
8
+ name: zod_1.z.string(),
9
+ mimeType: zod_1.z.string(),
10
+ type: zod_1.z.string(),
11
+ size: zod_1.z.number(),
12
+ extension: zod_1.z.string(),
13
+ });
14
+ exports.SpellCorrectorDocumentInputSchema = exports.SpellCorrectorDocumentMetadataSchema.extend({
15
+ content: zod_1.z.string(),
16
+ });
@@ -1,13 +1,42 @@
1
1
  import { z } from 'zod';
2
2
  import { JOB_STATUS } from '../../tools';
3
3
  import { USER_REACTION } from '../../common';
4
+ import { SPELL_CORRECTOR_INPUT_KIND } from '../enums';
4
5
  export declare const SpellCorrectorJobSchema: z.ZodObject<{
5
6
  uuid: z.ZodString;
7
+ requestId: z.ZodNullable<z.ZodString>;
8
+ inputKind: z.ZodEnum<typeof SPELL_CORRECTOR_INPUT_KIND>;
9
+ sourceDocument: z.ZodNullable<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
+ extension: z.ZodString;
17
+ }, z.core.$strip>>;
18
+ statistics: z.ZodDefault<z.ZodNullable<z.ZodObject<{
19
+ total: z.ZodNumber;
20
+ spelling: z.ZodNumber;
21
+ punctuation: z.ZodNumber;
22
+ }, z.core.$strip>>>;
23
+ outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
24
+ uuid: z.ZodString;
25
+ url: z.ZodString;
26
+ name: z.ZodString;
27
+ mimeType: z.ZodString;
28
+ type: z.ZodString;
29
+ size: z.ZodNumber;
30
+ extension: z.ZodString;
31
+ }, z.core.$strip>>>;
6
32
  userId: z.ZodNullable<z.ZodString>;
7
33
  unregisteredUserId: z.ZodNullable<z.ZodString>;
8
34
  userInput: z.ZodString;
9
35
  aiOutput: z.ZodNullable<z.ZodString>;
10
36
  aiTokenUsage: z.ZodNullable<z.ZodNumber>;
37
+ wordsChanged: z.ZodNullable<z.ZodNumber>;
38
+ lettersChanged: z.ZodNullable<z.ZodNumber>;
39
+ editOperations: z.ZodNullable<z.ZodNumber>;
11
40
  price: z.ZodNumber;
12
41
  status: z.ZodEnum<typeof JOB_STATUS>;
13
42
  title: z.ZodString;
@@ -4,13 +4,24 @@ exports.SpellCorrectorJobSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const tools_1 = require("../../tools");
6
6
  const common_1 = require("../../common");
7
+ const spell_corrector_document_schema_1 = require("./spell-corrector-document.schema");
8
+ const spell_corrector_correction_statistics_schema_1 = require("./spell-corrector-correction-statistics.schema");
9
+ const enums_1 = require("../enums");
7
10
  exports.SpellCorrectorJobSchema = zod_1.z.object({
8
11
  uuid: zod_1.z.string(),
12
+ requestId: zod_1.z.string().uuid().nullable(),
13
+ inputKind: zod_1.z.nativeEnum(enums_1.SPELL_CORRECTOR_INPUT_KIND),
14
+ sourceDocument: spell_corrector_document_schema_1.SpellCorrectorDocumentMetadataSchema.nullable(),
15
+ statistics: spell_corrector_correction_statistics_schema_1.SpellCorrectorCorrectionStatisticsSchema.nullable().default(null),
16
+ outputDocument: spell_corrector_document_schema_1.SpellCorrectorDocumentMetadataSchema.nullable().default(null),
9
17
  userId: zod_1.z.string().nullable(),
10
18
  unregisteredUserId: zod_1.z.string().nullable(),
11
19
  userInput: zod_1.z.string(),
12
20
  aiOutput: zod_1.z.string().nullable(),
13
21
  aiTokenUsage: zod_1.z.number().nullable(),
22
+ wordsChanged: zod_1.z.number().nullable(),
23
+ lettersChanged: zod_1.z.number().nullable(),
24
+ editOperations: zod_1.z.number().nullable(),
14
25
  price: zod_1.z.number(),
15
26
  status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
16
27
  title: zod_1.z.string(),
@@ -16,6 +16,10 @@ export declare const SpellCorrectorModelSchema: z.ZodObject<{
16
16
  }, z.core.$strip>;
17
17
  }, z.core.$strip>;
18
18
  price: z.ZodNumber;
19
+ inputPrice: z.ZodNullable<z.ZodNumber>;
20
+ outputPrice: z.ZodNullable<z.ZodNumber>;
21
+ freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
22
+ maxPromptLength: z.ZodNullable<z.ZodNumber>;
19
23
  aiModel: z.ZodString;
20
24
  status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
21
25
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof REASONING_EFFORT>>>;
@@ -10,6 +10,10 @@ exports.SpellCorrectorModelSchema = zod_1.z.object({
10
10
  icon: zod_1.z.string(),
11
11
  icons: common_1.IconVariantsSchema,
12
12
  price: zod_1.z.number(),
13
+ inputPrice: zod_1.z.number().nullable(),
14
+ outputPrice: zod_1.z.number().nullable(),
15
+ freeMaxPromptLength: zod_1.z.number().nullable(),
16
+ maxPromptLength: zod_1.z.number().nullable(),
13
17
  aiModel: zod_1.z.string(),
14
18
  status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
15
19
  reasoningEffort: zod_1.z.nativeEnum(common_1.REASONING_EFFORT).nullable().optional(),
@@ -16,6 +16,10 @@ export declare const SpellCorrectorToolConfigSchema: z.ZodObject<{
16
16
  }, z.core.$strip>;
17
17
  }, z.core.$strip>;
18
18
  price: z.ZodNumber;
19
+ inputPrice: z.ZodNullable<z.ZodNumber>;
20
+ outputPrice: z.ZodNullable<z.ZodNumber>;
21
+ freeMaxPromptLength: z.ZodNullable<z.ZodNumber>;
22
+ maxPromptLength: z.ZodNullable<z.ZodNumber>;
19
23
  aiModel: z.ZodString;
20
24
  status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
21
25
  reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").REASONING_EFFORT>>>;
@@ -24,5 +28,6 @@ export declare const SpellCorrectorToolConfigSchema: z.ZodObject<{
24
28
  updatedAt: z.ZodDate;
25
29
  }, z.core.$strip>>;
26
30
  maxSymbols: z.ZodNumber;
31
+ freeMaxSymbols: z.ZodNumber;
27
32
  }, z.core.$strip>;
28
33
  export type SpellCorrectorTool = z.infer<typeof SpellCorrectorToolConfigSchema>;
@@ -6,4 +6,5 @@ const spell_corrector_model_schema_1 = require("./spell-corrector-model.schema")
6
6
  exports.SpellCorrectorToolConfigSchema = zod_1.z.object({
7
7
  models: zod_1.z.array(spell_corrector_model_schema_1.SpellCorrectorModelSchema),
8
8
  maxSymbols: zod_1.z.number(),
9
+ freeMaxSymbols: zod_1.z.number(),
9
10
  });
@@ -10,11 +10,39 @@ export declare namespace FindSpellCorrectorJobByUuidQuery {
10
10
  isSuccess: z.ZodBoolean;
11
11
  data: z.ZodOptional<z.ZodType<{
12
12
  uuid: string;
13
+ requestId: string | null;
14
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
15
+ sourceDocument: {
16
+ uuid: string;
17
+ url: string;
18
+ name: string;
19
+ mimeType: string;
20
+ type: string;
21
+ size: number;
22
+ extension: string;
23
+ } | null;
24
+ statistics: {
25
+ total: number;
26
+ spelling: number;
27
+ punctuation: number;
28
+ } | null;
29
+ outputDocument: {
30
+ uuid: string;
31
+ url: string;
32
+ name: string;
33
+ mimeType: string;
34
+ type: string;
35
+ size: number;
36
+ extension: string;
37
+ } | null;
13
38
  userId: string | null;
14
39
  unregisteredUserId: string | null;
15
40
  userInput: string;
16
41
  aiOutput: string | null;
17
42
  aiTokenUsage: number | null;
43
+ wordsChanged: number | null;
44
+ lettersChanged: number | null;
45
+ editOperations: number | null;
18
46
  price: number;
19
47
  status: import("../..").JOB_STATUS;
20
48
  title: string;
@@ -28,11 +56,39 @@ export declare namespace FindSpellCorrectorJobByUuidQuery {
28
56
  completedAt: Date | null;
29
57
  }, unknown, z.core.$ZodTypeInternals<{
30
58
  uuid: string;
59
+ requestId: string | null;
60
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
61
+ sourceDocument: {
62
+ uuid: string;
63
+ url: string;
64
+ name: string;
65
+ mimeType: string;
66
+ type: string;
67
+ size: number;
68
+ extension: string;
69
+ } | null;
70
+ statistics: {
71
+ total: number;
72
+ spelling: number;
73
+ punctuation: number;
74
+ } | null;
75
+ outputDocument: {
76
+ uuid: string;
77
+ url: string;
78
+ name: string;
79
+ mimeType: string;
80
+ type: string;
81
+ size: number;
82
+ extension: string;
83
+ } | null;
31
84
  userId: string | null;
32
85
  unregisteredUserId: string | null;
33
86
  userInput: string;
34
87
  aiOutput: string | null;
35
88
  aiTokenUsage: number | null;
89
+ wordsChanged: number | null;
90
+ lettersChanged: number | null;
91
+ editOperations: number | null;
36
92
  price: number;
37
93
  status: import("../..").JOB_STATUS;
38
94
  title: string;
@@ -17,11 +17,39 @@ export declare namespace FindSpellCorrectorJobsQuery {
17
17
  data: z.ZodOptional<z.ZodType<{
18
18
  data: {
19
19
  uuid: string;
20
+ requestId: string | null;
21
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
22
+ sourceDocument: {
23
+ uuid: string;
24
+ url: string;
25
+ name: string;
26
+ mimeType: string;
27
+ type: string;
28
+ size: number;
29
+ extension: string;
30
+ } | null;
31
+ statistics: {
32
+ total: number;
33
+ spelling: number;
34
+ punctuation: number;
35
+ } | null;
36
+ outputDocument: {
37
+ uuid: string;
38
+ url: string;
39
+ name: string;
40
+ mimeType: string;
41
+ type: string;
42
+ size: number;
43
+ extension: string;
44
+ } | null;
20
45
  userId: string | null;
21
46
  unregisteredUserId: string | null;
22
47
  userInput: string;
23
48
  aiOutput: string | null;
24
49
  aiTokenUsage: number | null;
50
+ wordsChanged: number | null;
51
+ lettersChanged: number | null;
52
+ editOperations: number | null;
25
53
  price: number;
26
54
  status: JOB_STATUS;
27
55
  title: string;
@@ -40,11 +68,39 @@ export declare namespace FindSpellCorrectorJobsQuery {
40
68
  }, unknown, z.core.$ZodTypeInternals<{
41
69
  data: {
42
70
  uuid: string;
71
+ requestId: string | null;
72
+ inputKind: import("..").SPELL_CORRECTOR_INPUT_KIND;
73
+ sourceDocument: {
74
+ uuid: string;
75
+ url: string;
76
+ name: string;
77
+ mimeType: string;
78
+ type: string;
79
+ size: number;
80
+ extension: string;
81
+ } | null;
82
+ statistics: {
83
+ total: number;
84
+ spelling: number;
85
+ punctuation: number;
86
+ } | null;
87
+ outputDocument: {
88
+ uuid: string;
89
+ url: string;
90
+ name: string;
91
+ mimeType: string;
92
+ type: string;
93
+ size: number;
94
+ extension: string;
95
+ } | null;
43
96
  userId: string | null;
44
97
  unregisteredUserId: string | null;
45
98
  userInput: string;
46
99
  aiOutput: string | null;
47
100
  aiTokenUsage: number | null;
101
+ wordsChanged: number | null;
102
+ lettersChanged: number | null;
103
+ editOperations: number | null;
48
104
  price: number;
49
105
  status: JOB_STATUS;
50
106
  title: string;
@@ -23,6 +23,10 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
23
23
  };
24
24
  };
25
25
  price: number;
26
+ inputPrice: number | null;
27
+ outputPrice: number | null;
28
+ freeMaxPromptLength: number | null;
29
+ maxPromptLength: number | null;
26
30
  aiModel: string;
27
31
  status: import("../..").TOOL_MODEL_STATUS;
28
32
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -31,6 +35,7 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
31
35
  updatedAt: Date;
32
36
  }[];
33
37
  maxSymbols: number;
38
+ freeMaxSymbols: number;
34
39
  }, unknown, z.core.$ZodTypeInternals<{
35
40
  models: {
36
41
  uuid: string;
@@ -48,6 +53,10 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
48
53
  };
49
54
  };
50
55
  price: number;
56
+ inputPrice: number | null;
57
+ outputPrice: number | null;
58
+ freeMaxPromptLength: number | null;
59
+ maxPromptLength: number | null;
51
60
  aiModel: string;
52
61
  status: import("../..").TOOL_MODEL_STATUS;
53
62
  reasoningEffort?: import("../..").REASONING_EFFORT | null | undefined;
@@ -56,6 +65,7 @@ export declare namespace GetSpellCorrectorToolConfigQuery {
56
65
  updatedAt: Date;
57
66
  }[];
58
67
  maxSymbols: number;
68
+ freeMaxSymbols: number;
59
69
  }, unknown>>>;
60
70
  code: z.ZodOptional<z.ZodString>;
61
71
  message: z.ZodOptional<z.ZodString>;
@@ -16,6 +16,7 @@ export declare enum TOOL_CONTENT_TYPE {
16
16
  SPELL_CORRECTOR = "SPELL_CORRECTOR",
17
17
  DIAGRAMS = "DIAGRAMS",
18
18
  HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
19
+ PHOTO_SESSIONS = "PHOTO_SESSIONS",
19
20
  IMAGE_RECOGNITION = "IMAGE_RECOGNITION",
20
21
  SOUND_GENERATION = "SOUND_GENERATION"
21
22
  }
@@ -20,6 +20,7 @@ var TOOL_CONTENT_TYPE;
20
20
  TOOL_CONTENT_TYPE["SPELL_CORRECTOR"] = "SPELL_CORRECTOR";
21
21
  TOOL_CONTENT_TYPE["DIAGRAMS"] = "DIAGRAMS";
22
22
  TOOL_CONTENT_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
23
+ TOOL_CONTENT_TYPE["PHOTO_SESSIONS"] = "PHOTO_SESSIONS";
23
24
  TOOL_CONTENT_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
24
25
  TOOL_CONTENT_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
25
26
  })(TOOL_CONTENT_TYPE || (exports.TOOL_CONTENT_TYPE = TOOL_CONTENT_TYPE = {}));
@@ -18,6 +18,7 @@ export declare enum TOOL_TYPE {
18
18
  SOLVING_EDU_TASK = "SOLVING_EDU_TASK",
19
19
  DIAGRAMS = "DIAGRAMS",
20
20
  HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
21
+ PHOTO_SESSION = "PHOTO_SESSION",
21
22
  IMAGE_RECOGNITION = "IMAGE_RECOGNITION",
22
23
  SOUND_GENERATION = "SOUND_GENERATION"
23
24
  }
@@ -22,6 +22,7 @@ var TOOL_TYPE;
22
22
  TOOL_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
23
23
  TOOL_TYPE["DIAGRAMS"] = "DIAGRAMS";
24
24
  TOOL_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
25
+ TOOL_TYPE["PHOTO_SESSION"] = "PHOTO_SESSION";
25
26
  TOOL_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
26
27
  TOOL_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
27
28
  })(TOOL_TYPE || (exports.TOOL_TYPE = TOOL_TYPE = {}));
@@ -9,6 +9,7 @@ export declare namespace ToolJobCompleteEvent {
9
9
  unregisteredUserId: z.ZodNullable<z.ZodString>;
10
10
  price: z.ZodNumber;
11
11
  tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ idempotencyKey: z.ZodOptional<z.ZodString>;
12
13
  createdAt: z.ZodDate;
13
14
  updatedAt: z.ZodDate;
14
15
  toolType: z.ZodEnum<typeof TOOL_TYPE>;
@@ -8,6 +8,7 @@ export declare namespace ToolJobFailedEvent {
8
8
  unregisteredUserId: z.ZodNullable<z.ZodString>;
9
9
  price: z.ZodNumber;
10
10
  tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ idempotencyKey: z.ZodOptional<z.ZodString>;
11
12
  createdAt: z.ZodDate;
12
13
  updatedAt: z.ZodDate;
13
14
  toolType: z.ZodEnum<typeof TOOL_TYPE>;