@autobe/agent 0.28.0 → 0.29.0

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 (531) hide show
  1. package/lib/AutoBeAgent.js +1 -0
  2. package/lib/AutoBeAgent.js.map +1 -1
  3. package/lib/AutoBeMockAgent.js +1 -0
  4. package/lib/AutoBeMockAgent.js.map +1 -1
  5. package/lib/constants/AutoBeConfigConstant.d.ts +3 -1
  6. package/lib/constants/AutoBeSystemPromptConstant.d.ts +39 -26
  7. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  8. package/lib/context/AutoBeContext.d.ts +1 -1
  9. package/lib/factory/createAutoBeContext.js +5 -3
  10. package/lib/factory/createAutoBeContext.js.map +1 -1
  11. package/lib/index.mjs +37005 -17000
  12. package/lib/index.mjs.map +1 -1
  13. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +7 -2
  14. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +11 -21
  15. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
  16. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +2 -2
  17. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +12 -5
  18. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
  19. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +2 -2
  20. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +53 -50
  21. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
  22. package/lib/orchestrate/analyze/orchestrateAnalyze.js +2 -2
  23. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  24. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +855 -258
  25. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
  26. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +15 -22
  27. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  28. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +2 -9
  29. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
  30. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +110 -36
  31. package/lib/orchestrate/common/AutoBePreliminaryController.d.ts +40 -0
  32. package/lib/orchestrate/common/AutoBePreliminaryController.js +97 -0
  33. package/lib/orchestrate/common/AutoBePreliminaryController.js.map +1 -0
  34. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistory.d.ts +8 -0
  35. package/lib/orchestrate/{realize/histories/transformRealizeCorrectCastingHistories.js → common/histories/transformCommonCorrectCastingHistory.js} +16 -13
  36. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistory.js.map +1 -0
  37. package/lib/orchestrate/common/histories/transformPreliminaryHistory.d.ts +4 -0
  38. package/lib/orchestrate/common/histories/transformPreliminaryHistory.js +285 -0
  39. package/lib/orchestrate/common/histories/transformPreliminaryHistory.js.map +1 -0
  40. package/lib/orchestrate/common/histories/{transformPreviousAndLatestCorrectHistories.d.ts → transformPreviousAndLatestCorrectHistory.d.ts} +1 -1
  41. package/lib/orchestrate/common/histories/{transformPreviousAndLatestCorrectHistories.js → transformPreviousAndLatestCorrectHistory.js} +4 -4
  42. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js.map +1 -0
  43. package/lib/orchestrate/common/internal/complementPreliminaryCollection.d.ts +7 -0
  44. package/lib/orchestrate/common/internal/complementPreliminaryCollection.js +99 -0
  45. package/lib/orchestrate/common/internal/complementPreliminaryCollection.js.map +1 -0
  46. package/lib/orchestrate/common/internal/createPreliminaryCollection.d.ts +3 -0
  47. package/lib/orchestrate/common/internal/createPreliminaryCollection.js +20 -0
  48. package/lib/orchestrate/common/internal/createPreliminaryCollection.js.map +1 -0
  49. package/lib/orchestrate/common/internal/validatePreliminary.d.ts +5 -0
  50. package/lib/orchestrate/common/internal/validatePreliminary.js +217 -0
  51. package/lib/orchestrate/common/internal/validatePreliminary.js.map +1 -0
  52. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +10 -22
  53. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
  54. package/lib/orchestrate/common/orchestratePreliminary.d.ts +12 -0
  55. package/lib/orchestrate/common/orchestratePreliminary.js +231 -0
  56. package/lib/orchestrate/common/orchestratePreliminary.js.map +1 -0
  57. package/lib/orchestrate/common/structures/AutoBePreliminaryRequest.d.ts +16 -0
  58. package/lib/orchestrate/{realize/structures/IAutoBeRealizeAuthorizationApplication.js → common/structures/AutoBePreliminaryRequest.js} +1 -1
  59. package/lib/orchestrate/common/structures/AutoBePreliminaryRequest.js.map +1 -0
  60. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +1 -4
  61. package/lib/orchestrate/common/structures/IAutoBeOrchestrateResult.d.ts +9 -0
  62. package/lib/orchestrate/{interface/structures/IAutoBeInterfacePrerequisitesApplication.js → common/structures/IAutoBeOrchestrateResult.js} +1 -1
  63. package/lib/orchestrate/common/structures/IAutoBeOrchestrateResult.js.map +1 -0
  64. package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.d.ts +8 -0
  65. package/lib/orchestrate/{interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js → common/structures/IAutoBePreliminaryCollection.js} +1 -1
  66. package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.js.map +1 -0
  67. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisFiles.d.ts +27 -0
  68. package/lib/orchestrate/{interface/structures/IAutoBeInterfaceOperationsReviewApplication.js → common/structures/IAutoBePreliminaryGetAnalysisFiles.js} +1 -1
  69. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisFiles.js.map +1 -0
  70. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.d.ts +28 -0
  71. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.js +3 -0
  72. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.js.map +1 -0
  73. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.d.ts +27 -0
  74. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.js +3 -0
  75. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.js.map +1 -0
  76. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.d.ts +27 -0
  77. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.js +3 -0
  78. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.js.map +1 -0
  79. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.d.ts +10 -0
  80. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.js +70 -0
  81. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.js.map +1 -0
  82. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistory.d.ts +3 -0
  83. package/lib/orchestrate/interface/histories/{transformInterfaceCommonHistories.js → transformInterfaceCommonHistory.js} +4 -4
  84. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistory.js.map +1 -0
  85. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistory.d.ts +9 -0
  86. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistory.js +60 -0
  87. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistory.js.map +1 -0
  88. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistory.d.ts +12 -0
  89. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistory.js +63 -0
  90. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistory.js.map +1 -0
  91. package/lib/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.d.ts +7 -0
  92. package/lib/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.js +36 -0
  93. package/lib/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.js.map +1 -0
  94. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.d.ts +6 -0
  95. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.js +68 -0
  96. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.js.map +1 -0
  97. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.d.ts +9 -0
  98. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.js +72 -0
  99. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.js.map +1 -0
  100. package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.d.ts +7 -0
  101. package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.js +38 -0
  102. package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.js.map +1 -0
  103. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.d.ts +8 -0
  104. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.js +73 -0
  105. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.js.map +1 -0
  106. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistory.d.ts +11 -0
  107. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistory.js +95 -0
  108. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistory.js.map +1 -0
  109. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.d.ts +5 -0
  110. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.js +54 -0
  111. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.js.map +1 -0
  112. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.d.ts +12 -0
  113. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.js +75 -0
  114. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.js.map +1 -0
  115. package/lib/orchestrate/interface/orchestrateInterface.js +90 -46
  116. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
  117. package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.d.ts +6 -0
  118. package/lib/orchestrate/interface/{orchestrateInterfaceAuthorizations.js → orchestrateInterfaceAuthorization.js} +1395 -241
  119. package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js.map +1 -0
  120. package/lib/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -3
  121. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +2843 -556
  122. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  123. package/lib/orchestrate/interface/{orchestrateInterfaceEndpoints.d.ts → orchestrateInterfaceEndpoint.d.ts} +1 -1
  124. package/lib/orchestrate/interface/orchestrateInterfaceEndpoint.js +1356 -0
  125. package/lib/orchestrate/interface/orchestrateInterfaceEndpoint.js.map +1 -0
  126. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.d.ts +4 -0
  127. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js +1337 -0
  128. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js.map +1 -0
  129. package/lib/orchestrate/interface/{orchestrateInterfaceGroups.d.ts → orchestrateInterfaceGroup.d.ts} +1 -2
  130. package/lib/orchestrate/interface/orchestrateInterfaceGroup.js +621 -0
  131. package/lib/orchestrate/interface/orchestrateInterfaceGroup.js.map +1 -0
  132. package/lib/orchestrate/interface/{orchestrateInterfaceOperations.d.ts → orchestrateInterfaceOperation.d.ts} +1 -2
  133. package/lib/orchestrate/interface/{orchestrateInterfaceOperations.js → orchestrateInterfaceOperation.js} +1299 -232
  134. package/lib/orchestrate/interface/orchestrateInterfaceOperation.js.map +1 -0
  135. package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.d.ts +4 -0
  136. package/lib/orchestrate/interface/{orchestrateInterfaceOperationsReview.js → orchestrateInterfaceOperationReview.js} +1447 -264
  137. package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.js.map +1 -0
  138. package/lib/orchestrate/interface/{orchestrateInterfacePrerequisites.d.ts → orchestrateInterfacePrerequisite.d.ts} +1 -1
  139. package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js +2159 -0
  140. package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js.map +1 -0
  141. package/lib/orchestrate/interface/{orchestrateInterfaceSchemas.d.ts → orchestrateInterfaceSchema.d.ts} +1 -2
  142. package/lib/orchestrate/interface/{orchestrateInterfaceSchemas.js → orchestrateInterfaceSchema.js} +2586 -570
  143. package/lib/orchestrate/interface/orchestrateInterfaceSchema.js.map +1 -0
  144. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +7 -17
  145. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
  146. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +1 -0
  147. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +2875 -588
  148. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
  149. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +56 -5
  150. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +57 -10
  151. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +55 -10
  152. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.d.ts +96 -0
  153. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.js +3 -0
  154. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.js.map +1 -0
  155. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +6 -82
  156. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +58 -13
  157. package/lib/orchestrate/interface/structures/{IAutoBeInterfaceOperationsReviewApplication.d.ts → IAutoBeInterfaceOperationReviewApplication.d.ts} +58 -28
  158. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.js +3 -0
  159. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.js.map +1 -0
  160. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.d.ts +98 -0
  161. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.js +3 -0
  162. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.js.map +1 -0
  163. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +56 -15
  164. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.d.ts +62 -22
  165. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.d.ts +60 -21
  166. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.d.ts +61 -19
  167. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +29 -23
  168. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
  169. package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js +67 -61
  170. package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -1
  171. package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +2 -1
  172. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +52 -25
  173. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
  174. package/lib/orchestrate/interface/utils/OperationValidator.js +59 -1
  175. package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -1
  176. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.d.ts +6 -0
  177. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.js +98 -0
  178. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.js.map +1 -0
  179. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.d.ts +7 -0
  180. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.js +31 -0
  181. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.js.map +1 -0
  182. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistory.d.ts +7 -0
  183. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistory.js +38 -0
  184. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistory.js.map +1 -0
  185. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.d.ts +8 -0
  186. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.js +79 -0
  187. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.js.map +1 -0
  188. package/lib/orchestrate/prisma/orchestratePrisma.js +9 -6
  189. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
  190. package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -1
  191. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +19 -22
  192. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  193. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +2864 -1535
  194. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  195. package/lib/orchestrate/prisma/orchestratePrismaReview.d.ts +1 -1
  196. package/lib/orchestrate/prisma/orchestratePrismaReview.js +2886 -1557
  197. package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
  198. package/lib/orchestrate/prisma/{orchestratePrismaSchemas.d.ts → orchestratePrismaSchema.d.ts} +1 -1
  199. package/lib/orchestrate/prisma/orchestratePrismaSchema.js +3068 -0
  200. package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -0
  201. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +74 -76
  202. package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +90 -72
  203. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +89 -66
  204. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.d.ts +9 -0
  205. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.js +79 -0
  206. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.js.map +1 -0
  207. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.d.ts +7 -0
  208. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.js +41 -0
  209. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.js.map +1 -0
  210. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.d.ts +12 -0
  211. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.js +67 -0
  212. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.js.map +1 -0
  213. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistory.d.ts +18 -0
  214. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistory.js +54 -0
  215. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistory.js.map +1 -0
  216. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +4 -2
  217. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +140 -106
  218. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
  219. package/lib/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.d.ts +3 -0
  220. package/lib/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.js +23 -0
  221. package/lib/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.js.map +1 -0
  222. package/lib/orchestrate/realize/orchestrateRealize.js +4 -4
  223. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  224. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +5 -1
  225. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +1288 -569
  226. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
  227. package/lib/orchestrate/realize/{orchestrateRealizeAuthorization.d.ts → orchestrateRealizeAuthorizationWrite.d.ts} +1 -1
  228. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +1410 -0
  229. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js.map +1 -0
  230. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +664 -140
  231. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
  232. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +20 -65
  233. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
  234. package/lib/orchestrate/realize/orchestrateRealizeWrite.js +660 -135
  235. package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
  236. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +79 -19
  237. package/lib/orchestrate/realize/structures/{IAutoBeRealizeAuthorizationApplication.d.ts → IAutoBeRealizeAuthorizationWriteApplication.d.ts} +60 -27
  238. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.js +3 -0
  239. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.js.map +1 -0
  240. package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +54 -5
  241. package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +6 -14
  242. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +54 -6
  243. package/lib/orchestrate/realize/utils/generateRealizeScenario.d.ts +1 -3
  244. package/lib/orchestrate/realize/utils/generateRealizeScenario.js +1 -7
  245. package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -1
  246. package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +3 -3
  247. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +23 -20
  248. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
  249. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.d.ts +4 -0
  250. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.js +36 -0
  251. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.js.map +1 -0
  252. package/lib/orchestrate/test/histories/transformTestScenarioHistory.d.ts +11 -0
  253. package/lib/orchestrate/test/histories/transformTestScenarioHistory.js +95 -0
  254. package/lib/orchestrate/test/histories/transformTestScenarioHistory.js.map +1 -0
  255. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.d.ts +10 -0
  256. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.js +67 -0
  257. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.js.map +1 -0
  258. package/lib/orchestrate/test/histories/{transformTestWriteHistories.d.ts → transformTestWriteHistory.d.ts} +4 -4
  259. package/lib/orchestrate/test/histories/{transformTestWriteHistories.js → transformTestWriteHistory.js} +79 -76
  260. package/lib/orchestrate/test/histories/transformTestWriteHistory.js.map +1 -0
  261. package/lib/orchestrate/test/orchestrateTestCorrect.js +13 -26
  262. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  263. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +3 -15
  264. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
  265. package/lib/orchestrate/test/orchestrateTestScenario.d.ts +1 -1
  266. package/lib/orchestrate/test/orchestrateTestScenario.js +1381 -325
  267. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  268. package/lib/orchestrate/test/orchestrateTestScenarioReview.d.ts +5 -3
  269. package/lib/orchestrate/test/orchestrateTestScenarioReview.js +1072 -291
  270. package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
  271. package/lib/orchestrate/test/orchestrateTestWrite.js +8 -15
  272. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  273. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +66 -4
  274. package/lib/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.d.ts +82 -14
  275. package/lib/structures/IAutoBeOrchestrateHistory.d.ts +5 -0
  276. package/lib/structures/IAutoBeOrchestrateHistory.js +3 -0
  277. package/lib/structures/IAutoBeOrchestrateHistory.js.map +1 -0
  278. package/lib/utils/executeCachedBatch.d.ts +5 -1
  279. package/lib/utils/executeCachedBatch.js +23 -5
  280. package/lib/utils/executeCachedBatch.js.map +1 -1
  281. package/lib/utils/validateEmptyCode.js +2 -2
  282. package/lib/utils/validateEmptyCode.js.map +1 -1
  283. package/package.json +10 -8
  284. package/src/AutoBeAgent.ts +1 -0
  285. package/src/AutoBeMockAgent.ts +1 -0
  286. package/src/constants/AutoBeConfigConstant.ts +2 -0
  287. package/src/constants/AutoBeSystemPromptConstant.ts +39 -26
  288. package/src/context/AutoBeContext.ts +1 -1
  289. package/src/factory/createAutoBeContext.ts +5 -2
  290. package/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.ts +17 -28
  291. package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +12 -6
  292. package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +62 -61
  293. package/src/orchestrate/analyze/orchestrateAnalyze.ts +2 -0
  294. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +97 -48
  295. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +3 -16
  296. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +1 -2
  297. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +114 -36
  298. package/src/orchestrate/common/AutoBePreliminaryController.ts +161 -0
  299. package/src/orchestrate/common/histories/transformCommonCorrectCastingHistory.ts +32 -0
  300. package/src/orchestrate/common/histories/transformPreliminaryHistory.ts +383 -0
  301. package/src/orchestrate/common/histories/{transformPreviousAndLatestCorrectHistories.ts → transformPreviousAndLatestCorrectHistory.ts} +1 -1
  302. package/src/orchestrate/common/internal/complementPreliminaryCollection.ts +123 -0
  303. package/src/orchestrate/common/internal/createPreliminaryCollection.ts +32 -0
  304. package/src/orchestrate/common/internal/validatePreliminary.ts +315 -0
  305. package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +8 -15
  306. package/src/orchestrate/common/orchestratePreliminary.ts +361 -0
  307. package/src/orchestrate/common/structures/AutoBePreliminaryRequest.ts +18 -0
  308. package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +1 -4
  309. package/src/orchestrate/common/structures/IAutoBeOrchestrateResult.ts +13 -0
  310. package/src/orchestrate/common/structures/IAutoBePreliminaryCollection.ts +9 -0
  311. package/src/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisFiles.ts +29 -0
  312. package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.ts +30 -0
  313. package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.ts +29 -0
  314. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.ts +29 -0
  315. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.ts +77 -0
  316. package/src/orchestrate/interface/histories/{transformInterfaceCommonHistories.ts → transformInterfaceCommonHistory.ts} +1 -1
  317. package/src/orchestrate/interface/histories/{transformInterfaceGroupHistories.ts → transformInterfaceComplementHistory.ts} +35 -21
  318. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistory.ts +74 -0
  319. package/src/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.ts +40 -0
  320. package/src/orchestrate/interface/histories/transformInterfaceGroupHistory.ts +72 -0
  321. package/src/orchestrate/interface/histories/transformInterfaceOperationHistory.ts +79 -0
  322. package/src/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.ts +43 -0
  323. package/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.ts +89 -0
  324. package/src/orchestrate/interface/histories/transformInterfaceSchemaHistory.ts +105 -0
  325. package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.ts +56 -0
  326. package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.ts +88 -0
  327. package/src/orchestrate/interface/orchestrateInterface.ts +115 -51
  328. package/src/orchestrate/interface/{orchestrateInterfaceAuthorizations.ts → orchestrateInterfaceAuthorization.ts} +91 -67
  329. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +174 -78
  330. package/src/orchestrate/interface/orchestrateInterfaceEndpoint.ts +207 -0
  331. package/src/orchestrate/interface/orchestrateInterfaceEndpointReview.ts +139 -0
  332. package/src/orchestrate/interface/orchestrateInterfaceGroup.ts +153 -0
  333. package/src/orchestrate/interface/{orchestrateInterfaceOperations.ts → orchestrateInterfaceOperation.ts} +109 -86
  334. package/src/orchestrate/interface/orchestrateInterfaceOperationReview.ts +186 -0
  335. package/src/orchestrate/interface/{orchestrateInterfacePrerequisites.ts → orchestrateInterfacePrerequisite.ts} +123 -58
  336. package/src/orchestrate/interface/{orchestrateInterfaceSchemas.ts → orchestrateInterfaceSchema.ts} +96 -90
  337. package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +10 -11
  338. package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +127 -60
  339. package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +63 -5
  340. package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +67 -12
  341. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +63 -10
  342. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.ts +106 -0
  343. package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +6 -84
  344. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +65 -13
  345. package/src/orchestrate/interface/structures/{IAutoBeInterfaceOperationsReviewApplication.ts → IAutoBeInterfaceOperationReviewApplication.ts} +65 -30
  346. package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.ts +111 -0
  347. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +65 -15
  348. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.ts +71 -24
  349. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.ts +68 -23
  350. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.ts +69 -21
  351. package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +31 -23
  352. package/src/orchestrate/interface/utils/JsonSchemaNamingConvention.ts +73 -61
  353. package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +53 -26
  354. package/src/orchestrate/interface/utils/OperationValidator.ts +69 -1
  355. package/src/orchestrate/prisma/histories/transformPrismaComponentsHistory.ts +109 -0
  356. package/src/orchestrate/prisma/histories/{transformPrismaCorrectHistories.ts → transformPrismaCorrectHistory.ts} +13 -22
  357. package/src/orchestrate/prisma/histories/transformPrismaReviewHistory.ts +42 -0
  358. package/src/orchestrate/prisma/histories/{transformPrismaSchemaHistories.ts → transformPrismaSchemaHistory.ts} +7 -8
  359. package/src/orchestrate/prisma/orchestratePrisma.ts +12 -17
  360. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +7 -15
  361. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +129 -64
  362. package/src/orchestrate/prisma/orchestratePrismaReview.ts +115 -59
  363. package/src/orchestrate/prisma/{orchestratePrismaSchemas.ts → orchestratePrismaSchema.ts} +92 -60
  364. package/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.ts +81 -76
  365. package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +97 -72
  366. package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +93 -66
  367. package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.ts +89 -0
  368. package/src/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.ts +45 -0
  369. package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.ts +85 -0
  370. package/src/orchestrate/realize/histories/transformRealizeCorrectHistory.ts +77 -0
  371. package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +152 -121
  372. package/src/orchestrate/realize/histories/{transformRealizeWriteAuthorizationsHistories.ts → transformRealizeWriteMembershipHistory.ts} +2 -2
  373. package/src/orchestrate/realize/orchestrateRealize.ts +4 -3
  374. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +155 -97
  375. package/src/orchestrate/realize/orchestrateRealizeAuthorizationWrite.ts +241 -0
  376. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +88 -86
  377. package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +17 -56
  378. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +82 -78
  379. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +85 -22
  380. package/src/orchestrate/realize/structures/{IAutoBeRealizeAuthorizationApplication.ts → IAutoBeRealizeAuthorizationWriteApplication.ts} +64 -29
  381. package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +58 -5
  382. package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.ts +6 -19
  383. package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +58 -6
  384. package/src/orchestrate/realize/utils/generateRealizeScenario.ts +2 -20
  385. package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +30 -30
  386. package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.ts +40 -0
  387. package/src/orchestrate/test/histories/transformTestScenarioHistory.ts +116 -0
  388. package/src/orchestrate/test/histories/transformTestScenarioReviewHistory.ts +85 -0
  389. package/src/orchestrate/test/histories/transformTestWriteHistory.ts +169 -0
  390. package/src/orchestrate/test/orchestrateTestCorrect.ts +13 -19
  391. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +5 -12
  392. package/src/orchestrate/test/orchestrateTestScenario.ts +143 -83
  393. package/src/orchestrate/test/orchestrateTestScenarioReview.ts +93 -76
  394. package/src/orchestrate/test/orchestrateTestWrite.ts +7 -7
  395. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +74 -4
  396. package/src/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.ts +89 -14
  397. package/src/structures/IAutoBeOrchestrateHistory.ts +6 -0
  398. package/src/utils/executeCachedBatch.ts +33 -7
  399. package/src/utils/validateEmptyCode.ts +2 -2
  400. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.d.ts +0 -8
  401. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +0 -16
  402. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +0 -1
  403. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js.map +0 -1
  404. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +0 -3
  405. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js +0 -62
  406. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
  407. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +0 -8
  408. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +0 -68
  409. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +0 -1
  410. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.d.ts +0 -3
  411. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.js.map +0 -1
  412. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +0 -9
  413. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -74
  414. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
  415. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +0 -10
  416. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +0 -61
  417. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
  418. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +0 -4
  419. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +0 -34
  420. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +0 -1
  421. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +0 -6
  422. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +0 -52
  423. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
  424. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +0 -8
  425. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -71
  426. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
  427. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +0 -5
  428. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +0 -36
  429. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +0 -1
  430. package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.d.ts +0 -3
  431. package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js +0 -102
  432. package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js.map +0 -1
  433. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +0 -9
  434. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -74
  435. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
  436. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.d.ts +0 -5
  437. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js +0 -51
  438. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js.map +0 -1
  439. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.d.ts +0 -11
  440. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js +0 -81
  441. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js.map +0 -1
  442. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +0 -4
  443. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +0 -1
  444. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +0 -506
  445. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
  446. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -4
  447. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +0 -487
  448. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +0 -1
  449. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +0 -455
  450. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
  451. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
  452. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +0 -4
  453. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +0 -1
  454. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +0 -916
  455. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +0 -1
  456. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
  457. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +0 -60
  458. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +0 -1
  459. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +0 -1
  460. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.d.ts +0 -52
  461. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.js.map +0 -1
  462. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +0 -6
  463. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +0 -95
  464. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
  465. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +0 -3
  466. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +0 -41
  467. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
  468. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +0 -8
  469. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +0 -62
  470. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +0 -1
  471. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +0 -8
  472. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +0 -78
  473. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
  474. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +0 -1678
  475. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
  476. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +0 -5
  477. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js +0 -44
  478. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +0 -1
  479. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
  480. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +0 -82
  481. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
  482. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.d.ts +0 -5
  483. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +0 -1
  484. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -13
  485. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +0 -29
  486. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +0 -1
  487. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +0 -3
  488. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +0 -23
  489. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +0 -1
  490. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +0 -707
  491. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
  492. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
  493. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.d.ts +0 -4
  494. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +0 -33
  495. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +0 -1
  496. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +0 -10
  497. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +0 -101
  498. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +0 -1
  499. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.d.ts +0 -8
  500. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +0 -72
  501. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +0 -1
  502. package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +0 -1
  503. package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +0 -25
  504. package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +0 -72
  505. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +0 -75
  506. package/src/orchestrate/interface/histories/transformInterfaceComplementHistories.ts +0 -82
  507. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +0 -72
  508. package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +0 -40
  509. package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +0 -78
  510. package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +0 -44
  511. package/src/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.ts +0 -118
  512. package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +0 -80
  513. package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.ts +0 -55
  514. package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.ts +0 -90
  515. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +0 -152
  516. package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +0 -98
  517. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +0 -91
  518. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +0 -157
  519. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.ts +0 -65
  520. package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.ts +0 -58
  521. package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +0 -104
  522. package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +0 -69
  523. package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +0 -52
  524. package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.ts +0 -95
  525. package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +0 -30
  526. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +0 -46
  527. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +0 -185
  528. package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +0 -39
  529. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +0 -125
  530. package/src/orchestrate/test/histories/transformTestScenarioReviewHistories.ts +0 -89
  531. package/src/orchestrate/test/histories/transformTestWriteHistories.ts +0 -172
@@ -47,20 +47,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.orchestrateRealizeAuthorizationCorrect = orchestrateRealizeAuthorizationCorrect;
49
49
  const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
50
+ const __typia_transform__llmApplicationFinalize = __importStar(require("typia/lib/internal/_llmApplicationFinalize.js"));
50
51
  const typia_1 = __importDefault(require("typia"));
51
52
  const uuid_1 = require("uuid");
52
53
  const assertSchemaModel_1 = require("../../context/assertSchemaModel");
53
- const transformRealizeAuthorizationCorrectHistories_1 = require("./histories/transformRealizeAuthorizationCorrectHistories");
54
+ const AutoBePreliminaryController_1 = require("../common/AutoBePreliminaryController");
55
+ const transformRealizeAuthorizationCorrectHistory_1 = require("./histories/transformRealizeAuthorizationCorrectHistory");
54
56
  const AuthorizationFileSystem_1 = require("./utils/AuthorizationFileSystem");
55
57
  const AutoBeRealizeAuthorizationReplaceImport_1 = require("./utils/AutoBeRealizeAuthorizationReplaceImport");
56
- function orchestrateRealizeAuthorizationCorrect(ctx_1, authorization_1, prismaClients_1, templateFiles_1) {
57
- return __awaiter(this, arguments, void 0, function* (ctx, authorization, prismaClients, templateFiles, life = ctx.retry) {
58
- var _a, _b, _c, _d;
58
+ function orchestrateRealizeAuthorizationCorrect(ctx_1, props_1) {
59
+ return __awaiter(this, arguments, void 0, function* (ctx, props, life = ctx.retry) {
60
+ var _a, _b;
59
61
  const compiler = yield ctx.compiler();
60
- const providerContent = yield compiler.typescript.beautify(AutoBeRealizeAuthorizationReplaceImport_1.AutoBeRealizeAuthorizationReplaceImport.replaceProviderImport(authorization.actor.name, authorization.provider.content));
61
- const decoratorContent = yield compiler.typescript.beautify(AutoBeRealizeAuthorizationReplaceImport_1.AutoBeRealizeAuthorizationReplaceImport.replaceDecoratorImport(authorization.actor.name, authorization.decorator.content));
62
+ const providerContent = yield compiler.typescript.beautify(AutoBeRealizeAuthorizationReplaceImport_1.AutoBeRealizeAuthorizationReplaceImport.replaceProviderImport(props.authorization.actor.name, props.authorization.provider.content));
63
+ const decoratorContent = yield compiler.typescript.beautify(AutoBeRealizeAuthorizationReplaceImport_1.AutoBeRealizeAuthorizationReplaceImport.replaceDecoratorImport(props.authorization.actor.name, props.authorization.decorator.content));
62
64
  // Check Compile
63
- const files = Object.assign(Object.assign(Object.assign({}, templateFiles), prismaClients), { [AuthorizationFileSystem_1.AuthorizationFileSystem.decoratorPath(authorization.decorator.name)]: decoratorContent, [AuthorizationFileSystem_1.AuthorizationFileSystem.providerPath(authorization.provider.name)]: providerContent, [AuthorizationFileSystem_1.AuthorizationFileSystem.payloadPath(authorization.payload.name)]: authorization.payload.content });
65
+ const files = Object.assign(Object.assign(Object.assign({}, props.template), props.prismaClient), { [AuthorizationFileSystem_1.AuthorizationFileSystem.decoratorPath(props.authorization.decorator.name)]: decoratorContent, [AuthorizationFileSystem_1.AuthorizationFileSystem.providerPath(props.authorization.provider.name)]: providerContent, [AuthorizationFileSystem_1.AuthorizationFileSystem.payloadPath(props.authorization.payload.name)]: props.authorization.payload.content });
64
66
  const compiled = yield compiler.typescript.compile({
65
67
  files,
66
68
  });
@@ -68,313 +70,124 @@ function orchestrateRealizeAuthorizationCorrect(ctx_1, authorization_1, prismaCl
68
70
  type: "realizeAuthorizationValidate",
69
71
  id: (0, uuid_1.v7)(),
70
72
  created_at: new Date().toISOString(),
71
- authorization: authorization,
73
+ authorization: props.authorization,
72
74
  result: compiled,
73
75
  step: (_b = (_a = ctx.state().test) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
74
76
  });
75
77
  if (compiled.type === "success") {
76
- return authorization;
78
+ return props.authorization;
77
79
  }
78
80
  else if (compiled.type === "exception" || life < 0) {
79
- return authorization;
81
+ return props.authorization;
80
82
  }
81
- const pointer = {
82
- value: null,
83
- };
84
- const { metric, tokenUsage } = yield ctx.conversate({
85
- source: "realizeAuthorizationCorrect",
86
- histories: (0, transformRealizeAuthorizationCorrectHistories_1.transformRealizeAuthorizationCorrectHistories)(ctx, authorization, templateFiles, compiled.diagnostics),
87
- controller: createController({
88
- model: ctx.model,
89
- build: (next) => {
90
- pointer.value = next;
91
- },
92
- }),
93
- enforceFunctionCall: true,
94
- message: "Please correct the decorator and the provider.",
95
- });
96
- if (pointer.value === null)
97
- throw new Error("Failed to correct decorator.");
98
- const result = Object.assign(Object.assign({}, pointer.value), { decorator: Object.assign(Object.assign({}, pointer.value.decorator), { location: AuthorizationFileSystem_1.AuthorizationFileSystem.decoratorPath(pointer.value.decorator.name) }), provider: Object.assign(Object.assign({}, pointer.value.provider), { location: AuthorizationFileSystem_1.AuthorizationFileSystem.providerPath(pointer.value.provider.name) }), payload: {
99
- name: pointer.value.payload.name,
100
- location: AuthorizationFileSystem_1.AuthorizationFileSystem.payloadPath(pointer.value.payload.name),
101
- content: yield compiler.typescript.beautify(pointer.value.payload.content),
102
- }, actor: authorization.actor });
103
- ctx.dispatch(Object.assign(Object.assign({}, pointer.value), { type: "realizeAuthorizationCorrect", id: (0, uuid_1.v7)(), created_at: new Date().toISOString(), authorization: result, result: compiled, metric,
104
- tokenUsage, step: (_d = (_c = ctx.state().test) === null || _c === void 0 ? void 0 : _c.step) !== null && _d !== void 0 ? _d : 0 }));
105
- return yield orchestrateRealizeAuthorizationCorrect(ctx, result, prismaClients, templateFiles, life - 1);
106
- });
107
- }
108
- function createController(props) {
109
- (0, assertSchemaModel_1.assertSchemaModel)(props.model);
110
- const application = collection[props.model === "chatgpt"
111
- ? "chatgpt"
112
- : props.model === "gemini"
113
- ? "gemini"
114
- : "claude"];
115
- return {
116
- protocol: "class",
117
- name: "Correct Authorization",
118
- application,
119
- execute: {
120
- correctDecorator: (next) => {
121
- props.build(next);
122
- },
123
- },
124
- };
125
- }
126
- const collection = {
127
- chatgpt: {
128
- model: "chatgpt",
129
- options: {
130
- reference: true,
131
- strict: false,
132
- separate: null
133
- },
134
- functions: [
135
- {
136
- name: "correctDecorator",
137
- parameters: {
138
- description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
139
- type: "object",
140
- properties: {
141
- error_analysis: {
142
- description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting.",
143
- type: "string"
144
- },
145
- solution_guidance: {
146
- description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations.",
147
- type: "string"
148
- },
149
- provider: {
150
- description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
151
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
152
- },
153
- decorator: {
154
- description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
155
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
156
- },
157
- payload: {
158
- description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
159
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
160
- }
161
- },
162
- required: [
163
- "error_analysis",
164
- "solution_guidance",
165
- "provider",
166
- "decorator",
167
- "payload"
168
- ],
169
- additionalProperties: false,
170
- $defs: {
171
- "IAutoBeRealizeAuthorizationApplication.IProvider": {
83
+ const preliminary = new AutoBePreliminaryController_1.AutoBePreliminaryController({
84
+ source: SOURCE,
85
+ application: {
86
+ version: "3.1",
87
+ components: {
88
+ schemas: {
89
+ "IAutoBeRealizeAuthorizationCorrectApplication.IProps": {
172
90
  type: "object",
173
91
  properties: {
174
- name: {
175
- description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention.\n\n\n@pattern ^[a-z][a-zA-Z0-9]*$",
176
- type: "string"
92
+ thinking: {
93
+ type: "string",
94
+ description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on your\ncurrent state and explain your reasoning:\n\nFor preliminary requests (getAnalysisFiles, getPrismaSchemas, etc.):\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature completion."
177
95
  },
178
- content: {
179
- description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data.",
180
- type: "string"
96
+ request: {
97
+ oneOf: [
98
+ {
99
+ $ref: "#/components/schemas/IAutoBePreliminaryGetPrismaSchemas"
100
+ },
101
+ {
102
+ $ref: "#/components/schemas/IAutoBeRealizeAuthorizationCorrectApplication.IComplete"
103
+ }
104
+ ],
105
+ discriminator: {
106
+ propertyName: "type",
107
+ mapping: {
108
+ getPrismaSchemas: "#/components/schemas/IAutoBePreliminaryGetPrismaSchemas",
109
+ complete: "#/components/schemas/IAutoBeRealizeAuthorizationCorrectApplication.IComplete"
110
+ }
111
+ },
112
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getPrismaSchemas) or final error correction (complete). When preliminary\nreturns empty array, that type is removed from the union, physically\npreventing repeated calls."
181
113
  }
182
114
  },
183
115
  required: [
184
- "name",
185
- "content"
116
+ "thinking",
117
+ "request"
186
118
  ]
187
119
  },
188
- "IAutoBeRealizeAuthorizationApplication.IDecorator": {
120
+ IAutoBePreliminaryGetPrismaSchemas: {
189
121
  type: "object",
190
122
  properties: {
191
- name: {
192
- description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention.\n\n\n@pattern ^[A-Z][a-zA-Z0-9]*$",
193
- type: "string"
123
+ type: {
124
+ "const": "getPrismaSchemas",
125
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPrismaSchemas\" indicates this is a preliminary\ndata request for Prisma schemas."
194
126
  },
195
- content: {
196
- description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
197
- type: "string"
127
+ schemaNames: {
128
+ type: "array",
129
+ items: {
130
+ type: "string"
131
+ },
132
+ minItems: 1,
133
+ description: "List of Prisma table names to retrieve.\n\nTable names from the Prisma schema file representing database entities\n(e.g., \"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls."
198
134
  }
199
135
  },
200
136
  required: [
201
- "name",
202
- "content"
203
- ]
137
+ "type",
138
+ "schemaNames"
139
+ ],
140
+ description: "Request to retrieve Prisma database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific Prisma table\nschemas needed for generating type-safe API operations."
204
141
  },
205
- "IAutoBeRealizeAuthorizationApplication.IPayloadType": {
142
+ "IAutoBeRealizeAuthorizationCorrectApplication.IComplete": {
206
143
  type: "object",
207
144
  properties: {
208
- name: {
209
- description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention.\n\n\n@pattern ^[A-Z][a-zA-Z0-9]*$",
210
- type: "string"
145
+ type: {
146
+ "const": "complete",
147
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request."
211
148
  },
212
- content: {
213
- description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures.",
214
- type: "string"
149
+ error_analysis: {
150
+ type: "string",
151
+ description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting."
152
+ },
153
+ solution_guidance: {
154
+ type: "string",
155
+ description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations."
156
+ },
157
+ provider: {
158
+ $ref: "#/components/schemas/IAutoBeRealizeAuthorizationWriteApplication.IProvider",
159
+ description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers."
160
+ },
161
+ decorator: {
162
+ $ref: "#/components/schemas/IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
163
+ description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods."
164
+ },
165
+ payload: {
166
+ $ref: "#/components/schemas/IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
167
+ description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures."
215
168
  }
216
169
  },
217
170
  required: [
218
- "name",
219
- "content"
220
- ]
221
- }
222
- }
223
- },
224
- description: "Corrects TypeScript compilation errors in authentication components.\n\nThis method analyzes and fixes compilation errors in previously generated\nauthentication provider, decorator, and payload type implementations. It\nperforms systematic error diagnosis and generates corrected versions of\nall three components while maintaining their interconnected functionality.\n\nThe correction process includes:\n- TypeScript error analysis and categorization by component\n- Identification of type mismatches, import issues, and syntax errors\n- Clear solution guidance for each identified problem\n- Regeneration of all components with fixes applied\n\nThe corrected components maintain the same naming conventions and\narchitectural patterns as the original generation while resolving all\ncompilation issues.",
225
- validate: (() => { const _io0 = input => "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io1(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.error_analysis || _report(_exceptionable, {
226
- path: _path + ".error_analysis",
227
- expected: "string",
228
- value: input.error_analysis
229
- }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
230
- path: _path + ".solution_guidance",
231
- expected: "string",
232
- value: input.solution_guidance
233
- }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
234
- path: _path + ".provider",
235
- expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
236
- value: input.provider
237
- })) && _vo1(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
238
- path: _path + ".provider",
239
- expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
240
- value: input.provider
241
- }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
242
- path: _path + ".decorator",
243
- expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
244
- value: input.decorator
245
- })) && _vo2(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
246
- path: _path + ".decorator",
247
- expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
248
- value: input.decorator
249
- }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
250
- path: _path + ".payload",
251
- expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
252
- value: input.payload
253
- })) && _vo3(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
254
- path: _path + ".payload",
255
- expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
256
- value: input.payload
257
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
258
- path: _path + ".name",
259
- expected: "string & CamelCasePattern",
260
- value: input.name
261
- })) || _report(_exceptionable, {
262
- path: _path + ".name",
263
- expected: "(string & CamelCasePattern)",
264
- value: input.name
265
- }), "string" === typeof input.content || _report(_exceptionable, {
266
- path: _path + ".content",
267
- expected: "string",
268
- value: input.content
269
- })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
270
- path: _path + ".name",
271
- expected: "string & PascalCasePattern",
272
- value: input.name
273
- })) || _report(_exceptionable, {
274
- path: _path + ".name",
275
- expected: "(string & PascalCasePattern)",
276
- value: input.name
277
- }), "string" === typeof input.content || _report(_exceptionable, {
278
- path: _path + ".content",
279
- expected: "string",
280
- value: input.content
281
- })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
282
- path: _path + ".name",
283
- expected: "string & PascalCasePattern",
284
- value: input.name
285
- })) || _report(_exceptionable, {
286
- path: _path + ".name",
287
- expected: "(string & PascalCasePattern)",
288
- value: input.name
289
- }), "string" === typeof input.content || _report(_exceptionable, {
290
- path: _path + ".content",
291
- expected: "string",
292
- value: input.content
293
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
294
- if (false === __is(input)) {
295
- errors = [];
296
- _report = __typia_transform__validateReport._validateReport(errors);
297
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
298
- path: _path + "",
299
- expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
300
- value: input
301
- })) && _vo0(input, _path + "", true) || _report(true, {
302
- path: _path + "",
303
- expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
304
- value: input
305
- }))(input, "$input", true);
306
- const success = 0 === errors.length;
307
- return success ? {
308
- success,
309
- data: input
310
- } : {
311
- success,
312
- errors,
313
- data: input
314
- };
315
- }
316
- return {
317
- success: true,
318
- data: input
319
- };
320
- }; })()
321
- }
322
- ]
323
- },
324
- claude: {
325
- model: "claude",
326
- options: {
327
- reference: true,
328
- separate: null
329
- },
330
- functions: [
331
- {
332
- name: "correctDecorator",
333
- parameters: {
334
- description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
335
- type: "object",
336
- properties: {
337
- error_analysis: {
338
- description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting.",
339
- type: "string"
340
- },
341
- solution_guidance: {
342
- description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations.",
343
- type: "string"
171
+ "type",
172
+ "error_analysis",
173
+ "solution_guidance",
174
+ "provider",
175
+ "decorator",
176
+ "payload"
177
+ ],
178
+ description: "Request to fix authentication component errors.\n\nExecutes targeted error correction to resolve TypeScript compilation issues\nin provider, decorator, and payload type. Applies systematic fixes while\npreserving all authentication logic and business requirements."
344
179
  },
345
- provider: {
346
- description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
347
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
348
- },
349
- decorator: {
350
- description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
351
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
352
- },
353
- payload: {
354
- description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
355
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
356
- }
357
- },
358
- required: [
359
- "error_analysis",
360
- "solution_guidance",
361
- "provider",
362
- "decorator",
363
- "payload"
364
- ],
365
- additionalProperties: false,
366
- $defs: {
367
- "IAutoBeRealizeAuthorizationApplication.IProvider": {
180
+ "IAutoBeRealizeAuthorizationWriteApplication.IProvider": {
368
181
  type: "object",
369
182
  properties: {
370
183
  name: {
371
- description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention.",
372
184
  type: "string",
373
- pattern: "^[a-z][a-zA-Z0-9]*$"
185
+ pattern: "^[a-z][a-zA-Z0-9]*$",
186
+ description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention."
374
187
  },
375
188
  content: {
376
- description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data.",
377
- type: "string"
189
+ type: "string",
190
+ description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data."
378
191
  }
379
192
  },
380
193
  required: [
@@ -382,17 +195,17 @@ const collection = {
382
195
  "content"
383
196
  ]
384
197
  },
385
- "IAutoBeRealizeAuthorizationApplication.IDecorator": {
198
+ "IAutoBeRealizeAuthorizationWriteApplication.IDecorator": {
386
199
  type: "object",
387
200
  properties: {
388
201
  name: {
389
- description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention.",
390
202
  type: "string",
391
- pattern: "^[A-Z][a-zA-Z0-9]*$"
203
+ pattern: "^[A-Z][a-zA-Z0-9]*$",
204
+ description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention."
392
205
  },
393
206
  content: {
394
- description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
395
- type: "string"
207
+ type: "string",
208
+ description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface."
396
209
  }
397
210
  },
398
211
  required: [
@@ -400,17 +213,17 @@ const collection = {
400
213
  "content"
401
214
  ]
402
215
  },
403
- "IAutoBeRealizeAuthorizationApplication.IPayloadType": {
216
+ "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType": {
404
217
  type: "object",
405
218
  properties: {
406
219
  name: {
407
- description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention.",
408
220
  type: "string",
409
- pattern: "^[A-Z][a-zA-Z0-9]*$"
221
+ pattern: "^[A-Z][a-zA-Z0-9]*$",
222
+ description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention."
410
223
  },
411
224
  content: {
412
- description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures.",
413
- type: "string"
225
+ type: "string",
226
+ description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures."
414
227
  }
415
228
  },
416
229
  required: [
@@ -420,301 +233,1207 @@ const collection = {
420
233
  }
421
234
  }
422
235
  },
423
- description: "Corrects TypeScript compilation errors in authentication components.\n\nThis method analyzes and fixes compilation errors in previously generated\nauthentication provider, decorator, and payload type implementations. It\nperforms systematic error diagnosis and generates corrected versions of\nall three components while maintaining their interconnected functionality.\n\nThe correction process includes:\n- TypeScript error analysis and categorization by component\n- Identification of type mismatches, import issues, and syntax errors\n- Clear solution guidance for each identified problem\n- Regeneration of all components with fixes applied\n\nThe corrected components maintain the same naming conventions and\narchitectural patterns as the original generation while resolving all\ncompilation issues.",
424
- validate: (() => { const _io0 = input => "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io1(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.error_analysis || _report(_exceptionable, {
425
- path: _path + ".error_analysis",
426
- expected: "string",
427
- value: input.error_analysis
428
- }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
429
- path: _path + ".solution_guidance",
430
- expected: "string",
431
- value: input.solution_guidance
432
- }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
433
- path: _path + ".provider",
434
- expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
435
- value: input.provider
436
- })) && _vo1(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
437
- path: _path + ".provider",
438
- expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
439
- value: input.provider
440
- }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
441
- path: _path + ".decorator",
442
- expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
443
- value: input.decorator
444
- })) && _vo2(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
445
- path: _path + ".decorator",
446
- expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
447
- value: input.decorator
448
- }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
449
- path: _path + ".payload",
450
- expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
451
- value: input.payload
452
- })) && _vo3(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
453
- path: _path + ".payload",
454
- expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
455
- value: input.payload
456
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
457
- path: _path + ".name",
458
- expected: "string & CamelCasePattern",
459
- value: input.name
460
- })) || _report(_exceptionable, {
461
- path: _path + ".name",
462
- expected: "(string & CamelCasePattern)",
463
- value: input.name
464
- }), "string" === typeof input.content || _report(_exceptionable, {
465
- path: _path + ".content",
466
- expected: "string",
467
- value: input.content
468
- })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
469
- path: _path + ".name",
470
- expected: "string & PascalCasePattern",
471
- value: input.name
472
- })) || _report(_exceptionable, {
473
- path: _path + ".name",
474
- expected: "(string & PascalCasePattern)",
475
- value: input.name
476
- }), "string" === typeof input.content || _report(_exceptionable, {
477
- path: _path + ".content",
478
- expected: "string",
479
- value: input.content
480
- })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
481
- path: _path + ".name",
482
- expected: "string & PascalCasePattern",
483
- value: input.name
484
- })) || _report(_exceptionable, {
485
- path: _path + ".name",
486
- expected: "(string & PascalCasePattern)",
487
- value: input.name
488
- }), "string" === typeof input.content || _report(_exceptionable, {
489
- path: _path + ".content",
490
- expected: "string",
491
- value: input.content
492
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
493
- if (false === __is(input)) {
494
- errors = [];
495
- _report = __typia_transform__validateReport._validateReport(errors);
496
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
497
- path: _path + "",
498
- expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
499
- value: input
500
- })) && _vo0(input, _path + "", true) || _report(true, {
501
- path: _path + "",
502
- expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
503
- value: input
504
- }))(input, "$input", true);
505
- const success = 0 === errors.length;
506
- return success ? {
507
- success,
508
- data: input
509
- } : {
510
- success,
511
- errors,
512
- data: input
513
- };
236
+ functions: [
237
+ {
238
+ name: "process",
239
+ async: false,
240
+ parameters: [
241
+ {
242
+ name: "next",
243
+ description: " Request containing either preliminary data request or complete\ntask",
244
+ required: true,
245
+ schema: {
246
+ $ref: "#/components/schemas/IAutoBeRealizeAuthorizationCorrectApplication.IProps"
247
+ }
248
+ }
249
+ ],
250
+ description: "Process authentication component correction task or preliminary data\nrequests.\n\nFixes TypeScript compilation errors in authentication components through\nsystematic error diagnosis. Provides error analysis, solution guidance, and\ncorrected versions while preserving authentication logic."
514
251
  }
515
- return {
516
- success: true,
517
- data: input
518
- };
519
- }; })()
252
+ ]
253
+ },
254
+ kinds: ["prismaSchemas"],
255
+ state: ctx.state(),
256
+ });
257
+ return yield preliminary.orchestrate(ctx, (out) => __awaiter(this, void 0, void 0, function* () {
258
+ var _a, _b;
259
+ const pointer = {
260
+ value: null,
261
+ };
262
+ const result = yield ctx.conversate(Object.assign({ source: "realizeAuthorizationCorrect", controller: createController({
263
+ model: ctx.model,
264
+ build: (next) => {
265
+ pointer.value = next;
266
+ },
267
+ preliminary,
268
+ }), enforceFunctionCall: true }, (0, transformRealizeAuthorizationCorrectHistory_1.transformRealizeAuthorizationCorrectHistory)({
269
+ authorization: props.authorization,
270
+ template: props.template,
271
+ diagnostics: compiled.diagnostics,
272
+ preliminary,
273
+ })));
274
+ if (pointer.value === null)
275
+ return out(result)(null);
276
+ const correct = Object.assign(Object.assign({}, pointer.value), { decorator: Object.assign(Object.assign({}, pointer.value.decorator), { location: AuthorizationFileSystem_1.AuthorizationFileSystem.decoratorPath(pointer.value.decorator.name) }), provider: Object.assign(Object.assign({}, pointer.value.provider), { location: AuthorizationFileSystem_1.AuthorizationFileSystem.providerPath(pointer.value.provider.name) }), payload: {
277
+ name: pointer.value.payload.name,
278
+ location: AuthorizationFileSystem_1.AuthorizationFileSystem.payloadPath(pointer.value.payload.name),
279
+ content: yield compiler.typescript.beautify(pointer.value.payload.content),
280
+ }, actor: props.authorization.actor });
281
+ ctx.dispatch(Object.assign(Object.assign({}, pointer.value), { type: "realizeAuthorizationCorrect", id: (0, uuid_1.v7)(), created_at: new Date().toISOString(), authorization: correct, result: compiled, metric: result.metric, tokenUsage: result.tokenUsage, step: (_b = (_a = ctx.state().test) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0 }));
282
+ return out(result)(yield orchestrateRealizeAuthorizationCorrect(ctx, {
283
+ authorization: correct,
284
+ prismaClient: props.prismaClient,
285
+ template: props.template,
286
+ }, life - 1));
287
+ }));
288
+ });
289
+ }
290
+ function createController(props) {
291
+ (0, assertSchemaModel_1.assertSchemaModel)(props.model);
292
+ const validate = (input) => {
293
+ const result = (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getPrismaSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io2 = input => "complete" === input.type && "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io3(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io4(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io5(input.payload)); const _io3 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io4 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io5 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _iu0 = input => (() => {
294
+ if ("getPrismaSchemas" === input.type)
295
+ return _io1(input);
296
+ else if ("complete" === input.type)
297
+ return _io2(input);
298
+ else
299
+ return false;
300
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.thinking || _report(_exceptionable, {
301
+ path: _path + ".thinking",
302
+ expected: "string",
303
+ value: input.thinking
304
+ }), ("object" === typeof input.request && null !== input.request || _report(_exceptionable, {
305
+ path: _path + ".request",
306
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
307
+ value: input.request
308
+ })) && _vu0(input.request, _path + ".request", true && _exceptionable) || _report(_exceptionable, {
309
+ path: _path + ".request",
310
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
311
+ value: input.request
312
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["getPrismaSchemas" === input.type || _report(_exceptionable, {
313
+ path: _path + ".type",
314
+ expected: "\"getPrismaSchemas\"",
315
+ value: input.type
316
+ }), (Array.isArray(input.schemaNames) || _report(_exceptionable, {
317
+ path: _path + ".schemaNames",
318
+ expected: "(Array<string> & MinItems<1>)",
319
+ value: input.schemaNames
320
+ })) && ((1 <= input.schemaNames.length || _report(_exceptionable, {
321
+ path: _path + ".schemaNames",
322
+ expected: "Array<> & MinItems<1>",
323
+ value: input.schemaNames
324
+ })) && input.schemaNames.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
325
+ path: _path + ".schemaNames[" + _index2 + "]",
326
+ expected: "string",
327
+ value: elem
328
+ })).every(flag => flag)) || _report(_exceptionable, {
329
+ path: _path + ".schemaNames",
330
+ expected: "(Array<string> & MinItems<1>)",
331
+ value: input.schemaNames
332
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["complete" === input.type || _report(_exceptionable, {
333
+ path: _path + ".type",
334
+ expected: "\"complete\"",
335
+ value: input.type
336
+ }), "string" === typeof input.error_analysis || _report(_exceptionable, {
337
+ path: _path + ".error_analysis",
338
+ expected: "string",
339
+ value: input.error_analysis
340
+ }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
341
+ path: _path + ".solution_guidance",
342
+ expected: "string",
343
+ value: input.solution_guidance
344
+ }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
345
+ path: _path + ".provider",
346
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IProvider",
347
+ value: input.provider
348
+ })) && _vo3(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
349
+ path: _path + ".provider",
350
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IProvider",
351
+ value: input.provider
352
+ }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
353
+ path: _path + ".decorator",
354
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
355
+ value: input.decorator
356
+ })) && _vo4(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
357
+ path: _path + ".decorator",
358
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
359
+ value: input.decorator
360
+ }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
361
+ path: _path + ".payload",
362
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
363
+ value: input.payload
364
+ })) && _vo5(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
365
+ path: _path + ".payload",
366
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
367
+ value: input.payload
368
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
369
+ path: _path + ".name",
370
+ expected: "string & CamelCasePattern",
371
+ value: input.name
372
+ })) || _report(_exceptionable, {
373
+ path: _path + ".name",
374
+ expected: "(string & CamelCasePattern)",
375
+ value: input.name
376
+ }), "string" === typeof input.content || _report(_exceptionable, {
377
+ path: _path + ".content",
378
+ expected: "string",
379
+ value: input.content
380
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
381
+ path: _path + ".name",
382
+ expected: "string & PascalCasePattern",
383
+ value: input.name
384
+ })) || _report(_exceptionable, {
385
+ path: _path + ".name",
386
+ expected: "(string & PascalCasePattern)",
387
+ value: input.name
388
+ }), "string" === typeof input.content || _report(_exceptionable, {
389
+ path: _path + ".content",
390
+ expected: "string",
391
+ value: input.content
392
+ })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
393
+ path: _path + ".name",
394
+ expected: "string & PascalCasePattern",
395
+ value: input.name
396
+ })) || _report(_exceptionable, {
397
+ path: _path + ".name",
398
+ expected: "(string & PascalCasePattern)",
399
+ value: input.name
400
+ }), "string" === typeof input.content || _report(_exceptionable, {
401
+ path: _path + ".content",
402
+ expected: "string",
403
+ value: input.content
404
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
405
+ if ("getPrismaSchemas" === input.type)
406
+ return _vo1(input, _path, true && _exceptionable);
407
+ else if ("complete" === input.type)
408
+ return _vo2(input, _path, true && _exceptionable);
409
+ else
410
+ return _report(_exceptionable, {
411
+ path: _path,
412
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
413
+ value: input
414
+ });
415
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
416
+ if (false === __is(input)) {
417
+ errors = [];
418
+ _report = __typia_transform__validateReport._validateReport(errors);
419
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
420
+ path: _path + "",
421
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
422
+ value: input
423
+ })) && _vo0(input, _path + "", true) || _report(true, {
424
+ path: _path + "",
425
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
426
+ value: input
427
+ }))(input, "$input", true);
428
+ const success = 0 === errors.length;
429
+ return success ? {
430
+ success,
431
+ data: input
432
+ } : {
433
+ success,
434
+ errors,
435
+ data: input
436
+ };
520
437
  }
521
- ]
522
- },
523
- gemini: {
524
- model: "gemini",
525
- options: {
526
- reference: true,
527
- separate: null
438
+ return {
439
+ success: true,
440
+ data: input
441
+ };
442
+ }; })()(input);
443
+ if (result.success === false || result.data.request.type === "complete")
444
+ return result;
445
+ return props.preliminary.validate({
446
+ thinking: result.data.thinking,
447
+ request: result.data.request,
448
+ });
449
+ };
450
+ const application = collection[props.model === "chatgpt"
451
+ ? "chatgpt"
452
+ : props.model === "gemini"
453
+ ? "gemini"
454
+ : "claude"](validate);
455
+ return {
456
+ protocol: "class",
457
+ name: SOURCE,
458
+ application,
459
+ execute: {
460
+ process: (next) => {
461
+ if (next.request.type === "complete")
462
+ props.build(next.request);
463
+ },
528
464
  },
529
- functions: [
530
- {
531
- name: "correctDecorator",
532
- parameters: {
533
- description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
534
- type: "object",
535
- properties: {
536
- error_analysis: {
537
- description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting.",
538
- type: "string"
539
- },
540
- solution_guidance: {
541
- description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations.",
542
- type: "string"
543
- },
544
- provider: {
545
- description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
546
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
547
- },
548
- decorator: {
549
- description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
550
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
465
+ };
466
+ }
467
+ const collection = {
468
+ chatgpt: (validate) => (() => {
469
+ const application = {
470
+ model: "chatgpt",
471
+ options: {
472
+ reference: true,
473
+ strict: false,
474
+ separate: null
475
+ },
476
+ functions: [
477
+ {
478
+ name: "process",
479
+ parameters: {
480
+ description: " Request containing either preliminary data request or complete\ntask\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
481
+ type: "object",
482
+ properties: {
483
+ thinking: {
484
+ description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on your\ncurrent state and explain your reasoning:\n\nFor preliminary requests (getAnalysisFiles, getPrismaSchemas, etc.):\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature completion.",
485
+ type: "string"
486
+ },
487
+ request: {
488
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getPrismaSchemas) or final error correction (complete). When preliminary\nreturns empty array, that type is removed from the union, physically\npreventing repeated calls.",
489
+ anyOf: [
490
+ {
491
+ $ref: "#/$defs/IAutoBePreliminaryGetPrismaSchemas"
492
+ },
493
+ {
494
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationCorrectApplication.IComplete"
495
+ }
496
+ ],
497
+ "x-discriminator": {
498
+ propertyName: "type",
499
+ mapping: {
500
+ getPrismaSchemas: "#/$defs/IAutoBePreliminaryGetPrismaSchemas",
501
+ complete: "#/$defs/IAutoBeRealizeAuthorizationCorrectApplication.IComplete"
502
+ }
503
+ }
504
+ }
551
505
  },
552
- payload: {
553
- description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
554
- $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
506
+ required: [
507
+ "thinking",
508
+ "request"
509
+ ],
510
+ additionalProperties: false,
511
+ $defs: {
512
+ IAutoBePreliminaryGetPrismaSchemas: {
513
+ description: "Request to retrieve Prisma database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific Prisma table\nschemas needed for generating type-safe API operations.",
514
+ type: "object",
515
+ properties: {
516
+ type: {
517
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPrismaSchemas\" indicates this is a preliminary\ndata request for Prisma schemas.",
518
+ type: "string",
519
+ "enum": [
520
+ "getPrismaSchemas"
521
+ ]
522
+ },
523
+ schemaNames: {
524
+ description: "List of Prisma table names to retrieve.\n\nTable names from the Prisma schema file representing database entities\n(e.g., \"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls.\n\n\n@minItems 1",
525
+ type: "array",
526
+ items: {
527
+ type: "string"
528
+ }
529
+ }
530
+ },
531
+ required: [
532
+ "type",
533
+ "schemaNames"
534
+ ]
535
+ },
536
+ "IAutoBeRealizeAuthorizationCorrectApplication.IComplete": {
537
+ description: "Request to fix authentication component errors.\n\nExecutes targeted error correction to resolve TypeScript compilation issues\nin provider, decorator, and payload type. Applies systematic fixes while\npreserving all authentication logic and business requirements.",
538
+ type: "object",
539
+ properties: {
540
+ type: {
541
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request.",
542
+ type: "string",
543
+ "enum": [
544
+ "complete"
545
+ ]
546
+ },
547
+ error_analysis: {
548
+ description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting.",
549
+ type: "string"
550
+ },
551
+ solution_guidance: {
552
+ description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations.",
553
+ type: "string"
554
+ },
555
+ provider: {
556
+ description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
557
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IProvider"
558
+ },
559
+ decorator: {
560
+ description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
561
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IDecorator"
562
+ },
563
+ payload: {
564
+ description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
565
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IPayloadType"
566
+ }
567
+ },
568
+ required: [
569
+ "type",
570
+ "error_analysis",
571
+ "solution_guidance",
572
+ "provider",
573
+ "decorator",
574
+ "payload"
575
+ ]
576
+ },
577
+ "IAutoBeRealizeAuthorizationWriteApplication.IProvider": {
578
+ type: "object",
579
+ properties: {
580
+ name: {
581
+ description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention.\n\n\n@pattern ^[a-z][a-zA-Z0-9]*$",
582
+ type: "string"
583
+ },
584
+ content: {
585
+ description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data.",
586
+ type: "string"
587
+ }
588
+ },
589
+ required: [
590
+ "name",
591
+ "content"
592
+ ]
593
+ },
594
+ "IAutoBeRealizeAuthorizationWriteApplication.IDecorator": {
595
+ type: "object",
596
+ properties: {
597
+ name: {
598
+ description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention.\n\n\n@pattern ^[A-Z][a-zA-Z0-9]*$",
599
+ type: "string"
600
+ },
601
+ content: {
602
+ description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
603
+ type: "string"
604
+ }
605
+ },
606
+ required: [
607
+ "name",
608
+ "content"
609
+ ]
610
+ },
611
+ "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType": {
612
+ type: "object",
613
+ properties: {
614
+ name: {
615
+ description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention.\n\n\n@pattern ^[A-Z][a-zA-Z0-9]*$",
616
+ type: "string"
617
+ },
618
+ content: {
619
+ description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures.",
620
+ type: "string"
621
+ }
622
+ },
623
+ required: [
624
+ "name",
625
+ "content"
626
+ ]
627
+ }
555
628
  }
556
629
  },
557
- required: [
558
- "error_analysis",
559
- "solution_guidance",
560
- "provider",
561
- "decorator",
562
- "payload"
563
- ],
564
- additionalProperties: false,
565
- $defs: {
566
- "IAutoBeRealizeAuthorizationApplication.IProvider": {
567
- type: "object",
568
- properties: {
569
- name: {
570
- description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention.\n\n\n@pattern ^[a-z][a-zA-Z0-9]*$",
571
- type: "string"
572
- },
573
- content: {
574
- description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data.",
575
- type: "string"
576
- }
630
+ description: "Process authentication component correction task or preliminary data\nrequests.\n\nFixes TypeScript compilation errors in authentication components through\nsystematic error diagnosis. Provides error analysis, solution guidance, and\ncorrected versions while preserving authentication logic.",
631
+ validate: (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getPrismaSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io2 = input => "complete" === input.type && "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io3(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io4(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io5(input.payload)); const _io3 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io4 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io5 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _iu0 = input => (() => {
632
+ if ("getPrismaSchemas" === input.type)
633
+ return _io1(input);
634
+ else if ("complete" === input.type)
635
+ return _io2(input);
636
+ else
637
+ return false;
638
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.thinking || _report(_exceptionable, {
639
+ path: _path + ".thinking",
640
+ expected: "string",
641
+ value: input.thinking
642
+ }), ("object" === typeof input.request && null !== input.request || _report(_exceptionable, {
643
+ path: _path + ".request",
644
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
645
+ value: input.request
646
+ })) && _vu0(input.request, _path + ".request", true && _exceptionable) || _report(_exceptionable, {
647
+ path: _path + ".request",
648
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
649
+ value: input.request
650
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["getPrismaSchemas" === input.type || _report(_exceptionable, {
651
+ path: _path + ".type",
652
+ expected: "\"getPrismaSchemas\"",
653
+ value: input.type
654
+ }), (Array.isArray(input.schemaNames) || _report(_exceptionable, {
655
+ path: _path + ".schemaNames",
656
+ expected: "(Array<string> & MinItems<1>)",
657
+ value: input.schemaNames
658
+ })) && ((1 <= input.schemaNames.length || _report(_exceptionable, {
659
+ path: _path + ".schemaNames",
660
+ expected: "Array<> & MinItems<1>",
661
+ value: input.schemaNames
662
+ })) && input.schemaNames.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
663
+ path: _path + ".schemaNames[" + _index2 + "]",
664
+ expected: "string",
665
+ value: elem
666
+ })).every(flag => flag)) || _report(_exceptionable, {
667
+ path: _path + ".schemaNames",
668
+ expected: "(Array<string> & MinItems<1>)",
669
+ value: input.schemaNames
670
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["complete" === input.type || _report(_exceptionable, {
671
+ path: _path + ".type",
672
+ expected: "\"complete\"",
673
+ value: input.type
674
+ }), "string" === typeof input.error_analysis || _report(_exceptionable, {
675
+ path: _path + ".error_analysis",
676
+ expected: "string",
677
+ value: input.error_analysis
678
+ }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
679
+ path: _path + ".solution_guidance",
680
+ expected: "string",
681
+ value: input.solution_guidance
682
+ }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
683
+ path: _path + ".provider",
684
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IProvider",
685
+ value: input.provider
686
+ })) && _vo3(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
687
+ path: _path + ".provider",
688
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IProvider",
689
+ value: input.provider
690
+ }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
691
+ path: _path + ".decorator",
692
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
693
+ value: input.decorator
694
+ })) && _vo4(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
695
+ path: _path + ".decorator",
696
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
697
+ value: input.decorator
698
+ }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
699
+ path: _path + ".payload",
700
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
701
+ value: input.payload
702
+ })) && _vo5(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
703
+ path: _path + ".payload",
704
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
705
+ value: input.payload
706
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
707
+ path: _path + ".name",
708
+ expected: "string & CamelCasePattern",
709
+ value: input.name
710
+ })) || _report(_exceptionable, {
711
+ path: _path + ".name",
712
+ expected: "(string & CamelCasePattern)",
713
+ value: input.name
714
+ }), "string" === typeof input.content || _report(_exceptionable, {
715
+ path: _path + ".content",
716
+ expected: "string",
717
+ value: input.content
718
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
719
+ path: _path + ".name",
720
+ expected: "string & PascalCasePattern",
721
+ value: input.name
722
+ })) || _report(_exceptionable, {
723
+ path: _path + ".name",
724
+ expected: "(string & PascalCasePattern)",
725
+ value: input.name
726
+ }), "string" === typeof input.content || _report(_exceptionable, {
727
+ path: _path + ".content",
728
+ expected: "string",
729
+ value: input.content
730
+ })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
731
+ path: _path + ".name",
732
+ expected: "string & PascalCasePattern",
733
+ value: input.name
734
+ })) || _report(_exceptionable, {
735
+ path: _path + ".name",
736
+ expected: "(string & PascalCasePattern)",
737
+ value: input.name
738
+ }), "string" === typeof input.content || _report(_exceptionable, {
739
+ path: _path + ".content",
740
+ expected: "string",
741
+ value: input.content
742
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
743
+ if ("getPrismaSchemas" === input.type)
744
+ return _vo1(input, _path, true && _exceptionable);
745
+ else if ("complete" === input.type)
746
+ return _vo2(input, _path, true && _exceptionable);
747
+ else
748
+ return _report(_exceptionable, {
749
+ path: _path,
750
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
751
+ value: input
752
+ });
753
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
754
+ if (false === __is(input)) {
755
+ errors = [];
756
+ _report = __typia_transform__validateReport._validateReport(errors);
757
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
758
+ path: _path + "",
759
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
760
+ value: input
761
+ })) && _vo0(input, _path + "", true) || _report(true, {
762
+ path: _path + "",
763
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
764
+ value: input
765
+ }))(input, "$input", true);
766
+ const success = 0 === errors.length;
767
+ return success ? {
768
+ success,
769
+ data: input
770
+ } : {
771
+ success,
772
+ errors,
773
+ data: input
774
+ };
775
+ }
776
+ return {
777
+ success: true,
778
+ data: input
779
+ };
780
+ }; })()
781
+ }
782
+ ]
783
+ };
784
+ __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
785
+ validate: {
786
+ process: validate,
787
+ },
788
+ }), { equals: false }));
789
+ return application;
790
+ })(),
791
+ claude: (validate) => (() => {
792
+ const application = {
793
+ model: "claude",
794
+ options: {
795
+ reference: true,
796
+ separate: null
797
+ },
798
+ functions: [
799
+ {
800
+ name: "process",
801
+ parameters: {
802
+ description: " Request containing either preliminary data request or complete\ntask\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
803
+ type: "object",
804
+ properties: {
805
+ thinking: {
806
+ description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on your\ncurrent state and explain your reasoning:\n\nFor preliminary requests (getAnalysisFiles, getPrismaSchemas, etc.):\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature completion.",
807
+ type: "string"
577
808
  },
578
- required: [
579
- "name",
580
- "content"
581
- ]
809
+ request: {
810
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getPrismaSchemas) or final error correction (complete). When preliminary\nreturns empty array, that type is removed from the union, physically\npreventing repeated calls.",
811
+ oneOf: [
812
+ {
813
+ $ref: "#/$defs/IAutoBePreliminaryGetPrismaSchemas"
814
+ },
815
+ {
816
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationCorrectApplication.IComplete"
817
+ }
818
+ ],
819
+ discriminator: {
820
+ propertyName: "type",
821
+ mapping: {
822
+ getPrismaSchemas: "#/$defs/IAutoBePreliminaryGetPrismaSchemas",
823
+ complete: "#/$defs/IAutoBeRealizeAuthorizationCorrectApplication.IComplete"
824
+ }
825
+ }
826
+ }
582
827
  },
583
- "IAutoBeRealizeAuthorizationApplication.IDecorator": {
584
- type: "object",
585
- properties: {
586
- name: {
587
- description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention.\n\n\n@pattern ^[A-Z][a-zA-Z0-9]*$",
588
- type: "string"
828
+ required: [
829
+ "thinking",
830
+ "request"
831
+ ],
832
+ additionalProperties: false,
833
+ $defs: {
834
+ IAutoBePreliminaryGetPrismaSchemas: {
835
+ description: "Request to retrieve Prisma database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific Prisma table\nschemas needed for generating type-safe API operations.",
836
+ type: "object",
837
+ properties: {
838
+ type: {
839
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPrismaSchemas\" indicates this is a preliminary\ndata request for Prisma schemas.",
840
+ "const": "getPrismaSchemas"
841
+ },
842
+ schemaNames: {
843
+ description: "List of Prisma table names to retrieve.\n\nTable names from the Prisma schema file representing database entities\n(e.g., \"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls.",
844
+ type: "array",
845
+ items: {
846
+ type: "string"
847
+ },
848
+ minItems: 1
849
+ }
589
850
  },
590
- content: {
591
- description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
592
- type: "string"
593
- }
851
+ required: [
852
+ "type",
853
+ "schemaNames"
854
+ ]
594
855
  },
595
- required: [
596
- "name",
597
- "content"
598
- ]
599
- },
600
- "IAutoBeRealizeAuthorizationApplication.IPayloadType": {
601
- type: "object",
602
- properties: {
603
- name: {
604
- description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention.\n\n\n@pattern ^[A-Z][a-zA-Z0-9]*$",
605
- type: "string"
856
+ "IAutoBeRealizeAuthorizationCorrectApplication.IComplete": {
857
+ description: "Request to fix authentication component errors.\n\nExecutes targeted error correction to resolve TypeScript compilation issues\nin provider, decorator, and payload type. Applies systematic fixes while\npreserving all authentication logic and business requirements.",
858
+ type: "object",
859
+ properties: {
860
+ type: {
861
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request.",
862
+ "const": "complete"
863
+ },
864
+ error_analysis: {
865
+ description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting.",
866
+ type: "string"
867
+ },
868
+ solution_guidance: {
869
+ description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations.",
870
+ type: "string"
871
+ },
872
+ provider: {
873
+ description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
874
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IProvider"
875
+ },
876
+ decorator: {
877
+ description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
878
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IDecorator"
879
+ },
880
+ payload: {
881
+ description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
882
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IPayloadType"
883
+ }
606
884
  },
607
- content: {
608
- description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures.",
609
- type: "string"
610
- }
885
+ required: [
886
+ "type",
887
+ "error_analysis",
888
+ "solution_guidance",
889
+ "provider",
890
+ "decorator",
891
+ "payload"
892
+ ]
611
893
  },
612
- required: [
613
- "name",
614
- "content"
615
- ]
894
+ "IAutoBeRealizeAuthorizationWriteApplication.IProvider": {
895
+ type: "object",
896
+ properties: {
897
+ name: {
898
+ description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention.",
899
+ type: "string",
900
+ pattern: "^[a-z][a-zA-Z0-9]*$"
901
+ },
902
+ content: {
903
+ description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data.",
904
+ type: "string"
905
+ }
906
+ },
907
+ required: [
908
+ "name",
909
+ "content"
910
+ ]
911
+ },
912
+ "IAutoBeRealizeAuthorizationWriteApplication.IDecorator": {
913
+ type: "object",
914
+ properties: {
915
+ name: {
916
+ description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention.",
917
+ type: "string",
918
+ pattern: "^[A-Z][a-zA-Z0-9]*$"
919
+ },
920
+ content: {
921
+ description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
922
+ type: "string"
923
+ }
924
+ },
925
+ required: [
926
+ "name",
927
+ "content"
928
+ ]
929
+ },
930
+ "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType": {
931
+ type: "object",
932
+ properties: {
933
+ name: {
934
+ description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention.",
935
+ type: "string",
936
+ pattern: "^[A-Z][a-zA-Z0-9]*$"
937
+ },
938
+ content: {
939
+ description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures.",
940
+ type: "string"
941
+ }
942
+ },
943
+ required: [
944
+ "name",
945
+ "content"
946
+ ]
947
+ }
616
948
  }
617
- }
618
- },
619
- description: "Corrects TypeScript compilation errors in authentication components.\n\nThis method analyzes and fixes compilation errors in previously generated\nauthentication provider, decorator, and payload type implementations. It\nperforms systematic error diagnosis and generates corrected versions of\nall three components while maintaining their interconnected functionality.\n\nThe correction process includes:\n- TypeScript error analysis and categorization by component\n- Identification of type mismatches, import issues, and syntax errors\n- Clear solution guidance for each identified problem\n- Regeneration of all components with fixes applied\n\nThe corrected components maintain the same naming conventions and\narchitectural patterns as the original generation while resolving all\ncompilation issues.",
620
- validate: (() => { const _io0 = input => "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io1(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.error_analysis || _report(_exceptionable, {
621
- path: _path + ".error_analysis",
622
- expected: "string",
623
- value: input.error_analysis
624
- }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
625
- path: _path + ".solution_guidance",
626
- expected: "string",
627
- value: input.solution_guidance
628
- }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
629
- path: _path + ".provider",
630
- expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
631
- value: input.provider
632
- })) && _vo1(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
633
- path: _path + ".provider",
634
- expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
635
- value: input.provider
636
- }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
637
- path: _path + ".decorator",
638
- expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
639
- value: input.decorator
640
- })) && _vo2(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
641
- path: _path + ".decorator",
642
- expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
643
- value: input.decorator
644
- }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
645
- path: _path + ".payload",
646
- expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
647
- value: input.payload
648
- })) && _vo3(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
649
- path: _path + ".payload",
650
- expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
651
- value: input.payload
652
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
653
- path: _path + ".name",
654
- expected: "string & CamelCasePattern",
655
- value: input.name
656
- })) || _report(_exceptionable, {
657
- path: _path + ".name",
658
- expected: "(string & CamelCasePattern)",
659
- value: input.name
660
- }), "string" === typeof input.content || _report(_exceptionable, {
661
- path: _path + ".content",
662
- expected: "string",
663
- value: input.content
664
- })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
665
- path: _path + ".name",
666
- expected: "string & PascalCasePattern",
667
- value: input.name
668
- })) || _report(_exceptionable, {
669
- path: _path + ".name",
670
- expected: "(string & PascalCasePattern)",
671
- value: input.name
672
- }), "string" === typeof input.content || _report(_exceptionable, {
673
- path: _path + ".content",
674
- expected: "string",
675
- value: input.content
676
- })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
677
- path: _path + ".name",
678
- expected: "string & PascalCasePattern",
679
- value: input.name
680
- })) || _report(_exceptionable, {
681
- path: _path + ".name",
682
- expected: "(string & PascalCasePattern)",
683
- value: input.name
684
- }), "string" === typeof input.content || _report(_exceptionable, {
685
- path: _path + ".content",
686
- expected: "string",
687
- value: input.content
688
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
689
- if (false === __is(input)) {
690
- errors = [];
691
- _report = __typia_transform__validateReport._validateReport(errors);
692
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
693
- path: _path + "",
694
- expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
695
- value: input
696
- })) && _vo0(input, _path + "", true) || _report(true, {
697
- path: _path + "",
698
- expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
699
- value: input
700
- }))(input, "$input", true);
701
- const success = 0 === errors.length;
702
- return success ? {
703
- success,
949
+ },
950
+ description: "Process authentication component correction task or preliminary data\nrequests.\n\nFixes TypeScript compilation errors in authentication components through\nsystematic error diagnosis. Provides error analysis, solution guidance, and\ncorrected versions while preserving authentication logic.",
951
+ validate: (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getPrismaSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io2 = input => "complete" === input.type && "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io3(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io4(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io5(input.payload)); const _io3 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io4 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io5 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _iu0 = input => (() => {
952
+ if ("getPrismaSchemas" === input.type)
953
+ return _io1(input);
954
+ else if ("complete" === input.type)
955
+ return _io2(input);
956
+ else
957
+ return false;
958
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.thinking || _report(_exceptionable, {
959
+ path: _path + ".thinking",
960
+ expected: "string",
961
+ value: input.thinking
962
+ }), ("object" === typeof input.request && null !== input.request || _report(_exceptionable, {
963
+ path: _path + ".request",
964
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
965
+ value: input.request
966
+ })) && _vu0(input.request, _path + ".request", true && _exceptionable) || _report(_exceptionable, {
967
+ path: _path + ".request",
968
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
969
+ value: input.request
970
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["getPrismaSchemas" === input.type || _report(_exceptionable, {
971
+ path: _path + ".type",
972
+ expected: "\"getPrismaSchemas\"",
973
+ value: input.type
974
+ }), (Array.isArray(input.schemaNames) || _report(_exceptionable, {
975
+ path: _path + ".schemaNames",
976
+ expected: "(Array<string> & MinItems<1>)",
977
+ value: input.schemaNames
978
+ })) && ((1 <= input.schemaNames.length || _report(_exceptionable, {
979
+ path: _path + ".schemaNames",
980
+ expected: "Array<> & MinItems<1>",
981
+ value: input.schemaNames
982
+ })) && input.schemaNames.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
983
+ path: _path + ".schemaNames[" + _index2 + "]",
984
+ expected: "string",
985
+ value: elem
986
+ })).every(flag => flag)) || _report(_exceptionable, {
987
+ path: _path + ".schemaNames",
988
+ expected: "(Array<string> & MinItems<1>)",
989
+ value: input.schemaNames
990
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["complete" === input.type || _report(_exceptionable, {
991
+ path: _path + ".type",
992
+ expected: "\"complete\"",
993
+ value: input.type
994
+ }), "string" === typeof input.error_analysis || _report(_exceptionable, {
995
+ path: _path + ".error_analysis",
996
+ expected: "string",
997
+ value: input.error_analysis
998
+ }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
999
+ path: _path + ".solution_guidance",
1000
+ expected: "string",
1001
+ value: input.solution_guidance
1002
+ }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
1003
+ path: _path + ".provider",
1004
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IProvider",
1005
+ value: input.provider
1006
+ })) && _vo3(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
1007
+ path: _path + ".provider",
1008
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IProvider",
1009
+ value: input.provider
1010
+ }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
1011
+ path: _path + ".decorator",
1012
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
1013
+ value: input.decorator
1014
+ })) && _vo4(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
1015
+ path: _path + ".decorator",
1016
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
1017
+ value: input.decorator
1018
+ }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
1019
+ path: _path + ".payload",
1020
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
1021
+ value: input.payload
1022
+ })) && _vo5(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
1023
+ path: _path + ".payload",
1024
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
1025
+ value: input.payload
1026
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1027
+ path: _path + ".name",
1028
+ expected: "string & CamelCasePattern",
1029
+ value: input.name
1030
+ })) || _report(_exceptionable, {
1031
+ path: _path + ".name",
1032
+ expected: "(string & CamelCasePattern)",
1033
+ value: input.name
1034
+ }), "string" === typeof input.content || _report(_exceptionable, {
1035
+ path: _path + ".content",
1036
+ expected: "string",
1037
+ value: input.content
1038
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1039
+ path: _path + ".name",
1040
+ expected: "string & PascalCasePattern",
1041
+ value: input.name
1042
+ })) || _report(_exceptionable, {
1043
+ path: _path + ".name",
1044
+ expected: "(string & PascalCasePattern)",
1045
+ value: input.name
1046
+ }), "string" === typeof input.content || _report(_exceptionable, {
1047
+ path: _path + ".content",
1048
+ expected: "string",
1049
+ value: input.content
1050
+ })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1051
+ path: _path + ".name",
1052
+ expected: "string & PascalCasePattern",
1053
+ value: input.name
1054
+ })) || _report(_exceptionable, {
1055
+ path: _path + ".name",
1056
+ expected: "(string & PascalCasePattern)",
1057
+ value: input.name
1058
+ }), "string" === typeof input.content || _report(_exceptionable, {
1059
+ path: _path + ".content",
1060
+ expected: "string",
1061
+ value: input.content
1062
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
1063
+ if ("getPrismaSchemas" === input.type)
1064
+ return _vo1(input, _path, true && _exceptionable);
1065
+ else if ("complete" === input.type)
1066
+ return _vo2(input, _path, true && _exceptionable);
1067
+ else
1068
+ return _report(_exceptionable, {
1069
+ path: _path,
1070
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
1071
+ value: input
1072
+ });
1073
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
1074
+ if (false === __is(input)) {
1075
+ errors = [];
1076
+ _report = __typia_transform__validateReport._validateReport(errors);
1077
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
1078
+ path: _path + "",
1079
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
1080
+ value: input
1081
+ })) && _vo0(input, _path + "", true) || _report(true, {
1082
+ path: _path + "",
1083
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
1084
+ value: input
1085
+ }))(input, "$input", true);
1086
+ const success = 0 === errors.length;
1087
+ return success ? {
1088
+ success,
1089
+ data: input
1090
+ } : {
1091
+ success,
1092
+ errors,
1093
+ data: input
1094
+ };
1095
+ }
1096
+ return {
1097
+ success: true,
704
1098
  data: input
705
- } : {
706
- success,
707
- errors,
1099
+ };
1100
+ }; })()
1101
+ }
1102
+ ]
1103
+ };
1104
+ __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
1105
+ validate: {
1106
+ process: validate,
1107
+ },
1108
+ }), { equals: false }));
1109
+ return application;
1110
+ })(),
1111
+ gemini: (validate) => (() => {
1112
+ const application = {
1113
+ model: "gemini",
1114
+ options: {
1115
+ reference: true,
1116
+ separate: null
1117
+ },
1118
+ functions: [
1119
+ {
1120
+ name: "process",
1121
+ parameters: {
1122
+ description: " Request containing either preliminary data request or complete\ntask\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
1123
+ type: "object",
1124
+ properties: {
1125
+ thinking: {
1126
+ description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on your\ncurrent state and explain your reasoning:\n\nFor preliminary requests (getAnalysisFiles, getPrismaSchemas, etc.):\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature completion.",
1127
+ type: "string"
1128
+ },
1129
+ request: {
1130
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getPrismaSchemas) or final error correction (complete). When preliminary\nreturns empty array, that type is removed from the union, physically\npreventing repeated calls.",
1131
+ anyOf: [
1132
+ {
1133
+ $ref: "#/$defs/IAutoBePreliminaryGetPrismaSchemas"
1134
+ },
1135
+ {
1136
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationCorrectApplication.IComplete"
1137
+ }
1138
+ ],
1139
+ "x-discriminator": {
1140
+ propertyName: "type",
1141
+ mapping: {
1142
+ getPrismaSchemas: "#/$defs/IAutoBePreliminaryGetPrismaSchemas",
1143
+ complete: "#/$defs/IAutoBeRealizeAuthorizationCorrectApplication.IComplete"
1144
+ }
1145
+ }
1146
+ }
1147
+ },
1148
+ required: [
1149
+ "thinking",
1150
+ "request"
1151
+ ],
1152
+ additionalProperties: false,
1153
+ $defs: {
1154
+ IAutoBePreliminaryGetPrismaSchemas: {
1155
+ description: "Request to retrieve Prisma database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific Prisma table\nschemas needed for generating type-safe API operations.",
1156
+ type: "object",
1157
+ properties: {
1158
+ type: {
1159
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPrismaSchemas\" indicates this is a preliminary\ndata request for Prisma schemas.",
1160
+ type: "string",
1161
+ "enum": [
1162
+ "getPrismaSchemas"
1163
+ ]
1164
+ },
1165
+ schemaNames: {
1166
+ description: "List of Prisma table names to retrieve.\n\nTable names from the Prisma schema file representing database entities\n(e.g., \"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls.",
1167
+ type: "array",
1168
+ items: {
1169
+ type: "string"
1170
+ },
1171
+ minItems: 1
1172
+ }
1173
+ },
1174
+ required: [
1175
+ "type",
1176
+ "schemaNames"
1177
+ ]
1178
+ },
1179
+ "IAutoBeRealizeAuthorizationCorrectApplication.IComplete": {
1180
+ description: "Request to fix authentication component errors.\n\nExecutes targeted error correction to resolve TypeScript compilation issues\nin provider, decorator, and payload type. Applies systematic fixes while\npreserving all authentication logic and business requirements.",
1181
+ type: "object",
1182
+ properties: {
1183
+ type: {
1184
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request.",
1185
+ type: "string",
1186
+ "enum": [
1187
+ "complete"
1188
+ ]
1189
+ },
1190
+ error_analysis: {
1191
+ description: "Step 1: TypeScript compilation error analysis and diagnosis.\n\nAI identifies and categorizes all compilation errors (type mismatches,\nimport issues, syntax errors) by component (providers/decorator/payload).\nLists specific error messages with their locations and types for\nsystematic troubleshooting.",
1192
+ type: "string"
1193
+ },
1194
+ solution_guidance: {
1195
+ description: "Step 2: Solution guidance and fix recommendations.\n\nAI provides clear, actionable instructions on how to resolve each\nidentified error. Includes specific steps like \"add property X to\ninterface Y\", \"update import path from A to B\", or \"change type from C to\nD\". Focus on guidance rather than generating complete code\nimplementations.",
1196
+ type: "string"
1197
+ },
1198
+ provider: {
1199
+ description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
1200
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IProvider"
1201
+ },
1202
+ decorator: {
1203
+ description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
1204
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IDecorator"
1205
+ },
1206
+ payload: {
1207
+ description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
1208
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IPayloadType"
1209
+ }
1210
+ },
1211
+ required: [
1212
+ "type",
1213
+ "error_analysis",
1214
+ "solution_guidance",
1215
+ "provider",
1216
+ "decorator",
1217
+ "payload"
1218
+ ]
1219
+ },
1220
+ "IAutoBeRealizeAuthorizationWriteApplication.IProvider": {
1221
+ type: "object",
1222
+ properties: {
1223
+ name: {
1224
+ description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.\n\nDO: Use camelCase naming convention.",
1225
+ type: "string",
1226
+ pattern: "^[a-z][a-zA-Z0-9]*$"
1227
+ },
1228
+ content: {
1229
+ description: "Complete TypeScript code for the authentication Provider function. Must\ninclude: JWT token verification using jwtAuthorize function, role type\nchecking against payload.type, database query using\nMyGlobal.prisma.{tableName} pattern to verify user existence, and proper\nerror handling with ForbiddenException and UnauthorizedException. The\nfunction should return the authenticated user payload data.",
1230
+ type: "string"
1231
+ }
1232
+ },
1233
+ required: [
1234
+ "name",
1235
+ "content"
1236
+ ]
1237
+ },
1238
+ "IAutoBeRealizeAuthorizationWriteApplication.IDecorator": {
1239
+ type: "object",
1240
+ properties: {
1241
+ name: {
1242
+ description: "The name of the Decorator to be generated in {Actor}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.\n\nDO: Use PascalCase naming convention.",
1243
+ type: "string",
1244
+ pattern: "^[A-Z][a-zA-Z0-9]*$"
1245
+ },
1246
+ content: {
1247
+ description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
1248
+ type: "string"
1249
+ }
1250
+ },
1251
+ required: [
1252
+ "name",
1253
+ "content"
1254
+ ]
1255
+ },
1256
+ "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType": {
1257
+ type: "object",
1258
+ properties: {
1259
+ name: {
1260
+ description: "The name of the Payload type to be generated in {Actor}Payload format\n(e.g., AdminPayload, UserPayload). This type defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator.\n\nDO: Use PascalCase naming convention.",
1261
+ type: "string",
1262
+ pattern: "^[A-Z][a-zA-Z0-9]*$"
1263
+ },
1264
+ content: {
1265
+ description: "Complete TypeScript code for the Payload type interface in {Actor}Payload\nformat (e.g., AdminPayload, UserPayload). Must include: id field with\nUUID format validation, type field as role discriminator, and proper\ntypia tags for validation. This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator and serves as the TypeScript type for the\nparameter in Controller method signatures.",
1266
+ type: "string"
1267
+ }
1268
+ },
1269
+ required: [
1270
+ "name",
1271
+ "content"
1272
+ ]
1273
+ }
1274
+ }
1275
+ },
1276
+ description: "Process authentication component correction task or preliminary data\nrequests.\n\nFixes TypeScript compilation errors in authentication components through\nsystematic error diagnosis. Provides error analysis, solution guidance, and\ncorrected versions while preserving authentication logic.",
1277
+ validate: (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getPrismaSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io2 = input => "complete" === input.type && "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io3(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io4(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io5(input.payload)); const _io3 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io4 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io5 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _iu0 = input => (() => {
1278
+ if ("getPrismaSchemas" === input.type)
1279
+ return _io1(input);
1280
+ else if ("complete" === input.type)
1281
+ return _io2(input);
1282
+ else
1283
+ return false;
1284
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.thinking || _report(_exceptionable, {
1285
+ path: _path + ".thinking",
1286
+ expected: "string",
1287
+ value: input.thinking
1288
+ }), ("object" === typeof input.request && null !== input.request || _report(_exceptionable, {
1289
+ path: _path + ".request",
1290
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
1291
+ value: input.request
1292
+ })) && _vu0(input.request, _path + ".request", true && _exceptionable) || _report(_exceptionable, {
1293
+ path: _path + ".request",
1294
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
1295
+ value: input.request
1296
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["getPrismaSchemas" === input.type || _report(_exceptionable, {
1297
+ path: _path + ".type",
1298
+ expected: "\"getPrismaSchemas\"",
1299
+ value: input.type
1300
+ }), (Array.isArray(input.schemaNames) || _report(_exceptionable, {
1301
+ path: _path + ".schemaNames",
1302
+ expected: "(Array<string> & MinItems<1>)",
1303
+ value: input.schemaNames
1304
+ })) && ((1 <= input.schemaNames.length || _report(_exceptionable, {
1305
+ path: _path + ".schemaNames",
1306
+ expected: "Array<> & MinItems<1>",
1307
+ value: input.schemaNames
1308
+ })) && input.schemaNames.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
1309
+ path: _path + ".schemaNames[" + _index2 + "]",
1310
+ expected: "string",
1311
+ value: elem
1312
+ })).every(flag => flag)) || _report(_exceptionable, {
1313
+ path: _path + ".schemaNames",
1314
+ expected: "(Array<string> & MinItems<1>)",
1315
+ value: input.schemaNames
1316
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["complete" === input.type || _report(_exceptionable, {
1317
+ path: _path + ".type",
1318
+ expected: "\"complete\"",
1319
+ value: input.type
1320
+ }), "string" === typeof input.error_analysis || _report(_exceptionable, {
1321
+ path: _path + ".error_analysis",
1322
+ expected: "string",
1323
+ value: input.error_analysis
1324
+ }), "string" === typeof input.solution_guidance || _report(_exceptionable, {
1325
+ path: _path + ".solution_guidance",
1326
+ expected: "string",
1327
+ value: input.solution_guidance
1328
+ }), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
1329
+ path: _path + ".provider",
1330
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IProvider",
1331
+ value: input.provider
1332
+ })) && _vo3(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
1333
+ path: _path + ".provider",
1334
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IProvider",
1335
+ value: input.provider
1336
+ }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
1337
+ path: _path + ".decorator",
1338
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
1339
+ value: input.decorator
1340
+ })) && _vo4(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
1341
+ path: _path + ".decorator",
1342
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
1343
+ value: input.decorator
1344
+ }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
1345
+ path: _path + ".payload",
1346
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
1347
+ value: input.payload
1348
+ })) && _vo5(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
1349
+ path: _path + ".payload",
1350
+ expected: "IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
1351
+ value: input.payload
1352
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1353
+ path: _path + ".name",
1354
+ expected: "string & CamelCasePattern",
1355
+ value: input.name
1356
+ })) || _report(_exceptionable, {
1357
+ path: _path + ".name",
1358
+ expected: "(string & CamelCasePattern)",
1359
+ value: input.name
1360
+ }), "string" === typeof input.content || _report(_exceptionable, {
1361
+ path: _path + ".content",
1362
+ expected: "string",
1363
+ value: input.content
1364
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1365
+ path: _path + ".name",
1366
+ expected: "string & PascalCasePattern",
1367
+ value: input.name
1368
+ })) || _report(_exceptionable, {
1369
+ path: _path + ".name",
1370
+ expected: "(string & PascalCasePattern)",
1371
+ value: input.name
1372
+ }), "string" === typeof input.content || _report(_exceptionable, {
1373
+ path: _path + ".content",
1374
+ expected: "string",
1375
+ value: input.content
1376
+ })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1377
+ path: _path + ".name",
1378
+ expected: "string & PascalCasePattern",
1379
+ value: input.name
1380
+ })) || _report(_exceptionable, {
1381
+ path: _path + ".name",
1382
+ expected: "(string & PascalCasePattern)",
1383
+ value: input.name
1384
+ }), "string" === typeof input.content || _report(_exceptionable, {
1385
+ path: _path + ".content",
1386
+ expected: "string",
1387
+ value: input.content
1388
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
1389
+ if ("getPrismaSchemas" === input.type)
1390
+ return _vo1(input, _path, true && _exceptionable);
1391
+ else if ("complete" === input.type)
1392
+ return _vo2(input, _path, true && _exceptionable);
1393
+ else
1394
+ return _report(_exceptionable, {
1395
+ path: _path,
1396
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeAuthorizationCorrectApplication.IComplete)",
1397
+ value: input
1398
+ });
1399
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
1400
+ if (false === __is(input)) {
1401
+ errors = [];
1402
+ _report = __typia_transform__validateReport._validateReport(errors);
1403
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
1404
+ path: _path + "",
1405
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
1406
+ value: input
1407
+ })) && _vo0(input, _path + "", true) || _report(true, {
1408
+ path: _path + "",
1409
+ expected: "IAutoBeRealizeAuthorizationCorrectApplication.IProps",
1410
+ value: input
1411
+ }))(input, "$input", true);
1412
+ const success = 0 === errors.length;
1413
+ return success ? {
1414
+ success,
1415
+ data: input
1416
+ } : {
1417
+ success,
1418
+ errors,
1419
+ data: input
1420
+ };
1421
+ }
1422
+ return {
1423
+ success: true,
708
1424
  data: input
709
1425
  };
710
- }
711
- return {
712
- success: true,
713
- data: input
714
- };
715
- }; })()
716
- }
717
- ]
718
- },
1426
+ }; })()
1427
+ }
1428
+ ]
1429
+ };
1430
+ __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
1431
+ validate: {
1432
+ process: validate,
1433
+ },
1434
+ }), { equals: false }));
1435
+ return application;
1436
+ })(),
719
1437
  };
1438
+ const SOURCE = "realizeAuthorizationCorrect";
720
1439
  //# sourceMappingURL=orchestrateRealizeAuthorizationCorrect.js.map