@autobe/agent 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.d.ts +2 -1
- package/lib/AutoBeAgent.js +27 -7
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +2 -4
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +11 -11
- package/lib/context/AutoBeContext.d.ts +4 -1
- package/lib/context/AutoBeTokenUsage.d.ts +1 -1
- package/lib/context/AutoBeTokenUsage.js.map +1 -1
- package/lib/context/assertSchemaModel.d.ts +1 -1
- package/lib/context/assertSchemaModel.js +4 -7
- package/lib/context/assertSchemaModel.js.map +1 -1
- package/lib/factory/AutoBeFunctionCallingMetricFactory.d.ts +7 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js +35 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js.map +1 -0
- package/lib/factory/AutoBeProcessAggregateFactory.d.ts +13 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js +100 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js.map +1 -0
- package/lib/factory/createAutoBeContext.d.ts +2 -1
- package/lib/factory/createAutoBeContext.js +78 -27
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/index.mjs +24065 -12997
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +166 -87
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +639 -322
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +146 -76
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +17 -52
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +25 -22
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +7 -23
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +2 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +168 -4
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/{factory/createAutoBeApplication.d.ts → orchestrate/facade/createAutoBeFacadeController.d.ts} +2 -2
- package/lib/orchestrate/facade/createAutoBeFacadeController.js +1308 -0
- package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplication.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationProps.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationResult.js.map +1 -0
- package/lib/orchestrate/facade/{transformFacadeStateMessage.d.ts → structures/transformFacadeStateMessage.d.ts} +1 -1
- package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +3 -2
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +15 -8
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +874 -49
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +1858 -67
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +251 -133
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -6
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +257 -135
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +341 -227
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +761 -49
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +911 -50
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +207 -4
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +109 -2
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +5 -3
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1904 -77
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +1858 -67
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +23 -23
- package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +1 -0
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +391 -197
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1168 -591
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +1186 -600
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +6 -3
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +2 -2
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.d.ts +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +2 -1
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +362 -180
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +399 -199
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +133 -4
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +171 -7
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +132 -3
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +0 -85
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +2 -1
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +134 -3
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +169 -4
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +257 -4
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +283 -4
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +141 -3
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/utils/TokenUsageComputer.d.ts +5 -0
- package/lib/utils/TokenUsageComputer.js +29 -0
- package/lib/utils/TokenUsageComputer.js.map +1 -0
- package/package.json +10 -10
- package/src/AutoBeAgent.ts +40 -6
- package/src/AutoBeMockAgent.ts +2 -4
- package/src/constants/AutoBeSystemPromptConstant.ts +11 -11
- package/src/context/AutoBeContext.ts +8 -0
- package/src/context/AutoBeTokenUsage.ts +1 -1
- package/src/context/assertSchemaModel.ts +5 -8
- package/src/factory/AutoBeFunctionCallingMetricFactory.ts +44 -0
- package/src/factory/AutoBeProcessAggregateFactory.ts +141 -0
- package/src/factory/createAutoBeContext.ts +96 -36
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +1 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +9 -10
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +15 -10
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +10 -11
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +19 -54
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +25 -22
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +8 -24
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +20 -3
- package/src/orchestrate/facade/createAutoBeFacadeController.ts +136 -0
- package/src/orchestrate/facade/{transformFacadeStateMessage.ts → structures/transformFacadeStateMessage.ts} +2 -2
- package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +1 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +17 -6
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +16 -11
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +16 -13
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +19 -15
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +16 -2
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +11 -2
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +24 -16
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +13 -2
- package/src/orchestrate/prisma/orchestratePrisma.ts +2 -1
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +15 -10
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +9 -10
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +9 -11
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +2 -1
- package/src/orchestrate/realize/orchestrateRealize.ts +3 -2
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +15 -10
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +15 -10
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +14 -3
- package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +21 -6
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +13 -2
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +0 -90
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +5 -1
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +1 -1
- package/src/orchestrate/test/orchestrateTest.ts +3 -2
- package/src/orchestrate/test/orchestrateTestCorrect.ts +14 -2
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +21 -3
- package/src/orchestrate/test/orchestrateTestScenario.ts +13 -2
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +13 -2
- package/src/orchestrate/test/orchestrateTestWrite.ts +13 -2
- package/src/utils/TokenUsageComputer.ts +35 -0
- package/lib/context/IAutoBeFacadeApplication.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationProps.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationResult.js.map +0 -1
- package/lib/factory/createAutoBeApplication.js +0 -942
- package/lib/factory/createAutoBeApplication.js.map +0 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
- package/src/factory/createAutoBeApplication.ts +0 -123
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.js +0 -0
- /package/lib/orchestrate/facade/{transformFacadeStateMessage.js → structures/transformFacadeStateMessage.js} +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.ts +0 -0
|
@@ -81,7 +81,7 @@ function orchestrateRealizeAuthorizationCorrect(ctx_1, authorization_1, prismaCl
|
|
|
81
81
|
const pointer = {
|
|
82
82
|
value: null,
|
|
83
83
|
};
|
|
84
|
-
const { tokenUsage } = yield ctx.conversate({
|
|
84
|
+
const { metric, tokenUsage } = yield ctx.conversate({
|
|
85
85
|
source: "realizeAuthorizationCorrect",
|
|
86
86
|
histories: (0, transformRealizeAuthorizationCorrectHistories_1.transformRealizeAuthorizationCorrectHistories)(ctx, authorization, templateFiles, compiled.diagnostics),
|
|
87
87
|
controller: createController({
|
|
@@ -100,13 +100,18 @@ function orchestrateRealizeAuthorizationCorrect(ctx_1, authorization_1, prismaCl
|
|
|
100
100
|
location: AuthorizationFileSystem_1.AuthorizationFileSystem.payloadPath(pointer.value.payload.name),
|
|
101
101
|
content: yield compiler.typescript.beautify(pointer.value.payload.content),
|
|
102
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,
|
|
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 }));
|
|
104
105
|
return yield orchestrateRealizeAuthorizationCorrect(ctx, result, prismaClients, templateFiles, life - 1);
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
108
|
function createController(props) {
|
|
108
109
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
109
|
-
const application = collection[props.model
|
|
110
|
+
const application = collection[props.model === "chatgpt"
|
|
111
|
+
? "chatgpt"
|
|
112
|
+
: props.model === "gemini"
|
|
113
|
+
? "gemini"
|
|
114
|
+
: "claude"];
|
|
110
115
|
return {
|
|
111
116
|
protocol: "class",
|
|
112
117
|
name: "Correct Authorization",
|
|
@@ -118,218 +123,414 @@ function createController(props) {
|
|
|
118
123
|
},
|
|
119
124
|
};
|
|
120
125
|
}
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
+
}
|
|
149
161
|
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
162
|
+
required: [
|
|
163
|
+
"error_analysis",
|
|
164
|
+
"solution_guidance",
|
|
165
|
+
"provider",
|
|
166
|
+
"decorator",
|
|
167
|
+
"payload"
|
|
168
|
+
],
|
|
169
|
+
additionalProperties: false,
|
|
170
|
+
$defs: {
|
|
171
|
+
"IAutoBeRealizeAuthorizationApplication.IProvider": {
|
|
172
|
+
type: "object",
|
|
173
|
+
properties: {
|
|
174
|
+
name: {
|
|
175
|
+
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]*$",
|
|
176
|
+
type: "string"
|
|
177
|
+
},
|
|
178
|
+
content: {
|
|
179
|
+
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.",
|
|
180
|
+
type: "string"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
required: [
|
|
184
|
+
"name",
|
|
185
|
+
"content"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"IAutoBeRealizeAuthorizationApplication.IDecorator": {
|
|
189
|
+
type: "object",
|
|
190
|
+
properties: {
|
|
191
|
+
name: {
|
|
192
|
+
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]*$",
|
|
193
|
+
type: "string"
|
|
194
|
+
},
|
|
195
|
+
content: {
|
|
196
|
+
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.",
|
|
197
|
+
type: "string"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
required: [
|
|
201
|
+
"name",
|
|
202
|
+
"content"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"IAutoBeRealizeAuthorizationApplication.IPayloadType": {
|
|
206
|
+
type: "object",
|
|
207
|
+
properties: {
|
|
208
|
+
name: {
|
|
209
|
+
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]*$",
|
|
210
|
+
type: "string"
|
|
211
|
+
},
|
|
212
|
+
content: {
|
|
213
|
+
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.",
|
|
214
|
+
type: "string"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
required: [
|
|
218
|
+
"name",
|
|
219
|
+
"content"
|
|
220
|
+
]
|
|
221
|
+
}
|
|
153
222
|
}
|
|
154
223
|
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
224
|
+
description: "Corrects TypeScript compilation errors in authentication components.\n\nThis method analyzes and fixes compilation errors in previously generated\nauthentication provider, decorator, and payload type implementations. It\nperforms systematic error diagnosis and generates corrected versions of\nall three components while maintaining their interconnected functionality.\n\nThe correction process includes:\n- TypeScript error analysis and categorization by component\n- Identification of type mismatches, import issues, and syntax errors\n- Clear solution guidance for each identified problem\n- Regeneration of all components with fixes applied\n\nThe corrected components maintain the same naming conventions and\narchitectural patterns as the original generation while resolving all\ncompilation issues.",
|
|
225
|
+
validate: (() => { const _io0 = input => "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io1(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.error_analysis || _report(_exceptionable, {
|
|
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"
|
|
344
|
+
},
|
|
345
|
+
provider: {
|
|
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"
|
|
176
352
|
},
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
|
|
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
|
+
}
|
|
181
357
|
},
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
358
|
+
required: [
|
|
359
|
+
"error_analysis",
|
|
360
|
+
"solution_guidance",
|
|
361
|
+
"provider",
|
|
362
|
+
"decorator",
|
|
363
|
+
"payload"
|
|
364
|
+
],
|
|
365
|
+
additionalProperties: false,
|
|
366
|
+
$defs: {
|
|
367
|
+
"IAutoBeRealizeAuthorizationApplication.IProvider": {
|
|
368
|
+
type: "object",
|
|
369
|
+
properties: {
|
|
370
|
+
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
|
+
type: "string",
|
|
373
|
+
pattern: "^[a-z][a-zA-Z0-9]*$"
|
|
374
|
+
},
|
|
375
|
+
content: {
|
|
376
|
+
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.",
|
|
377
|
+
type: "string"
|
|
378
|
+
}
|
|
189
379
|
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
380
|
+
required: [
|
|
381
|
+
"name",
|
|
382
|
+
"content"
|
|
383
|
+
]
|
|
194
384
|
},
|
|
195
|
-
|
|
196
|
-
"
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
385
|
+
"IAutoBeRealizeAuthorizationApplication.IDecorator": {
|
|
386
|
+
type: "object",
|
|
387
|
+
properties: {
|
|
388
|
+
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
|
+
type: "string",
|
|
391
|
+
pattern: "^[A-Z][a-zA-Z0-9]*$"
|
|
392
|
+
},
|
|
393
|
+
content: {
|
|
394
|
+
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.",
|
|
395
|
+
type: "string"
|
|
396
|
+
}
|
|
207
397
|
},
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
398
|
+
required: [
|
|
399
|
+
"name",
|
|
400
|
+
"content"
|
|
401
|
+
]
|
|
212
402
|
},
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
|
|
216
|
-
|
|
403
|
+
"IAutoBeRealizeAuthorizationApplication.IPayloadType": {
|
|
404
|
+
type: "object",
|
|
405
|
+
properties: {
|
|
406
|
+
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
|
+
type: "string",
|
|
409
|
+
pattern: "^[A-Z][a-zA-Z0-9]*$"
|
|
410
|
+
},
|
|
411
|
+
content: {
|
|
412
|
+
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.",
|
|
413
|
+
type: "string"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
required: [
|
|
417
|
+
"name",
|
|
418
|
+
"content"
|
|
419
|
+
]
|
|
420
|
+
}
|
|
217
421
|
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
422
|
+
},
|
|
423
|
+
description: "Corrects TypeScript compilation errors in authentication components.\n\nThis method analyzes and fixes compilation errors in previously generated\nauthentication provider, decorator, and payload type implementations. It\nperforms systematic error diagnosis and generates corrected versions of\nall three components while maintaining their interconnected functionality.\n\nThe correction process includes:\n- TypeScript error analysis and categorization by component\n- Identification of type mismatches, import issues, and syntax errors\n- Clear solution guidance for each identified problem\n- Regeneration of all components with fixes applied\n\nThe corrected components maintain the same naming conventions and\narchitectural patterns as the original generation while resolving all\ncompilation issues.",
|
|
424
|
+
validate: (() => { const _io0 = input => "string" === typeof input.error_analysis && "string" === typeof input.solution_guidance && ("object" === typeof input.provider && null !== input.provider && _io1(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.error_analysis || _report(_exceptionable, {
|
|
425
|
+
path: _path + ".error_analysis",
|
|
426
|
+
expected: "string",
|
|
427
|
+
value: input.error_analysis
|
|
428
|
+
}), "string" === typeof input.solution_guidance || _report(_exceptionable, {
|
|
429
|
+
path: _path + ".solution_guidance",
|
|
430
|
+
expected: "string",
|
|
431
|
+
value: input.solution_guidance
|
|
432
|
+
}), ("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
|
|
433
|
+
path: _path + ".provider",
|
|
434
|
+
expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
|
|
435
|
+
value: input.provider
|
|
436
|
+
})) && _vo1(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
|
|
437
|
+
path: _path + ".provider",
|
|
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
|
+
};
|
|
514
|
+
}
|
|
515
|
+
return {
|
|
516
|
+
success: true,
|
|
309
517
|
data: input
|
|
310
518
|
};
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
]
|
|
319
|
-
};
|
|
320
|
-
const collection = {
|
|
321
|
-
chatgpt: {
|
|
322
|
-
model: "chatgpt",
|
|
519
|
+
}; })()
|
|
520
|
+
}
|
|
521
|
+
]
|
|
522
|
+
},
|
|
523
|
+
gemini: {
|
|
524
|
+
model: "gemini",
|
|
323
525
|
options: {
|
|
324
526
|
reference: true,
|
|
325
|
-
strict: false,
|
|
326
527
|
separate: null
|
|
327
528
|
},
|
|
328
529
|
functions: [
|
|
329
530
|
{
|
|
330
531
|
name: "correctDecorator",
|
|
331
532
|
parameters: {
|
|
332
|
-
description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}
|
|
533
|
+
description: " Properties containing error analysis, solution guidance, and corrected components\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationCorrectApplication.IProps}",
|
|
333
534
|
type: "object",
|
|
334
535
|
properties: {
|
|
335
536
|
error_analysis: {
|
|
@@ -341,12 +542,15 @@ const collection = {
|
|
|
341
542
|
type: "string"
|
|
342
543
|
},
|
|
343
544
|
provider: {
|
|
545
|
+
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.",
|
|
344
546
|
$ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
|
|
345
547
|
},
|
|
346
548
|
decorator: {
|
|
549
|
+
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.",
|
|
347
550
|
$ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
|
|
348
551
|
},
|
|
349
552
|
payload: {
|
|
553
|
+
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.",
|
|
350
554
|
$ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
|
|
351
555
|
}
|
|
352
556
|
},
|
|
@@ -512,9 +716,5 @@ const collection = {
|
|
|
512
716
|
}
|
|
513
717
|
]
|
|
514
718
|
},
|
|
515
|
-
claude,
|
|
516
|
-
llama: claude,
|
|
517
|
-
deepseek: claude,
|
|
518
|
-
"3.1": claude,
|
|
519
719
|
};
|
|
520
720
|
//# sourceMappingURL=orchestrateRealizeAuthorizationCorrect.js.map
|