@autobe/agent 0.24.2 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.js +11 -1
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +1 -0
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +21 -21
- package/lib/context/IAutoBeApplication.d.ts +101 -6
- package/lib/context/IAutoBeApplicationProps.d.ts +6 -2
- package/lib/factory/createAgenticaHistory.js +1 -1
- package/lib/factory/createAgenticaHistory.js.map +1 -1
- package/lib/factory/createAutoBeApplication.js +80 -90
- package/lib/factory/createAutoBeApplication.js.map +1 -1
- package/lib/factory/createAutoBeContext.js +6 -5
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/index.mjs +3914 -2594
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +5 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +18 -3
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +5 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +19 -7
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +3 -2
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +2 -2
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +2 -2
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +1 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +36 -23
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +22 -42
- package/lib/orchestrate/facade/transformFacadeStateMessage.js +1 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js +2 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +5 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +20 -7
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.d.ts +3 -0
- package/lib/orchestrate/interface/histories/{transformInterfacePrerequisiteHistories.js → transformInterfaceCommonPrerequisiteHistories.js} +4 -4
- package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +6 -1
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +31 -23
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +6 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +22 -6
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +4 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +27 -6
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +5 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +21 -5
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.d.ts +3 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js +102 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +5 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +20 -4
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +45 -11
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +277 -37
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +69 -70
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +6 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +28 -13
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +4 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +11 -8
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.d.ts +5 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +36 -21
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +260 -29
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.d.ts +5 -0
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +713 -0
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +5 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +83 -53
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js +41 -7
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +0 -38
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +6 -10
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.d.ts +52 -0
- package/lib/orchestrate/{common/structures/IAutoBeCommonCorrectDateApplication.js → interface/structures/IAutoBeInterfacePrerequisitesApplication.js} +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +0 -33
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.d.ts +6 -2
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +105 -5
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +20 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.d.ts +3 -4
- package/lib/orchestrate/interface/utils/OperationValidator.js +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +4 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +19 -8
- 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.d.ts +6 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +20 -6
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +3 -3
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +6 -3
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +12 -6
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/{common/histories/transformCommonCorrectDateHistories.d.ts → realize/histories/transformRealizeCorrectCastingHistories.d.ts} +1 -2
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js +32 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +14 -22
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +6 -6
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +8 -2
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js +1 -2
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.d.ts +2 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +119 -42
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +82 -52
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +128 -88
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +2 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +117 -54
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +52 -26
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +44 -34
- package/lib/orchestrate/realize/utils/InternalFileSystem.js +1 -1
- package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +1 -1
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js +1 -5
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +8 -3
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +44 -17
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +4 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js +24 -9
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -1
- package/lib/orchestrate/realize/utils/printErrorHints.d.ts +8 -0
- package/lib/orchestrate/realize/utils/printErrorHints.js +48 -0
- package/lib/orchestrate/realize/utils/printErrorHints.js.map +1 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.d.ts +1 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +93 -53
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +5 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +11 -7
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +7 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +35 -96
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.d.ts +6 -3
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +33 -77
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.d.ts +5 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js +111 -94
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +20 -14
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +4 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +81 -50
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +31 -13
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +18 -7
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.d.ts +5 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +20 -12
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.d.ts +4 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +46 -25
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +9 -5
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.d.ts +8 -2
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +11 -7
- package/lib/orchestrate/test/utils/getPrerequisites.d.ts +5 -0
- package/lib/orchestrate/test/utils/getPrerequisites.js +36 -0
- package/lib/orchestrate/test/utils/getPrerequisites.js.map +1 -0
- package/lib/orchestrate/test/utils/getReferenceIds.js +1 -1
- package/lib/orchestrate/test/utils/getReferenceIds.js.map +1 -1
- package/package.json +5 -5
- package/src/AutoBeAgent.ts +17 -1
- package/src/AutoBeMockAgent.ts +1 -0
- package/src/constants/AutoBeSystemPromptConstant.ts +21 -21
- package/src/context/IAutoBeApplication.ts +101 -6
- package/src/context/IAutoBeApplicationProps.ts +6 -2
- package/src/factory/createAgenticaHistory.ts +11 -5
- package/src/factory/createAutoBeContext.ts +6 -5
- package/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.ts +5 -1
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +16 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +22 -7
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +3 -2
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +2 -1
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +3 -2
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +2 -2
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +25 -45
- package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +2 -1
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +23 -9
- package/src/orchestrate/interface/histories/{transformInterfacePrerequisiteHistories.ts → transformInterfaceCommonPrerequisiteHistories.ts} +1 -1
- package/src/orchestrate/interface/histories/transformInterfaceComplementHistories.ts +33 -24
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +26 -9
- package/src/orchestrate/interface/histories/transformInterfaceGroupHistories.ts +30 -6
- package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +24 -7
- package/src/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.ts +118 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +23 -6
- package/src/orchestrate/interface/orchestrateInterface.ts +65 -20
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +22 -12
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +34 -47
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +40 -28
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +9 -3
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +51 -35
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +274 -0
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +52 -33
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +1 -1
- package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +0 -39
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +6 -10
- package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.ts +58 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +0 -34
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +92 -4
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +19 -1
- package/src/orchestrate/interface/utils/OperationValidator.ts +9 -7
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +20 -6
- package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +24 -9
- package/src/orchestrate/prisma/orchestratePrisma.ts +7 -3
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +5 -1
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +15 -10
- package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +44 -0
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +13 -24
- package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +6 -6
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +6 -4
- package/src/orchestrate/realize/internal/compileRealizeFiles.ts +1 -5
- package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +102 -16
- package/src/orchestrate/realize/orchestrateRealize.ts +121 -81
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +50 -7
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +14 -4
- package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +54 -29
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +46 -35
- package/src/orchestrate/realize/utils/InternalFileSystem.ts +1 -1
- package/src/orchestrate/realize/utils/generateRealizeScenario.ts +1 -5
- package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +54 -22
- package/src/orchestrate/realize/utils/getRealizeWriteImportStatements.ts +28 -16
- package/src/orchestrate/realize/utils/printErrorHints.ts +55 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +99 -97
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +14 -7
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +50 -115
- package/src/orchestrate/test/histories/transformTestScenarioReviewHistories.ts +41 -111
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +35 -12
- package/src/orchestrate/test/orchestrateTest.ts +19 -13
- package/src/orchestrate/test/orchestrateTestCorrect.ts +71 -51
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +13 -1
- package/src/orchestrate/test/orchestrateTestScenario.ts +27 -17
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +32 -19
- package/src/orchestrate/test/orchestrateTestWrite.ts +20 -10
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +9 -228
- package/src/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.ts +8 -2
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +11 -78
- package/src/orchestrate/test/utils/getPrerequisites.ts +51 -0
- package/src/orchestrate/test/utils/getReferenceIds.ts +2 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectDateHistories.js +0 -48
- package/lib/orchestrate/common/histories/transformCommonCorrectDateHistories.js.map +0 -1
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectDateApplication.d.ts +0 -35
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectDateApplication.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +0 -3
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +0 -6
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js +0 -22
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrectDate.d.ts +0 -4
- package/lib/orchestrate/realize/orchestrateRealizeCorrectDate.js +0 -540
- package/lib/orchestrate/realize/orchestrateRealizeCorrectDate.js.map +0 -1
- package/src/orchestrate/common/histories/transformCommonCorrectDateHistories.ts +0 -60
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectDateApplication.ts +0 -40
- package/src/orchestrate/interface/utils/OpenApiEndpointComparator.ts +0 -23
- package/src/orchestrate/realize/orchestrateRealizeCorrectDate.ts +0 -372
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrateInterfacePrerequisites.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfacePrerequisites.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,8EA0EC;;;AAxFD,yCAAgE;AAEhE,+BAA+C;AAC/C,kDAA0B;AAC1B,+BAA0B;AAI1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,mHAAgH;AAGhH,SAAsB,iCAAiC;yDAGrD,GAAyB,EACzB,QAAiC,EACjC,0DAA0D;;QAE1D,MAAM,UAAU,GACd,MAAA,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,iBAAiB,KAAK,IAAI,CAAC,mCAAI,EAAE,CAAC;QAC1E,MAAM,QAAQ,GAA4B;YACxC,KAAK,EAAE,UAAU,CAAC,MAAM;YACxB,SAAS,EAAE,CAAC;SACb,CAAC;QACF,MAAM,sBAAsB,GAC1B,QAAQ,CAAC,UAAU,CAAC,MAAM,CACxB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,iBAAiB,KAAK,IAAI,IAAI,EAAE,CAAC,MAAM,KAAK,MAAM,CAC9D,CAAC;QAEJ,MAAM,IAAI,GACR,IAAI,cAAO,CACT,sBAAsB,CAAC,GAAG,CACxB,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,WAAI,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI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AC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHAC4C;YACzE,QAAQ,EAAE;gBACR,gBAAgB,EAAE,QAAQ;aAC3B;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHAC4C;YACxE,QAAQ,EAAE;gBACR,gBAAgB,EAAE,QAAQ;aAC3B;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
|
-
export declare function orchestrateInterfaceSchemas<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>,
|
|
4
|
+
export declare function orchestrateInterfaceSchemas<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: {
|
|
5
|
+
operations: AutoBeOpenApi.IOperation[];
|
|
6
|
+
instruction: string;
|
|
7
|
+
capacity?: number;
|
|
8
|
+
}): Promise<Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>>;
|
|
@@ -61,13 +61,14 @@ const JsonSchemaFactory_1 = require("./utils/JsonSchemaFactory");
|
|
|
61
61
|
const JsonSchemaNamingConvention_1 = require("./utils/JsonSchemaNamingConvention");
|
|
62
62
|
const JsonSchemaValidator_1 = require("./utils/JsonSchemaValidator");
|
|
63
63
|
const fulfillJsonSchemaErrorMessages_1 = require("./utils/fulfillJsonSchemaErrorMessages");
|
|
64
|
-
function orchestrateInterfaceSchemas(
|
|
65
|
-
return __awaiter(this,
|
|
64
|
+
function orchestrateInterfaceSchemas(ctx, props) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
var _a;
|
|
66
67
|
// fix operation type names
|
|
67
|
-
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.operations(operations);
|
|
68
|
+
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.operations(props.operations);
|
|
68
69
|
// gather type names
|
|
69
70
|
const typeNames = new Set();
|
|
70
|
-
for (const op of operations) {
|
|
71
|
+
for (const op of props.operations) {
|
|
71
72
|
if (op.requestBody !== null)
|
|
72
73
|
typeNames.add(op.requestBody.typeName);
|
|
73
74
|
if (op.responseBody !== null)
|
|
@@ -77,7 +78,7 @@ function orchestrateInterfaceSchemas(ctx_1, operations_1) {
|
|
|
77
78
|
// divide and conquer
|
|
78
79
|
const matrix = (0, divideArray_1.divideArray)({
|
|
79
80
|
array: Array.from(typeNames),
|
|
80
|
-
capacity
|
|
81
|
+
capacity: (_a = props.capacity) !== null && _a !== void 0 ? _a : 4 /* AutoBeConfigConstant.INTERFACE_CAPACITY */,
|
|
81
82
|
});
|
|
82
83
|
const progress = {
|
|
83
84
|
total: typeNames.size,
|
|
@@ -85,26 +86,39 @@ function orchestrateInterfaceSchemas(ctx_1, operations_1) {
|
|
|
85
86
|
};
|
|
86
87
|
const x = Object.assign({}, presets);
|
|
87
88
|
for (const y of yield (0, executeCachedBatch_1.executeCachedBatch)(matrix.map((it) => (promptCacheKey) => __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
const row = yield divideAndConquer(ctx,
|
|
89
|
+
const row = yield divideAndConquer(ctx, {
|
|
90
|
+
instruction: props.instruction,
|
|
91
|
+
operations: props.operations,
|
|
92
|
+
typeNames: it,
|
|
93
|
+
progress,
|
|
94
|
+
promptCacheKey,
|
|
95
|
+
});
|
|
89
96
|
return row;
|
|
90
97
|
})))) {
|
|
91
|
-
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.schemas(operations, x, y);
|
|
98
|
+
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.schemas(props.operations, x, y);
|
|
92
99
|
Object.assign(x, y);
|
|
93
100
|
}
|
|
94
101
|
Object.assign(x, presets);
|
|
95
|
-
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.schemas(operations, x);
|
|
102
|
+
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.schemas(props.operations, x);
|
|
96
103
|
JsonSchemaFactory_1.JsonSchemaFactory.authorize(x);
|
|
97
104
|
return x;
|
|
98
105
|
});
|
|
99
106
|
}
|
|
100
|
-
function divideAndConquer(ctx,
|
|
107
|
+
function divideAndConquer(ctx, props) {
|
|
101
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
-
const remained = new Set(typeNames);
|
|
109
|
+
const remained = new Set(props.typeNames);
|
|
103
110
|
const schemas = {};
|
|
104
111
|
for (let i = 0; i < ctx.retry; ++i) {
|
|
105
112
|
if (remained.size === 0)
|
|
106
113
|
break;
|
|
107
|
-
const newbie = yield process(ctx,
|
|
114
|
+
const newbie = yield process(ctx, {
|
|
115
|
+
instruction: props.instruction,
|
|
116
|
+
operations: props.operations,
|
|
117
|
+
promptCacheKey: props.promptCacheKey,
|
|
118
|
+
progress: props.progress,
|
|
119
|
+
oldbie: schemas,
|
|
120
|
+
remained,
|
|
121
|
+
});
|
|
108
122
|
for (const key of Object.keys(newbie)) {
|
|
109
123
|
schemas[key] = newbie[key];
|
|
110
124
|
remained.delete(key);
|
|
@@ -113,16 +127,20 @@ function divideAndConquer(ctx, operations, typeNames, progress, promptCacheKey)
|
|
|
113
127
|
return schemas;
|
|
114
128
|
});
|
|
115
129
|
}
|
|
116
|
-
function process(ctx,
|
|
130
|
+
function process(ctx, props) {
|
|
117
131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
132
|
var _a, _b, _c;
|
|
119
|
-
const already = Object.keys(oldbie);
|
|
133
|
+
const already = Object.keys(props.oldbie);
|
|
120
134
|
const pointer = {
|
|
121
135
|
value: null,
|
|
122
136
|
};
|
|
123
137
|
const { tokenUsage } = yield ctx.conversate({
|
|
124
138
|
source: "interfaceSchemas",
|
|
125
|
-
histories: (0, transformInterfaceSchemaHistories_1.transformInterfaceSchemaHistories)(
|
|
139
|
+
histories: (0, transformInterfaceSchemaHistories_1.transformInterfaceSchemaHistories)({
|
|
140
|
+
state: ctx.state(),
|
|
141
|
+
operations: props.operations,
|
|
142
|
+
instruction: props.instruction,
|
|
143
|
+
}),
|
|
126
144
|
controller: createController({
|
|
127
145
|
model: ctx.model,
|
|
128
146
|
build: (next) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -133,7 +151,7 @@ function process(ctx, operations, oldbie, remained, progress, promptCacheKey) {
|
|
|
133
151
|
pointer,
|
|
134
152
|
}),
|
|
135
153
|
enforceFunctionCall: true,
|
|
136
|
-
promptCacheKey,
|
|
154
|
+
promptCacheKey: props.promptCacheKey,
|
|
137
155
|
message: utils_1.StringUtil.trim `
|
|
138
156
|
Make type components please.
|
|
139
157
|
|
|
@@ -142,7 +160,7 @@ function process(ctx, operations, oldbie, remained, progress, promptCacheKey) {
|
|
|
142
160
|
types are required during making the components, please make them
|
|
143
161
|
too.
|
|
144
162
|
|
|
145
|
-
${Array.from(remained)
|
|
163
|
+
${Array.from(props.remained)
|
|
146
164
|
.map((k) => ` - \`${k}\``)
|
|
147
165
|
.join("\n")}${already.length !== 0
|
|
148
166
|
? utils_1.StringUtil.trim `
|
|
@@ -165,8 +183,8 @@ function process(ctx, operations, oldbie, remained, progress, promptCacheKey) {
|
|
|
165
183
|
id: (0, uuid_1.v7)(),
|
|
166
184
|
schemas,
|
|
167
185
|
tokenUsage,
|
|
168
|
-
completed: (progress.completed += Object.keys(schemas).length),
|
|
169
|
-
total: (progress.total += Object.keys(schemas).filter((k) => remained.has(k) === false).length),
|
|
186
|
+
completed: (props.progress.completed += Object.keys(schemas).length),
|
|
187
|
+
total: (props.progress.total += Object.keys(schemas).filter((k) => props.remained.has(k) === false).length),
|
|
170
188
|
step: (_c = (_b = ctx.state().prisma) === null || _b === void 0 ? void 0 : _b.step) !== null && _c !== void 0 ? _c : 0,
|
|
171
189
|
created_at: new Date().toISOString(),
|
|
172
190
|
});
|
|
@@ -176,8 +194,8 @@ function process(ctx, operations, oldbie, remained, progress, promptCacheKey) {
|
|
|
176
194
|
function createController(props) {
|
|
177
195
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
178
196
|
const validate = (next) => {
|
|
179
|
-
JsonSchemaFactory_1.JsonSchemaFactory.
|
|
180
|
-
const result = (() => { const _io0 = input => "
|
|
197
|
+
JsonSchemaFactory_1.JsonSchemaFactory.fixPage("schemas", next);
|
|
198
|
+
const result = (() => { const _io0 = input => "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && _io1(input.schemas); const _io1 = input => Object.keys(input).every(key => {
|
|
181
199
|
const value = input[key];
|
|
182
200
|
if (undefined === value)
|
|
183
201
|
return true;
|
|
@@ -187,7 +205,7 @@ function createController(props) {
|
|
|
187
205
|
if (undefined === value)
|
|
188
206
|
return true;
|
|
189
207
|
return "string" === typeof value;
|
|
190
|
-
}); const _io20 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(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 && "string" === typeof input.description; const _io21 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io22 = 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 && _io18(input.discriminator)) && "string" === typeof input.description; const _io23 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
208
|
+
}); const _io20 = 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) && _io1(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 && "string" === typeof input.description; const _io21 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io22 = 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 && _io18(input.discriminator)) && "string" === typeof input.description; const _io23 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
191
209
|
if ("number" === input.type)
|
|
192
210
|
return _io9(input);
|
|
193
211
|
else if ("integer" === input.type)
|
|
@@ -254,11 +272,7 @@ function createController(props) {
|
|
|
254
272
|
return _io16(input);
|
|
255
273
|
else
|
|
256
274
|
return false;
|
|
257
|
-
})(); const _vo0 = (input, _path, _exceptionable = true) => ["
|
|
258
|
-
path: _path + ".draft",
|
|
259
|
-
expected: "string",
|
|
260
|
-
value: input.draft
|
|
261
|
-
}), ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || _report(_exceptionable, {
|
|
275
|
+
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || _report(_exceptionable, {
|
|
262
276
|
path: _path + ".schemas",
|
|
263
277
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
264
278
|
value: input.schemas
|
|
@@ -672,7 +686,11 @@ function createController(props) {
|
|
|
672
686
|
expected: "string",
|
|
673
687
|
value: value
|
|
674
688
|
});
|
|
675
|
-
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [
|
|
689
|
+
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
690
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
691
|
+
expected: "(null | string | undefined)",
|
|
692
|
+
value: input["x-autobe-prisma-schema"]
|
|
693
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
676
694
|
path: _path + ".properties",
|
|
677
695
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
678
696
|
value: input.properties
|
|
@@ -910,16 +928,11 @@ const collection = {
|
|
|
910
928
|
description: " Properties containing components to generate.\n\n------------------------------\n\nCurrent Type: {@link IAutoBeInterfaceSchemaApplication.IProps}\n\n### Description of {@link schemas} property:\n\n> Complete set of schema components for the OpenAPI specification.\n> \n> This property contains comprehensive type definitions for all entities in\n> the system. It is the central repository of all named schema types that\n> will be used throughout the API specification.\n> \n> DO: Define all object types as named types in the components.schemas\n> section. DO NOT: Use inline anonymous object definitions.\n> \n> This components object includes:\n> \n> - Main entity types (IEntityName)\n> - Operation-specific variants (.ICreate, .IUpdate, .ISummary, etc.)\n> - Container types (IPage<T> for pagination)\n> - Enumeration types\n> \n> DO: Include detailed descriptions that reference the original Prisma\n> schema comments and thoroughly document each property. DO: Use a $ref to\n> a named type in the components.schemas section for every property that\n> references an object.\n> \n> This applies to all objects in request bodies, response bodies, and\n> properties that are objects or arrays of objects.\n> \n> Example structure:\n> \n> ```typescript\n> {\n> schemas: {\n> IUser: {\n> type: \"object\",\n> properties: {\n> id: { type: \"string\", format: \"uuid\" },\n> email: { type: \"string\", format: \"email\" },\n> profile: { \"$ref\": \"#/components/schemas/IUserProfile\" }\n> },\n> required: [\"id\", \"email\"],\n> description: \"User entity representing system account holders...\"\n> },\n> \"IUser.ICreate\": { ... },\n> // Additional schemas\n> }\n> }\n> ```",
|
|
911
929
|
type: "object",
|
|
912
930
|
properties: {
|
|
913
|
-
draft: {
|
|
914
|
-
description: "TypeScript draft code for schema definitions.\n\nThis property contains TypeScript interface definitions that serve as a\npreliminary draft before generating the final JSON schema components.\nThe draft allows for initial design and validation of the schema structure\nusing TypeScript's type system before converting to OpenAPI/JSON Schema format.\n\nThe draft typically includes:\n- Entity interfaces matching the Prisma models\n- Operation-specific variants (ICreate, IUpdate, etc.)\n- Utility types and enumerations\n- Type relationships and constraints\n\nThis TypeScript draft serves as the foundation for the subsequent schema\ngeneration, ensuring type safety and consistency. The final schemas in the\n`schemas` property should be derived from and validated against this draft.\n\nExample draft structure:\n```typescript\ninterface IUser {\n id: string;\n email: string;\n profile: IUserProfile;\n}\n\nnamespace IUser {\n interface ICreate extends Omit<IUser, \"id\"> {}\n interface IUpdate extends Partial<ICreate> {}\n}\n```",
|
|
915
|
-
type: "string"
|
|
916
|
-
},
|
|
917
931
|
schemas: {
|
|
918
932
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
919
933
|
}
|
|
920
934
|
},
|
|
921
935
|
required: [
|
|
922
|
-
"draft",
|
|
923
936
|
"schemas"
|
|
924
937
|
],
|
|
925
938
|
additionalProperties: false,
|
|
@@ -1565,6 +1578,17 @@ const collection = {
|
|
|
1565
1578
|
description: "Object type info.\n\n### Description of {@link properties} property:\n\n> Properties of the object.\n> \n> The `properties` means a list of key-value pairs of the object's\n> regular properties. The key is the name of the regular property, and\n> the value is the type schema info.\n> \n> IMPORTANT: Each property in this object MUST have a detailed\n> description that references and aligns with the description comments\n> from the corresponding Prisma DB schema column.\n> \n> If you need additional properties that is represented by dynamic key,\n> you can use the {@link additionalProperties} instead.",
|
|
1566
1579
|
type: "object",
|
|
1567
1580
|
properties: {
|
|
1581
|
+
"x-autobe-prisma-schema": {
|
|
1582
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
1583
|
+
anyOf: [
|
|
1584
|
+
{
|
|
1585
|
+
type: "null"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
type: "string"
|
|
1589
|
+
}
|
|
1590
|
+
]
|
|
1591
|
+
},
|
|
1568
1592
|
properties: {
|
|
1569
1593
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
1570
1594
|
},
|
|
@@ -1729,7 +1753,7 @@ const collection = {
|
|
|
1729
1753
|
}
|
|
1730
1754
|
},
|
|
1731
1755
|
description: "Generate OpenAPI components containing named schema types.\n\nThis method receives a complete set of schema components and integrates\nthem into the final OpenAPI specification. It processes all entity schemas,\ntheir variants, and related type definitions to ensure a comprehensive and\nconsistent API design.\n\nThe provided components should include schemas for all entities identified\nin the previous phases of API path/method definition and operation\ncreation. This ensures that the final OpenAPI document has complete type\ncoverage for all operations.\n\nDO: Follow established naming conventions (IEntityName,\nIEntityName.ICreate, etc.) DO: Document thoroughly with descriptions that\nreference the original Prisma schema comments.",
|
|
1732
|
-
validate: (() => { const _io0 = input => "
|
|
1756
|
+
validate: (() => { const _io0 = input => "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && _io1(input.schemas); const _io1 = input => Object.keys(input).every(key => {
|
|
1733
1757
|
const value = input[key];
|
|
1734
1758
|
if (undefined === value)
|
|
1735
1759
|
return true;
|
|
@@ -1739,7 +1763,7 @@ const collection = {
|
|
|
1739
1763
|
if (undefined === value)
|
|
1740
1764
|
return true;
|
|
1741
1765
|
return "string" === typeof value;
|
|
1742
|
-
}); const _io20 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(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 && "string" === typeof input.description; const _io21 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io22 = 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 && _io18(input.discriminator)) && "string" === typeof input.description; const _io23 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
1766
|
+
}); const _io20 = 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) && _io1(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 && "string" === typeof input.description; const _io21 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io22 = 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 && _io18(input.discriminator)) && "string" === typeof input.description; const _io23 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
1743
1767
|
if ("number" === input.type)
|
|
1744
1768
|
return _io9(input);
|
|
1745
1769
|
else if ("integer" === input.type)
|
|
@@ -1806,11 +1830,7 @@ const collection = {
|
|
|
1806
1830
|
return _io16(input);
|
|
1807
1831
|
else
|
|
1808
1832
|
return false;
|
|
1809
|
-
})(); const _vo0 = (input, _path, _exceptionable = true) => ["
|
|
1810
|
-
path: _path + ".draft",
|
|
1811
|
-
expected: "string",
|
|
1812
|
-
value: input.draft
|
|
1813
|
-
}), ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || _report(_exceptionable, {
|
|
1833
|
+
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || _report(_exceptionable, {
|
|
1814
1834
|
path: _path + ".schemas",
|
|
1815
1835
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
1816
1836
|
value: input.schemas
|
|
@@ -2224,7 +2244,11 @@ const collection = {
|
|
|
2224
2244
|
expected: "string",
|
|
2225
2245
|
value: value
|
|
2226
2246
|
});
|
|
2227
|
-
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [
|
|
2247
|
+
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
2248
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
2249
|
+
expected: "(null | string | undefined)",
|
|
2250
|
+
value: input["x-autobe-prisma-schema"]
|
|
2251
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
2228
2252
|
path: _path + ".properties",
|
|
2229
2253
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
2230
2254
|
value: input.properties
|
|
@@ -2439,17 +2463,12 @@ const collection = {
|
|
|
2439
2463
|
description: " Properties containing components to generate.\n\n------------------------------\n\nCurrent Type: {@link IAutoBeInterfaceSchemaApplication.IProps}",
|
|
2440
2464
|
type: "object",
|
|
2441
2465
|
properties: {
|
|
2442
|
-
draft: {
|
|
2443
|
-
description: "TypeScript draft code for schema definitions.\n\nThis property contains TypeScript interface definitions that serve as a\npreliminary draft before generating the final JSON schema components.\nThe draft allows for initial design and validation of the schema structure\nusing TypeScript's type system before converting to OpenAPI/JSON Schema format.\n\nThe draft typically includes:\n- Entity interfaces matching the Prisma models\n- Operation-specific variants (ICreate, IUpdate, etc.)\n- Utility types and enumerations\n- Type relationships and constraints\n\nThis TypeScript draft serves as the foundation for the subsequent schema\ngeneration, ensuring type safety and consistency. The final schemas in the\n`schemas` property should be derived from and validated against this draft.\n\nExample draft structure:\n```typescript\ninterface IUser {\n id: string;\n email: string;\n profile: IUserProfile;\n}\n\nnamespace IUser {\n interface ICreate extends Omit<IUser, \"id\"> {}\n interface IUpdate extends Partial<ICreate> {}\n}\n```",
|
|
2444
|
-
type: "string"
|
|
2445
|
-
},
|
|
2446
2466
|
schemas: {
|
|
2447
2467
|
description: "Complete set of schema components for the OpenAPI specification.\n\nThis property contains comprehensive type definitions for all entities in\nthe system. It is the central repository of all named schema types that\nwill be used throughout the API specification.\n\nDO: Define all object types as named types in the components.schemas\nsection. DO NOT: Use inline anonymous object definitions.\n\nThis components object includes:\n\n- Main entity types (IEntityName)\n- Operation-specific variants (.ICreate, .IUpdate, .ISummary, etc.)\n- Container types (IPage<T> for pagination)\n- Enumeration types\n\nDO: Include detailed descriptions that reference the original Prisma\nschema comments and thoroughly document each property. DO: Use a $ref to\na named type in the components.schemas section for every property that\nreferences an object.\n\nThis applies to all objects in request bodies, response bodies, and\nproperties that are objects or arrays of objects.\n\nExample structure:\n\n```typescript\n{\n schemas: {\n IUser: {\n type: \"object\",\n properties: {\n id: { type: \"string\", format: \"uuid\" },\n email: { type: \"string\", format: \"email\" },\n profile: { \"$ref\": \"#/components/schemas/IUserProfile\" }\n },\n required: [\"id\", \"email\"],\n description: \"User entity representing system account holders...\"\n },\n \"IUser.ICreate\": { ... },\n // Additional schemas\n }\n}\n```",
|
|
2448
2468
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
2449
2469
|
}
|
|
2450
2470
|
},
|
|
2451
2471
|
required: [
|
|
2452
|
-
"draft",
|
|
2453
2472
|
"schemas"
|
|
2454
2473
|
],
|
|
2455
2474
|
additionalProperties: false,
|
|
@@ -3073,6 +3092,17 @@ const collection = {
|
|
|
3073
3092
|
description: "Object type info.",
|
|
3074
3093
|
type: "object",
|
|
3075
3094
|
properties: {
|
|
3095
|
+
"x-autobe-prisma-schema": {
|
|
3096
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
3097
|
+
oneOf: [
|
|
3098
|
+
{
|
|
3099
|
+
type: "null"
|
|
3100
|
+
},
|
|
3101
|
+
{
|
|
3102
|
+
type: "string"
|
|
3103
|
+
}
|
|
3104
|
+
]
|
|
3105
|
+
},
|
|
3076
3106
|
properties: {
|
|
3077
3107
|
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's\nregular properties. The key is the name of the regular property, and\nthe value is the type schema info.\n\nIMPORTANT: Each property in this object MUST have a detailed\ndescription that references and aligns with the description comments\nfrom the corresponding Prisma DB schema column.\n\nIf you need additional properties that is represented by dynamic key,\nyou can use the {@link additionalProperties} instead.",
|
|
3078
3108
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -3230,7 +3260,7 @@ const collection = {
|
|
|
3230
3260
|
}
|
|
3231
3261
|
},
|
|
3232
3262
|
description: "Generate OpenAPI components containing named schema types.\n\nThis method receives a complete set of schema components and integrates\nthem into the final OpenAPI specification. It processes all entity schemas,\ntheir variants, and related type definitions to ensure a comprehensive and\nconsistent API design.\n\nThe provided components should include schemas for all entities identified\nin the previous phases of API path/method definition and operation\ncreation. This ensures that the final OpenAPI document has complete type\ncoverage for all operations.\n\nDO: Follow established naming conventions (IEntityName,\nIEntityName.ICreate, etc.) DO: Document thoroughly with descriptions that\nreference the original Prisma schema comments.",
|
|
3233
|
-
validate: (() => { const _io0 = input => "
|
|
3263
|
+
validate: (() => { const _io0 = input => "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && _io1(input.schemas); const _io1 = input => Object.keys(input).every(key => {
|
|
3234
3264
|
const value = input[key];
|
|
3235
3265
|
if (undefined === value)
|
|
3236
3266
|
return true;
|
|
@@ -3240,7 +3270,7 @@ const collection = {
|
|
|
3240
3270
|
if (undefined === value)
|
|
3241
3271
|
return true;
|
|
3242
3272
|
return "string" === typeof value;
|
|
3243
|
-
}); const _io20 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(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 && "string" === typeof input.description; const _io21 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io22 = 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 && _io18(input.discriminator)) && "string" === typeof input.description; const _io23 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
3273
|
+
}); const _io20 = 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) && _io1(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 && "string" === typeof input.description; const _io21 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io22 = 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 && _io18(input.discriminator)) && "string" === typeof input.description; const _io23 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
3244
3274
|
if ("number" === input.type)
|
|
3245
3275
|
return _io9(input);
|
|
3246
3276
|
else if ("integer" === input.type)
|
|
@@ -3307,11 +3337,7 @@ const collection = {
|
|
|
3307
3337
|
return _io16(input);
|
|
3308
3338
|
else
|
|
3309
3339
|
return false;
|
|
3310
|
-
})(); const _vo0 = (input, _path, _exceptionable = true) => ["
|
|
3311
|
-
path: _path + ".draft",
|
|
3312
|
-
expected: "string",
|
|
3313
|
-
value: input.draft
|
|
3314
|
-
}), ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || _report(_exceptionable, {
|
|
3340
|
+
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || _report(_exceptionable, {
|
|
3315
3341
|
path: _path + ".schemas",
|
|
3316
3342
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
3317
3343
|
value: input.schemas
|
|
@@ -3725,7 +3751,11 @@ const collection = {
|
|
|
3725
3751
|
expected: "string",
|
|
3726
3752
|
value: value
|
|
3727
3753
|
});
|
|
3728
|
-
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [
|
|
3754
|
+
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
3755
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
3756
|
+
expected: "(null | string | undefined)",
|
|
3757
|
+
value: input["x-autobe-prisma-schema"]
|
|
3758
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
3729
3759
|
path: _path + ".properties",
|
|
3730
3760
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
3731
3761
|
value: input.properties
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateInterfaceSchemas.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,
|
|
1
|
+
{"version":3,"file":"orchestrateInterfaceSchemas.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,kEAsDC;;;;AAzED,yCAA2C;AAE3C,2FAAwF;AAExF,kDAA0B;AAC1B,+BAA0B;AAI1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,qGAAkG;AAElG,iEAA8D;AAC9D,mFAAgF;AAChF,qEAAkE;AAClE,2FAAwF;AAExF,SAAsB,2BAA2B,CAG/C,GAAyB,EACzB,KAIC;;;QAED,2BAA2B;QAC3B,uDAA0B,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAExD,oBAAoB;QACpB,MAAM,SAAS,GAAgB,IAAI,GAAG,EAAE,CAAC;QACzC,KAAK,MAAM,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;YAClC,IAAI,EAAE,CAAC,WAAW,KAAK,IAAI;gBAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YACpE,IAAI,EAAE,CAAC,YAAY,KAAK,IAAI;gBAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACxE,CAAC;QACD,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACqC;YACjE,QAAQ,EAAE;gBACR,cAAc,EAAE,QAAQ;aACzB;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -142,7 +142,7 @@ function step(ctx, operations, schemas, progress, promptCacheKey) {
|
|
|
142
142
|
function createController(props) {
|
|
143
143
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
144
144
|
const validate = (next) => {
|
|
145
|
-
JsonSchemaFactory_1.JsonSchemaFactory.
|
|
145
|
+
JsonSchemaFactory_1.JsonSchemaFactory.fixPage("content", next);
|
|
146
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 => {
|
|
147
147
|
const value = input[key];
|
|
148
148
|
if (undefined === value)
|
|
@@ -153,7 +153,7 @@ function createController(props) {
|
|
|
153
153
|
if (undefined === value)
|
|
154
154
|
return true;
|
|
155
155
|
return "string" === typeof value;
|
|
156
|
-
}); const _io21 = input => "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 && "string" === typeof input.description; const _io22 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io23 = 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)) && "string" === typeof input.description; const _io24 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
156
|
+
}); const _io21 = 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 && "string" === typeof input.description; const _io22 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io23 = 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)) && "string" === typeof input.description; const _io24 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
157
157
|
if ("number" === input.type)
|
|
158
158
|
return _io10(input);
|
|
159
159
|
else if ("integer" === input.type)
|
|
@@ -650,7 +650,11 @@ function createController(props) {
|
|
|
650
650
|
expected: "string",
|
|
651
651
|
value: value
|
|
652
652
|
});
|
|
653
|
-
}).every(flag => flag)].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [
|
|
653
|
+
}).every(flag => flag)].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
654
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
655
|
+
expected: "(null | string | undefined)",
|
|
656
|
+
value: input["x-autobe-prisma-schema"]
|
|
657
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
654
658
|
path: _path + ".properties",
|
|
655
659
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
656
660
|
value: input.properties
|
|
@@ -1558,6 +1562,17 @@ const collection = {
|
|
|
1558
1562
|
description: "Object type info.\n\n### Description of {@link properties} property:\n\n> Properties of the object.\n> \n> The `properties` means a list of key-value pairs of the object's\n> regular properties. The key is the name of the regular property, and\n> the value is the type schema info.\n> \n> IMPORTANT: Each property in this object MUST have a detailed\n> description that references and aligns with the description comments\n> from the corresponding Prisma DB schema column.\n> \n> If you need additional properties that is represented by dynamic key,\n> you can use the {@link additionalProperties} instead.",
|
|
1559
1563
|
type: "object",
|
|
1560
1564
|
properties: {
|
|
1565
|
+
"x-autobe-prisma-schema": {
|
|
1566
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
1567
|
+
anyOf: [
|
|
1568
|
+
{
|
|
1569
|
+
type: "null"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
type: "string"
|
|
1573
|
+
}
|
|
1574
|
+
]
|
|
1575
|
+
},
|
|
1561
1576
|
properties: {
|
|
1562
1577
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
1563
1578
|
},
|
|
@@ -1732,7 +1747,7 @@ const collection = {
|
|
|
1732
1747
|
if (undefined === value)
|
|
1733
1748
|
return true;
|
|
1734
1749
|
return "string" === typeof value;
|
|
1735
|
-
}); const _io21 = input => "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 && "string" === typeof input.description; const _io22 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io23 = 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)) && "string" === typeof input.description; const _io24 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
1750
|
+
}); const _io21 = 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 && "string" === typeof input.description; const _io22 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io23 = 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)) && "string" === typeof input.description; const _io24 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
1736
1751
|
if ("number" === input.type)
|
|
1737
1752
|
return _io10(input);
|
|
1738
1753
|
else if ("integer" === input.type)
|
|
@@ -2229,7 +2244,11 @@ const collection = {
|
|
|
2229
2244
|
expected: "string",
|
|
2230
2245
|
value: value
|
|
2231
2246
|
});
|
|
2232
|
-
}).every(flag => flag)].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [
|
|
2247
|
+
}).every(flag => flag)].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
2248
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
2249
|
+
expected: "(null | string | undefined)",
|
|
2250
|
+
value: input["x-autobe-prisma-schema"]
|
|
2251
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
2233
2252
|
path: _path + ".properties",
|
|
2234
2253
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
2235
2254
|
value: input.properties
|
|
@@ -3094,6 +3113,17 @@ const collection = {
|
|
|
3094
3113
|
description: "Object type info.",
|
|
3095
3114
|
type: "object",
|
|
3096
3115
|
properties: {
|
|
3116
|
+
"x-autobe-prisma-schema": {
|
|
3117
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
3118
|
+
oneOf: [
|
|
3119
|
+
{
|
|
3120
|
+
type: "null"
|
|
3121
|
+
},
|
|
3122
|
+
{
|
|
3123
|
+
type: "string"
|
|
3124
|
+
}
|
|
3125
|
+
]
|
|
3126
|
+
},
|
|
3097
3127
|
properties: {
|
|
3098
3128
|
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's\nregular properties. The key is the name of the regular property, and\nthe value is the type schema info.\n\nIMPORTANT: Each property in this object MUST have a detailed\ndescription that references and aligns with the description comments\nfrom the corresponding Prisma DB schema column.\n\nIf you need additional properties that is represented by dynamic key,\nyou can use the {@link additionalProperties} instead.",
|
|
3099
3129
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -3261,7 +3291,7 @@ const collection = {
|
|
|
3261
3291
|
if (undefined === value)
|
|
3262
3292
|
return true;
|
|
3263
3293
|
return "string" === typeof value;
|
|
3264
|
-
}); const _io21 = input => "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 && "string" === typeof input.description; const _io22 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io23 = 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)) && "string" === typeof input.description; const _io24 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
3294
|
+
}); const _io21 = 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 && "string" === typeof input.description; const _io22 = input => "string" === typeof input.$ref && "string" === typeof input.description; const _io23 = 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)) && "string" === typeof input.description; const _io24 = input => "null" === input.type && "string" === typeof input.description; const _iu0 = input => (() => {
|
|
3265
3295
|
if ("number" === input.type)
|
|
3266
3296
|
return _io10(input);
|
|
3267
3297
|
else if ("integer" === input.type)
|
|
@@ -3758,7 +3788,11 @@ const collection = {
|
|
|
3758
3788
|
expected: "string",
|
|
3759
3789
|
value: value
|
|
3760
3790
|
});
|
|
3761
|
-
}).every(flag => flag)].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [
|
|
3791
|
+
}).every(flag => flag)].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
3792
|
+
path: _path + "[\"x-autobe-prisma-schema\"]",
|
|
3793
|
+
expected: "(null | string | undefined)",
|
|
3794
|
+
value: input["x-autobe-prisma-schema"]
|
|
3795
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
3762
3796
|
path: _path + ".properties",
|
|
3763
3797
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
3764
3798
|
value: input.properties
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateInterfaceSchemasReview.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,8EAkCC;AAaD,oBA0DC;;;;AA1HD,2FAAwF;AAExF,kDAA0B;AAC1B,+BAA0B;AAI1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,mHAAgH;AAEhH,iEAA8D;AAC9D,mFAAgF;AAChF,qEAAkE;AAClE,2FAAwF;AAExF,SAAsB,iCAAiC;yDAGrD,GAAyB,EACzB,UAAsC,EACtC,OAA6D,EAC7D,0DAA0D;QAE1D,MAAM,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;YACtD,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;QAC3B,CAAC,CAAC,CAAC;QAEH,MAAM,MAAM,GACV,IAAA,yBAAW,EAAC;YACV,KAAK,EAAE,CAAC;YACR,QAAQ;SACT,CAAC,CAAC;QACL,MAAM,QAAQ,GAAc;YAC1B,KAAK,EAAE,MAAM,CAAC,MAAM;YACpB,SAAS,EAAE,CAAC;SACb,CAAC;QAEF,MAAM,CAAC,GAAyD,EAAE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AC;IAE/B,MAAM,QAAQ,GAAG,CACf,IAAa,EACiD,EAAE;QAChE,qCAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"orchestrateInterfaceSchemasReview.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,8EAkCC;AAaD,oBA0DC;;;;AA1HD,2FAAwF;AAExF,kDAA0B;AAC1B,+BAA0B;AAI1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,mHAAgH;AAEhH,iEAA8D;AAC9D,mFAAgF;AAChF,qEAAkE;AAClE,2FAAwF;AAExF,SAAsB,iCAAiC;yDAGrD,GAAyB,EACzB,UAAsC,EACtC,OAA6D,EAC7D,0DAA0D;QAE1D,MAAM,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;YACtD,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;QAC3B,CAAC,CAAC,CAAC;QAEH,MAAM,MAAM,GACV,IAAA,yBAAW,EAAC;YACV,KAAK,EAAE,CAAC;YACR,QAAQ;SACT,CAAC,CAAC;QACL,MAAM,QAAQ,GAAc;YAC1B,KAAK,EAAE,MAAM,CAAC,MAAM;YACpB,SAAS,EAAE,CAAC;SACb,CAAC;QAEF,MAAM,CAAC,GAAyD,EAAE,CAAC;QACnE,KAAK,MAAM,CAAC,IAAI,MAAM,IAAA,uCAAkB,EACtC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAO,cAAc,EAAE,EAAE;YAC1C,MAAM,GAAG,GACP,MAAM,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;YACxE,OAAO,GAAG,C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