@autobe/agent 0.17.1 → 0.18.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 (693) hide show
  1. package/lib/AutoBeMockAgent.d.ts +5 -5
  2. package/lib/agent/src/AutoBeAgent.d.ts +52 -0
  3. package/lib/{AutoBeAgent.js → agent/src/AutoBeAgent.js} +29 -1
  4. package/lib/agent/src/AutoBeAgent.js.map +1 -0
  5. package/lib/agent/src/AutoBeAgentBase.d.ts +18 -0
  6. package/lib/agent/src/AutoBeAgentBase.js.map +1 -0
  7. package/lib/agent/src/AutoBeMockAgent.d.ts +15 -0
  8. package/lib/{AutoBeMockAgent.js → agent/src/AutoBeMockAgent.js} +34 -4
  9. package/lib/agent/src/AutoBeMockAgent.js.map +1 -0
  10. package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +34 -0
  11. package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +1 -0
  12. package/lib/agent/src/context/AutoBeContext.d.ts +41 -0
  13. package/lib/agent/src/context/AutoBeContext.js.map +1 -0
  14. package/lib/agent/src/context/AutoBeState.d.ts +8 -0
  15. package/lib/agent/src/context/AutoBeState.js.map +1 -0
  16. package/lib/agent/src/context/AutoBeTokenUsage.d.ts +173 -0
  17. package/lib/{context → agent/src/context}/AutoBeTokenUsage.js +7 -0
  18. package/lib/agent/src/context/AutoBeTokenUsage.js.map +1 -0
  19. package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +116 -0
  20. package/lib/{context → agent/src/context}/AutoBeTokenUsageComponent.js +19 -2
  21. package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -0
  22. package/lib/agent/src/context/IAutoBeApplication.d.ts +107 -0
  23. package/lib/agent/src/context/IAutoBeApplication.js.map +1 -0
  24. package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +4 -0
  25. package/lib/agent/src/context/IAutoBeApplicationProps.js.map +1 -0
  26. package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +4 -0
  27. package/lib/agent/src/context/IAutoBeApplicationResult.js.map +1 -0
  28. package/lib/agent/src/context/assertSchemaModel.d.ts +2 -0
  29. package/lib/agent/src/context/assertSchemaModel.js.map +1 -0
  30. package/lib/agent/src/factory/createAgenticaHistory.d.ts +7 -0
  31. package/lib/agent/src/factory/createAgenticaHistory.js.map +1 -0
  32. package/lib/agent/src/factory/createAutoBeApplication.d.ts +7 -0
  33. package/lib/agent/src/factory/createAutoBeApplication.js.map +1 -0
  34. package/lib/agent/src/factory/createAutoBeContext.d.ts +19 -0
  35. package/lib/{factory → agent/src/factory}/createAutoBeContext.js +90 -17
  36. package/lib/agent/src/factory/createAutoBeContext.js.map +1 -0
  37. package/lib/agent/src/factory/createAutoBeState.d.ts +3 -0
  38. package/lib/agent/src/factory/createAutoBeState.js.map +1 -0
  39. package/lib/agent/src/factory/getAutoBeGenerated.d.ts +4 -0
  40. package/lib/{factory → agent/src/factory}/getAutoBeGenerated.js +3 -3
  41. package/lib/agent/src/factory/getAutoBeGenerated.js.map +1 -0
  42. package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +7 -0
  43. package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +1 -0
  44. package/lib/agent/src/factory/index.d.ts +1 -0
  45. package/lib/agent/src/factory/index.js.map +1 -0
  46. package/lib/agent/src/index.d.ts +6 -0
  47. package/lib/agent/src/index.js.map +1 -0
  48. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +4 -0
  49. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js +46 -0
  50. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js.map +1 -0
  51. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
  52. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +30 -0
  53. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
  54. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +4 -0
  55. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +49 -0
  56. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
  57. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +5 -0
  58. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js +64 -0
  59. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
  60. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +6 -0
  61. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +265 -0
  62. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
  63. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
  64. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +727 -0
  65. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
  66. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +8 -0
  67. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +242 -0
  68. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
  69. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
  70. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js +3 -0
  71. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
  72. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
  73. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +3 -0
  74. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
  75. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
  76. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js +3 -0
  77. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
  78. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +2 -0
  79. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
  80. package/lib/agent/src/orchestrate/index.d.ts +5 -0
  81. package/lib/agent/src/orchestrate/index.js.map +1 -0
  82. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +3 -0
  83. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
  84. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
  85. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +34 -0
  86. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
  87. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +4 -0
  88. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +62 -0
  89. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
  90. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +5 -0
  91. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +49 -0
  92. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
  93. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +3 -0
  94. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +28 -0
  95. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
  96. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +4 -0
  97. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +51 -0
  98. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
  99. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
  100. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +35 -0
  101. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
  102. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +3 -0
  103. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
  104. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +4 -0
  105. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +28 -0
  106. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
  107. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
  108. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +53 -0
  109. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
  110. package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +5 -0
  111. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterface.js +7 -2
  112. package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -0
  113. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
  114. package/lib/{orchestrate/interface/orchestrateInterfaceOperations.js → agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js} +227 -562
  115. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
  116. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -0
  117. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceComplement.js +20 -32
  118. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
  119. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +5 -0
  120. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceEndpoints.js +40 -41
  121. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
  122. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +4 -0
  123. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceGroups.js +15 -25
  124. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
  125. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +4 -0
  126. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +1768 -0
  127. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
  128. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +5 -0
  129. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1317 -0
  130. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
  131. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +4 -0
  132. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceSchemas.js +59 -71
  133. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
  134. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
  135. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +467 -0
  136. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
  137. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
  138. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +3 -0
  139. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
  140. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +55 -0
  141. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
  142. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +24 -0
  143. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
  144. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +108 -0
  145. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
  146. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +126 -0
  147. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
  148. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +96 -0
  149. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +3 -0
  150. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
  151. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +75 -0
  152. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
  153. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +91 -0
  154. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +3 -0
  155. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
  156. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +6 -0
  157. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
  158. package/lib/agent/src/orchestrate/internal/IProgress.d.ts +4 -0
  159. package/lib/agent/src/orchestrate/internal/IProgress.js +3 -0
  160. package/lib/agent/src/orchestrate/internal/IProgress.js.map +1 -0
  161. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +3 -0
  162. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
  163. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +3 -0
  164. package/lib/{orchestrate → agent/src/orchestrate}/prisma/histories/transformPrismaCorrectHistories.js +1 -1
  165. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
  166. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
  167. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +59 -0
  168. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
  169. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +3 -0
  170. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +48 -0
  171. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
  172. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +5 -0
  173. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrisma.js +30 -13
  174. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -0
  175. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +5 -0
  176. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaComponent.js +43 -44
  177. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
  178. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +4 -0
  179. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaCorrect.js +121 -83
  180. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
  181. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
  182. package/lib/{orchestrate/prisma/orchestratePrismaSchemas.js → agent/src/orchestrate/prisma/orchestratePrismaReview.js} +139 -248
  183. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
  184. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +5 -0
  185. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js +1625 -0
  186. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
  187. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +121 -0
  188. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
  189. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -0
  190. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
  191. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
  192. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js +3 -0
  193. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
  194. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +99 -0
  195. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
  196. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +5 -0
  197. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
  198. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
  199. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +40 -0
  200. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
  201. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
  202. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +80 -0
  203. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
  204. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +7 -0
  205. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.js.map +1 -0
  206. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +13 -0
  207. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +32 -0
  208. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
  209. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +11 -0
  210. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +160 -0
  211. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
  212. package/lib/agent/src/orchestrate/realize/internal/compile.d.ts +7 -0
  213. package/lib/agent/src/orchestrate/realize/internal/compile.js +61 -0
  214. package/lib/agent/src/orchestrate/realize/internal/compile.js.map +1 -0
  215. package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +5 -0
  216. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +113 -0
  217. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -0
  218. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +10 -0
  219. package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorization.js +84 -70
  220. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
  221. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +4 -0
  222. package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +66 -52
  223. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
  224. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -0
  225. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +351 -0
  226. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
  227. package/lib/{orchestrate/realize/orchestrateRealizePlanner.d.ts → agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts} +5 -3
  228. package/lib/{orchestrate/realize/orchestrateRealizePlanner.js → agent/src/orchestrate/realize/orchestrateRealizeScenario.js} +14 -24
  229. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -0
  230. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +9 -0
  231. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +340 -0
  232. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
  233. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +92 -0
  234. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
  235. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +27 -0
  236. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
  237. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +345 -0
  238. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +1 -0
  239. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +56 -0
  240. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +1 -0
  241. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +2 -0
  242. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +1 -0
  243. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.d.ts +79 -0
  244. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js +3 -0
  245. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js.map +1 -0
  246. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
  247. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js +3 -0
  248. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +1 -0
  249. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +276 -0
  250. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js +3 -0
  251. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
  252. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +5 -0
  253. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
  254. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +5 -0
  255. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
  256. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +4 -0
  257. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
  258. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +8 -0
  259. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
  260. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +3 -0
  261. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
  262. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +4 -0
  263. package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/replaceImportStatements.js +1 -0
  264. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
  265. package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +2 -0
  266. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -0
  267. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +1 -0
  268. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  269. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
  270. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  271. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
  272. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  273. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.d.ts +1 -1
  274. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
  275. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.d.ts +1 -1
  276. package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js.map +1 -0
  277. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +3 -0
  278. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +56 -0
  279. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
  280. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestWriteHistories.d.ts +1 -1
  281. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +179 -0
  282. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
  283. package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +5 -0
  284. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTest.js +4 -4
  285. package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -0
  286. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +5 -0
  287. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestCorrect.js +27 -43
  288. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
  289. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +4 -0
  290. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +858 -0
  291. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -0
  292. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +5 -0
  293. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestWrite.js +53 -54
  294. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -0
  295. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +121 -0
  296. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  297. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
  298. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  299. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +134 -0
  300. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
  301. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +7 -0
  302. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
  303. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +113 -0
  304. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  305. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
  306. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  307. package/lib/agent/src/structures/IAutoBeConfig.d.ts +73 -0
  308. package/lib/agent/src/structures/IAutoBeConfig.js.map +1 -0
  309. package/lib/agent/src/structures/IAutoBeProps.d.ts +109 -0
  310. package/lib/agent/src/structures/IAutoBeProps.js.map +1 -0
  311. package/lib/agent/src/structures/IAutoBeVendor.d.ts +87 -0
  312. package/lib/agent/src/structures/IAutoBeVendor.js.map +1 -0
  313. package/lib/agent/src/utils/arrayToRecord.d.ts +17 -0
  314. package/lib/agent/src/utils/arrayToRecord.js.map +1 -0
  315. package/lib/agent/src/utils/backoffRetry.d.ts +22 -0
  316. package/lib/agent/src/utils/backoffRetry.js.map +1 -0
  317. package/lib/agent/src/utils/divideArray.d.ts +4 -0
  318. package/lib/agent/src/utils/divideArray.js.map +1 -0
  319. package/lib/agent/src/utils/emplaceMap.d.ts +1 -0
  320. package/lib/agent/src/utils/emplaceMap.js.map +1 -0
  321. package/lib/{orchestrate/realize/RealizePipe.d.ts → agent/src/utils/pipe.d.ts} +1 -1
  322. package/lib/agent/src/utils/pipe.js.map +1 -0
  323. package/lib/constants/AutoBeSystemPromptConstant.d.ts +18 -16
  324. package/lib/context/AutoBeContext.d.ts +16 -5
  325. package/lib/index.mjs +8876 -4277
  326. package/lib/index.mjs.map +1 -1
  327. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +153 -0
  328. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +3 -0
  329. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +1 -0
  330. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +4 -0
  331. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
  332. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +4 -0
  333. package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -1
  334. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +6 -0
  335. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
  336. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +6 -12
  337. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
  338. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
  339. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
  340. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
  341. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +2 -1
  342. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
  343. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
  344. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
  345. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +1 -1
  346. package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +1 -1
  347. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +5 -0
  348. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
  349. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
  350. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +2 -1
  351. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +6 -2
  352. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +96 -0
  353. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +91 -0
  354. package/lib/orchestrate/internal/IProgress.d.ts +4 -0
  355. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
  356. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +1 -1
  357. package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -1
  358. package/lib/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
  359. package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +1 -1
  360. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +2 -1
  361. package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
  362. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +43 -153
  363. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
  364. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
  365. package/lib/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +7 -0
  366. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +13 -0
  367. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +11 -0
  368. package/lib/orchestrate/realize/internal/compile.d.ts +7 -0
  369. package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -0
  370. package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +91 -0
  371. package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +9 -0
  372. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +10 -3
  373. package/lib/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.d.ts +79 -0
  374. package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
  375. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +276 -0
  376. package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +4 -0
  377. package/lib/orchestrate/test/histories/transformTestHistories.d.ts +3 -0
  378. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +3 -0
  379. package/lib/orchestrate/test/histories/transformTestWriteHistories.d.ts +8 -0
  380. package/lib/orchestrate/test/orchestrateTestScenario.d.ts +2 -2
  381. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +25 -24
  382. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -1
  383. package/package.json +9 -9
  384. package/src/AutoBeAgent.ts +37 -3
  385. package/src/AutoBeMockAgent.ts +41 -11
  386. package/src/constants/AutoBeSystemPromptConstant.ts +18 -16
  387. package/src/context/AutoBeContext.ts +30 -4
  388. package/src/context/AutoBeTokenUsage.ts +8 -0
  389. package/src/context/AutoBeTokenUsageComponent.ts +20 -2
  390. package/src/factory/createAutoBeApplication.ts +3 -11
  391. package/src/factory/createAutoBeContext.ts +64 -1
  392. package/src/factory/getAutoBeGenerated.ts +3 -3
  393. package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +53 -0
  394. package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +34 -0
  395. package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +56 -0
  396. package/src/orchestrate/analyze/orchestrateAnalyze.ts +61 -80
  397. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +89 -0
  398. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +123 -0
  399. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +51 -52
  400. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +108 -0
  401. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +85 -0
  402. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +71 -0
  403. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +40 -0
  404. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +27 -0
  405. package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +45 -22
  406. package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +43 -0
  407. package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +63 -0
  408. package/src/orchestrate/interface/orchestrateInterface.ts +10 -2
  409. package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +106 -0
  410. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +27 -44
  411. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +28 -34
  412. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +15 -32
  413. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +207 -103
  414. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +84 -0
  415. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +72 -82
  416. package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +143 -0
  417. package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +49 -0
  418. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +2 -1
  419. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +6 -2
  420. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +102 -0
  421. package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +98 -0
  422. package/src/orchestrate/internal/IProgress.ts +4 -0
  423. package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +66 -0
  424. package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +2 -2
  425. package/src/orchestrate/prisma/orchestratePrisma.ts +44 -15
  426. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +16 -33
  427. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +96 -58
  428. package/src/orchestrate/prisma/orchestratePrismaReview.ts +118 -0
  429. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +133 -139
  430. package/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.ts +2 -1
  431. package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +108 -0
  432. package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +43 -156
  433. package/src/orchestrate/realize/{transformRealizeAuthorization.ts → histories/transformRealizeAuthorization.ts} +14 -10
  434. package/src/orchestrate/realize/{transformRealizeAuthorizationCorrectHistories.ts → histories/transformRealizeAuthorizationCorrectHistories.ts} +9 -7
  435. package/src/orchestrate/realize/{transformRealizeCoderHistories.ts → histories/transformRealizeCoderHistories.ts} +6 -6
  436. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +47 -0
  437. package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +184 -0
  438. package/src/orchestrate/realize/internal/compile.ts +84 -0
  439. package/src/orchestrate/realize/orchestrateRealize.ts +100 -9
  440. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +45 -57
  441. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +19 -41
  442. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +118 -0
  443. package/src/orchestrate/realize/{orchestrateRealizePlanner.ts → orchestrateRealizeScenario.ts} +15 -15
  444. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +120 -0
  445. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +11 -3
  446. package/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.ts +81 -0
  447. package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts +43 -0
  448. package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +282 -0
  449. package/src/orchestrate/realize/utils/replaceImportStatements.ts +3 -1
  450. package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +5 -9
  451. package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +23 -22
  452. package/src/orchestrate/test/{transformTestCorrectHistories.ts → histories/transformTestCorrectHistories.ts} +2 -2
  453. package/src/orchestrate/test/{transformTestHistories.ts → histories/transformTestHistories.ts} +1 -1
  454. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +70 -0
  455. package/src/orchestrate/test/{transformTestWriteHistories.ts → histories/transformTestWriteHistories.ts} +3 -3
  456. package/src/orchestrate/test/orchestrateTest.ts +5 -6
  457. package/src/orchestrate/test/orchestrateTestCorrect.ts +32 -62
  458. package/src/orchestrate/test/orchestrateTestScenario.ts +95 -158
  459. package/src/orchestrate/test/orchestrateTestWrite.ts +48 -71
  460. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +25 -24
  461. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +3 -1
  462. package/lib/AutoBeAgent.js.map +0 -1
  463. package/lib/AutoBeAgentBase.js.map +0 -1
  464. package/lib/AutoBeMockAgent.js.map +0 -1
  465. package/lib/constants/AutoBeSystemPromptConstant.js.map +0 -1
  466. package/lib/context/AutoBeContext.js.map +0 -1
  467. package/lib/context/AutoBeState.js.map +0 -1
  468. package/lib/context/AutoBeTokenUsage.js.map +0 -1
  469. package/lib/context/AutoBeTokenUsageComponent.js.map +0 -1
  470. package/lib/context/IAutoBeApplication.js.map +0 -1
  471. package/lib/context/IAutoBeApplicationProps.js.map +0 -1
  472. package/lib/context/IAutoBeApplicationResult.js.map +0 -1
  473. package/lib/context/assertSchemaModel.js.map +0 -1
  474. package/lib/factory/createAgenticaHistory.js.map +0 -1
  475. package/lib/factory/createAutoBeApplication.js.map +0 -1
  476. package/lib/factory/createAutoBeContext.js.map +0 -1
  477. package/lib/factory/createAutoBeState.js.map +0 -1
  478. package/lib/factory/getAutoBeGenerated.js.map +0 -1
  479. package/lib/factory/getAutoBeRealizeGenerated.js.map +0 -1
  480. package/lib/factory/index.js.map +0 -1
  481. package/lib/index.js.map +0 -1
  482. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.d.ts +0 -45
  483. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js +0 -27
  484. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js.map +0 -1
  485. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.d.ts +0 -9
  486. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js +0 -3
  487. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js.map +0 -1
  488. package/lib/orchestrate/analyze/orchestrateAnalyze.js +0 -98
  489. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
  490. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.d.ts +0 -5
  491. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js +0 -561
  492. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js.map +0 -1
  493. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.d.ts +0 -12
  494. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js +0 -395
  495. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js.map +0 -1
  496. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +0 -347
  497. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
  498. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.d.ts +0 -68
  499. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js +0 -3
  500. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js.map +0 -1
  501. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.d.ts +0 -5
  502. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js +0 -27
  503. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js.map +0 -1
  504. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.d.ts +0 -12
  505. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js +0 -78
  506. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js.map +0 -1
  507. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.d.ts +0 -16
  508. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js +0 -79
  509. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js.map +0 -1
  510. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
  511. package/lib/orchestrate/index.js.map +0 -1
  512. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
  513. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -62
  514. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
  515. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +0 -28
  516. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
  517. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +0 -28
  518. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
  519. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -28
  520. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
  521. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
  522. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -28
  523. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
  524. package/lib/orchestrate/interface/orchestrateInterface.js.map +0 -1
  525. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
  526. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
  527. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
  528. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
  529. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
  530. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
  531. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
  532. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
  533. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
  534. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
  535. package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
  536. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
  537. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
  538. package/lib/orchestrate/prisma/histories/transformPrismaHistories.d.ts +0 -3
  539. package/lib/orchestrate/prisma/histories/transformPrismaHistories.js +0 -55
  540. package/lib/orchestrate/prisma/histories/transformPrismaHistories.js.map +0 -1
  541. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +0 -48
  542. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
  543. package/lib/orchestrate/prisma/orchestratePrisma.js.map +0 -1
  544. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
  545. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
  546. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
  547. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +0 -1
  548. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
  549. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +0 -1
  550. package/lib/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
  551. package/lib/orchestrate/realize/RealizePipe.js +0 -14
  552. package/lib/orchestrate/realize/RealizePipe.js.map +0 -1
  553. package/lib/orchestrate/realize/orchestrateRealize.js +0 -63
  554. package/lib/orchestrate/realize/orchestrateRealize.js.map +0 -1
  555. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
  556. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
  557. package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +0 -26
  558. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +0 -420
  559. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +0 -1
  560. package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +0 -1
  561. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
  562. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
  563. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
  564. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
  565. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +0 -1
  566. package/lib/orchestrate/realize/transformRealizeAuthorization.d.ts +0 -4
  567. package/lib/orchestrate/realize/transformRealizeAuthorization.js +0 -39
  568. package/lib/orchestrate/realize/transformRealizeAuthorization.js.map +0 -1
  569. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
  570. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js +0 -80
  571. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
  572. package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +0 -7
  573. package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +0 -1
  574. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
  575. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
  576. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
  577. package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
  578. package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
  579. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
  580. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.d.ts +0 -11
  581. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js +0 -221
  582. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js.map +0 -1
  583. package/lib/orchestrate/test/compile/completeTestCode.js.map +0 -1
  584. package/lib/orchestrate/test/compile/filterTestFileName.js.map +0 -1
  585. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
  586. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
  587. package/lib/orchestrate/test/orchestrateTest.js.map +0 -1
  588. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
  589. package/lib/orchestrate/test/orchestrateTestScenario.js +0 -866
  590. package/lib/orchestrate/test/orchestrateTestScenario.js.map +0 -1
  591. package/lib/orchestrate/test/orchestrateTestWrite.js.map +0 -1
  592. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
  593. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
  594. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
  595. package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
  596. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
  597. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
  598. package/lib/orchestrate/test/transformTestCorrectHistories.js.map +0 -1
  599. package/lib/orchestrate/test/transformTestHistories.js.map +0 -1
  600. package/lib/orchestrate/test/transformTestScenarioHistories.d.ts +0 -3
  601. package/lib/orchestrate/test/transformTestScenarioHistories.js +0 -100
  602. package/lib/orchestrate/test/transformTestScenarioHistories.js.map +0 -1
  603. package/lib/orchestrate/test/transformTestWriteHistories.js +0 -178
  604. package/lib/orchestrate/test/transformTestWriteHistories.js.map +0 -1
  605. package/lib/structures/IAutoBeConfig.js.map +0 -1
  606. package/lib/structures/IAutoBeProps.js.map +0 -1
  607. package/lib/structures/IAutoBeVendor.js.map +0 -1
  608. package/lib/utils/arrayToRecord.js.map +0 -1
  609. package/lib/utils/backoffRetry.js.map +0 -1
  610. package/lib/utils/divideArray.js.map +0 -1
  611. package/lib/utils/emplaceMap.js.map +0 -1
  612. package/lib/utils/enforceToolCall.d.ts +0 -3
  613. package/lib/utils/enforceToolCall.js +0 -13
  614. package/lib/utils/enforceToolCall.js.map +0 -1
  615. package/lib/utils/forceRetry.d.ts +0 -1
  616. package/lib/utils/forceRetry.js +0 -26
  617. package/lib/utils/forceRetry.js.map +0 -1
  618. package/lib/utils/pipe.js.map +0 -1
  619. package/src/orchestrate/analyze/AutoBeAnalyzeFileSystem.ts +0 -58
  620. package/src/orchestrate/analyze/AutoBeAnalyzePointer.ts +0 -10
  621. package/src/orchestrate/analyze/orchestrateAnalyzeComposer.ts +0 -112
  622. package/src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts +0 -131
  623. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.ts +0 -75
  624. package/src/orchestrate/analyze/transformAnalyzeReviewerHistories.ts +0 -31
  625. package/src/orchestrate/analyze/transformAnalyzeWriteHistories.ts +0 -94
  626. package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +0 -96
  627. package/src/orchestrate/prisma/histories/transformPrismaHistories.ts +0 -59
  628. package/src/orchestrate/realize/RealizePipe.ts +0 -39
  629. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +0 -182
  630. package/src/orchestrate/realize/writeCodeUntilCompilePassed.ts +0 -308
  631. package/src/orchestrate/test/transformTestScenarioHistories.ts +0 -105
  632. package/src/utils/enforceToolCall.ts +0 -13
  633. package/src/utils/forceRetry.ts +0 -13
  634. /package/lib/{AutoBeAgentBase.js → agent/src/AutoBeAgentBase.js} +0 -0
  635. /package/lib/{constants → agent/src/constants}/AutoBeSystemPromptConstant.js +0 -0
  636. /package/lib/{context → agent/src/context}/AutoBeContext.js +0 -0
  637. /package/lib/{context → agent/src/context}/AutoBeState.js +0 -0
  638. /package/lib/{context → agent/src/context}/IAutoBeApplication.js +0 -0
  639. /package/lib/{context → agent/src/context}/IAutoBeApplicationProps.js +0 -0
  640. /package/lib/{context → agent/src/context}/IAutoBeApplicationResult.js +0 -0
  641. /package/lib/{context → agent/src/context}/assertSchemaModel.js +0 -0
  642. /package/lib/{factory → agent/src/factory}/createAgenticaHistory.js +0 -0
  643. /package/lib/{factory → agent/src/factory}/createAutoBeApplication.js +0 -0
  644. /package/lib/{factory → agent/src/factory}/createAutoBeState.js +0 -0
  645. /package/lib/{factory → agent/src/factory}/getAutoBeRealizeGenerated.js +0 -0
  646. /package/lib/{factory → agent/src/factory}/index.js +0 -0
  647. /package/lib/{index.js → agent/src/index.js} +0 -0
  648. /package/lib/{orchestrate → agent/src/orchestrate}/facade/transformFacadeStateMessage.js +0 -0
  649. /package/lib/{orchestrate → agent/src/orchestrate}/index.js +0 -0
  650. /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfaceAssetHistories.js +0 -0
  651. /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
  652. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
  653. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
  654. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
  655. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
  656. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
  657. /package/lib/{orchestrate → agent/src/orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
  658. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/histories/transformPrismaComponentsHistories.js +0 -0
  659. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
  660. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
  661. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +0 -0
  662. /package/lib/{orchestrate → agent/src/orchestrate}/realize/ProviderCodeComparator.js +0 -0
  663. /package/lib/{orchestrate/realize → agent/src/orchestrate/realize/histories}/transformRealizeCoderHistories.js +0 -0
  664. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
  665. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
  666. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeCoderApplication.js +0 -0
  667. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeCompile.js +0 -0
  668. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -0
  669. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
  670. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
  671. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
  672. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/InternalFileSystem.js +0 -0
  673. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
  674. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/completeTestCode.js +0 -0
  675. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/filterTestFileName.js +0 -0
  676. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestExternalDeclarations.js +0 -0
  677. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
  678. /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.js +0 -0
  679. /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.js +0 -0
  680. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
  681. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
  682. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
  683. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
  684. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
  685. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
  686. /package/lib/{structures → agent/src/structures}/IAutoBeConfig.js +0 -0
  687. /package/lib/{structures → agent/src/structures}/IAutoBeProps.js +0 -0
  688. /package/lib/{structures → agent/src/structures}/IAutoBeVendor.js +0 -0
  689. /package/lib/{utils → agent/src/utils}/arrayToRecord.js +0 -0
  690. /package/lib/{utils → agent/src/utils}/backoffRetry.js +0 -0
  691. /package/lib/{utils → agent/src/utils}/divideArray.js +0 -0
  692. /package/lib/{utils → agent/src/utils}/emplaceMap.js +0 -0
  693. /package/lib/{utils → agent/src/utils}/pipe.js +0 -0
@@ -0,0 +1,1317 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
+ return new (P || (P = Promise))(function (resolve, reject) {
38
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
42
+ });
43
+ };
44
+ var __importDefault = (this && this.__importDefault) || function (mod) {
45
+ return (mod && mod.__esModule) ? mod : { "default": mod };
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.orchestrateInterfaceOperationsReview = orchestrateInterfaceOperationsReview;
49
+ const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
50
+ const typia_1 = __importDefault(require("typia"));
51
+ const transformInterfaceOperationsReviewHistories_1 = require("./histories/transformInterfaceOperationsReviewHistories");
52
+ function orchestrateInterfaceOperationsReview(ctx, operations, progress) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ var _a, _b;
55
+ const pointer = {
56
+ value: null,
57
+ };
58
+ const { tokenUsage } = yield ctx.conversate({
59
+ source: "interfaceOperationsReview",
60
+ histories: (0, transformInterfaceOperationsReviewHistories_1.transformInterfaceOperationsReviewHistories)(ctx, operations),
61
+ controller: createReviewController({
62
+ model: ctx.model,
63
+ build: (next) => {
64
+ pointer.value = next;
65
+ },
66
+ }),
67
+ enforceFunctionCall: false,
68
+ message: "Review the operations",
69
+ });
70
+ if (pointer.value === null)
71
+ throw new Error("Failed to review operations.");
72
+ ctx.dispatch({
73
+ type: "interfaceOperationsReview",
74
+ operations: pointer.value.content,
75
+ review: pointer.value.review,
76
+ plan: pointer.value.plan,
77
+ content: pointer.value.content,
78
+ tokenUsage,
79
+ created_at: new Date().toISOString(),
80
+ step: (_b = (_a = ctx.state().analyze) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
81
+ total: progress.total,
82
+ completed: ++progress.completed,
83
+ });
84
+ return pointer.value.content;
85
+ });
86
+ }
87
+ function createReviewController(props) {
88
+ const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"];
89
+ return {
90
+ protocol: "class",
91
+ name: "review",
92
+ application,
93
+ execute: {
94
+ reviewOperations: (next) => {
95
+ props.build(next);
96
+ },
97
+ },
98
+ };
99
+ }
100
+ const collection = {
101
+ chatgpt: {
102
+ model: "chatgpt",
103
+ options: {
104
+ reference: true,
105
+ strict: false,
106
+ separate: null
107
+ },
108
+ functions: [
109
+ {
110
+ name: "reviewOperations",
111
+ parameters: {
112
+ description: " Collection of operations to review with their validation\nresults\n\n------------------------------\n\nDescription of the current {@link IAutoBeInterfaceOperationsReviewApplication.IProps} type:\n\n> Properties for API operation review and improvement process.\n> \n> Contains both the input operations to be reviewed and the outputs generated\n> by the Interface Operations Review Agent, which will be published as part\n> of the AutoBeInterfaceOperationsReviewEvent.",
113
+ type: "object",
114
+ properties: {
115
+ review: {
116
+ description: "Comprehensive review analysis with prioritized findings.\n\nSystematic assessment organized by severity levels (CRITICAL, HIGH,\nMEDIUM, LOW):\n\n- **Security Analysis**: Authentication boundary violations, exposed\n passwords/tokens, unauthorized data access patterns, SQL injection\n risks\n- **Logic Validation**: Return type consistency (list operations returning\n arrays, single retrieval returning single items), HTTP method semantics\n alignment, parameter usage verification\n- **Schema Compliance**: Field existence in Prisma schema, type accuracy,\n relationship validity, required field handling\n- **Quality Assessment**: Documentation completeness, naming conventions,\n error handling patterns, pagination standards\n\nEach finding includes specific examples, current vs expected behavior,\nand concrete fix recommendations. Critical security issues and logical\ncontradictions are highlighted for immediate attention.",
117
+ type: "string"
118
+ },
119
+ plan: {
120
+ description: "Prioritized action plan for identified issues.\n\nStructured improvement strategy categorized by severity:\n\n- **Immediate Actions (CRITICAL)**: Security vulnerabilities that must be\n fixed before production (password exposure, missing authorization,\n authentication bypass risks)\n- **Required Fixes (HIGH)**: Functional issues affecting API correctness\n (wrong return types, missing required fields, schema mismatches)\n- **Recommended Improvements (MEDIUM)**: Quality enhancements for better\n API design (validation rules, format specifications, consistency)\n- **Optional Enhancements (LOW)**: Documentation and usability improvements\n\nIf all operations pass review without issues, contains: \"No improvements\nrequired. All operations meet AutoBE standards.\"\n\nEach action item includes the specific operation path, the exact change\nneeded, and the rationale for the modification.",
121
+ type: "string"
122
+ },
123
+ content: {
124
+ description: "Production-ready operations with all critical issues resolved.\n\nFinal API operations after systematic enhancement:\n\n- **Security Fixes Applied**: All authentication boundaries enforced,\n sensitive data removed from responses, proper authorization\n implemented\n- **Logic Corrections Made**: Return types match operation intent, HTTP\n methods align with semantics, parameters properly utilized\n- **Schema Alignment Verified**: All fields exist in Prisma schema, types\n correctly mapped, relationships properly defined\n- **Quality Improvements Added**: Enhanced documentation, format\n specifications, validation rules, consistent naming patterns\n\nIf no issues were found during review, this contains the exact original\noperations unchanged. These operations are validated and ready for schema\ngeneration and subsequent implementation phases.",
125
+ type: "array",
126
+ items: {
127
+ $ref: "#/$defs/AutoBeOpenApi.IOperation"
128
+ }
129
+ }
130
+ },
131
+ required: [
132
+ "review",
133
+ "plan",
134
+ "content"
135
+ ],
136
+ additionalProperties: false,
137
+ $defs: {
138
+ "AutoBeOpenApi.IOperation": {
139
+ description: "Operation of the Restful API.\n\nThis interface defines a single API endpoint with its HTTP {@link method},\n{@link path}, {@link parameters path parameters},\n{@link requestBody request body}, and {@link responseBody} structure. It\ncorresponds to an individual operation in the paths section of an OpenAPI\ndocument.\n\nEach operation requires a detailed explanation of its purpose through the\nreason and description fields, making it clear why the API was designed and\nhow it should be used.\n\nAll request bodies and responses for this operation must be object types\nand must reference named types defined in the components section. The\ncontent-type is always `application/json`. For file upload/download\noperations, use `string & tags.Format<\"uri\">` in the appropriate schema\ninstead of binary data formats.\n\nIn OpenAPI, this might represent:\n\n```json\n{\n \"/shoppings/customers/orders\": {\n \"post\": {\n \"description\": \"Create a new order application from shopping cart...\",\n \"parameters\": [...],\n \"requestBody\": {...},\n \"responses\": {...}\n }\n }\n}\n```",
140
+ type: "object",
141
+ properties: {
142
+ specification: {
143
+ description: "Specification of the API operation.\n\nBefore defining the API operation interface, please describe what you're\nplanning to write in this `specification` field.\n\nThe specification must be fully detailed and clear, so that anyone can\nunderstand the purpose and functionality of the API operation and its\nrelated components (e.g., {@link path}, {@link parameters},\n{@link requestBody}).\n\nIMPORTANT: The specification MUST identify which Prisma DB table this\noperation is associated with, helping ensure complete coverage of all\ndatabase entities.",
144
+ type: "string"
145
+ },
146
+ description: {
147
+ description: "Detailed description about the API operation.\n\nIMPORTANT: This field MUST be extensively detailed and MUST reference the\ndescription comments from the related Prisma DB schema tables and\ncolumns. The description should be organized into MULTIPLE PARAGRAPHS\nseparated by line breaks to improve readability and comprehension.\n\nFor example, include separate paragraphs for:\n\n- The purpose and overview of the API operation\n- Security considerations and user permissions\n- Relationship to underlying database entities\n- Validation rules and business logic\n- Related API operations that might be used together with this one\n- Expected behavior and error handling\n\nWhen writing the description, be sure to incorporate the corresponding DB\nschema's description comments, matching the level of detail and style of\nthose comments. This ensures consistency between the API documentation\nand database structure.\n\nIf there's a dependency to other APIs, please describe the dependency API\noperation in this field with detailed reason. For example, if this API\noperation needs a pre-execution of other API operation, it must be\nexplicitly described.\n\n- `GET /shoppings/customers/sales` must be pre-executed to get entire list\n of summarized sales. Detailed sale information would be obtained by\n specifying the sale ID in the path parameter.\n\n> MUST be written in English. Never use other languages.",
148
+ type: "string"
149
+ },
150
+ summary: {
151
+ description: "Short summary of the API operation.\n\nThis should be a concise description of the API operation, typically one\nsentence long. It should provide a quick overview of what the API does\nwithout going into too much detail.\n\nThis summary will be used in the OpenAPI documentation to give users a\nquick understanding of the API operation's purpose.\n\nIMPORTANT: The summary should clearly indicate which Prisma DB table this\noperation relates to, helping to ensure all tables have API coverage.\n\n> MUST be written in English. Never use other languages",
152
+ type: "string"
153
+ },
154
+ parameters: {
155
+ description: "List of path parameters.\n\nNote that, the {@link AutoBeOpenApi.IParameter.name identifier name} of\npath parameter must be corresponded to the\n{@link path API operation path}.\n\nFor example, if there's an API operation which has {@link path} of\n`/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}`,\nits list of {@link AutoBeOpenApi.IParameter.name path parameters} must be\nlike:\n\n- `saleId`\n- `questionId`\n- `commentId`",
156
+ type: "array",
157
+ items: {
158
+ $ref: "#/$defs/AutoBeOpenApi.IParameter"
159
+ }
160
+ },
161
+ requestBody: {
162
+ description: "Request body of the API operation.\n\nDefines the payload structure for the request. Contains a description and\nschema reference to define the expected input data.\n\nShould be `null` for operations that don't require a request body, such\nas most \"get\" operations.",
163
+ anyOf: [
164
+ {
165
+ type: "null"
166
+ },
167
+ {
168
+ $ref: "#/$defs/AutoBeOpenApi.IRequestBody"
169
+ }
170
+ ]
171
+ },
172
+ responseBody: {
173
+ description: "Response body of the API operation.\n\nDefines the structure of the successful response data. Contains a\ndescription and schema reference for the returned data.\n\nShould be null for operations that don't return any data.",
174
+ anyOf: [
175
+ {
176
+ type: "null"
177
+ },
178
+ {
179
+ $ref: "#/$defs/AutoBeOpenApi.IResponseBody"
180
+ }
181
+ ]
182
+ },
183
+ authorizationRole: {
184
+ description: "Authorization role required to access this API operation.\n\nThis field specifies which user role is allowed to access this endpoint.\nThe role name must correspond exactly to the actual roles defined in your\nsystem's Prisma schema.\n\n## Naming Convention\n\nRole names MUST use camelCase.\n\n## Role-Based Path Convention\n\nWhen authorizationRole is specified, it should align with the path\nstructure:\n\n- If authorizationRole is \"admin\" \u2192 path might be \"/admin/resources/{id}\"\n- If authorizationRole is \"seller\" \u2192 path might be \"/seller/products\"\n- Special case: For user's own resources, use path prefix \"/my/\" regardless\n of role\n\n## Important Guidelines\n\n- Set to `null` for public endpoints that require no authentication\n- Set to specific role string for role-restricted endpoints\n- The role name MUST match exactly with the user type/role defined in the\n database\n- This role will be used by the Realize Agent to generate appropriate\n decorator and authorization logic in the provider functions\n- The controller will apply the corresponding authentication decorator\n based on this role\n\n## Examples\n\n- `null` - Public endpoint, no authentication required\n- `\"user\"` - Any authenticated user can access\n- `\"admin\"` - Only admin users can access\n- `\"seller\"` - Only seller users can access\n- `\"moderator\"` - Only moderator users can access\n\nNote: The actual authentication/authorization implementation will be\nhandled by decorators at the controller level, and the provider function\nwill receive the authenticated user object with the appropriate type.",
185
+ anyOf: [
186
+ {
187
+ type: "null"
188
+ },
189
+ {
190
+ type: "string",
191
+ description: "@minLength 1\n@pattern ^[a-z][a-zA-Z0-9]*$"
192
+ }
193
+ ]
194
+ },
195
+ name: {
196
+ description: "Functional name of the API endpoint.\n\nThis is a semantic identifier that represents the primary function or\npurpose of the API endpoint. It serves as a canonical name that can be\nused for code generation, SDK method names, and internal references.\n\n## Reserved Word Restrictions\n\nCRITICAL: The name MUST NOT be a TypeScript/JavaScript reserved word, as\nit will be used as a class method name in generated code. Avoid names\nlike:\n\n- `delete`, `for`, `if`, `else`, `while`, `do`, `switch`, `case`, `break`\n- `continue`, `function`, `return`, `with`, `in`, `of`, `instanceof`\n- `typeof`, `void`, `var`, `let`, `const`, `class`, `extends`, `import`\n- `export`, `default`, `try`, `catch`, `finally`, `throw`, `new`\n- `super`, `this`, `null`, `true`, `false`, `async`, `await`\n- `yield`, `static`, `private`, `protected`, `public`, `implements`\n- `interface`, `package`, `enum`, `debugger`\n\nInstead, use alternative names for these operations:\n\n- Use `erase` instead of `delete`\n- Use `iterate` instead of `for`\n- Use `when` instead of `if`\n- Use `cls` instead of `class`\n\n## Standard Endpoint Names\n\nUse these conventional names based on the endpoint's primary function:\n\n- **`index`**: List/search operations that return multiple entities\n\n - Typically used with PATCH method for complex queries\n - Example: `PATCH /users` \u2192 `name: \"index\"`\n- **`at`**: Retrieve a specific entity by identifier\n\n - Typically used with GET method on single resource\n - Example: `GET /users/{userId}` \u2192 `name: \"at\"`\n- **`create`**: Create a new entity\n\n - Typically used with POST method\n - Example: `POST /users` \u2192 `name: \"create\"`\n- **`update`**: Update an existing entity\n\n - Typically used with PUT method\n - Example: `PUT /users/{userId}` \u2192 `name: \"update\"`\n- **`erase`**: Delete/remove an entity (NOT `delete` - reserved word!)\n\n - Typically used with DELETE method\n - Example: `DELETE /users/{userId}` \u2192 `name: \"erase\"`\n\n## Custom Endpoint Names\n\nFor specialized operations beyond basic CRUD, use descriptive verbs:\n\n- **`activate`**: Enable or turn on a feature/entity\n- **`deactivate`**: Disable or turn off a feature/entity\n- **`approve`**: Approve a request or entity\n- **`reject`**: Reject a request or entity\n- **`publish`**: Make content publicly available\n- **`archive`**: Move to archived state\n- **`restore`**: Restore from archived/deleted state\n- **`duplicate`**: Create a copy of an entity\n- **`transfer`**: Move ownership or change assignment\n- **`validate`**: Validate data or state\n- **`process`**: Execute a business process or workflow\n- **`export`**: Generate downloadable data\n- **`import`**: Process uploaded data\n\n## Naming Guidelines\n\n- MUST use camelCase naming convention\n- Use singular verb forms\n- Be concise but descriptive\n- Avoid abbreviations unless widely understood\n- Ensure the name clearly represents the endpoint's primary action\n- For nested resources, focus on the action rather than hierarchy\n- NEVER use JavaScript/TypeScript reserved words\n\nValid Examples:\n\n- `index`, `create`, `update`, `erase` (single word)\n- `updatePassword`, `cancelOrder`, `publishArticle` (camelCase)\n- `validateEmail`, `generateReport`, `exportData` (camelCase)\n\nInvalid Examples:\n\n- `update_password` (snake_case not allowed)\n- `UpdatePassword` (PascalCase not allowed)\n- `update-password` (kebab-case not allowed)\n\nPath to Name Examples:\n\n- `GET /shopping/orders/{orderId}/items` \u2192 `name: \"index\"` (lists items)\n- `POST /shopping/orders/{orderId}/cancel` \u2192 `name: \"cancel\"`\n- `PUT /users/{userId}/password` \u2192 `name: \"updatePassword\"`\n\n## Uniqueness Rule\n\nThe `name` must be unique within the API's accessor namespace. The\naccessor is formed by combining the path segments (excluding parameters)\nwith the operation name.\n\nAccessor formation:\n\n1. Extract non-parameter segments from the path (remove `{...}` parts)\n2. Join segments with dots\n3. Append the operation name\n\nExamples:\n\n- Path: `/shopping/sale/{saleId}/review/{reviewId}`, Name: `at` \u2192 Accessor:\n `shopping.sale.review.at`\n- Path: `/users/{userId}/posts`, Name: `index` \u2192 Accessor:\n `users.posts.index`\n- Path: `/auth/login`, Name: `signIn` \u2192 Accessor: `auth.login.signIn`\n\nEach accessor must be globally unique across the entire API. This ensures\noperations can be uniquely identified in generated SDKs and prevents\nnaming conflicts.\n\n\n@pattern ^[a-z][a-zA-Z0-9]*$",
197
+ type: "string"
198
+ },
199
+ path: {
200
+ description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)\n\n\n@pattern ^\\/[a-zA-Z0-9\\/_{}.-]*$",
201
+ type: "string"
202
+ },
203
+ method: {
204
+ description: "HTTP method of the API operation.\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record",
205
+ type: "string",
206
+ "enum": [
207
+ "get",
208
+ "post",
209
+ "put",
210
+ "delete",
211
+ "patch"
212
+ ]
213
+ }
214
+ },
215
+ required: [
216
+ "specification",
217
+ "description",
218
+ "summary",
219
+ "parameters",
220
+ "requestBody",
221
+ "responseBody",
222
+ "authorizationRole",
223
+ "name",
224
+ "path",
225
+ "method"
226
+ ]
227
+ },
228
+ "AutoBeOpenApi.IParameter": {
229
+ description: "Path parameter information for API routes.\n\nThis interface defines a path parameter that appears in the URL of an API\nendpoint. Path parameters are enclosed in curly braces in the\n{@link AutoBeOpenApi.IOperation.path operation path} and must be defined\nwith their types and descriptions.\n\nFor example, if API operation path is\n`/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}`,\nthe path parameters should be like below:\n\n```json\n{\n \"path\": \"/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}\",\n \"method\": \"get\",\n \"parameters\": [\n {\n \"name\": \"saleId\",\n \"in\": \"path\",\n \"schema\": { \"type\": \"string\", \"format\": \"uuid\" },\n \"description\": \"Target sale's ID\"\n },\n {\n \"name\": \"questionId\",\n \"in\": \"path\",\n \"schema\": { \"type\": \"string\", \"format\": \"uuid\" },\n \"description\": \"Target question's ID\"\n },\n {\n \"name\": \"commentId\",\n \"in\": \"path\",\n \"schema\": { \"type\": \"string\", \"format\": \"uuid\" },\n \"description\": \"Target comment's ID\"\n }\n ]\n}\n```",
230
+ type: "object",
231
+ properties: {
232
+ name: {
233
+ description: "Identifier name of the path parameter.\n\nThis name must match exactly with the parameter name in the route path.\nIt must be corresponded to the\n{@link AutoBeOpenApi.IOperation.path API operation path}.\n\nMUST use camelCase naming convention.\n\n\n@pattern ^[a-z][a-zA-Z0-9]*$",
234
+ type: "string"
235
+ },
236
+ description: {
237
+ description: "Description about the path parameter.\n\nMake short, concise and clear description about the path parameter.\n\n> MUST be written in English. Never use other languages.",
238
+ type: "string"
239
+ },
240
+ schema: {
241
+ description: "Type schema of the path parameter.\n\nPath parameters are typically primitive types like\n{@link AutoBeOpenApi.IJsonSchema.IString strings},\n{@link AutoBeOpenApi.IJsonSchema.IInteger integers},\n{@link AutoBeOpenApi.IJsonSchema.INumber numbers}.\n\nIf you need other types, please use request body instead with object type\nencapsulation.",
242
+ anyOf: [
243
+ {
244
+ $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
245
+ },
246
+ {
247
+ $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
248
+ },
249
+ {
250
+ $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
251
+ }
252
+ ],
253
+ "x-discriminator": {
254
+ propertyName: "type",
255
+ mapping: {
256
+ number: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber",
257
+ integer: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger",
258
+ string: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
259
+ }
260
+ }
261
+ }
262
+ },
263
+ required: [
264
+ "name",
265
+ "description",
266
+ "schema"
267
+ ]
268
+ },
269
+ "AutoBeOpenApi.IJsonSchema.INumber": {
270
+ description: "Number (double) type info.",
271
+ type: "object",
272
+ properties: {
273
+ minimum: {
274
+ description: "Minimum value restriction.",
275
+ type: "number"
276
+ },
277
+ maximum: {
278
+ description: "Maximum value restriction.",
279
+ type: "number"
280
+ },
281
+ exclusiveMinimum: {
282
+ description: "Exclusive minimum value restriction.",
283
+ type: "number"
284
+ },
285
+ exclusiveMaximum: {
286
+ description: "Exclusive maximum value restriction.",
287
+ type: "number"
288
+ },
289
+ multipleOf: {
290
+ description: "Multiple of value restriction.\n\n\n@exclusiveMinimum 0",
291
+ type: "number"
292
+ },
293
+ type: {
294
+ description: "Discriminator value of the type.",
295
+ type: "string",
296
+ "enum": [
297
+ "number"
298
+ ]
299
+ }
300
+ },
301
+ required: [
302
+ "type"
303
+ ]
304
+ },
305
+ "AutoBeOpenApi.IJsonSchema.IInteger": {
306
+ description: "Integer type info.",
307
+ type: "object",
308
+ properties: {
309
+ minimum: {
310
+ description: "Minimum value restriction.",
311
+ type: "integer"
312
+ },
313
+ maximum: {
314
+ description: "Maximum value restriction.",
315
+ type: "integer"
316
+ },
317
+ exclusiveMinimum: {
318
+ description: "Exclusive minimum value restriction.",
319
+ type: "number"
320
+ },
321
+ exclusiveMaximum: {
322
+ description: "Exclusive maximum value restriction.",
323
+ type: "number"
324
+ },
325
+ multipleOf: {
326
+ description: "Multiple of value restriction.\n\n\n@exclusiveMinimum 0",
327
+ type: "integer"
328
+ },
329
+ type: {
330
+ description: "Discriminator value of the type.",
331
+ type: "string",
332
+ "enum": [
333
+ "integer"
334
+ ]
335
+ }
336
+ },
337
+ required: [
338
+ "type"
339
+ ]
340
+ },
341
+ "AutoBeOpenApi.IJsonSchema.IString": {
342
+ description: "String type info.",
343
+ type: "object",
344
+ properties: {
345
+ format: {
346
+ description: "Format restriction.",
347
+ type: "string"
348
+ },
349
+ pattern: {
350
+ description: "Pattern restriction.",
351
+ type: "string"
352
+ },
353
+ contentMediaType: {
354
+ description: "Content media type restriction.",
355
+ type: "string"
356
+ },
357
+ minLength: {
358
+ description: "Minimum length restriction.\n\n\n@minimum 0",
359
+ type: "integer"
360
+ },
361
+ maxLength: {
362
+ description: "Maximum length restriction.\n\n\n@minimum 0",
363
+ type: "integer"
364
+ },
365
+ type: {
366
+ description: "Discriminator value of the type.",
367
+ type: "string",
368
+ "enum": [
369
+ "string"
370
+ ]
371
+ }
372
+ },
373
+ required: [
374
+ "type"
375
+ ]
376
+ },
377
+ "AutoBeOpenApi.IRequestBody": {
378
+ description: "Request body information of OpenAPI operation.\n\nThis interface defines the structure for request bodies in API routes. It\ncorresponds to the requestBody section in OpenAPI specifications, providing\nboth a description and schema reference for the request payload.\n\nThe content-type for all request bodies is always `application/json`. Even\nwhen file uploading is required, don't use `multipart/form-data` or\n`application/x-www-form-urlencoded` content types. Instead, just define an\nURI string property in the request body schema.\n\nNote that, all body schemas must be transformable to a\n{@link AutoBeOpenApi.IJsonSchema.IReference reference} type defined in the\n{@link AutoBeOpenApi.IComponents.schemas components section} as an\n{@link AutoBeOpenApi.IJsonSchema.IObject object} type.\n\nIn OpenAPI, this might represent:\n\n```json\n{\n \"requestBody\": {\n \"description\": \"Creation info of the order\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/IShoppingOrder.ICreate\"\n }\n }\n }\n }\n}\n```",
379
+ type: "object",
380
+ properties: {
381
+ description: {
382
+ description: "Description about the request body.\n\nMake short, concise and clear description about the request body.\n\n> MUST be written in English. Never use other languages.",
383
+ type: "string"
384
+ },
385
+ typeName: {
386
+ description: "Request body type name.\n\nThis specifies the data structure expected in the request body, that will\nbe transformed to {@link AutoBeOpenApi.IJsonSchema.IReference reference}\ntype in the {@link AutoBeOpenApi.IComponents.schemas components section}\nas an {@link AutoBeOpenApi.IJsonSchema.Object object} type.\n\nHere is the naming convention for the request body type:\n\n- `IEntityName.ICreate`: Request body for creation operations (POST)\n- `IEntityName.IUpdate`: Request body for update operations (PUT)\n- `IEntityName.IRequest`: Request parameters for list operations (often\n with search/pagination)\n\nWhat you write:\n\n```json\n{\n \"typeName\": \"IShoppingOrder.ICreate\"\n}\n```\n\nTransformed to:\n\n```json\n{\n \"schema\": {\n \"$ref\": \"#/components/schemas/IShoppingOrder.ICreate\"\n }\n}\n```",
387
+ type: "string"
388
+ }
389
+ },
390
+ required: [
391
+ "description",
392
+ "typeName"
393
+ ]
394
+ },
395
+ "AutoBeOpenApi.IResponseBody": {
396
+ description: "Response body information for OpenAPI operation.\n\nThis interface defines the structure of a successful response from an API\noperation. It provides a description of the response and a schema reference\nto define the returned data structure.\n\nThe content-type for all responses is always `application/json`. Even when\nfile downloading is required, don't use `application/octet-stream` or\n`multipart/form-data` content types. Instead, just define an URI string\nproperty in the response body schema.\n\nIn OpenAPI, this might represent:\n\n```json\n{\n \"responses\": {\n \"200\": {\n \"description\": \"Order information\",\n \"content\": {\n \"application/json\": {\n \"schema\": { \"$ref\": \"#/components/schemas/IShoppingOrder\" }\n }\n }\n }\n }\n}\n```",
397
+ type: "object",
398
+ properties: {
399
+ description: {
400
+ description: "Description about the response body.\n\nMake short, concise and clear description about the response body.\n\n> MUST be written in English. Never use other languages.",
401
+ type: "string"
402
+ },
403
+ typeName: {
404
+ description: "Response body's data type.\n\nSpecifies the structure of the returned data (response body), that will\nbe transformed to {@link AutoBeOpenApi.IJsonSchema.IReference} type in the\n{@link AutoBeOpenApi.IComponents.schemas components section} as an\n{@link AutoBeOpenApi.IJsonSchema.IObject object} type.\n\nHere is the naming convention for the response body type:\n\n- `IEntityName`: Main entity with detailed information (e.g.,\n `IShoppingSale`)\n- `IEntityName.ISummary`: Simplified response version with essential\n properties\n- `IEntityName.IInvert`: Alternative view of an entity from a different\n perspective\n- `IPageIEntityName`: Paginated results container with `pagination` and\n `data` properties\n\nWhat you write:\n\n```json\n{\n \"typeName\": \"IShoppingOrder\"\n}\n```\n\nTransformed to:\n\n```json\n{\n \"schema\": {\n \"$ref\": \"#/components/schemas/IShoppingOrder\"\n }\n}\n```",
405
+ type: "string"
406
+ }
407
+ },
408
+ required: [
409
+ "description",
410
+ "typeName"
411
+ ]
412
+ }
413
+ }
414
+ },
415
+ description: "Reviews a batch of API operations for quality and correctness.\n\nValidates each operation's request/response schemas, authentication\nhandling, error responses, and documentation completeness. Operations are\nmarked as passed or failed based on compliance with enterprise standards.",
416
+ validate: (() => { const _io0 = input => "string" === typeof input.review && "string" === typeof input.plan && (Array.isArray(input.content) && input.content.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.specification && "string" === typeof input.description && "string" === typeof input.summary && (Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (null === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && _io6(input.requestBody)) && (null === input.responseBody || "object" === typeof input.responseBody && null !== input.responseBody && _io7(input.responseBody)) && (null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) && 1 <= input.authorizationRole.length)) && ("string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name)) && ("string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path)) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io2 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.description && ("object" === typeof input.schema && null !== input.schema && _iu0(input.schema)); const _io3 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type; const _io4 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type; const _io5 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type; const _io6 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _io7 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _iu0 = input => (() => {
417
+ if ("number" === input.type)
418
+ return _io4(input);
419
+ else if ("integer" === input.type)
420
+ return _io3(input);
421
+ else if ("string" === input.type)
422
+ return _io5(input);
423
+ else
424
+ return false;
425
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
426
+ path: _path + ".review",
427
+ expected: "string",
428
+ value: input.review
429
+ }), "string" === typeof input.plan || _report(_exceptionable, {
430
+ path: _path + ".plan",
431
+ expected: "string",
432
+ value: input.plan
433
+ }), (Array.isArray(input.content) || _report(_exceptionable, {
434
+ path: _path + ".content",
435
+ expected: "Array<AutoBeOpenApi.IOperation>",
436
+ value: input.content
437
+ })) && input.content.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
438
+ path: _path + ".content[" + _index3 + "]",
439
+ expected: "AutoBeOpenApi.IOperation",
440
+ value: elem
441
+ })) && _vo1(elem, _path + ".content[" + _index3 + "]", true && _exceptionable) || _report(_exceptionable, {
442
+ path: _path + ".content[" + _index3 + "]",
443
+ expected: "AutoBeOpenApi.IOperation",
444
+ value: elem
445
+ })).every(flag => flag) || _report(_exceptionable, {
446
+ path: _path + ".content",
447
+ expected: "Array<AutoBeOpenApi.IOperation>",
448
+ value: input.content
449
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.specification || _report(_exceptionable, {
450
+ path: _path + ".specification",
451
+ expected: "string",
452
+ value: input.specification
453
+ }), "string" === typeof input.description || _report(_exceptionable, {
454
+ path: _path + ".description",
455
+ expected: "string",
456
+ value: input.description
457
+ }), "string" === typeof input.summary || _report(_exceptionable, {
458
+ path: _path + ".summary",
459
+ expected: "string",
460
+ value: input.summary
461
+ }), (Array.isArray(input.parameters) || _report(_exceptionable, {
462
+ path: _path + ".parameters",
463
+ expected: "Array<AutoBeOpenApi.IParameter>",
464
+ value: input.parameters
465
+ })) && input.parameters.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
466
+ path: _path + ".parameters[" + _index4 + "]",
467
+ expected: "AutoBeOpenApi.IParameter",
468
+ value: elem
469
+ })) && _vo2(elem, _path + ".parameters[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
470
+ path: _path + ".parameters[" + _index4 + "]",
471
+ expected: "AutoBeOpenApi.IParameter",
472
+ value: elem
473
+ })).every(flag => flag) || _report(_exceptionable, {
474
+ path: _path + ".parameters",
475
+ expected: "Array<AutoBeOpenApi.IParameter>",
476
+ value: input.parameters
477
+ }), null === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody || _report(_exceptionable, {
478
+ path: _path + ".requestBody",
479
+ expected: "(AutoBeOpenApi.IRequestBody | null)",
480
+ value: input.requestBody
481
+ })) && _vo6(input.requestBody, _path + ".requestBody", true && _exceptionable) || _report(_exceptionable, {
482
+ path: _path + ".requestBody",
483
+ expected: "(AutoBeOpenApi.IRequestBody | null)",
484
+ value: input.requestBody
485
+ }), null === input.responseBody || ("object" === typeof input.responseBody && null !== input.responseBody || _report(_exceptionable, {
486
+ path: _path + ".responseBody",
487
+ expected: "(AutoBeOpenApi.IResponseBody | null)",
488
+ value: input.responseBody
489
+ })) && _vo7(input.responseBody, _path + ".responseBody", true && _exceptionable) || _report(_exceptionable, {
490
+ path: _path + ".responseBody",
491
+ expected: "(AutoBeOpenApi.IResponseBody | null)",
492
+ value: input.responseBody
493
+ }), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
494
+ path: _path + ".authorizationRole",
495
+ expected: "string & CamelPattern",
496
+ value: input.authorizationRole
497
+ })) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
498
+ path: _path + ".authorizationRole",
499
+ expected: "string & MinLength<1>",
500
+ value: input.authorizationRole
501
+ })) || _report(_exceptionable, {
502
+ path: _path + ".authorizationRole",
503
+ expected: "((string & CamelPattern & MinLength<1>) | null)",
504
+ value: input.authorizationRole
505
+ }), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
506
+ path: _path + ".name",
507
+ expected: "string & CamelPattern",
508
+ value: input.name
509
+ })) || _report(_exceptionable, {
510
+ path: _path + ".name",
511
+ expected: "(string & CamelPattern)",
512
+ value: input.name
513
+ }), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
514
+ path: _path + ".path",
515
+ expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
516
+ value: input.path
517
+ })) || _report(_exceptionable, {
518
+ path: _path + ".path",
519
+ expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
520
+ value: input.path
521
+ }), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
522
+ path: _path + ".method",
523
+ expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
524
+ value: input.method
525
+ })].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, {
526
+ path: _path + ".name",
527
+ expected: "string & CamelPattern",
528
+ value: input.name
529
+ })) || _report(_exceptionable, {
530
+ path: _path + ".name",
531
+ expected: "(string & CamelPattern)",
532
+ value: input.name
533
+ }), "string" === typeof input.description || _report(_exceptionable, {
534
+ path: _path + ".description",
535
+ expected: "string",
536
+ value: input.description
537
+ }), ("object" === typeof input.schema && null !== input.schema || _report(_exceptionable, {
538
+ path: _path + ".schema",
539
+ expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
540
+ value: input.schema
541
+ })) && _vu0(input.schema, _path + ".schema", true && _exceptionable) || _report(_exceptionable, {
542
+ path: _path + ".schema",
543
+ expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
544
+ value: input.schema
545
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000 || _report(_exceptionable, {
546
+ path: _path + ".minimum",
547
+ expected: "number & Type<\"int64\">",
548
+ value: input.minimum
549
+ })) || _report(_exceptionable, {
550
+ path: _path + ".minimum",
551
+ expected: "((number & Type<\"int64\">) | undefined)",
552
+ value: input.minimum
553
+ }), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || _report(_exceptionable, {
554
+ path: _path + ".maximum",
555
+ expected: "number & Type<\"int64\">",
556
+ value: input.maximum
557
+ })) || _report(_exceptionable, {
558
+ path: _path + ".maximum",
559
+ expected: "((number & Type<\"int64\">) | undefined)",
560
+ value: input.maximum
561
+ }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
562
+ path: _path + ".exclusiveMinimum",
563
+ expected: "(number | undefined)",
564
+ value: input.exclusiveMinimum
565
+ }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
566
+ path: _path + ".exclusiveMaximum",
567
+ expected: "(number | undefined)",
568
+ value: input.exclusiveMaximum
569
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || _report(_exceptionable, {
570
+ path: _path + ".multipleOf",
571
+ expected: "number & Type<\"uint64\">",
572
+ value: input.multipleOf
573
+ })) && (0 < input.multipleOf || _report(_exceptionable, {
574
+ path: _path + ".multipleOf",
575
+ expected: "number & ExclusiveMinimum<0>",
576
+ value: input.multipleOf
577
+ })) || _report(_exceptionable, {
578
+ path: _path + ".multipleOf",
579
+ expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
580
+ value: input.multipleOf
581
+ }), "integer" === input.type || _report(_exceptionable, {
582
+ path: _path + ".type",
583
+ expected: "\"integer\"",
584
+ value: input.type
585
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
586
+ path: _path + ".minimum",
587
+ expected: "(number | undefined)",
588
+ value: input.minimum
589
+ }), undefined === input.maximum || "number" === typeof input.maximum || _report(_exceptionable, {
590
+ path: _path + ".maximum",
591
+ expected: "(number | undefined)",
592
+ value: input.maximum
593
+ }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
594
+ path: _path + ".exclusiveMinimum",
595
+ expected: "(number | undefined)",
596
+ value: input.exclusiveMinimum
597
+ }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
598
+ path: _path + ".exclusiveMaximum",
599
+ expected: "(number | undefined)",
600
+ value: input.exclusiveMaximum
601
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
602
+ path: _path + ".multipleOf",
603
+ expected: "number & ExclusiveMinimum<0>",
604
+ value: input.multipleOf
605
+ })) || _report(_exceptionable, {
606
+ path: _path + ".multipleOf",
607
+ expected: "((number & ExclusiveMinimum<0>) | undefined)",
608
+ value: input.multipleOf
609
+ }), "number" === input.type || _report(_exceptionable, {
610
+ path: _path + ".type",
611
+ expected: "\"number\"",
612
+ value: input.type
613
+ })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
614
+ path: _path + ".format",
615
+ expected: "(string | undefined)",
616
+ value: input.format
617
+ }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
618
+ path: _path + ".pattern",
619
+ expected: "(string | undefined)",
620
+ value: input.pattern
621
+ }), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
622
+ path: _path + ".contentMediaType",
623
+ expected: "(string | undefined)",
624
+ value: input.contentMediaType
625
+ }), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || _report(_exceptionable, {
626
+ path: _path + ".minLength",
627
+ expected: "number & Type<\"uint64\">",
628
+ value: input.minLength
629
+ })) || _report(_exceptionable, {
630
+ path: _path + ".minLength",
631
+ expected: "((number & Type<\"uint64\">) | undefined)",
632
+ value: input.minLength
633
+ }), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
634
+ path: _path + ".maxLength",
635
+ expected: "number & Type<\"uint64\">",
636
+ value: input.maxLength
637
+ })) || _report(_exceptionable, {
638
+ path: _path + ".maxLength",
639
+ expected: "((number & Type<\"uint64\">) | undefined)",
640
+ value: input.maxLength
641
+ }), "string" === input.type || _report(_exceptionable, {
642
+ path: _path + ".type",
643
+ expected: "\"string\"",
644
+ value: input.type
645
+ })].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
646
+ path: _path + ".description",
647
+ expected: "string",
648
+ value: input.description
649
+ }), "string" === typeof input.typeName || _report(_exceptionable, {
650
+ path: _path + ".typeName",
651
+ expected: "string",
652
+ value: input.typeName
653
+ })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
654
+ path: _path + ".description",
655
+ expected: "string",
656
+ value: input.description
657
+ }), "string" === typeof input.typeName || _report(_exceptionable, {
658
+ path: _path + ".typeName",
659
+ expected: "string",
660
+ value: input.typeName
661
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
662
+ if ("number" === input.type)
663
+ return _vo4(input, _path, true && _exceptionable);
664
+ else if ("integer" === input.type)
665
+ return _vo3(input, _path, true && _exceptionable);
666
+ else if ("string" === input.type)
667
+ return _vo5(input, _path, true && _exceptionable);
668
+ else
669
+ return _report(_exceptionable, {
670
+ path: _path,
671
+ expected: "(AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.IString)",
672
+ value: input
673
+ });
674
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
675
+ if (false === __is(input)) {
676
+ errors = [];
677
+ _report = __typia_transform__validateReport._validateReport(errors);
678
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
679
+ path: _path + "",
680
+ expected: "IAutoBeInterfaceOperationsReviewApplication.IProps",
681
+ value: input
682
+ })) && _vo0(input, _path + "", true) || _report(true, {
683
+ path: _path + "",
684
+ expected: "IAutoBeInterfaceOperationsReviewApplication.IProps",
685
+ value: input
686
+ }))(input, "$input", true);
687
+ const success = 0 === errors.length;
688
+ return success ? {
689
+ success,
690
+ data: input
691
+ } : {
692
+ success,
693
+ errors,
694
+ data: input
695
+ };
696
+ }
697
+ return {
698
+ success: true,
699
+ data: input
700
+ };
701
+ }; })()
702
+ }
703
+ ]
704
+ },
705
+ claude: {
706
+ model: "claude",
707
+ options: {
708
+ reference: true,
709
+ separate: null
710
+ },
711
+ functions: [
712
+ {
713
+ name: "reviewOperations",
714
+ parameters: {
715
+ description: " Collection of operations to review with their validation\nresults\n\n------------------------------\n\nDescription of the current {@link IAutoBeInterfaceOperationsReviewApplication.IProps} type:\n\n> Properties for API operation review and improvement process.\n> \n> Contains both the input operations to be reviewed and the outputs generated\n> by the Interface Operations Review Agent, which will be published as part\n> of the AutoBeInterfaceOperationsReviewEvent.",
716
+ type: "object",
717
+ properties: {
718
+ review: {
719
+ description: "Comprehensive review analysis with prioritized findings.\n\nSystematic assessment organized by severity levels (CRITICAL, HIGH,\nMEDIUM, LOW):\n\n- **Security Analysis**: Authentication boundary violations, exposed\n passwords/tokens, unauthorized data access patterns, SQL injection\n risks\n- **Logic Validation**: Return type consistency (list operations returning\n arrays, single retrieval returning single items), HTTP method semantics\n alignment, parameter usage verification\n- **Schema Compliance**: Field existence in Prisma schema, type accuracy,\n relationship validity, required field handling\n- **Quality Assessment**: Documentation completeness, naming conventions,\n error handling patterns, pagination standards\n\nEach finding includes specific examples, current vs expected behavior,\nand concrete fix recommendations. Critical security issues and logical\ncontradictions are highlighted for immediate attention.",
720
+ type: "string"
721
+ },
722
+ plan: {
723
+ description: "Prioritized action plan for identified issues.\n\nStructured improvement strategy categorized by severity:\n\n- **Immediate Actions (CRITICAL)**: Security vulnerabilities that must be\n fixed before production (password exposure, missing authorization,\n authentication bypass risks)\n- **Required Fixes (HIGH)**: Functional issues affecting API correctness\n (wrong return types, missing required fields, schema mismatches)\n- **Recommended Improvements (MEDIUM)**: Quality enhancements for better\n API design (validation rules, format specifications, consistency)\n- **Optional Enhancements (LOW)**: Documentation and usability improvements\n\nIf all operations pass review without issues, contains: \"No improvements\nrequired. All operations meet AutoBE standards.\"\n\nEach action item includes the specific operation path, the exact change\nneeded, and the rationale for the modification.",
724
+ type: "string"
725
+ },
726
+ content: {
727
+ description: "Production-ready operations with all critical issues resolved.\n\nFinal API operations after systematic enhancement:\n\n- **Security Fixes Applied**: All authentication boundaries enforced,\n sensitive data removed from responses, proper authorization\n implemented\n- **Logic Corrections Made**: Return types match operation intent, HTTP\n methods align with semantics, parameters properly utilized\n- **Schema Alignment Verified**: All fields exist in Prisma schema, types\n correctly mapped, relationships properly defined\n- **Quality Improvements Added**: Enhanced documentation, format\n specifications, validation rules, consistent naming patterns\n\nIf no issues were found during review, this contains the exact original\noperations unchanged. These operations are validated and ready for schema\ngeneration and subsequent implementation phases.",
728
+ type: "array",
729
+ items: {
730
+ $ref: "#/$defs/AutoBeOpenApi.IOperation"
731
+ }
732
+ }
733
+ },
734
+ required: [
735
+ "review",
736
+ "plan",
737
+ "content"
738
+ ],
739
+ additionalProperties: false,
740
+ $defs: {
741
+ "AutoBeOpenApi.IOperation": {
742
+ description: "Operation of the Restful API.\n\nThis interface defines a single API endpoint with its HTTP {@link method},\n{@link path}, {@link parameters path parameters},\n{@link requestBody request body}, and {@link responseBody} structure. It\ncorresponds to an individual operation in the paths section of an OpenAPI\ndocument.\n\nEach operation requires a detailed explanation of its purpose through the\nreason and description fields, making it clear why the API was designed and\nhow it should be used.\n\nAll request bodies and responses for this operation must be object types\nand must reference named types defined in the components section. The\ncontent-type is always `application/json`. For file upload/download\noperations, use `string & tags.Format<\"uri\">` in the appropriate schema\ninstead of binary data formats.\n\nIn OpenAPI, this might represent:\n\n```json\n{\n \"/shoppings/customers/orders\": {\n \"post\": {\n \"description\": \"Create a new order application from shopping cart...\",\n \"parameters\": [...],\n \"requestBody\": {...},\n \"responses\": {...}\n }\n }\n}\n```",
743
+ type: "object",
744
+ properties: {
745
+ specification: {
746
+ description: "Specification of the API operation.\n\nBefore defining the API operation interface, please describe what you're\nplanning to write in this `specification` field.\n\nThe specification must be fully detailed and clear, so that anyone can\nunderstand the purpose and functionality of the API operation and its\nrelated components (e.g., {@link path}, {@link parameters},\n{@link requestBody}).\n\nIMPORTANT: The specification MUST identify which Prisma DB table this\noperation is associated with, helping ensure complete coverage of all\ndatabase entities.",
747
+ type: "string"
748
+ },
749
+ description: {
750
+ description: "Detailed description about the API operation.\n\nIMPORTANT: This field MUST be extensively detailed and MUST reference the\ndescription comments from the related Prisma DB schema tables and\ncolumns. The description should be organized into MULTIPLE PARAGRAPHS\nseparated by line breaks to improve readability and comprehension.\n\nFor example, include separate paragraphs for:\n\n- The purpose and overview of the API operation\n- Security considerations and user permissions\n- Relationship to underlying database entities\n- Validation rules and business logic\n- Related API operations that might be used together with this one\n- Expected behavior and error handling\n\nWhen writing the description, be sure to incorporate the corresponding DB\nschema's description comments, matching the level of detail and style of\nthose comments. This ensures consistency between the API documentation\nand database structure.\n\nIf there's a dependency to other APIs, please describe the dependency API\noperation in this field with detailed reason. For example, if this API\noperation needs a pre-execution of other API operation, it must be\nexplicitly described.\n\n- `GET /shoppings/customers/sales` must be pre-executed to get entire list\n of summarized sales. Detailed sale information would be obtained by\n specifying the sale ID in the path parameter.\n\n> MUST be written in English. Never use other languages.",
751
+ type: "string"
752
+ },
753
+ summary: {
754
+ description: "Short summary of the API operation.\n\nThis should be a concise description of the API operation, typically one\nsentence long. It should provide a quick overview of what the API does\nwithout going into too much detail.\n\nThis summary will be used in the OpenAPI documentation to give users a\nquick understanding of the API operation's purpose.\n\nIMPORTANT: The summary should clearly indicate which Prisma DB table this\noperation relates to, helping to ensure all tables have API coverage.\n\n> MUST be written in English. Never use other languages",
755
+ type: "string"
756
+ },
757
+ parameters: {
758
+ description: "List of path parameters.\n\nNote that, the {@link AutoBeOpenApi.IParameter.name identifier name} of\npath parameter must be corresponded to the\n{@link path API operation path}.\n\nFor example, if there's an API operation which has {@link path} of\n`/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}`,\nits list of {@link AutoBeOpenApi.IParameter.name path parameters} must be\nlike:\n\n- `saleId`\n- `questionId`\n- `commentId`",
759
+ type: "array",
760
+ items: {
761
+ $ref: "#/$defs/AutoBeOpenApi.IParameter"
762
+ }
763
+ },
764
+ requestBody: {
765
+ description: "Request body of the API operation.\n\nDefines the payload structure for the request. Contains a description and\nschema reference to define the expected input data.\n\nShould be `null` for operations that don't require a request body, such\nas most \"get\" operations.",
766
+ oneOf: [
767
+ {
768
+ type: "null"
769
+ },
770
+ {
771
+ $ref: "#/$defs/AutoBeOpenApi.IRequestBody"
772
+ }
773
+ ]
774
+ },
775
+ responseBody: {
776
+ description: "Response body of the API operation.\n\nDefines the structure of the successful response data. Contains a\ndescription and schema reference for the returned data.\n\nShould be null for operations that don't return any data.",
777
+ oneOf: [
778
+ {
779
+ type: "null"
780
+ },
781
+ {
782
+ $ref: "#/$defs/AutoBeOpenApi.IResponseBody"
783
+ }
784
+ ]
785
+ },
786
+ authorizationRole: {
787
+ description: "Authorization role required to access this API operation.\n\nThis field specifies which user role is allowed to access this endpoint.\nThe role name must correspond exactly to the actual roles defined in your\nsystem's Prisma schema.\n\n## Naming Convention\n\nRole names MUST use camelCase.\n\n## Role-Based Path Convention\n\nWhen authorizationRole is specified, it should align with the path\nstructure:\n\n- If authorizationRole is \"admin\" \u2192 path might be \"/admin/resources/{id}\"\n- If authorizationRole is \"seller\" \u2192 path might be \"/seller/products\"\n- Special case: For user's own resources, use path prefix \"/my/\" regardless\n of role\n\n## Important Guidelines\n\n- Set to `null` for public endpoints that require no authentication\n- Set to specific role string for role-restricted endpoints\n- The role name MUST match exactly with the user type/role defined in the\n database\n- This role will be used by the Realize Agent to generate appropriate\n decorator and authorization logic in the provider functions\n- The controller will apply the corresponding authentication decorator\n based on this role\n\n## Examples\n\n- `null` - Public endpoint, no authentication required\n- `\"user\"` - Any authenticated user can access\n- `\"admin\"` - Only admin users can access\n- `\"seller\"` - Only seller users can access\n- `\"moderator\"` - Only moderator users can access\n\nNote: The actual authentication/authorization implementation will be\nhandled by decorators at the controller level, and the provider function\nwill receive the authenticated user object with the appropriate type.",
788
+ oneOf: [
789
+ {
790
+ type: "null"
791
+ },
792
+ {
793
+ type: "string",
794
+ pattern: "^[a-z][a-zA-Z0-9]*$",
795
+ minLength: 1
796
+ }
797
+ ]
798
+ },
799
+ name: {
800
+ description: "Functional name of the API endpoint.\n\nThis is a semantic identifier that represents the primary function or\npurpose of the API endpoint. It serves as a canonical name that can be\nused for code generation, SDK method names, and internal references.\n\n## Reserved Word Restrictions\n\nCRITICAL: The name MUST NOT be a TypeScript/JavaScript reserved word, as\nit will be used as a class method name in generated code. Avoid names\nlike:\n\n- `delete`, `for`, `if`, `else`, `while`, `do`, `switch`, `case`, `break`\n- `continue`, `function`, `return`, `with`, `in`, `of`, `instanceof`\n- `typeof`, `void`, `var`, `let`, `const`, `class`, `extends`, `import`\n- `export`, `default`, `try`, `catch`, `finally`, `throw`, `new`\n- `super`, `this`, `null`, `true`, `false`, `async`, `await`\n- `yield`, `static`, `private`, `protected`, `public`, `implements`\n- `interface`, `package`, `enum`, `debugger`\n\nInstead, use alternative names for these operations:\n\n- Use `erase` instead of `delete`\n- Use `iterate` instead of `for`\n- Use `when` instead of `if`\n- Use `cls` instead of `class`\n\n## Standard Endpoint Names\n\nUse these conventional names based on the endpoint's primary function:\n\n- **`index`**: List/search operations that return multiple entities\n\n - Typically used with PATCH method for complex queries\n - Example: `PATCH /users` \u2192 `name: \"index\"`\n- **`at`**: Retrieve a specific entity by identifier\n\n - Typically used with GET method on single resource\n - Example: `GET /users/{userId}` \u2192 `name: \"at\"`\n- **`create`**: Create a new entity\n\n - Typically used with POST method\n - Example: `POST /users` \u2192 `name: \"create\"`\n- **`update`**: Update an existing entity\n\n - Typically used with PUT method\n - Example: `PUT /users/{userId}` \u2192 `name: \"update\"`\n- **`erase`**: Delete/remove an entity (NOT `delete` - reserved word!)\n\n - Typically used with DELETE method\n - Example: `DELETE /users/{userId}` \u2192 `name: \"erase\"`\n\n## Custom Endpoint Names\n\nFor specialized operations beyond basic CRUD, use descriptive verbs:\n\n- **`activate`**: Enable or turn on a feature/entity\n- **`deactivate`**: Disable or turn off a feature/entity\n- **`approve`**: Approve a request or entity\n- **`reject`**: Reject a request or entity\n- **`publish`**: Make content publicly available\n- **`archive`**: Move to archived state\n- **`restore`**: Restore from archived/deleted state\n- **`duplicate`**: Create a copy of an entity\n- **`transfer`**: Move ownership or change assignment\n- **`validate`**: Validate data or state\n- **`process`**: Execute a business process or workflow\n- **`export`**: Generate downloadable data\n- **`import`**: Process uploaded data\n\n## Naming Guidelines\n\n- MUST use camelCase naming convention\n- Use singular verb forms\n- Be concise but descriptive\n- Avoid abbreviations unless widely understood\n- Ensure the name clearly represents the endpoint's primary action\n- For nested resources, focus on the action rather than hierarchy\n- NEVER use JavaScript/TypeScript reserved words\n\nValid Examples:\n\n- `index`, `create`, `update`, `erase` (single word)\n- `updatePassword`, `cancelOrder`, `publishArticle` (camelCase)\n- `validateEmail`, `generateReport`, `exportData` (camelCase)\n\nInvalid Examples:\n\n- `update_password` (snake_case not allowed)\n- `UpdatePassword` (PascalCase not allowed)\n- `update-password` (kebab-case not allowed)\n\nPath to Name Examples:\n\n- `GET /shopping/orders/{orderId}/items` \u2192 `name: \"index\"` (lists items)\n- `POST /shopping/orders/{orderId}/cancel` \u2192 `name: \"cancel\"`\n- `PUT /users/{userId}/password` \u2192 `name: \"updatePassword\"`\n\n## Uniqueness Rule\n\nThe `name` must be unique within the API's accessor namespace. The\naccessor is formed by combining the path segments (excluding parameters)\nwith the operation name.\n\nAccessor formation:\n\n1. Extract non-parameter segments from the path (remove `{...}` parts)\n2. Join segments with dots\n3. Append the operation name\n\nExamples:\n\n- Path: `/shopping/sale/{saleId}/review/{reviewId}`, Name: `at` \u2192 Accessor:\n `shopping.sale.review.at`\n- Path: `/users/{userId}/posts`, Name: `index` \u2192 Accessor:\n `users.posts.index`\n- Path: `/auth/login`, Name: `signIn` \u2192 Accessor: `auth.login.signIn`\n\nEach accessor must be globally unique across the entire API. This ensures\noperations can be uniquely identified in generated SDKs and prevents\nnaming conflicts.",
801
+ type: "string",
802
+ pattern: "^[a-z][a-zA-Z0-9]*$"
803
+ },
804
+ path: {
805
+ description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)",
806
+ type: "string",
807
+ pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
808
+ },
809
+ method: {
810
+ description: "HTTP method of the API operation.\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record",
811
+ oneOf: [
812
+ {
813
+ "const": "get"
814
+ },
815
+ {
816
+ "const": "post"
817
+ },
818
+ {
819
+ "const": "put"
820
+ },
821
+ {
822
+ "const": "delete"
823
+ },
824
+ {
825
+ "const": "patch"
826
+ }
827
+ ]
828
+ }
829
+ },
830
+ required: [
831
+ "specification",
832
+ "description",
833
+ "summary",
834
+ "parameters",
835
+ "requestBody",
836
+ "responseBody",
837
+ "authorizationRole",
838
+ "name",
839
+ "path",
840
+ "method"
841
+ ]
842
+ },
843
+ "AutoBeOpenApi.IParameter": {
844
+ description: "Path parameter information for API routes.\n\nThis interface defines a path parameter that appears in the URL of an API\nendpoint. Path parameters are enclosed in curly braces in the\n{@link AutoBeOpenApi.IOperation.path operation path} and must be defined\nwith their types and descriptions.\n\nFor example, if API operation path is\n`/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}`,\nthe path parameters should be like below:\n\n```json\n{\n \"path\": \"/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}\",\n \"method\": \"get\",\n \"parameters\": [\n {\n \"name\": \"saleId\",\n \"in\": \"path\",\n \"schema\": { \"type\": \"string\", \"format\": \"uuid\" },\n \"description\": \"Target sale's ID\"\n },\n {\n \"name\": \"questionId\",\n \"in\": \"path\",\n \"schema\": { \"type\": \"string\", \"format\": \"uuid\" },\n \"description\": \"Target question's ID\"\n },\n {\n \"name\": \"commentId\",\n \"in\": \"path\",\n \"schema\": { \"type\": \"string\", \"format\": \"uuid\" },\n \"description\": \"Target comment's ID\"\n }\n ]\n}\n```",
845
+ type: "object",
846
+ properties: {
847
+ name: {
848
+ description: "Identifier name of the path parameter.\n\nThis name must match exactly with the parameter name in the route path.\nIt must be corresponded to the\n{@link AutoBeOpenApi.IOperation.path API operation path}.\n\nMUST use camelCase naming convention.",
849
+ type: "string",
850
+ pattern: "^[a-z][a-zA-Z0-9]*$"
851
+ },
852
+ description: {
853
+ description: "Description about the path parameter.\n\nMake short, concise and clear description about the path parameter.\n\n> MUST be written in English. Never use other languages.",
854
+ type: "string"
855
+ },
856
+ schema: {
857
+ description: "Type schema of the path parameter.\n\nPath parameters are typically primitive types like\n{@link AutoBeOpenApi.IJsonSchema.IString strings},\n{@link AutoBeOpenApi.IJsonSchema.IInteger integers},\n{@link AutoBeOpenApi.IJsonSchema.INumber numbers}.\n\nIf you need other types, please use request body instead with object type\nencapsulation.",
858
+ oneOf: [
859
+ {
860
+ $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
861
+ },
862
+ {
863
+ $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
864
+ },
865
+ {
866
+ $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
867
+ }
868
+ ],
869
+ discriminator: {
870
+ propertyName: "type",
871
+ mapping: {
872
+ number: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber",
873
+ integer: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger",
874
+ string: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
875
+ }
876
+ }
877
+ }
878
+ },
879
+ required: [
880
+ "name",
881
+ "description",
882
+ "schema"
883
+ ]
884
+ },
885
+ "AutoBeOpenApi.IJsonSchema.INumber": {
886
+ description: "Number (double) type info.",
887
+ type: "object",
888
+ properties: {
889
+ minimum: {
890
+ description: "Minimum value restriction.",
891
+ type: "number"
892
+ },
893
+ maximum: {
894
+ description: "Maximum value restriction.",
895
+ type: "number"
896
+ },
897
+ exclusiveMinimum: {
898
+ description: "Exclusive minimum value restriction.",
899
+ type: "number"
900
+ },
901
+ exclusiveMaximum: {
902
+ description: "Exclusive maximum value restriction.",
903
+ type: "number"
904
+ },
905
+ multipleOf: {
906
+ description: "Multiple of value restriction.",
907
+ type: "number",
908
+ exclusiveMinimum: 0
909
+ },
910
+ type: {
911
+ description: "Discriminator value of the type.",
912
+ "const": "number"
913
+ }
914
+ },
915
+ required: [
916
+ "type"
917
+ ]
918
+ },
919
+ "AutoBeOpenApi.IJsonSchema.IInteger": {
920
+ description: "Integer type info.",
921
+ type: "object",
922
+ properties: {
923
+ minimum: {
924
+ description: "Minimum value restriction.",
925
+ type: "integer"
926
+ },
927
+ maximum: {
928
+ description: "Maximum value restriction.",
929
+ type: "integer"
930
+ },
931
+ exclusiveMinimum: {
932
+ description: "Exclusive minimum value restriction.",
933
+ type: "number"
934
+ },
935
+ exclusiveMaximum: {
936
+ description: "Exclusive maximum value restriction.",
937
+ type: "number"
938
+ },
939
+ multipleOf: {
940
+ description: "Multiple of value restriction.",
941
+ type: "integer",
942
+ exclusiveMinimum: 0
943
+ },
944
+ type: {
945
+ description: "Discriminator value of the type.",
946
+ "const": "integer"
947
+ }
948
+ },
949
+ required: [
950
+ "type"
951
+ ]
952
+ },
953
+ "AutoBeOpenApi.IJsonSchema.IString": {
954
+ description: "String type info.",
955
+ type: "object",
956
+ properties: {
957
+ format: {
958
+ description: "Format restriction.",
959
+ type: "string"
960
+ },
961
+ pattern: {
962
+ description: "Pattern restriction.",
963
+ type: "string"
964
+ },
965
+ contentMediaType: {
966
+ description: "Content media type restriction.",
967
+ type: "string"
968
+ },
969
+ minLength: {
970
+ description: "Minimum length restriction.",
971
+ type: "integer",
972
+ minimum: 0
973
+ },
974
+ maxLength: {
975
+ description: "Maximum length restriction.",
976
+ type: "integer",
977
+ minimum: 0
978
+ },
979
+ type: {
980
+ description: "Discriminator value of the type.",
981
+ "const": "string"
982
+ }
983
+ },
984
+ required: [
985
+ "type"
986
+ ]
987
+ },
988
+ "AutoBeOpenApi.IRequestBody": {
989
+ description: "Request body information of OpenAPI operation.\n\nThis interface defines the structure for request bodies in API routes. It\ncorresponds to the requestBody section in OpenAPI specifications, providing\nboth a description and schema reference for the request payload.\n\nThe content-type for all request bodies is always `application/json`. Even\nwhen file uploading is required, don't use `multipart/form-data` or\n`application/x-www-form-urlencoded` content types. Instead, just define an\nURI string property in the request body schema.\n\nNote that, all body schemas must be transformable to a\n{@link AutoBeOpenApi.IJsonSchema.IReference reference} type defined in the\n{@link AutoBeOpenApi.IComponents.schemas components section} as an\n{@link AutoBeOpenApi.IJsonSchema.IObject object} type.\n\nIn OpenAPI, this might represent:\n\n```json\n{\n \"requestBody\": {\n \"description\": \"Creation info of the order\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/IShoppingOrder.ICreate\"\n }\n }\n }\n }\n}\n```",
990
+ type: "object",
991
+ properties: {
992
+ description: {
993
+ description: "Description about the request body.\n\nMake short, concise and clear description about the request body.\n\n> MUST be written in English. Never use other languages.",
994
+ type: "string"
995
+ },
996
+ typeName: {
997
+ description: "Request body type name.\n\nThis specifies the data structure expected in the request body, that will\nbe transformed to {@link AutoBeOpenApi.IJsonSchema.IReference reference}\ntype in the {@link AutoBeOpenApi.IComponents.schemas components section}\nas an {@link AutoBeOpenApi.IJsonSchema.Object object} type.\n\nHere is the naming convention for the request body type:\n\n- `IEntityName.ICreate`: Request body for creation operations (POST)\n- `IEntityName.IUpdate`: Request body for update operations (PUT)\n- `IEntityName.IRequest`: Request parameters for list operations (often\n with search/pagination)\n\nWhat you write:\n\n```json\n{\n \"typeName\": \"IShoppingOrder.ICreate\"\n}\n```\n\nTransformed to:\n\n```json\n{\n \"schema\": {\n \"$ref\": \"#/components/schemas/IShoppingOrder.ICreate\"\n }\n}\n```",
998
+ type: "string"
999
+ }
1000
+ },
1001
+ required: [
1002
+ "description",
1003
+ "typeName"
1004
+ ]
1005
+ },
1006
+ "AutoBeOpenApi.IResponseBody": {
1007
+ description: "Response body information for OpenAPI operation.\n\nThis interface defines the structure of a successful response from an API\noperation. It provides a description of the response and a schema reference\nto define the returned data structure.\n\nThe content-type for all responses is always `application/json`. Even when\nfile downloading is required, don't use `application/octet-stream` or\n`multipart/form-data` content types. Instead, just define an URI string\nproperty in the response body schema.\n\nIn OpenAPI, this might represent:\n\n```json\n{\n \"responses\": {\n \"200\": {\n \"description\": \"Order information\",\n \"content\": {\n \"application/json\": {\n \"schema\": { \"$ref\": \"#/components/schemas/IShoppingOrder\" }\n }\n }\n }\n }\n}\n```",
1008
+ type: "object",
1009
+ properties: {
1010
+ description: {
1011
+ description: "Description about the response body.\n\nMake short, concise and clear description about the response body.\n\n> MUST be written in English. Never use other languages.",
1012
+ type: "string"
1013
+ },
1014
+ typeName: {
1015
+ description: "Response body's data type.\n\nSpecifies the structure of the returned data (response body), that will\nbe transformed to {@link AutoBeOpenApi.IJsonSchema.IReference} type in the\n{@link AutoBeOpenApi.IComponents.schemas components section} as an\n{@link AutoBeOpenApi.IJsonSchema.IObject object} type.\n\nHere is the naming convention for the response body type:\n\n- `IEntityName`: Main entity with detailed information (e.g.,\n `IShoppingSale`)\n- `IEntityName.ISummary`: Simplified response version with essential\n properties\n- `IEntityName.IInvert`: Alternative view of an entity from a different\n perspective\n- `IPageIEntityName`: Paginated results container with `pagination` and\n `data` properties\n\nWhat you write:\n\n```json\n{\n \"typeName\": \"IShoppingOrder\"\n}\n```\n\nTransformed to:\n\n```json\n{\n \"schema\": {\n \"$ref\": \"#/components/schemas/IShoppingOrder\"\n }\n}\n```",
1016
+ type: "string"
1017
+ }
1018
+ },
1019
+ required: [
1020
+ "description",
1021
+ "typeName"
1022
+ ]
1023
+ }
1024
+ }
1025
+ },
1026
+ description: "Reviews a batch of API operations for quality and correctness.\n\nValidates each operation's request/response schemas, authentication\nhandling, error responses, and documentation completeness. Operations are\nmarked as passed or failed based on compliance with enterprise standards.",
1027
+ validate: (() => { const _io0 = input => "string" === typeof input.review && "string" === typeof input.plan && (Array.isArray(input.content) && input.content.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.specification && "string" === typeof input.description && "string" === typeof input.summary && (Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (null === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && _io6(input.requestBody)) && (null === input.responseBody || "object" === typeof input.responseBody && null !== input.responseBody && _io7(input.responseBody)) && (null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) && 1 <= input.authorizationRole.length)) && ("string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name)) && ("string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path)) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io2 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.description && ("object" === typeof input.schema && null !== input.schema && _iu0(input.schema)); const _io3 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type; const _io4 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type; const _io5 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type; const _io6 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _io7 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _iu0 = input => (() => {
1028
+ if ("number" === input.type)
1029
+ return _io4(input);
1030
+ else if ("integer" === input.type)
1031
+ return _io3(input);
1032
+ else if ("string" === input.type)
1033
+ return _io5(input);
1034
+ else
1035
+ return false;
1036
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
1037
+ path: _path + ".review",
1038
+ expected: "string",
1039
+ value: input.review
1040
+ }), "string" === typeof input.plan || _report(_exceptionable, {
1041
+ path: _path + ".plan",
1042
+ expected: "string",
1043
+ value: input.plan
1044
+ }), (Array.isArray(input.content) || _report(_exceptionable, {
1045
+ path: _path + ".content",
1046
+ expected: "Array<AutoBeOpenApi.IOperation>",
1047
+ value: input.content
1048
+ })) && input.content.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1049
+ path: _path + ".content[" + _index3 + "]",
1050
+ expected: "AutoBeOpenApi.IOperation",
1051
+ value: elem
1052
+ })) && _vo1(elem, _path + ".content[" + _index3 + "]", true && _exceptionable) || _report(_exceptionable, {
1053
+ path: _path + ".content[" + _index3 + "]",
1054
+ expected: "AutoBeOpenApi.IOperation",
1055
+ value: elem
1056
+ })).every(flag => flag) || _report(_exceptionable, {
1057
+ path: _path + ".content",
1058
+ expected: "Array<AutoBeOpenApi.IOperation>",
1059
+ value: input.content
1060
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.specification || _report(_exceptionable, {
1061
+ path: _path + ".specification",
1062
+ expected: "string",
1063
+ value: input.specification
1064
+ }), "string" === typeof input.description || _report(_exceptionable, {
1065
+ path: _path + ".description",
1066
+ expected: "string",
1067
+ value: input.description
1068
+ }), "string" === typeof input.summary || _report(_exceptionable, {
1069
+ path: _path + ".summary",
1070
+ expected: "string",
1071
+ value: input.summary
1072
+ }), (Array.isArray(input.parameters) || _report(_exceptionable, {
1073
+ path: _path + ".parameters",
1074
+ expected: "Array<AutoBeOpenApi.IParameter>",
1075
+ value: input.parameters
1076
+ })) && input.parameters.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1077
+ path: _path + ".parameters[" + _index4 + "]",
1078
+ expected: "AutoBeOpenApi.IParameter",
1079
+ value: elem
1080
+ })) && _vo2(elem, _path + ".parameters[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
1081
+ path: _path + ".parameters[" + _index4 + "]",
1082
+ expected: "AutoBeOpenApi.IParameter",
1083
+ value: elem
1084
+ })).every(flag => flag) || _report(_exceptionable, {
1085
+ path: _path + ".parameters",
1086
+ expected: "Array<AutoBeOpenApi.IParameter>",
1087
+ value: input.parameters
1088
+ }), null === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody || _report(_exceptionable, {
1089
+ path: _path + ".requestBody",
1090
+ expected: "(AutoBeOpenApi.IRequestBody | null)",
1091
+ value: input.requestBody
1092
+ })) && _vo6(input.requestBody, _path + ".requestBody", true && _exceptionable) || _report(_exceptionable, {
1093
+ path: _path + ".requestBody",
1094
+ expected: "(AutoBeOpenApi.IRequestBody | null)",
1095
+ value: input.requestBody
1096
+ }), null === input.responseBody || ("object" === typeof input.responseBody && null !== input.responseBody || _report(_exceptionable, {
1097
+ path: _path + ".responseBody",
1098
+ expected: "(AutoBeOpenApi.IResponseBody | null)",
1099
+ value: input.responseBody
1100
+ })) && _vo7(input.responseBody, _path + ".responseBody", true && _exceptionable) || _report(_exceptionable, {
1101
+ path: _path + ".responseBody",
1102
+ expected: "(AutoBeOpenApi.IResponseBody | null)",
1103
+ value: input.responseBody
1104
+ }), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
1105
+ path: _path + ".authorizationRole",
1106
+ expected: "string & CamelPattern",
1107
+ value: input.authorizationRole
1108
+ })) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
1109
+ path: _path + ".authorizationRole",
1110
+ expected: "string & MinLength<1>",
1111
+ value: input.authorizationRole
1112
+ })) || _report(_exceptionable, {
1113
+ path: _path + ".authorizationRole",
1114
+ expected: "((string & CamelPattern & MinLength<1>) | null)",
1115
+ value: input.authorizationRole
1116
+ }), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1117
+ path: _path + ".name",
1118
+ expected: "string & CamelPattern",
1119
+ value: input.name
1120
+ })) || _report(_exceptionable, {
1121
+ path: _path + ".name",
1122
+ expected: "(string & CamelPattern)",
1123
+ value: input.name
1124
+ }), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
1125
+ path: _path + ".path",
1126
+ expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
1127
+ value: input.path
1128
+ })) || _report(_exceptionable, {
1129
+ path: _path + ".path",
1130
+ expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
1131
+ value: input.path
1132
+ }), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
1133
+ path: _path + ".method",
1134
+ expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
1135
+ value: input.method
1136
+ })].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, {
1137
+ path: _path + ".name",
1138
+ expected: "string & CamelPattern",
1139
+ value: input.name
1140
+ })) || _report(_exceptionable, {
1141
+ path: _path + ".name",
1142
+ expected: "(string & CamelPattern)",
1143
+ value: input.name
1144
+ }), "string" === typeof input.description || _report(_exceptionable, {
1145
+ path: _path + ".description",
1146
+ expected: "string",
1147
+ value: input.description
1148
+ }), ("object" === typeof input.schema && null !== input.schema || _report(_exceptionable, {
1149
+ path: _path + ".schema",
1150
+ expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
1151
+ value: input.schema
1152
+ })) && _vu0(input.schema, _path + ".schema", true && _exceptionable) || _report(_exceptionable, {
1153
+ path: _path + ".schema",
1154
+ expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
1155
+ value: input.schema
1156
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000 || _report(_exceptionable, {
1157
+ path: _path + ".minimum",
1158
+ expected: "number & Type<\"int64\">",
1159
+ value: input.minimum
1160
+ })) || _report(_exceptionable, {
1161
+ path: _path + ".minimum",
1162
+ expected: "((number & Type<\"int64\">) | undefined)",
1163
+ value: input.minimum
1164
+ }), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || _report(_exceptionable, {
1165
+ path: _path + ".maximum",
1166
+ expected: "number & Type<\"int64\">",
1167
+ value: input.maximum
1168
+ })) || _report(_exceptionable, {
1169
+ path: _path + ".maximum",
1170
+ expected: "((number & Type<\"int64\">) | undefined)",
1171
+ value: input.maximum
1172
+ }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
1173
+ path: _path + ".exclusiveMinimum",
1174
+ expected: "(number | undefined)",
1175
+ value: input.exclusiveMinimum
1176
+ }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
1177
+ path: _path + ".exclusiveMaximum",
1178
+ expected: "(number | undefined)",
1179
+ value: input.exclusiveMaximum
1180
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || _report(_exceptionable, {
1181
+ path: _path + ".multipleOf",
1182
+ expected: "number & Type<\"uint64\">",
1183
+ value: input.multipleOf
1184
+ })) && (0 < input.multipleOf || _report(_exceptionable, {
1185
+ path: _path + ".multipleOf",
1186
+ expected: "number & ExclusiveMinimum<0>",
1187
+ value: input.multipleOf
1188
+ })) || _report(_exceptionable, {
1189
+ path: _path + ".multipleOf",
1190
+ expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
1191
+ value: input.multipleOf
1192
+ }), "integer" === input.type || _report(_exceptionable, {
1193
+ path: _path + ".type",
1194
+ expected: "\"integer\"",
1195
+ value: input.type
1196
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
1197
+ path: _path + ".minimum",
1198
+ expected: "(number | undefined)",
1199
+ value: input.minimum
1200
+ }), undefined === input.maximum || "number" === typeof input.maximum || _report(_exceptionable, {
1201
+ path: _path + ".maximum",
1202
+ expected: "(number | undefined)",
1203
+ value: input.maximum
1204
+ }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
1205
+ path: _path + ".exclusiveMinimum",
1206
+ expected: "(number | undefined)",
1207
+ value: input.exclusiveMinimum
1208
+ }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
1209
+ path: _path + ".exclusiveMaximum",
1210
+ expected: "(number | undefined)",
1211
+ value: input.exclusiveMaximum
1212
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
1213
+ path: _path + ".multipleOf",
1214
+ expected: "number & ExclusiveMinimum<0>",
1215
+ value: input.multipleOf
1216
+ })) || _report(_exceptionable, {
1217
+ path: _path + ".multipleOf",
1218
+ expected: "((number & ExclusiveMinimum<0>) | undefined)",
1219
+ value: input.multipleOf
1220
+ }), "number" === input.type || _report(_exceptionable, {
1221
+ path: _path + ".type",
1222
+ expected: "\"number\"",
1223
+ value: input.type
1224
+ })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
1225
+ path: _path + ".format",
1226
+ expected: "(string | undefined)",
1227
+ value: input.format
1228
+ }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
1229
+ path: _path + ".pattern",
1230
+ expected: "(string | undefined)",
1231
+ value: input.pattern
1232
+ }), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
1233
+ path: _path + ".contentMediaType",
1234
+ expected: "(string | undefined)",
1235
+ value: input.contentMediaType
1236
+ }), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || _report(_exceptionable, {
1237
+ path: _path + ".minLength",
1238
+ expected: "number & Type<\"uint64\">",
1239
+ value: input.minLength
1240
+ })) || _report(_exceptionable, {
1241
+ path: _path + ".minLength",
1242
+ expected: "((number & Type<\"uint64\">) | undefined)",
1243
+ value: input.minLength
1244
+ }), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
1245
+ path: _path + ".maxLength",
1246
+ expected: "number & Type<\"uint64\">",
1247
+ value: input.maxLength
1248
+ })) || _report(_exceptionable, {
1249
+ path: _path + ".maxLength",
1250
+ expected: "((number & Type<\"uint64\">) | undefined)",
1251
+ value: input.maxLength
1252
+ }), "string" === input.type || _report(_exceptionable, {
1253
+ path: _path + ".type",
1254
+ expected: "\"string\"",
1255
+ value: input.type
1256
+ })].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
1257
+ path: _path + ".description",
1258
+ expected: "string",
1259
+ value: input.description
1260
+ }), "string" === typeof input.typeName || _report(_exceptionable, {
1261
+ path: _path + ".typeName",
1262
+ expected: "string",
1263
+ value: input.typeName
1264
+ })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
1265
+ path: _path + ".description",
1266
+ expected: "string",
1267
+ value: input.description
1268
+ }), "string" === typeof input.typeName || _report(_exceptionable, {
1269
+ path: _path + ".typeName",
1270
+ expected: "string",
1271
+ value: input.typeName
1272
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
1273
+ if ("number" === input.type)
1274
+ return _vo4(input, _path, true && _exceptionable);
1275
+ else if ("integer" === input.type)
1276
+ return _vo3(input, _path, true && _exceptionable);
1277
+ else if ("string" === input.type)
1278
+ return _vo5(input, _path, true && _exceptionable);
1279
+ else
1280
+ return _report(_exceptionable, {
1281
+ path: _path,
1282
+ expected: "(AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.IString)",
1283
+ value: input
1284
+ });
1285
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
1286
+ if (false === __is(input)) {
1287
+ errors = [];
1288
+ _report = __typia_transform__validateReport._validateReport(errors);
1289
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
1290
+ path: _path + "",
1291
+ expected: "IAutoBeInterfaceOperationsReviewApplication.IProps",
1292
+ value: input
1293
+ })) && _vo0(input, _path + "", true) || _report(true, {
1294
+ path: _path + "",
1295
+ expected: "IAutoBeInterfaceOperationsReviewApplication.IProps",
1296
+ value: input
1297
+ }))(input, "$input", true);
1298
+ const success = 0 === errors.length;
1299
+ return success ? {
1300
+ success,
1301
+ data: input
1302
+ } : {
1303
+ success,
1304
+ errors,
1305
+ data: input
1306
+ };
1307
+ }
1308
+ return {
1309
+ success: true,
1310
+ data: input
1311
+ };
1312
+ }; })()
1313
+ }
1314
+ ]
1315
+ },
1316
+ };
1317
+ //# sourceMappingURL=orchestrateInterfaceOperationsReview.js.map