@autobe/agent 0.25.7 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.d.ts +2 -1
- package/lib/AutoBeAgent.js +30 -7
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +13 -12
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +27 -20
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/context/AutoBeContext.d.ts +4 -1
- package/lib/context/AutoBeTokenUsage.d.ts +1 -1
- package/lib/context/AutoBeTokenUsage.js.map +1 -1
- package/lib/factory/AutoBeFunctionCallingMetricFactory.d.ts +7 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js +35 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js.map +1 -0
- package/lib/factory/AutoBeProcessAggregateFactory.d.ts +13 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js +100 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js.map +1 -0
- package/lib/factory/consentFunctionCall.js +3 -0
- package/lib/factory/consentFunctionCall.js.map +1 -1
- package/lib/factory/createAutoBeContext.d.ts +2 -1
- package/lib/factory/createAutoBeContext.js +82 -28
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/factory/getCommonPrompt.d.ts +2 -0
- package/lib/factory/getCommonPrompt.js +20 -0
- package/lib/factory/getCommonPrompt.js.map +1 -0
- package/lib/index.mjs +20929 -19874
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +2 -2
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +6 -6
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +2 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +2 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +75 -74
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +5 -4
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +9 -9
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +1 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +2 -17
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.d.ts +6 -0
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js +58 -0
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js.map +1 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +2 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +3 -2
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/{factory/createAutoBeApplication.d.ts → orchestrate/facade/createAutoBeFacadeController.d.ts} +2 -2
- package/lib/{factory/createAutoBeApplication.js → orchestrate/facade/createAutoBeFacadeController.js} +53 -57
- package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplication.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationProps.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationResult.js.map +1 -0
- package/lib/orchestrate/facade/{transformFacadeStateMessage.d.ts → structures/transformFacadeStateMessage.d.ts} +1 -1
- package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js +46 -0
- package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +8 -8
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +3 -3
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +3 -2
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +46 -20
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.d.ts +5 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js +51 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.d.ts +11 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js +81 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterface.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +33 -6
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +185 -97
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +234 -59
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +5 -4
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -6
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +4 -4
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +4 -3
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +178 -90
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +176 -88
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +6 -5
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.d.ts +7 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +445 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +14 -0
- package/lib/orchestrate/interface/{orchestrateInterfaceSchemasReview.js → orchestrateInterfaceSchemaReview.js} +302 -121
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +243 -65
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +22 -22
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +7 -7
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.d.ts +101 -0
- package/lib/orchestrate/interface/structures/{IAutobeInterfaceSchemasReviewApplication.js → IAutoBeInterfaceSchemaContentReviewApplication.js} +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.d.ts +97 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.d.ts +44 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.d.ts +92 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +65 -24
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +94 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.d.ts +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +13 -13
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +1 -0
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +4 -3
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +2 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +2 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +4 -3
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +2 -2
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js +8 -7
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +4 -4
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.d.ts +4 -7
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js +8 -18
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +8 -28
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +16 -280
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.d.ts +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +4 -3
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +14 -13
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +12 -11
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +46 -24
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/{orchestRateRealizeCorrectCasting.js → orchestrateRealizeCorrectCasting.js} +64 -51
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +2 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +3 -3
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +2 -2
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +6 -6
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -1
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js +1 -1
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +2 -2
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js +2 -2
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -1
- package/lib/orchestrate/realize/utils/printErrorHints.js +1 -1
- package/lib/orchestrate/realize/utils/printErrorHints.js.map +1 -1
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +0 -85
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js +1 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +5 -22
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +10 -10
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +5 -5
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +2 -2
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +2 -1
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +5 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +4 -2
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +28 -27
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +4 -3
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +2 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.d.ts → IAutoBeTestScenarioAuthorizationActor.d.ts} +1 -1
- package/lib/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.js → IAutoBeTestScenarioAuthorizationActor.js} +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationActor.js.map +1 -0
- package/lib/utils/TokenUsageComputer.d.ts +5 -0
- package/lib/utils/TokenUsageComputer.js +29 -0
- package/lib/utils/TokenUsageComputer.js.map +1 -0
- package/package.json +7 -7
- package/src/AutoBeAgent.ts +43 -6
- package/src/AutoBeMockAgent.ts +13 -12
- package/src/constants/AutoBeSystemPromptConstant.ts +27 -20
- package/src/context/AutoBeContext.ts +8 -0
- package/src/context/AutoBeTokenUsage.ts +1 -1
- package/src/factory/AutoBeFunctionCallingMetricFactory.ts +44 -0
- package/src/factory/AutoBeProcessAggregateFactory.ts +141 -0
- package/src/factory/consentFunctionCall.ts +4 -0
- package/src/factory/createAutoBeContext.ts +101 -37
- package/src/factory/getCommonPrompt.ts +25 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +5 -5
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +2 -1
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +2 -1
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +5 -4
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +3 -2
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +9 -9
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +1 -1
- package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +2 -20
- package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.ts +65 -0
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +5 -2
- package/src/orchestrate/facade/createAutoBeFacadeController.ts +135 -0
- package/src/orchestrate/facade/{transformFacadeStateMessage.ts → structures/transformFacadeStateMessage.ts} +2 -2
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +9 -9
- package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +1 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +45 -20
- package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.ts +55 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.ts +90 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +47 -16
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +20 -19
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +2 -1
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +5 -6
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +25 -24
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +6 -5
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +4 -3
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +270 -0
- package/src/orchestrate/interface/{orchestrateInterfaceSchemasReview.ts → orchestrateInterfaceSchemaReview.ts} +89 -76
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +18 -9
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +26 -22
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +7 -7
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.ts +108 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.ts +104 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +45 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.ts +99 -0
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +45 -3
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +110 -0
- package/src/orchestrate/interface/utils/OperationValidator.ts +1 -1
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +12 -12
- package/src/orchestrate/prisma/orchestratePrisma.ts +6 -5
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +6 -5
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +2 -1
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +2 -1
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +9 -8
- package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +8 -7
- package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.ts +4 -4
- package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +14 -28
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +13 -30
- package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +20 -285
- package/src/orchestrate/realize/orchestrateRealize.ts +4 -3
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +11 -10
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +5 -4
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +77 -62
- package/src/orchestrate/realize/{orchestRateRealizeCorrectCasting.ts → orchestrateRealizeCorrectCasting.ts} +92 -90
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +2 -1
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +3 -3
- package/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.ts +10 -7
- package/src/orchestrate/realize/utils/generateRealizeScenario.ts +1 -1
- package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +2 -2
- package/src/orchestrate/realize/utils/getRealizeWriteDto.ts +1 -1
- package/src/orchestrate/realize/utils/getRealizeWriteInputType.ts +2 -2
- package/src/orchestrate/realize/utils/printErrorHints.ts +1 -1
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +0 -90
- package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +1 -1
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +6 -24
- package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +10 -10
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +12 -10
- package/src/orchestrate/test/orchestrateTest.ts +3 -2
- package/src/orchestrate/test/orchestrateTestCorrect.ts +5 -1
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +4 -2
- package/src/orchestrate/test/orchestrateTestScenario.ts +32 -31
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +4 -3
- package/src/orchestrate/test/orchestrateTestWrite.ts +2 -1
- package/src/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.ts → IAutoBeTestScenarioAuthorizationActor.ts} +1 -1
- package/src/utils/TokenUsageComputer.ts +35 -0
- package/lib/context/IAutoBeFacadeApplication.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationProps.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationResult.js.map +0 -1
- package/lib/factory/createAutoBeApplication.js.map +0 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js +0 -46
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +0 -4
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +0 -60
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +0 -9
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +0 -91
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +0 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +0 -1
- package/src/factory/createAutoBeApplication.ts +0 -123
- package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +0 -67
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +0 -96
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.js +0 -0
- /package/lib/orchestrate/realize/{orchestRateRealizeCorrectCasting.d.ts → orchestrateRealizeCorrectCasting.d.ts} +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.ts +0 -0
|
@@ -45,8 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
45
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
49
|
-
exports.step = step;
|
|
48
|
+
exports.orchestrateInterfaceSchemaReview = orchestrateInterfaceSchemaReview;
|
|
50
49
|
const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString.js"));
|
|
51
50
|
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
|
|
52
51
|
const __typia_transform__llmApplicationFinalize = __importStar(require("typia/lib/internal/_llmApplicationFinalize.js"));
|
|
@@ -56,85 +55,92 @@ const uuid_1 = require("uuid");
|
|
|
56
55
|
const assertSchemaModel_1 = require("../../context/assertSchemaModel");
|
|
57
56
|
const divideArray_1 = require("../../utils/divideArray");
|
|
58
57
|
const executeCachedBatch_1 = require("../../utils/executeCachedBatch");
|
|
59
|
-
const
|
|
58
|
+
const transformInterfaceSchemaReviewHistories_1 = require("./histories/transformInterfaceSchemaReviewHistories");
|
|
60
59
|
const JsonSchemaFactory_1 = require("./utils/JsonSchemaFactory");
|
|
61
60
|
const JsonSchemaNamingConvention_1 = require("./utils/JsonSchemaNamingConvention");
|
|
62
61
|
const JsonSchemaValidator_1 = require("./utils/JsonSchemaValidator");
|
|
63
62
|
const fulfillJsonSchemaErrorMessages_1 = require("./utils/fulfillJsonSchemaErrorMessages");
|
|
64
|
-
function
|
|
65
|
-
return __awaiter(this,
|
|
66
|
-
const
|
|
67
|
-
return { [key]: schema };
|
|
68
|
-
});
|
|
63
|
+
function orchestrateInterfaceSchemaReview(ctx, config, props) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const typeNames = Object.keys(props.document.components.schemas);
|
|
69
66
|
const matrix = (0, divideArray_1.divideArray)({
|
|
70
|
-
array:
|
|
71
|
-
capacity
|
|
67
|
+
array: typeNames,
|
|
68
|
+
capacity: 2 /* AutoBeConfigConstant.INTERFACE_CAPACITY */,
|
|
72
69
|
});
|
|
73
|
-
const progress = {
|
|
74
|
-
total: matrix.length,
|
|
75
|
-
completed: 0,
|
|
76
|
-
};
|
|
77
70
|
const x = {};
|
|
78
71
|
for (const y of yield (0, executeCachedBatch_1.executeCachedBatch)(matrix.map((it) => (promptCacheKey) => __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
const
|
|
72
|
+
const operations = props.document.operations.filter((op) => (op.requestBody && it.includes(op.requestBody.typeName)) ||
|
|
73
|
+
(op.responseBody && it.includes(op.responseBody.typeName)));
|
|
74
|
+
const row = yield divideAndConquer(ctx, config, {
|
|
75
|
+
instruction: props.instruction,
|
|
76
|
+
operations,
|
|
77
|
+
everySchemas: props.document.components.schemas,
|
|
78
|
+
reviewSchemas: it.reduce((acc, cur) => {
|
|
79
|
+
acc[cur] = props.document.components.schemas[cur];
|
|
80
|
+
return acc;
|
|
81
|
+
}, {}),
|
|
82
|
+
progress: props.progress,
|
|
83
|
+
promptCacheKey,
|
|
84
|
+
});
|
|
80
85
|
return row;
|
|
81
86
|
})))) {
|
|
82
|
-
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.schemas(operations, x, y);
|
|
87
|
+
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.schemas(props.document.operations, x, y);
|
|
83
88
|
Object.assign(x, y);
|
|
84
89
|
}
|
|
85
90
|
return x;
|
|
86
91
|
});
|
|
87
92
|
}
|
|
88
|
-
function divideAndConquer(ctx,
|
|
89
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
const schema = schemas.reduce((acc, cur) => Object.assign(acc, cur), {});
|
|
91
|
-
return step(ctx, operations, schema, progress, promptCacheKey);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function step(ctx, operations, schemas, progress, promptCacheKey) {
|
|
93
|
+
function divideAndConquer(ctx, config, props) {
|
|
95
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
95
|
var _a, _b, _c;
|
|
97
96
|
try {
|
|
98
97
|
const pointer = {
|
|
99
98
|
value: null,
|
|
100
99
|
};
|
|
101
|
-
const { tokenUsage } = yield ctx.conversate({
|
|
102
|
-
source: "
|
|
100
|
+
const { metric, tokenUsage } = yield ctx.conversate({
|
|
101
|
+
source: "interfaceSchemaReview",
|
|
103
102
|
controller: createController({
|
|
104
103
|
model: ctx.model,
|
|
105
104
|
pointer,
|
|
106
|
-
operations,
|
|
107
|
-
schemas,
|
|
108
105
|
}),
|
|
109
|
-
histories: (0,
|
|
106
|
+
histories: (0, transformInterfaceSchemaReviewHistories_1.transformInterfaceSchemaReviewHistories)({
|
|
107
|
+
state: ctx.state(),
|
|
108
|
+
systemPrompt: config.systemPrompt,
|
|
109
|
+
instruction: props.instruction,
|
|
110
|
+
operations: props.operations,
|
|
111
|
+
everySchemas: props.everySchemas,
|
|
112
|
+
reviewSchemas: props.reviewSchemas,
|
|
113
|
+
}),
|
|
110
114
|
enforceFunctionCall: true,
|
|
111
|
-
promptCacheKey,
|
|
112
|
-
message: "Review
|
|
115
|
+
promptCacheKey: props.promptCacheKey,
|
|
116
|
+
message: "Review DTO content completeness and consistency.",
|
|
113
117
|
});
|
|
114
118
|
if (pointer.value === null) {
|
|
115
|
-
++progress.completed;
|
|
119
|
+
++props.progress.completed;
|
|
116
120
|
return {};
|
|
117
121
|
}
|
|
118
122
|
const content = ((_a = OpenApiV3_1Emender_1.OpenApiV3_1Emender.convertComponents({
|
|
119
123
|
schemas: pointer.value.content,
|
|
120
124
|
}).schemas) !== null && _a !== void 0 ? _a : {});
|
|
121
125
|
ctx.dispatch({
|
|
122
|
-
type: "
|
|
126
|
+
type: "interfaceSchemaReview",
|
|
127
|
+
kind: config.kind,
|
|
123
128
|
id: (0, uuid_1.v7)(),
|
|
124
|
-
schemas:
|
|
129
|
+
schemas: props.reviewSchemas,
|
|
125
130
|
review: pointer.value.think.review,
|
|
126
131
|
plan: pointer.value.think.plan,
|
|
127
132
|
content,
|
|
133
|
+
metric,
|
|
128
134
|
tokenUsage,
|
|
129
135
|
step: (_c = (_b = ctx.state().analyze) === null || _b === void 0 ? void 0 : _b.step) !== null && _c !== void 0 ? _c : 0,
|
|
130
|
-
total: progress.total,
|
|
131
|
-
completed: ++progress.completed,
|
|
136
|
+
total: props.progress.total,
|
|
137
|
+
completed: ++props.progress.completed,
|
|
132
138
|
created_at: new Date().toISOString(),
|
|
133
139
|
});
|
|
134
140
|
return content;
|
|
135
141
|
}
|
|
136
142
|
catch (_d) {
|
|
137
|
-
++progress.completed;
|
|
143
|
+
++props.progress.completed;
|
|
138
144
|
return {};
|
|
139
145
|
}
|
|
140
146
|
});
|
|
@@ -143,12 +149,12 @@ function createController(props) {
|
|
|
143
149
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
144
150
|
const validate = (next) => {
|
|
145
151
|
JsonSchemaFactory_1.JsonSchemaFactory.fixPage("content", next);
|
|
146
|
-
const result = (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
|
|
152
|
+
const result = (() => { const _iv1 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _iv2 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv7 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv8 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
|
|
147
153
|
const value = input[key];
|
|
148
154
|
if (undefined === value)
|
|
149
155
|
return true;
|
|
150
156
|
return "object" === typeof value && null !== value && _iu1(value);
|
|
151
|
-
}); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = 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 && "string" === typeof input.description; const _io6 = 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 && "string" === typeof input.description; const _io7 = input => (undefined === input.format ||
|
|
157
|
+
}); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = 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 && "string" === typeof input.description; const _io6 = 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 && "string" === typeof input.description; const _io7 = input => (undefined === input.format || true === _iv1.has(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 && "string" === typeof input.description; const _io8 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description; const _io9 = 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 _io10 = 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 _io11 = input => (undefined === input.format || true === _iv2.has(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 _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; const _io14 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type; const _io15 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type; const _io16 = input => "string" === typeof input.$ref; const _io17 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io19(input.discriminator)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
|
|
152
158
|
const value = input[key];
|
|
153
159
|
if (undefined === value)
|
|
154
160
|
return true;
|
|
@@ -222,11 +228,11 @@ function createController(props) {
|
|
|
222
228
|
return false;
|
|
223
229
|
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.think && null !== input.think || _report(_exceptionable, {
|
|
224
230
|
path: _path + ".think",
|
|
225
|
-
expected: "
|
|
231
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
226
232
|
value: input.think
|
|
227
233
|
})) && _vo1(input.think, _path + ".think", true && _exceptionable) || _report(_exceptionable, {
|
|
228
234
|
path: _path + ".think",
|
|
229
|
-
expected: "
|
|
235
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
230
236
|
value: input.think
|
|
231
237
|
}), ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || _report(_exceptionable, {
|
|
232
238
|
path: _path + ".content",
|
|
@@ -349,9 +355,9 @@ function createController(props) {
|
|
|
349
355
|
path: _path + ".description",
|
|
350
356
|
expected: "string",
|
|
351
357
|
value: input.description
|
|
352
|
-
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format ||
|
|
358
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv7.has(input.format) || _report(_exceptionable, {
|
|
353
359
|
path: _path + ".format",
|
|
354
|
-
expected: "(
|
|
360
|
+
expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
|
|
355
361
|
value: input.format
|
|
356
362
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
357
363
|
path: _path + ".pattern",
|
|
@@ -489,9 +495,9 @@ function createController(props) {
|
|
|
489
495
|
path: _path + ".type",
|
|
490
496
|
expected: "\"number\"",
|
|
491
497
|
value: input.type
|
|
492
|
-
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format ||
|
|
498
|
+
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv8.has(input.format) || _report(_exceptionable, {
|
|
493
499
|
path: _path + ".format",
|
|
494
|
-
expected: "(
|
|
500
|
+
expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
|
|
495
501
|
value: input.format
|
|
496
502
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
497
503
|
path: _path + ".pattern",
|
|
@@ -589,8 +595,8 @@ function createController(props) {
|
|
|
589
595
|
path: _path + ".required",
|
|
590
596
|
expected: "Array<string>",
|
|
591
597
|
value: input.required
|
|
592
|
-
})) && input.required.map((elem,
|
|
593
|
-
path: _path + ".required[" +
|
|
598
|
+
})) && input.required.map((elem, _index9) => "string" === typeof elem || _report(_exceptionable, {
|
|
599
|
+
path: _path + ".required[" + _index9 + "]",
|
|
594
600
|
expected: "string",
|
|
595
601
|
value: elem
|
|
596
602
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -609,12 +615,12 @@ function createController(props) {
|
|
|
609
615
|
path: _path + ".oneOf",
|
|
610
616
|
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
611
617
|
value: input.oneOf
|
|
612
|
-
})) && input.oneOf.map((elem,
|
|
613
|
-
path: _path + ".oneOf[" +
|
|
618
|
+
})) && input.oneOf.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
619
|
+
path: _path + ".oneOf[" + _index10 + "]",
|
|
614
620
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
615
621
|
value: elem
|
|
616
|
-
})) && _vu0(elem, _path + ".oneOf[" +
|
|
617
|
-
path: _path + ".oneOf[" +
|
|
622
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
623
|
+
path: _path + ".oneOf[" + _index10 + "]",
|
|
618
624
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
619
625
|
value: elem
|
|
620
626
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -682,8 +688,8 @@ function createController(props) {
|
|
|
682
688
|
path: _path + ".required",
|
|
683
689
|
expected: "Array<string>",
|
|
684
690
|
value: input.required
|
|
685
|
-
})) && input.required.map((elem,
|
|
686
|
-
path: _path + ".required[" +
|
|
691
|
+
})) && input.required.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
|
|
692
|
+
path: _path + ".required[" + _index11 + "]",
|
|
687
693
|
expected: "string",
|
|
688
694
|
value: elem
|
|
689
695
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -710,12 +716,12 @@ function createController(props) {
|
|
|
710
716
|
path: _path + ".oneOf",
|
|
711
717
|
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
712
718
|
value: input.oneOf
|
|
713
|
-
})) && input.oneOf.map((elem,
|
|
714
|
-
path: _path + ".oneOf[" +
|
|
719
|
+
})) && input.oneOf.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
720
|
+
path: _path + ".oneOf[" + _index12 + "]",
|
|
715
721
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
716
722
|
value: elem
|
|
717
|
-
})) && _vu0(elem, _path + ".oneOf[" +
|
|
718
|
-
path: _path + ".oneOf[" +
|
|
723
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
724
|
+
path: _path + ".oneOf[" + _index12 + "]",
|
|
719
725
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
720
726
|
value: elem
|
|
721
727
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -827,11 +833,11 @@ function createController(props) {
|
|
|
827
833
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
828
834
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
829
835
|
path: _path + "",
|
|
830
|
-
expected: "
|
|
836
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
831
837
|
value: input
|
|
832
838
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
833
839
|
path: _path + "",
|
|
834
|
-
expected: "
|
|
840
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
835
841
|
value: input
|
|
836
842
|
}))(input, "$input", true);
|
|
837
843
|
const success = 0 === errors.length;
|
|
@@ -870,7 +876,7 @@ function createController(props) {
|
|
|
870
876
|
const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"](validate);
|
|
871
877
|
return {
|
|
872
878
|
protocol: "class",
|
|
873
|
-
name: "
|
|
879
|
+
name: "ContentReviewer",
|
|
874
880
|
application,
|
|
875
881
|
execute: {
|
|
876
882
|
review: (input) => {
|
|
@@ -892,11 +898,11 @@ const collection = {
|
|
|
892
898
|
{
|
|
893
899
|
name: "review",
|
|
894
900
|
parameters: {
|
|
895
|
-
description: "
|
|
901
|
+
description: " Content review results including completeness issues found,\nfixes applied, and modified schemas\n\n------------------------------\n\nDescription of the current {@link IAutoBeInterfaceSchemaContentReviewApplication.IProps} type:\n\n> Output structure for the content review function.\n> \n> Contains the content analysis, completeness fixes, and schemas modified for\n> content quality during the validation process.\n\n### Description of {@link think} property:\n\n> Content analysis and completeness planning information.\n\n### Description of {@link content} property:\n\n> Modified schemas resulting from content and completeness fixes.\n> \n> Contains ONLY the schemas that were modified for content reasons during\n> review. This includes both modified existing schemas and newly created\n> variant schemas.\n> \n> Content modifications include:\n> \n> - Adding missing fields from Prisma schema\n> - Correcting data type mappings\n> - Fixing required field arrays\n> - Enhancing or adding descriptions\n> - Creating missing variant types (ISummary, IUpdate, etc.)\n> - Ensuring cross-variant consistency\n> \n> Return empty object {} when all content is already complete and accurate,\n> requiring no modifications.",
|
|
896
902
|
type: "object",
|
|
897
903
|
properties: {
|
|
898
904
|
think: {
|
|
899
|
-
$ref: "#/$defs/
|
|
905
|
+
$ref: "#/$defs/IAutoBeInterfaceSchemaContentReviewApplication.IThink"
|
|
900
906
|
},
|
|
901
907
|
content: {
|
|
902
908
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -908,15 +914,15 @@ const collection = {
|
|
|
908
914
|
],
|
|
909
915
|
additionalProperties: false,
|
|
910
916
|
$defs: {
|
|
911
|
-
"
|
|
917
|
+
"IAutoBeInterfaceSchemaContentReviewApplication.IThink": {
|
|
912
918
|
type: "object",
|
|
913
919
|
properties: {
|
|
914
920
|
review: {
|
|
915
|
-
description: "
|
|
921
|
+
description: "Content completeness and quality findings from the review process.\n\nDocuments all content issues discovered during validation, categorized by\ntype: field completeness, type accuracy, required fields, descriptions,\nvariant consistency, and missing variants. Each issue includes the\naffected schema and specific problem identified.\n\nCommon issues documented:\n\n- Field Completeness: Missing fields that exist in Prisma schema\n- Type Accuracy: Incorrect type mappings (e.g., Decimal as string)\n- Required Fields: Misaligned with Prisma nullable settings\n- Description Quality: Missing or inadequate descriptions\n- Variant Consistency: Same field with different types across variants\n- Missing Variants: Required DTO variants not present\n\nShould state \"No content or completeness issues found.\" when all schemas\nhave complete and accurate content.",
|
|
916
922
|
type: "string"
|
|
917
923
|
},
|
|
918
924
|
plan: {
|
|
919
|
-
description: "
|
|
925
|
+
description: "Content corrections and completeness fixes applied during review.\n\nLists all content modifications implemented, organized by fix type:\nfields added, types corrected, required arrays fixed, descriptions\nenhanced, consistency fixes, and variants created. Documents both field-\nlevel changes and schema-level additions.\n\nTypical fixes documented:\n\n- Fields added to match Prisma schema\n- Type mappings corrected (Int\u2192integer, Decimal\u2192number)\n- Required arrays aligned with nullability\n- Descriptions added or enhanced for clarity\n- Variant consistency issues resolved\n- Missing variants created with appropriate fields\n\nShould state \"No content issues require fixes. All DTOs are complete and\nconsistent.\" when no content modifications were necessary.",
|
|
920
926
|
type: "string"
|
|
921
927
|
}
|
|
922
928
|
},
|
|
@@ -1106,7 +1112,30 @@ const collection = {
|
|
|
1106
1112
|
properties: {
|
|
1107
1113
|
format: {
|
|
1108
1114
|
description: "Format restriction.",
|
|
1109
|
-
type: "string"
|
|
1115
|
+
type: "string",
|
|
1116
|
+
"enum": [
|
|
1117
|
+
"date-time",
|
|
1118
|
+
"password",
|
|
1119
|
+
"regex",
|
|
1120
|
+
"uuid",
|
|
1121
|
+
"email",
|
|
1122
|
+
"hostname",
|
|
1123
|
+
"idn-email",
|
|
1124
|
+
"idn-hostname",
|
|
1125
|
+
"iri",
|
|
1126
|
+
"iri-reference",
|
|
1127
|
+
"ipv4",
|
|
1128
|
+
"ipv6",
|
|
1129
|
+
"uri",
|
|
1130
|
+
"uri-reference",
|
|
1131
|
+
"uri-template",
|
|
1132
|
+
"url",
|
|
1133
|
+
"date",
|
|
1134
|
+
"time",
|
|
1135
|
+
"duration",
|
|
1136
|
+
"json-pointer",
|
|
1137
|
+
"relative-json-pointer"
|
|
1138
|
+
]
|
|
1110
1139
|
},
|
|
1111
1140
|
pattern: {
|
|
1112
1141
|
description: "Pattern restriction.",
|
|
@@ -1291,7 +1320,30 @@ const collection = {
|
|
|
1291
1320
|
properties: {
|
|
1292
1321
|
format: {
|
|
1293
1322
|
description: "Format restriction.",
|
|
1294
|
-
type: "string"
|
|
1323
|
+
type: "string",
|
|
1324
|
+
"enum": [
|
|
1325
|
+
"date-time",
|
|
1326
|
+
"password",
|
|
1327
|
+
"regex",
|
|
1328
|
+
"uuid",
|
|
1329
|
+
"email",
|
|
1330
|
+
"hostname",
|
|
1331
|
+
"idn-email",
|
|
1332
|
+
"idn-hostname",
|
|
1333
|
+
"iri",
|
|
1334
|
+
"iri-reference",
|
|
1335
|
+
"ipv4",
|
|
1336
|
+
"ipv6",
|
|
1337
|
+
"uri",
|
|
1338
|
+
"uri-reference",
|
|
1339
|
+
"uri-template",
|
|
1340
|
+
"url",
|
|
1341
|
+
"date",
|
|
1342
|
+
"time",
|
|
1343
|
+
"duration",
|
|
1344
|
+
"json-pointer",
|
|
1345
|
+
"relative-json-pointer"
|
|
1346
|
+
]
|
|
1295
1347
|
},
|
|
1296
1348
|
pattern: {
|
|
1297
1349
|
description: "Pattern restriction.",
|
|
@@ -1751,13 +1803,13 @@ const collection = {
|
|
|
1751
1803
|
}
|
|
1752
1804
|
}
|
|
1753
1805
|
},
|
|
1754
|
-
description: "
|
|
1755
|
-
validate: (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
|
|
1806
|
+
description: "Reviews and validates DTO content completeness and consistency in OpenAPI\nschemas.\n\nThis specialized content review function focuses exclusively on ensuring\nDTOs accurately and completely represent their business entities. It\nvalidates field completeness, type accuracy, required field settings, and\ndocumentation quality.\n\nThe review process validates and corrects:\n\n- Field completeness against Prisma schema\n- Data type accuracy (Prisma to OpenAPI type mappings)\n- Required field arrays matching Prisma nullability\n- Description quality and comprehensiveness\n- Consistency across DTO variants (IEntity, ICreate, IUpdate, ISummary)\n- Missing variant detection and creation",
|
|
1807
|
+
validate: (() => { const _iv1 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _iv2 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv7 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv8 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
|
|
1756
1808
|
const value = input[key];
|
|
1757
1809
|
if (undefined === value)
|
|
1758
1810
|
return true;
|
|
1759
1811
|
return "object" === typeof value && null !== value && _iu1(value);
|
|
1760
|
-
}); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = 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 && "string" === typeof input.description; const _io6 = 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 && "string" === typeof input.description; const _io7 = input => (undefined === input.format ||
|
|
1812
|
+
}); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = 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 && "string" === typeof input.description; const _io6 = 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 && "string" === typeof input.description; const _io7 = input => (undefined === input.format || true === _iv1.has(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 && "string" === typeof input.description; const _io8 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description; const _io9 = 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 _io10 = 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 _io11 = input => (undefined === input.format || true === _iv2.has(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 _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; const _io14 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type; const _io15 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type; const _io16 = input => "string" === typeof input.$ref; const _io17 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io19(input.discriminator)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
|
|
1761
1813
|
const value = input[key];
|
|
1762
1814
|
if (undefined === value)
|
|
1763
1815
|
return true;
|
|
@@ -1831,11 +1883,11 @@ const collection = {
|
|
|
1831
1883
|
return false;
|
|
1832
1884
|
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.think && null !== input.think || _report(_exceptionable, {
|
|
1833
1885
|
path: _path + ".think",
|
|
1834
|
-
expected: "
|
|
1886
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
1835
1887
|
value: input.think
|
|
1836
1888
|
})) && _vo1(input.think, _path + ".think", true && _exceptionable) || _report(_exceptionable, {
|
|
1837
1889
|
path: _path + ".think",
|
|
1838
|
-
expected: "
|
|
1890
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
1839
1891
|
value: input.think
|
|
1840
1892
|
}), ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || _report(_exceptionable, {
|
|
1841
1893
|
path: _path + ".content",
|
|
@@ -1958,9 +2010,9 @@ const collection = {
|
|
|
1958
2010
|
path: _path + ".description",
|
|
1959
2011
|
expected: "string",
|
|
1960
2012
|
value: input.description
|
|
1961
|
-
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format ||
|
|
2013
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv7.has(input.format) || _report(_exceptionable, {
|
|
1962
2014
|
path: _path + ".format",
|
|
1963
|
-
expected: "(
|
|
2015
|
+
expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
|
|
1964
2016
|
value: input.format
|
|
1965
2017
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
1966
2018
|
path: _path + ".pattern",
|
|
@@ -2098,9 +2150,9 @@ const collection = {
|
|
|
2098
2150
|
path: _path + ".type",
|
|
2099
2151
|
expected: "\"number\"",
|
|
2100
2152
|
value: input.type
|
|
2101
|
-
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format ||
|
|
2153
|
+
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv8.has(input.format) || _report(_exceptionable, {
|
|
2102
2154
|
path: _path + ".format",
|
|
2103
|
-
expected: "(
|
|
2155
|
+
expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
|
|
2104
2156
|
value: input.format
|
|
2105
2157
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
2106
2158
|
path: _path + ".pattern",
|
|
@@ -2198,8 +2250,8 @@ const collection = {
|
|
|
2198
2250
|
path: _path + ".required",
|
|
2199
2251
|
expected: "Array<string>",
|
|
2200
2252
|
value: input.required
|
|
2201
|
-
})) && input.required.map((elem,
|
|
2202
|
-
path: _path + ".required[" +
|
|
2253
|
+
})) && input.required.map((elem, _index9) => "string" === typeof elem || _report(_exceptionable, {
|
|
2254
|
+
path: _path + ".required[" + _index9 + "]",
|
|
2203
2255
|
expected: "string",
|
|
2204
2256
|
value: elem
|
|
2205
2257
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2218,12 +2270,12 @@ const collection = {
|
|
|
2218
2270
|
path: _path + ".oneOf",
|
|
2219
2271
|
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
2220
2272
|
value: input.oneOf
|
|
2221
|
-
})) && input.oneOf.map((elem,
|
|
2222
|
-
path: _path + ".oneOf[" +
|
|
2273
|
+
})) && input.oneOf.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2274
|
+
path: _path + ".oneOf[" + _index10 + "]",
|
|
2223
2275
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
2224
2276
|
value: elem
|
|
2225
|
-
})) && _vu0(elem, _path + ".oneOf[" +
|
|
2226
|
-
path: _path + ".oneOf[" +
|
|
2277
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2278
|
+
path: _path + ".oneOf[" + _index10 + "]",
|
|
2227
2279
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
2228
2280
|
value: elem
|
|
2229
2281
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2291,8 +2343,8 @@ const collection = {
|
|
|
2291
2343
|
path: _path + ".required",
|
|
2292
2344
|
expected: "Array<string>",
|
|
2293
2345
|
value: input.required
|
|
2294
|
-
})) && input.required.map((elem,
|
|
2295
|
-
path: _path + ".required[" +
|
|
2346
|
+
})) && input.required.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
|
|
2347
|
+
path: _path + ".required[" + _index11 + "]",
|
|
2296
2348
|
expected: "string",
|
|
2297
2349
|
value: elem
|
|
2298
2350
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2319,12 +2371,12 @@ const collection = {
|
|
|
2319
2371
|
path: _path + ".oneOf",
|
|
2320
2372
|
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
2321
2373
|
value: input.oneOf
|
|
2322
|
-
})) && input.oneOf.map((elem,
|
|
2323
|
-
path: _path + ".oneOf[" +
|
|
2374
|
+
})) && input.oneOf.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2375
|
+
path: _path + ".oneOf[" + _index12 + "]",
|
|
2324
2376
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
2325
2377
|
value: elem
|
|
2326
|
-
})) && _vu0(elem, _path + ".oneOf[" +
|
|
2327
|
-
path: _path + ".oneOf[" +
|
|
2378
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2379
|
+
path: _path + ".oneOf[" + _index12 + "]",
|
|
2328
2380
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
2329
2381
|
value: elem
|
|
2330
2382
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2436,11 +2488,11 @@ const collection = {
|
|
|
2436
2488
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
2437
2489
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
2438
2490
|
path: _path + "",
|
|
2439
|
-
expected: "
|
|
2491
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
2440
2492
|
value: input
|
|
2441
2493
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
2442
2494
|
path: _path + "",
|
|
2443
|
-
expected: "
|
|
2495
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
2444
2496
|
value: input
|
|
2445
2497
|
}))(input, "$input", true);
|
|
2446
2498
|
const success = 0 === errors.length;
|
|
@@ -2479,14 +2531,15 @@ const collection = {
|
|
|
2479
2531
|
{
|
|
2480
2532
|
name: "review",
|
|
2481
2533
|
parameters: {
|
|
2482
|
-
description: "
|
|
2534
|
+
description: " Content review results including completeness issues found,\nfixes applied, and modified schemas\n\n------------------------------\n\nDescription of the current {@link IAutoBeInterfaceSchemaContentReviewApplication.IProps} type:\n\n> Output structure for the content review function.\n> \n> Contains the content analysis, completeness fixes, and schemas modified for\n> content quality during the validation process.",
|
|
2483
2535
|
type: "object",
|
|
2484
2536
|
properties: {
|
|
2485
2537
|
think: {
|
|
2486
|
-
|
|
2538
|
+
description: "Content analysis and completeness planning information.",
|
|
2539
|
+
$ref: "#/$defs/IAutoBeInterfaceSchemaContentReviewApplication.IThink"
|
|
2487
2540
|
},
|
|
2488
2541
|
content: {
|
|
2489
|
-
description: "
|
|
2542
|
+
description: "Modified schemas resulting from content and completeness fixes.\n\nContains ONLY the schemas that were modified for content reasons during\nreview. This includes both modified existing schemas and newly created\nvariant schemas.\n\nContent modifications include:\n\n- Adding missing fields from Prisma schema\n- Correcting data type mappings\n- Fixing required field arrays\n- Enhancing or adding descriptions\n- Creating missing variant types (ISummary, IUpdate, etc.)\n- Ensuring cross-variant consistency\n\nReturn empty object {} when all content is already complete and accurate,\nrequiring no modifications.",
|
|
2490
2543
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
2491
2544
|
}
|
|
2492
2545
|
},
|
|
@@ -2496,15 +2549,15 @@ const collection = {
|
|
|
2496
2549
|
],
|
|
2497
2550
|
additionalProperties: false,
|
|
2498
2551
|
$defs: {
|
|
2499
|
-
"
|
|
2552
|
+
"IAutoBeInterfaceSchemaContentReviewApplication.IThink": {
|
|
2500
2553
|
type: "object",
|
|
2501
2554
|
properties: {
|
|
2502
2555
|
review: {
|
|
2503
|
-
description: "
|
|
2556
|
+
description: "Content completeness and quality findings from the review process.\n\nDocuments all content issues discovered during validation, categorized by\ntype: field completeness, type accuracy, required fields, descriptions,\nvariant consistency, and missing variants. Each issue includes the\naffected schema and specific problem identified.\n\nCommon issues documented:\n\n- Field Completeness: Missing fields that exist in Prisma schema\n- Type Accuracy: Incorrect type mappings (e.g., Decimal as string)\n- Required Fields: Misaligned with Prisma nullable settings\n- Description Quality: Missing or inadequate descriptions\n- Variant Consistency: Same field with different types across variants\n- Missing Variants: Required DTO variants not present\n\nShould state \"No content or completeness issues found.\" when all schemas\nhave complete and accurate content.",
|
|
2504
2557
|
type: "string"
|
|
2505
2558
|
},
|
|
2506
2559
|
plan: {
|
|
2507
|
-
description: "
|
|
2560
|
+
description: "Content corrections and completeness fixes applied during review.\n\nLists all content modifications implemented, organized by fix type:\nfields added, types corrected, required arrays fixed, descriptions\nenhanced, consistency fixes, and variants created. Documents both field-\nlevel changes and schema-level additions.\n\nTypical fixes documented:\n\n- Fields added to match Prisma schema\n- Type mappings corrected (Int\u2192integer, Decimal\u2192number)\n- Required arrays aligned with nullability\n- Descriptions added or enhanced for clarity\n- Variant consistency issues resolved\n- Missing variants created with appropriate fields\n\nShould state \"No content issues require fixes. All DTOs are complete and\nconsistent.\" when no content modifications were necessary.",
|
|
2508
2561
|
type: "string"
|
|
2509
2562
|
}
|
|
2510
2563
|
},
|
|
@@ -2687,7 +2740,71 @@ const collection = {
|
|
|
2687
2740
|
properties: {
|
|
2688
2741
|
format: {
|
|
2689
2742
|
description: "Format restriction.",
|
|
2690
|
-
|
|
2743
|
+
oneOf: [
|
|
2744
|
+
{
|
|
2745
|
+
"const": "date-time"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
"const": "password"
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"const": "regex"
|
|
2752
|
+
},
|
|
2753
|
+
{
|
|
2754
|
+
"const": "uuid"
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"const": "email"
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
"const": "hostname"
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
"const": "idn-email"
|
|
2764
|
+
},
|
|
2765
|
+
{
|
|
2766
|
+
"const": "idn-hostname"
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"const": "iri"
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
"const": "iri-reference"
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"const": "ipv4"
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
"const": "ipv6"
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
"const": "uri"
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
"const": "uri-reference"
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"const": "uri-template"
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
"const": "url"
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
"const": "date"
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
"const": "time"
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"const": "duration"
|
|
2800
|
+
},
|
|
2801
|
+
{
|
|
2802
|
+
"const": "json-pointer"
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
"const": "relative-json-pointer"
|
|
2806
|
+
}
|
|
2807
|
+
]
|
|
2691
2808
|
},
|
|
2692
2809
|
pattern: {
|
|
2693
2810
|
description: "Pattern restriction.",
|
|
@@ -2867,7 +2984,71 @@ const collection = {
|
|
|
2867
2984
|
properties: {
|
|
2868
2985
|
format: {
|
|
2869
2986
|
description: "Format restriction.",
|
|
2870
|
-
|
|
2987
|
+
oneOf: [
|
|
2988
|
+
{
|
|
2989
|
+
"const": "date-time"
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
"const": "password"
|
|
2993
|
+
},
|
|
2994
|
+
{
|
|
2995
|
+
"const": "regex"
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
"const": "uuid"
|
|
2999
|
+
},
|
|
3000
|
+
{
|
|
3001
|
+
"const": "email"
|
|
3002
|
+
},
|
|
3003
|
+
{
|
|
3004
|
+
"const": "hostname"
|
|
3005
|
+
},
|
|
3006
|
+
{
|
|
3007
|
+
"const": "idn-email"
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
"const": "idn-hostname"
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
"const": "iri"
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
"const": "iri-reference"
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
"const": "ipv4"
|
|
3020
|
+
},
|
|
3021
|
+
{
|
|
3022
|
+
"const": "ipv6"
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
"const": "uri"
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
"const": "uri-reference"
|
|
3029
|
+
},
|
|
3030
|
+
{
|
|
3031
|
+
"const": "uri-template"
|
|
3032
|
+
},
|
|
3033
|
+
{
|
|
3034
|
+
"const": "url"
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"const": "date"
|
|
3038
|
+
},
|
|
3039
|
+
{
|
|
3040
|
+
"const": "time"
|
|
3041
|
+
},
|
|
3042
|
+
{
|
|
3043
|
+
"const": "duration"
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
"const": "json-pointer"
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
"const": "relative-json-pointer"
|
|
3050
|
+
}
|
|
3051
|
+
]
|
|
2871
3052
|
},
|
|
2872
3053
|
pattern: {
|
|
2873
3054
|
description: "Pattern restriction.",
|
|
@@ -3310,13 +3491,13 @@ const collection = {
|
|
|
3310
3491
|
}
|
|
3311
3492
|
}
|
|
3312
3493
|
},
|
|
3313
|
-
description: "
|
|
3314
|
-
validate: (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
|
|
3494
|
+
description: "Reviews and validates DTO content completeness and consistency in OpenAPI\nschemas.\n\nThis specialized content review function focuses exclusively on ensuring\nDTOs accurately and completely represent their business entities. It\nvalidates field completeness, type accuracy, required field settings, and\ndocumentation quality.\n\nThe review process validates and corrects:\n\n- Field completeness against Prisma schema\n- Data type accuracy (Prisma to OpenAPI type mappings)\n- Required field arrays matching Prisma nullability\n- Description quality and comprehensiveness\n- Consistency across DTO variants (IEntity, ICreate, IUpdate, ISummary)\n- Missing variant detection and creation",
|
|
3495
|
+
validate: (() => { const _iv1 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _iv2 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv7 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv8 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
|
|
3315
3496
|
const value = input[key];
|
|
3316
3497
|
if (undefined === value)
|
|
3317
3498
|
return true;
|
|
3318
3499
|
return "object" === typeof value && null !== value && _iu1(value);
|
|
3319
|
-
}); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = 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 && "string" === typeof input.description; const _io6 = 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 && "string" === typeof input.description; const _io7 = input => (undefined === input.format ||
|
|
3500
|
+
}); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = 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 && "string" === typeof input.description; const _io6 = 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 && "string" === typeof input.description; const _io7 = input => (undefined === input.format || true === _iv1.has(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 && "string" === typeof input.description; const _io8 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description; const _io9 = 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 _io10 = 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 _io11 = input => (undefined === input.format || true === _iv2.has(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 _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; const _io14 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type; const _io15 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type; const _io16 = input => "string" === typeof input.$ref; const _io17 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io19(input.discriminator)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
|
|
3320
3501
|
const value = input[key];
|
|
3321
3502
|
if (undefined === value)
|
|
3322
3503
|
return true;
|
|
@@ -3390,11 +3571,11 @@ const collection = {
|
|
|
3390
3571
|
return false;
|
|
3391
3572
|
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.think && null !== input.think || _report(_exceptionable, {
|
|
3392
3573
|
path: _path + ".think",
|
|
3393
|
-
expected: "
|
|
3574
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
3394
3575
|
value: input.think
|
|
3395
3576
|
})) && _vo1(input.think, _path + ".think", true && _exceptionable) || _report(_exceptionable, {
|
|
3396
3577
|
path: _path + ".think",
|
|
3397
|
-
expected: "
|
|
3578
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
3398
3579
|
value: input.think
|
|
3399
3580
|
}), ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || _report(_exceptionable, {
|
|
3400
3581
|
path: _path + ".content",
|
|
@@ -3517,9 +3698,9 @@ const collection = {
|
|
|
3517
3698
|
path: _path + ".description",
|
|
3518
3699
|
expected: "string",
|
|
3519
3700
|
value: input.description
|
|
3520
|
-
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format ||
|
|
3701
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv7.has(input.format) || _report(_exceptionable, {
|
|
3521
3702
|
path: _path + ".format",
|
|
3522
|
-
expected: "(
|
|
3703
|
+
expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
|
|
3523
3704
|
value: input.format
|
|
3524
3705
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
3525
3706
|
path: _path + ".pattern",
|
|
@@ -3657,9 +3838,9 @@ const collection = {
|
|
|
3657
3838
|
path: _path + ".type",
|
|
3658
3839
|
expected: "\"number\"",
|
|
3659
3840
|
value: input.type
|
|
3660
|
-
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format ||
|
|
3841
|
+
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv8.has(input.format) || _report(_exceptionable, {
|
|
3661
3842
|
path: _path + ".format",
|
|
3662
|
-
expected: "(
|
|
3843
|
+
expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
|
|
3663
3844
|
value: input.format
|
|
3664
3845
|
}), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
|
|
3665
3846
|
path: _path + ".pattern",
|
|
@@ -3757,8 +3938,8 @@ const collection = {
|
|
|
3757
3938
|
path: _path + ".required",
|
|
3758
3939
|
expected: "Array<string>",
|
|
3759
3940
|
value: input.required
|
|
3760
|
-
})) && input.required.map((elem,
|
|
3761
|
-
path: _path + ".required[" +
|
|
3941
|
+
})) && input.required.map((elem, _index9) => "string" === typeof elem || _report(_exceptionable, {
|
|
3942
|
+
path: _path + ".required[" + _index9 + "]",
|
|
3762
3943
|
expected: "string",
|
|
3763
3944
|
value: elem
|
|
3764
3945
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -3777,12 +3958,12 @@ const collection = {
|
|
|
3777
3958
|
path: _path + ".oneOf",
|
|
3778
3959
|
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
3779
3960
|
value: input.oneOf
|
|
3780
|
-
})) && input.oneOf.map((elem,
|
|
3781
|
-
path: _path + ".oneOf[" +
|
|
3961
|
+
})) && input.oneOf.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3962
|
+
path: _path + ".oneOf[" + _index10 + "]",
|
|
3782
3963
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
3783
3964
|
value: elem
|
|
3784
|
-
})) && _vu0(elem, _path + ".oneOf[" +
|
|
3785
|
-
path: _path + ".oneOf[" +
|
|
3965
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3966
|
+
path: _path + ".oneOf[" + _index10 + "]",
|
|
3786
3967
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
3787
3968
|
value: elem
|
|
3788
3969
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -3850,8 +4031,8 @@ const collection = {
|
|
|
3850
4031
|
path: _path + ".required",
|
|
3851
4032
|
expected: "Array<string>",
|
|
3852
4033
|
value: input.required
|
|
3853
|
-
})) && input.required.map((elem,
|
|
3854
|
-
path: _path + ".required[" +
|
|
4034
|
+
})) && input.required.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
|
|
4035
|
+
path: _path + ".required[" + _index11 + "]",
|
|
3855
4036
|
expected: "string",
|
|
3856
4037
|
value: elem
|
|
3857
4038
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -3878,12 +4059,12 @@ const collection = {
|
|
|
3878
4059
|
path: _path + ".oneOf",
|
|
3879
4060
|
expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
|
|
3880
4061
|
value: input.oneOf
|
|
3881
|
-
})) && input.oneOf.map((elem,
|
|
3882
|
-
path: _path + ".oneOf[" +
|
|
4062
|
+
})) && input.oneOf.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
4063
|
+
path: _path + ".oneOf[" + _index12 + "]",
|
|
3883
4064
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
3884
4065
|
value: elem
|
|
3885
|
-
})) && _vu0(elem, _path + ".oneOf[" +
|
|
3886
|
-
path: _path + ".oneOf[" +
|
|
4066
|
+
})) && _vu0(elem, _path + ".oneOf[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
4067
|
+
path: _path + ".oneOf[" + _index12 + "]",
|
|
3887
4068
|
expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
|
|
3888
4069
|
value: elem
|
|
3889
4070
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -3995,11 +4176,11 @@ const collection = {
|
|
|
3995
4176
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
3996
4177
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
3997
4178
|
path: _path + "",
|
|
3998
|
-
expected: "
|
|
4179
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
3999
4180
|
value: input
|
|
4000
4181
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
4001
4182
|
path: _path + "",
|
|
4002
|
-
expected: "
|
|
4183
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
4003
4184
|
value: input
|
|
4004
4185
|
}))(input, "$input", true);
|
|
4005
4186
|
const success = 0 === errors.length;
|
|
@@ -4028,4 +4209,4 @@ const collection = {
|
|
|
4028
4209
|
return application;
|
|
4029
4210
|
})(),
|
|
4030
4211
|
};
|
|
4031
|
-
//# sourceMappingURL=
|
|
4212
|
+
//# sourceMappingURL=orchestrateInterfaceSchemaReview.js.map
|