@autobe/agent 0.22.1 → 0.23.1

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 (687) hide show
  1. package/lib/AutoBeAgent.d.ts +2 -1
  2. package/lib/{agent/src/AutoBeAgent.js → AutoBeAgent.js} +17 -3
  3. package/lib/AutoBeAgent.js.map +1 -0
  4. package/lib/AutoBeAgentBase.js.map +1 -0
  5. package/lib/{agent/src/AutoBeMockAgent.js → AutoBeMockAgent.js} +16 -0
  6. package/lib/AutoBeMockAgent.js.map +1 -0
  7. package/lib/constants/AutoBeConfigConstant.d.ts +3 -1
  8. package/lib/constants/AutoBeConfigConstant.js.map +1 -0
  9. package/lib/constants/AutoBeSystemPromptConstant.d.ts +17 -15
  10. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -0
  11. package/lib/context/AutoBeContext.js.map +1 -0
  12. package/lib/context/AutoBeState.js.map +1 -0
  13. package/lib/context/AutoBeTokenUsage.d.ts +1 -0
  14. package/lib/{agent/src/context → context}/AutoBeTokenUsage.js +8 -0
  15. package/lib/context/AutoBeTokenUsage.js.map +1 -0
  16. package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
  17. package/lib/{agent/src/context → context}/AutoBeTokenUsageComponent.js +8 -0
  18. package/lib/context/AutoBeTokenUsageComponent.js.map +1 -0
  19. package/lib/context/IAutoBeApplication.js.map +1 -0
  20. package/lib/context/IAutoBeApplicationProps.js.map +1 -0
  21. package/lib/context/IAutoBeApplicationResult.js.map +1 -0
  22. package/lib/context/assertSchemaModel.js.map +1 -0
  23. package/lib/{agent/src/factory → factory}/consentFunctionCall.js +1 -1
  24. package/lib/factory/consentFunctionCall.js.map +1 -0
  25. package/lib/factory/createAgenticaHistory.js.map +1 -0
  26. package/lib/factory/createAutoBeApplication.js.map +1 -0
  27. package/lib/{agent/src/factory → factory}/createAutoBeContext.js +66 -20
  28. package/lib/factory/createAutoBeContext.js.map +1 -0
  29. package/lib/factory/createAutoBeState.js.map +1 -0
  30. package/lib/factory/getAutoBeGenerated.js.map +1 -0
  31. package/lib/factory/getAutoBeRealizeGenerated.js.map +1 -0
  32. package/lib/factory/getCriticalCompiler.d.ts +3 -0
  33. package/lib/factory/getCriticalCompiler.js +55 -0
  34. package/lib/factory/getCriticalCompiler.js.map +1 -0
  35. package/lib/factory/index.js.map +1 -0
  36. package/lib/index.js.map +1 -0
  37. package/lib/index.mjs +4827 -3025
  38. package/lib/index.mjs.map +1 -1
  39. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -0
  40. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
  41. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
  42. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
  43. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
  44. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
  45. package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeWrite.js +2 -4
  46. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
  47. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
  48. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
  49. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
  50. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.d.ts +8 -0
  51. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +31 -0
  52. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -0
  53. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +18 -0
  54. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +411 -0
  55. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -0
  56. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +122 -0
  57. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js +3 -0
  58. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js.map +1 -0
  59. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
  60. package/lib/orchestrate/index.js.map +1 -0
  61. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
  62. package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAuthorizationsHistories.js +1 -1
  63. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
  64. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +63 -0
  65. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
  66. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
  67. package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointsReviewHistories.js +4 -4
  68. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -0
  69. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
  70. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +52 -0
  71. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
  72. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +36 -0
  73. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
  74. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
  75. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +29 -0
  76. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
  77. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +60 -0
  78. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
  79. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -0
  80. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
  81. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceComplement.js +2 -2
  82. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
  83. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
  84. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -0
  85. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
  86. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceOperations.js +193 -274
  87. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
  88. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1747 -0
  89. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
  90. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemas.js +2 -2
  91. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
  92. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +1 -1
  93. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemasReview.js +5 -7
  94. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
  95. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
  96. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
  97. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
  98. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +1 -0
  99. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
  100. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +247 -1
  101. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
  102. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
  103. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
  104. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
  105. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -0
  106. package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -0
  107. package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +6 -1
  108. package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaValidator.js +26 -24
  109. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -0
  110. package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
  111. package/lib/{agent/src/orchestrate/interface/utils/JsonSchemaValidator.d.ts → orchestrate/interface/utils/OperationValidator.d.ts} +2 -2
  112. package/lib/orchestrate/interface/utils/OperationValidator.js +114 -0
  113. package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -0
  114. package/lib/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +1 -0
  115. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
  116. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
  117. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
  118. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
  119. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -0
  120. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
  121. package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaCorrect.js +2 -2
  122. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
  123. package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
  124. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
  125. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
  126. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
  127. package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
  128. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
  129. package/lib/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
  130. package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorization.js +1 -1
  131. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
  132. package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorizationCorrectHistories.js +2 -2
  133. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
  134. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +57 -0
  135. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
  136. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
  137. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +141 -0
  138. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
  139. package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -0
  140. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.d.ts +4 -0
  141. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +505 -0
  142. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -0
  143. package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealize.js +18 -8
  144. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
  145. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
  146. package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +1 -1
  147. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
  148. package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +2 -15
  149. package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeCorrect.js +48 -43
  150. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
  151. package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
  152. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
  153. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
  154. package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +1 -0
  155. package/lib/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +1 -0
  156. package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +1 -0
  157. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
  158. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
  159. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
  160. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
  161. package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
  162. package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
  163. package/lib/orchestrate/realize/utils/generateRealizeScenario.d.ts +25 -0
  164. package/lib/orchestrate/realize/utils/generateRealizeScenario.js +85 -0
  165. package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -0
  166. package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -0
  167. package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -0
  168. package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -0
  169. package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -0
  170. package/lib/orchestrate/realize/utils/replaceImportStatements.js +98 -0
  171. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
  172. package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
  173. package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  174. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  175. package/lib/orchestrate/test/compile/getTestImportStatements.js.map +1 -0
  176. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  177. package/lib/orchestrate/test/compile/getTestTemplateCode.js.map +1 -0
  178. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +51 -0
  179. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
  180. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.d.ts +4 -0
  181. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +33 -0
  182. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -0
  183. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +1 -1
  184. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +159 -0
  185. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
  186. package/lib/orchestrate/test/histories/transformTestValidateEvent.d.ts +4 -0
  187. package/lib/orchestrate/test/histories/transformTestValidateEvent.js +11 -0
  188. package/lib/orchestrate/test/histories/transformTestValidateEvent.js.map +1 -0
  189. package/lib/orchestrate/test/histories/transformTestWriteHistories.js +220 -0
  190. package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
  191. package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTest.js +13 -7
  192. package/lib/orchestrate/test/orchestrateTest.js.map +1 -0
  193. package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +2 -2
  194. package/lib/orchestrate/test/orchestrateTestCorrect.js +513 -0
  195. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
  196. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.d.ts +7 -0
  197. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +425 -0
  198. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -0
  199. package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestScenario.js +32 -36
  200. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -0
  201. package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestWrite.js +23 -35
  202. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -0
  203. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  204. package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.d.ts +140 -0
  205. package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js +3 -0
  206. package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js.map +1 -0
  207. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  208. package/lib/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +1 -0
  209. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +2 -2
  210. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
  211. package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
  212. package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +1 -0
  213. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +38 -15
  214. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  215. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  216. package/lib/{agent/src/orchestrate → orchestrate}/test/utils/getReferenceIds.js +1 -1
  217. package/lib/orchestrate/test/utils/getReferenceIds.js.map +1 -0
  218. package/lib/structures/IAutoBeConfig.d.ts +1 -0
  219. package/lib/structures/IAutoBeConfig.js.map +1 -0
  220. package/lib/structures/IAutoBeProps.js.map +1 -0
  221. package/lib/structures/IAutoBeVendor.js.map +1 -0
  222. package/lib/utils/AutoBeTimeoutError.d.ts +4 -0
  223. package/lib/utils/AutoBeTimeoutError.js +18 -0
  224. package/lib/utils/AutoBeTimeoutError.js.map +1 -0
  225. package/lib/utils/TimeoutConversation.d.ts +24 -0
  226. package/lib/utils/TimeoutConversation.js +65 -0
  227. package/lib/utils/TimeoutConversation.js.map +1 -0
  228. package/lib/utils/arrayToRecord.js.map +1 -0
  229. package/lib/utils/backoffRetry.js.map +1 -0
  230. package/lib/utils/divideArray.js.map +1 -0
  231. package/lib/utils/emplaceMap.js.map +1 -0
  232. package/lib/utils/executeCachedBatch.js.map +1 -0
  233. package/lib/utils/predicateStateMessage.js.map +1 -0
  234. package/package.json +6 -6
  235. package/src/AutoBeAgent.ts +16 -1
  236. package/src/AutoBeMockAgent.ts +13 -3
  237. package/src/constants/AutoBeConfigConstant.ts +3 -1
  238. package/src/constants/AutoBeSystemPromptConstant.ts +17 -15
  239. package/src/context/AutoBeTokenUsage.ts +9 -0
  240. package/src/context/AutoBeTokenUsageComponent.ts +9 -0
  241. package/src/factory/consentFunctionCall.ts +1 -1
  242. package/src/factory/createAutoBeContext.ts +68 -20
  243. package/src/factory/getCriticalCompiler.ts +47 -0
  244. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +2 -4
  245. package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +43 -0
  246. package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +170 -0
  247. package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +127 -0
  248. package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +4 -4
  249. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +2 -2
  250. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +10 -94
  251. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +49 -13
  252. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +3 -2
  253. package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +5 -5
  254. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +254 -4
  255. package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +31 -26
  256. package/src/orchestrate/interface/utils/OperationValidator.ts +127 -0
  257. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +2 -2
  258. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +6 -0
  259. package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +317 -0
  260. package/src/orchestrate/realize/orchestrateRealize.ts +29 -14
  261. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +1 -1
  262. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +79 -67
  263. package/src/orchestrate/realize/utils/generateRealizeScenario.ts +104 -0
  264. package/src/orchestrate/realize/utils/replaceImportStatements.ts +60 -32
  265. package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +4 -3
  266. package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +39 -0
  267. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +75 -17
  268. package/src/orchestrate/test/histories/transformTestValidateEvent.ts +14 -0
  269. package/src/orchestrate/test/orchestrateTest.ts +11 -7
  270. package/src/orchestrate/test/orchestrateTestCorrect.ts +111 -33
  271. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +145 -0
  272. package/src/orchestrate/test/orchestrateTestScenario.ts +29 -13
  273. package/src/orchestrate/test/orchestrateTestWrite.ts +3 -1
  274. package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +233 -0
  275. package/src/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.ts +146 -0
  276. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +2 -2
  277. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +110 -15
  278. package/src/orchestrate/test/utils/getReferenceIds.ts +1 -1
  279. package/src/structures/IAutoBeConfig.ts +2 -0
  280. package/src/utils/AutoBeTimeoutError.ts +13 -0
  281. package/src/utils/TimeoutConversation.ts +82 -0
  282. package/lib/agent/src/AutoBeAgent.d.ts +0 -52
  283. package/lib/agent/src/AutoBeAgent.js.map +0 -1
  284. package/lib/agent/src/AutoBeAgentBase.d.ts +0 -18
  285. package/lib/agent/src/AutoBeAgentBase.js.map +0 -1
  286. package/lib/agent/src/AutoBeMockAgent.d.ts +0 -7
  287. package/lib/agent/src/AutoBeMockAgent.js.map +0 -1
  288. package/lib/agent/src/constants/AutoBeConfigConstant.d.ts +0 -3
  289. package/lib/agent/src/constants/AutoBeConfigConstant.js.map +0 -1
  290. package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +0 -29
  291. package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +0 -1
  292. package/lib/agent/src/context/AutoBeContext.d.ts +0 -43
  293. package/lib/agent/src/context/AutoBeContext.js.map +0 -1
  294. package/lib/agent/src/context/AutoBeState.d.ts +0 -8
  295. package/lib/agent/src/context/AutoBeState.js.map +0 -1
  296. package/lib/agent/src/context/AutoBeTokenUsage.d.ts +0 -173
  297. package/lib/agent/src/context/AutoBeTokenUsage.js.map +0 -1
  298. package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +0 -117
  299. package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +0 -1
  300. package/lib/agent/src/context/IAutoBeApplication.d.ts +0 -107
  301. package/lib/agent/src/context/IAutoBeApplication.js.map +0 -1
  302. package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +0 -4
  303. package/lib/agent/src/context/IAutoBeApplicationProps.js.map +0 -1
  304. package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +0 -4
  305. package/lib/agent/src/context/IAutoBeApplicationResult.js.map +0 -1
  306. package/lib/agent/src/context/assertSchemaModel.d.ts +0 -2
  307. package/lib/agent/src/context/assertSchemaModel.js.map +0 -1
  308. package/lib/agent/src/factory/consentFunctionCall.d.ts +0 -10
  309. package/lib/agent/src/factory/consentFunctionCall.js.map +0 -1
  310. package/lib/agent/src/factory/createAgenticaHistory.d.ts +0 -7
  311. package/lib/agent/src/factory/createAgenticaHistory.js.map +0 -1
  312. package/lib/agent/src/factory/createAutoBeApplication.d.ts +0 -7
  313. package/lib/agent/src/factory/createAutoBeApplication.js.map +0 -1
  314. package/lib/agent/src/factory/createAutoBeContext.d.ts +0 -19
  315. package/lib/agent/src/factory/createAutoBeContext.js.map +0 -1
  316. package/lib/agent/src/factory/createAutoBeState.d.ts +0 -3
  317. package/lib/agent/src/factory/createAutoBeState.js.map +0 -1
  318. package/lib/agent/src/factory/getAutoBeGenerated.d.ts +0 -4
  319. package/lib/agent/src/factory/getAutoBeGenerated.js.map +0 -1
  320. package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +0 -7
  321. package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +0 -1
  322. package/lib/agent/src/factory/index.d.ts +0 -1
  323. package/lib/agent/src/factory/index.js.map +0 -1
  324. package/lib/agent/src/index.d.ts +0 -6
  325. package/lib/agent/src/index.js.map +0 -1
  326. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +0 -6
  327. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +0 -1
  328. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +0 -4
  329. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +0 -1
  330. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +0 -6
  331. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +0 -1
  332. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -5
  333. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
  334. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +0 -11
  335. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +0 -1
  336. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +0 -4
  337. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +0 -1
  338. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +0 -10
  339. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
  340. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +0 -111
  341. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +0 -1
  342. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +0 -78
  343. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +0 -1
  344. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +0 -74
  345. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +0 -1
  346. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +0 -2
  347. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
  348. package/lib/agent/src/orchestrate/index.d.ts +0 -5
  349. package/lib/agent/src/orchestrate/index.js.map +0 -1
  350. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +0 -3
  351. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
  352. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +0 -4
  353. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +0 -1
  354. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +0 -4
  355. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -63
  356. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
  357. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +0 -5
  358. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
  359. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +0 -4
  360. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +0 -1
  361. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +0 -3
  362. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
  363. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +0 -4
  364. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -52
  365. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
  366. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +0 -5
  367. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +0 -36
  368. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +0 -1
  369. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +0 -3
  370. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
  371. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +0 -4
  372. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -29
  373. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
  374. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +0 -4
  375. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +0 -60
  376. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +0 -1
  377. package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +0 -5
  378. package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +0 -1
  379. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +0 -4
  380. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +0 -1
  381. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +0 -4
  382. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
  383. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +0 -5
  384. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
  385. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -10
  386. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +0 -1
  387. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +0 -4
  388. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
  389. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +0 -4
  390. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
  391. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +0 -4
  392. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +0 -1416
  393. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +0 -1
  394. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +0 -4
  395. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
  396. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +0 -9
  397. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +0 -1
  398. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +0 -47
  399. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +0 -1
  400. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +0 -93
  401. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
  402. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +0 -24
  403. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
  404. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +0 -60
  405. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +0 -1
  406. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +0 -108
  407. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
  408. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -171
  409. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
  410. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +0 -117
  411. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +0 -1
  412. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +0 -107
  413. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
  414. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +0 -91
  415. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +0 -1
  416. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.d.ts +0 -9
  417. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js.map +0 -1
  418. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +0 -5
  419. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +0 -1
  420. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.js.map +0 -1
  421. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +0 -6
  422. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
  423. package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +0 -2
  424. package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +0 -1
  425. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +0 -3
  426. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
  427. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +0 -3
  428. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
  429. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +0 -8
  430. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +0 -1
  431. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +0 -3
  432. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
  433. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +0 -5
  434. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +0 -1
  435. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +0 -4
  436. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
  437. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +0 -4
  438. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
  439. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +0 -5
  440. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +0 -1
  441. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +0 -5
  442. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
  443. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +0 -121
  444. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +0 -1
  445. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +0 -142
  446. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
  447. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +0 -105
  448. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +0 -1
  449. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +0 -99
  450. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +0 -1
  451. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +0 -5
  452. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
  453. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +0 -5
  454. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +0 -1
  455. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
  456. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
  457. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -14
  458. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +0 -51
  459. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +0 -1
  460. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +0 -3
  461. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +0 -1
  462. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +0 -11
  463. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +0 -141
  464. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +0 -1
  465. package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.d.ts +0 -7
  466. package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js.map +0 -1
  467. package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +0 -5
  468. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +0 -1
  469. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +0 -10
  470. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
  471. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +0 -4
  472. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
  473. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +0 -19
  474. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +0 -1
  475. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
  476. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js +0 -44
  477. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +0 -1
  478. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +0 -11
  479. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +0 -1
  480. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +0 -109
  481. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
  482. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +0 -47
  483. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
  484. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +0 -39
  485. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +0 -1
  486. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +0 -5
  487. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +0 -1
  488. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +0 -36
  489. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +0 -1
  490. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +0 -295
  491. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +0 -1
  492. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +0 -5
  493. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
  494. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +0 -5
  495. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
  496. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +0 -4
  497. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
  498. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +0 -8
  499. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
  500. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +0 -3
  501. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
  502. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +0 -31
  503. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +0 -1
  504. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.d.ts +0 -4
  505. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js.map +0 -1
  506. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +0 -2
  507. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +0 -1
  508. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +0 -30
  509. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js.map +0 -1
  510. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +0 -8
  511. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +0 -77
  512. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
  513. package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +0 -4
  514. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +0 -1
  515. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +0 -1
  516. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +0 -1
  517. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +0 -3
  518. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
  519. package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.d.ts +0 -2
  520. package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js.map +0 -1
  521. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +0 -5
  522. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
  523. package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.d.ts +0 -2
  524. package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js.map +0 -1
  525. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.d.ts +0 -6
  526. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +0 -50
  527. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +0 -1
  528. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +0 -4
  529. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +0 -105
  530. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +0 -1
  531. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.d.ts +0 -10
  532. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +0 -220
  533. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +0 -1
  534. package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +0 -5
  535. package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +0 -1
  536. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +0 -5
  537. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +0 -405
  538. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
  539. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +0 -4
  540. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +0 -1
  541. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +0 -5
  542. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +0 -1
  543. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +0 -125
  544. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
  545. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +0 -8
  546. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
  547. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +0 -6
  548. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +0 -1
  549. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +0 -161
  550. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
  551. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +0 -8
  552. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
  553. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +0 -6
  554. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +0 -1
  555. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +0 -126
  556. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
  557. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +0 -7
  558. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
  559. package/lib/agent/src/orchestrate/test/utils/getReferenceIds.d.ts +0 -5
  560. package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js.map +0 -1
  561. package/lib/agent/src/structures/IAutoBeConfig.d.ts +0 -75
  562. package/lib/agent/src/structures/IAutoBeConfig.js.map +0 -1
  563. package/lib/agent/src/structures/IAutoBeProps.d.ts +0 -109
  564. package/lib/agent/src/structures/IAutoBeProps.js.map +0 -1
  565. package/lib/agent/src/structures/IAutoBeVendor.d.ts +0 -87
  566. package/lib/agent/src/structures/IAutoBeVendor.js.map +0 -1
  567. package/lib/agent/src/utils/arrayToRecord.d.ts +0 -17
  568. package/lib/agent/src/utils/arrayToRecord.js.map +0 -1
  569. package/lib/agent/src/utils/backoffRetry.d.ts +0 -22
  570. package/lib/agent/src/utils/backoffRetry.js.map +0 -1
  571. package/lib/agent/src/utils/divideArray.d.ts +0 -4
  572. package/lib/agent/src/utils/divideArray.js.map +0 -1
  573. package/lib/agent/src/utils/emplaceMap.d.ts +0 -1
  574. package/lib/agent/src/utils/emplaceMap.js.map +0 -1
  575. package/lib/agent/src/utils/executeCachedBatch.d.ts +0 -1
  576. package/lib/agent/src/utils/executeCachedBatch.js.map +0 -1
  577. package/lib/agent/src/utils/predicateStateMessage.d.ts +0 -4
  578. package/lib/agent/src/utils/predicateStateMessage.js.map +0 -1
  579. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +0 -153
  580. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +0 -3
  581. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +0 -1
  582. package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
  583. package/src/orchestrate/realize/orchestrateRealizeScenario.ts +0 -57
  584. /package/lib/{agent/src/AutoBeAgentBase.js → AutoBeAgentBase.js} +0 -0
  585. /package/lib/{agent/src/constants → constants}/AutoBeConfigConstant.js +0 -0
  586. /package/lib/{agent/src/constants → constants}/AutoBeSystemPromptConstant.js +0 -0
  587. /package/lib/{agent/src/context → context}/AutoBeContext.js +0 -0
  588. /package/lib/{agent/src/context → context}/AutoBeState.js +0 -0
  589. /package/lib/{agent/src/context → context}/IAutoBeApplication.js +0 -0
  590. /package/lib/{agent/src/context → context}/IAutoBeApplicationProps.js +0 -0
  591. /package/lib/{agent/src/context → context}/IAutoBeApplicationResult.js +0 -0
  592. /package/lib/{agent/src/context → context}/assertSchemaModel.js +0 -0
  593. /package/lib/{agent/src/factory → factory}/createAgenticaHistory.js +0 -0
  594. /package/lib/{agent/src/factory → factory}/createAutoBeApplication.js +0 -0
  595. /package/lib/{agent/src/factory → factory}/createAutoBeState.js +0 -0
  596. /package/lib/{agent/src/factory → factory}/getAutoBeGenerated.js +0 -0
  597. /package/lib/{agent/src/factory → factory}/getAutoBeRealizeGenerated.js +0 -0
  598. /package/lib/{agent/src/factory → factory}/index.js +0 -0
  599. /package/lib/{agent/src/index.js → index.js} +0 -0
  600. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeReviewHistories.js +0 -0
  601. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeScenarioHistories.js +0 -0
  602. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeWriteHistories.js +0 -0
  603. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyze.js +0 -0
  604. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeReview.js +0 -0
  605. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeScenario.js +0 -0
  606. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeReviewApplication.js +0 -0
  607. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +0 -0
  608. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeWriteApplication.js +0 -0
  609. /package/lib/{agent/src/orchestrate → orchestrate}/facade/transformFacadeStateMessage.js +0 -0
  610. /package/lib/{agent/src/orchestrate → orchestrate}/index.js +0 -0
  611. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAssetHistories.js +0 -0
  612. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointHistories.js +0 -0
  613. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceGroupHistories.js +0 -0
  614. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
  615. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterface.js +0 -0
  616. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceAuthorizations.js +0 -0
  617. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpoints.js +0 -0
  618. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpointsReview.js +0 -0
  619. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceGroups.js +0 -0
  620. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +0 -0
  621. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
  622. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
  623. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js +0 -0
  624. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
  625. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
  626. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +0 -0
  627. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
  628. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +0 -0
  629. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaFactory.js +0 -0
  630. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaNamingConvention.js +0 -0
  631. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
  632. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/fulfillJsonSchemaErrorMessages.js +0 -0
  633. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaComponentsHistories.js +0 -0
  634. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaCorrectHistories.js +0 -0
  635. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaReviewHistories.js +0 -0
  636. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaSchemaHistories.js +0 -0
  637. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrisma.js +0 -0
  638. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaComponent.js +0 -0
  639. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaReview.js +0 -0
  640. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaSchemas.js +0 -0
  641. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
  642. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
  643. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaReviewApplication.js +0 -0
  644. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +0 -0
  645. /package/lib/{agent/src/orchestrate → orchestrate}/realize/ProviderCodeComparator.js +0 -0
  646. /package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeWriteAuthorizationsHistories.js +0 -0
  647. /package/lib/{agent/src/orchestrate → orchestrate}/realize/internal/compileRealizeFiles.js +0 -0
  648. /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorization.js +0 -0
  649. /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeWrite.js +0 -0
  650. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
  651. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
  652. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeCorrectApplication.js +0 -0
  653. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeFunctionFailure.js +0 -0
  654. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeScenarioResult.js +0 -0
  655. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeWriteApplication.js +0 -0
  656. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
  657. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
  658. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
  659. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/InternalFileSystem.js +0 -0
  660. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
  661. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteCodeTemplate.js +0 -0
  662. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteDto.js +0 -0
  663. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteImportStatements.js +0 -0
  664. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteInputType.js +0 -0
  665. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/completeTestCode.js +0 -0
  666. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/filterTestFileName.js +0 -0
  667. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestExternalDeclarations.js +0 -0
  668. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestImportStatements.js +0 -0
  669. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
  670. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestTemplateCode.js +0 -0
  671. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
  672. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
  673. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunctionFailure.js +0 -0
  674. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
  675. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
  676. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioAuthorizationRole.js +0 -0
  677. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
  678. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
  679. /package/lib/{agent/src/structures → structures}/IAutoBeConfig.js +0 -0
  680. /package/lib/{agent/src/structures → structures}/IAutoBeProps.js +0 -0
  681. /package/lib/{agent/src/structures → structures}/IAutoBeVendor.js +0 -0
  682. /package/lib/{agent/src/utils → utils}/arrayToRecord.js +0 -0
  683. /package/lib/{agent/src/utils → utils}/backoffRetry.js +0 -0
  684. /package/lib/{agent/src/utils → utils}/divideArray.js +0 -0
  685. /package/lib/{agent/src/utils → utils}/emplaceMap.js +0 -0
  686. /package/lib/{agent/src/utils → utils}/executeCachedBatch.js +0 -0
  687. /package/lib/{agent/src/utils → utils}/predicateStateMessage.js +0 -0
@@ -1,1416 +0,0 @@
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 uuid_1 = require("uuid");
52
- const transformInterfaceOperationsReviewHistories_1 = require("./histories/transformInterfaceOperationsReviewHistories");
53
- function orchestrateInterfaceOperationsReview(ctx, operations, progress) {
54
- return __awaiter(this, void 0, void 0, function* () {
55
- var _a, _b, _c;
56
- try {
57
- const files = (_a = ctx.state().prisma) === null || _a === void 0 ? void 0 : _a.result.data.files;
58
- const pointer = {
59
- value: null,
60
- };
61
- const { tokenUsage } = yield ctx.conversate({
62
- source: "interfaceOperationsReview",
63
- histories: (0, transformInterfaceOperationsReviewHistories_1.transformInterfaceOperationsReviewHistories)(ctx, operations),
64
- controller: createReviewController({
65
- model: ctx.model,
66
- prismaSchemas: files,
67
- build: (next) => {
68
- pointer.value = next;
69
- },
70
- }),
71
- enforceFunctionCall: false,
72
- message: "Review the operations",
73
- });
74
- if (pointer.value === null) {
75
- console.error("Failed to review operations.");
76
- ++progress.completed;
77
- return [];
78
- }
79
- const content = pointer.value.content.map((op) => (Object.assign(Object.assign({}, op), { authorizationType: null })));
80
- ctx.dispatch({
81
- type: "interfaceOperationsReview",
82
- id: (0, uuid_1.v7)(),
83
- operations: content,
84
- review: pointer.value.think.review,
85
- plan: pointer.value.think.plan,
86
- content,
87
- tokenUsage,
88
- created_at: new Date().toISOString(),
89
- step: (_c = (_b = ctx.state().analyze) === null || _b === void 0 ? void 0 : _b.step) !== null && _c !== void 0 ? _c : 0,
90
- total: progress.total,
91
- completed: ++progress.completed,
92
- });
93
- return content;
94
- }
95
- catch (error) {
96
- console.error("Error occurred during interface operations review:", error);
97
- ++progress.completed;
98
- return [];
99
- }
100
- });
101
- }
102
- function createReviewController(props) {
103
- const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"];
104
- return {
105
- protocol: "class",
106
- name: "review",
107
- application,
108
- execute: {
109
- reviewOperations: (next) => {
110
- props.build(next);
111
- },
112
- },
113
- };
114
- }
115
- const collection = {
116
- chatgpt: {
117
- model: "chatgpt",
118
- options: {
119
- reference: true,
120
- strict: false,
121
- separate: null
122
- },
123
- functions: [
124
- {
125
- name: "reviewOperations",
126
- parameters: {
127
- description: " Properties containing the thinking process (review & plan)\nand the enhanced operations content\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.\n\n### Description of {@link think} property:\n\n> Comprehensive thinking process for API operation review.\n> \n> Encapsulates the agent's analytical review findings and actionable\n> improvement plan. This structured thinking process ensures systematic\n> evaluation of API operations against AutoBE's quality standards before\n> generating the final enhanced operations.",
128
- type: "object",
129
- properties: {
130
- think: {
131
- $ref: "#/$defs/IAutoBeInterfaceOperationsReviewApplication.IThink"
132
- },
133
- content: {
134
- 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.",
135
- type: "array",
136
- items: {
137
- $ref: "#/$defs/AutoBeOpenApi.IOperation"
138
- }
139
- }
140
- },
141
- required: [
142
- "think",
143
- "content"
144
- ],
145
- additionalProperties: false,
146
- $defs: {
147
- "IAutoBeInterfaceOperationsReviewApplication.IThink": {
148
- description: "Structured thinking process for comprehensive API operation review.\n\nCombines analytical review findings with actionable improvement planning\nto guide the systematic enhancement of API operations. This thinking\nstructure ensures all aspects of API quality are evaluated and addressed\nbefore producing the final operations.",
149
- type: "object",
150
- properties: {
151
- review: {
152
- 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.",
153
- type: "string"
154
- },
155
- plan: {
156
- 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.",
157
- type: "string"
158
- }
159
- },
160
- required: [
161
- "review",
162
- "plan"
163
- ]
164
- },
165
- "AutoBeOpenApi.IOperation": {
166
- 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```",
167
- type: "object",
168
- properties: {
169
- specification: {
170
- 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.",
171
- type: "string"
172
- },
173
- authorizationType: {
174
- description: "Authorization type of the API operation.\n\n- `\"login\"`: User login operations that validate credentials\n- `\"join\"`: User registration operations that create accounts\n- `\"refresh\"`: Token refresh operations that renew access tokens\n- `null`: All other operations (CRUD, business logic, etc.)\n\nUse authentication values only for credential validation, user\nregistration, or token refresh operations. Use `null` for all other\nbusiness operations.\n\nExamples:\n\n- `/auth/login` \u2192 `\"login\"`\n- `/auth/register` \u2192 `\"join\"`\n- `/auth/refresh` \u2192 `\"refresh\"`\n- `/auth/validate` \u2192 `null`\n- `/users/{id}`, `/shoppings/customers/sales/cancel`, \u2192 `null`",
175
- anyOf: [
176
- {
177
- type: "null"
178
- },
179
- {
180
- type: "string",
181
- "enum": [
182
- "login",
183
- "join",
184
- "refresh"
185
- ]
186
- }
187
- ]
188
- },
189
- description: {
190
- 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**CRITICAL WARNING about soft delete keywords**: DO NOT use terms like\n\"soft delete\", \"soft-delete\", or similar variations in this description\nUNLESS the operation actually implements soft deletion. These keywords\ntrigger validation logic that expects a corresponding soft_delete_column\nto be specified. Only use these terms when you intend to implement soft\ndeletion (marking records as deleted without removing them from the\ndatabase).\n\nExample of problematic description: \u274C \"This would normally be a\nsoft-delete, but we intentionally perform permanent deletion here\" - This\ntriggers soft delete validation despite being a hard delete operation.\n\n> MUST be written in English. Never use other languages.",
191
- type: "string"
192
- },
193
- summary: {
194
- 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**CRITICAL WARNING about soft delete keywords**: DO NOT use terms like\n\"soft delete\", \"soft-delete\", or similar variations in this summary\nUNLESS the operation actually implements soft deletion. These keywords\ntrigger validation logic that expects a corresponding soft_delete_column\nto be specified. Only use these terms when you intend to implement soft\ndeletion (marking records as deleted without removing them from the\ndatabase).\n\n> MUST be written in English. Never use other languages",
195
- type: "string"
196
- },
197
- parameters: {
198
- 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`",
199
- type: "array",
200
- items: {
201
- $ref: "#/$defs/AutoBeOpenApi.IParameter"
202
- }
203
- },
204
- requestBody: {
205
- 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.",
206
- anyOf: [
207
- {
208
- type: "null"
209
- },
210
- {
211
- $ref: "#/$defs/AutoBeOpenApi.IRequestBody"
212
- }
213
- ]
214
- },
215
- responseBody: {
216
- 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.",
217
- anyOf: [
218
- {
219
- type: "null"
220
- },
221
- {
222
- $ref: "#/$defs/AutoBeOpenApi.IResponseBody"
223
- }
224
- ]
225
- },
226
- authorizationRole: {
227
- 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.",
228
- anyOf: [
229
- {
230
- type: "null"
231
- },
232
- {
233
- type: "string",
234
- description: "@minLength 1\n@pattern ^[a-z][a-zA-Z0-9]*$"
235
- }
236
- ]
237
- },
238
- name: {
239
- 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]*$",
240
- type: "string"
241
- },
242
- path: {
243
- 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\\/_{}.-]*$",
244
- type: "string"
245
- },
246
- method: {
247
- description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\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",
248
- type: "string",
249
- "enum": [
250
- "get",
251
- "post",
252
- "put",
253
- "delete",
254
- "patch"
255
- ]
256
- }
257
- },
258
- required: [
259
- "specification",
260
- "authorizationType",
261
- "description",
262
- "summary",
263
- "parameters",
264
- "requestBody",
265
- "responseBody",
266
- "authorizationRole",
267
- "name",
268
- "path",
269
- "method"
270
- ]
271
- },
272
- "AutoBeOpenApi.IParameter": {
273
- 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```",
274
- type: "object",
275
- properties: {
276
- name: {
277
- 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]*$",
278
- type: "string"
279
- },
280
- description: {
281
- 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.",
282
- type: "string"
283
- },
284
- schema: {
285
- 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.",
286
- anyOf: [
287
- {
288
- $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
289
- },
290
- {
291
- $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
292
- },
293
- {
294
- $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
295
- }
296
- ],
297
- "x-discriminator": {
298
- propertyName: "type",
299
- mapping: {
300
- number: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber",
301
- integer: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger",
302
- string: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
303
- }
304
- }
305
- }
306
- },
307
- required: [
308
- "name",
309
- "description",
310
- "schema"
311
- ]
312
- },
313
- "AutoBeOpenApi.IJsonSchema.INumber": {
314
- description: "Number (double) type info.",
315
- type: "object",
316
- properties: {
317
- minimum: {
318
- description: "Minimum value restriction.",
319
- type: "number"
320
- },
321
- maximum: {
322
- description: "Maximum value restriction.",
323
- type: "number"
324
- },
325
- exclusiveMinimum: {
326
- description: "Exclusive minimum value restriction.",
327
- type: "number"
328
- },
329
- exclusiveMaximum: {
330
- description: "Exclusive maximum value restriction.",
331
- type: "number"
332
- },
333
- multipleOf: {
334
- description: "Multiple of value restriction.\n\n\n@exclusiveMinimum 0",
335
- type: "number"
336
- },
337
- type: {
338
- description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
339
- type: "string",
340
- "enum": [
341
- "number"
342
- ]
343
- }
344
- },
345
- required: [
346
- "type"
347
- ]
348
- },
349
- "AutoBeOpenApi.IJsonSchema.IInteger": {
350
- description: "Integer type info.",
351
- type: "object",
352
- properties: {
353
- minimum: {
354
- description: "Minimum value restriction.",
355
- type: "integer"
356
- },
357
- maximum: {
358
- description: "Maximum value restriction.",
359
- type: "integer"
360
- },
361
- exclusiveMinimum: {
362
- description: "Exclusive minimum value restriction.",
363
- type: "number"
364
- },
365
- exclusiveMaximum: {
366
- description: "Exclusive maximum value restriction.",
367
- type: "number"
368
- },
369
- multipleOf: {
370
- description: "Multiple of value restriction.\n\n\n@exclusiveMinimum 0",
371
- type: "integer"
372
- },
373
- type: {
374
- description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
375
- type: "string",
376
- "enum": [
377
- "integer"
378
- ]
379
- }
380
- },
381
- required: [
382
- "type"
383
- ]
384
- },
385
- "AutoBeOpenApi.IJsonSchema.IString": {
386
- description: "String type info.",
387
- type: "object",
388
- properties: {
389
- format: {
390
- description: "Format restriction.",
391
- type: "string"
392
- },
393
- pattern: {
394
- description: "Pattern restriction.",
395
- type: "string"
396
- },
397
- contentMediaType: {
398
- description: "Content media type restriction.",
399
- type: "string"
400
- },
401
- minLength: {
402
- description: "Minimum length restriction.\n\n\n@minimum 0",
403
- type: "integer"
404
- },
405
- maxLength: {
406
- description: "Maximum length restriction.\n\n\n@minimum 0",
407
- type: "integer"
408
- },
409
- type: {
410
- description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
411
- type: "string",
412
- "enum": [
413
- "string"
414
- ]
415
- }
416
- },
417
- required: [
418
- "type"
419
- ]
420
- },
421
- "AutoBeOpenApi.IRequestBody": {
422
- 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```",
423
- type: "object",
424
- properties: {
425
- description: {
426
- 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.",
427
- type: "string"
428
- },
429
- typeName: {
430
- 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```",
431
- type: "string"
432
- }
433
- },
434
- required: [
435
- "description",
436
- "typeName"
437
- ]
438
- },
439
- "AutoBeOpenApi.IResponseBody": {
440
- 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```",
441
- type: "object",
442
- properties: {
443
- description: {
444
- 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.",
445
- type: "string"
446
- },
447
- typeName: {
448
- 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```",
449
- type: "string"
450
- }
451
- },
452
- required: [
453
- "description",
454
- "typeName"
455
- ]
456
- }
457
- }
458
- },
459
- description: "Reviews a batch of API operations for quality and correctness.\n\nAnalyzes operations for security vulnerabilities, schema compliance,\nlogical consistency, and standard adherence. Outputs a structured thinking\nprocess containing review findings and improvement plans, plus the final\nproduction-ready operations with all critical issues resolved.",
460
- validate: (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && (Array.isArray(input.content) && input.content.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => "string" === typeof input.specification && (null === input.authorizationType || "login" === input.authorizationType || "join" === input.authorizationType || "refresh" === input.authorizationType) && "string" === typeof input.description && "string" === typeof input.summary && (Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (null === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && _io7(input.requestBody)) && (null === input.responseBody || "object" === typeof input.responseBody && null !== input.responseBody && _io8(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 _io3 = 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 _io4 = 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 _io5 = 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 _io6 = 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 _io7 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _io8 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _iu0 = input => (() => {
461
- if ("number" === input.type)
462
- return _io5(input);
463
- else if ("integer" === input.type)
464
- return _io4(input);
465
- else if ("string" === input.type)
466
- return _io6(input);
467
- else
468
- return false;
469
- })(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.think && null !== input.think || _report(_exceptionable, {
470
- path: _path + ".think",
471
- expected: "IAutoBeInterfaceOperationsReviewApplication.IThink",
472
- value: input.think
473
- })) && _vo1(input.think, _path + ".think", true && _exceptionable) || _report(_exceptionable, {
474
- path: _path + ".think",
475
- expected: "IAutoBeInterfaceOperationsReviewApplication.IThink",
476
- value: input.think
477
- }), (Array.isArray(input.content) || _report(_exceptionable, {
478
- path: _path + ".content",
479
- expected: "Array<AutoBeOpenApi.IOperation>",
480
- value: input.content
481
- })) && input.content.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
482
- path: _path + ".content[" + _index3 + "]",
483
- expected: "AutoBeOpenApi.IOperation",
484
- value: elem
485
- })) && _vo2(elem, _path + ".content[" + _index3 + "]", true && _exceptionable) || _report(_exceptionable, {
486
- path: _path + ".content[" + _index3 + "]",
487
- expected: "AutoBeOpenApi.IOperation",
488
- value: elem
489
- })).every(flag => flag) || _report(_exceptionable, {
490
- path: _path + ".content",
491
- expected: "Array<AutoBeOpenApi.IOperation>",
492
- value: input.content
493
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
494
- path: _path + ".review",
495
- expected: "string",
496
- value: input.review
497
- }), "string" === typeof input.plan || _report(_exceptionable, {
498
- path: _path + ".plan",
499
- expected: "string",
500
- value: input.plan
501
- })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.specification || _report(_exceptionable, {
502
- path: _path + ".specification",
503
- expected: "string",
504
- value: input.specification
505
- }), null === input.authorizationType || "login" === input.authorizationType || "join" === input.authorizationType || "refresh" === input.authorizationType || _report(_exceptionable, {
506
- path: _path + ".authorizationType",
507
- expected: "(\"join\" | \"login\" | \"refresh\" | null)",
508
- value: input.authorizationType
509
- }), "string" === typeof input.description || _report(_exceptionable, {
510
- path: _path + ".description",
511
- expected: "string",
512
- value: input.description
513
- }), "string" === typeof input.summary || _report(_exceptionable, {
514
- path: _path + ".summary",
515
- expected: "string",
516
- value: input.summary
517
- }), (Array.isArray(input.parameters) || _report(_exceptionable, {
518
- path: _path + ".parameters",
519
- expected: "Array<AutoBeOpenApi.IParameter>",
520
- value: input.parameters
521
- })) && input.parameters.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
522
- path: _path + ".parameters[" + _index4 + "]",
523
- expected: "AutoBeOpenApi.IParameter",
524
- value: elem
525
- })) && _vo3(elem, _path + ".parameters[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
526
- path: _path + ".parameters[" + _index4 + "]",
527
- expected: "AutoBeOpenApi.IParameter",
528
- value: elem
529
- })).every(flag => flag) || _report(_exceptionable, {
530
- path: _path + ".parameters",
531
- expected: "Array<AutoBeOpenApi.IParameter>",
532
- value: input.parameters
533
- }), null === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody || _report(_exceptionable, {
534
- path: _path + ".requestBody",
535
- expected: "(AutoBeOpenApi.IRequestBody | null)",
536
- value: input.requestBody
537
- })) && _vo7(input.requestBody, _path + ".requestBody", true && _exceptionable) || _report(_exceptionable, {
538
- path: _path + ".requestBody",
539
- expected: "(AutoBeOpenApi.IRequestBody | null)",
540
- value: input.requestBody
541
- }), null === input.responseBody || ("object" === typeof input.responseBody && null !== input.responseBody || _report(_exceptionable, {
542
- path: _path + ".responseBody",
543
- expected: "(AutoBeOpenApi.IResponseBody | null)",
544
- value: input.responseBody
545
- })) && _vo8(input.responseBody, _path + ".responseBody", true && _exceptionable) || _report(_exceptionable, {
546
- path: _path + ".responseBody",
547
- expected: "(AutoBeOpenApi.IResponseBody | null)",
548
- value: input.responseBody
549
- }), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
550
- path: _path + ".authorizationRole",
551
- expected: "string & CamelPattern",
552
- value: input.authorizationRole
553
- })) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
554
- path: _path + ".authorizationRole",
555
- expected: "string & MinLength<1>",
556
- value: input.authorizationRole
557
- })) || _report(_exceptionable, {
558
- path: _path + ".authorizationRole",
559
- expected: "((string & CamelPattern & MinLength<1>) | null)",
560
- value: input.authorizationRole
561
- }), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
562
- path: _path + ".name",
563
- expected: "string & CamelPattern",
564
- value: input.name
565
- })) || _report(_exceptionable, {
566
- path: _path + ".name",
567
- expected: "(string & CamelPattern)",
568
- value: input.name
569
- }), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
570
- path: _path + ".path",
571
- expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
572
- value: input.path
573
- })) || _report(_exceptionable, {
574
- path: _path + ".path",
575
- expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
576
- value: input.path
577
- }), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
578
- path: _path + ".method",
579
- expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
580
- value: input.method
581
- })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
582
- path: _path + ".name",
583
- expected: "string & CamelPattern",
584
- value: input.name
585
- })) || _report(_exceptionable, {
586
- path: _path + ".name",
587
- expected: "(string & CamelPattern)",
588
- value: input.name
589
- }), "string" === typeof input.description || _report(_exceptionable, {
590
- path: _path + ".description",
591
- expected: "string",
592
- value: input.description
593
- }), ("object" === typeof input.schema && null !== input.schema || _report(_exceptionable, {
594
- path: _path + ".schema",
595
- expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
596
- value: input.schema
597
- })) && _vu0(input.schema, _path + ".schema", true && _exceptionable) || _report(_exceptionable, {
598
- path: _path + ".schema",
599
- expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
600
- value: input.schema
601
- })].every(flag => flag); const _vo4 = (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, {
602
- path: _path + ".minimum",
603
- expected: "number & Type<\"int64\">",
604
- value: input.minimum
605
- })) || _report(_exceptionable, {
606
- path: _path + ".minimum",
607
- expected: "((number & Type<\"int64\">) | undefined)",
608
- value: input.minimum
609
- }), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || _report(_exceptionable, {
610
- path: _path + ".maximum",
611
- expected: "number & Type<\"int64\">",
612
- value: input.maximum
613
- })) || _report(_exceptionable, {
614
- path: _path + ".maximum",
615
- expected: "((number & Type<\"int64\">) | undefined)",
616
- value: input.maximum
617
- }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
618
- path: _path + ".exclusiveMinimum",
619
- expected: "(number | undefined)",
620
- value: input.exclusiveMinimum
621
- }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
622
- path: _path + ".exclusiveMaximum",
623
- expected: "(number | undefined)",
624
- value: input.exclusiveMaximum
625
- }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || _report(_exceptionable, {
626
- path: _path + ".multipleOf",
627
- expected: "number & Type<\"uint64\">",
628
- value: input.multipleOf
629
- })) && (0 < input.multipleOf || _report(_exceptionable, {
630
- path: _path + ".multipleOf",
631
- expected: "number & ExclusiveMinimum<0>",
632
- value: input.multipleOf
633
- })) || _report(_exceptionable, {
634
- path: _path + ".multipleOf",
635
- expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
636
- value: input.multipleOf
637
- }), "integer" === input.type || _report(_exceptionable, {
638
- path: _path + ".type",
639
- expected: "\"integer\"",
640
- value: input.type
641
- })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
642
- path: _path + ".minimum",
643
- expected: "(number | undefined)",
644
- value: input.minimum
645
- }), undefined === input.maximum || "number" === typeof input.maximum || _report(_exceptionable, {
646
- path: _path + ".maximum",
647
- expected: "(number | undefined)",
648
- value: input.maximum
649
- }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
650
- path: _path + ".exclusiveMinimum",
651
- expected: "(number | undefined)",
652
- value: input.exclusiveMinimum
653
- }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
654
- path: _path + ".exclusiveMaximum",
655
- expected: "(number | undefined)",
656
- value: input.exclusiveMaximum
657
- }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
658
- path: _path + ".multipleOf",
659
- expected: "number & ExclusiveMinimum<0>",
660
- value: input.multipleOf
661
- })) || _report(_exceptionable, {
662
- path: _path + ".multipleOf",
663
- expected: "((number & ExclusiveMinimum<0>) | undefined)",
664
- value: input.multipleOf
665
- }), "number" === input.type || _report(_exceptionable, {
666
- path: _path + ".type",
667
- expected: "\"number\"",
668
- value: input.type
669
- })].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
670
- path: _path + ".format",
671
- expected: "(string | undefined)",
672
- value: input.format
673
- }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
674
- path: _path + ".pattern",
675
- expected: "(string | undefined)",
676
- value: input.pattern
677
- }), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
678
- path: _path + ".contentMediaType",
679
- expected: "(string | undefined)",
680
- value: input.contentMediaType
681
- }), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || _report(_exceptionable, {
682
- path: _path + ".minLength",
683
- expected: "number & Type<\"uint64\">",
684
- value: input.minLength
685
- })) || _report(_exceptionable, {
686
- path: _path + ".minLength",
687
- expected: "((number & Type<\"uint64\">) | undefined)",
688
- value: input.minLength
689
- }), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
690
- path: _path + ".maxLength",
691
- expected: "number & Type<\"uint64\">",
692
- value: input.maxLength
693
- })) || _report(_exceptionable, {
694
- path: _path + ".maxLength",
695
- expected: "((number & Type<\"uint64\">) | undefined)",
696
- value: input.maxLength
697
- }), "string" === input.type || _report(_exceptionable, {
698
- path: _path + ".type",
699
- expected: "\"string\"",
700
- value: input.type
701
- })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
702
- path: _path + ".description",
703
- expected: "string",
704
- value: input.description
705
- }), "string" === typeof input.typeName || _report(_exceptionable, {
706
- path: _path + ".typeName",
707
- expected: "string",
708
- value: input.typeName
709
- })].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
710
- path: _path + ".description",
711
- expected: "string",
712
- value: input.description
713
- }), "string" === typeof input.typeName || _report(_exceptionable, {
714
- path: _path + ".typeName",
715
- expected: "string",
716
- value: input.typeName
717
- })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
718
- if ("number" === input.type)
719
- return _vo5(input, _path, true && _exceptionable);
720
- else if ("integer" === input.type)
721
- return _vo4(input, _path, true && _exceptionable);
722
- else if ("string" === input.type)
723
- return _vo6(input, _path, true && _exceptionable);
724
- else
725
- return _report(_exceptionable, {
726
- path: _path,
727
- expected: "(AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.IString)",
728
- value: input
729
- });
730
- })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
731
- if (false === __is(input)) {
732
- errors = [];
733
- _report = __typia_transform__validateReport._validateReport(errors);
734
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
735
- path: _path + "",
736
- expected: "IAutoBeInterfaceOperationsReviewApplication.IProps",
737
- value: input
738
- })) && _vo0(input, _path + "", true) || _report(true, {
739
- path: _path + "",
740
- expected: "IAutoBeInterfaceOperationsReviewApplication.IProps",
741
- value: input
742
- }))(input, "$input", true);
743
- const success = 0 === errors.length;
744
- return success ? {
745
- success,
746
- data: input
747
- } : {
748
- success,
749
- errors,
750
- data: input
751
- };
752
- }
753
- return {
754
- success: true,
755
- data: input
756
- };
757
- }; })()
758
- }
759
- ]
760
- },
761
- claude: {
762
- model: "claude",
763
- options: {
764
- reference: true,
765
- separate: null
766
- },
767
- functions: [
768
- {
769
- name: "reviewOperations",
770
- parameters: {
771
- description: " Properties containing the thinking process (review & plan)\nand the enhanced operations content\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.",
772
- type: "object",
773
- properties: {
774
- think: {
775
- description: "Comprehensive thinking process for API operation review.\n\nEncapsulates the agent's analytical review findings and actionable\nimprovement plan. This structured thinking process ensures systematic\nevaluation of API operations against AutoBE's quality standards before\ngenerating the final enhanced operations.",
776
- $ref: "#/$defs/IAutoBeInterfaceOperationsReviewApplication.IThink"
777
- },
778
- content: {
779
- 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.",
780
- type: "array",
781
- items: {
782
- $ref: "#/$defs/AutoBeOpenApi.IOperation"
783
- }
784
- }
785
- },
786
- required: [
787
- "think",
788
- "content"
789
- ],
790
- additionalProperties: false,
791
- $defs: {
792
- "IAutoBeInterfaceOperationsReviewApplication.IThink": {
793
- description: "Structured thinking process for comprehensive API operation review.\n\nCombines analytical review findings with actionable improvement planning\nto guide the systematic enhancement of API operations. This thinking\nstructure ensures all aspects of API quality are evaluated and addressed\nbefore producing the final operations.",
794
- type: "object",
795
- properties: {
796
- review: {
797
- 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.",
798
- type: "string"
799
- },
800
- plan: {
801
- 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.",
802
- type: "string"
803
- }
804
- },
805
- required: [
806
- "review",
807
- "plan"
808
- ]
809
- },
810
- "AutoBeOpenApi.IOperation": {
811
- 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```",
812
- type: "object",
813
- properties: {
814
- specification: {
815
- 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.",
816
- type: "string"
817
- },
818
- authorizationType: {
819
- description: "Authorization type of the API operation.\n\n- `\"login\"`: User login operations that validate credentials\n- `\"join\"`: User registration operations that create accounts\n- `\"refresh\"`: Token refresh operations that renew access tokens\n- `null`: All other operations (CRUD, business logic, etc.)\n\nUse authentication values only for credential validation, user\nregistration, or token refresh operations. Use `null` for all other\nbusiness operations.\n\nExamples:\n\n- `/auth/login` \u2192 `\"login\"`\n- `/auth/register` \u2192 `\"join\"`\n- `/auth/refresh` \u2192 `\"refresh\"`\n- `/auth/validate` \u2192 `null`\n- `/users/{id}`, `/shoppings/customers/sales/cancel`, \u2192 `null`",
820
- oneOf: [
821
- {
822
- type: "null"
823
- },
824
- {
825
- "const": "login"
826
- },
827
- {
828
- "const": "join"
829
- },
830
- {
831
- "const": "refresh"
832
- }
833
- ]
834
- },
835
- description: {
836
- 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**CRITICAL WARNING about soft delete keywords**: DO NOT use terms like\n\"soft delete\", \"soft-delete\", or similar variations in this description\nUNLESS the operation actually implements soft deletion. These keywords\ntrigger validation logic that expects a corresponding soft_delete_column\nto be specified. Only use these terms when you intend to implement soft\ndeletion (marking records as deleted without removing them from the\ndatabase).\n\nExample of problematic description: \u274C \"This would normally be a\nsoft-delete, but we intentionally perform permanent deletion here\" - This\ntriggers soft delete validation despite being a hard delete operation.\n\n> MUST be written in English. Never use other languages.",
837
- type: "string"
838
- },
839
- summary: {
840
- 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**CRITICAL WARNING about soft delete keywords**: DO NOT use terms like\n\"soft delete\", \"soft-delete\", or similar variations in this summary\nUNLESS the operation actually implements soft deletion. These keywords\ntrigger validation logic that expects a corresponding soft_delete_column\nto be specified. Only use these terms when you intend to implement soft\ndeletion (marking records as deleted without removing them from the\ndatabase).\n\n> MUST be written in English. Never use other languages",
841
- type: "string"
842
- },
843
- parameters: {
844
- 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`",
845
- type: "array",
846
- items: {
847
- $ref: "#/$defs/AutoBeOpenApi.IParameter"
848
- }
849
- },
850
- requestBody: {
851
- 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.",
852
- oneOf: [
853
- {
854
- type: "null"
855
- },
856
- {
857
- $ref: "#/$defs/AutoBeOpenApi.IRequestBody"
858
- }
859
- ]
860
- },
861
- responseBody: {
862
- 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.",
863
- oneOf: [
864
- {
865
- type: "null"
866
- },
867
- {
868
- $ref: "#/$defs/AutoBeOpenApi.IResponseBody"
869
- }
870
- ]
871
- },
872
- authorizationRole: {
873
- 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.",
874
- oneOf: [
875
- {
876
- type: "null"
877
- },
878
- {
879
- type: "string",
880
- pattern: "^[a-z][a-zA-Z0-9]*$",
881
- minLength: 1
882
- }
883
- ]
884
- },
885
- name: {
886
- 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.",
887
- type: "string",
888
- pattern: "^[a-z][a-zA-Z0-9]*$"
889
- },
890
- path: {
891
- 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)",
892
- type: "string",
893
- pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
894
- },
895
- method: {
896
- description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\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",
897
- oneOf: [
898
- {
899
- "const": "get"
900
- },
901
- {
902
- "const": "post"
903
- },
904
- {
905
- "const": "put"
906
- },
907
- {
908
- "const": "delete"
909
- },
910
- {
911
- "const": "patch"
912
- }
913
- ]
914
- }
915
- },
916
- required: [
917
- "specification",
918
- "authorizationType",
919
- "description",
920
- "summary",
921
- "parameters",
922
- "requestBody",
923
- "responseBody",
924
- "authorizationRole",
925
- "name",
926
- "path",
927
- "method"
928
- ]
929
- },
930
- "AutoBeOpenApi.IParameter": {
931
- 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```",
932
- type: "object",
933
- properties: {
934
- name: {
935
- 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.",
936
- type: "string",
937
- pattern: "^[a-z][a-zA-Z0-9]*$"
938
- },
939
- description: {
940
- 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.",
941
- type: "string"
942
- },
943
- schema: {
944
- 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.",
945
- oneOf: [
946
- {
947
- $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
948
- },
949
- {
950
- $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
951
- },
952
- {
953
- $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
954
- }
955
- ],
956
- discriminator: {
957
- propertyName: "type",
958
- mapping: {
959
- number: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber",
960
- integer: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger",
961
- string: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
962
- }
963
- }
964
- }
965
- },
966
- required: [
967
- "name",
968
- "description",
969
- "schema"
970
- ]
971
- },
972
- "AutoBeOpenApi.IJsonSchema.INumber": {
973
- description: "Number (double) type info.",
974
- type: "object",
975
- properties: {
976
- minimum: {
977
- description: "Minimum value restriction.",
978
- type: "number"
979
- },
980
- maximum: {
981
- description: "Maximum value restriction.",
982
- type: "number"
983
- },
984
- exclusiveMinimum: {
985
- description: "Exclusive minimum value restriction.",
986
- type: "number"
987
- },
988
- exclusiveMaximum: {
989
- description: "Exclusive maximum value restriction.",
990
- type: "number"
991
- },
992
- multipleOf: {
993
- description: "Multiple of value restriction.",
994
- type: "number",
995
- exclusiveMinimum: 0
996
- },
997
- type: {
998
- description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
999
- "const": "number"
1000
- }
1001
- },
1002
- required: [
1003
- "type"
1004
- ]
1005
- },
1006
- "AutoBeOpenApi.IJsonSchema.IInteger": {
1007
- description: "Integer type info.",
1008
- type: "object",
1009
- properties: {
1010
- minimum: {
1011
- description: "Minimum value restriction.",
1012
- type: "integer"
1013
- },
1014
- maximum: {
1015
- description: "Maximum value restriction.",
1016
- type: "integer"
1017
- },
1018
- exclusiveMinimum: {
1019
- description: "Exclusive minimum value restriction.",
1020
- type: "number"
1021
- },
1022
- exclusiveMaximum: {
1023
- description: "Exclusive maximum value restriction.",
1024
- type: "number"
1025
- },
1026
- multipleOf: {
1027
- description: "Multiple of value restriction.",
1028
- type: "integer",
1029
- exclusiveMinimum: 0
1030
- },
1031
- type: {
1032
- description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
1033
- "const": "integer"
1034
- }
1035
- },
1036
- required: [
1037
- "type"
1038
- ]
1039
- },
1040
- "AutoBeOpenApi.IJsonSchema.IString": {
1041
- description: "String type info.",
1042
- type: "object",
1043
- properties: {
1044
- format: {
1045
- description: "Format restriction.",
1046
- type: "string"
1047
- },
1048
- pattern: {
1049
- description: "Pattern restriction.",
1050
- type: "string"
1051
- },
1052
- contentMediaType: {
1053
- description: "Content media type restriction.",
1054
- type: "string"
1055
- },
1056
- minLength: {
1057
- description: "Minimum length restriction.",
1058
- type: "integer",
1059
- minimum: 0
1060
- },
1061
- maxLength: {
1062
- description: "Maximum length restriction.",
1063
- type: "integer",
1064
- minimum: 0
1065
- },
1066
- type: {
1067
- description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
1068
- "const": "string"
1069
- }
1070
- },
1071
- required: [
1072
- "type"
1073
- ]
1074
- },
1075
- "AutoBeOpenApi.IRequestBody": {
1076
- 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```",
1077
- type: "object",
1078
- properties: {
1079
- description: {
1080
- 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.",
1081
- type: "string"
1082
- },
1083
- typeName: {
1084
- 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```",
1085
- type: "string"
1086
- }
1087
- },
1088
- required: [
1089
- "description",
1090
- "typeName"
1091
- ]
1092
- },
1093
- "AutoBeOpenApi.IResponseBody": {
1094
- 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```",
1095
- type: "object",
1096
- properties: {
1097
- description: {
1098
- 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.",
1099
- type: "string"
1100
- },
1101
- typeName: {
1102
- 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```",
1103
- type: "string"
1104
- }
1105
- },
1106
- required: [
1107
- "description",
1108
- "typeName"
1109
- ]
1110
- }
1111
- }
1112
- },
1113
- description: "Reviews a batch of API operations for quality and correctness.\n\nAnalyzes operations for security vulnerabilities, schema compliance,\nlogical consistency, and standard adherence. Outputs a structured thinking\nprocess containing review findings and improvement plans, plus the final\nproduction-ready operations with all critical issues resolved.",
1114
- validate: (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && (Array.isArray(input.content) && input.content.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => "string" === typeof input.specification && (null === input.authorizationType || "login" === input.authorizationType || "join" === input.authorizationType || "refresh" === input.authorizationType) && "string" === typeof input.description && "string" === typeof input.summary && (Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (null === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && _io7(input.requestBody)) && (null === input.responseBody || "object" === typeof input.responseBody && null !== input.responseBody && _io8(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 _io3 = 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 _io4 = 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 _io5 = 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 _io6 = 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 _io7 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _io8 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _iu0 = input => (() => {
1115
- if ("number" === input.type)
1116
- return _io5(input);
1117
- else if ("integer" === input.type)
1118
- return _io4(input);
1119
- else if ("string" === input.type)
1120
- return _io6(input);
1121
- else
1122
- return false;
1123
- })(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.think && null !== input.think || _report(_exceptionable, {
1124
- path: _path + ".think",
1125
- expected: "IAutoBeInterfaceOperationsReviewApplication.IThink",
1126
- value: input.think
1127
- })) && _vo1(input.think, _path + ".think", true && _exceptionable) || _report(_exceptionable, {
1128
- path: _path + ".think",
1129
- expected: "IAutoBeInterfaceOperationsReviewApplication.IThink",
1130
- value: input.think
1131
- }), (Array.isArray(input.content) || _report(_exceptionable, {
1132
- path: _path + ".content",
1133
- expected: "Array<AutoBeOpenApi.IOperation>",
1134
- value: input.content
1135
- })) && input.content.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1136
- path: _path + ".content[" + _index3 + "]",
1137
- expected: "AutoBeOpenApi.IOperation",
1138
- value: elem
1139
- })) && _vo2(elem, _path + ".content[" + _index3 + "]", true && _exceptionable) || _report(_exceptionable, {
1140
- path: _path + ".content[" + _index3 + "]",
1141
- expected: "AutoBeOpenApi.IOperation",
1142
- value: elem
1143
- })).every(flag => flag) || _report(_exceptionable, {
1144
- path: _path + ".content",
1145
- expected: "Array<AutoBeOpenApi.IOperation>",
1146
- value: input.content
1147
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
1148
- path: _path + ".review",
1149
- expected: "string",
1150
- value: input.review
1151
- }), "string" === typeof input.plan || _report(_exceptionable, {
1152
- path: _path + ".plan",
1153
- expected: "string",
1154
- value: input.plan
1155
- })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.specification || _report(_exceptionable, {
1156
- path: _path + ".specification",
1157
- expected: "string",
1158
- value: input.specification
1159
- }), null === input.authorizationType || "login" === input.authorizationType || "join" === input.authorizationType || "refresh" === input.authorizationType || _report(_exceptionable, {
1160
- path: _path + ".authorizationType",
1161
- expected: "(\"join\" | \"login\" | \"refresh\" | null)",
1162
- value: input.authorizationType
1163
- }), "string" === typeof input.description || _report(_exceptionable, {
1164
- path: _path + ".description",
1165
- expected: "string",
1166
- value: input.description
1167
- }), "string" === typeof input.summary || _report(_exceptionable, {
1168
- path: _path + ".summary",
1169
- expected: "string",
1170
- value: input.summary
1171
- }), (Array.isArray(input.parameters) || _report(_exceptionable, {
1172
- path: _path + ".parameters",
1173
- expected: "Array<AutoBeOpenApi.IParameter>",
1174
- value: input.parameters
1175
- })) && input.parameters.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1176
- path: _path + ".parameters[" + _index4 + "]",
1177
- expected: "AutoBeOpenApi.IParameter",
1178
- value: elem
1179
- })) && _vo3(elem, _path + ".parameters[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
1180
- path: _path + ".parameters[" + _index4 + "]",
1181
- expected: "AutoBeOpenApi.IParameter",
1182
- value: elem
1183
- })).every(flag => flag) || _report(_exceptionable, {
1184
- path: _path + ".parameters",
1185
- expected: "Array<AutoBeOpenApi.IParameter>",
1186
- value: input.parameters
1187
- }), null === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody || _report(_exceptionable, {
1188
- path: _path + ".requestBody",
1189
- expected: "(AutoBeOpenApi.IRequestBody | null)",
1190
- value: input.requestBody
1191
- })) && _vo7(input.requestBody, _path + ".requestBody", true && _exceptionable) || _report(_exceptionable, {
1192
- path: _path + ".requestBody",
1193
- expected: "(AutoBeOpenApi.IRequestBody | null)",
1194
- value: input.requestBody
1195
- }), null === input.responseBody || ("object" === typeof input.responseBody && null !== input.responseBody || _report(_exceptionable, {
1196
- path: _path + ".responseBody",
1197
- expected: "(AutoBeOpenApi.IResponseBody | null)",
1198
- value: input.responseBody
1199
- })) && _vo8(input.responseBody, _path + ".responseBody", true && _exceptionable) || _report(_exceptionable, {
1200
- path: _path + ".responseBody",
1201
- expected: "(AutoBeOpenApi.IResponseBody | null)",
1202
- value: input.responseBody
1203
- }), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
1204
- path: _path + ".authorizationRole",
1205
- expected: "string & CamelPattern",
1206
- value: input.authorizationRole
1207
- })) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
1208
- path: _path + ".authorizationRole",
1209
- expected: "string & MinLength<1>",
1210
- value: input.authorizationRole
1211
- })) || _report(_exceptionable, {
1212
- path: _path + ".authorizationRole",
1213
- expected: "((string & CamelPattern & MinLength<1>) | null)",
1214
- value: input.authorizationRole
1215
- }), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1216
- path: _path + ".name",
1217
- expected: "string & CamelPattern",
1218
- value: input.name
1219
- })) || _report(_exceptionable, {
1220
- path: _path + ".name",
1221
- expected: "(string & CamelPattern)",
1222
- value: input.name
1223
- }), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
1224
- path: _path + ".path",
1225
- expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
1226
- value: input.path
1227
- })) || _report(_exceptionable, {
1228
- path: _path + ".path",
1229
- expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
1230
- value: input.path
1231
- }), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
1232
- path: _path + ".method",
1233
- expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
1234
- value: input.method
1235
- })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1236
- path: _path + ".name",
1237
- expected: "string & CamelPattern",
1238
- value: input.name
1239
- })) || _report(_exceptionable, {
1240
- path: _path + ".name",
1241
- expected: "(string & CamelPattern)",
1242
- value: input.name
1243
- }), "string" === typeof input.description || _report(_exceptionable, {
1244
- path: _path + ".description",
1245
- expected: "string",
1246
- value: input.description
1247
- }), ("object" === typeof input.schema && null !== input.schema || _report(_exceptionable, {
1248
- path: _path + ".schema",
1249
- expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
1250
- value: input.schema
1251
- })) && _vu0(input.schema, _path + ".schema", true && _exceptionable) || _report(_exceptionable, {
1252
- path: _path + ".schema",
1253
- expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
1254
- value: input.schema
1255
- })].every(flag => flag); const _vo4 = (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, {
1256
- path: _path + ".minimum",
1257
- expected: "number & Type<\"int64\">",
1258
- value: input.minimum
1259
- })) || _report(_exceptionable, {
1260
- path: _path + ".minimum",
1261
- expected: "((number & Type<\"int64\">) | undefined)",
1262
- value: input.minimum
1263
- }), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || _report(_exceptionable, {
1264
- path: _path + ".maximum",
1265
- expected: "number & Type<\"int64\">",
1266
- value: input.maximum
1267
- })) || _report(_exceptionable, {
1268
- path: _path + ".maximum",
1269
- expected: "((number & Type<\"int64\">) | undefined)",
1270
- value: input.maximum
1271
- }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
1272
- path: _path + ".exclusiveMinimum",
1273
- expected: "(number | undefined)",
1274
- value: input.exclusiveMinimum
1275
- }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
1276
- path: _path + ".exclusiveMaximum",
1277
- expected: "(number | undefined)",
1278
- value: input.exclusiveMaximum
1279
- }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || _report(_exceptionable, {
1280
- path: _path + ".multipleOf",
1281
- expected: "number & Type<\"uint64\">",
1282
- value: input.multipleOf
1283
- })) && (0 < input.multipleOf || _report(_exceptionable, {
1284
- path: _path + ".multipleOf",
1285
- expected: "number & ExclusiveMinimum<0>",
1286
- value: input.multipleOf
1287
- })) || _report(_exceptionable, {
1288
- path: _path + ".multipleOf",
1289
- expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
1290
- value: input.multipleOf
1291
- }), "integer" === input.type || _report(_exceptionable, {
1292
- path: _path + ".type",
1293
- expected: "\"integer\"",
1294
- value: input.type
1295
- })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
1296
- path: _path + ".minimum",
1297
- expected: "(number | undefined)",
1298
- value: input.minimum
1299
- }), undefined === input.maximum || "number" === typeof input.maximum || _report(_exceptionable, {
1300
- path: _path + ".maximum",
1301
- expected: "(number | undefined)",
1302
- value: input.maximum
1303
- }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
1304
- path: _path + ".exclusiveMinimum",
1305
- expected: "(number | undefined)",
1306
- value: input.exclusiveMinimum
1307
- }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
1308
- path: _path + ".exclusiveMaximum",
1309
- expected: "(number | undefined)",
1310
- value: input.exclusiveMaximum
1311
- }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
1312
- path: _path + ".multipleOf",
1313
- expected: "number & ExclusiveMinimum<0>",
1314
- value: input.multipleOf
1315
- })) || _report(_exceptionable, {
1316
- path: _path + ".multipleOf",
1317
- expected: "((number & ExclusiveMinimum<0>) | undefined)",
1318
- value: input.multipleOf
1319
- }), "number" === input.type || _report(_exceptionable, {
1320
- path: _path + ".type",
1321
- expected: "\"number\"",
1322
- value: input.type
1323
- })].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
1324
- path: _path + ".format",
1325
- expected: "(string | undefined)",
1326
- value: input.format
1327
- }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
1328
- path: _path + ".pattern",
1329
- expected: "(string | undefined)",
1330
- value: input.pattern
1331
- }), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
1332
- path: _path + ".contentMediaType",
1333
- expected: "(string | undefined)",
1334
- value: input.contentMediaType
1335
- }), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || _report(_exceptionable, {
1336
- path: _path + ".minLength",
1337
- expected: "number & Type<\"uint64\">",
1338
- value: input.minLength
1339
- })) || _report(_exceptionable, {
1340
- path: _path + ".minLength",
1341
- expected: "((number & Type<\"uint64\">) | undefined)",
1342
- value: input.minLength
1343
- }), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
1344
- path: _path + ".maxLength",
1345
- expected: "number & Type<\"uint64\">",
1346
- value: input.maxLength
1347
- })) || _report(_exceptionable, {
1348
- path: _path + ".maxLength",
1349
- expected: "((number & Type<\"uint64\">) | undefined)",
1350
- value: input.maxLength
1351
- }), "string" === input.type || _report(_exceptionable, {
1352
- path: _path + ".type",
1353
- expected: "\"string\"",
1354
- value: input.type
1355
- })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
1356
- path: _path + ".description",
1357
- expected: "string",
1358
- value: input.description
1359
- }), "string" === typeof input.typeName || _report(_exceptionable, {
1360
- path: _path + ".typeName",
1361
- expected: "string",
1362
- value: input.typeName
1363
- })].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
1364
- path: _path + ".description",
1365
- expected: "string",
1366
- value: input.description
1367
- }), "string" === typeof input.typeName || _report(_exceptionable, {
1368
- path: _path + ".typeName",
1369
- expected: "string",
1370
- value: input.typeName
1371
- })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
1372
- if ("number" === input.type)
1373
- return _vo5(input, _path, true && _exceptionable);
1374
- else if ("integer" === input.type)
1375
- return _vo4(input, _path, true && _exceptionable);
1376
- else if ("string" === input.type)
1377
- return _vo6(input, _path, true && _exceptionable);
1378
- else
1379
- return _report(_exceptionable, {
1380
- path: _path,
1381
- expected: "(AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.IString)",
1382
- value: input
1383
- });
1384
- })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
1385
- if (false === __is(input)) {
1386
- errors = [];
1387
- _report = __typia_transform__validateReport._validateReport(errors);
1388
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
1389
- path: _path + "",
1390
- expected: "IAutoBeInterfaceOperationsReviewApplication.IProps",
1391
- value: input
1392
- })) && _vo0(input, _path + "", true) || _report(true, {
1393
- path: _path + "",
1394
- expected: "IAutoBeInterfaceOperationsReviewApplication.IProps",
1395
- value: input
1396
- }))(input, "$input", true);
1397
- const success = 0 === errors.length;
1398
- return success ? {
1399
- success,
1400
- data: input
1401
- } : {
1402
- success,
1403
- errors,
1404
- data: input
1405
- };
1406
- }
1407
- return {
1408
- success: true,
1409
- data: input
1410
- };
1411
- }; })()
1412
- }
1413
- ]
1414
- },
1415
- };
1416
- //# sourceMappingURL=orchestrateInterfaceOperationsReview.js.map