@ai-grator/api 0.3.76 → 0.3.78

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 (294) hide show
  1. package/admin/endpoints/admin.ts +20 -0
  2. package/admin/endpoints/commands/ban-admin-antifraud-check-value.command.ts +37 -0
  3. package/admin/endpoints/commands/create-admin-preset-category.command.ts +29 -0
  4. package/admin/endpoints/commands/create-admin-preset.command.ts +30 -0
  5. package/admin/endpoints/commands/delete-admin-preset-category.command.ts +29 -0
  6. package/admin/endpoints/commands/delete-admin-preset.command.ts +28 -0
  7. package/admin/endpoints/commands/index.ts +10 -0
  8. package/admin/endpoints/commands/reorder-admin-preset-categories.command.ts +33 -0
  9. package/admin/endpoints/commands/reorder-admin-presets.command.ts +33 -0
  10. package/admin/endpoints/commands/update-admin-preset-category.command.ts +36 -0
  11. package/admin/endpoints/commands/update-admin-preset-status.command.ts +37 -0
  12. package/admin/endpoints/commands/update-admin-preset.command.ts +36 -0
  13. package/admin/endpoints/queries/get-admin-antifraud-checks.query.ts +35 -0
  14. package/admin/endpoints/queries/get-admin-preset-categories.query.ts +22 -0
  15. package/admin/endpoints/queries/get-admin-preset.query.ts +29 -0
  16. package/admin/endpoints/queries/get-admin-presets.query.ts +37 -0
  17. package/admin/endpoints/queries/index.ts +4 -0
  18. package/admin/enums/admin-antifraud-check-reason.enum.ts +5 -0
  19. package/admin/enums/index.ts +1 -0
  20. package/admin/models/admin-antifraud-check-response.schema.ts +27 -0
  21. package/admin/models/admin-preset-category-response.schema.ts +14 -0
  22. package/admin/models/admin-preset-response.schema.ts +67 -0
  23. package/admin/models/index.ts +3 -0
  24. package/build/admin/endpoints/admin.d.ts +14 -0
  25. package/build/admin/endpoints/admin.d.ts.map +1 -1
  26. package/build/admin/endpoints/admin.js +17 -0
  27. package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts +71 -0
  28. package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts.map +1 -0
  29. package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.js +32 -0
  30. package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts +51 -0
  31. package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts.map +1 -0
  32. package/build/admin/endpoints/commands/create-admin-preset-category.command.js +25 -0
  33. package/build/admin/endpoints/commands/create-admin-preset.command.d.ts +490 -0
  34. package/build/admin/endpoints/commands/create-admin-preset.command.d.ts.map +1 -0
  35. package/build/admin/endpoints/commands/create-admin-preset.command.js +26 -0
  36. package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts +27 -0
  37. package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts.map +1 -0
  38. package/build/admin/endpoints/commands/delete-admin-preset-category.command.js +26 -0
  39. package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts +26 -0
  40. package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts.map +1 -0
  41. package/build/admin/endpoints/commands/delete-admin-preset.command.js +25 -0
  42. package/build/admin/endpoints/commands/index.d.ts +10 -0
  43. package/build/admin/endpoints/commands/index.d.ts.map +1 -1
  44. package/build/admin/endpoints/commands/index.js +10 -0
  45. package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts +26 -0
  46. package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts.map +1 -0
  47. package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.js +28 -0
  48. package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts +29 -0
  49. package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts.map +1 -0
  50. package/build/admin/endpoints/commands/reorder-admin-presets.command.js +30 -0
  51. package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts +59 -0
  52. package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts.map +1 -0
  53. package/build/admin/endpoints/commands/update-admin-preset-category.command.js +31 -0
  54. package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts +312 -0
  55. package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts.map +1 -0
  56. package/build/admin/endpoints/commands/update-admin-preset-status.command.js +32 -0
  57. package/build/admin/endpoints/commands/update-admin-preset.command.d.ts +497 -0
  58. package/build/admin/endpoints/commands/update-admin-preset.command.d.ts.map +1 -0
  59. package/build/admin/endpoints/commands/update-admin-preset.command.js +31 -0
  60. package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.d.ts +78 -0
  61. package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.d.ts.map +1 -0
  62. package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.js +32 -0
  63. package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts +38 -0
  64. package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts.map +1 -0
  65. package/build/admin/endpoints/queries/get-admin-preset-categories.query.js +21 -0
  66. package/build/admin/endpoints/queries/get-admin-preset.query.d.ts +304 -0
  67. package/build/admin/endpoints/queries/get-admin-preset.query.d.ts.map +1 -0
  68. package/build/admin/endpoints/queries/get-admin-preset.query.js +26 -0
  69. package/build/admin/endpoints/queries/get-admin-presets.query.d.ts +141 -0
  70. package/build/admin/endpoints/queries/get-admin-presets.query.d.ts.map +1 -0
  71. package/build/admin/endpoints/queries/get-admin-presets.query.js +34 -0
  72. package/build/admin/endpoints/queries/index.d.ts +4 -0
  73. package/build/admin/endpoints/queries/index.d.ts.map +1 -1
  74. package/build/admin/endpoints/queries/index.js +4 -0
  75. package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts +6 -0
  76. package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts.map +1 -0
  77. package/build/admin/enums/admin-antifraud-check-reason.enum.js +9 -0
  78. package/build/admin/enums/index.d.ts +1 -0
  79. package/build/admin/enums/index.d.ts.map +1 -1
  80. package/build/admin/enums/index.js +1 -0
  81. package/build/admin/models/admin-antifraud-check-response.schema.d.ts +34 -0
  82. package/build/admin/models/admin-antifraud-check-response.schema.d.ts.map +1 -0
  83. package/build/admin/models/admin-antifraud-check-response.schema.js +23 -0
  84. package/build/admin/models/admin-preset-category-response.schema.d.ts +13 -0
  85. package/build/admin/models/admin-preset-category-response.schema.d.ts.map +1 -0
  86. package/build/admin/models/admin-preset-category-response.schema.js +14 -0
  87. package/build/admin/models/admin-preset-response.schema.d.ts +205 -0
  88. package/build/admin/models/admin-preset-response.schema.d.ts.map +1 -0
  89. package/build/admin/models/admin-preset-response.schema.js +52 -0
  90. package/build/admin/models/index.d.ts +3 -0
  91. package/build/admin/models/index.d.ts.map +1 -1
  92. package/build/admin/models/index.js +3 -0
  93. package/build/chat/endpoints/commands/create-chat.command.d.ts +8 -0
  94. package/build/chat/endpoints/commands/create-chat.command.d.ts.map +1 -1
  95. package/build/chat/endpoints/commands/update-chat.command.d.ts +8 -0
  96. package/build/chat/endpoints/commands/update-chat.command.d.ts.map +1 -1
  97. package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts +8 -0
  98. package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts.map +1 -1
  99. package/build/chat/endpoints/queries/get-chats.query.d.ts +10 -0
  100. package/build/chat/endpoints/queries/get-chats.query.d.ts.map +1 -1
  101. package/build/chat/endpoints/queries/get-chats.query.js +4 -1
  102. package/build/chat/models/chat-response.schema.d.ts +4 -0
  103. package/build/chat/models/chat-response.schema.d.ts.map +1 -1
  104. package/build/chat/models/chat-response.schema.js +2 -0
  105. package/build/errors/errors.d.ts +224 -5
  106. package/build/errors/errors.d.ts.map +1 -1
  107. package/build/errors/errors.js +224 -5
  108. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +8 -0
  109. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts.map +1 -1
  110. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +8 -0
  111. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts.map +1 -1
  112. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +8 -0
  113. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts.map +1 -1
  114. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +14 -0
  115. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts.map +1 -1
  116. package/build/generation-job/endpoints/queries/get-generation-job-history.query.js +2 -0
  117. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +10 -0
  118. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts.map +1 -1
  119. package/build/generation-job/endpoints/queries/get-generation-jobs.query.js +2 -0
  120. package/build/generation-job/models/generation-job-response.schema.d.ts +4 -0
  121. package/build/generation-job/models/generation-job-response.schema.d.ts.map +1 -1
  122. package/build/generation-job/models/generation-job-response.schema.js +2 -0
  123. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +8 -0
  124. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -1
  125. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +8 -0
  126. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -1
  127. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +8 -0
  128. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -1
  129. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +10 -0
  130. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -1
  131. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.js +2 -0
  132. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +4 -0
  133. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -1
  134. package/build/generation-job-chat/models/generation-job-chat-response.schema.js +2 -0
  135. package/build/index.d.ts +1 -0
  136. package/build/index.d.ts.map +1 -1
  137. package/build/index.js +1 -0
  138. package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts +25 -0
  139. package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts.map +1 -0
  140. package/build/preset/endpoints/commands/add-preset-favorite.command.js +22 -0
  141. package/build/preset/endpoints/commands/index.d.ts +5 -0
  142. package/build/preset/endpoints/commands/index.d.ts.map +1 -0
  143. package/build/preset/endpoints/commands/index.js +20 -0
  144. package/build/preset/endpoints/commands/prepare-preset.command.d.ts +198 -0
  145. package/build/preset/endpoints/commands/prepare-preset.command.d.ts.map +1 -0
  146. package/build/preset/endpoints/commands/prepare-preset.command.js +41 -0
  147. package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts +25 -0
  148. package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts.map +1 -0
  149. package/build/preset/endpoints/commands/remove-preset-favorite.command.js +22 -0
  150. package/build/preset/endpoints/commands/run-preset.command.d.ts +387 -0
  151. package/build/preset/endpoints/commands/run-preset.command.d.ts.map +1 -0
  152. package/build/preset/endpoints/commands/run-preset.command.js +55 -0
  153. package/build/preset/endpoints/index.d.ts +4 -0
  154. package/build/preset/endpoints/index.d.ts.map +1 -0
  155. package/build/preset/endpoints/index.js +19 -0
  156. package/build/preset/endpoints/preset.d.ts +16 -0
  157. package/build/preset/endpoints/preset.d.ts.map +1 -0
  158. package/build/preset/endpoints/preset.js +18 -0
  159. package/build/preset/endpoints/queries/get-preset-price.query.d.ts +62 -0
  160. package/build/preset/endpoints/queries/get-preset-price.query.d.ts.map +1 -0
  161. package/build/preset/endpoints/queries/get-preset-price.query.js +30 -0
  162. package/build/preset/endpoints/queries/get-preset-results.query.d.ts +74 -0
  163. package/build/preset/endpoints/queries/get-preset-results.query.d.ts.map +1 -0
  164. package/build/preset/endpoints/queries/get-preset-results.query.js +32 -0
  165. package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts +334 -0
  166. package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts.map +1 -0
  167. package/build/preset/endpoints/queries/get-public-preset-by-slug.query.js +25 -0
  168. package/build/preset/endpoints/queries/index.d.ts +6 -0
  169. package/build/preset/endpoints/queries/index.d.ts.map +1 -0
  170. package/build/preset/endpoints/queries/index.js +21 -0
  171. package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts +28 -0
  172. package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts.map +1 -0
  173. package/build/preset/endpoints/queries/list-public-preset-categories.query.js +19 -0
  174. package/build/preset/endpoints/queries/list-public-presets.query.d.ts +122 -0
  175. package/build/preset/endpoints/queries/list-public-presets.query.d.ts.map +1 -0
  176. package/build/preset/endpoints/queries/list-public-presets.query.js +32 -0
  177. package/build/preset/enums/index.d.ts +10 -0
  178. package/build/preset/enums/index.d.ts.map +1 -0
  179. package/build/preset/enums/index.js +25 -0
  180. package/build/preset/enums/preset-card-media-type.enum.d.ts +6 -0
  181. package/build/preset/enums/preset-card-media-type.enum.d.ts.map +1 -0
  182. package/build/preset/enums/preset-card-media-type.enum.js +9 -0
  183. package/build/preset/enums/preset-example-type.enum.d.ts +5 -0
  184. package/build/preset/enums/preset-example-type.enum.d.ts.map +1 -0
  185. package/build/preset/enums/preset-example-type.enum.js +8 -0
  186. package/build/preset/enums/preset-field-type.enum.d.ts +6 -0
  187. package/build/preset/enums/preset-field-type.enum.d.ts.map +1 -0
  188. package/build/preset/enums/preset-field-type.enum.js +9 -0
  189. package/build/preset/enums/preset-filter.enum.d.ts +6 -0
  190. package/build/preset/enums/preset-filter.enum.d.ts.map +1 -0
  191. package/build/preset/enums/preset-filter.enum.js +9 -0
  192. package/build/preset/enums/preset-limits.d.ts +30 -0
  193. package/build/preset/enums/preset-limits.d.ts.map +1 -0
  194. package/build/preset/enums/preset-limits.js +32 -0
  195. package/build/preset/enums/preset-result-type.enum.d.ts +5 -0
  196. package/build/preset/enums/preset-result-type.enum.d.ts.map +1 -0
  197. package/build/preset/enums/preset-result-type.enum.js +8 -0
  198. package/build/preset/enums/preset-select-display.enum.d.ts +7 -0
  199. package/build/preset/enums/preset-select-display.enum.d.ts.map +1 -0
  200. package/build/preset/enums/preset-select-display.enum.js +10 -0
  201. package/build/preset/enums/preset-status.enum.d.ts +5 -0
  202. package/build/preset/enums/preset-status.enum.d.ts.map +1 -0
  203. package/build/preset/enums/preset-status.enum.js +8 -0
  204. package/build/preset/enums/preset-tool.enum.d.ts +6 -0
  205. package/build/preset/enums/preset-tool.enum.d.ts.map +1 -0
  206. package/build/preset/enums/preset-tool.enum.js +9 -0
  207. package/build/preset/helpers/index.d.ts +3 -0
  208. package/build/preset/helpers/index.d.ts.map +1 -0
  209. package/build/preset/helpers/index.js +18 -0
  210. package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts +4 -0
  211. package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts.map +1 -0
  212. package/build/preset/helpers/preset-prompt-placeholder.helper.js +12 -0
  213. package/build/preset/helpers/preset-tag.helper.d.ts +3 -0
  214. package/build/preset/helpers/preset-tag.helper.d.ts.map +1 -0
  215. package/build/preset/helpers/preset-tag.helper.js +9 -0
  216. package/build/preset/index.d.ts +5 -0
  217. package/build/preset/index.d.ts.map +1 -0
  218. package/build/preset/index.js +20 -0
  219. package/build/preset/models/index.d.ts +9 -0
  220. package/build/preset/models/index.d.ts.map +1 -0
  221. package/build/preset/models/index.js +24 -0
  222. package/build/preset/models/preset-common.schema.d.ts +23 -0
  223. package/build/preset/models/preset-common.schema.d.ts.map +1 -0
  224. package/build/preset/models/preset-common.schema.js +26 -0
  225. package/build/preset/models/preset-field-value.schema.d.ts +51 -0
  226. package/build/preset/models/preset-field-value.schema.d.ts.map +1 -0
  227. package/build/preset/models/preset-field-value.schema.js +44 -0
  228. package/build/preset/models/preset-field.schema.d.ts +310 -0
  229. package/build/preset/models/preset-field.schema.d.ts.map +1 -0
  230. package/build/preset/models/preset-field.schema.js +186 -0
  231. package/build/preset/models/preset-input.schema.d.ts +106 -0
  232. package/build/preset/models/preset-input.schema.d.ts.map +1 -0
  233. package/build/preset/models/preset-input.schema.js +97 -0
  234. package/build/preset/models/preset-media.schema.d.ts +81 -0
  235. package/build/preset/models/preset-media.schema.d.ts.map +1 -0
  236. package/build/preset/models/preset-media.schema.js +75 -0
  237. package/build/preset/models/preset-result.schema.d.ts +23 -0
  238. package/build/preset/models/preset-result.schema.d.ts.map +1 -0
  239. package/build/preset/models/preset-result.schema.js +21 -0
  240. package/build/preset/models/preset-tag.schema.d.ts +10 -0
  241. package/build/preset/models/preset-tag.schema.d.ts.map +1 -0
  242. package/build/preset/models/preset-tag.schema.js +11 -0
  243. package/build/preset/models/public-preset.schema.d.ts +322 -0
  244. package/build/preset/models/public-preset.schema.d.ts.map +1 -0
  245. package/build/preset/models/public-preset.schema.js +50 -0
  246. package/build/trend/endpoints/commands/generate-trend.command.d.ts +8 -0
  247. package/build/trend/endpoints/commands/generate-trend.command.d.ts.map +1 -1
  248. package/build/tsconfig.tsbuildinfo +1 -1
  249. package/chat/endpoints/queries/get-chats.query.ts +4 -1
  250. package/chat/models/chat-response.schema.ts +2 -0
  251. package/errors/errors.ts +224 -5
  252. package/generation-job/endpoints/queries/get-generation-job-history.query.ts +2 -0
  253. package/generation-job/endpoints/queries/get-generation-jobs.query.ts +2 -0
  254. package/generation-job/models/generation-job-response.schema.ts +2 -0
  255. package/generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts +2 -0
  256. package/generation-job-chat/models/generation-job-chat-response.schema.ts +2 -0
  257. package/index.ts +1 -0
  258. package/package.json +1 -1
  259. package/preset/endpoints/commands/add-preset-favorite.command.ts +26 -0
  260. package/preset/endpoints/commands/index.ts +4 -0
  261. package/preset/endpoints/commands/prepare-preset.command.ts +47 -0
  262. package/preset/endpoints/commands/remove-preset-favorite.command.ts +26 -0
  263. package/preset/endpoints/commands/run-preset.command.ts +65 -0
  264. package/preset/endpoints/index.ts +3 -0
  265. package/preset/endpoints/preset.ts +18 -0
  266. package/preset/endpoints/queries/get-preset-price.query.ts +35 -0
  267. package/preset/endpoints/queries/get-preset-results.query.ts +37 -0
  268. package/preset/endpoints/queries/get-public-preset-by-slug.query.ts +30 -0
  269. package/preset/endpoints/queries/index.ts +5 -0
  270. package/preset/endpoints/queries/list-public-preset-categories.query.ts +20 -0
  271. package/preset/endpoints/queries/list-public-presets.query.ts +35 -0
  272. package/preset/enums/index.ts +9 -0
  273. package/preset/enums/preset-card-media-type.enum.ts +5 -0
  274. package/preset/enums/preset-example-type.enum.ts +4 -0
  275. package/preset/enums/preset-field-type.enum.ts +5 -0
  276. package/preset/enums/preset-filter.enum.ts +5 -0
  277. package/preset/enums/preset-limits.ts +33 -0
  278. package/preset/enums/preset-result-type.enum.ts +4 -0
  279. package/preset/enums/preset-select-display.enum.ts +6 -0
  280. package/preset/enums/preset-status.enum.ts +4 -0
  281. package/preset/enums/preset-tool.enum.ts +5 -0
  282. package/preset/helpers/index.ts +2 -0
  283. package/preset/helpers/preset-prompt-placeholder.helper.ts +9 -0
  284. package/preset/helpers/preset-tag.helper.ts +9 -0
  285. package/preset/index.ts +4 -0
  286. package/preset/models/index.ts +8 -0
  287. package/preset/models/preset-common.schema.ts +45 -0
  288. package/preset/models/preset-field-value.schema.ts +51 -0
  289. package/preset/models/preset-field.schema.ts +251 -0
  290. package/preset/models/preset-input.schema.ts +129 -0
  291. package/preset/models/preset-media.schema.ts +94 -0
  292. package/preset/models/preset-result.schema.ts +21 -0
  293. package/preset/models/preset-tag.schema.ts +13 -0
  294. package/preset/models/public-preset.schema.ts +68 -0
@@ -2,11 +2,16 @@ import { z } from 'zod';
2
2
  import { HTTP_METHODS } from '../../../_common';
3
3
  export declare const GetGenerationJobsQueryQuery: z.ZodObject<{
4
4
  generationType: z.ZodOptional<z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>>;
5
+ presetFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").PRESET_FILTER>>>;
5
6
  }, z.core.$strip>;
6
7
  export declare const GetGenerationJobsQueryResponse: z.ZodObject<{
7
8
  jobs: z.ZodArray<z.ZodObject<{
8
9
  uuid: z.ZodUUID;
9
10
  jobChatId: z.ZodNullable<z.ZodUUID>;
11
+ preset: z.ZodNullable<z.ZodObject<{
12
+ uuid: z.ZodNullable<z.ZodUUID>;
13
+ title: z.ZodString;
14
+ }, z.core.$strip>>;
10
15
  modelId: z.ZodUUID;
11
16
  generationType: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
12
17
  status: z.ZodEnum<typeof import("../..").GENERATION_JOB_STATUS>;
@@ -47,6 +52,7 @@ export declare const GetGenerationJobsQuery: {
47
52
  request: {
48
53
  query: z.ZodObject<{
49
54
  generationType: z.ZodOptional<z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>>;
55
+ presetFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").PRESET_FILTER>>>;
50
56
  }, z.core.$strip>;
51
57
  };
52
58
  responses: {
@@ -54,6 +60,10 @@ export declare const GetGenerationJobsQuery: {
54
60
  jobs: z.ZodArray<z.ZodObject<{
55
61
  uuid: z.ZodUUID;
56
62
  jobChatId: z.ZodNullable<z.ZodUUID>;
63
+ preset: z.ZodNullable<z.ZodObject<{
64
+ uuid: z.ZodNullable<z.ZodUUID>;
65
+ title: z.ZodString;
66
+ }, z.core.$strip>>;
57
67
  modelId: z.ZodUUID;
58
68
  generationType: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
59
69
  status: z.ZodEnum<typeof import("../..").GENERATION_JOB_STATUS>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-generation-jobs.query.d.ts","sourceRoot":"","sources":["../../../../generation-job/endpoints/queries/get-generation-jobs.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEzC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWjC,CAAC"}
1
+ {"version":3,"file":"get-generation-jobs.query.d.ts","sourceRoot":"","sources":["../../../../generation-job/endpoints/queries/get-generation-jobs.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAMzF,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEzC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWjC,CAAC"}
@@ -6,8 +6,10 @@ const _common_1 = require("../../../_common");
6
6
  const generation_model_1 = require("../../../generation-model");
7
7
  const models_1 = require("../../models");
8
8
  const generation_job_1 = require("../generation-job");
9
+ const preset_tag_schema_1 = require("../../../preset/models/preset-tag.schema");
9
10
  exports.GetGenerationJobsQueryQuery = zod_1.z.object({
10
11
  generationType: generation_model_1.GenerationTypeSchema.optional(),
12
+ presetFilter: preset_tag_schema_1.PresetFilterQuerySchema,
11
13
  });
12
14
  exports.GetGenerationJobsQueryResponse = zod_1.z.object({
13
15
  jobs: zod_1.z.array(models_1.GenerationJobResponseSchema),
@@ -12,6 +12,10 @@ export declare const GenerationJobOutputSchema: z.ZodObject<{
12
12
  export declare const GenerationJobResponseSchema: z.ZodObject<{
13
13
  uuid: z.ZodUUID;
14
14
  jobChatId: z.ZodNullable<z.ZodUUID>;
15
+ preset: z.ZodNullable<z.ZodObject<{
16
+ uuid: z.ZodNullable<z.ZodUUID>;
17
+ title: z.ZodString;
18
+ }, z.core.$strip>>;
15
19
  modelId: z.ZodUUID;
16
20
  generationType: z.ZodEnum<typeof import("../../generation-model").GENERATION_TYPE>;
17
21
  status: z.ZodEnum<typeof GENERATION_JOB_STATUS>;
@@ -1 +1 @@
1
- {"version":3,"file":"generation-job-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-job/models/generation-job-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAKjD,eAAO,MAAM,yBAAyB,yCAAgC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;iBAOpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAetC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"generation-job-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-job/models/generation-job-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAKjD,eAAO,MAAM,yBAAyB,yCAAgC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;iBAOpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBtC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GenerationJobResponseSchema = exports.GenerationJobOutputSchema = exports.GenerationJobStatusSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const generation_model_1 = require("../../generation-model");
6
+ const preset_tag_schema_1 = require("../../preset/models/preset-tag.schema");
6
7
  const enums_1 = require("../enums");
7
8
  const generation_job_attachment_file_schema_1 = require("./generation-job-attachment-file.schema");
8
9
  const JsonObjectSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
@@ -18,6 +19,7 @@ exports.GenerationJobOutputSchema = zod_1.z.object({
18
19
  exports.GenerationJobResponseSchema = zod_1.z.object({
19
20
  uuid: zod_1.z.uuid(),
20
21
  jobChatId: zod_1.z.uuid().nullable(),
22
+ preset: preset_tag_schema_1.PresetTagSchema.nullable(),
21
23
  modelId: zod_1.z.uuid(),
22
24
  generationType: generation_model_1.GenerationTypeSchema,
23
25
  status: exports.GenerationJobStatusSchema,
@@ -11,6 +11,10 @@ export declare const CreateGenerationJobChatCommandResponse: z.ZodObject<{
11
11
  type: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
12
12
  modelId: z.ZodNullable<z.ZodUUID>;
13
13
  trendId: z.ZodNullable<z.ZodUUID>;
14
+ preset: z.ZodNullable<z.ZodObject<{
15
+ uuid: z.ZodNullable<z.ZodUUID>;
16
+ title: z.ZodString;
17
+ }, z.core.$strip>>;
14
18
  icon: z.ZodNullable<z.ZodURL>;
15
19
  createdAt: z.ZodISODateTime;
16
20
  updatedAt: z.ZodISODateTime;
@@ -33,6 +37,10 @@ export declare const CreateGenerationJobChatCommand: {
33
37
  type: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
34
38
  modelId: z.ZodNullable<z.ZodUUID>;
35
39
  trendId: z.ZodNullable<z.ZodUUID>;
40
+ preset: z.ZodNullable<z.ZodObject<{
41
+ uuid: z.ZodNullable<z.ZodUUID>;
42
+ title: z.ZodString;
43
+ }, z.core.$strip>>;
36
44
  icon: z.ZodNullable<z.ZodURL>;
37
45
  createdAt: z.ZodISODateTime;
38
46
  updatedAt: z.ZodISODateTime;
@@ -1 +1 @@
1
- {"version":3,"file":"create-generation-job-chat.command.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/commands/create-generation-job-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,kCAAkC;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;iBAAkC,CAAC;AAEtF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;CAYzC,CAAC"}
1
+ {"version":3,"file":"create-generation-job-chat.command.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/commands/create-generation-job-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,kCAAkC;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;iBAAkC,CAAC;AAEtF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzC,CAAC"}
@@ -12,6 +12,10 @@ export declare const UpdateGenerationJobChatCommandResponse: z.ZodObject<{
12
12
  type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
13
13
  modelId: z.ZodNullable<z.ZodUUID>;
14
14
  trendId: z.ZodNullable<z.ZodUUID>;
15
+ preset: z.ZodNullable<z.ZodObject<{
16
+ uuid: z.ZodNullable<z.ZodUUID>;
17
+ title: z.ZodString;
18
+ }, z.core.$strip>>;
15
19
  icon: z.ZodNullable<z.ZodURL>;
16
20
  createdAt: z.ZodISODateTime;
17
21
  updatedAt: z.ZodISODateTime;
@@ -35,6 +39,10 @@ export declare const UpdateGenerationJobChatCommand: {
35
39
  type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
36
40
  modelId: z.ZodNullable<z.ZodUUID>;
37
41
  trendId: z.ZodNullable<z.ZodUUID>;
42
+ preset: z.ZodNullable<z.ZodObject<{
43
+ uuid: z.ZodNullable<z.ZodUUID>;
44
+ title: z.ZodString;
45
+ }, z.core.$strip>>;
38
46
  icon: z.ZodNullable<z.ZodURL>;
39
47
  createdAt: z.ZodISODateTime;
40
48
  updatedAt: z.ZodISODateTime;
@@ -1 +1 @@
1
- {"version":3,"file":"update-generation-job-chat.command.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/commands/update-generation-job-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;iBAMzC,CAAC;AAEP,eAAO,MAAM,sCAAsC;;;;;;;;;iBAAkC,CAAC;AAEtF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;CAczC,CAAC"}
1
+ {"version":3,"file":"update-generation-job-chat.command.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/commands/update-generation-job-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;iBAMzC,CAAC;AAEP,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;iBAAkC,CAAC;AAEtF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAczC,CAAC"}
@@ -9,6 +9,10 @@ export declare const GetGenerationJobChatByUuidQueryResponse: z.ZodObject<{
9
9
  type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
10
10
  modelId: z.ZodNullable<z.ZodUUID>;
11
11
  trendId: z.ZodNullable<z.ZodUUID>;
12
+ preset: z.ZodNullable<z.ZodObject<{
13
+ uuid: z.ZodNullable<z.ZodUUID>;
14
+ title: z.ZodString;
15
+ }, z.core.$strip>>;
12
16
  icon: z.ZodNullable<z.ZodURL>;
13
17
  createdAt: z.ZodISODateTime;
14
18
  updatedAt: z.ZodISODateTime;
@@ -29,6 +33,10 @@ export declare const GetGenerationJobChatByUuidQuery: {
29
33
  type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
30
34
  modelId: z.ZodNullable<z.ZodUUID>;
31
35
  trendId: z.ZodNullable<z.ZodUUID>;
36
+ preset: z.ZodNullable<z.ZodObject<{
37
+ uuid: z.ZodNullable<z.ZodUUID>;
38
+ title: z.ZodString;
39
+ }, z.core.$strip>>;
32
40
  icon: z.ZodNullable<z.ZodURL>;
33
41
  createdAt: z.ZodISODateTime;
34
42
  updatedAt: z.ZodISODateTime;
@@ -1 +1 @@
1
- {"version":3,"file":"get-generation-job-chat-by-uuid.query.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,qCAAqC;;iBAEhD,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;;;;;;;iBAAkC,CAAC;AAEvF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;CAY1C,CAAC"}
1
+ {"version":3,"file":"get-generation-job-chat-by-uuid.query.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,qCAAqC;;iBAEhD,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;iBAAkC,CAAC;AAEvF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY1C,CAAC"}
@@ -4,6 +4,7 @@ export declare const GetGenerationJobChatsQueryQuery: z.ZodObject<{
4
4
  cursor: z.ZodOptional<z.ZodUUID>;
5
5
  limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
6
6
  type: z.ZodOptional<z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>>;
7
+ presetFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").PRESET_FILTER>>>;
7
8
  }, z.core.$strip>;
8
9
  export declare const GetGenerationJobChatsQueryResponse: z.ZodObject<{
9
10
  chats: z.ZodArray<z.ZodObject<{
@@ -12,6 +13,10 @@ export declare const GetGenerationJobChatsQueryResponse: z.ZodObject<{
12
13
  type: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
13
14
  modelId: z.ZodNullable<z.ZodUUID>;
14
15
  trendId: z.ZodNullable<z.ZodUUID>;
16
+ preset: z.ZodNullable<z.ZodObject<{
17
+ uuid: z.ZodNullable<z.ZodUUID>;
18
+ title: z.ZodString;
19
+ }, z.core.$strip>>;
15
20
  icon: z.ZodNullable<z.ZodURL>;
16
21
  createdAt: z.ZodISODateTime;
17
22
  updatedAt: z.ZodISODateTime;
@@ -28,6 +33,7 @@ export declare const GetGenerationJobChatsQuery: {
28
33
  cursor: z.ZodOptional<z.ZodUUID>;
29
34
  limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
30
35
  type: z.ZodOptional<z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>>;
36
+ presetFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").PRESET_FILTER>>>;
31
37
  }, z.core.$strip>;
32
38
  };
33
39
  responses: {
@@ -38,6 +44,10 @@ export declare const GetGenerationJobChatsQuery: {
38
44
  type: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
39
45
  modelId: z.ZodNullable<z.ZodUUID>;
40
46
  trendId: z.ZodNullable<z.ZodUUID>;
47
+ preset: z.ZodNullable<z.ZodObject<{
48
+ uuid: z.ZodNullable<z.ZodUUID>;
49
+ title: z.ZodString;
50
+ }, z.core.$strip>>;
41
51
  icon: z.ZodNullable<z.ZodURL>;
42
52
  createdAt: z.ZodISODateTime;
43
53
  updatedAt: z.ZodISODateTime;
@@ -1 +1 @@
1
- {"version":3,"file":"get-generation-job-chats.query.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKtH,eAAO,MAAM,+BAA+B;;;;iBAE1C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWrC,CAAC"}
1
+ {"version":3,"file":"get-generation-job-chats.query.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAMtH,eAAO,MAAM,+BAA+B;;;;;iBAG1C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWrC,CAAC"}
@@ -6,8 +6,10 @@ const _common_1 = require("../../../_common");
6
6
  const generation_model_1 = require("../../../generation-model");
7
7
  const models_1 = require("../../models");
8
8
  const generation_job_chat_1 = require("../generation-job-chat");
9
+ const preset_tag_schema_1 = require("../../../preset/models/preset-tag.schema");
9
10
  exports.GetGenerationJobChatsQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid()).extend({
10
11
  type: generation_model_1.GenerationTypeSchema.optional(),
12
+ presetFilter: preset_tag_schema_1.PresetFilterQuerySchema,
11
13
  });
12
14
  exports.GetGenerationJobChatsQueryResponse = zod_1.z.object({
13
15
  chats: zod_1.z.array(models_1.GenerationJobChatResponseSchema),
@@ -5,6 +5,10 @@ export declare const GenerationJobChatResponseSchema: z.ZodObject<{
5
5
  type: z.ZodEnum<typeof import("../../generation-model").GENERATION_TYPE>;
6
6
  modelId: z.ZodNullable<z.ZodUUID>;
7
7
  trendId: z.ZodNullable<z.ZodUUID>;
8
+ preset: z.ZodNullable<z.ZodObject<{
9
+ uuid: z.ZodNullable<z.ZodUUID>;
10
+ title: z.ZodString;
11
+ }, z.core.$strip>>;
8
12
  icon: z.ZodNullable<z.ZodURL>;
9
13
  createdAt: z.ZodISODateTime;
10
14
  updatedAt: z.ZodISODateTime;
@@ -1 +1 @@
1
- {"version":3,"file":"generation-job-chat-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-job-chat/models/generation-job-chat-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,+BAA+B;;;;;;;;;iBAS1C,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
1
+ {"version":3,"file":"generation-job-chat-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-job-chat/models/generation-job-chat-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;iBAU1C,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -3,12 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GenerationJobChatResponseSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const generation_model_1 = require("../../generation-model");
6
+ const preset_tag_schema_1 = require("../../preset/models/preset-tag.schema");
6
7
  exports.GenerationJobChatResponseSchema = zod_1.z.object({
7
8
  uuid: zod_1.z.uuid(),
8
9
  title: zod_1.z.string().min(1),
9
10
  type: generation_model_1.GenerationTypeSchema,
10
11
  modelId: zod_1.z.uuid().nullable(),
11
12
  trendId: zod_1.z.uuid().nullable(),
13
+ preset: preset_tag_schema_1.PresetTagSchema.nullable(),
12
14
  icon: zod_1.z.url().nullable(),
13
15
  createdAt: zod_1.z.iso.datetime(),
14
16
  updatedAt: zod_1.z.iso.datetime(),
package/build/index.d.ts CHANGED
@@ -25,4 +25,5 @@ export * from './trend';
25
25
  export * from './support';
26
26
  export * from './user-context';
27
27
  export * from './organization';
28
+ export * from './preset';
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
package/build/index.js CHANGED
@@ -41,3 +41,4 @@ __exportStar(require("./trend"), exports);
41
41
  __exportStar(require("./support"), exports);
42
42
  __exportStar(require("./user-context"), exports);
43
43
  __exportStar(require("./organization"), exports);
44
+ __exportStar(require("./preset"), exports);
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const AddPresetFavoriteCommandParams: z.ZodObject<{
4
+ slug: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export declare const AddPresetFavoriteCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
7
+ export declare const AddPresetFavoriteCommand: {
8
+ method: HTTP_METHODS.PUT;
9
+ path: string;
10
+ summary: string;
11
+ request: {
12
+ params: z.ZodObject<{
13
+ slug: z.ZodString;
14
+ }, z.core.$strip>;
15
+ };
16
+ responses: {
17
+ 200: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
18
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
19
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
20
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
21
+ };
22
+ };
23
+ export type AddPresetFavoriteCommandParamsType = z.infer<typeof AddPresetFavoriteCommandParams>;
24
+ export type AddPresetFavoriteCommandResponseType = z.infer<typeof AddPresetFavoriteCommandResponse>;
25
+ //# sourceMappingURL=add-preset-favorite.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-preset-favorite.command.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/commands/add-preset-favorite.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAAsD,MAAM,kBAAkB,CAAC;AAIpH,eAAO,MAAM,8BAA8B;;iBAAmB,CAAC;AAE/D,eAAO,MAAM,gCAAgC,uJAA4B,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;CAanC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAChG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddPresetFavoriteCommand = exports.AddPresetFavoriteCommandResponse = exports.AddPresetFavoriteCommandParams = void 0;
4
+ const _common_1 = require("../../../_common");
5
+ const preset_1 = require("../preset");
6
+ const get_public_preset_by_slug_query_1 = require("../queries/get-public-preset-by-slug.query");
7
+ exports.AddPresetFavoriteCommandParams = get_public_preset_by_slug_query_1.PresetSlugParams;
8
+ exports.AddPresetFavoriteCommandResponse = _common_1.HttpSuccessResponseSchema;
9
+ exports.AddPresetFavoriteCommand = (0, _common_1.defineContract)({
10
+ method: _common_1.HTTP_METHODS.PUT,
11
+ path: preset_1.PRESET_ROUTES.ADD_FAVORITE(':slug'),
12
+ summary: 'Add preset to favorites of the current user; idempotent',
13
+ request: {
14
+ params: exports.AddPresetFavoriteCommandParams,
15
+ },
16
+ responses: {
17
+ 200: exports.AddPresetFavoriteCommandResponse,
18
+ 401: _common_1.HttpErrorResponseSchema,
19
+ 404: _common_1.HttpErrorResponseSchema,
20
+ 500: _common_1.HttpErrorResponseSchema,
21
+ },
22
+ });
@@ -0,0 +1,5 @@
1
+ export * from './run-preset.command';
2
+ export * from './prepare-preset.command';
3
+ export * from './add-preset-favorite.command';
4
+ export * from './remove-preset-favorite.command';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,20 @@
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("./run-preset.command"), exports);
18
+ __exportStar(require("./prepare-preset.command"), exports);
19
+ __exportStar(require("./add-preset-favorite.command"), exports);
20
+ __exportStar(require("./remove-preset-favorite.command"), exports);
@@ -0,0 +1,198 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ import { PRESET_TOOL } from '../../enums';
4
+ export declare const PreparePresetCommandParams: z.ZodObject<{
5
+ slug: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export declare const PreparePresetCommandBody: z.ZodObject<{
8
+ values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9
+ type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.FILE>;
10
+ key: z.ZodString;
11
+ fileIds: z.ZodArray<z.ZodUUID>;
12
+ }, z.core.$strip>, z.ZodObject<{
13
+ type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.SELECT>;
14
+ key: z.ZodString;
15
+ values: z.ZodDefault<z.ZodArray<z.ZodString>>;
16
+ customValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$strip>, z.ZodObject<{
18
+ type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.TEXT>;
19
+ key: z.ZodString;
20
+ text: z.ZodString;
21
+ }, z.core.$strip>], "type">>;
22
+ }, z.core.$strip>;
23
+ export declare const PreparePresetCommandResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
24
+ chat: z.ZodObject<{
25
+ uuid: z.ZodUUID;
26
+ title: z.ZodString;
27
+ type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
28
+ modelId: z.ZodNullable<z.ZodUUID>;
29
+ trendId: z.ZodNullable<z.ZodUUID>;
30
+ preset: z.ZodNullable<z.ZodObject<{
31
+ uuid: z.ZodNullable<z.ZodUUID>;
32
+ title: z.ZodString;
33
+ }, z.core.$strip>>;
34
+ icon: z.ZodNullable<z.ZodURL>;
35
+ createdAt: z.ZodISODateTime;
36
+ updatedAt: z.ZodISODateTime;
37
+ }, z.core.$strip>;
38
+ modelId: z.ZodUUID;
39
+ prompt: z.ZodString;
40
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
41
+ attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>;
42
+ tool: z.ZodLiteral<PRESET_TOOL.IMAGE>;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ chat: z.ZodObject<{
45
+ uuid: z.ZodUUID;
46
+ title: z.ZodString;
47
+ type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
48
+ modelId: z.ZodNullable<z.ZodUUID>;
49
+ trendId: z.ZodNullable<z.ZodUUID>;
50
+ preset: z.ZodNullable<z.ZodObject<{
51
+ uuid: z.ZodNullable<z.ZodUUID>;
52
+ title: z.ZodString;
53
+ }, z.core.$strip>>;
54
+ icon: z.ZodNullable<z.ZodURL>;
55
+ createdAt: z.ZodISODateTime;
56
+ updatedAt: z.ZodISODateTime;
57
+ }, z.core.$strip>;
58
+ modelId: z.ZodUUID;
59
+ prompt: z.ZodString;
60
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
61
+ attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>;
62
+ tool: z.ZodLiteral<PRESET_TOOL.VIDEO>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ tool: z.ZodLiteral<PRESET_TOOL.TEXT>;
65
+ chat: z.ZodObject<{
66
+ uuid: z.ZodUUID;
67
+ title: z.ZodString;
68
+ chatStatus: z.ZodEnum<typeof import("../../..").CHAT_STATUS>;
69
+ lastModel: z.ZodNullable<z.ZodObject<{
70
+ uuid: z.ZodUUID;
71
+ title: z.ZodString;
72
+ icons: z.ZodObject<{
73
+ light: z.ZodString;
74
+ dark: z.ZodString;
75
+ }, z.core.$strip>;
76
+ }, z.core.$strip>>;
77
+ preset: z.ZodNullable<z.ZodObject<{
78
+ uuid: z.ZodNullable<z.ZodUUID>;
79
+ title: z.ZodString;
80
+ }, z.core.$strip>>;
81
+ createdAt: z.ZodISODateTime;
82
+ updatedAt: z.ZodISODateTime;
83
+ lastMessageAt: z.ZodISODateTime;
84
+ }, z.core.$strip>;
85
+ aiModelId: z.ZodUUID;
86
+ prompt: z.ZodString;
87
+ fileIds: z.ZodArray<z.ZodUUID>;
88
+ options: z.ZodObject<{
89
+ reasoning: z.ZodDefault<z.ZodBoolean>;
90
+ webSearch: z.ZodDefault<z.ZodBoolean>;
91
+ }, z.core.$strip>;
92
+ }, z.core.$strip>], "tool">;
93
+ export declare const PreparePresetCommand: {
94
+ method: HTTP_METHODS.POST;
95
+ path: string;
96
+ summary: string;
97
+ request: {
98
+ params: z.ZodObject<{
99
+ slug: z.ZodString;
100
+ }, z.core.$strip>;
101
+ body: z.ZodObject<{
102
+ values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
103
+ type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.FILE>;
104
+ key: z.ZodString;
105
+ fileIds: z.ZodArray<z.ZodUUID>;
106
+ }, z.core.$strip>, z.ZodObject<{
107
+ type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.SELECT>;
108
+ key: z.ZodString;
109
+ values: z.ZodDefault<z.ZodArray<z.ZodString>>;
110
+ customValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.TEXT>;
113
+ key: z.ZodString;
114
+ text: z.ZodString;
115
+ }, z.core.$strip>], "type">>;
116
+ }, z.core.$strip>;
117
+ };
118
+ responses: {
119
+ 201: z.ZodDiscriminatedUnion<[z.ZodObject<{
120
+ chat: z.ZodObject<{
121
+ uuid: z.ZodUUID;
122
+ title: z.ZodString;
123
+ type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
124
+ modelId: z.ZodNullable<z.ZodUUID>;
125
+ trendId: z.ZodNullable<z.ZodUUID>;
126
+ preset: z.ZodNullable<z.ZodObject<{
127
+ uuid: z.ZodNullable<z.ZodUUID>;
128
+ title: z.ZodString;
129
+ }, z.core.$strip>>;
130
+ icon: z.ZodNullable<z.ZodURL>;
131
+ createdAt: z.ZodISODateTime;
132
+ updatedAt: z.ZodISODateTime;
133
+ }, z.core.$strip>;
134
+ modelId: z.ZodUUID;
135
+ prompt: z.ZodString;
136
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
137
+ attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>;
138
+ tool: z.ZodLiteral<PRESET_TOOL.IMAGE>;
139
+ }, z.core.$strip>, z.ZodObject<{
140
+ chat: z.ZodObject<{
141
+ uuid: z.ZodUUID;
142
+ title: z.ZodString;
143
+ type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
144
+ modelId: z.ZodNullable<z.ZodUUID>;
145
+ trendId: z.ZodNullable<z.ZodUUID>;
146
+ preset: z.ZodNullable<z.ZodObject<{
147
+ uuid: z.ZodNullable<z.ZodUUID>;
148
+ title: z.ZodString;
149
+ }, z.core.$strip>>;
150
+ icon: z.ZodNullable<z.ZodURL>;
151
+ createdAt: z.ZodISODateTime;
152
+ updatedAt: z.ZodISODateTime;
153
+ }, z.core.$strip>;
154
+ modelId: z.ZodUUID;
155
+ prompt: z.ZodString;
156
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
157
+ attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>;
158
+ tool: z.ZodLiteral<PRESET_TOOL.VIDEO>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ tool: z.ZodLiteral<PRESET_TOOL.TEXT>;
161
+ chat: z.ZodObject<{
162
+ uuid: z.ZodUUID;
163
+ title: z.ZodString;
164
+ chatStatus: z.ZodEnum<typeof import("../../..").CHAT_STATUS>;
165
+ lastModel: z.ZodNullable<z.ZodObject<{
166
+ uuid: z.ZodUUID;
167
+ title: z.ZodString;
168
+ icons: z.ZodObject<{
169
+ light: z.ZodString;
170
+ dark: z.ZodString;
171
+ }, z.core.$strip>;
172
+ }, z.core.$strip>>;
173
+ preset: z.ZodNullable<z.ZodObject<{
174
+ uuid: z.ZodNullable<z.ZodUUID>;
175
+ title: z.ZodString;
176
+ }, z.core.$strip>>;
177
+ createdAt: z.ZodISODateTime;
178
+ updatedAt: z.ZodISODateTime;
179
+ lastMessageAt: z.ZodISODateTime;
180
+ }, z.core.$strip>;
181
+ aiModelId: z.ZodUUID;
182
+ prompt: z.ZodString;
183
+ fileIds: z.ZodArray<z.ZodUUID>;
184
+ options: z.ZodObject<{
185
+ reasoning: z.ZodDefault<z.ZodBoolean>;
186
+ webSearch: z.ZodDefault<z.ZodBoolean>;
187
+ }, z.core.$strip>;
188
+ }, z.core.$strip>], "tool">;
189
+ 400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
190
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
191
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
192
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
193
+ };
194
+ };
195
+ export type PreparePresetCommandParamsType = z.infer<typeof PreparePresetCommandParams>;
196
+ export type PreparePresetCommandBodyType = z.infer<typeof PreparePresetCommandBody>;
197
+ export type PreparePresetCommandResponseType = z.infer<typeof PreparePresetCommandResponse>;
198
+ //# sourceMappingURL=prepare-preset.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepare-preset.command.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/commands/prepare-preset.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAEzF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAc1C,eAAO,MAAM,0BAA0B;;iBAAmB,CAAC;AAE3D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;iBAAwB,CAAC;AAE9D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAIvC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe/B,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreparePresetCommand = exports.PreparePresetCommandResponse = exports.PreparePresetCommandBody = exports.PreparePresetCommandParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const generation_job_chat_response_schema_1 = require("../../../generation-job-chat/models/generation-job-chat-response.schema");
7
+ const enums_1 = require("../../enums");
8
+ const models_1 = require("../../models");
9
+ const preset_1 = require("../preset");
10
+ const get_public_preset_by_slug_query_1 = require("../queries/get-public-preset-by-slug.query");
11
+ const run_preset_command_1 = require("./run-preset.command");
12
+ const PresetGenerationDraftSchema = zod_1.z.object({
13
+ chat: generation_job_chat_response_schema_1.GenerationJobChatResponseSchema,
14
+ modelId: zod_1.z.uuid(),
15
+ prompt: zod_1.z.string().min(1),
16
+ params: models_1.PresetModelParamsSchema,
17
+ attachments: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.uuid())),
18
+ });
19
+ exports.PreparePresetCommandParams = get_public_preset_by_slug_query_1.PresetSlugParams;
20
+ exports.PreparePresetCommandBody = run_preset_command_1.PresetFieldValuesBody;
21
+ exports.PreparePresetCommandResponse = zod_1.z.discriminatedUnion('tool', [
22
+ PresetGenerationDraftSchema.extend({ tool: zod_1.z.literal(enums_1.PRESET_TOOL.IMAGE) }),
23
+ PresetGenerationDraftSchema.extend({ tool: zod_1.z.literal(enums_1.PRESET_TOOL.VIDEO) }),
24
+ run_preset_command_1.PresetTextChatLaunchSchema,
25
+ ]);
26
+ exports.PreparePresetCommand = (0, _common_1.defineContract)({
27
+ method: _common_1.HTTP_METHODS.POST,
28
+ path: preset_1.PRESET_ROUTES.PREPARE(':slug'),
29
+ summary: 'Create a tagged chat of the preset tool and return assembled prompt, model and params without running',
30
+ request: {
31
+ params: exports.PreparePresetCommandParams,
32
+ body: exports.PreparePresetCommandBody,
33
+ },
34
+ responses: {
35
+ 201: exports.PreparePresetCommandResponse,
36
+ 400: _common_1.HttpErrorResponseSchema,
37
+ 401: _common_1.HttpErrorResponseSchema,
38
+ 404: _common_1.HttpErrorResponseSchema,
39
+ 500: _common_1.HttpErrorResponseSchema,
40
+ },
41
+ });