@ai-grator/api 0.3.76 → 0.3.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/admin/endpoints/admin.ts +20 -0
  2. package/admin/endpoints/commands/ban-admin-antifraud-check-value.command.ts +37 -0
  3. package/admin/endpoints/commands/create-admin-preset-category.command.ts +29 -0
  4. package/admin/endpoints/commands/create-admin-preset.command.ts +30 -0
  5. package/admin/endpoints/commands/delete-admin-preset-category.command.ts +29 -0
  6. package/admin/endpoints/commands/delete-admin-preset.command.ts +28 -0
  7. package/admin/endpoints/commands/index.ts +10 -0
  8. package/admin/endpoints/commands/reorder-admin-preset-categories.command.ts +33 -0
  9. package/admin/endpoints/commands/reorder-admin-presets.command.ts +33 -0
  10. package/admin/endpoints/commands/update-admin-preset-category.command.ts +36 -0
  11. package/admin/endpoints/commands/update-admin-preset-status.command.ts +37 -0
  12. package/admin/endpoints/commands/update-admin-preset.command.ts +36 -0
  13. package/admin/endpoints/queries/get-admin-antifraud-checks.query.ts +35 -0
  14. package/admin/endpoints/queries/get-admin-preset-categories.query.ts +22 -0
  15. package/admin/endpoints/queries/get-admin-preset.query.ts +29 -0
  16. package/admin/endpoints/queries/get-admin-presets.query.ts +37 -0
  17. package/admin/endpoints/queries/index.ts +4 -0
  18. package/admin/enums/admin-antifraud-check-reason.enum.ts +5 -0
  19. package/admin/enums/index.ts +1 -0
  20. package/admin/models/admin-antifraud-check-response.schema.ts +27 -0
  21. package/admin/models/admin-preset-category-response.schema.ts +14 -0
  22. package/admin/models/admin-preset-response.schema.ts +67 -0
  23. package/admin/models/index.ts +3 -0
  24. package/build/admin/endpoints/admin.d.ts +14 -0
  25. package/build/admin/endpoints/admin.d.ts.map +1 -1
  26. package/build/admin/endpoints/admin.js +17 -0
  27. package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts +71 -0
  28. package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts.map +1 -0
  29. package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.js +32 -0
  30. package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts +51 -0
  31. package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts.map +1 -0
  32. package/build/admin/endpoints/commands/create-admin-preset-category.command.js +25 -0
  33. package/build/admin/endpoints/commands/create-admin-preset.command.d.ts +490 -0
  34. package/build/admin/endpoints/commands/create-admin-preset.command.d.ts.map +1 -0
  35. package/build/admin/endpoints/commands/create-admin-preset.command.js +26 -0
  36. package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts +27 -0
  37. package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts.map +1 -0
  38. package/build/admin/endpoints/commands/delete-admin-preset-category.command.js +26 -0
  39. package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts +26 -0
  40. package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts.map +1 -0
  41. package/build/admin/endpoints/commands/delete-admin-preset.command.js +25 -0
  42. package/build/admin/endpoints/commands/index.d.ts +10 -0
  43. package/build/admin/endpoints/commands/index.d.ts.map +1 -1
  44. package/build/admin/endpoints/commands/index.js +10 -0
  45. package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts +26 -0
  46. package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts.map +1 -0
  47. package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.js +28 -0
  48. package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts +29 -0
  49. package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts.map +1 -0
  50. package/build/admin/endpoints/commands/reorder-admin-presets.command.js +30 -0
  51. package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts +59 -0
  52. package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts.map +1 -0
  53. package/build/admin/endpoints/commands/update-admin-preset-category.command.js +31 -0
  54. package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts +312 -0
  55. package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts.map +1 -0
  56. package/build/admin/endpoints/commands/update-admin-preset-status.command.js +32 -0
  57. package/build/admin/endpoints/commands/update-admin-preset.command.d.ts +497 -0
  58. package/build/admin/endpoints/commands/update-admin-preset.command.d.ts.map +1 -0
  59. package/build/admin/endpoints/commands/update-admin-preset.command.js +31 -0
  60. package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.d.ts +78 -0
  61. package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.d.ts.map +1 -0
  62. package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.js +32 -0
  63. package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts +38 -0
  64. package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts.map +1 -0
  65. package/build/admin/endpoints/queries/get-admin-preset-categories.query.js +21 -0
  66. package/build/admin/endpoints/queries/get-admin-preset.query.d.ts +304 -0
  67. package/build/admin/endpoints/queries/get-admin-preset.query.d.ts.map +1 -0
  68. package/build/admin/endpoints/queries/get-admin-preset.query.js +26 -0
  69. package/build/admin/endpoints/queries/get-admin-presets.query.d.ts +141 -0
  70. package/build/admin/endpoints/queries/get-admin-presets.query.d.ts.map +1 -0
  71. package/build/admin/endpoints/queries/get-admin-presets.query.js +34 -0
  72. package/build/admin/endpoints/queries/index.d.ts +4 -0
  73. package/build/admin/endpoints/queries/index.d.ts.map +1 -1
  74. package/build/admin/endpoints/queries/index.js +4 -0
  75. package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts +6 -0
  76. package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts.map +1 -0
  77. package/build/admin/enums/admin-antifraud-check-reason.enum.js +9 -0
  78. package/build/admin/enums/index.d.ts +1 -0
  79. package/build/admin/enums/index.d.ts.map +1 -1
  80. package/build/admin/enums/index.js +1 -0
  81. package/build/admin/models/admin-antifraud-check-response.schema.d.ts +34 -0
  82. package/build/admin/models/admin-antifraud-check-response.schema.d.ts.map +1 -0
  83. package/build/admin/models/admin-antifraud-check-response.schema.js +23 -0
  84. package/build/admin/models/admin-preset-category-response.schema.d.ts +13 -0
  85. package/build/admin/models/admin-preset-category-response.schema.d.ts.map +1 -0
  86. package/build/admin/models/admin-preset-category-response.schema.js +14 -0
  87. package/build/admin/models/admin-preset-response.schema.d.ts +205 -0
  88. package/build/admin/models/admin-preset-response.schema.d.ts.map +1 -0
  89. package/build/admin/models/admin-preset-response.schema.js +52 -0
  90. package/build/admin/models/index.d.ts +3 -0
  91. package/build/admin/models/index.d.ts.map +1 -1
  92. package/build/admin/models/index.js +3 -0
  93. package/build/chat/endpoints/commands/create-chat.command.d.ts +8 -0
  94. package/build/chat/endpoints/commands/create-chat.command.d.ts.map +1 -1
  95. package/build/chat/endpoints/commands/update-chat.command.d.ts +8 -0
  96. package/build/chat/endpoints/commands/update-chat.command.d.ts.map +1 -1
  97. package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts +8 -0
  98. package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts.map +1 -1
  99. package/build/chat/endpoints/queries/get-chats.query.d.ts +10 -0
  100. package/build/chat/endpoints/queries/get-chats.query.d.ts.map +1 -1
  101. package/build/chat/endpoints/queries/get-chats.query.js +4 -1
  102. package/build/chat/models/chat-response.schema.d.ts +4 -0
  103. package/build/chat/models/chat-response.schema.d.ts.map +1 -1
  104. package/build/chat/models/chat-response.schema.js +2 -0
  105. package/build/errors/errors.d.ts +224 -5
  106. package/build/errors/errors.d.ts.map +1 -1
  107. package/build/errors/errors.js +224 -5
  108. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +8 -0
  109. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts.map +1 -1
  110. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +8 -0
  111. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts.map +1 -1
  112. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +8 -0
  113. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts.map +1 -1
  114. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +14 -0
  115. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts.map +1 -1
  116. package/build/generation-job/endpoints/queries/get-generation-job-history.query.js +2 -0
  117. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +10 -0
  118. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts.map +1 -1
  119. package/build/generation-job/endpoints/queries/get-generation-jobs.query.js +2 -0
  120. package/build/generation-job/models/generation-job-response.schema.d.ts +4 -0
  121. package/build/generation-job/models/generation-job-response.schema.d.ts.map +1 -1
  122. package/build/generation-job/models/generation-job-response.schema.js +2 -0
  123. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +8 -0
  124. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -1
  125. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +8 -0
  126. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -1
  127. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +8 -0
  128. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -1
  129. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +10 -0
  130. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -1
  131. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.js +2 -0
  132. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +4 -0
  133. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -1
  134. package/build/generation-job-chat/models/generation-job-chat-response.schema.js +2 -0
  135. package/build/index.d.ts +1 -0
  136. package/build/index.d.ts.map +1 -1
  137. package/build/index.js +1 -0
  138. package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts +25 -0
  139. package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts.map +1 -0
  140. package/build/preset/endpoints/commands/add-preset-favorite.command.js +22 -0
  141. package/build/preset/endpoints/commands/index.d.ts +5 -0
  142. package/build/preset/endpoints/commands/index.d.ts.map +1 -0
  143. package/build/preset/endpoints/commands/index.js +20 -0
  144. package/build/preset/endpoints/commands/prepare-preset.command.d.ts +198 -0
  145. package/build/preset/endpoints/commands/prepare-preset.command.d.ts.map +1 -0
  146. package/build/preset/endpoints/commands/prepare-preset.command.js +41 -0
  147. package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts +25 -0
  148. package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts.map +1 -0
  149. package/build/preset/endpoints/commands/remove-preset-favorite.command.js +22 -0
  150. package/build/preset/endpoints/commands/run-preset.command.d.ts +387 -0
  151. package/build/preset/endpoints/commands/run-preset.command.d.ts.map +1 -0
  152. package/build/preset/endpoints/commands/run-preset.command.js +55 -0
  153. package/build/preset/endpoints/index.d.ts +4 -0
  154. package/build/preset/endpoints/index.d.ts.map +1 -0
  155. package/build/preset/endpoints/index.js +19 -0
  156. package/build/preset/endpoints/preset.d.ts +16 -0
  157. package/build/preset/endpoints/preset.d.ts.map +1 -0
  158. package/build/preset/endpoints/preset.js +18 -0
  159. package/build/preset/endpoints/queries/get-preset-price.query.d.ts +62 -0
  160. package/build/preset/endpoints/queries/get-preset-price.query.d.ts.map +1 -0
  161. package/build/preset/endpoints/queries/get-preset-price.query.js +30 -0
  162. package/build/preset/endpoints/queries/get-preset-results.query.d.ts +74 -0
  163. package/build/preset/endpoints/queries/get-preset-results.query.d.ts.map +1 -0
  164. package/build/preset/endpoints/queries/get-preset-results.query.js +32 -0
  165. package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts +334 -0
  166. package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts.map +1 -0
  167. package/build/preset/endpoints/queries/get-public-preset-by-slug.query.js +25 -0
  168. package/build/preset/endpoints/queries/index.d.ts +6 -0
  169. package/build/preset/endpoints/queries/index.d.ts.map +1 -0
  170. package/build/preset/endpoints/queries/index.js +21 -0
  171. package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts +28 -0
  172. package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts.map +1 -0
  173. package/build/preset/endpoints/queries/list-public-preset-categories.query.js +19 -0
  174. package/build/preset/endpoints/queries/list-public-presets.query.d.ts +122 -0
  175. package/build/preset/endpoints/queries/list-public-presets.query.d.ts.map +1 -0
  176. package/build/preset/endpoints/queries/list-public-presets.query.js +32 -0
  177. package/build/preset/enums/index.d.ts +10 -0
  178. package/build/preset/enums/index.d.ts.map +1 -0
  179. package/build/preset/enums/index.js +25 -0
  180. package/build/preset/enums/preset-card-media-type.enum.d.ts +6 -0
  181. package/build/preset/enums/preset-card-media-type.enum.d.ts.map +1 -0
  182. package/build/preset/enums/preset-card-media-type.enum.js +9 -0
  183. package/build/preset/enums/preset-example-type.enum.d.ts +5 -0
  184. package/build/preset/enums/preset-example-type.enum.d.ts.map +1 -0
  185. package/build/preset/enums/preset-example-type.enum.js +8 -0
  186. package/build/preset/enums/preset-field-type.enum.d.ts +6 -0
  187. package/build/preset/enums/preset-field-type.enum.d.ts.map +1 -0
  188. package/build/preset/enums/preset-field-type.enum.js +9 -0
  189. package/build/preset/enums/preset-filter.enum.d.ts +6 -0
  190. package/build/preset/enums/preset-filter.enum.d.ts.map +1 -0
  191. package/build/preset/enums/preset-filter.enum.js +9 -0
  192. package/build/preset/enums/preset-limits.d.ts +30 -0
  193. package/build/preset/enums/preset-limits.d.ts.map +1 -0
  194. package/build/preset/enums/preset-limits.js +32 -0
  195. package/build/preset/enums/preset-result-type.enum.d.ts +5 -0
  196. package/build/preset/enums/preset-result-type.enum.d.ts.map +1 -0
  197. package/build/preset/enums/preset-result-type.enum.js +8 -0
  198. package/build/preset/enums/preset-select-display.enum.d.ts +7 -0
  199. package/build/preset/enums/preset-select-display.enum.d.ts.map +1 -0
  200. package/build/preset/enums/preset-select-display.enum.js +10 -0
  201. package/build/preset/enums/preset-status.enum.d.ts +5 -0
  202. package/build/preset/enums/preset-status.enum.d.ts.map +1 -0
  203. package/build/preset/enums/preset-status.enum.js +8 -0
  204. package/build/preset/enums/preset-tool.enum.d.ts +6 -0
  205. package/build/preset/enums/preset-tool.enum.d.ts.map +1 -0
  206. package/build/preset/enums/preset-tool.enum.js +9 -0
  207. package/build/preset/helpers/index.d.ts +3 -0
  208. package/build/preset/helpers/index.d.ts.map +1 -0
  209. package/build/preset/helpers/index.js +18 -0
  210. package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts +4 -0
  211. package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts.map +1 -0
  212. package/build/preset/helpers/preset-prompt-placeholder.helper.js +12 -0
  213. package/build/preset/helpers/preset-tag.helper.d.ts +3 -0
  214. package/build/preset/helpers/preset-tag.helper.d.ts.map +1 -0
  215. package/build/preset/helpers/preset-tag.helper.js +9 -0
  216. package/build/preset/index.d.ts +5 -0
  217. package/build/preset/index.d.ts.map +1 -0
  218. package/build/preset/index.js +20 -0
  219. package/build/preset/models/index.d.ts +9 -0
  220. package/build/preset/models/index.d.ts.map +1 -0
  221. package/build/preset/models/index.js +24 -0
  222. package/build/preset/models/preset-common.schema.d.ts +23 -0
  223. package/build/preset/models/preset-common.schema.d.ts.map +1 -0
  224. package/build/preset/models/preset-common.schema.js +26 -0
  225. package/build/preset/models/preset-field-value.schema.d.ts +51 -0
  226. package/build/preset/models/preset-field-value.schema.d.ts.map +1 -0
  227. package/build/preset/models/preset-field-value.schema.js +44 -0
  228. package/build/preset/models/preset-field.schema.d.ts +310 -0
  229. package/build/preset/models/preset-field.schema.d.ts.map +1 -0
  230. package/build/preset/models/preset-field.schema.js +186 -0
  231. package/build/preset/models/preset-input.schema.d.ts +106 -0
  232. package/build/preset/models/preset-input.schema.d.ts.map +1 -0
  233. package/build/preset/models/preset-input.schema.js +97 -0
  234. package/build/preset/models/preset-media.schema.d.ts +81 -0
  235. package/build/preset/models/preset-media.schema.d.ts.map +1 -0
  236. package/build/preset/models/preset-media.schema.js +75 -0
  237. package/build/preset/models/preset-result.schema.d.ts +23 -0
  238. package/build/preset/models/preset-result.schema.d.ts.map +1 -0
  239. package/build/preset/models/preset-result.schema.js +21 -0
  240. package/build/preset/models/preset-tag.schema.d.ts +10 -0
  241. package/build/preset/models/preset-tag.schema.d.ts.map +1 -0
  242. package/build/preset/models/preset-tag.schema.js +11 -0
  243. package/build/preset/models/public-preset.schema.d.ts +322 -0
  244. package/build/preset/models/public-preset.schema.d.ts.map +1 -0
  245. package/build/preset/models/public-preset.schema.js +50 -0
  246. package/build/trend/endpoints/commands/generate-trend.command.d.ts +8 -0
  247. package/build/trend/endpoints/commands/generate-trend.command.d.ts.map +1 -1
  248. package/build/tsconfig.tsbuildinfo +1 -1
  249. package/chat/endpoints/queries/get-chats.query.ts +4 -1
  250. package/chat/models/chat-response.schema.ts +2 -0
  251. package/errors/errors.ts +224 -5
  252. package/generation-job/endpoints/queries/get-generation-job-history.query.ts +2 -0
  253. package/generation-job/endpoints/queries/get-generation-jobs.query.ts +2 -0
  254. package/generation-job/models/generation-job-response.schema.ts +2 -0
  255. package/generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts +2 -0
  256. package/generation-job-chat/models/generation-job-chat-response.schema.ts +2 -0
  257. package/index.ts +1 -0
  258. package/package.json +1 -1
  259. package/preset/endpoints/commands/add-preset-favorite.command.ts +26 -0
  260. package/preset/endpoints/commands/index.ts +4 -0
  261. package/preset/endpoints/commands/prepare-preset.command.ts +47 -0
  262. package/preset/endpoints/commands/remove-preset-favorite.command.ts +26 -0
  263. package/preset/endpoints/commands/run-preset.command.ts +65 -0
  264. package/preset/endpoints/index.ts +3 -0
  265. package/preset/endpoints/preset.ts +18 -0
  266. package/preset/endpoints/queries/get-preset-price.query.ts +35 -0
  267. package/preset/endpoints/queries/get-preset-results.query.ts +37 -0
  268. package/preset/endpoints/queries/get-public-preset-by-slug.query.ts +30 -0
  269. package/preset/endpoints/queries/index.ts +5 -0
  270. package/preset/endpoints/queries/list-public-preset-categories.query.ts +20 -0
  271. package/preset/endpoints/queries/list-public-presets.query.ts +35 -0
  272. package/preset/enums/index.ts +9 -0
  273. package/preset/enums/preset-card-media-type.enum.ts +5 -0
  274. package/preset/enums/preset-example-type.enum.ts +4 -0
  275. package/preset/enums/preset-field-type.enum.ts +5 -0
  276. package/preset/enums/preset-filter.enum.ts +5 -0
  277. package/preset/enums/preset-limits.ts +33 -0
  278. package/preset/enums/preset-result-type.enum.ts +4 -0
  279. package/preset/enums/preset-select-display.enum.ts +6 -0
  280. package/preset/enums/preset-status.enum.ts +4 -0
  281. package/preset/enums/preset-tool.enum.ts +5 -0
  282. package/preset/helpers/index.ts +2 -0
  283. package/preset/helpers/preset-prompt-placeholder.helper.ts +9 -0
  284. package/preset/helpers/preset-tag.helper.ts +9 -0
  285. package/preset/index.ts +4 -0
  286. package/preset/models/index.ts +8 -0
  287. package/preset/models/preset-common.schema.ts +45 -0
  288. package/preset/models/preset-field-value.schema.ts +51 -0
  289. package/preset/models/preset-field.schema.ts +251 -0
  290. package/preset/models/preset-input.schema.ts +129 -0
  291. package/preset/models/preset-media.schema.ts +94 -0
  292. package/preset/models/preset-result.schema.ts +21 -0
  293. package/preset/models/preset-tag.schema.ts +13 -0
  294. package/preset/models/public-preset.schema.ts +68 -0
@@ -27,6 +27,8 @@ export declare const ADMIN_ROUTES: {
27
27
  readonly GET_BLACKLIST_ENTRIES: "blacklist";
28
28
  readonly CREATE_BLACKLIST_ENTRY: "blacklist";
29
29
  readonly DELETE_BLACKLIST_ENTRY: (entryId: string) => string;
30
+ readonly GET_ANTIFRAUD_CHECKS: "antifraud-checks";
31
+ readonly BAN_ANTIFRAUD_CHECK_VALUE: (checkId: string) => string;
30
32
  readonly GET_SUPPORT_CHATS: "support/chats";
31
33
  readonly GET_SUPPORT_CHAT_MESSAGES: (userId: string) => string;
32
34
  readonly SEND_SUPPORT_REPLY: (userId: string) => string;
@@ -53,6 +55,18 @@ export declare const ADMIN_ROUTES: {
53
55
  readonly CREATE_TREND_CATEGORY: "trend-categories";
54
56
  readonly UPDATE_TREND_CATEGORY: (categoryId: string) => string;
55
57
  readonly DELETE_TREND_CATEGORY: (categoryId: string) => string;
58
+ readonly GET_PRESETS: "presets";
59
+ readonly CREATE_PRESET: "presets";
60
+ readonly REORDER_PRESETS: "presets/reorder";
61
+ readonly GET_PRESET: (presetId: string) => string;
62
+ readonly UPDATE_PRESET: (presetId: string) => string;
63
+ readonly DELETE_PRESET: (presetId: string) => string;
64
+ readonly UPDATE_PRESET_STATUS: (presetId: string) => string;
65
+ readonly GET_PRESET_CATEGORIES: "preset-categories";
66
+ readonly CREATE_PRESET_CATEGORY: "preset-categories";
67
+ readonly REORDER_PRESET_CATEGORIES: "preset-categories/reorder";
68
+ readonly UPDATE_PRESET_CATEGORY: (categoryId: string) => string;
69
+ readonly DELETE_PRESET_CATEGORY: (categoryId: string) => string;
56
70
  readonly GET_ORGANIZATION: "organization";
57
71
  readonly UPDATE_ORGANIZATION: "organization";
58
72
  };
@@ -1 +1 @@
1
- {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;gCAgB/B,MAAM;6CACO,MAAM;gCACnB,MAAM;;kCAEJ,MAAM;;;;+CAQO,MAAM;;iDAIJ,MAAM;0CACb,MAAM;8CACF,MAAM;;;gCAKpB,MAAM;mCACH,MAAM;mCACN,MAAM;0CACC,MAAM;;;6CAKH,MAAM;6CACN,MAAM;;;;;kCAOjB,MAAM;qCACH,MAAM;qCACN,MAAM;4CACC,MAAM;;;iDAKD,MAAM;iDACN,MAAM;;;CAKpC,CAAC"}
1
+ {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;gCAgB/B,MAAM;6CACO,MAAM;gCACnB,MAAM;;kCAEJ,MAAM;;;;+CAQO,MAAM;;kDAIH,MAAM;;iDAIP,MAAM;0CACb,MAAM;8CACF,MAAM;;;gCAKpB,MAAM;mCACH,MAAM;mCACN,MAAM;0CACC,MAAM;;;6CAKH,MAAM;6CACN,MAAM;;;;;kCAOjB,MAAM;qCACH,MAAM;qCACN,MAAM;4CACC,MAAM;;;iDAKD,MAAM;iDACN,MAAM;;;;oCAMnB,MAAM;uCACH,MAAM;uCACN,MAAM;8CACC,MAAM;;;;kDAMF,MAAM;kDACN,MAAM;;;CAKrC,CAAC"}
@@ -37,6 +37,9 @@ exports.ADMIN_ROUTES = {
37
37
  GET_BLACKLIST_ENTRIES: 'blacklist',
38
38
  CREATE_BLACKLIST_ENTRY: 'blacklist',
39
39
  DELETE_BLACKLIST_ENTRY: (entryId) => `blacklist/${entryId}`,
40
+ // ANTIFRAUD
41
+ GET_ANTIFRAUD_CHECKS: 'antifraud-checks',
42
+ BAN_ANTIFRAUD_CHECK_VALUE: (checkId) => `antifraud-checks/${checkId}/ban`,
40
43
  // SUPPORT
41
44
  GET_SUPPORT_CHATS: 'support/chats',
42
45
  GET_SUPPORT_CHAT_MESSAGES: (userId) => `support/chats/${userId}/messages`,
@@ -68,6 +71,20 @@ exports.ADMIN_ROUTES = {
68
71
  CREATE_TREND_CATEGORY: 'trend-categories',
69
72
  UPDATE_TREND_CATEGORY: (categoryId) => `trend-categories/${categoryId}`,
70
73
  DELETE_TREND_CATEGORY: (categoryId) => `trend-categories/${categoryId}`,
74
+ // PRESETS
75
+ GET_PRESETS: 'presets',
76
+ CREATE_PRESET: 'presets',
77
+ REORDER_PRESETS: 'presets/reorder',
78
+ GET_PRESET: (presetId) => `presets/${presetId}`,
79
+ UPDATE_PRESET: (presetId) => `presets/${presetId}`,
80
+ DELETE_PRESET: (presetId) => `presets/${presetId}`,
81
+ UPDATE_PRESET_STATUS: (presetId) => `presets/${presetId}/status`,
82
+ // PRESET CATEGORIES
83
+ GET_PRESET_CATEGORIES: 'preset-categories',
84
+ CREATE_PRESET_CATEGORY: 'preset-categories',
85
+ REORDER_PRESET_CATEGORIES: 'preset-categories/reorder',
86
+ UPDATE_PRESET_CATEGORY: (categoryId) => `preset-categories/${categoryId}`,
87
+ DELETE_PRESET_CATEGORY: (categoryId) => `preset-categories/${categoryId}`,
71
88
  // ORGANIZATION
72
89
  GET_ORGANIZATION: 'organization',
73
90
  UPDATE_ORGANIZATION: 'organization',
@@ -0,0 +1,71 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const BanAdminAntifraudCheckValueCommandParams: z.ZodObject<{
4
+ checkId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const BanAdminAntifraudCheckValueCommandBody: z.ZodObject<{
7
+ reason: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export declare const BanAdminAntifraudCheckValueCommandResponse: z.ZodObject<{
10
+ uuid: z.ZodUUID;
11
+ user: z.ZodObject<{
12
+ uuid: z.ZodUUID;
13
+ email: z.ZodString;
14
+ }, z.core.$strip>;
15
+ matchedUser: z.ZodObject<{
16
+ uuid: z.ZodUUID;
17
+ email: z.ZodString;
18
+ }, z.core.$strip>;
19
+ reason: z.ZodEnum<typeof import("../..").ADMIN_ANTIFRAUD_CHECK_REASON>;
20
+ value: z.ZodString;
21
+ ban: z.ZodNullable<z.ZodObject<{
22
+ entryId: z.ZodUUID;
23
+ reason: z.ZodNullable<z.ZodString>;
24
+ createdAt: z.ZodISODateTime;
25
+ }, z.core.$strip>>;
26
+ createdAt: z.ZodISODateTime;
27
+ }, z.core.$strip>;
28
+ export declare const BanAdminAntifraudCheckValueCommand: {
29
+ method: HTTP_METHODS.POST;
30
+ path: string;
31
+ summary: string;
32
+ request: {
33
+ params: z.ZodObject<{
34
+ checkId: z.ZodUUID;
35
+ }, z.core.$strip>;
36
+ body: z.ZodObject<{
37
+ reason: z.ZodString;
38
+ }, z.core.$strip>;
39
+ };
40
+ responses: {
41
+ 200: z.ZodObject<{
42
+ uuid: z.ZodUUID;
43
+ user: z.ZodObject<{
44
+ uuid: z.ZodUUID;
45
+ email: z.ZodString;
46
+ }, z.core.$strip>;
47
+ matchedUser: z.ZodObject<{
48
+ uuid: z.ZodUUID;
49
+ email: z.ZodString;
50
+ }, z.core.$strip>;
51
+ reason: z.ZodEnum<typeof import("../..").ADMIN_ANTIFRAUD_CHECK_REASON>;
52
+ value: z.ZodString;
53
+ ban: z.ZodNullable<z.ZodObject<{
54
+ entryId: z.ZodUUID;
55
+ reason: z.ZodNullable<z.ZodString>;
56
+ createdAt: z.ZodISODateTime;
57
+ }, z.core.$strip>>;
58
+ createdAt: z.ZodISODateTime;
59
+ }, z.core.$strip>;
60
+ 400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
61
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
62
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
63
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
64
+ 409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
65
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
66
+ };
67
+ };
68
+ export type BanAdminAntifraudCheckValueCommandParamsType = z.infer<typeof BanAdminAntifraudCheckValueCommandParams>;
69
+ export type BanAdminAntifraudCheckValueCommandBodyType = z.infer<typeof BanAdminAntifraudCheckValueCommandBody>;
70
+ export type BanAdminAntifraudCheckValueCommandResponseType = z.infer<typeof BanAdminAntifraudCheckValueCommandResponse>;
71
+ //# sourceMappingURL=ban-admin-antifraud-check-value.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ban-admin-antifraud-check-value.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/ban-admin-antifraud-check-value.command.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,sCAAsC;;iBAEjD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;iBAAoC,CAAC;AAE5F,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AACpH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAChH,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BanAdminAntifraudCheckValueCommand = exports.BanAdminAntifraudCheckValueCommandResponse = exports.BanAdminAntifraudCheckValueCommandBody = exports.BanAdminAntifraudCheckValueCommandParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.BanAdminAntifraudCheckValueCommandParams = zod_1.z.object({
9
+ checkId: zod_1.z.uuid(),
10
+ });
11
+ exports.BanAdminAntifraudCheckValueCommandBody = zod_1.z.object({
12
+ reason: zod_1.z.string().trim().min(1).max(500),
13
+ });
14
+ exports.BanAdminAntifraudCheckValueCommandResponse = models_1.AdminAntifraudCheckResponseSchema;
15
+ exports.BanAdminAntifraudCheckValueCommand = (0, _common_1.defineContract)({
16
+ method: _common_1.HTTP_METHODS.POST,
17
+ path: admin_1.ADMIN_ROUTES.BAN_ANTIFRAUD_CHECK_VALUE(':checkId'),
18
+ summary: 'Blacklist the IP or fingerprint an antifraud check matched on',
19
+ request: {
20
+ params: exports.BanAdminAntifraudCheckValueCommandParams,
21
+ body: exports.BanAdminAntifraudCheckValueCommandBody,
22
+ },
23
+ responses: {
24
+ 200: exports.BanAdminAntifraudCheckValueCommandResponse,
25
+ 400: _common_1.HttpErrorResponseSchema,
26
+ 401: _common_1.HttpErrorResponseSchema,
27
+ 403: _common_1.HttpErrorResponseSchema,
28
+ 404: _common_1.HttpErrorResponseSchema,
29
+ 409: _common_1.HttpErrorResponseSchema,
30
+ 500: _common_1.HttpErrorResponseSchema,
31
+ },
32
+ });
@@ -0,0 +1,51 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const CreateAdminPresetCategoryCommandBody: z.ZodObject<{
4
+ slug: z.ZodString;
5
+ name: z.ZodString;
6
+ icon: z.ZodString;
7
+ isActive: z.ZodDefault<z.ZodBoolean>;
8
+ }, z.core.$strip>;
9
+ export declare const CreateAdminPresetCategoryCommandResponse: z.ZodObject<{
10
+ uuid: z.ZodUUID;
11
+ slug: z.ZodString;
12
+ name: z.ZodString;
13
+ icon: z.ZodString;
14
+ order: z.ZodInt;
15
+ isActive: z.ZodBoolean;
16
+ createdAt: z.ZodISODateTime;
17
+ updatedAt: z.ZodISODateTime;
18
+ }, z.core.$strip>;
19
+ export declare const CreateAdminPresetCategoryCommand: {
20
+ method: HTTP_METHODS.POST;
21
+ path: "preset-categories";
22
+ summary: string;
23
+ request: {
24
+ body: z.ZodObject<{
25
+ slug: z.ZodString;
26
+ name: z.ZodString;
27
+ icon: z.ZodString;
28
+ isActive: z.ZodDefault<z.ZodBoolean>;
29
+ }, z.core.$strip>;
30
+ };
31
+ responses: {
32
+ 201: z.ZodObject<{
33
+ uuid: z.ZodUUID;
34
+ slug: z.ZodString;
35
+ name: z.ZodString;
36
+ icon: z.ZodString;
37
+ order: z.ZodInt;
38
+ isActive: z.ZodBoolean;
39
+ createdAt: z.ZodISODateTime;
40
+ updatedAt: z.ZodISODateTime;
41
+ }, z.core.$strip>;
42
+ 400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
43
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
44
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
45
+ 409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
46
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
47
+ };
48
+ };
49
+ export type CreateAdminPresetCategoryCommandBodyType = z.infer<typeof CreateAdminPresetCategoryCommandBody>;
50
+ export type CreateAdminPresetCategoryCommandResponseType = z.infer<typeof CreateAdminPresetCategoryCommandResponse>;
51
+ //# sourceMappingURL=create-admin-preset-category.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-admin-preset-category.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/create-admin-preset-category.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,oCAAoC;;;;;iBAA4B,CAAC;AAE9E,eAAO,MAAM,wCAAwC;;;;;;;;;iBAAoC,CAAC;AAE1F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe3C,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC5G,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAdminPresetCategoryCommand = exports.CreateAdminPresetCategoryCommandResponse = exports.CreateAdminPresetCategoryCommandBody = void 0;
4
+ const _common_1 = require("../../../_common");
5
+ const preset_1 = require("../../../preset");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.CreateAdminPresetCategoryCommandBody = preset_1.PresetCategoryInputSchema;
9
+ exports.CreateAdminPresetCategoryCommandResponse = models_1.AdminPresetCategoryResponseSchema;
10
+ exports.CreateAdminPresetCategoryCommand = (0, _common_1.defineContract)({
11
+ method: _common_1.HTTP_METHODS.POST,
12
+ path: admin_1.ADMIN_ROUTES.CREATE_PRESET_CATEGORY,
13
+ summary: 'Create preset category',
14
+ request: {
15
+ body: exports.CreateAdminPresetCategoryCommandBody,
16
+ },
17
+ responses: {
18
+ 201: exports.CreateAdminPresetCategoryCommandResponse,
19
+ 400: _common_1.HttpErrorResponseSchema,
20
+ 401: _common_1.HttpErrorResponseSchema,
21
+ 403: _common_1.HttpErrorResponseSchema,
22
+ 409: _common_1.HttpErrorResponseSchema,
23
+ 500: _common_1.HttpErrorResponseSchema,
24
+ },
25
+ });