@ai-grator/api 0.2.66 → 0.3.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/admin/endpoints/admin.ts +16 -0
  2. package/admin/endpoints/commands/create-admin-trend-category.command.ts +29 -0
  3. package/admin/endpoints/commands/create-admin-trend.command.ts +30 -0
  4. package/admin/endpoints/commands/delete-admin-trend-category.command.ts +28 -0
  5. package/admin/endpoints/commands/delete-admin-trend.command.ts +28 -0
  6. package/admin/endpoints/commands/index.ts +9 -0
  7. package/admin/endpoints/commands/probe-admin-trend-reference-video.command.ts +37 -0
  8. package/admin/endpoints/commands/reorder-admin-trends.command.ts +31 -0
  9. package/admin/endpoints/commands/update-admin-trend-category.command.ts +36 -0
  10. package/admin/endpoints/commands/update-admin-trend-status.command.ts +37 -0
  11. package/admin/endpoints/commands/update-admin-trend.command.ts +36 -0
  12. package/admin/endpoints/queries/get-admin-trend-categories.query.ts +22 -0
  13. package/admin/endpoints/queries/get-admin-trend.query.ts +29 -0
  14. package/admin/endpoints/queries/get-admin-trends.query.ts +36 -0
  15. package/admin/endpoints/queries/index.ts +3 -0
  16. package/admin/models/admin-trend-category-response.schema.ts +11 -0
  17. package/admin/models/admin-trend-response.schema.ts +61 -0
  18. package/admin/models/index.ts +2 -0
  19. package/build/admin/endpoints/admin.d.ts +12 -0
  20. package/build/admin/endpoints/admin.d.ts.map +1 -1
  21. package/build/admin/endpoints/admin.js +14 -0
  22. package/build/admin/endpoints/commands/create-admin-trend-category.command.d.ts +41 -0
  23. package/build/admin/endpoints/commands/create-admin-trend-category.command.d.ts.map +1 -0
  24. package/build/admin/endpoints/commands/create-admin-trend-category.command.js +25 -0
  25. package/build/admin/endpoints/commands/create-admin-trend.command.d.ts +144 -0
  26. package/build/admin/endpoints/commands/create-admin-trend.command.d.ts.map +1 -0
  27. package/build/admin/endpoints/commands/create-admin-trend.command.js +26 -0
  28. package/build/admin/endpoints/commands/delete-admin-trend-category.command.d.ts +26 -0
  29. package/build/admin/endpoints/commands/delete-admin-trend-category.command.d.ts.map +1 -0
  30. package/build/admin/endpoints/commands/delete-admin-trend-category.command.js +25 -0
  31. package/build/admin/endpoints/commands/delete-admin-trend.command.d.ts +26 -0
  32. package/build/admin/endpoints/commands/delete-admin-trend.command.d.ts.map +1 -0
  33. package/build/admin/endpoints/commands/delete-admin-trend.command.js +25 -0
  34. package/build/admin/endpoints/commands/index.d.ts +9 -0
  35. package/build/admin/endpoints/commands/index.d.ts.map +1 -1
  36. package/build/admin/endpoints/commands/index.js +9 -0
  37. package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts +37 -0
  38. package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts.map +1 -0
  39. package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.js +32 -0
  40. package/build/admin/endpoints/commands/reorder-admin-trends.command.d.ts +26 -0
  41. package/build/admin/endpoints/commands/reorder-admin-trends.command.d.ts.map +1 -0
  42. package/build/admin/endpoints/commands/reorder-admin-trends.command.js +28 -0
  43. package/build/admin/endpoints/commands/update-admin-trend-category.command.d.ts +49 -0
  44. package/build/admin/endpoints/commands/update-admin-trend-category.command.d.ts.map +1 -0
  45. package/build/admin/endpoints/commands/update-admin-trend-category.command.js +31 -0
  46. package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts +118 -0
  47. package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts.map +1 -0
  48. package/build/admin/endpoints/commands/update-admin-trend-status.command.js +32 -0
  49. package/build/admin/endpoints/commands/update-admin-trend.command.d.ts +151 -0
  50. package/build/admin/endpoints/commands/update-admin-trend.command.d.ts.map +1 -0
  51. package/build/admin/endpoints/commands/update-admin-trend.command.js +31 -0
  52. package/build/admin/endpoints/queries/get-admin-trend-categories.query.d.ts +32 -0
  53. package/build/admin/endpoints/queries/get-admin-trend-categories.query.d.ts.map +1 -0
  54. package/build/admin/endpoints/queries/get-admin-trend-categories.query.js +21 -0
  55. package/build/admin/endpoints/queries/get-admin-trend.query.d.ts +110 -0
  56. package/build/admin/endpoints/queries/get-admin-trend.query.d.ts.map +1 -0
  57. package/build/admin/endpoints/queries/get-admin-trend.query.js +26 -0
  58. package/build/admin/endpoints/queries/get-admin-trends.query.d.ts +63 -0
  59. package/build/admin/endpoints/queries/get-admin-trends.query.d.ts.map +1 -0
  60. package/build/admin/endpoints/queries/get-admin-trends.query.js +33 -0
  61. package/build/admin/endpoints/queries/index.d.ts +3 -0
  62. package/build/admin/endpoints/queries/index.d.ts.map +1 -1
  63. package/build/admin/endpoints/queries/index.js +3 -0
  64. package/build/admin/models/admin-trend-category-response.schema.d.ts +10 -0
  65. package/build/admin/models/admin-trend-category-response.schema.d.ts.map +1 -0
  66. package/build/admin/models/admin-trend-category-response.schema.js +11 -0
  67. package/build/admin/models/admin-trend-response.schema.d.ts +79 -0
  68. package/build/admin/models/admin-trend-response.schema.d.ts.map +1 -0
  69. package/build/admin/models/admin-trend-response.schema.js +53 -0
  70. package/build/admin/models/index.d.ts +2 -0
  71. package/build/admin/models/index.d.ts.map +1 -1
  72. package/build/admin/models/index.js +2 -0
  73. package/build/errors/errors.d.ts +216 -0
  74. package/build/errors/errors.d.ts.map +1 -1
  75. package/build/errors/errors.js +216 -0
  76. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +2 -2
  77. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +2 -2
  78. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +2 -2
  79. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +3 -3
  80. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +2 -2
  81. package/build/generation-job/models/generation-job-response.schema.d.ts +1 -1
  82. package/build/generation-job/models/generation-job-response.schema.js +1 -1
  83. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +2 -0
  84. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -1
  85. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +2 -0
  86. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -1
  87. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +2 -0
  88. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -1
  89. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +2 -0
  90. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -1
  91. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +1 -0
  92. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -1
  93. package/build/generation-job-chat/models/generation-job-chat-response.schema.js +1 -0
  94. package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts +2 -0
  95. package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map +1 -1
  96. package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts +2 -0
  97. package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts.map +1 -1
  98. package/build/generation-model/models/generation-model-response.schema.d.ts +3 -0
  99. package/build/generation-model/models/generation-model-response.schema.d.ts.map +1 -1
  100. package/build/generation-model/models/generation-model-response.schema.js +1 -0
  101. package/build/index.d.ts +2 -0
  102. package/build/index.d.ts.map +1 -1
  103. package/build/index.js +2 -0
  104. package/build/referral/endpoints/referral.d.ts +3 -0
  105. package/build/referral/endpoints/referral.d.ts.map +1 -1
  106. package/build/referral/endpoints/referral.js +3 -0
  107. package/build/referral/models/index.d.ts +1 -0
  108. package/build/referral/models/index.d.ts.map +1 -1
  109. package/build/referral/models/index.js +1 -0
  110. package/build/referral/models/referral-advertising-stats.schema.d.ts +101 -0
  111. package/build/referral/models/referral-advertising-stats.schema.d.ts.map +1 -0
  112. package/build/referral/models/referral-advertising-stats.schema.js +62 -0
  113. package/build/trend/endpoints/commands/generate-trend.command.d.ts +142 -0
  114. package/build/trend/endpoints/commands/generate-trend.command.d.ts.map +1 -0
  115. package/build/trend/endpoints/commands/generate-trend.command.js +54 -0
  116. package/build/trend/endpoints/commands/index.d.ts +2 -0
  117. package/build/trend/endpoints/commands/index.d.ts.map +1 -0
  118. package/build/trend/endpoints/commands/index.js +17 -0
  119. package/build/trend/endpoints/index.d.ts +4 -0
  120. package/build/trend/endpoints/index.d.ts.map +1 -0
  121. package/build/trend/endpoints/index.js +19 -0
  122. package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts +92 -0
  123. package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts.map +1 -0
  124. package/build/trend/endpoints/queries/get-public-trend-by-slug.query.js +24 -0
  125. package/build/trend/endpoints/queries/index.d.ts +4 -0
  126. package/build/trend/endpoints/queries/index.d.ts.map +1 -0
  127. package/build/trend/endpoints/queries/index.js +19 -0
  128. package/build/trend/endpoints/queries/list-public-trend-categories.query.d.ts +26 -0
  129. package/build/trend/endpoints/queries/list-public-trend-categories.query.d.ts.map +1 -0
  130. package/build/trend/endpoints/queries/list-public-trend-categories.query.js +19 -0
  131. package/build/trend/endpoints/queries/list-public-trends.query.d.ts +69 -0
  132. package/build/trend/endpoints/queries/list-public-trends.query.d.ts.map +1 -0
  133. package/build/trend/endpoints/queries/list-public-trends.query.js +28 -0
  134. package/build/trend/endpoints/trend.d.ts +11 -0
  135. package/build/trend/endpoints/trend.d.ts.map +1 -0
  136. package/build/trend/endpoints/trend.js +13 -0
  137. package/build/trend/enums/index.d.ts +6 -0
  138. package/build/trend/enums/index.d.ts.map +1 -0
  139. package/build/trend/enums/index.js +21 -0
  140. package/build/trend/enums/trend-aspect-ratio.enum.d.ts +9 -0
  141. package/build/trend/enums/trend-aspect-ratio.enum.d.ts.map +1 -0
  142. package/build/trend/enums/trend-aspect-ratio.enum.js +12 -0
  143. package/build/trend/enums/trend-field-type.enum.d.ts +5 -0
  144. package/build/trend/enums/trend-field-type.enum.d.ts.map +1 -0
  145. package/build/trend/enums/trend-field-type.enum.js +8 -0
  146. package/build/trend/enums/trend-limits.d.ts +11 -0
  147. package/build/trend/enums/trend-limits.d.ts.map +1 -0
  148. package/build/trend/enums/trend-limits.js +13 -0
  149. package/build/trend/enums/trend-quality.enum.d.ts +7 -0
  150. package/build/trend/enums/trend-quality.enum.d.ts.map +1 -0
  151. package/build/trend/enums/trend-quality.enum.js +10 -0
  152. package/build/trend/enums/trend-status.enum.d.ts +5 -0
  153. package/build/trend/enums/trend-status.enum.d.ts.map +1 -0
  154. package/build/trend/enums/trend-status.enum.js +8 -0
  155. package/build/trend/helpers/index.d.ts +2 -0
  156. package/build/trend/helpers/index.d.ts.map +1 -0
  157. package/build/trend/helpers/index.js +17 -0
  158. package/build/trend/helpers/trend-field-reference.helper.d.ts +4 -0
  159. package/build/trend/helpers/trend-field-reference.helper.d.ts.map +1 -0
  160. package/build/trend/helpers/trend-field-reference.helper.js +12 -0
  161. package/build/trend/index.d.ts +5 -0
  162. package/build/trend/index.d.ts.map +1 -0
  163. package/build/trend/index.js +20 -0
  164. package/build/trend/models/index.d.ts +5 -0
  165. package/build/trend/models/index.d.ts.map +1 -0
  166. package/build/trend/models/index.js +20 -0
  167. package/build/trend/models/public-trend.schema.d.ts +88 -0
  168. package/build/trend/models/public-trend.schema.d.ts.map +1 -0
  169. package/build/trend/models/public-trend.schema.js +44 -0
  170. package/build/trend/models/trend-category-input.schema.d.ts +7 -0
  171. package/build/trend/models/trend-category-input.schema.d.ts.map +1 -0
  172. package/build/trend/models/trend-category-input.schema.js +10 -0
  173. package/build/trend/models/trend-common.schema.d.ts +10 -0
  174. package/build/trend/models/trend-common.schema.d.ts.map +1 -0
  175. package/build/trend/models/trend-common.schema.js +17 -0
  176. package/build/trend/models/trend-input.schema.d.ts +33 -0
  177. package/build/trend/models/trend-input.schema.d.ts.map +1 -0
  178. package/build/trend/models/trend-input.schema.js +54 -0
  179. package/build/tsconfig.tsbuildinfo +1 -1
  180. package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.d.ts +112 -0
  181. package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.d.ts.map +1 -0
  182. package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.js +26 -0
  183. package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.d.ts +120 -0
  184. package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.d.ts.map +1 -0
  185. package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.js +52 -0
  186. package/build/video-generation-chain/endpoints/commands/index.d.ts +6 -0
  187. package/build/video-generation-chain/endpoints/commands/index.d.ts.map +1 -0
  188. package/build/video-generation-chain/endpoints/commands/index.js +21 -0
  189. package/build/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.d.ts +114 -0
  190. package/build/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.d.ts.map +1 -0
  191. package/build/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.js +25 -0
  192. package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.d.ts +113 -0
  193. package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.d.ts.map +1 -0
  194. package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.js +27 -0
  195. package/build/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.d.ts +127 -0
  196. package/build/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.d.ts.map +1 -0
  197. package/build/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.js +43 -0
  198. package/build/video-generation-chain/endpoints/index.d.ts +4 -0
  199. package/build/video-generation-chain/endpoints/index.d.ts.map +1 -0
  200. package/build/video-generation-chain/endpoints/index.js +19 -0
  201. package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.d.ts +111 -0
  202. package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.d.ts.map +1 -0
  203. package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.js +25 -0
  204. package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts +109 -0
  205. package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts.map +1 -0
  206. package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.js +22 -0
  207. package/build/video-generation-chain/endpoints/queries/get-video-generation-chains.query.d.ts +54 -0
  208. package/build/video-generation-chain/endpoints/queries/get-video-generation-chains.query.d.ts.map +1 -0
  209. package/build/video-generation-chain/endpoints/queries/get-video-generation-chains.query.js +26 -0
  210. package/build/video-generation-chain/endpoints/queries/index.d.ts +4 -0
  211. package/build/video-generation-chain/endpoints/queries/index.d.ts.map +1 -0
  212. package/build/video-generation-chain/endpoints/queries/index.js +19 -0
  213. package/build/video-generation-chain/endpoints/video-generation-chain.d.ts +12 -0
  214. package/build/video-generation-chain/endpoints/video-generation-chain.d.ts.map +1 -0
  215. package/build/video-generation-chain/endpoints/video-generation-chain.js +14 -0
  216. package/build/video-generation-chain/enums/index.d.ts +5 -0
  217. package/build/video-generation-chain/enums/index.d.ts.map +1 -0
  218. package/build/video-generation-chain/enums/index.js +20 -0
  219. package/build/video-generation-chain/enums/video-generation-chain-frame-slot.enum.d.ts +6 -0
  220. package/build/video-generation-chain/enums/video-generation-chain-frame-slot.enum.d.ts.map +1 -0
  221. package/build/video-generation-chain/enums/video-generation-chain-frame-slot.enum.js +13 -0
  222. package/build/video-generation-chain/enums/video-generation-chain-limits.d.ts +3 -0
  223. package/build/video-generation-chain/enums/video-generation-chain-limits.d.ts.map +1 -0
  224. package/build/video-generation-chain/enums/video-generation-chain-limits.js +5 -0
  225. package/build/video-generation-chain/enums/video-generation-chain-scene-status.enum.d.ts +7 -0
  226. package/build/video-generation-chain/enums/video-generation-chain-scene-status.enum.d.ts.map +1 -0
  227. package/build/video-generation-chain/enums/video-generation-chain-scene-status.enum.js +10 -0
  228. package/build/video-generation-chain/enums/video-generation-chain-status.enum.d.ts +9 -0
  229. package/build/video-generation-chain/enums/video-generation-chain-status.enum.d.ts.map +1 -0
  230. package/build/video-generation-chain/enums/video-generation-chain-status.enum.js +12 -0
  231. package/build/video-generation-chain/index.d.ts +4 -0
  232. package/build/video-generation-chain/index.d.ts.map +1 -0
  233. package/build/video-generation-chain/index.js +19 -0
  234. package/build/video-generation-chain/models/index.d.ts +4 -0
  235. package/build/video-generation-chain/models/index.d.ts.map +1 -0
  236. package/build/video-generation-chain/models/index.js +19 -0
  237. package/build/video-generation-chain/models/video-generation-chain-response.schema.d.ts +73 -0
  238. package/build/video-generation-chain/models/video-generation-chain-response.schema.d.ts.map +1 -0
  239. package/build/video-generation-chain/models/video-generation-chain-response.schema.js +24 -0
  240. package/build/video-generation-chain/models/video-generation-chain-scene-input.schema.d.ts +9 -0
  241. package/build/video-generation-chain/models/video-generation-chain-scene-input.schema.d.ts.map +1 -0
  242. package/build/video-generation-chain/models/video-generation-chain-scene-input.schema.js +15 -0
  243. package/build/video-generation-chain/models/video-generation-chain-scene-response.schema.d.ts +44 -0
  244. package/build/video-generation-chain/models/video-generation-chain-scene-response.schema.d.ts.map +1 -0
  245. package/build/video-generation-chain/models/video-generation-chain-scene-response.schema.js +24 -0
  246. package/errors/errors.ts +216 -0
  247. package/generation-job/models/generation-job-response.schema.ts +1 -1
  248. package/generation-job-chat/models/generation-job-chat-response.schema.ts +1 -0
  249. package/generation-model/models/generation-model-response.schema.ts +1 -0
  250. package/index.ts +2 -0
  251. package/package.json +1 -1
  252. package/referral/endpoints/referral.ts +3 -0
  253. package/referral/models/index.ts +1 -0
  254. package/referral/models/referral-advertising-stats.schema.ts +79 -0
  255. package/trend/endpoints/commands/generate-trend.command.ts +63 -0
  256. package/trend/endpoints/commands/index.ts +1 -0
  257. package/trend/endpoints/index.ts +3 -0
  258. package/trend/endpoints/queries/get-public-trend-by-slug.query.ts +27 -0
  259. package/trend/endpoints/queries/index.ts +3 -0
  260. package/trend/endpoints/queries/list-public-trend-categories.query.ts +20 -0
  261. package/trend/endpoints/queries/list-public-trends.query.ts +31 -0
  262. package/trend/endpoints/trend.ts +13 -0
  263. package/trend/enums/index.ts +5 -0
  264. package/trend/enums/trend-aspect-ratio.enum.ts +8 -0
  265. package/trend/enums/trend-field-type.enum.ts +4 -0
  266. package/trend/enums/trend-limits.ts +10 -0
  267. package/trend/enums/trend-quality.enum.ts +7 -0
  268. package/trend/enums/trend-status.enum.ts +4 -0
  269. package/trend/helpers/index.ts +1 -0
  270. package/trend/helpers/trend-field-reference.helper.ts +9 -0
  271. package/trend/index.ts +4 -0
  272. package/trend/models/index.ts +4 -0
  273. package/trend/models/public-trend.schema.ts +58 -0
  274. package/trend/models/trend-category-input.schema.ts +10 -0
  275. package/trend/models/trend-common.schema.ts +26 -0
  276. package/trend/models/trend-input.schema.ts +69 -0
  277. package/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.ts +26 -0
  278. package/video-generation-chain/endpoints/commands/create-video-generation-chain.command.ts +59 -0
  279. package/video-generation-chain/endpoints/commands/index.ts +5 -0
  280. package/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.ts +25 -0
  281. package/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.ts +27 -0
  282. package/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.ts +49 -0
  283. package/video-generation-chain/endpoints/index.ts +3 -0
  284. package/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.ts +25 -0
  285. package/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.ts +23 -0
  286. package/video-generation-chain/endpoints/queries/get-video-generation-chains.query.ts +26 -0
  287. package/video-generation-chain/endpoints/queries/index.ts +3 -0
  288. package/video-generation-chain/endpoints/video-generation-chain.ts +12 -0
  289. package/video-generation-chain/enums/index.ts +4 -0
  290. package/video-generation-chain/enums/video-generation-chain-frame-slot.enum.ts +10 -0
  291. package/video-generation-chain/enums/video-generation-chain-limits.ts +2 -0
  292. package/video-generation-chain/enums/video-generation-chain-scene-status.enum.ts +6 -0
  293. package/video-generation-chain/enums/video-generation-chain-status.enum.ts +8 -0
  294. package/video-generation-chain/index.ts +3 -0
  295. package/video-generation-chain/models/index.ts +3 -0
  296. package/video-generation-chain/models/video-generation-chain-response.schema.ts +28 -0
  297. package/video-generation-chain/models/video-generation-chain-scene-input.schema.ts +17 -0
  298. package/video-generation-chain/models/video-generation-chain-scene-response.schema.ts +26 -0
@@ -0,0 +1,127 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const VideoGenerationChainSceneParams: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ index: z.ZodCoercedNumber<unknown>;
6
+ }, z.core.$strip>;
7
+ export declare const UpdateVideoGenerationChainSceneCommandParams: z.ZodObject<{
8
+ uuid: z.ZodUUID;
9
+ index: z.ZodCoercedNumber<unknown>;
10
+ }, z.core.$strip>;
11
+ export declare const UpdateVideoGenerationChainSceneCommandBody: z.ZodObject<{
12
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>>;
14
+ }, z.core.$strip>;
15
+ export declare const UpdateVideoGenerationChainSceneCommandResponse: z.ZodObject<{
16
+ uuid: z.ZodUUID;
17
+ modelId: z.ZodUUID;
18
+ status: z.ZodEnum<typeof import("../../enums").VIDEO_GENERATION_CHAIN_STATUS>;
19
+ errorCode: z.ZodNullable<z.ZodString>;
20
+ errorMessage: z.ZodNullable<z.ZodString>;
21
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
22
+ createdAt: z.ZodISODateTime;
23
+ updatedAt: z.ZodISODateTime;
24
+ scenes: z.ZodArray<z.ZodObject<{
25
+ index: z.ZodNumber;
26
+ status: z.ZodEnum<typeof import("../../enums").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
27
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
28
+ attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
29
+ uuid: z.ZodString;
30
+ url: z.ZodString;
31
+ thumbnailUrl: z.ZodNullable<z.ZodString>;
32
+ fileType: z.ZodString;
33
+ mimeType: z.ZodString;
34
+ fileName: z.ZodString;
35
+ size: z.ZodNumber;
36
+ source: z.ZodEnum<{
37
+ context: "context";
38
+ user: "user";
39
+ }>;
40
+ }, z.core.$strip>>>;
41
+ generationJobId: z.ZodNullable<z.ZodUUID>;
42
+ output: z.ZodNullable<z.ZodObject<{
43
+ uuid: z.ZodUUID;
44
+ url: z.ZodURL;
45
+ title: z.ZodOptional<z.ZodString>;
46
+ tags: z.ZodOptional<z.ZodString>;
47
+ duration: z.ZodOptional<z.ZodNumber>;
48
+ imageUrl: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strip>>;
50
+ lastFrame: z.ZodNullable<z.ZodObject<{
51
+ uuid: z.ZodUUID;
52
+ url: z.ZodURL;
53
+ }, z.core.$strip>>;
54
+ errorCode: z.ZodNullable<z.ZodString>;
55
+ errorMessage: z.ZodNullable<z.ZodString>;
56
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
57
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
58
+ }, z.core.$strip>>;
59
+ }, z.core.$strip>;
60
+ export declare const UpdateVideoGenerationChainSceneCommand: {
61
+ method: HTTP_METHODS.PATCH;
62
+ path: string;
63
+ summary: string;
64
+ request: {
65
+ params: z.ZodObject<{
66
+ uuid: z.ZodUUID;
67
+ index: z.ZodCoercedNumber<unknown>;
68
+ }, z.core.$strip>;
69
+ body: z.ZodObject<{
70
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
71
+ attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>>;
72
+ }, z.core.$strip>;
73
+ };
74
+ responses: {
75
+ 200: z.ZodObject<{
76
+ uuid: z.ZodUUID;
77
+ modelId: z.ZodUUID;
78
+ status: z.ZodEnum<typeof import("../../enums").VIDEO_GENERATION_CHAIN_STATUS>;
79
+ errorCode: z.ZodNullable<z.ZodString>;
80
+ errorMessage: z.ZodNullable<z.ZodString>;
81
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
82
+ createdAt: z.ZodISODateTime;
83
+ updatedAt: z.ZodISODateTime;
84
+ scenes: z.ZodArray<z.ZodObject<{
85
+ index: z.ZodNumber;
86
+ status: z.ZodEnum<typeof import("../../enums").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
87
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
88
+ attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
89
+ uuid: z.ZodString;
90
+ url: z.ZodString;
91
+ thumbnailUrl: z.ZodNullable<z.ZodString>;
92
+ fileType: z.ZodString;
93
+ mimeType: z.ZodString;
94
+ fileName: z.ZodString;
95
+ size: z.ZodNumber;
96
+ source: z.ZodEnum<{
97
+ context: "context";
98
+ user: "user";
99
+ }>;
100
+ }, z.core.$strip>>>;
101
+ generationJobId: z.ZodNullable<z.ZodUUID>;
102
+ output: z.ZodNullable<z.ZodObject<{
103
+ uuid: z.ZodUUID;
104
+ url: z.ZodURL;
105
+ title: z.ZodOptional<z.ZodString>;
106
+ tags: z.ZodOptional<z.ZodString>;
107
+ duration: z.ZodOptional<z.ZodNumber>;
108
+ imageUrl: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strip>>;
110
+ lastFrame: z.ZodNullable<z.ZodObject<{
111
+ uuid: z.ZodUUID;
112
+ url: z.ZodURL;
113
+ }, z.core.$strip>>;
114
+ errorCode: z.ZodNullable<z.ZodString>;
115
+ errorMessage: z.ZodNullable<z.ZodString>;
116
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
117
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
118
+ }, z.core.$strip>>;
119
+ }, z.core.$strip>;
120
+ 400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
121
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
122
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
123
+ 409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
124
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
125
+ };
126
+ };
127
+ //# sourceMappingURL=update-video-generation-chain-scene.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-video-generation-chain-scene.command.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AASzF,eAAO,MAAM,+BAA+B;;;iBAO1C,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;iBAAkC,CAAC;AAE5F,eAAO,MAAM,0CAA0C;;;iBAOjD,CAAC;AAEP,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAqC,CAAC;AAEjG,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBjD,CAAC"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateVideoGenerationChainSceneCommand = exports.UpdateVideoGenerationChainSceneCommandResponse = exports.UpdateVideoGenerationChainSceneCommandBody = exports.UpdateVideoGenerationChainSceneCommandParams = exports.VideoGenerationChainSceneParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const enums_1 = require("../../enums");
7
+ const models_1 = require("../../models");
8
+ const video_generation_chain_1 = require("../video-generation-chain");
9
+ exports.VideoGenerationChainSceneParams = zod_1.z.object({
10
+ uuid: zod_1.z.uuid(),
11
+ index: zod_1.z.coerce
12
+ .number()
13
+ .int()
14
+ .min(0)
15
+ .max(enums_1.VIDEO_GENERATION_CHAIN_MAX_SCENES - 1),
16
+ });
17
+ exports.UpdateVideoGenerationChainSceneCommandParams = exports.VideoGenerationChainSceneParams;
18
+ exports.UpdateVideoGenerationChainSceneCommandBody = zod_1.z
19
+ .object({
20
+ params: models_1.VideoGenerationChainSceneParamsSchema.optional(),
21
+ attachments: models_1.VideoGenerationChainSceneAttachmentsSchema.optional(),
22
+ })
23
+ .refine((body) => body.params !== undefined || body.attachments !== undefined, {
24
+ message: 'At least one of params or attachments is required',
25
+ });
26
+ exports.UpdateVideoGenerationChainSceneCommandResponse = models_1.VideoGenerationChainResponseSchema;
27
+ exports.UpdateVideoGenerationChainSceneCommand = (0, _common_1.defineContract)({
28
+ method: _common_1.HTTP_METHODS.PATCH,
29
+ path: video_generation_chain_1.VIDEO_GENERATION_CHAIN_ROUTES.UPDATE_SCENE(':uuid', ':index'),
30
+ summary: 'Update a pending or failed scene of a paused generation chain',
31
+ request: {
32
+ params: exports.UpdateVideoGenerationChainSceneCommandParams,
33
+ body: exports.UpdateVideoGenerationChainSceneCommandBody,
34
+ },
35
+ responses: {
36
+ 200: exports.UpdateVideoGenerationChainSceneCommandResponse,
37
+ 400: _common_1.HttpErrorResponseSchema,
38
+ 401: _common_1.HttpErrorResponseSchema,
39
+ 404: _common_1.HttpErrorResponseSchema,
40
+ 409: _common_1.HttpErrorResponseSchema,
41
+ 500: _common_1.HttpErrorResponseSchema,
42
+ },
43
+ });
@@ -0,0 +1,4 @@
1
+ export * from './video-generation-chain';
2
+ export * from './commands';
3
+ export * from './queries';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../video-generation-chain/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,19 @@
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("./video-generation-chain"), exports);
18
+ __exportStar(require("./commands"), exports);
19
+ __exportStar(require("./queries"), exports);
@@ -0,0 +1,111 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetVideoGenerationChainByUuidQueryParams: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const GetVideoGenerationChainByUuidQueryResponse: z.ZodObject<{
7
+ uuid: z.ZodUUID;
8
+ modelId: z.ZodUUID;
9
+ status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
10
+ errorCode: z.ZodNullable<z.ZodString>;
11
+ errorMessage: z.ZodNullable<z.ZodString>;
12
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
13
+ createdAt: z.ZodISODateTime;
14
+ updatedAt: z.ZodISODateTime;
15
+ scenes: z.ZodArray<z.ZodObject<{
16
+ index: z.ZodNumber;
17
+ status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
18
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19
+ attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
20
+ uuid: z.ZodString;
21
+ url: z.ZodString;
22
+ thumbnailUrl: z.ZodNullable<z.ZodString>;
23
+ fileType: z.ZodString;
24
+ mimeType: z.ZodString;
25
+ fileName: z.ZodString;
26
+ size: z.ZodNumber;
27
+ source: z.ZodEnum<{
28
+ context: "context";
29
+ user: "user";
30
+ }>;
31
+ }, z.core.$strip>>>;
32
+ generationJobId: z.ZodNullable<z.ZodUUID>;
33
+ output: z.ZodNullable<z.ZodObject<{
34
+ uuid: z.ZodUUID;
35
+ url: z.ZodURL;
36
+ title: z.ZodOptional<z.ZodString>;
37
+ tags: z.ZodOptional<z.ZodString>;
38
+ duration: z.ZodOptional<z.ZodNumber>;
39
+ imageUrl: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>>;
41
+ lastFrame: z.ZodNullable<z.ZodObject<{
42
+ uuid: z.ZodUUID;
43
+ url: z.ZodURL;
44
+ }, z.core.$strip>>;
45
+ errorCode: z.ZodNullable<z.ZodString>;
46
+ errorMessage: z.ZodNullable<z.ZodString>;
47
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
48
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
49
+ }, z.core.$strip>>;
50
+ }, z.core.$strip>;
51
+ export declare const GetVideoGenerationChainByUuidQuery: {
52
+ method: HTTP_METHODS.GET;
53
+ path: string;
54
+ summary: string;
55
+ request: {
56
+ params: z.ZodObject<{
57
+ uuid: z.ZodUUID;
58
+ }, z.core.$strip>;
59
+ };
60
+ responses: {
61
+ 200: z.ZodObject<{
62
+ uuid: z.ZodUUID;
63
+ modelId: z.ZodUUID;
64
+ status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
65
+ errorCode: z.ZodNullable<z.ZodString>;
66
+ errorMessage: z.ZodNullable<z.ZodString>;
67
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
68
+ createdAt: z.ZodISODateTime;
69
+ updatedAt: z.ZodISODateTime;
70
+ scenes: z.ZodArray<z.ZodObject<{
71
+ index: z.ZodNumber;
72
+ status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
73
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
74
+ attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
75
+ uuid: z.ZodString;
76
+ url: z.ZodString;
77
+ thumbnailUrl: z.ZodNullable<z.ZodString>;
78
+ fileType: z.ZodString;
79
+ mimeType: z.ZodString;
80
+ fileName: z.ZodString;
81
+ size: z.ZodNumber;
82
+ source: z.ZodEnum<{
83
+ context: "context";
84
+ user: "user";
85
+ }>;
86
+ }, z.core.$strip>>>;
87
+ generationJobId: z.ZodNullable<z.ZodUUID>;
88
+ output: z.ZodNullable<z.ZodObject<{
89
+ uuid: z.ZodUUID;
90
+ url: z.ZodURL;
91
+ title: z.ZodOptional<z.ZodString>;
92
+ tags: z.ZodOptional<z.ZodString>;
93
+ duration: z.ZodOptional<z.ZodNumber>;
94
+ imageUrl: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strip>>;
96
+ lastFrame: z.ZodNullable<z.ZodObject<{
97
+ uuid: z.ZodUUID;
98
+ url: z.ZodURL;
99
+ }, z.core.$strip>>;
100
+ errorCode: z.ZodNullable<z.ZodString>;
101
+ errorMessage: z.ZodNullable<z.ZodString>;
102
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
103
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
104
+ }, z.core.$strip>>;
105
+ }, z.core.$strip>;
106
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
107
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
108
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
109
+ };
110
+ };
111
+ //# sourceMappingURL=get-video-generation-chain-by-uuid.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-video-generation-chain-by-uuid.query.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/queries/get-video-generation-chain-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,wCAAwC;;iBAEnD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAqC,CAAC;AAE7F,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa7C,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetVideoGenerationChainByUuidQuery = exports.GetVideoGenerationChainByUuidQueryResponse = exports.GetVideoGenerationChainByUuidQueryParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const video_generation_chain_1 = require("../video-generation-chain");
8
+ exports.GetVideoGenerationChainByUuidQueryParams = zod_1.z.object({
9
+ uuid: zod_1.z.uuid(),
10
+ });
11
+ exports.GetVideoGenerationChainByUuidQueryResponse = models_1.VideoGenerationChainResponseSchema;
12
+ exports.GetVideoGenerationChainByUuidQuery = (0, _common_1.defineContract)({
13
+ method: _common_1.HTTP_METHODS.GET,
14
+ path: video_generation_chain_1.VIDEO_GENERATION_CHAIN_ROUTES.GET_BY_UUID(':uuid'),
15
+ summary: 'Get generation chain with its scenes',
16
+ request: {
17
+ params: exports.GetVideoGenerationChainByUuidQueryParams,
18
+ },
19
+ responses: {
20
+ 200: exports.GetVideoGenerationChainByUuidQueryResponse,
21
+ 401: _common_1.HttpErrorResponseSchema,
22
+ 404: _common_1.HttpErrorResponseSchema,
23
+ 500: _common_1.HttpErrorResponseSchema,
24
+ },
25
+ });
@@ -0,0 +1,109 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetVideoGenerationChainConfigResponse: z.ZodObject<{
4
+ models: z.ZodArray<z.ZodObject<{
5
+ uuid: z.ZodUUID;
6
+ titleModel: z.ZodString;
7
+ description: z.ZodNullable<z.ZodString>;
8
+ generationType: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
9
+ icons: z.ZodObject<{
10
+ light: z.ZodString;
11
+ dark: z.ZodString;
12
+ }, z.core.$strip>;
13
+ provider: z.ZodString;
14
+ providerTitle: z.ZodString;
15
+ order: z.ZodInt;
16
+ isActive: z.ZodBoolean;
17
+ isNew: z.ZodBoolean;
18
+ attachmentPolicy: z.ZodRecord<z.ZodString, z.ZodObject<{
19
+ fileType: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
20
+ required: z.ZodBoolean;
21
+ maxCount: z.ZodInt;
22
+ allowedFormats: z.ZodObject<{
23
+ mimeTypes: z.ZodArray<z.ZodString>;
24
+ extensions: z.ZodArray<z.ZodString>;
25
+ maxSize: z.ZodInt;
26
+ }, z.core.$strip>;
27
+ maxSizeBytes: z.ZodOptional<z.ZodInt>;
28
+ }, z.core.$strip>>;
29
+ conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
30
+ dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
31
+ paramsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
32
+ pricingPolicy: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ type: z.ZodLiteral<"base">;
34
+ price: z.ZodNumber;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ type: z.ZodLiteral<"resolution_multiplier">;
37
+ field: z.ZodString;
38
+ rules: z.ZodRecord<z.ZodString, z.ZodNumber>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ type: z.ZodLiteral<"param_multiplier">;
41
+ field: z.ZodString;
42
+ rules: z.ZodRecord<z.ZodString, z.ZodNumber>;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ type: z.ZodLiteral<"numeric_multiplier">;
45
+ field: z.ZodString;
46
+ }, z.core.$strip>], "type">>;
47
+ }, z.core.$strip>>;
48
+ minScenes: z.ZodInt;
49
+ maxScenes: z.ZodInt;
50
+ }, z.core.$strip>;
51
+ export type GetVideoGenerationChainConfigResponseType = z.infer<typeof GetVideoGenerationChainConfigResponse>;
52
+ export declare const GetVideoGenerationChainConfigQuery: {
53
+ method: HTTP_METHODS.GET;
54
+ path: "config";
55
+ summary: string;
56
+ responses: {
57
+ 200: z.ZodObject<{
58
+ models: z.ZodArray<z.ZodObject<{
59
+ uuid: z.ZodUUID;
60
+ titleModel: z.ZodString;
61
+ description: z.ZodNullable<z.ZodString>;
62
+ generationType: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
63
+ icons: z.ZodObject<{
64
+ light: z.ZodString;
65
+ dark: z.ZodString;
66
+ }, z.core.$strip>;
67
+ provider: z.ZodString;
68
+ providerTitle: z.ZodString;
69
+ order: z.ZodInt;
70
+ isActive: z.ZodBoolean;
71
+ isNew: z.ZodBoolean;
72
+ attachmentPolicy: z.ZodRecord<z.ZodString, z.ZodObject<{
73
+ fileType: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
74
+ required: z.ZodBoolean;
75
+ maxCount: z.ZodInt;
76
+ allowedFormats: z.ZodObject<{
77
+ mimeTypes: z.ZodArray<z.ZodString>;
78
+ extensions: z.ZodArray<z.ZodString>;
79
+ maxSize: z.ZodInt;
80
+ }, z.core.$strip>;
81
+ maxSizeBytes: z.ZodOptional<z.ZodInt>;
82
+ }, z.core.$strip>>;
83
+ conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
84
+ dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
85
+ paramsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
86
+ pricingPolicy: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
87
+ type: z.ZodLiteral<"base">;
88
+ price: z.ZodNumber;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ type: z.ZodLiteral<"resolution_multiplier">;
91
+ field: z.ZodString;
92
+ rules: z.ZodRecord<z.ZodString, z.ZodNumber>;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ type: z.ZodLiteral<"param_multiplier">;
95
+ field: z.ZodString;
96
+ rules: z.ZodRecord<z.ZodString, z.ZodNumber>;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ type: z.ZodLiteral<"numeric_multiplier">;
99
+ field: z.ZodString;
100
+ }, z.core.$strip>], "type">>;
101
+ }, z.core.$strip>>;
102
+ minScenes: z.ZodInt;
103
+ maxScenes: z.ZodInt;
104
+ }, z.core.$strip>;
105
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
106
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
107
+ };
108
+ };
109
+ //# sourceMappingURL=get-video-generation-chain-config.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-video-generation-chain-config.query.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIhD,CAAC;AAEH,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAE9G,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS7C,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetVideoGenerationChainConfigQuery = exports.GetVideoGenerationChainConfigResponse = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const generation_model_1 = require("../../../generation-model");
7
+ const video_generation_chain_1 = require("../video-generation-chain");
8
+ exports.GetVideoGenerationChainConfigResponse = zod_1.z.object({
9
+ models: zod_1.z.array(generation_model_1.GenerationModelResponseSchema),
10
+ minScenes: zod_1.z.int().positive(),
11
+ maxScenes: zod_1.z.int().positive(),
12
+ });
13
+ exports.GetVideoGenerationChainConfigQuery = (0, _common_1.defineContract)({
14
+ method: _common_1.HTTP_METHODS.GET,
15
+ path: video_generation_chain_1.VIDEO_GENERATION_CHAIN_ROUTES.GET_CONFIG,
16
+ summary: 'Get generation chain config (available models and scene limits)',
17
+ responses: {
18
+ 200: exports.GetVideoGenerationChainConfigResponse,
19
+ 401: _common_1.HttpErrorResponseSchema,
20
+ 500: _common_1.HttpErrorResponseSchema,
21
+ },
22
+ });
@@ -0,0 +1,54 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetVideoGenerationChainsQueryQuery: z.ZodObject<{
4
+ cursor: z.ZodOptional<z.ZodUUID>;
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
6
+ }, z.core.$strip>;
7
+ export declare const GetVideoGenerationChainsQueryResponse: z.ZodObject<{
8
+ chains: z.ZodArray<z.ZodObject<{
9
+ uuid: z.ZodUUID;
10
+ modelId: z.ZodUUID;
11
+ status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
12
+ errorCode: z.ZodNullable<z.ZodString>;
13
+ errorMessage: z.ZodNullable<z.ZodString>;
14
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
15
+ createdAt: z.ZodISODateTime;
16
+ updatedAt: z.ZodISODateTime;
17
+ scenesTotal: z.ZodNumber;
18
+ scenesSucceeded: z.ZodNumber;
19
+ }, z.core.$strip>>;
20
+ nextCursor: z.ZodNullable<z.ZodUUID>;
21
+ hasMore: z.ZodBoolean;
22
+ }, z.core.$strip>;
23
+ export declare const GetVideoGenerationChainsQuery: {
24
+ method: HTTP_METHODS.GET;
25
+ path: "";
26
+ summary: string;
27
+ request: {
28
+ query: z.ZodObject<{
29
+ cursor: z.ZodOptional<z.ZodUUID>;
30
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
31
+ }, z.core.$strip>;
32
+ };
33
+ responses: {
34
+ 200: z.ZodObject<{
35
+ chains: z.ZodArray<z.ZodObject<{
36
+ uuid: z.ZodUUID;
37
+ modelId: z.ZodUUID;
38
+ status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
39
+ errorCode: z.ZodNullable<z.ZodString>;
40
+ errorMessage: z.ZodNullable<z.ZodString>;
41
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
42
+ createdAt: z.ZodISODateTime;
43
+ updatedAt: z.ZodISODateTime;
44
+ scenesTotal: z.ZodNumber;
45
+ scenesSucceeded: z.ZodNumber;
46
+ }, z.core.$strip>>;
47
+ nextCursor: z.ZodNullable<z.ZodUUID>;
48
+ hasMore: z.ZodBoolean;
49
+ }, z.core.$strip>;
50
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
51
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
52
+ };
53
+ };
54
+ //# sourceMappingURL=get-video-generation-chains.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-video-generation-chains.query.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/queries/get-video-generation-chains.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAItH,eAAO,MAAM,kCAAkC;;;iBAAwC,CAAC;AAExF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;iBAIhD,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYxC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetVideoGenerationChainsQuery = exports.GetVideoGenerationChainsQueryResponse = exports.GetVideoGenerationChainsQueryQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const video_generation_chain_1 = require("../video-generation-chain");
8
+ exports.GetVideoGenerationChainsQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid());
9
+ exports.GetVideoGenerationChainsQueryResponse = zod_1.z.object({
10
+ chains: zod_1.z.array(models_1.VideoGenerationChainListItemSchema),
11
+ nextCursor: zod_1.z.uuid().nullable(),
12
+ hasMore: zod_1.z.boolean(),
13
+ });
14
+ exports.GetVideoGenerationChainsQuery = (0, _common_1.defineContract)({
15
+ method: _common_1.HTTP_METHODS.GET,
16
+ path: video_generation_chain_1.VIDEO_GENERATION_CHAIN_ROUTES.GET_ALL,
17
+ summary: 'Get generation chains of the current user with cursor pagination',
18
+ request: {
19
+ query: exports.GetVideoGenerationChainsQueryQuery,
20
+ },
21
+ responses: {
22
+ 200: exports.GetVideoGenerationChainsQueryResponse,
23
+ 401: _common_1.HttpErrorResponseSchema,
24
+ 500: _common_1.HttpErrorResponseSchema,
25
+ },
26
+ });
@@ -0,0 +1,4 @@
1
+ export * from './get-video-generation-chain-by-uuid.query';
2
+ export * from './get-video-generation-chains.query';
3
+ export * from './get-video-generation-chain-config.query';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,19 @@
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("./get-video-generation-chain-by-uuid.query"), exports);
18
+ __exportStar(require("./get-video-generation-chains.query"), exports);
19
+ __exportStar(require("./get-video-generation-chain-config.query"), exports);
@@ -0,0 +1,12 @@
1
+ export declare const VIDEO_GENERATION_CHAIN_CONTROLLER: "video-generation-chains";
2
+ export declare const VIDEO_GENERATION_CHAIN_ROUTES: {
3
+ readonly CREATE: "";
4
+ readonly GET_ALL: "";
5
+ readonly GET_CONFIG: "config";
6
+ readonly GET_BY_UUID: (uuid: string) => string;
7
+ readonly RESUME: (uuid: string) => string;
8
+ readonly CANCEL: (uuid: string) => string;
9
+ readonly UPDATE_SCENE: (uuid: string, index: string) => string;
10
+ readonly REGENERATE_SCENE: (uuid: string, index: string) => string;
11
+ };
12
+ //# sourceMappingURL=video-generation-chain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-generation-chain.d.ts","sourceRoot":"","sources":["../../../video-generation-chain/endpoints/video-generation-chain.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,EAAG,yBAAkC,CAAC;AAEpF,eAAO,MAAM,6BAA6B;;;;iCAIlB,MAAM;4BACX,MAAM;4BACN,MAAM;kCACA,MAAM,SAAS,MAAM;sCACjB,MAAM,SAAS,MAAM;CACxC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VIDEO_GENERATION_CHAIN_ROUTES = exports.VIDEO_GENERATION_CHAIN_CONTROLLER = void 0;
4
+ exports.VIDEO_GENERATION_CHAIN_CONTROLLER = 'video-generation-chains';
5
+ exports.VIDEO_GENERATION_CHAIN_ROUTES = {
6
+ CREATE: '',
7
+ GET_ALL: '',
8
+ GET_CONFIG: 'config',
9
+ GET_BY_UUID: (uuid) => `${uuid}`,
10
+ RESUME: (uuid) => `${uuid}/resume`,
11
+ CANCEL: (uuid) => `${uuid}/cancel`,
12
+ UPDATE_SCENE: (uuid, index) => `${uuid}/scenes/${index}`,
13
+ REGENERATE_SCENE: (uuid, index) => `${uuid}/scenes/${index}/regenerate`,
14
+ };
@@ -0,0 +1,5 @@
1
+ export * from './video-generation-chain-status.enum';
2
+ export * from './video-generation-chain-scene-status.enum';
3
+ export * from './video-generation-chain-limits';
4
+ export * from './video-generation-chain-frame-slot.enum';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../video-generation-chain/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC"}