@autobe/agent 0.30.4 → 0.30.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/lib/constants/AutoBeSystemPromptConstant.d.ts +5 -4
  2. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  3. package/lib/describe/image/orchestrateImageDescribeDraft.js +6 -6
  4. package/lib/describe/image/structures/IAutoBeImageDescribeDraftApplication.d.ts +12 -63
  5. package/lib/index.mjs +2918 -2842
  6. package/lib/index.mjs.map +1 -1
  7. package/lib/orchestrate/analyze/orchestrateAnalyzeExtractDecisions.js +8 -8
  8. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +36 -37
  9. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  10. package/lib/orchestrate/analyze/orchestrateAnalyzeScenarioReview.js +7 -7
  11. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js +55 -42
  12. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js.map +1 -1
  13. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js +67 -54
  14. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js.map +1 -1
  15. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js +24 -25
  16. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js.map +1 -1
  17. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js +24 -25
  18. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js.map +1 -1
  19. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js +30 -31
  20. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js.map +1 -1
  21. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.d.ts +14 -52
  22. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +23 -96
  23. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.d.ts +12 -40
  24. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.d.ts +30 -88
  25. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.d.ts +35 -94
  26. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.d.ts +23 -93
  27. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.d.ts +15 -88
  28. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js +76 -31
  29. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js.map +1 -1
  30. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +7 -7
  31. package/lib/orchestrate/common/structures/IAnalysisSectionEntry.d.ts +2 -8
  32. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +8 -50
  33. package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.d.ts +1 -9
  34. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.d.ts +4 -23
  35. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.d.ts +3 -21
  36. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.d.ts +4 -22
  37. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.d.ts +4 -22
  38. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.d.ts +5 -17
  39. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.d.ts +7 -76
  40. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.d.ts +6 -89
  41. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.d.ts +7 -93
  42. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.d.ts +3 -22
  43. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.d.ts +3 -22
  44. package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js +114 -139
  45. package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js.map +1 -1
  46. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js +90 -91
  47. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js.map +1 -1
  48. package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js +58 -59
  49. package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js.map +1 -1
  50. package/lib/orchestrate/interface/orchestrateInterfaceGroup.js +58 -59
  51. package/lib/orchestrate/interface/orchestrateInterfaceGroup.js.map +1 -1
  52. package/lib/orchestrate/interface/orchestrateInterfaceOperation.js +108 -132
  53. package/lib/orchestrate/interface/orchestrateInterfaceOperation.js.map +1 -1
  54. package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.js +72 -72
  55. package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js +76 -77
  56. package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js.map +1 -1
  57. package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js +130 -159
  58. package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js.map +1 -1
  59. package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js +126 -155
  60. package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js.map +1 -1
  61. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js +114 -142
  62. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js.map +1 -1
  63. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +5 -5
  64. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +100 -129
  65. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
  66. package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js +120 -149
  67. package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js.map +1 -1
  68. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.d.ts +10 -97
  69. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.d.ts +14 -83
  70. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.d.ts +12 -90
  71. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +12 -80
  72. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +21 -116
  73. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.d.ts +24 -112
  74. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.d.ts +11 -83
  75. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +11 -76
  76. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.d.ts +18 -96
  77. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.d.ts +11 -76
  78. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.d.ts +25 -107
  79. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.d.ts +5 -31
  80. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.d.ts +6 -42
  81. package/lib/orchestrate/prisma/orchestratePrismaAuthorization.js +41 -41
  82. package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js +62 -63
  83. package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js.map +1 -1
  84. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +40 -41
  85. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  86. package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js +60 -61
  87. package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js.map +1 -1
  88. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +112 -116
  89. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  90. package/lib/orchestrate/prisma/orchestratePrismaGroup.js +48 -49
  91. package/lib/orchestrate/prisma/orchestratePrismaGroup.js.map +1 -1
  92. package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js +70 -71
  93. package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js.map +1 -1
  94. package/lib/orchestrate/prisma/orchestratePrismaSchema.js +118 -122
  95. package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
  96. package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js +126 -131
  97. package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js.map +1 -1
  98. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.d.ts +22 -99
  99. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.d.ts +12 -109
  100. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.d.ts +14 -100
  101. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.d.ts +15 -108
  102. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.d.ts +24 -106
  103. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.d.ts +13 -76
  104. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.d.ts +13 -111
  105. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.d.ts +26 -97
  106. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.d.ts +16 -93
  107. package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js +1 -1
  108. package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js.map +1 -1
  109. package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js +1 -1
  110. package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js.map +1 -1
  111. package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js +20 -2
  112. package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js.map +1 -1
  113. package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js +22 -2
  114. package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js.map +1 -1
  115. package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectCasting.js +7 -7
  116. package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js +86 -6
  117. package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js.map +1 -1
  118. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +38 -38
  119. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +34 -34
  120. package/lib/orchestrate/realize/orchestrateRealizeCollectorCorrectOverall.js +38 -38
  121. package/lib/orchestrate/realize/orchestrateRealizeCollectorPlan.js +54 -54
  122. package/lib/orchestrate/realize/orchestrateRealizeCollectorWrite.js +36 -36
  123. package/lib/orchestrate/realize/orchestrateRealizeOperationCorrectOverall.js +44 -44
  124. package/lib/orchestrate/realize/orchestrateRealizeOperationWrite.js +42 -42
  125. package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js +1 -0
  126. package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js.map +1 -1
  127. package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectOverall.js +46 -46
  128. package/lib/orchestrate/realize/orchestrateRealizeTransformerPlan.js +36 -36
  129. package/lib/orchestrate/realize/orchestrateRealizeTransformerWrite.js +44 -44
  130. package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.d.ts +18 -0
  131. package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js +167 -8
  132. package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js.map +1 -1
  133. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +17 -71
  134. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.d.ts +32 -92
  135. package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.d.ts +32 -114
  136. package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.d.ts +29 -106
  137. package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.d.ts +38 -131
  138. package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.d.ts +16 -71
  139. package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.d.ts +16 -73
  140. package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.d.ts +37 -155
  141. package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.d.ts +25 -88
  142. package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.d.ts +48 -181
  143. package/lib/orchestrate/realize/utils/generateTS2339Hints.d.ts +5 -3
  144. package/lib/orchestrate/realize/utils/generateTS2339Hints.js +37 -19
  145. package/lib/orchestrate/realize/utils/generateTS2339Hints.js.map +1 -1
  146. package/lib/orchestrate/test/histories/transformTestOperationWriteHistory.js +2 -2
  147. package/lib/orchestrate/test/orchestrateTestScenario.js +22 -22
  148. package/lib/orchestrate/test/orchestrateTestScenarioReview.js +22 -22
  149. package/package.json +5 -5
  150. package/src/constants/AutoBeSystemPromptConstant.ts +5 -4
  151. package/src/describe/image/structures/IAutoBeImageDescribeDraftApplication.ts +12 -63
  152. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.ts +14 -52
  153. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +23 -96
  154. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.ts +12 -40
  155. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.ts +30 -88
  156. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.ts +35 -94
  157. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.ts +23 -93
  158. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.ts +15 -88
  159. package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.ts +92 -31
  160. package/src/orchestrate/common/structures/IAnalysisSectionEntry.ts +2 -8
  161. package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +8 -50
  162. package/src/orchestrate/common/structures/IAutoBePreliminaryCollection.ts +1 -9
  163. package/src/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.ts +4 -23
  164. package/src/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.ts +3 -21
  165. package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.ts +4 -22
  166. package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.ts +4 -22
  167. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.ts +5 -17
  168. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.ts +7 -76
  169. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.ts +6 -89
  170. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.ts +7 -93
  171. package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.ts +3 -22
  172. package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.ts +3 -22
  173. package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.ts +10 -97
  174. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.ts +14 -83
  175. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.ts +12 -90
  176. package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +12 -80
  177. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +21 -116
  178. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.ts +24 -112
  179. package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.ts +11 -83
  180. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +11 -76
  181. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.ts +18 -96
  182. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.ts +11 -76
  183. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.ts +25 -107
  184. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +5 -31
  185. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.ts +6 -42
  186. package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.ts +22 -99
  187. package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.ts +12 -109
  188. package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.ts +14 -100
  189. package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.ts +15 -108
  190. package/src/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.ts +24 -106
  191. package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.ts +13 -76
  192. package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.ts +13 -111
  193. package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.ts +26 -97
  194. package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.ts +16 -93
  195. package/src/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.ts +21 -1
  196. package/src/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.ts +26 -4
  197. package/src/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.ts +125 -9
  198. package/src/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.ts +1 -0
  199. package/src/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.ts +210 -7
  200. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +17 -71
  201. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.ts +32 -92
  202. package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.ts +32 -114
  203. package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.ts +29 -106
  204. package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.ts +38 -131
  205. package/src/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.ts +16 -71
  206. package/src/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.ts +16 -73
  207. package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.ts +37 -155
  208. package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.ts +25 -88
  209. package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.ts +48 -181
  210. package/src/orchestrate/realize/utils/generateTS2339Hints.ts +39 -19
@@ -58,6 +58,46 @@ var AutoBeRealizeTransformerProgrammer;
58
58
  return Array.from(unique);
59
59
  }
60
60
  AutoBeRealizeTransformerProgrammer.getNeighbors = getNeighbors;
61
+ function getRelationMappingTable(props) {
62
+ const result = [];
63
+ // belongsTo relations (forward FK on this model)
64
+ for (const f of props.model.foreignFields) {
65
+ result.push({
66
+ propertyKey: f.relation.name,
67
+ targetModel: f.relation.targetModel,
68
+ relationType: "belongsTo",
69
+ fkColumns: f.name,
70
+ });
71
+ }
72
+ // hasMany/hasOne relations (FK on the other model pointing to this model)
73
+ for (const file of props.application.files) {
74
+ for (const om of file.models) {
75
+ for (const fk of om.foreignFields) {
76
+ if (fk.relation.targetModel === props.model.name) {
77
+ result.push({
78
+ propertyKey: fk.relation.oppositeName,
79
+ targetModel: om.name,
80
+ relationType: fk.unique ? "hasOne" : "hasMany",
81
+ fkColumns: fk.name,
82
+ });
83
+ }
84
+ }
85
+ }
86
+ }
87
+ return result;
88
+ }
89
+ AutoBeRealizeTransformerProgrammer.getRelationMappingTable = getRelationMappingTable;
90
+ function formatRelationMappingTable(props) {
91
+ const relations = getRelationMappingTable(props);
92
+ if (relations.length === 0)
93
+ return "(no relations)";
94
+ return [
95
+ "| propertyKey | Target Model | Relation Type | FK Column(s) |",
96
+ "|---|---|---|---|",
97
+ ...relations.map((r) => `| ${r.propertyKey} | ${r.targetModel} | ${r.relationType} | ${r.fkColumns} |`),
98
+ ].join("\n");
99
+ }
100
+ AutoBeRealizeTransformerProgrammer.formatRelationMappingTable = formatRelationMappingTable;
61
101
  function getSelectMappingMetadata(props) {
62
102
  return AutoBeRealizeCollectorProgrammer_1.AutoBeRealizeCollectorProgrammer.getMappingMetadata(props);
63
103
  }
@@ -71,27 +111,99 @@ var AutoBeRealizeTransformerProgrammer;
71
111
  }
72
112
  AutoBeRealizeTransformerProgrammer.getTransformMappingMetadata = getTransformMappingMetadata;
73
113
  function writeTemplate(props) {
114
+ const recursive = getRecursiveProperty({
115
+ schemas: props.schemas,
116
+ typeName: props.plan.dtoTypeName,
117
+ });
118
+ return recursive !== null
119
+ ? writeRecursiveTemplate(Object.assign(Object.assign({}, props), { recursiveProperty: recursive }))
120
+ : writeNormalTemplate(props);
121
+ }
122
+ AutoBeRealizeTransformerProgrammer.writeTemplate = writeTemplate;
123
+ function writeNormalTemplate(props) {
124
+ const name = getName(props.plan.dtoTypeName);
125
+ const dto = props.plan.dtoTypeName;
126
+ const table = props.plan.databaseSchemaName;
127
+ const properties = Object.keys(props.schema.properties)
128
+ .map((k) => ` ${k}: ...,`)
129
+ .join("\n");
74
130
  return utils_1.StringUtil.trim `
75
- export namespace ${getName(props.plan.dtoTypeName)} {
76
- export type Payload = Prisma.${props.plan.databaseSchemaName}GetPayload<ReturnType<typeof select>>;
131
+ export namespace ${name} {
132
+ export type Payload = Prisma.${table}GetPayload<ReturnType<typeof select>>;
77
133
 
78
134
  export function select() {
135
+ // implicit return type for better type inference
79
136
  return {
80
137
  ...
81
- } satisfies Prisma.${props.plan.databaseSchemaName}FindManyArgs;
138
+ } satisfies Prisma.${table}FindManyArgs;
82
139
  }
83
140
 
84
- export async function transform(input: Payload): Promise<${props.plan.dtoTypeName}> {
141
+ export async function transform(input: Payload): Promise<${dto}> {
85
142
  return {
86
- ${Object.keys(props.schema.properties)
87
- .map((k) => ` ${k}: ...,`)
88
- .join("\n")}
143
+ ${properties}
89
144
  };
90
145
  }
91
146
  }
92
147
  `;
93
148
  }
94
- AutoBeRealizeTransformerProgrammer.writeTemplate = writeTemplate;
149
+ function writeRecursiveTemplate(props) {
150
+ const name = getName(props.plan.dtoTypeName);
151
+ const dto = props.plan.dtoTypeName;
152
+ const table = props.plan.databaseSchemaName;
153
+ const rp = props.recursiveProperty;
154
+ const fk = `${rp}_id`;
155
+ const properties = Object.keys(props.schema.properties)
156
+ .map((k) => k === rp
157
+ ? ` ${k}: input.${fk} ? await cache.get(input.${fk}) : null,`
158
+ : ` ${k}: ...,`)
159
+ .join("\n");
160
+ return utils_1.StringUtil.trim `
161
+ export namespace ${name} {
162
+ export type Payload = Prisma.${table}GetPayload<ReturnType<typeof select>>;
163
+
164
+ export function select() {
165
+ // implicit return type for better type inference
166
+ return {
167
+ select: {
168
+ ...
169
+ ${fk}: true,
170
+ ${rp}: undefined, // DO NOT select recursive relation
171
+ },
172
+ } satisfies Prisma.${table}FindManyArgs;
173
+ }
174
+
175
+ export async function transform(
176
+ input: Payload,
177
+ cache: VariadicSingleton<Promise<${dto}>, [string]> = createCache(),
178
+ ): Promise<${dto}> {
179
+ return {
180
+ ${properties}
181
+ };
182
+ }
183
+
184
+ export async function transformAll(
185
+ inputs: Payload[],
186
+ ): Promise<${dto}[]> {
187
+ const cache = createCache();
188
+ return await ArrayUtil.asyncMap(inputs, (x) => transform(x, cache));
189
+ }
190
+
191
+ function createCache() {
192
+ const cache = new VariadicSingleton(
193
+ async (id: string): Promise<${dto}> => {
194
+ const record =
195
+ await MyGlobal.prisma.${table}.findFirstOrThrow({
196
+ ...select(),
197
+ where: { id },
198
+ });
199
+ return transform(record, cache);
200
+ },
201
+ );
202
+ return cache;
203
+ }
204
+ }
205
+ `;
206
+ }
95
207
  function writeStructures(ctx, dtoTypeName) {
96
208
  return AutoBeRealizeCollectorProgrammer_1.AutoBeRealizeCollectorProgrammer.writeStructures(ctx, dtoTypeName);
97
209
  }
@@ -117,6 +229,7 @@ ${Object.keys(props.schema.properties)
117
229
  AutoBeRealizeTransformerProgrammer.replaceImportStatements = replaceImportStatements;
118
230
  function validate(props) {
119
231
  const errors = [];
232
+ // mapping plans
120
233
  validateTransformMappings({
121
234
  document: props.document,
122
235
  errors,
@@ -129,6 +242,7 @@ ${Object.keys(props.schema.properties)
129
242
  plan: props.plan,
130
243
  selectMappings: props.selectMappings,
131
244
  });
245
+ // validate draft
132
246
  validateEmptyCode({
133
247
  plan: props.plan,
134
248
  content: props.draft,
@@ -142,6 +256,12 @@ ${Object.keys(props.schema.properties)
142
256
  path: "$input.request.draft",
143
257
  errors,
144
258
  });
259
+ validateSelectReturnType({
260
+ content: props.draft,
261
+ path: "$input.request.draft",
262
+ errors,
263
+ });
264
+ // validate final
145
265
  if (props.revise.final !== null) {
146
266
  validateEmptyCode({
147
267
  plan: props.plan,
@@ -156,6 +276,11 @@ ${Object.keys(props.schema.properties)
156
276
  path: "$input.request.revise.final",
157
277
  errors,
158
278
  });
279
+ validateSelectReturnType({
280
+ content: props.revise.final,
281
+ path: "$input.request.revise.final",
282
+ errors,
283
+ });
159
284
  }
160
285
  return errors;
161
286
  }
@@ -285,11 +410,13 @@ ${Object.keys(props.schema.properties)
285
410
  const imports = [
286
411
  `import { Prisma } from "@prisma/sdk";`,
287
412
  `import { ArrayUtil } from "@nestia/e2e";`,
413
+ `import { VariadicSingleton } from "tstl";`,
288
414
  `import typia, { tags } from "typia";`,
289
415
  "",
290
416
  `import { IEntity } from "@ORGANIZATION/PROJECT-api/lib/structures/IEntity";`,
291
417
  ...Array.from(typeReferences).map((ref) => `import { ${ref} } from "@ORGANIZATION/PROJECT-api/lib/structures/${ref}";`),
292
418
  "",
419
+ 'import { MyGlobal } from "../MyGlobal";',
293
420
  `import { toISOStringSafe } from "../utils/toISOStringSafe";`,
294
421
  ];
295
422
  return imports;
@@ -304,6 +431,20 @@ ${Object.keys(props.schema.properties)
304
431
  description: `The generated code does not contain the expected namespace '${name}'.`,
305
432
  });
306
433
  }
434
+ function validateSelectReturnType(props) {
435
+ if (/function\s+select\s*\(\s*\)\s*:/.test(props.content))
436
+ props.errors.push({
437
+ path: props.path,
438
+ expected: "select() must use inferred return type (no explicit annotation).",
439
+ value: props.content,
440
+ description: utils_1.StringUtil.trim `
441
+ select() has an explicit return type annotation. This widens the
442
+ literal type and destroys Prisma GetPayload inference, causing
443
+ cascading type errors. Remove the return type — use satisfies
444
+ on the return value instead.
445
+ `,
446
+ });
447
+ }
307
448
  function validateNeighbors(props) {
308
449
  const selfName = getName(props.plan.dtoTypeName);
309
450
  const neighborNames = getNeighbors(props.content);
@@ -325,6 +466,24 @@ ${Object.keys(props.schema.properties)
325
466
  `,
326
467
  });
327
468
  }
469
+ function getRecursiveProperty(props) {
470
+ const schema = props.schemas[props.typeName];
471
+ if (schema === undefined || !utils_1.AutoBeOpenApiTypeChecker.isObject(schema))
472
+ return null;
473
+ const selfRef = `#/components/schemas/${props.typeName}`;
474
+ const hasSelfRef = (s) => {
475
+ if (utils_1.AutoBeOpenApiTypeChecker.isReference(s))
476
+ return s.$ref === selfRef;
477
+ if (utils_1.AutoBeOpenApiTypeChecker.isOneOf(s))
478
+ return s.oneOf.some((sub) => hasSelfRef(sub));
479
+ return false;
480
+ };
481
+ for (const [key, value] of Object.entries(schema.properties))
482
+ if (value && hasSelfRef(value))
483
+ return key;
484
+ return null;
485
+ }
486
+ AutoBeRealizeTransformerProgrammer.getRecursiveProperty = getRecursiveProperty;
328
487
  AutoBeRealizeTransformerProgrammer.fixApplication = (props) => {
329
488
  const $defs = props.definition.functions[0].parameters.$defs;
330
489
  // transform
@@ -1 +1 @@
1
- {"version":3,"file":"AutoBeRealizeTransform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IAAI,KAAK,CACb,6EAA6E,CAC9E,CAAC;YAEJ,MAAM,CAAC,IAAI,GAAG,wBAAwB,CAAC;gBACrC,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK;qBAC3B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;qBACpB,IAAI,EAAE;qBACN,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAE;aAC1D,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QAC1B,CAAC,CAAC,EAAE,CAAC;IACP,CAAC,CAAC;AACJ,CAAC,EAnbgB,kCAAkC,kDAAlC,kCAAkC,QAmblD"}
1
+ {"version":3,"file":"AutoBeRealizeTransformerProgrammer.js","sourceRoot":"","sources":["../../../../src/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAQA,yCAAqE;AACrE,wCAAkE;AAClE,kDAAwE;AAGxE,yFAAsF;AAEtF,IAAiB,kCAAkC,CA8nBlD;AA9nBD,WAAiB,kCAAkC;IACjD,SAAgB,MAAM,CAAC,KAGtB;;QACC,MAAM,MAAM,GACV,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,MAAM,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QACvC,OAAO,CACL,gCAAwB,CAAC,QAAQ,CAAC,MAAM,CAAC;YACzC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,KAAK,CAAC;YAC3C,CAAC,MAAA,MAAM,CAAC,oBAAoB,mCAAI,KAAK,CAAC,KAAK,KAAK;YAChD,KAAK,CAAC,GAAG,KAAK,qBAAq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CAAC,KAAK,KAAK;gBACnE,MAAM,IAAI,KAAK,CACb,6EAA6E,CAC9E,CAAC;YAEJ,MAAM,CAAC,IAAI,GAAG,wBAAwB,CAAC;gBACrC,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK;qBAC3B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;qBACpB,IAAI,EAAE;qBACN,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAE;aAC1D,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QAC1B,CAAC,CAAC,EAAE,CAAC;IACP,CAAC,CAAC;AACJ,CAAC,EA9nBgB,kCAAkC,kDAAlC,kCAAkC,QA8nBlD"}
@@ -2,12 +2,7 @@ import { IAutoBePreliminaryGetDatabaseSchemas } from "../../common/structures/IA
2
2
  import { IAutoBeRealizeAuthorizationWriteApplication } from "./IAutoBeRealizeAuthorizationWriteApplication";
3
3
  export interface IAutoBeRealizeAuthorizationCorrectApplication {
4
4
  /**
5
- * Process authentication component correction task or preliminary data
6
- * requests.
7
- *
8
- * Fixes TypeScript compilation errors in authentication components through
9
- * systematic error diagnosis. Provides error analysis, solution guidance, and
10
- * corrected versions while preserving authentication logic.
5
+ * Process authentication correction task or preliminary data requests.
11
6
  *
12
7
  * @param next Request containing either preliminary data request or complete
13
8
  * task
@@ -19,91 +14,42 @@ export declare namespace IAutoBeRealizeAuthorizationCorrectApplication {
19
14
  /**
20
15
  * Think before you act.
21
16
  *
22
- * Before requesting preliminary data or completing your task, reflect on
23
- * your current state and explain your reasoning:
24
- *
25
- * For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
26
- *
27
- * - What critical information is missing that you don't already have?
28
- * - Why do you need it specifically right now?
29
- * - Be brief - state the gap, don't list everything you have.
30
- *
31
- * For completion (complete):
17
+ * For preliminary requests: what critical information is missing?
32
18
  *
33
- * - What key assets did you acquire?
34
- * - What did you accomplish?
35
- * - Why is it sufficient to complete?
36
- * - Summarize - don't enumerate every single item.
37
- *
38
- * This reflection helps you avoid duplicate requests and premature
39
- * completion.
19
+ * For completion: what did you acquire, what did you accomplish, why is it
20
+ * sufficient?
40
21
  */
41
22
  thinking: string;
42
23
  /**
43
- * Type discriminator for the request.
44
- *
45
- * Determines which action to perform: preliminary data retrieval
46
- * (getDatabaseSchemas) or final error correction (complete). When
47
- * preliminary returns empty array, that type is removed from the union,
48
- * physically preventing repeated calls.
24
+ * Action to perform. Exhausted preliminary types are removed from the
25
+ * union, physically preventing repeated calls.
49
26
  */
50
27
  request: IComplete | IAutoBePreliminaryGetDatabaseSchemas;
51
28
  }
52
- /**
53
- * Request to fix authentication component errors.
54
- *
55
- * Executes targeted error correction to resolve TypeScript compilation issues
56
- * in provider, decorator, and payload type. Applies systematic fixes while
57
- * preserving all authentication logic and business requirements.
58
- */
29
+ /** Request to fix authentication component compilation errors. */
59
30
  interface IComplete {
60
- /**
61
- * Type discriminator for the request.
62
- *
63
- * Determines which action to perform: preliminary data retrieval or actual
64
- * task execution. Value "complete" indicates this is the final task
65
- * execution request.
66
- */
31
+ /** Type discriminator for completion request. */
67
32
  type: "complete";
68
33
  /**
69
- * Step 1: TypeScript compilation error analysis and diagnosis.
70
- *
71
- * AI identifies and categorizes all compilation errors (type mismatches,
72
- * import issues, syntax errors) by component (providers/decorator/payload).
73
- * Lists specific error messages with their locations and types for
74
- * systematic troubleshooting.
34
+ * Categorize all compilation errors by component
35
+ * (provider/decorator/payload) with locations.
75
36
  */
76
37
  error_analysis: string;
77
- /**
78
- * Step 2: Solution guidance and fix recommendations.
79
- *
80
- * AI provides clear, actionable instructions on how to resolve each
81
- * identified error. Includes specific steps like "add property X to
82
- * interface Y", "update import path from A to B", or "change type from C to
83
- * D". Focus on guidance rather than generating complete code
84
- * implementations.
85
- */
38
+ /** Actionable fix instructions for each identified error. */
86
39
  solution_guidance: string;
87
40
  /**
88
- * Authentication Provider function configuration containing the function
89
- * name and implementation code. The Provider handles JWT token
90
- * verification, role validation, and database queries to authenticate
91
- * users.
41
+ * Authentication Provider function (JWT verification, role validation, DB
42
+ * queries).
92
43
  */
93
44
  provider: IAutoBeRealizeAuthorizationWriteApplication.IProvider;
94
45
  /**
95
- * Authentication Decorator configuration containing the decorator name and
96
- * implementation code. The Decorator integrates with NestJS parameter
97
- * decorators to automatically inject authenticated user data into
98
- * Controller methods.
46
+ * Authentication Decorator (NestJS parameter decorator injecting
47
+ * authenticated user data).
99
48
  */
100
49
  decorator: IAutoBeRealizeAuthorizationWriteApplication.IDecorator;
101
50
  /**
102
- * Authentication Payload Type configuration containing the payload type
103
- * name and implementation code. The Payload Type is used to define the
104
- * structure of the authenticated user data that will be injected into
105
- * Controller methods when using the decorator. It serves as the TypeScript
106
- * type for the parameter in Controller method signatures.
51
+ * Authentication Payload Type (TypeScript type for authenticated user data
52
+ * in Controller methods).
107
53
  */
108
54
  payload: IAutoBeRealizeAuthorizationWriteApplication.IPayloadType;
109
55
  }
@@ -1,13 +1,12 @@
1
1
  import { CamelCasePattern, PascalCasePattern } from "@autobe/interface";
2
2
  import { IAutoBePreliminaryGetDatabaseSchemas } from "../../common/structures/IAutoBePreliminaryGetDatabaseSchemas";
3
+ /**
4
+ * Generates authentication components (provider, decorator, payload) for an
5
+ * actor type.
6
+ */
3
7
  export interface IAutoBeRealizeAuthorizationWriteApplication {
4
8
  /**
5
- * Process authentication component generation task or preliminary data
6
- * requests.
7
- *
8
- * Generates JWT-based authentication infrastructure (provider, decorator,
9
- * payload) for role-based authorization. Integrates with NestJS patterns and
10
- * jwtAuthorize utility.
9
+ * Process authentication generation task or preliminary data requests.
11
10
  *
12
11
  * @param next Request containing either preliminary data request or complete
13
12
  * task
@@ -19,134 +18,75 @@ export declare namespace IAutoBeRealizeAuthorizationWriteApplication {
19
18
  /**
20
19
  * Think before you act.
21
20
  *
22
- * Before requesting preliminary data or completing your task, reflect on
23
- * your current state and explain your reasoning:
24
- *
25
- * For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
26
- *
27
- * - What critical information is missing that you don't already have?
28
- * - Why do you need it specifically right now?
29
- * - Be brief - state the gap, don't list everything you have.
30
- *
31
- * For completion (complete):
21
+ * For preliminary requests: what database schemas are missing and why?
32
22
  *
33
- * - What key assets did you acquire?
34
- * - What did you accomplish?
35
- * - Why is it sufficient to complete?
36
- * - Summarize - don't enumerate every single item.
37
- *
38
- * This reflection helps you avoid duplicate requests and premature
39
- * completion.
23
+ * For completion: what schemas did you acquire, what authentication
24
+ * patterns did you implement, why is it sufficient?
40
25
  */
41
26
  thinking: string;
42
27
  /**
43
- * Type discriminator for the request.
44
- *
45
- * Determines which action to perform: preliminary data retrieval
46
- * (getDatabaseSchemas) or final authentication generation (complete). When
47
- * preliminary returns empty array, that type is removed from the union,
48
- * physically preventing repeated calls.
28
+ * Action to perform. Exhausted preliminary types are removed from the
29
+ * union, physically preventing repeated calls.
49
30
  */
50
31
  request: IComplete | IAutoBePreliminaryGetDatabaseSchemas;
51
32
  }
52
33
  /**
53
- * Request to generate authentication components.
54
- *
55
- * Executes authentication generation to create provider function, decorator,
56
- * and payload type for the specified role. All components work together to
57
- * provide JWT-based authentication and authorization.
34
+ * Request to generate authentication components (provider, decorator,
35
+ * payload).
58
36
  */
59
37
  interface IComplete {
60
- /**
61
- * Type discriminator for the request.
62
- *
63
- * Determines which action to perform: preliminary data retrieval or actual
64
- * task execution. Value "complete" indicates this is the final task
65
- * execution request.
66
- */
38
+ /** Type discriminator for completion request. */
67
39
  type: "complete";
68
40
  /**
69
- * Authentication Provider function configuration containing the function
70
- * name and implementation code. The Provider handles JWT token
71
- * verification, role validation, and database queries to authenticate
72
- * users.
41
+ * Authentication Provider function (JWT verification, role validation, DB
42
+ * queries).
73
43
  */
74
44
  provider: IAutoBeRealizeAuthorizationWriteApplication.IProvider;
75
45
  /**
76
- * Authentication Decorator configuration containing the decorator name and
77
- * implementation code. The Decorator integrates with NestJS parameter
78
- * decorators to automatically inject authenticated user data into
79
- * Controller methods.
46
+ * Authentication Decorator (NestJS parameter decorator injecting
47
+ * authenticated user data).
80
48
  */
81
49
  decorator: IAutoBeRealizeAuthorizationWriteApplication.IDecorator;
82
50
  /**
83
- * Authentication Payload Type configuration containing the payload type
84
- * name and implementation code. The Payload Type is used to define the
85
- * structure of the authenticated user data that will be injected into
86
- * Controller methods when using the decorator. It serves as the TypeScript
87
- * type for the parameter in Controller method signatures.
51
+ * Authentication Payload Type (TypeScript type for authenticated user data
52
+ * in Controller methods).
88
53
  */
89
54
  payload: IAutoBeRealizeAuthorizationWriteApplication.IPayloadType;
90
55
  }
91
56
  interface IProvider {
92
57
  /**
93
- * The name of the authentication Provider function in {role}Authorize
94
- * format (e.g., adminAuthorize, userAuthorize). This function will be
95
- * called by the decorator to verify JWT tokens and return authenticated
96
- * user information for the specified role.
97
- *
98
- * DO: Use camelCase naming convention.
58
+ * Provider function name in {role}Authorize format (e.g., adminAuthorize).
59
+ * MUST use camelCase.
99
60
  */
100
61
  name: string & CamelCasePattern;
101
62
  /**
102
- * Complete TypeScript code for the authentication Provider function. Must
103
- * include: JWT token verification using jwtAuthorize function, role type
104
- * checking against payload.type, database query using
105
- * MyGlobal.prisma.{tableName} pattern to verify user existence, and proper
106
- * error handling with ForbiddenException and UnauthorizedException. The
107
- * function should return the authenticated user payload data.
63
+ * Complete TypeScript code. MUST include: jwtAuthorize call, role type
64
+ * check, MyGlobal.prisma.{tableName} query,
65
+ * ForbiddenException/UnauthorizedException handling.
108
66
  */
109
67
  content: string;
110
68
  }
111
69
  interface IDecorator {
112
70
  /**
113
- * The name of the Decorator to be generated in {Actor}Auth format (e.g.,
114
- * AdminAuth, UserAuth). This decorator will be used as a parameter
115
- * decorator in Controller methods to automatically authenticate and
116
- * authorize users for the specific role, injecting the authenticated user
117
- * payload as a method parameter.
118
- *
119
- * DO: Use PascalCase naming convention.
71
+ * Decorator name in {Actor}Auth format (e.g., AdminAuth, UserAuth). MUST
72
+ * use PascalCase.
120
73
  */
121
74
  name: string & PascalCasePattern;
122
75
  /**
123
- * Complete TypeScript code for the authentication Decorator implementation.
124
- * Must include: SwaggerCustomizer integration to add bearer token security
125
- * schema to API documentation, createParamDecorator implementation that
126
- * calls the corresponding Provider function for authentication, Singleton
127
- * pattern using tstl library for efficient decorator instance management,
128
- * and proper TypeScript typing for the ParameterDecorator interface.
76
+ * Complete TypeScript code. MUST include: SwaggerCustomizer integration,
77
+ * createParamDecorator calling Provider, Singleton pattern via tstl.
129
78
  */
130
79
  content: string;
131
80
  }
132
81
  interface IPayloadType {
133
82
  /**
134
- * The name of the Payload type to be generated in {Actor}Payload format
135
- * (e.g., AdminPayload, UserPayload). This type defines the structure of the
136
- * authenticated user data that will be injected into Controller methods
137
- * when using the decorator.
138
- *
139
- * DO: Use PascalCase naming convention.
83
+ * Payload type name in {Actor}Payload format (e.g., AdminPayload,
84
+ * UserPayload). MUST use PascalCase.
140
85
  */
141
86
  name: string & PascalCasePattern;
142
87
  /**
143
- * Complete TypeScript code for the Payload type interface in {Actor}Payload
144
- * format (e.g., AdminPayload, UserPayload). Must include: id field with
145
- * UUID format validation, type field as role discriminator, and proper
146
- * typia tags for validation. This interface defines the structure of the
147
- * authenticated user data that will be injected into Controller methods
148
- * when using the decorator and serves as the TypeScript type for the
149
- * parameter in Controller method signatures.
88
+ * Complete TypeScript code. MUST include: id field with UUID validation,
89
+ * type field as role discriminator, typia tags.
150
90
  */
151
91
  content: string;
152
92
  }