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