@ai-grator/api 0.3.77 → 0.3.79

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 (286) hide show
  1. package/admin/endpoints/admin.ts +16 -0
  2. package/admin/endpoints/commands/create-admin-preset-category.command.ts +29 -0
  3. package/admin/endpoints/commands/create-admin-preset.command.ts +30 -0
  4. package/admin/endpoints/commands/delete-admin-preset-category.command.ts +29 -0
  5. package/admin/endpoints/commands/delete-admin-preset.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 +1 -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-preset-categories.query.ts +22 -0
  14. package/admin/endpoints/queries/get-admin-preset.query.ts +29 -0
  15. package/admin/endpoints/queries/get-admin-presets.query.ts +37 -0
  16. package/admin/endpoints/queries/index.ts +3 -0
  17. package/admin/models/admin-preset-category-response.schema.ts +14 -0
  18. package/admin/models/admin-preset-response.schema.ts +67 -0
  19. package/admin/models/index.ts +2 -0
  20. package/build/admin/endpoints/admin.d.ts +12 -0
  21. package/build/admin/endpoints/admin.d.ts.map +1 -1
  22. package/build/admin/endpoints/admin.js +14 -0
  23. package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts +51 -0
  24. package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts.map +1 -0
  25. package/build/admin/endpoints/commands/create-admin-preset-category.command.js +25 -0
  26. package/build/admin/endpoints/commands/create-admin-preset.command.d.ts +490 -0
  27. package/build/admin/endpoints/commands/create-admin-preset.command.d.ts.map +1 -0
  28. package/build/admin/endpoints/commands/create-admin-preset.command.js +26 -0
  29. package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts +27 -0
  30. package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts.map +1 -0
  31. package/build/admin/endpoints/commands/delete-admin-preset-category.command.js +26 -0
  32. package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts +26 -0
  33. package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts.map +1 -0
  34. package/build/admin/endpoints/commands/delete-admin-preset.command.js +25 -0
  35. package/build/admin/endpoints/commands/index.d.ts +9 -0
  36. package/build/admin/endpoints/commands/index.d.ts.map +1 -1
  37. package/build/admin/endpoints/commands/index.js +9 -0
  38. package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts +2 -0
  39. package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts.map +1 -1
  40. package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.js +1 -0
  41. package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts +26 -0
  42. package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts.map +1 -0
  43. package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.js +28 -0
  44. package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts +29 -0
  45. package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts.map +1 -0
  46. package/build/admin/endpoints/commands/reorder-admin-presets.command.js +30 -0
  47. package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts +59 -0
  48. package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts.map +1 -0
  49. package/build/admin/endpoints/commands/update-admin-preset-category.command.js +31 -0
  50. package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts +312 -0
  51. package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts.map +1 -0
  52. package/build/admin/endpoints/commands/update-admin-preset-status.command.js +32 -0
  53. package/build/admin/endpoints/commands/update-admin-preset.command.d.ts +497 -0
  54. package/build/admin/endpoints/commands/update-admin-preset.command.d.ts.map +1 -0
  55. package/build/admin/endpoints/commands/update-admin-preset.command.js +31 -0
  56. package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts +38 -0
  57. package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts.map +1 -0
  58. package/build/admin/endpoints/queries/get-admin-preset-categories.query.js +21 -0
  59. package/build/admin/endpoints/queries/get-admin-preset.query.d.ts +304 -0
  60. package/build/admin/endpoints/queries/get-admin-preset.query.d.ts.map +1 -0
  61. package/build/admin/endpoints/queries/get-admin-preset.query.js +26 -0
  62. package/build/admin/endpoints/queries/get-admin-presets.query.d.ts +141 -0
  63. package/build/admin/endpoints/queries/get-admin-presets.query.d.ts.map +1 -0
  64. package/build/admin/endpoints/queries/get-admin-presets.query.js +34 -0
  65. package/build/admin/endpoints/queries/index.d.ts +3 -0
  66. package/build/admin/endpoints/queries/index.d.ts.map +1 -1
  67. package/build/admin/endpoints/queries/index.js +3 -0
  68. package/build/admin/models/admin-preset-category-response.schema.d.ts +13 -0
  69. package/build/admin/models/admin-preset-category-response.schema.d.ts.map +1 -0
  70. package/build/admin/models/admin-preset-category-response.schema.js +14 -0
  71. package/build/admin/models/admin-preset-response.schema.d.ts +205 -0
  72. package/build/admin/models/admin-preset-response.schema.d.ts.map +1 -0
  73. package/build/admin/models/admin-preset-response.schema.js +52 -0
  74. package/build/admin/models/index.d.ts +2 -0
  75. package/build/admin/models/index.d.ts.map +1 -1
  76. package/build/admin/models/index.js +2 -0
  77. package/build/chat/endpoints/commands/create-chat.command.d.ts +8 -0
  78. package/build/chat/endpoints/commands/create-chat.command.d.ts.map +1 -1
  79. package/build/chat/endpoints/commands/update-chat.command.d.ts +8 -0
  80. package/build/chat/endpoints/commands/update-chat.command.d.ts.map +1 -1
  81. package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts +8 -0
  82. package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts.map +1 -1
  83. package/build/chat/endpoints/queries/get-chats.query.d.ts +10 -0
  84. package/build/chat/endpoints/queries/get-chats.query.d.ts.map +1 -1
  85. package/build/chat/endpoints/queries/get-chats.query.js +4 -1
  86. package/build/chat/models/chat-response.schema.d.ts +4 -0
  87. package/build/chat/models/chat-response.schema.d.ts.map +1 -1
  88. package/build/chat/models/chat-response.schema.js +2 -0
  89. package/build/errors/errors.d.ts +207 -0
  90. package/build/errors/errors.d.ts.map +1 -1
  91. package/build/errors/errors.js +207 -0
  92. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +8 -0
  93. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts.map +1 -1
  94. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +8 -0
  95. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts.map +1 -1
  96. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +8 -0
  97. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts.map +1 -1
  98. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +14 -0
  99. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts.map +1 -1
  100. package/build/generation-job/endpoints/queries/get-generation-job-history.query.js +2 -0
  101. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +10 -0
  102. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts.map +1 -1
  103. package/build/generation-job/endpoints/queries/get-generation-jobs.query.js +2 -0
  104. package/build/generation-job/models/generation-job-response.schema.d.ts +4 -0
  105. package/build/generation-job/models/generation-job-response.schema.d.ts.map +1 -1
  106. package/build/generation-job/models/generation-job-response.schema.js +2 -0
  107. package/build/generation-job/models/index.d.ts +1 -0
  108. package/build/generation-job/models/index.d.ts.map +1 -1
  109. package/build/generation-job/models/index.js +1 -0
  110. package/build/generation-job/models/seedance-2_5-params.schema.d.ts +50 -0
  111. package/build/generation-job/models/seedance-2_5-params.schema.d.ts.map +1 -0
  112. package/build/generation-job/models/seedance-2_5-params.schema.js +30 -0
  113. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +8 -0
  114. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -1
  115. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +8 -0
  116. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -1
  117. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +8 -0
  118. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -1
  119. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +10 -0
  120. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -1
  121. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.js +2 -0
  122. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +4 -0
  123. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -1
  124. package/build/generation-job-chat/models/generation-job-chat-response.schema.js +2 -0
  125. package/build/index.d.ts +1 -0
  126. package/build/index.d.ts.map +1 -1
  127. package/build/index.js +1 -0
  128. package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts +25 -0
  129. package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts.map +1 -0
  130. package/build/preset/endpoints/commands/add-preset-favorite.command.js +22 -0
  131. package/build/preset/endpoints/commands/index.d.ts +5 -0
  132. package/build/preset/endpoints/commands/index.d.ts.map +1 -0
  133. package/build/preset/endpoints/commands/index.js +20 -0
  134. package/build/preset/endpoints/commands/prepare-preset.command.d.ts +198 -0
  135. package/build/preset/endpoints/commands/prepare-preset.command.d.ts.map +1 -0
  136. package/build/preset/endpoints/commands/prepare-preset.command.js +41 -0
  137. package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts +25 -0
  138. package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts.map +1 -0
  139. package/build/preset/endpoints/commands/remove-preset-favorite.command.js +22 -0
  140. package/build/preset/endpoints/commands/run-preset.command.d.ts +387 -0
  141. package/build/preset/endpoints/commands/run-preset.command.d.ts.map +1 -0
  142. package/build/preset/endpoints/commands/run-preset.command.js +55 -0
  143. package/build/preset/endpoints/index.d.ts +4 -0
  144. package/build/preset/endpoints/index.d.ts.map +1 -0
  145. package/build/preset/endpoints/index.js +19 -0
  146. package/build/preset/endpoints/preset.d.ts +16 -0
  147. package/build/preset/endpoints/preset.d.ts.map +1 -0
  148. package/build/preset/endpoints/preset.js +18 -0
  149. package/build/preset/endpoints/queries/get-preset-price.query.d.ts +62 -0
  150. package/build/preset/endpoints/queries/get-preset-price.query.d.ts.map +1 -0
  151. package/build/preset/endpoints/queries/get-preset-price.query.js +30 -0
  152. package/build/preset/endpoints/queries/get-preset-results.query.d.ts +74 -0
  153. package/build/preset/endpoints/queries/get-preset-results.query.d.ts.map +1 -0
  154. package/build/preset/endpoints/queries/get-preset-results.query.js +32 -0
  155. package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts +334 -0
  156. package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts.map +1 -0
  157. package/build/preset/endpoints/queries/get-public-preset-by-slug.query.js +25 -0
  158. package/build/preset/endpoints/queries/index.d.ts +6 -0
  159. package/build/preset/endpoints/queries/index.d.ts.map +1 -0
  160. package/build/preset/endpoints/queries/index.js +21 -0
  161. package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts +28 -0
  162. package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts.map +1 -0
  163. package/build/preset/endpoints/queries/list-public-preset-categories.query.js +19 -0
  164. package/build/preset/endpoints/queries/list-public-presets.query.d.ts +122 -0
  165. package/build/preset/endpoints/queries/list-public-presets.query.d.ts.map +1 -0
  166. package/build/preset/endpoints/queries/list-public-presets.query.js +32 -0
  167. package/build/preset/enums/index.d.ts +10 -0
  168. package/build/preset/enums/index.d.ts.map +1 -0
  169. package/build/preset/enums/index.js +25 -0
  170. package/build/preset/enums/preset-card-media-type.enum.d.ts +6 -0
  171. package/build/preset/enums/preset-card-media-type.enum.d.ts.map +1 -0
  172. package/build/preset/enums/preset-card-media-type.enum.js +9 -0
  173. package/build/preset/enums/preset-example-type.enum.d.ts +5 -0
  174. package/build/preset/enums/preset-example-type.enum.d.ts.map +1 -0
  175. package/build/preset/enums/preset-example-type.enum.js +8 -0
  176. package/build/preset/enums/preset-field-type.enum.d.ts +6 -0
  177. package/build/preset/enums/preset-field-type.enum.d.ts.map +1 -0
  178. package/build/preset/enums/preset-field-type.enum.js +9 -0
  179. package/build/preset/enums/preset-filter.enum.d.ts +6 -0
  180. package/build/preset/enums/preset-filter.enum.d.ts.map +1 -0
  181. package/build/preset/enums/preset-filter.enum.js +9 -0
  182. package/build/preset/enums/preset-limits.d.ts +30 -0
  183. package/build/preset/enums/preset-limits.d.ts.map +1 -0
  184. package/build/preset/enums/preset-limits.js +32 -0
  185. package/build/preset/enums/preset-result-type.enum.d.ts +5 -0
  186. package/build/preset/enums/preset-result-type.enum.d.ts.map +1 -0
  187. package/build/preset/enums/preset-result-type.enum.js +8 -0
  188. package/build/preset/enums/preset-select-display.enum.d.ts +7 -0
  189. package/build/preset/enums/preset-select-display.enum.d.ts.map +1 -0
  190. package/build/preset/enums/preset-select-display.enum.js +10 -0
  191. package/build/preset/enums/preset-status.enum.d.ts +5 -0
  192. package/build/preset/enums/preset-status.enum.d.ts.map +1 -0
  193. package/build/preset/enums/preset-status.enum.js +8 -0
  194. package/build/preset/enums/preset-tool.enum.d.ts +6 -0
  195. package/build/preset/enums/preset-tool.enum.d.ts.map +1 -0
  196. package/build/preset/enums/preset-tool.enum.js +9 -0
  197. package/build/preset/helpers/index.d.ts +3 -0
  198. package/build/preset/helpers/index.d.ts.map +1 -0
  199. package/build/preset/helpers/index.js +18 -0
  200. package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts +4 -0
  201. package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts.map +1 -0
  202. package/build/preset/helpers/preset-prompt-placeholder.helper.js +12 -0
  203. package/build/preset/helpers/preset-tag.helper.d.ts +3 -0
  204. package/build/preset/helpers/preset-tag.helper.d.ts.map +1 -0
  205. package/build/preset/helpers/preset-tag.helper.js +9 -0
  206. package/build/preset/index.d.ts +5 -0
  207. package/build/preset/index.d.ts.map +1 -0
  208. package/build/preset/index.js +20 -0
  209. package/build/preset/models/index.d.ts +9 -0
  210. package/build/preset/models/index.d.ts.map +1 -0
  211. package/build/preset/models/index.js +24 -0
  212. package/build/preset/models/preset-common.schema.d.ts +23 -0
  213. package/build/preset/models/preset-common.schema.d.ts.map +1 -0
  214. package/build/preset/models/preset-common.schema.js +26 -0
  215. package/build/preset/models/preset-field-value.schema.d.ts +51 -0
  216. package/build/preset/models/preset-field-value.schema.d.ts.map +1 -0
  217. package/build/preset/models/preset-field-value.schema.js +44 -0
  218. package/build/preset/models/preset-field.schema.d.ts +310 -0
  219. package/build/preset/models/preset-field.schema.d.ts.map +1 -0
  220. package/build/preset/models/preset-field.schema.js +186 -0
  221. package/build/preset/models/preset-input.schema.d.ts +106 -0
  222. package/build/preset/models/preset-input.schema.d.ts.map +1 -0
  223. package/build/preset/models/preset-input.schema.js +97 -0
  224. package/build/preset/models/preset-media.schema.d.ts +81 -0
  225. package/build/preset/models/preset-media.schema.d.ts.map +1 -0
  226. package/build/preset/models/preset-media.schema.js +75 -0
  227. package/build/preset/models/preset-result.schema.d.ts +23 -0
  228. package/build/preset/models/preset-result.schema.d.ts.map +1 -0
  229. package/build/preset/models/preset-result.schema.js +21 -0
  230. package/build/preset/models/preset-tag.schema.d.ts +10 -0
  231. package/build/preset/models/preset-tag.schema.d.ts.map +1 -0
  232. package/build/preset/models/preset-tag.schema.js +11 -0
  233. package/build/preset/models/public-preset.schema.d.ts +322 -0
  234. package/build/preset/models/public-preset.schema.d.ts.map +1 -0
  235. package/build/preset/models/public-preset.schema.js +50 -0
  236. package/build/trend/endpoints/commands/generate-trend.command.d.ts +8 -0
  237. package/build/trend/endpoints/commands/generate-trend.command.d.ts.map +1 -1
  238. package/build/tsconfig.tsbuildinfo +1 -1
  239. package/chat/endpoints/queries/get-chats.query.ts +4 -1
  240. package/chat/models/chat-response.schema.ts +2 -0
  241. package/errors/errors.ts +207 -0
  242. package/generation-job/endpoints/queries/get-generation-job-history.query.ts +2 -0
  243. package/generation-job/endpoints/queries/get-generation-jobs.query.ts +2 -0
  244. package/generation-job/models/generation-job-response.schema.ts +2 -0
  245. package/generation-job/models/index.ts +1 -0
  246. package/generation-job/models/seedance-2_5-params.schema.ts +32 -0
  247. package/generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts +2 -0
  248. package/generation-job-chat/models/generation-job-chat-response.schema.ts +2 -0
  249. package/index.ts +1 -0
  250. package/package.json +1 -1
  251. package/preset/endpoints/commands/add-preset-favorite.command.ts +26 -0
  252. package/preset/endpoints/commands/index.ts +4 -0
  253. package/preset/endpoints/commands/prepare-preset.command.ts +47 -0
  254. package/preset/endpoints/commands/remove-preset-favorite.command.ts +26 -0
  255. package/preset/endpoints/commands/run-preset.command.ts +65 -0
  256. package/preset/endpoints/index.ts +3 -0
  257. package/preset/endpoints/preset.ts +18 -0
  258. package/preset/endpoints/queries/get-preset-price.query.ts +35 -0
  259. package/preset/endpoints/queries/get-preset-results.query.ts +37 -0
  260. package/preset/endpoints/queries/get-public-preset-by-slug.query.ts +30 -0
  261. package/preset/endpoints/queries/index.ts +5 -0
  262. package/preset/endpoints/queries/list-public-preset-categories.query.ts +20 -0
  263. package/preset/endpoints/queries/list-public-presets.query.ts +35 -0
  264. package/preset/enums/index.ts +9 -0
  265. package/preset/enums/preset-card-media-type.enum.ts +5 -0
  266. package/preset/enums/preset-example-type.enum.ts +4 -0
  267. package/preset/enums/preset-field-type.enum.ts +5 -0
  268. package/preset/enums/preset-filter.enum.ts +5 -0
  269. package/preset/enums/preset-limits.ts +33 -0
  270. package/preset/enums/preset-result-type.enum.ts +4 -0
  271. package/preset/enums/preset-select-display.enum.ts +6 -0
  272. package/preset/enums/preset-status.enum.ts +4 -0
  273. package/preset/enums/preset-tool.enum.ts +5 -0
  274. package/preset/helpers/index.ts +2 -0
  275. package/preset/helpers/preset-prompt-placeholder.helper.ts +9 -0
  276. package/preset/helpers/preset-tag.helper.ts +9 -0
  277. package/preset/index.ts +4 -0
  278. package/preset/models/index.ts +8 -0
  279. package/preset/models/preset-common.schema.ts +45 -0
  280. package/preset/models/preset-field-value.schema.ts +51 -0
  281. package/preset/models/preset-field.schema.ts +251 -0
  282. package/preset/models/preset-input.schema.ts +129 -0
  283. package/preset/models/preset-media.schema.ts +94 -0
  284. package/preset/models/preset-result.schema.ts +21 -0
  285. package/preset/models/preset-tag.schema.ts +13 -0
  286. package/preset/models/public-preset.schema.ts +68 -0
@@ -0,0 +1,122 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const ListPublicPresetsQueryQuery: z.ZodObject<{
4
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
6
+ categorySlug: z.ZodOptional<z.ZodString>;
7
+ q: z.ZodOptional<z.ZodString>;
8
+ favorites: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
9
+ }, z.core.$strip>;
10
+ export declare const ListPublicPresetsQueryResponse: z.ZodObject<{
11
+ presets: z.ZodArray<z.ZodObject<{
12
+ uuid: z.ZodUUID;
13
+ slug: z.ZodString;
14
+ title: z.ZodString;
15
+ shortDescription: z.ZodString;
16
+ badge: z.ZodNullable<z.ZodString>;
17
+ tool: z.ZodEnum<typeof import("../../enums").PRESET_TOOL>;
18
+ cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
19
+ type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.IMAGE>;
20
+ image: z.ZodObject<{
21
+ uuid: z.ZodUUID;
22
+ url: z.ZodURL;
23
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
24
+ }, z.core.$strip>;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.COMPARE>;
27
+ before: z.ZodObject<{
28
+ uuid: z.ZodUUID;
29
+ url: z.ZodURL;
30
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
31
+ }, z.core.$strip>;
32
+ after: z.ZodObject<{
33
+ uuid: z.ZodUUID;
34
+ url: z.ZodURL;
35
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
36
+ }, z.core.$strip>;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.VIDEO>;
39
+ video: z.ZodObject<{
40
+ uuid: z.ZodUUID;
41
+ url: z.ZodURL;
42
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
43
+ }, z.core.$strip>;
44
+ cover: z.ZodObject<{
45
+ uuid: z.ZodUUID;
46
+ url: z.ZodURL;
47
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
48
+ }, z.core.$strip>;
49
+ }, z.core.$strip>], "type">;
50
+ isFavorite: z.ZodBoolean;
51
+ }, z.core.$strip>>;
52
+ total: z.ZodNumber;
53
+ page: z.ZodNumber;
54
+ limit: z.ZodNumber;
55
+ }, z.core.$strip>;
56
+ export declare const ListPublicPresetsQuery: {
57
+ method: HTTP_METHODS.GET;
58
+ path: "";
59
+ summary: string;
60
+ request: {
61
+ query: z.ZodObject<{
62
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
63
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
64
+ categorySlug: z.ZodOptional<z.ZodString>;
65
+ q: z.ZodOptional<z.ZodString>;
66
+ favorites: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
67
+ }, z.core.$strip>;
68
+ };
69
+ responses: {
70
+ 200: z.ZodObject<{
71
+ presets: z.ZodArray<z.ZodObject<{
72
+ uuid: z.ZodUUID;
73
+ slug: z.ZodString;
74
+ title: z.ZodString;
75
+ shortDescription: z.ZodString;
76
+ badge: z.ZodNullable<z.ZodString>;
77
+ tool: z.ZodEnum<typeof import("../../enums").PRESET_TOOL>;
78
+ cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
79
+ type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.IMAGE>;
80
+ image: z.ZodObject<{
81
+ uuid: z.ZodUUID;
82
+ url: z.ZodURL;
83
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
84
+ }, z.core.$strip>;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.COMPARE>;
87
+ before: z.ZodObject<{
88
+ uuid: z.ZodUUID;
89
+ url: z.ZodURL;
90
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
91
+ }, z.core.$strip>;
92
+ after: z.ZodObject<{
93
+ uuid: z.ZodUUID;
94
+ url: z.ZodURL;
95
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
96
+ }, z.core.$strip>;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.VIDEO>;
99
+ video: z.ZodObject<{
100
+ uuid: z.ZodUUID;
101
+ url: z.ZodURL;
102
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
103
+ }, z.core.$strip>;
104
+ cover: z.ZodObject<{
105
+ uuid: z.ZodUUID;
106
+ url: z.ZodURL;
107
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
108
+ }, z.core.$strip>;
109
+ }, z.core.$strip>], "type">;
110
+ isFavorite: z.ZodBoolean;
111
+ }, z.core.$strip>>;
112
+ total: z.ZodNumber;
113
+ page: z.ZodNumber;
114
+ limit: z.ZodNumber;
115
+ }, z.core.$strip>;
116
+ 400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
117
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
118
+ };
119
+ };
120
+ export type ListPublicPresetsQueryQueryType = z.infer<typeof ListPublicPresetsQueryQuery>;
121
+ export type ListPublicPresetsQueryResponseType = z.infer<typeof ListPublicPresetsQueryResponse>;
122
+ //# sourceMappingURL=list-public-presets.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-public-presets.query.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/queries/list-public-presets.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKtH,eAAO,MAAM,2BAA2B;;;;;;iBAItC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKzC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYjC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC1F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPublicPresetsQuery = exports.ListPublicPresetsQueryResponse = exports.ListPublicPresetsQueryQuery = 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 preset_1 = require("../preset");
9
+ exports.ListPublicPresetsQueryQuery = (0, _common_1.defineOffsetPaginationQuery)().extend({
10
+ categorySlug: models_1.PresetSlugSchema.optional(),
11
+ q: zod_1.z.string().trim().min(1).max(enums_1.PRESET_SEARCH_MAX_LENGTH).optional(),
12
+ favorites: zod_1.z.stringbool().optional(),
13
+ });
14
+ exports.ListPublicPresetsQueryResponse = zod_1.z.object({
15
+ presets: zod_1.z.array(models_1.PublicPresetCardSchema),
16
+ total: zod_1.z.number().int().nonnegative(),
17
+ page: zod_1.z.number().int().positive(),
18
+ limit: zod_1.z.number().int().positive(),
19
+ });
20
+ exports.ListPublicPresetsQuery = (0, _common_1.defineContract)({
21
+ method: _common_1.HTTP_METHODS.GET,
22
+ path: preset_1.PRESET_ROUTES.LIST,
23
+ summary: 'List published presets with active model, ordered by admin order; supports search and favorites',
24
+ request: {
25
+ query: exports.ListPublicPresetsQueryQuery,
26
+ },
27
+ responses: {
28
+ 200: exports.ListPublicPresetsQueryResponse,
29
+ 400: _common_1.HttpErrorResponseSchema,
30
+ 500: _common_1.HttpErrorResponseSchema,
31
+ },
32
+ });
@@ -0,0 +1,10 @@
1
+ export * from './preset-status.enum';
2
+ export * from './preset-tool.enum';
3
+ export * from './preset-field-type.enum';
4
+ export * from './preset-select-display.enum';
5
+ export * from './preset-card-media-type.enum';
6
+ export * from './preset-example-type.enum';
7
+ export * from './preset-filter.enum';
8
+ export * from './preset-result-type.enum';
9
+ export * from './preset-limits';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../preset/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,25 @@
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("./preset-status.enum"), exports);
18
+ __exportStar(require("./preset-tool.enum"), exports);
19
+ __exportStar(require("./preset-field-type.enum"), exports);
20
+ __exportStar(require("./preset-select-display.enum"), exports);
21
+ __exportStar(require("./preset-card-media-type.enum"), exports);
22
+ __exportStar(require("./preset-example-type.enum"), exports);
23
+ __exportStar(require("./preset-filter.enum"), exports);
24
+ __exportStar(require("./preset-result-type.enum"), exports);
25
+ __exportStar(require("./preset-limits"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum PRESET_CARD_MEDIA_TYPE {
2
+ IMAGE = "image",
3
+ COMPARE = "compare",
4
+ VIDEO = "video"
5
+ }
6
+ //# sourceMappingURL=preset-card-media-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-card-media-type.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-card-media-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAC9B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;CAClB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_CARD_MEDIA_TYPE = void 0;
4
+ var PRESET_CARD_MEDIA_TYPE;
5
+ (function (PRESET_CARD_MEDIA_TYPE) {
6
+ PRESET_CARD_MEDIA_TYPE["IMAGE"] = "image";
7
+ PRESET_CARD_MEDIA_TYPE["COMPARE"] = "compare";
8
+ PRESET_CARD_MEDIA_TYPE["VIDEO"] = "video";
9
+ })(PRESET_CARD_MEDIA_TYPE || (exports.PRESET_CARD_MEDIA_TYPE = PRESET_CARD_MEDIA_TYPE = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum PRESET_EXAMPLE_TYPE {
2
+ MEDIA = "media",
3
+ TEXT = "text"
4
+ }
5
+ //# sourceMappingURL=preset-example-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-example-type.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-example-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;CAChB"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_EXAMPLE_TYPE = void 0;
4
+ var PRESET_EXAMPLE_TYPE;
5
+ (function (PRESET_EXAMPLE_TYPE) {
6
+ PRESET_EXAMPLE_TYPE["MEDIA"] = "media";
7
+ PRESET_EXAMPLE_TYPE["TEXT"] = "text";
8
+ })(PRESET_EXAMPLE_TYPE || (exports.PRESET_EXAMPLE_TYPE = PRESET_EXAMPLE_TYPE = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum PRESET_FIELD_TYPE {
2
+ FILE = "file",
3
+ SELECT = "select",
4
+ TEXT = "text"
5
+ }
6
+ //# sourceMappingURL=preset-field-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-field-type.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-field-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CAChB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_FIELD_TYPE = void 0;
4
+ var PRESET_FIELD_TYPE;
5
+ (function (PRESET_FIELD_TYPE) {
6
+ PRESET_FIELD_TYPE["FILE"] = "file";
7
+ PRESET_FIELD_TYPE["SELECT"] = "select";
8
+ PRESET_FIELD_TYPE["TEXT"] = "text";
9
+ })(PRESET_FIELD_TYPE || (exports.PRESET_FIELD_TYPE = PRESET_FIELD_TYPE = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum PRESET_FILTER {
2
+ ALL = "all",
3
+ ONLY = "only",
4
+ EXCLUDE = "exclude"
5
+ }
6
+ //# sourceMappingURL=preset-filter.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-filter.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-filter.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,YAAY;CACtB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_FILTER = void 0;
4
+ var PRESET_FILTER;
5
+ (function (PRESET_FILTER) {
6
+ PRESET_FILTER["ALL"] = "all";
7
+ PRESET_FILTER["ONLY"] = "only";
8
+ PRESET_FILTER["EXCLUDE"] = "exclude";
9
+ })(PRESET_FILTER || (exports.PRESET_FILTER = PRESET_FILTER = {}));
@@ -0,0 +1,30 @@
1
+ export declare const PRESET_SLUG_MAX_LENGTH = 255;
2
+ export declare const PRESET_SLUG_PATTERN: RegExp;
3
+ export declare const PRESET_TITLE_MAX_LENGTH = 40;
4
+ export declare const PRESET_SHORT_DESCRIPTION_MAX_LENGTH = 90;
5
+ export declare const PRESET_DESCRIPTION_MAX_LENGTH = 300;
6
+ export declare const PRESET_BADGE_MAX_LENGTH = 50;
7
+ export declare const PRESET_PROMPT_TEMPLATE_MAX_LENGTH = 10000;
8
+ export declare const PRESET_MAX_FIELDS = 5;
9
+ export declare const PRESET_MAX_REQUIRED_FIELDS = 3;
10
+ export declare const PRESET_FIELD_KEY_MAX_LENGTH = 50;
11
+ export declare const PRESET_FIELD_KEY_PATTERN: RegExp;
12
+ export declare const PRESET_FIELD_LABEL_MAX_LENGTH = 100;
13
+ export declare const PRESET_FIELD_HINT_MAX_LENGTH = 200;
14
+ export declare const PRESET_FIELD_PROMPT_VALUE_MAX_LENGTH = 1000;
15
+ export declare const PRESET_SELECT_MAX_OPTIONS = 20;
16
+ export declare const PRESET_SELECT_OPTION_VALUE_MAX_LENGTH = 50;
17
+ export declare const PRESET_TEXT_FIELD_MAX_LENGTH = 50000;
18
+ export declare const PRESET_TEXT_FIELD_DEFAULT_MAX_LENGTH = 500;
19
+ export declare const PRESET_SELECT_CUSTOM_VALUE_MAX_LENGTH = 300;
20
+ export declare const PRESET_SELECT_CUSTOM_VALUE_DEFAULT_MAX_LENGTH = 150;
21
+ export declare const PRESET_EXAMPLE_MAX_MEDIA_ITEMS = 6;
22
+ export declare const PRESET_EXAMPLE_CAPTION_MAX_LENGTH = 100;
23
+ export declare const PRESET_EXAMPLE_TEXT_MAX_LENGTH = 5000;
24
+ export declare const PRESET_EXAMPLE_SOURCE_MAX_LENGTH = 2000;
25
+ export declare const PRESET_CATEGORY_NAME_MAX_LENGTH = 100;
26
+ export declare const PRESET_CATEGORY_ICON_MAX_LENGTH = 100;
27
+ export declare const PRESET_SEARCH_MAX_LENGTH = 255;
28
+ export declare const PRESET_RESULTS_DEFAULT_LIMIT = 4;
29
+ export declare const PRESET_RESULTS_MAX_LIMIT = 20;
30
+ //# sourceMappingURL=preset-limits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-limits.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-limits.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,mBAAmB,QAA+B,CAAC;AAChE,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,mCAAmC,KAAK,CAAC;AACtD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,iCAAiC,QAAQ,CAAC;AACvD,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,wBAAwB,QAAsB,CAAC;AAC5D,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,oCAAoC,OAAO,CAAC;AACzD,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,qCAAqC,KAAK,CAAC;AACxD,eAAO,MAAM,4BAA4B,QAAQ,CAAC;AAClD,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,qCAAqC,MAAM,CAAC;AACzD,eAAO,MAAM,6CAA6C,MAAM,CAAC;AAEjE,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD,eAAO,MAAM,iCAAiC,MAAM,CAAC;AACrD,eAAO,MAAM,8BAA8B,OAAO,CAAC;AACnD,eAAO,MAAM,gCAAgC,OAAO,CAAC;AAErD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,wBAAwB,KAAK,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_RESULTS_MAX_LIMIT = exports.PRESET_RESULTS_DEFAULT_LIMIT = exports.PRESET_SEARCH_MAX_LENGTH = exports.PRESET_CATEGORY_ICON_MAX_LENGTH = exports.PRESET_CATEGORY_NAME_MAX_LENGTH = exports.PRESET_EXAMPLE_SOURCE_MAX_LENGTH = exports.PRESET_EXAMPLE_TEXT_MAX_LENGTH = exports.PRESET_EXAMPLE_CAPTION_MAX_LENGTH = exports.PRESET_EXAMPLE_MAX_MEDIA_ITEMS = exports.PRESET_SELECT_CUSTOM_VALUE_DEFAULT_MAX_LENGTH = exports.PRESET_SELECT_CUSTOM_VALUE_MAX_LENGTH = exports.PRESET_TEXT_FIELD_DEFAULT_MAX_LENGTH = exports.PRESET_TEXT_FIELD_MAX_LENGTH = exports.PRESET_SELECT_OPTION_VALUE_MAX_LENGTH = exports.PRESET_SELECT_MAX_OPTIONS = exports.PRESET_FIELD_PROMPT_VALUE_MAX_LENGTH = exports.PRESET_FIELD_HINT_MAX_LENGTH = exports.PRESET_FIELD_LABEL_MAX_LENGTH = exports.PRESET_FIELD_KEY_PATTERN = exports.PRESET_FIELD_KEY_MAX_LENGTH = exports.PRESET_MAX_REQUIRED_FIELDS = exports.PRESET_MAX_FIELDS = exports.PRESET_PROMPT_TEMPLATE_MAX_LENGTH = exports.PRESET_BADGE_MAX_LENGTH = exports.PRESET_DESCRIPTION_MAX_LENGTH = exports.PRESET_SHORT_DESCRIPTION_MAX_LENGTH = exports.PRESET_TITLE_MAX_LENGTH = exports.PRESET_SLUG_PATTERN = exports.PRESET_SLUG_MAX_LENGTH = void 0;
4
+ exports.PRESET_SLUG_MAX_LENGTH = 255;
5
+ exports.PRESET_SLUG_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
6
+ exports.PRESET_TITLE_MAX_LENGTH = 40;
7
+ exports.PRESET_SHORT_DESCRIPTION_MAX_LENGTH = 90;
8
+ exports.PRESET_DESCRIPTION_MAX_LENGTH = 300;
9
+ exports.PRESET_BADGE_MAX_LENGTH = 50;
10
+ exports.PRESET_PROMPT_TEMPLATE_MAX_LENGTH = 10000;
11
+ exports.PRESET_MAX_FIELDS = 5;
12
+ exports.PRESET_MAX_REQUIRED_FIELDS = 3;
13
+ exports.PRESET_FIELD_KEY_MAX_LENGTH = 50;
14
+ exports.PRESET_FIELD_KEY_PATTERN = /^[a-z][a-z0-9_]*$/;
15
+ exports.PRESET_FIELD_LABEL_MAX_LENGTH = 100;
16
+ exports.PRESET_FIELD_HINT_MAX_LENGTH = 200;
17
+ exports.PRESET_FIELD_PROMPT_VALUE_MAX_LENGTH = 1000;
18
+ exports.PRESET_SELECT_MAX_OPTIONS = 20;
19
+ exports.PRESET_SELECT_OPTION_VALUE_MAX_LENGTH = 50;
20
+ exports.PRESET_TEXT_FIELD_MAX_LENGTH = 50000;
21
+ exports.PRESET_TEXT_FIELD_DEFAULT_MAX_LENGTH = 500;
22
+ exports.PRESET_SELECT_CUSTOM_VALUE_MAX_LENGTH = 300;
23
+ exports.PRESET_SELECT_CUSTOM_VALUE_DEFAULT_MAX_LENGTH = 150;
24
+ exports.PRESET_EXAMPLE_MAX_MEDIA_ITEMS = 6;
25
+ exports.PRESET_EXAMPLE_CAPTION_MAX_LENGTH = 100;
26
+ exports.PRESET_EXAMPLE_TEXT_MAX_LENGTH = 5000;
27
+ exports.PRESET_EXAMPLE_SOURCE_MAX_LENGTH = 2000;
28
+ exports.PRESET_CATEGORY_NAME_MAX_LENGTH = 100;
29
+ exports.PRESET_CATEGORY_ICON_MAX_LENGTH = 100;
30
+ exports.PRESET_SEARCH_MAX_LENGTH = 255;
31
+ exports.PRESET_RESULTS_DEFAULT_LIMIT = 4;
32
+ exports.PRESET_RESULTS_MAX_LIMIT = 20;
@@ -0,0 +1,5 @@
1
+ export declare enum PRESET_RESULT_TYPE {
2
+ GENERATION = "generation",
3
+ CHAT = "chat"
4
+ }
5
+ //# sourceMappingURL=preset-result-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-result-type.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-result-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC1B,UAAU,eAAe;IACzB,IAAI,SAAS;CAChB"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_RESULT_TYPE = void 0;
4
+ var PRESET_RESULT_TYPE;
5
+ (function (PRESET_RESULT_TYPE) {
6
+ PRESET_RESULT_TYPE["GENERATION"] = "generation";
7
+ PRESET_RESULT_TYPE["CHAT"] = "chat";
8
+ })(PRESET_RESULT_TYPE || (exports.PRESET_RESULT_TYPE = PRESET_RESULT_TYPE = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum PRESET_SELECT_DISPLAY {
2
+ CHIPS = "chips",
3
+ DROPDOWN = "dropdown",
4
+ SWITCH = "switch",
5
+ TILES = "tiles"
6
+ }
7
+ //# sourceMappingURL=preset-select-display.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-select-display.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-select-display.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC7B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;CAClB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_SELECT_DISPLAY = void 0;
4
+ var PRESET_SELECT_DISPLAY;
5
+ (function (PRESET_SELECT_DISPLAY) {
6
+ PRESET_SELECT_DISPLAY["CHIPS"] = "chips";
7
+ PRESET_SELECT_DISPLAY["DROPDOWN"] = "dropdown";
8
+ PRESET_SELECT_DISPLAY["SWITCH"] = "switch";
9
+ PRESET_SELECT_DISPLAY["TILES"] = "tiles";
10
+ })(PRESET_SELECT_DISPLAY || (exports.PRESET_SELECT_DISPLAY = PRESET_SELECT_DISPLAY = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum PRESET_STATUS {
2
+ DRAFT = "draft",
3
+ PUBLISHED = "published"
4
+ }
5
+ //# sourceMappingURL=preset-status.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-status.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,KAAK,UAAU;IACf,SAAS,cAAc;CAC1B"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_STATUS = void 0;
4
+ var PRESET_STATUS;
5
+ (function (PRESET_STATUS) {
6
+ PRESET_STATUS["DRAFT"] = "draft";
7
+ PRESET_STATUS["PUBLISHED"] = "published";
8
+ })(PRESET_STATUS || (exports.PRESET_STATUS = PRESET_STATUS = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum PRESET_TOOL {
2
+ IMAGE = "image",
3
+ VIDEO = "video",
4
+ TEXT = "text"
5
+ }
6
+ //# sourceMappingURL=preset-tool.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-tool.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-tool.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CAChB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_TOOL = void 0;
4
+ var PRESET_TOOL;
5
+ (function (PRESET_TOOL) {
6
+ PRESET_TOOL["IMAGE"] = "image";
7
+ PRESET_TOOL["VIDEO"] = "video";
8
+ PRESET_TOOL["TEXT"] = "text";
9
+ })(PRESET_TOOL || (exports.PRESET_TOOL = PRESET_TOOL = {}));
@@ -0,0 +1,3 @@
1
+ export * from './preset-prompt-placeholder.helper';
2
+ export * from './preset-tag.helper';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../preset/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,18 @@
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("./preset-prompt-placeholder.helper"), exports);
18
+ __exportStar(require("./preset-tag.helper"), exports);
@@ -0,0 +1,4 @@
1
+ export declare const PRESET_PROMPT_PLACEHOLDER_PATTERN: RegExp;
2
+ export declare function toPresetPromptPlaceholder(fieldKey: string): string;
3
+ export declare function extractPresetPromptPlaceholders(promptTemplate: string): string[];
4
+ //# sourceMappingURL=preset-prompt-placeholder.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-prompt-placeholder.helper.d.ts","sourceRoot":"","sources":["../../../preset/helpers/preset-prompt-placeholder.helper.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,QAA2B,CAAC;AAE1E,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,+BAA+B,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,CAEhF"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESET_PROMPT_PLACEHOLDER_PATTERN = void 0;
4
+ exports.toPresetPromptPlaceholder = toPresetPromptPlaceholder;
5
+ exports.extractPresetPromptPlaceholders = extractPresetPromptPlaceholders;
6
+ exports.PRESET_PROMPT_PLACEHOLDER_PATTERN = /\{([a-z][a-z0-9_]*)\}/g;
7
+ function toPresetPromptPlaceholder(fieldKey) {
8
+ return `{${fieldKey}}`;
9
+ }
10
+ function extractPresetPromptPlaceholders(promptTemplate) {
11
+ return [...new Set(Array.from(promptTemplate.matchAll(exports.PRESET_PROMPT_PLACEHOLDER_PATTERN), (match) => match[1]))];
12
+ }
@@ -0,0 +1,3 @@
1
+ import { PresetTagSchemaType } from '../models/preset-tag.schema';
2
+ export declare function toPresetTag(presetId: string | null, presetTitle: string | null): PresetTagSchemaType | null;
3
+ //# sourceMappingURL=preset-tag.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-tag.helper.d.ts","sourceRoot":"","sources":["../../../preset/helpers/preset-tag.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,mBAAmB,GAAG,IAAI,CAM3G"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toPresetTag = toPresetTag;
4
+ function toPresetTag(presetId, presetTitle) {
5
+ if (!presetTitle) {
6
+ return null;
7
+ }
8
+ return { uuid: presetId ?? null, title: presetTitle };
9
+ }
@@ -0,0 +1,5 @@
1
+ export * from './enums';
2
+ export * from './helpers';
3
+ export * from './models';
4
+ export * from './endpoints';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../preset/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,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("./enums"), exports);
18
+ __exportStar(require("./helpers"), exports);
19
+ __exportStar(require("./models"), exports);
20
+ __exportStar(require("./endpoints"), exports);
@@ -0,0 +1,9 @@
1
+ export * from './preset-tag.schema';
2
+ export * from './preset-common.schema';
3
+ export * from './preset-field.schema';
4
+ export * from './preset-media.schema';
5
+ export * from './preset-input.schema';
6
+ export * from './preset-field-value.schema';
7
+ export * from './public-preset.schema';
8
+ export * from './preset-result.schema';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../preset/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,24 @@
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("./preset-tag.schema"), exports);
18
+ __exportStar(require("./preset-common.schema"), exports);
19
+ __exportStar(require("./preset-field.schema"), exports);
20
+ __exportStar(require("./preset-media.schema"), exports);
21
+ __exportStar(require("./preset-input.schema"), exports);
22
+ __exportStar(require("./preset-field-value.schema"), exports);
23
+ __exportStar(require("./public-preset.schema"), exports);
24
+ __exportStar(require("./preset-result.schema"), exports);
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import { PRESET_FIELD_TYPE, PRESET_STATUS, PRESET_TOOL } from '../enums';
3
+ export declare const PresetStatusSchema: z.ZodEnum<typeof PRESET_STATUS>;
4
+ export declare const PresetToolSchema: z.ZodEnum<typeof PRESET_TOOL>;
5
+ export declare const PresetFieldTypeSchema: z.ZodEnum<typeof PRESET_FIELD_TYPE>;
6
+ export declare const PresetSlugSchema: z.ZodString;
7
+ export declare const PresetFieldKeySchema: z.ZodString;
8
+ export declare const PresetCategoryNameSchema: z.ZodString;
9
+ export declare const PresetCategoryIconSchema: z.ZodString;
10
+ export declare const PresetModelParamsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
+ export declare const PresetChatOptionsSchema: z.ZodObject<{
12
+ reasoning: z.ZodDefault<z.ZodBoolean>;
13
+ webSearch: z.ZodDefault<z.ZodBoolean>;
14
+ }, z.core.$strip>;
15
+ export declare const PresetFileSchema: z.ZodObject<{
16
+ uuid: z.ZodUUID;
17
+ url: z.ZodURL;
18
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
19
+ }, z.core.$strip>;
20
+ export type PresetModelParamsSchemaType = z.infer<typeof PresetModelParamsSchema>;
21
+ export type PresetChatOptionsSchemaType = z.infer<typeof PresetChatOptionsSchema>;
22
+ export type PresetFileSchemaType = z.infer<typeof PresetFileSchema>;
23
+ //# sourceMappingURL=preset-common.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-common.schema.d.ts","sourceRoot":"","sources":["../../../preset/models/preset-common.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAKH,iBAAiB,EAGjB,aAAa,EACb,WAAW,EACd,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,kBAAkB,iCAAwB,CAAC;AACxD,eAAO,MAAM,gBAAgB,+BAAsB,CAAC;AACpD,eAAO,MAAM,qBAAqB,qCAA4B,CAAC;AAE/D,eAAO,MAAM,gBAAgB,aAA2E,CAAC;AAEzG,eAAO,MAAM,oBAAoB,aAIoE,CAAC;AAEtG,eAAO,MAAM,wBAAwB,aAAgE,CAAC;AAEtG,eAAO,MAAM,wBAAwB,aAAgE,CAAC;AAEtG,eAAO,MAAM,uBAAuB,wCAAoC,CAAC;AAEzE,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAClF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAClF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}