@cravery/core 0.0.24 → 0.0.26

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/dist/index.d.ts +0 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +0 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/ai/embedding.d.ts +2 -1
  6. package/dist/lib/ai/embedding.d.ts.map +1 -1
  7. package/dist/lib/ai/embedding.js +4 -17
  8. package/dist/lib/ai/embedding.js.map +1 -1
  9. package/dist/lib/ai/genkit.d.ts +1 -0
  10. package/dist/lib/ai/genkit.d.ts.map +1 -1
  11. package/dist/lib/ai/genkit.js +14 -1
  12. package/dist/lib/ai/genkit.js.map +1 -1
  13. package/dist/types/ai/recipe.d.ts +1 -244
  14. package/dist/types/ai/recipe.d.ts.map +1 -1
  15. package/dist/types/ai/recipe.js +0 -28
  16. package/dist/types/ai/recipe.js.map +1 -1
  17. package/dist/types/ai/translation.d.ts +1 -107
  18. package/dist/types/ai/translation.d.ts.map +1 -1
  19. package/dist/types/ai/translation.js +0 -11
  20. package/dist/types/ai/translation.js.map +1 -1
  21. package/dist/types/core/api.d.ts +4 -4
  22. package/dist/types/core/api.d.ts.map +1 -1
  23. package/dist/types/core/asset.d.ts +2 -22
  24. package/dist/types/core/asset.d.ts.map +1 -1
  25. package/dist/types/core/asset.js +0 -9
  26. package/dist/types/core/asset.js.map +1 -1
  27. package/dist/types/core/entity.d.ts +7 -0
  28. package/dist/types/core/entity.d.ts.map +1 -0
  29. package/dist/types/core/entity.js +3 -0
  30. package/dist/types/core/entity.js.map +1 -0
  31. package/dist/types/core/index.d.ts +5 -1
  32. package/dist/types/core/index.d.ts.map +1 -1
  33. package/dist/types/core/index.js +5 -1
  34. package/dist/types/core/index.js.map +1 -1
  35. package/dist/types/core/locale.d.ts +3 -0
  36. package/dist/types/core/locale.d.ts.map +1 -0
  37. package/dist/types/core/locale.js +5 -0
  38. package/dist/types/core/locale.js.map +1 -0
  39. package/dist/types/core/measurement_system.d.ts +3 -0
  40. package/dist/types/core/measurement_system.d.ts.map +1 -0
  41. package/dist/types/core/measurement_system.js +5 -0
  42. package/dist/types/core/measurement_system.js.map +1 -0
  43. package/dist/types/core/settings.d.ts +5 -88
  44. package/dist/types/core/settings.d.ts.map +1 -1
  45. package/dist/types/core/settings.js +0 -25
  46. package/dist/types/core/settings.js.map +1 -1
  47. package/dist/types/core/theme.d.ts +3 -0
  48. package/dist/types/core/theme.d.ts.map +1 -0
  49. package/dist/types/core/theme.js +5 -0
  50. package/dist/types/core/theme.js.map +1 -0
  51. package/dist/types/core/timestamp.d.ts +5 -0
  52. package/dist/types/core/timestamp.d.ts.map +1 -0
  53. package/dist/types/core/timestamp.js +3 -0
  54. package/dist/types/core/timestamp.js.map +1 -0
  55. package/dist/types/iam/index.d.ts +6 -1
  56. package/dist/types/iam/index.d.ts.map +1 -1
  57. package/dist/types/iam/index.js +6 -1
  58. package/dist/types/iam/index.js.map +1 -1
  59. package/dist/types/iam/profile.d.ts +2 -56
  60. package/dist/types/iam/profile.d.ts.map +1 -1
  61. package/dist/types/iam/profile.js +0 -22
  62. package/dist/types/iam/profile.js.map +1 -1
  63. package/dist/types/iam/profile_status.d.ts +3 -0
  64. package/dist/types/iam/profile_status.d.ts.map +1 -0
  65. package/dist/types/iam/profile_status.js +10 -0
  66. package/dist/types/iam/profile_status.js.map +1 -0
  67. package/dist/types/iam/subscription.d.ts +4 -80
  68. package/dist/types/iam/subscription.d.ts.map +1 -1
  69. package/dist/types/iam/subscription.js +0 -19
  70. package/dist/types/iam/subscription.js.map +1 -1
  71. package/dist/types/iam/subscription_role.d.ts +3 -0
  72. package/dist/types/iam/subscription_role.d.ts.map +1 -0
  73. package/dist/types/iam/subscription_role.js +5 -0
  74. package/dist/types/iam/subscription_role.js.map +1 -0
  75. package/dist/types/iam/subscription_status.d.ts +3 -0
  76. package/dist/types/iam/subscription_status.d.ts.map +1 -0
  77. package/dist/types/iam/subscription_status.js +10 -0
  78. package/dist/types/iam/subscription_status.js.map +1 -0
  79. package/dist/types/iam/subscription_tier.d.ts +3 -0
  80. package/dist/types/iam/subscription_tier.d.ts.map +1 -0
  81. package/dist/types/iam/subscription_tier.js +5 -0
  82. package/dist/types/iam/subscription_tier.js.map +1 -0
  83. package/dist/types/iam/user.d.ts +3 -42
  84. package/dist/types/iam/user.d.ts.map +1 -1
  85. package/dist/types/iam/user.js +0 -16
  86. package/dist/types/iam/user.js.map +1 -1
  87. package/dist/types/iam/user_role.d.ts +5 -0
  88. package/dist/types/iam/user_role.d.ts.map +1 -0
  89. package/dist/types/iam/user_role.js +16 -0
  90. package/dist/types/iam/user_role.js.map +1 -0
  91. package/dist/types/iam/user_status.d.ts +3 -0
  92. package/dist/types/iam/user_status.d.ts.map +1 -0
  93. package/dist/types/iam/user_status.js +10 -0
  94. package/dist/types/iam/user_status.js.map +1 -0
  95. package/dist/types/moderation/index.d.ts +4 -1
  96. package/dist/types/moderation/index.d.ts.map +1 -1
  97. package/dist/types/moderation/index.js +4 -1
  98. package/dist/types/moderation/index.js.map +1 -1
  99. package/dist/types/moderation/moderation.d.ts +5 -137
  100. package/dist/types/moderation/moderation.d.ts.map +1 -1
  101. package/dist/types/moderation/moderation.js +0 -37
  102. package/dist/types/moderation/moderation.js.map +1 -1
  103. package/dist/types/moderation/moderation_status.d.ts +3 -0
  104. package/dist/types/moderation/moderation_status.d.ts.map +1 -0
  105. package/dist/types/moderation/moderation_status.js +9 -0
  106. package/dist/types/moderation/moderation_status.js.map +1 -0
  107. package/dist/types/moderation/priority.d.ts +3 -0
  108. package/dist/types/moderation/priority.d.ts.map +1 -0
  109. package/dist/types/moderation/priority.js +5 -0
  110. package/dist/types/moderation/priority.js.map +1 -0
  111. package/dist/types/moderation/severity.d.ts +3 -0
  112. package/dist/types/moderation/severity.d.ts.map +1 -0
  113. package/dist/types/moderation/severity.js +5 -0
  114. package/dist/types/moderation/severity.js.map +1 -0
  115. package/dist/types/moderation/suggestion_category.d.ts +3 -0
  116. package/dist/types/moderation/suggestion_category.d.ts.map +1 -0
  117. package/dist/types/moderation/suggestion_category.js +11 -0
  118. package/dist/types/moderation/suggestion_category.js.map +1 -0
  119. package/dist/types/recipe/allergen.d.ts +3 -0
  120. package/dist/types/recipe/allergen.d.ts.map +1 -0
  121. package/dist/types/recipe/allergen.js +19 -0
  122. package/dist/types/recipe/allergen.js.map +1 -0
  123. package/dist/types/recipe/cuisine.d.ts +3 -0
  124. package/dist/types/recipe/cuisine.d.ts.map +1 -0
  125. package/dist/types/recipe/cuisine.js +39 -0
  126. package/dist/types/recipe/cuisine.js.map +1 -0
  127. package/dist/types/recipe/dietary_tag.d.ts +3 -0
  128. package/dist/types/recipe/dietary_tag.d.ts.map +1 -0
  129. package/dist/types/recipe/dietary_tag.js +21 -0
  130. package/dist/types/recipe/dietary_tag.js.map +1 -0
  131. package/dist/types/recipe/difficulty.d.ts +3 -0
  132. package/dist/types/recipe/difficulty.d.ts.map +1 -0
  133. package/dist/types/recipe/difficulty.js +10 -0
  134. package/dist/types/recipe/difficulty.js.map +1 -0
  135. package/dist/types/recipe/equipment.d.ts +0 -40
  136. package/dist/types/recipe/equipment.d.ts.map +1 -1
  137. package/dist/types/recipe/equipment.js +0 -12
  138. package/dist/types/recipe/equipment.js.map +1 -1
  139. package/dist/types/recipe/filters.d.ts +5 -30
  140. package/dist/types/recipe/filters.d.ts.map +1 -1
  141. package/dist/types/recipe/filters.js +0 -13
  142. package/dist/types/recipe/filters.js.map +1 -1
  143. package/dist/types/recipe/index.d.ts +10 -1
  144. package/dist/types/recipe/index.d.ts.map +1 -1
  145. package/dist/types/recipe/index.js +10 -1
  146. package/dist/types/recipe/index.js.map +1 -1
  147. package/dist/types/recipe/ingredient.d.ts +1 -169
  148. package/dist/types/recipe/ingredient.d.ts.map +1 -1
  149. package/dist/types/recipe/ingredient.js +0 -29
  150. package/dist/types/recipe/ingredient.js.map +1 -1
  151. package/dist/types/recipe/instruction.d.ts +2 -72
  152. package/dist/types/recipe/instruction.d.ts.map +1 -1
  153. package/dist/types/recipe/instruction.js +0 -13
  154. package/dist/types/recipe/instruction.js.map +1 -1
  155. package/dist/types/recipe/meal_type.d.ts +3 -0
  156. package/dist/types/recipe/meal_type.d.ts.map +1 -0
  157. package/dist/types/recipe/meal_type.js +14 -0
  158. package/dist/types/recipe/meal_type.js.map +1 -0
  159. package/dist/types/recipe/nutrition.d.ts +0 -36
  160. package/dist/types/recipe/nutrition.d.ts.map +1 -1
  161. package/dist/types/recipe/nutrition.js +0 -13
  162. package/dist/types/recipe/nutrition.js.map +1 -1
  163. package/dist/types/recipe/recipe.d.ts +14 -525
  164. package/dist/types/recipe/recipe.d.ts.map +1 -1
  165. package/dist/types/recipe/recipe.js +0 -80
  166. package/dist/types/recipe/recipe.js.map +1 -1
  167. package/dist/types/recipe/recipe_source.d.ts +3 -0
  168. package/dist/types/recipe/recipe_source.d.ts.map +1 -0
  169. package/dist/types/recipe/recipe_source.js +5 -0
  170. package/dist/types/recipe/recipe_source.js.map +1 -0
  171. package/dist/types/recipe/recipe_status.d.ts +3 -0
  172. package/dist/types/recipe/recipe_status.d.ts.map +1 -0
  173. package/dist/types/recipe/recipe_status.js +12 -0
  174. package/dist/types/recipe/recipe_status.js.map +1 -0
  175. package/dist/types/recipe/spiciness.d.ts +3 -0
  176. package/dist/types/recipe/spiciness.d.ts.map +1 -0
  177. package/dist/types/recipe/spiciness.js +5 -0
  178. package/dist/types/recipe/spiciness.js.map +1 -0
  179. package/dist/types/recipe/temperature.d.ts +1 -12
  180. package/dist/types/recipe/temperature.d.ts.map +1 -1
  181. package/dist/types/recipe/temperature.js +0 -7
  182. package/dist/types/recipe/temperature.js.map +1 -1
  183. package/dist/types/recipe/temperature_unit.d.ts +3 -0
  184. package/dist/types/recipe/temperature_unit.d.ts.map +1 -0
  185. package/dist/types/recipe/temperature_unit.js +5 -0
  186. package/dist/types/recipe/temperature_unit.js.map +1 -0
  187. package/dist/types/recipe/unit.d.ts +3 -0
  188. package/dist/types/recipe/unit.d.ts.map +1 -0
  189. package/dist/types/recipe/unit.js +51 -0
  190. package/dist/types/recipe/unit.js.map +1 -0
  191. package/dist/types/report/index.d.ts +4 -1
  192. package/dist/types/report/index.d.ts.map +1 -1
  193. package/dist/types/report/index.js +4 -1
  194. package/dist/types/report/index.js.map +1 -1
  195. package/dist/types/report/report.d.ts +5 -94
  196. package/dist/types/report/report.d.ts.map +1 -1
  197. package/dist/types/report/report.js +0 -29
  198. package/dist/types/report/report.js.map +1 -1
  199. package/dist/types/report/report_priority.d.ts +3 -0
  200. package/dist/types/report/report_priority.d.ts.map +1 -0
  201. package/dist/types/report/report_priority.js +10 -0
  202. package/dist/types/report/report_priority.js.map +1 -0
  203. package/dist/types/report/report_status.d.ts +3 -0
  204. package/dist/types/report/report_status.d.ts.map +1 -0
  205. package/dist/types/report/report_status.js +10 -0
  206. package/dist/types/report/report_status.js.map +1 -0
  207. package/dist/types/report/report_target_type.d.ts +3 -0
  208. package/dist/types/report/report_target_type.d.ts.map +1 -0
  209. package/dist/types/report/report_target_type.js +10 -0
  210. package/dist/types/report/report_target_type.js.map +1 -0
  211. package/dist/types/report/report_type.d.ts +3 -0
  212. package/dist/types/report/report_type.d.ts.map +1 -0
  213. package/dist/types/report/report_type.js +12 -0
  214. package/dist/types/report/report_type.js.map +1 -0
  215. package/package.json +3 -14
  216. package/src/index.ts +0 -1
  217. package/src/types/ai/recipe.ts +10 -47
  218. package/src/types/ai/translation.ts +1 -18
  219. package/src/types/core/api.ts +4 -4
  220. package/src/types/core/asset.ts +2 -14
  221. package/src/types/core/entity.ts +7 -0
  222. package/src/types/core/index.ts +5 -1
  223. package/src/types/core/{enums/locale.ts → locale.ts} +0 -3
  224. package/src/types/core/{enums/measurement_system.ts → measurement_system.ts} +0 -3
  225. package/src/types/core/settings.ts +9 -43
  226. package/src/types/core/{enums/theme.ts → theme.ts} +0 -3
  227. package/src/types/core/timestamp.ts +4 -0
  228. package/src/types/iam/index.ts +6 -1
  229. package/src/types/iam/profile.ts +2 -24
  230. package/src/types/iam/{enums/profile_status.ts → profile_status.ts} +0 -3
  231. package/src/types/iam/subscription.ts +4 -28
  232. package/src/types/iam/{enums/subscription_role.ts → subscription_role.ts} +0 -3
  233. package/src/types/iam/{enums/subscription_status.ts → subscription_status.ts} +0 -3
  234. package/src/types/iam/subscription_tier.ts +2 -0
  235. package/src/types/iam/user.ts +3 -22
  236. package/src/types/iam/user_role.ts +15 -0
  237. package/src/types/iam/{enums/user_status.ts → user_status.ts} +0 -3
  238. package/src/types/moderation/index.ts +4 -1
  239. package/src/types/moderation/moderation.ts +5 -50
  240. package/src/types/moderation/{enums/moderation_status.ts → moderation_status.ts} +0 -3
  241. package/src/types/moderation/{enums/priority.ts → priority.ts} +0 -3
  242. package/src/types/moderation/{enums/severity.ts → severity.ts} +0 -3
  243. package/src/types/moderation/suggestion_category.ts +8 -0
  244. package/src/types/recipe/{enums/allergen.ts → allergen.ts} +0 -3
  245. package/src/types/recipe/{enums/cuisine.ts → cuisine.ts} +0 -3
  246. package/src/types/recipe/{enums/dietary_tag.ts → dietary_tag.ts} +0 -3
  247. package/src/types/recipe/{enums/difficulty.ts → difficulty.ts} +0 -3
  248. package/src/types/recipe/equipment.ts +0 -18
  249. package/src/types/recipe/filters.ts +5 -24
  250. package/src/types/recipe/index.ts +10 -1
  251. package/src/types/recipe/ingredient.ts +1 -37
  252. package/src/types/recipe/instruction.ts +2 -19
  253. package/src/types/recipe/{enums/meal_type.ts → meal_type.ts} +0 -3
  254. package/src/types/recipe/nutrition.ts +0 -18
  255. package/src/types/recipe/recipe.ts +18 -118
  256. package/src/types/recipe/{enums/recipe_source.ts → recipe_source.ts} +0 -3
  257. package/src/types/recipe/{enums/recipe_status.ts → recipe_status.ts} +0 -3
  258. package/src/types/recipe/{enums/spiciness.ts → spiciness.ts} +0 -3
  259. package/src/types/recipe/temperature.ts +1 -7
  260. package/src/types/recipe/{enums/temperature_unit.ts → temperature_unit.ts} +0 -3
  261. package/src/types/recipe/{enums/unit.ts → unit.ts} +0 -3
  262. package/src/types/report/index.ts +4 -1
  263. package/src/types/report/report.ts +5 -40
  264. package/src/types/report/{enums/report_priority.ts → report_priority.ts} +0 -3
  265. package/src/types/report/{enums/report_status.ts → report_status.ts} +0 -3
  266. package/src/types/report/{enums/report_target_type.ts → report_target_type.ts} +0 -3
  267. package/src/types/report/{enums/report_type.ts → report_type.ts} +0 -3
  268. package/src/lib/ai/cost.ts +0 -82
  269. package/src/lib/ai/embedding.ts +0 -64
  270. package/src/lib/ai/errors.ts +0 -43
  271. package/src/lib/ai/flow.ts +0 -134
  272. package/src/lib/ai/genkit.ts +0 -24
  273. package/src/lib/ai/image.ts +0 -27
  274. package/src/lib/ai/index.ts +0 -6
  275. package/src/lib/api.ts +0 -103
  276. package/src/lib/firebase.ts +0 -5
  277. package/src/lib/iam.ts +0 -37
  278. package/src/lib/index.ts +0 -7
  279. package/src/lib/storage.ts +0 -60
  280. package/src/lib/usage/index.ts +0 -1
  281. package/src/lib/usage/usage.service.ts +0 -192
  282. package/src/lib/utils/index.ts +0 -2
  283. package/src/lib/utils/sanitize.ts +0 -38
  284. package/src/lib/utils/slug.ts +0 -33
  285. package/src/types/core/enums/image_type.ts +0 -5
  286. package/src/types/core/enums/index.ts +0 -5
  287. package/src/types/core/enums/url_type.ts +0 -13
  288. package/src/types/iam/enums/index.ts +0 -6
  289. package/src/types/iam/enums/subscription_tier.ts +0 -4
  290. package/src/types/iam/enums/user_role.ts +0 -11
  291. package/src/types/moderation/enums/index.ts +0 -4
  292. package/src/types/moderation/enums/suggestion_category.ts +0 -11
  293. package/src/types/recipe/enums/index.ts +0 -10
  294. package/src/types/report/enums/index.ts +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAE3B,mCAOiB;AACjB,yCAAuD;AAU1C,QAAA,YAAY,GAAG,UAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,UAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,8BAAsB;IAC5B,MAAM,EAAE,gCAAwB;IAChC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;IAChC,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAWU,QAAA,kBAAkB,GAAG,UAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;IAChC,EAAE,EAAE,UAAC,CAAC,MAAM,EAAE;IACd,OAAO,EAAE,UAAC,CAAC,KAAK,CAAC,oBAAY,CAAC,CAAC,GAAG,CAAC,gCAAuB,CAAC,CAAC,QAAQ,EAAE;IACtE,UAAU,EAAE,UAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,8BAAsB;IAC5B,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;CACjC,CAAC,CAAC"}
1
+ {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const SUBSCRIPTION_ROLE_VALUES: readonly ["member", "owner"];
2
+ export type SubscriptionRole = (typeof SUBSCRIPTION_ROLE_VALUES)[number];
3
+ //# sourceMappingURL=subscription_role.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription_role.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription_role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,8BAA+B,CAAC;AACrE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUBSCRIPTION_ROLE_VALUES = void 0;
4
+ exports.SUBSCRIPTION_ROLE_VALUES = ["member", "owner"];
5
+ //# sourceMappingURL=subscription_role.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription_role.js","sourceRoot":"","sources":["../../../src/types/iam/subscription_role.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const SUBSCRIPTION_STATUS_VALUES: readonly ["active", "deleted", "pending", "rejected"];
2
+ export type SubscriptionStatus = (typeof SUBSCRIPTION_STATUS_VALUES)[number];
3
+ //# sourceMappingURL=subscription_status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription_status.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,uDAK7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUBSCRIPTION_STATUS_VALUES = void 0;
4
+ exports.SUBSCRIPTION_STATUS_VALUES = [
5
+ "active",
6
+ "deleted",
7
+ "pending",
8
+ "rejected",
9
+ ];
10
+ //# sourceMappingURL=subscription_status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription_status.js","sourceRoot":"","sources":["../../../src/types/iam/subscription_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,QAAQ;IACR,SAAS;IACT,SAAS;IACT,UAAU;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const SUBSCRIPTION_TIER_VALUES: readonly ["family", "free", "pro"];
2
+ export type SubscriptionTier = (typeof SUBSCRIPTION_TIER_VALUES)[number];
3
+ //# sourceMappingURL=subscription_tier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription_tier.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription_tier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,oCAAqC,CAAC;AAC3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUBSCRIPTION_TIER_VALUES = void 0;
4
+ exports.SUBSCRIPTION_TIER_VALUES = ["family", "free", "pro"];
5
+ //# sourceMappingURL=subscription_tier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription_tier.js","sourceRoot":"","sources":["../../../src/types/iam/subscription_tier.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC"}
@@ -1,6 +1,6 @@
1
- import { z } from "genkit";
2
- import type { Timestamp } from "firebase-admin/firestore";
3
- import { type UserRole, type UserStatus } from "./enums";
1
+ import { Timestamp } from "../core";
2
+ import { UserRole } from "./user_role";
3
+ import { UserStatus } from "./user_status";
4
4
  export interface User {
5
5
  createdAt: Timestamp;
6
6
  deletedAt?: Timestamp;
@@ -14,43 +14,4 @@ export interface User {
14
14
  updatedAt: Timestamp;
15
15
  verified: boolean;
16
16
  }
17
- export declare const UserSchema: z.ZodObject<{
18
- createdAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
19
- deletedAt: z.ZodOptional<z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>>;
20
- email: z.ZodString;
21
- id: z.ZodString;
22
- imageUrl: z.ZodOptional<z.ZodString>;
23
- name: z.ZodString;
24
- role: z.ZodEnum<["admin", "moderator", "translator", "user", "guest"]>;
25
- status: z.ZodEnum<["active", "deleted", "pending", "suspended"]>;
26
- subscriptionId: z.ZodOptional<z.ZodString>;
27
- updatedAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
28
- verified: z.ZodBoolean;
29
- }, "strip", z.ZodTypeAny, {
30
- [x: string]: any;
31
- createdAt?: unknown;
32
- deletedAt?: unknown;
33
- email?: unknown;
34
- id?: unknown;
35
- imageUrl?: unknown;
36
- name?: unknown;
37
- role?: unknown;
38
- status?: unknown;
39
- subscriptionId?: unknown;
40
- updatedAt?: unknown;
41
- verified?: unknown;
42
- }, {
43
- [x: string]: any;
44
- createdAt?: unknown;
45
- deletedAt?: unknown;
46
- email?: unknown;
47
- id?: unknown;
48
- imageUrl?: unknown;
49
- name?: unknown;
50
- role?: unknown;
51
- status?: unknown;
52
- subscriptionId?: unknown;
53
- updatedAt?: unknown;
54
- verified?: unknown;
55
- }>;
56
17
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,IAAI;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYrB,CAAC"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,WAAW,IAAI;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -1,19 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserSchema = void 0;
4
- const genkit_1 = require("genkit");
5
- const enums_1 = require("./enums");
6
- exports.UserSchema = genkit_1.z.object({
7
- createdAt: genkit_1.z.custom(),
8
- deletedAt: genkit_1.z.custom().optional(),
9
- email: genkit_1.z.string().email(),
10
- id: genkit_1.z.string(),
11
- imageUrl: genkit_1.z.string().url().optional(),
12
- name: genkit_1.z.string().min(1).max(50),
13
- role: enums_1.UserRoleSchema,
14
- status: enums_1.UserStatusSchema,
15
- subscriptionId: genkit_1.z.string().optional(),
16
- updatedAt: genkit_1.z.custom(),
17
- verified: genkit_1.z.boolean(),
18
- });
19
3
  //# sourceMappingURL=user.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAE3B,mCAKiB;AAgBJ,QAAA,UAAU,GAAG,UAAC,CAAC,MAAM,CAAC;IACjC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;IAChC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,EAAE,EAAE,UAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC/B,IAAI,EAAE,sBAAc;IACpB,MAAM,EAAE,wBAAgB;IACxB,cAAc,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;IAChC,QAAQ,EAAE,UAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC"}
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare const USER_ROLE_VALUES: readonly ["admin", "moderator", "translator", "user", "guest"];
2
+ export type UserRole = (typeof USER_ROLE_VALUES)[number];
3
+ export declare const PRIVILEGED_USER_ROLES: UserRole[];
4
+ export type PrivilegedUserRole = (typeof PRIVILEGED_USER_ROLES)[number];
5
+ //# sourceMappingURL=user_role.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user_role.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,gEAMnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,qBAAqB,EAAE,QAAQ,EAI3C,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRIVILEGED_USER_ROLES = exports.USER_ROLE_VALUES = void 0;
4
+ exports.USER_ROLE_VALUES = [
5
+ "admin",
6
+ "moderator",
7
+ "translator",
8
+ "user",
9
+ "guest",
10
+ ];
11
+ exports.PRIVILEGED_USER_ROLES = [
12
+ "admin",
13
+ "moderator",
14
+ "translator",
15
+ ];
16
+ //# sourceMappingURL=user_role.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user_role.js","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,OAAO;IACP,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;CACC,CAAC;AAGE,QAAA,qBAAqB,GAAe;IAC/C,OAAO;IACP,WAAW;IACX,YAAY;CACb,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const USER_STATUS_VALUES: readonly ["active", "deleted", "pending", "suspended"];
2
+ export type UserStatus = (typeof USER_STATUS_VALUES)[number];
3
+ //# sourceMappingURL=user_status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user_status.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,wDAKrB,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.USER_STATUS_VALUES = void 0;
4
+ exports.USER_STATUS_VALUES = [
5
+ "active",
6
+ "deleted",
7
+ "pending",
8
+ "suspended",
9
+ ];
10
+ //# sourceMappingURL=user_status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user_status.js","sourceRoot":"","sources":["../../../src/types/iam/user_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,QAAQ;IACR,SAAS;IACT,SAAS;IACT,WAAW;CACH,CAAC"}
@@ -1,3 +1,6 @@
1
- export * from "./enums";
1
+ export * from "./moderation_status";
2
2
  export * from "./moderation";
3
+ export * from "./priority";
4
+ export * from "./severity";
5
+ export * from "./suggestion_category";
3
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC"}
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./enums"), exports);
17
+ __exportStar(require("./moderation_status"), exports);
18
18
  __exportStar(require("./moderation"), exports);
19
+ __exportStar(require("./priority"), exports);
20
+ __exportStar(require("./severity"), exports);
21
+ __exportStar(require("./suggestion_category"), exports);
19
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,6CAA2B;AAC3B,6CAA2B;AAC3B,wDAAsC"}
@@ -1,29 +1,14 @@
1
- import { z } from "genkit";
2
- import type { Timestamp } from "firebase-admin/firestore";
3
- import { type Locale } from "../core";
4
- import { type ModerationStatus, type Priority, type Severity, type SuggestionCategory } from "./enums";
1
+ import { Locale, Timestamp } from "../core";
2
+ import { ModerationStatus } from "./moderation_status";
3
+ import { Priority } from "./priority";
4
+ import { Severity } from "./severity";
5
+ import { SuggestionCategory } from "./suggestion_category";
5
6
  export interface ModerationSuggestion {
6
7
  category: SuggestionCategory;
7
8
  field: string;
8
9
  severity: Severity;
9
10
  suggestion: string;
10
11
  }
11
- export declare const ModerationSuggestionSchema: z.ZodObject<{
12
- category: z.ZodEnum<["missing_info", "unclear_instruction", "image_quality", "nutrition", "safety"]>;
13
- field: z.ZodString;
14
- severity: z.ZodEnum<["low", "medium", "high"]>;
15
- suggestion: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
18
- field: string;
19
- severity: "medium" | "low" | "high";
20
- suggestion: string;
21
- }, {
22
- category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
23
- field: string;
24
- severity: "medium" | "low" | "high";
25
- suggestion: string;
26
- }>;
27
12
  export interface Moderation {
28
13
  assessedAt?: Timestamp;
29
14
  createdAt: Timestamp;
@@ -39,84 +24,11 @@ export interface Moderation {
39
24
  suggestions?: ModerationSuggestion[];
40
25
  userId: string;
41
26
  }
42
- export declare const ModerationSchema: z.ZodObject<{
43
- assessedAt: z.ZodOptional<z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>>;
44
- createdAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
45
- id: z.ZodString;
46
- originalLocale: z.ZodEnum<["en", "ar", "es", "fr", "ru"]>;
47
- priority: z.ZodEnum<["low", "medium", "high"]>;
48
- qualityScore: z.ZodOptional<z.ZodNumber>;
49
- recipeId: z.ZodString;
50
- rejectionReason: z.ZodOptional<z.ZodString>;
51
- reviewedAt: z.ZodOptional<z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>>;
52
- reviewedBy: z.ZodOptional<z.ZodString>;
53
- status: z.ZodEnum<["approved", "pending", "rejected"]>;
54
- suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
55
- category: z.ZodEnum<["missing_info", "unclear_instruction", "image_quality", "nutrition", "safety"]>;
56
- field: z.ZodString;
57
- severity: z.ZodEnum<["low", "medium", "high"]>;
58
- suggestion: z.ZodString;
59
- }, "strip", z.ZodTypeAny, {
60
- category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
61
- field: string;
62
- severity: "medium" | "low" | "high";
63
- suggestion: string;
64
- }, {
65
- category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
66
- field: string;
67
- severity: "medium" | "low" | "high";
68
- suggestion: string;
69
- }>, "many">>;
70
- userId: z.ZodString;
71
- }, "strip", z.ZodTypeAny, {
72
- [x: string]: any;
73
- assessedAt?: unknown;
74
- createdAt?: unknown;
75
- id?: unknown;
76
- originalLocale?: unknown;
77
- priority?: unknown;
78
- qualityScore?: unknown;
79
- recipeId?: unknown;
80
- rejectionReason?: unknown;
81
- reviewedAt?: unknown;
82
- reviewedBy?: unknown;
83
- status?: unknown;
84
- suggestions?: unknown;
85
- userId?: unknown;
86
- }, {
87
- [x: string]: any;
88
- assessedAt?: unknown;
89
- createdAt?: unknown;
90
- id?: unknown;
91
- originalLocale?: unknown;
92
- priority?: unknown;
93
- qualityScore?: unknown;
94
- recipeId?: unknown;
95
- rejectionReason?: unknown;
96
- reviewedAt?: unknown;
97
- reviewedBy?: unknown;
98
- status?: unknown;
99
- suggestions?: unknown;
100
- userId?: unknown;
101
- }>;
102
27
  export interface ModerateRecipeInput {
103
28
  moderationId: string;
104
29
  recipeId: string;
105
30
  userId: string;
106
31
  }
107
- export declare const ModerateRecipeInputSchema: z.ZodObject<{
108
- moderationId: z.ZodString;
109
- recipeId: z.ZodString;
110
- userId: z.ZodString;
111
- }, "strip", z.ZodTypeAny, {
112
- userId: string;
113
- recipeId: string;
114
- moderationId: string;
115
- }, {
116
- userId: string;
117
- recipeId: string;
118
- moderationId: string;
119
- }>;
120
32
  export interface ModerateRecipeOutput {
121
33
  autoApproved: boolean;
122
34
  autoRejected: boolean;
@@ -124,48 +36,4 @@ export interface ModerateRecipeOutput {
124
36
  rejectionReason?: string;
125
37
  suggestions: ModerationSuggestion[];
126
38
  }
127
- export declare const ModerateRecipeOutputSchema: z.ZodObject<{
128
- autoApproved: z.ZodBoolean;
129
- autoRejected: z.ZodBoolean;
130
- qualityScore: z.ZodNumber;
131
- rejectionReason: z.ZodOptional<z.ZodString>;
132
- suggestions: z.ZodArray<z.ZodObject<{
133
- category: z.ZodEnum<["missing_info", "unclear_instruction", "image_quality", "nutrition", "safety"]>;
134
- field: z.ZodString;
135
- severity: z.ZodEnum<["low", "medium", "high"]>;
136
- suggestion: z.ZodString;
137
- }, "strip", z.ZodTypeAny, {
138
- category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
139
- field: string;
140
- severity: "medium" | "low" | "high";
141
- suggestion: string;
142
- }, {
143
- category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
144
- field: string;
145
- severity: "medium" | "low" | "high";
146
- suggestion: string;
147
- }>, "many">;
148
- }, "strip", z.ZodTypeAny, {
149
- qualityScore: number;
150
- suggestions: {
151
- category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
152
- field: string;
153
- severity: "medium" | "low" | "high";
154
- suggestion: string;
155
- }[];
156
- autoApproved: boolean;
157
- autoRejected: boolean;
158
- rejectionReason?: string | undefined;
159
- }, {
160
- qualityScore: number;
161
- suggestions: {
162
- category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
163
- field: string;
164
- severity: "medium" | "low" | "high";
165
- suggestion: string;
166
- }[];
167
- autoApproved: boolean;
168
- autoRejected: boolean;
169
- rejectionReason?: string | undefined;
170
- }>;
171
39
  //# sourceMappingURL=moderation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACxB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKK,CAAC;AAE7C,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc3B,CAAC;AAEH,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIK,CAAC;AAE5C,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrC;AAED,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMK,CAAC"}
1
+ {"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrC"}
@@ -1,40 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModerateRecipeOutputSchema = exports.ModerateRecipeInputSchema = exports.ModerationSchema = exports.ModerationSuggestionSchema = void 0;
4
- const genkit_1 = require("genkit");
5
- const core_1 = require("../core");
6
- const enums_1 = require("./enums");
7
- exports.ModerationSuggestionSchema = genkit_1.z.object({
8
- category: enums_1.SuggestionCategorySchema,
9
- field: genkit_1.z.string(),
10
- severity: enums_1.SeveritySchema,
11
- suggestion: genkit_1.z.string(),
12
- });
13
- exports.ModerationSchema = genkit_1.z.object({
14
- assessedAt: genkit_1.z.custom().optional(),
15
- createdAt: genkit_1.z.custom(),
16
- id: genkit_1.z.string(),
17
- originalLocale: core_1.LocaleSchema,
18
- priority: enums_1.PrioritySchema,
19
- qualityScore: genkit_1.z.number().min(0).max(1).optional(),
20
- recipeId: genkit_1.z.string(),
21
- rejectionReason: genkit_1.z.string().optional(),
22
- reviewedAt: genkit_1.z.custom().optional(),
23
- reviewedBy: genkit_1.z.string().optional(),
24
- status: enums_1.ModerationStatusSchema,
25
- suggestions: genkit_1.z.array(exports.ModerationSuggestionSchema).optional(),
26
- userId: genkit_1.z.string(),
27
- });
28
- exports.ModerateRecipeInputSchema = genkit_1.z.object({
29
- moderationId: genkit_1.z.string(),
30
- recipeId: genkit_1.z.string(),
31
- userId: genkit_1.z.string(),
32
- });
33
- exports.ModerateRecipeOutputSchema = genkit_1.z.object({
34
- autoApproved: genkit_1.z.boolean(),
35
- autoRejected: genkit_1.z.boolean(),
36
- qualityScore: genkit_1.z.number().min(0).max(1),
37
- rejectionReason: genkit_1.z.string().optional(),
38
- suggestions: genkit_1.z.array(exports.ModerationSuggestionSchema),
39
- });
40
3
  //# sourceMappingURL=moderation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAE3B,kCAAoD;AACpD,mCASiB;AASJ,QAAA,0BAA0B,GAAG,UAAC,CAAC,MAAM,CAAC;IACjD,QAAQ,EAAE,gCAAwB;IAClC,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,sBAAc;IACxB,UAAU,EAAE,UAAC,CAAC,MAAM,EAAE;CACvB,CAA2C,CAAC;AAkBhC,QAAA,gBAAgB,GAAG,UAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,UAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC5C,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;IAChC,EAAE,EAAE,UAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,mBAAY;IAC5B,QAAQ,EAAE,sBAAc;IACxB,YAAY,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE;IACpB,eAAe,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,UAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC5C,UAAU,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,8BAAsB;IAC9B,WAAW,EAAE,UAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,UAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAQU,QAAA,yBAAyB,GAAG,UAAC,CAAC,MAAM,CAAC;IAChD,YAAY,EAAE,UAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,UAAC,CAAC,MAAM,EAAE;CACnB,CAA0C,CAAC;AAU/B,QAAA,0BAA0B,GAAG,UAAC,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,UAAC,CAAC,OAAO,EAAE;IACzB,YAAY,EAAE,UAAC,CAAC,OAAO,EAAE;IACzB,YAAY,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,eAAe,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,WAAW,EAAE,UAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC;CACjD,CAA2C,CAAC"}
1
+ {"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const MODERATION_STATUS_VALUES: readonly ["approved", "pending", "rejected"];
2
+ export type ModerationStatus = (typeof MODERATION_STATUS_VALUES)[number];
3
+ //# sourceMappingURL=moderation_status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moderation_status.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,8CAI3B,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MODERATION_STATUS_VALUES = void 0;
4
+ exports.MODERATION_STATUS_VALUES = [
5
+ "approved",
6
+ "pending",
7
+ "rejected",
8
+ ];
9
+ //# sourceMappingURL=moderation_status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moderation_status.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,UAAU;IACV,SAAS;IACT,UAAU;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const PRIORITY_VALUES: readonly ["low", "medium", "high"];
2
+ export type Priority = (typeof PRIORITY_VALUES)[number];
3
+ //# sourceMappingURL=priority.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priority.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/priority.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oCAAqC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRIORITY_VALUES = void 0;
4
+ exports.PRIORITY_VALUES = ["low", "medium", "high"];
5
+ //# sourceMappingURL=priority.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priority.js","sourceRoot":"","sources":["../../../src/types/moderation/priority.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const SEVERITY_VALUES: readonly ["low", "medium", "high"];
2
+ export type Severity = (typeof SEVERITY_VALUES)[number];
3
+ //# sourceMappingURL=severity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/severity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oCAAqC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEVERITY_VALUES = void 0;
4
+ exports.SEVERITY_VALUES = ["low", "medium", "high"];
5
+ //# sourceMappingURL=severity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"severity.js","sourceRoot":"","sources":["../../../src/types/moderation/severity.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const SUGGESTION_CATEGORY_VALUES: readonly ["missing_info", "unclear_instruction", "image_quality", "nutrition", "safety"];
2
+ export type SuggestionCategory = (typeof SUGGESTION_CATEGORY_VALUES)[number];
3
+ //# sourceMappingURL=suggestion_category.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suggestion_category.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/suggestion_category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,0FAM7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUGGESTION_CATEGORY_VALUES = void 0;
4
+ exports.SUGGESTION_CATEGORY_VALUES = [
5
+ "missing_info",
6
+ "unclear_instruction",
7
+ "image_quality",
8
+ "nutrition",
9
+ "safety",
10
+ ];
11
+ //# sourceMappingURL=suggestion_category.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suggestion_category.js","sourceRoot":"","sources":["../../../src/types/moderation/suggestion_category.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,cAAc;IACd,qBAAqB;IACrB,eAAe;IACf,WAAW;IACX,QAAQ;CACA,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const ALLERGEN_VALUES: readonly ["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"];
2
+ export type Allergen = (typeof ALLERGEN_VALUES)[number];
3
+ //# sourceMappingURL=allergen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allergen.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/allergen.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yIAclB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ALLERGEN_VALUES = void 0;
4
+ exports.ALLERGEN_VALUES = [
5
+ "celery",
6
+ "dairy",
7
+ "eggs",
8
+ "fish",
9
+ "gluten",
10
+ "lupin",
11
+ "mustard",
12
+ "nuts",
13
+ "peanuts",
14
+ "sesame",
15
+ "shellfish",
16
+ "soy",
17
+ "sulfites",
18
+ ];
19
+ //# sourceMappingURL=allergen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allergen.js","sourceRoot":"","sources":["../../../src/types/recipe/allergen.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,SAAS;IACT,MAAM;IACN,SAAS;IACT,QAAQ;IACR,WAAW;IACX,KAAK;IACL,UAAU;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const CUISINE_VALUES: readonly ["african", "american", "brazilian", "british", "caribbean", "chinese", "egyptian", "emirati", "ethiopian", "filipino", "french", "fusion", "german", "greek", "indian", "indonesian", "italian", "japanese", "korean", "lebanese", "malaysian", "mexican", "moroccan", "pakistani", "persian", "russian", "saudi", "spanish", "sudanese", "thai", "turkish", "vietnamese", "other"];
2
+ export type Cuisine = (typeof CUISINE_VALUES)[number];
3
+ //# sourceMappingURL=cuisine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cuisine.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/cuisine.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,+XAkCjB,CAAC;AACX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}