@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.
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +5 -4
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/describe/image/orchestrateImageDescribeDraft.js +6 -6
- package/lib/describe/image/structures/IAutoBeImageDescribeDraftApplication.d.ts +12 -63
- package/lib/index.mjs +2918 -2842
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeExtractDecisions.js +8 -8
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +36 -37
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenarioReview.js +7 -7
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js +55 -42
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js +67 -54
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js +24 -25
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js +24 -25
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js +30 -31
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.d.ts +14 -52
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +23 -96
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.d.ts +12 -40
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.d.ts +30 -88
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.d.ts +35 -94
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.d.ts +23 -93
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.d.ts +15 -88
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js +76 -31
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js.map +1 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +7 -7
- package/lib/orchestrate/common/structures/IAnalysisSectionEntry.d.ts +2 -8
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +8 -50
- package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.d.ts +1 -9
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.d.ts +4 -23
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.d.ts +3 -21
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.d.ts +4 -22
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.d.ts +4 -22
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.d.ts +5 -17
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.d.ts +7 -76
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.d.ts +6 -89
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.d.ts +7 -93
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.d.ts +3 -22
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.d.ts +3 -22
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js +114 -139
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js +90 -91
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js +58 -59
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroup.js +58 -59
- package/lib/orchestrate/interface/orchestrateInterfaceGroup.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperation.js +108 -132
- package/lib/orchestrate/interface/orchestrateInterfaceOperation.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.js +72 -72
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js +76 -77
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js +130 -159
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js +126 -155
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js +114 -142
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +5 -5
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +100 -129
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js +120 -149
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.d.ts +10 -97
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.d.ts +14 -83
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.d.ts +12 -90
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +12 -80
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +21 -116
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.d.ts +24 -112
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.d.ts +11 -83
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +11 -76
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.d.ts +18 -96
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.d.ts +11 -76
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.d.ts +25 -107
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.d.ts +5 -31
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.d.ts +6 -42
- package/lib/orchestrate/prisma/orchestratePrismaAuthorization.js +41 -41
- package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js +62 -63
- package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +40 -41
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js +60 -61
- package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +112 -116
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaGroup.js +48 -49
- package/lib/orchestrate/prisma/orchestratePrismaGroup.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js +70 -71
- package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +118 -122
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js +126 -131
- package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js.map +1 -1
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.d.ts +22 -99
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.d.ts +12 -109
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.d.ts +14 -100
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.d.ts +15 -108
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.d.ts +24 -106
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.d.ts +13 -76
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.d.ts +13 -111
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.d.ts +26 -97
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.d.ts +16 -93
- package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js +20 -2
- package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js +22 -2
- package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js.map +1 -1
- package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectCasting.js +7 -7
- package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js +86 -6
- package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +38 -38
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +34 -34
- package/lib/orchestrate/realize/orchestrateRealizeCollectorCorrectOverall.js +38 -38
- package/lib/orchestrate/realize/orchestrateRealizeCollectorPlan.js +54 -54
- package/lib/orchestrate/realize/orchestrateRealizeCollectorWrite.js +36 -36
- package/lib/orchestrate/realize/orchestrateRealizeOperationCorrectOverall.js +44 -44
- package/lib/orchestrate/realize/orchestrateRealizeOperationWrite.js +42 -42
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectOverall.js +46 -46
- package/lib/orchestrate/realize/orchestrateRealizeTransformerPlan.js +36 -36
- package/lib/orchestrate/realize/orchestrateRealizeTransformerWrite.js +44 -44
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.d.ts +18 -0
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js +167 -8
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +17 -71
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.d.ts +32 -92
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.d.ts +32 -114
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.d.ts +29 -106
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.d.ts +38 -131
- package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.d.ts +16 -71
- package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.d.ts +16 -73
- package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.d.ts +37 -155
- package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.d.ts +25 -88
- package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.d.ts +48 -181
- package/lib/orchestrate/realize/utils/generateTS2339Hints.d.ts +5 -3
- package/lib/orchestrate/realize/utils/generateTS2339Hints.js +37 -19
- package/lib/orchestrate/realize/utils/generateTS2339Hints.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestOperationWriteHistory.js +2 -2
- package/lib/orchestrate/test/orchestrateTestScenario.js +22 -22
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +22 -22
- package/package.json +5 -5
- package/src/constants/AutoBeSystemPromptConstant.ts +5 -4
- package/src/describe/image/structures/IAutoBeImageDescribeDraftApplication.ts +12 -63
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.ts +14 -52
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +23 -96
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.ts +12 -40
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.ts +30 -88
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.ts +35 -94
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.ts +23 -93
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.ts +15 -88
- package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.ts +92 -31
- package/src/orchestrate/common/structures/IAnalysisSectionEntry.ts +2 -8
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +8 -50
- package/src/orchestrate/common/structures/IAutoBePreliminaryCollection.ts +1 -9
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.ts +4 -23
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.ts +3 -21
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.ts +4 -22
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.ts +4 -22
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.ts +5 -17
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.ts +7 -76
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.ts +6 -89
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.ts +7 -93
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.ts +3 -22
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.ts +3 -22
- package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.ts +10 -97
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.ts +14 -83
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.ts +12 -90
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +12 -80
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +21 -116
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.ts +24 -112
- package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.ts +11 -83
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +11 -76
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.ts +18 -96
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.ts +11 -76
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.ts +25 -107
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +5 -31
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.ts +6 -42
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.ts +22 -99
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.ts +12 -109
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.ts +14 -100
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.ts +15 -108
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.ts +24 -106
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.ts +13 -76
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.ts +13 -111
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.ts +26 -97
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.ts +16 -93
- package/src/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.ts +21 -1
- package/src/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.ts +26 -4
- package/src/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.ts +125 -9
- package/src/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.ts +1 -0
- package/src/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.ts +210 -7
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +17 -71
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.ts +32 -92
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.ts +32 -114
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.ts +29 -106
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.ts +38 -131
- package/src/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.ts +16 -71
- package/src/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.ts +16 -73
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.ts +37 -155
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.ts +25 -88
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.ts +48 -181
- package/src/orchestrate/realize/utils/generateTS2339Hints.ts +39 -19
|
@@ -158,7 +158,7 @@ function process(ctx, props) {
|
|
|
158
158
|
properties: {
|
|
159
159
|
thinking: {
|
|
160
160
|
type: "string",
|
|
161
|
-
description: "Think before you act.\n\
|
|
161
|
+
description: "Think before you act.\n\nFor preliminary requests: what critical information is missing and why?\nBe brief \u2014 state the gap, don't list everything you have.\n\nFor completion: what key assets did you acquire, what did you accomplish,\nwhy is it sufficient? Summarize \u2014 don't enumerate every single item."
|
|
162
162
|
},
|
|
163
163
|
request: {
|
|
164
164
|
oneOf: [
|
|
@@ -192,7 +192,7 @@ function process(ctx, props) {
|
|
|
192
192
|
complete: "#/components/schemas/IAutoBeInterfaceOperationApplication.IComplete"
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
description: "
|
|
195
|
+
description: "Action to perform. Exhausted preliminary types are removed from the\nunion, physically preventing repeated calls."
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
required: [
|
|
@@ -205,7 +205,7 @@ function process(ctx, props) {
|
|
|
205
205
|
properties: {
|
|
206
206
|
type: {
|
|
207
207
|
"const": "getAnalysisSections",
|
|
208
|
-
description: "Type discriminator
|
|
208
|
+
description: "Type discriminator."
|
|
209
209
|
},
|
|
210
210
|
sectionIds: {
|
|
211
211
|
type: "array",
|
|
@@ -215,21 +215,21 @@ function process(ctx, props) {
|
|
|
215
215
|
},
|
|
216
216
|
minItems: 1,
|
|
217
217
|
maxItems: 100,
|
|
218
|
-
description: "
|
|
218
|
+
description: "Section IDs to retrieve. DO NOT request same IDs already requested in\nprevious calls."
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
221
|
required: [
|
|
222
222
|
"type",
|
|
223
223
|
"sectionIds"
|
|
224
224
|
],
|
|
225
|
-
description: "Request to retrieve individual analysis sections by numeric ID
|
|
225
|
+
description: "Request to retrieve individual analysis sections by numeric ID."
|
|
226
226
|
},
|
|
227
227
|
IAutoBePreliminaryGetDatabaseSchemas: {
|
|
228
228
|
type: "object",
|
|
229
229
|
properties: {
|
|
230
230
|
type: {
|
|
231
231
|
"const": "getDatabaseSchemas",
|
|
232
|
-
description: "Type discriminator
|
|
232
|
+
description: "Type discriminator."
|
|
233
233
|
},
|
|
234
234
|
schemaNames: {
|
|
235
235
|
type: "array",
|
|
@@ -237,21 +237,21 @@ function process(ctx, props) {
|
|
|
237
237
|
type: "string"
|
|
238
238
|
},
|
|
239
239
|
minItems: 1,
|
|
240
|
-
description: "
|
|
240
|
+
description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls."
|
|
241
241
|
}
|
|
242
242
|
},
|
|
243
243
|
required: [
|
|
244
244
|
"type",
|
|
245
245
|
"schemaNames"
|
|
246
246
|
],
|
|
247
|
-
description: "Request to retrieve database schema definitions for context
|
|
247
|
+
description: "Request to retrieve database schema definitions for context."
|
|
248
248
|
},
|
|
249
249
|
IAutoBePreliminaryGetPreviousAnalysisSections: {
|
|
250
250
|
type: "object",
|
|
251
251
|
properties: {
|
|
252
252
|
type: {
|
|
253
253
|
"const": "getPreviousAnalysisSections",
|
|
254
|
-
description: "Type discriminator
|
|
254
|
+
description: "Type discriminator."
|
|
255
255
|
},
|
|
256
256
|
sectionIds: {
|
|
257
257
|
type: "array",
|
|
@@ -260,21 +260,21 @@ function process(ctx, props) {
|
|
|
260
260
|
minimum: 0
|
|
261
261
|
},
|
|
262
262
|
minItems: 1,
|
|
263
|
-
description: "
|
|
263
|
+
description: "Section IDs to retrieve from previous iteration. DO NOT request same IDs\nalready requested in previous calls."
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
266
|
required: [
|
|
267
267
|
"type",
|
|
268
268
|
"sectionIds"
|
|
269
269
|
],
|
|
270
|
-
description: "Request to retrieve
|
|
270
|
+
description: "Request to retrieve analysis sections from the previous iteration by numeric\nID."
|
|
271
271
|
},
|
|
272
272
|
IAutoBePreliminaryGetPreviousDatabaseSchemas: {
|
|
273
273
|
type: "object",
|
|
274
274
|
properties: {
|
|
275
275
|
type: {
|
|
276
276
|
"const": "getPreviousDatabaseSchemas",
|
|
277
|
-
description: "Type discriminator
|
|
277
|
+
description: "Type discriminator."
|
|
278
278
|
},
|
|
279
279
|
schemaNames: {
|
|
280
280
|
type: "array",
|
|
@@ -282,21 +282,21 @@ function process(ctx, props) {
|
|
|
282
282
|
type: "string"
|
|
283
283
|
},
|
|
284
284
|
minItems: 1,
|
|
285
|
-
description: "
|
|
285
|
+
description: "Table names to retrieve from previous iteration. DO NOT request same names\nalready requested in previous calls."
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
required: [
|
|
289
289
|
"type",
|
|
290
290
|
"schemaNames"
|
|
291
291
|
],
|
|
292
|
-
description: "Request to retrieve database schemas from
|
|
292
|
+
description: "Request to retrieve database schemas from the previous iteration.\n\nLoads database table definitions from the last successfully generated\nversion, used as reference context during regeneration or modification\ncycles."
|
|
293
293
|
},
|
|
294
294
|
IAutoBePreliminaryGetPreviousInterfaceOperations: {
|
|
295
295
|
type: "object",
|
|
296
296
|
properties: {
|
|
297
297
|
type: {
|
|
298
298
|
"const": "getPreviousInterfaceOperations",
|
|
299
|
-
description: "Type discriminator
|
|
299
|
+
description: "Type discriminator."
|
|
300
300
|
},
|
|
301
301
|
endpoints: {
|
|
302
302
|
type: "array",
|
|
@@ -304,14 +304,14 @@ function process(ctx, props) {
|
|
|
304
304
|
$ref: "#/components/schemas/AutoBeOpenApi.IEndpoint"
|
|
305
305
|
},
|
|
306
306
|
minItems: 1,
|
|
307
|
-
description: "
|
|
307
|
+
description: "Endpoints to retrieve from previous iteration. DO NOT request same\nendpoints already requested in previous calls."
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
310
|
required: [
|
|
311
311
|
"type",
|
|
312
312
|
"endpoints"
|
|
313
313
|
],
|
|
314
|
-
description: "Request to retrieve interface operations from
|
|
314
|
+
description: "Request to retrieve interface operations from the previous iteration.\n\nLoads API operation definitions from the last successfully generated version,\nused as reference context during regeneration or modification cycles."
|
|
315
315
|
},
|
|
316
316
|
"AutoBeOpenApi.IEndpoint": {
|
|
317
317
|
type: "object",
|
|
@@ -319,7 +319,7 @@ function process(ctx, props) {
|
|
|
319
319
|
path: {
|
|
320
320
|
type: "string",
|
|
321
321
|
pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$",
|
|
322
|
-
description: "HTTP path of the API operation.\n\
|
|
322
|
+
description: "HTTP path of the API operation.\n\nMust start with `/`. Parameters use curly braces: `{paramName}`. Resource\nnames in camelCase. No quotes, spaces, role prefixes (`/admin/`), or API\nversion prefixes (`/api/v1/`).\n\nAllowed characters: letters, digits, `/`, `{`, `}`, `-`, `_`, `.`"
|
|
323
323
|
},
|
|
324
324
|
method: {
|
|
325
325
|
oneOf: [
|
|
@@ -339,7 +339,7 @@ function process(ctx, props) {
|
|
|
339
339
|
"const": "patch"
|
|
340
340
|
}
|
|
341
341
|
],
|
|
342
|
-
description: "HTTP method
|
|
342
|
+
description: "HTTP method (lowercase only).\n\nUse `patch` (not `get`) when a read operation needs a complex\n{@link requestBody}. `get` cannot have a request body."
|
|
343
343
|
}
|
|
344
344
|
},
|
|
345
345
|
required: [
|
|
@@ -353,19 +353,19 @@ function process(ctx, props) {
|
|
|
353
353
|
properties: {
|
|
354
354
|
type: {
|
|
355
355
|
"const": "complete",
|
|
356
|
-
description: "Type discriminator for
|
|
356
|
+
description: "Type discriminator for completion request."
|
|
357
357
|
},
|
|
358
358
|
analysis: {
|
|
359
359
|
type: "string",
|
|
360
|
-
description: "Analysis of the endpoint's purpose and context
|
|
360
|
+
description: "Analysis of the endpoint's purpose and context."
|
|
361
361
|
},
|
|
362
362
|
rationale: {
|
|
363
363
|
type: "string",
|
|
364
|
-
description: "Rationale for the operation design decisions
|
|
364
|
+
description: "Rationale for the operation design decisions."
|
|
365
365
|
},
|
|
366
366
|
operation: {
|
|
367
367
|
$ref: "#/components/schemas/IAutoBeInterfaceOperationApplication.IOperation",
|
|
368
|
-
description: "The API operation to generate.\n\
|
|
368
|
+
description: "The API operation to generate.\n\nFollow CRUD operation patterns:\n\n- List/search (PATCH `index`): include pagination, search, and sorting in\n request body\n- Detail retrieval (GET `at`): return single full entity\n- Creation (POST): use `.ICreate` request body\n- Modification (PUT): use `.IUpdate` request body\n\nUse object types for request/response bodies, reference named component\ntypes, and `application/json` content-type."
|
|
369
369
|
}
|
|
370
370
|
},
|
|
371
371
|
required: [
|
|
@@ -374,7 +374,7 @@ function process(ctx, props) {
|
|
|
374
374
|
"rationale",
|
|
375
375
|
"operation"
|
|
376
376
|
],
|
|
377
|
-
description: "Request to generate a detailed API operation
|
|
377
|
+
description: "Request to generate a detailed API operation."
|
|
378
378
|
},
|
|
379
379
|
"IAutoBeInterfaceOperationApplication.IOperation": {
|
|
380
380
|
type: "object",
|
|
@@ -382,20 +382,20 @@ function process(ctx, props) {
|
|
|
382
382
|
name: {
|
|
383
383
|
type: "string",
|
|
384
384
|
pattern: "^[a-z][a-zA-Z0-9]*$",
|
|
385
|
-
description: "Functional name of the API endpoint
|
|
385
|
+
description: "Functional name of the API endpoint. MUST use camelCase.\n\nMUST NOT be a JS/TS reserved word (`delete`, `for`, `if`, `class`,\n`return`, `new`, `this`, `void`, `const`, `let`, `var`, `async`, `await`,\n`export`, `import`, `switch`, `case`, `throw`, `try`). Use `erase`\ninstead of `delete`, `iterate` instead of `for`.\n\nStandard names:\n\n- `index`: list/search (PATCH), `at`: get by ID (GET)\n- `create`: POST, `update`: PUT, `erase`: DELETE\n\nAccessor uniqueness: the accessor is formed by joining non-parameter path\nsegments with dots, then appending the name. E.g., path\n`/shopping/sale/{saleId}/review/{reviewId}` + name `at` = accessor\n`shopping.sale.review.at`. Must be globally unique."
|
|
386
386
|
},
|
|
387
387
|
specification: {
|
|
388
388
|
type: "string",
|
|
389
|
-
description: "
|
|
389
|
+
description: "Internal implementation guidance for downstream agents (Realize, Test).\n\nDescribe HOW this operation should be implemented: service logic, DB\nqueries, business rules, edge cases, and error handling.\n\n> MUST be written in English. Never use other languages."
|
|
390
390
|
},
|
|
391
391
|
description: {
|
|
392
392
|
type: "string",
|
|
393
|
-
description: "
|
|
393
|
+
description: "Multi-paragraph description of the API operation for consumers.\n\nReference and incorporate DB schema table/column description comments.\nOrganize into multiple paragraphs covering purpose, business logic,\nrelationships, and error handling.\n\nDo NOT use \"soft delete\" / \"soft-delete\" unless the operation actually\nimplements soft deletion (triggers validation expecting\nsoft_delete_column).\n\n> MUST be written in English. Never use other languages."
|
|
394
394
|
},
|
|
395
395
|
path: {
|
|
396
396
|
type: "string",
|
|
397
397
|
pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$",
|
|
398
|
-
description: "HTTP path of the API operation.\n\
|
|
398
|
+
description: "HTTP path of the API operation.\n\nMust start with `/`. Parameters use curly braces: `{paramName}`. Resource\nnames in camelCase. No quotes, spaces, role prefixes (`/admin/`), or API\nversion prefixes (`/api/v1/`).\n\nAllowed characters: letters, digits, `/`, `{`, `}`, `-`, `_`, `.`"
|
|
399
399
|
},
|
|
400
400
|
method: {
|
|
401
401
|
oneOf: [
|
|
@@ -415,7 +415,7 @@ function process(ctx, props) {
|
|
|
415
415
|
"const": "patch"
|
|
416
416
|
}
|
|
417
417
|
],
|
|
418
|
-
description: "HTTP method
|
|
418
|
+
description: "HTTP method (lowercase only).\n\nUse `patch` (not `get`) when a read operation needs a complex\n{@link requestBody}. `get` cannot have a request body."
|
|
419
419
|
},
|
|
420
420
|
responseBody: {
|
|
421
421
|
oneOf: [
|
|
@@ -426,14 +426,14 @@ function process(ctx, props) {
|
|
|
426
426
|
$ref: "#/components/schemas/AutoBeOpenApi.IResponseBody"
|
|
427
427
|
}
|
|
428
428
|
],
|
|
429
|
-
description: "Response body of the API operation
|
|
429
|
+
description: "Response body of the API operation, or `null` if none."
|
|
430
430
|
},
|
|
431
431
|
parameters: {
|
|
432
432
|
type: "array",
|
|
433
433
|
items: {
|
|
434
434
|
$ref: "#/components/schemas/AutoBeOpenApi.IParameter"
|
|
435
435
|
},
|
|
436
|
-
description: "List of path parameters.\n\
|
|
436
|
+
description: "List of path parameters.\n\nEach parameter name must correspond to a `{paramName}` in the\n{@link path}."
|
|
437
437
|
},
|
|
438
438
|
requestBody: {
|
|
439
439
|
oneOf: [
|
|
@@ -444,7 +444,7 @@ function process(ctx, props) {
|
|
|
444
444
|
$ref: "#/components/schemas/AutoBeOpenApi.IRequestBody"
|
|
445
445
|
}
|
|
446
446
|
],
|
|
447
|
-
description: "Request body of the API operation
|
|
447
|
+
description: "Request body of the API operation, or `null` if none."
|
|
448
448
|
}
|
|
449
449
|
},
|
|
450
450
|
required: [
|
|
@@ -457,37 +457,37 @@ function process(ctx, props) {
|
|
|
457
457
|
"parameters",
|
|
458
458
|
"requestBody"
|
|
459
459
|
],
|
|
460
|
-
description: "
|
|
460
|
+
description: "RESTful API operation (excludes authorization and prerequisite fields).\n\nUse object types for request/response bodies, reference named component\ntypes, use `application/json` content-type, and `string &\ntags.Format<\"uri\">` for file operations."
|
|
461
461
|
},
|
|
462
462
|
"AutoBeOpenApi.IResponseBody": {
|
|
463
463
|
type: "object",
|
|
464
464
|
properties: {
|
|
465
465
|
description: {
|
|
466
466
|
type: "string",
|
|
467
|
-
description: "Description
|
|
467
|
+
description: "Description of the response body.\n\n> MUST be written in English. Never use other languages."
|
|
468
468
|
},
|
|
469
469
|
typeName: {
|
|
470
470
|
type: "string",
|
|
471
|
-
description: "
|
|
471
|
+
description: "Type name referencing a component schema.\n\nNaming convention: `IEntityName` (full), `IEntityName.ISummary`,\n`IEntityName.IInvert`, `IPageIEntityName` (paginated)."
|
|
472
472
|
}
|
|
473
473
|
},
|
|
474
474
|
required: [
|
|
475
475
|
"description",
|
|
476
476
|
"typeName"
|
|
477
477
|
],
|
|
478
|
-
description: "Response body
|
|
478
|
+
description: "Response body for an API operation.\n\nContent-type is always `application/json`. For file downloads, use a URI\nstring property instead of `application/octet-stream`."
|
|
479
479
|
},
|
|
480
480
|
"AutoBeOpenApi.IParameter": {
|
|
481
481
|
type: "object",
|
|
482
482
|
properties: {
|
|
483
483
|
description: {
|
|
484
484
|
type: "string",
|
|
485
|
-
description: "Description
|
|
485
|
+
description: "Description of the path parameter.\n\n> MUST be written in English. Never use other languages."
|
|
486
486
|
},
|
|
487
487
|
name: {
|
|
488
488
|
type: "string",
|
|
489
489
|
pattern: "^[a-z][a-zA-Z0-9]*$",
|
|
490
|
-
description: "Identifier name
|
|
490
|
+
description: "Identifier name in camelCase. Must match the `{paramName}` in the\n{@link AutoBeOpenApi.IOperation.path}."
|
|
491
491
|
},
|
|
492
492
|
schema: {
|
|
493
493
|
oneOf: [
|
|
@@ -509,7 +509,7 @@ function process(ctx, props) {
|
|
|
509
509
|
string: "#/components/schemas/AutoBeOpenApi.IJsonSchema.IString"
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
|
-
description: "Type schema of the path parameter
|
|
512
|
+
description: "Type schema of the path parameter (primitive types only)."
|
|
513
513
|
}
|
|
514
514
|
},
|
|
515
515
|
required: [
|
|
@@ -517,35 +517,30 @@ function process(ctx, props) {
|
|
|
517
517
|
"name",
|
|
518
518
|
"schema"
|
|
519
519
|
],
|
|
520
|
-
description: "Path parameter
|
|
520
|
+
description: "Path parameter definition for an API route."
|
|
521
521
|
},
|
|
522
522
|
"AutoBeOpenApi.IJsonSchema.INumber": {
|
|
523
523
|
type: "object",
|
|
524
524
|
properties: {
|
|
525
525
|
minimum: {
|
|
526
|
-
type: "number"
|
|
527
|
-
description: "Minimum value restriction."
|
|
526
|
+
type: "number"
|
|
528
527
|
},
|
|
529
528
|
maximum: {
|
|
530
|
-
type: "number"
|
|
531
|
-
description: "Maximum value restriction."
|
|
529
|
+
type: "number"
|
|
532
530
|
},
|
|
533
531
|
exclusiveMinimum: {
|
|
534
|
-
type: "number"
|
|
535
|
-
description: "Exclusive minimum value restriction."
|
|
532
|
+
type: "number"
|
|
536
533
|
},
|
|
537
534
|
exclusiveMaximum: {
|
|
538
|
-
type: "number"
|
|
539
|
-
description: "Exclusive maximum value restriction."
|
|
535
|
+
type: "number"
|
|
540
536
|
},
|
|
541
537
|
multipleOf: {
|
|
542
538
|
type: "number",
|
|
543
|
-
exclusiveMinimum: 0
|
|
544
|
-
description: "Multiple of value restriction."
|
|
539
|
+
exclusiveMinimum: 0
|
|
545
540
|
},
|
|
546
541
|
type: {
|
|
547
542
|
"const": "number",
|
|
548
|
-
description: "Discriminator value
|
|
543
|
+
description: "Discriminator value. MUST be a single string, NEVER an array.\n\nFor nullable types, use `IOneOf` instead: `{ oneOf: [{ type: \"string\"\n}, { type: \"null\" }] }`"
|
|
549
544
|
}
|
|
550
545
|
},
|
|
551
546
|
required: [
|
|
@@ -557,29 +552,24 @@ function process(ctx, props) {
|
|
|
557
552
|
type: "object",
|
|
558
553
|
properties: {
|
|
559
554
|
minimum: {
|
|
560
|
-
type: "integer"
|
|
561
|
-
description: "Minimum value restriction."
|
|
555
|
+
type: "integer"
|
|
562
556
|
},
|
|
563
557
|
maximum: {
|
|
564
|
-
type: "integer"
|
|
565
|
-
description: "Maximum value restriction."
|
|
558
|
+
type: "integer"
|
|
566
559
|
},
|
|
567
560
|
exclusiveMinimum: {
|
|
568
|
-
type: "integer"
|
|
569
|
-
description: "Exclusive minimum value restriction."
|
|
561
|
+
type: "integer"
|
|
570
562
|
},
|
|
571
563
|
exclusiveMaximum: {
|
|
572
|
-
type: "integer"
|
|
573
|
-
description: "Exclusive maximum value restriction."
|
|
564
|
+
type: "integer"
|
|
574
565
|
},
|
|
575
566
|
multipleOf: {
|
|
576
567
|
type: "integer",
|
|
577
|
-
exclusiveMinimum: 0
|
|
578
|
-
description: "Multiple of value restriction."
|
|
568
|
+
exclusiveMinimum: 0
|
|
579
569
|
},
|
|
580
570
|
type: {
|
|
581
571
|
"const": "integer",
|
|
582
|
-
description: "Discriminator value
|
|
572
|
+
description: "Discriminator value. MUST be a single string, NEVER an array.\n\nFor nullable types, use `IOneOf` instead: `{ oneOf: [{ type: \"string\"\n}, { type: \"null\" }] }`"
|
|
583
573
|
}
|
|
584
574
|
},
|
|
585
575
|
required: [
|
|
@@ -664,21 +654,19 @@ function process(ctx, props) {
|
|
|
664
654
|
},
|
|
665
655
|
contentMediaType: {
|
|
666
656
|
type: "string",
|
|
667
|
-
description: "Content media type restriction.\n\
|
|
657
|
+
description: "Content media type restriction.\n\nFor multiple media types, use `oneOf` with separate string schemas per\n`contentMediaType` value. Never use an array here."
|
|
668
658
|
},
|
|
669
659
|
minLength: {
|
|
670
660
|
type: "integer",
|
|
671
|
-
minimum: 0
|
|
672
|
-
description: "Minimum length restriction."
|
|
661
|
+
minimum: 0
|
|
673
662
|
},
|
|
674
663
|
maxLength: {
|
|
675
664
|
type: "integer",
|
|
676
|
-
minimum: 0
|
|
677
|
-
description: "Maximum length restriction."
|
|
665
|
+
minimum: 0
|
|
678
666
|
},
|
|
679
667
|
type: {
|
|
680
668
|
"const": "string",
|
|
681
|
-
description: "Discriminator value
|
|
669
|
+
description: "Discriminator value. MUST be a single string, NEVER an array.\n\nFor nullable types, use `IOneOf` instead: `{ oneOf: [{ type: \"string\"\n}, { type: \"null\" }] }`"
|
|
682
670
|
}
|
|
683
671
|
},
|
|
684
672
|
required: [
|
|
@@ -691,18 +679,18 @@ function process(ctx, props) {
|
|
|
691
679
|
properties: {
|
|
692
680
|
description: {
|
|
693
681
|
type: "string",
|
|
694
|
-
description: "Description
|
|
682
|
+
description: "Description of the request body.\n\n> MUST be written in English. Never use other languages."
|
|
695
683
|
},
|
|
696
684
|
typeName: {
|
|
697
685
|
type: "string",
|
|
698
|
-
description: "
|
|
686
|
+
description: "Type name referencing a component schema.\n\nNaming convention: `IEntityName.ICreate` (POST), `IEntityName.IUpdate`\n(PUT), `IEntityName.IRequest` (list/search)."
|
|
699
687
|
}
|
|
700
688
|
},
|
|
701
689
|
required: [
|
|
702
690
|
"description",
|
|
703
691
|
"typeName"
|
|
704
692
|
],
|
|
705
|
-
description: "Request body
|
|
693
|
+
description: "Request body for an API operation.\n\nContent-type is always `application/json`. For file uploads, use a URI\nstring property instead of `multipart/form-data`."
|
|
706
694
|
}
|
|
707
695
|
}
|
|
708
696
|
},
|
|
@@ -720,7 +708,7 @@ function process(ctx, props) {
|
|
|
720
708
|
}
|
|
721
709
|
}
|
|
722
710
|
],
|
|
723
|
-
description: "Process operation generation task or preliminary data requests
|
|
711
|
+
description: "Process operation generation task or preliminary data requests."
|
|
724
712
|
}
|
|
725
713
|
]
|
|
726
714
|
},
|
|
@@ -1257,11 +1245,11 @@ function createController(props) {
|
|
|
1257
1245
|
type: "object",
|
|
1258
1246
|
properties: {
|
|
1259
1247
|
thinking: {
|
|
1260
|
-
description: "Think before you act.\n\
|
|
1248
|
+
description: "Think before you act.\n\nFor preliminary requests: what critical information is missing and why?\nBe brief \u2014 state the gap, don't list everything you have.\n\nFor completion: what key assets did you acquire, what did you accomplish,\nwhy is it sufficient? Summarize \u2014 don't enumerate every single item.",
|
|
1261
1249
|
type: "string"
|
|
1262
1250
|
},
|
|
1263
1251
|
request: {
|
|
1264
|
-
description: "
|
|
1252
|
+
description: "Action to perform. Exhausted preliminary types are removed from the\nunion, physically preventing repeated calls.",
|
|
1265
1253
|
anyOf: [
|
|
1266
1254
|
{
|
|
1267
1255
|
$ref: "#/$defs/IAutoBePreliminaryGetAnalysisSections"
|
|
@@ -1302,18 +1290,18 @@ function createController(props) {
|
|
|
1302
1290
|
additionalProperties: false,
|
|
1303
1291
|
$defs: {
|
|
1304
1292
|
IAutoBePreliminaryGetAnalysisSections: {
|
|
1305
|
-
description: "Request to retrieve individual analysis sections by numeric ID
|
|
1293
|
+
description: "Request to retrieve individual analysis sections by numeric ID.",
|
|
1306
1294
|
type: "object",
|
|
1307
1295
|
properties: {
|
|
1308
1296
|
type: {
|
|
1309
|
-
description: "Type discriminator
|
|
1297
|
+
description: "Type discriminator.",
|
|
1310
1298
|
type: "string",
|
|
1311
1299
|
"enum": [
|
|
1312
1300
|
"getAnalysisSections"
|
|
1313
1301
|
]
|
|
1314
1302
|
},
|
|
1315
1303
|
sectionIds: {
|
|
1316
|
-
description: "
|
|
1304
|
+
description: "Section IDs to retrieve. DO NOT request same IDs already requested in\nprevious calls.",
|
|
1317
1305
|
type: "array",
|
|
1318
1306
|
items: {
|
|
1319
1307
|
type: "integer",
|
|
@@ -1329,18 +1317,18 @@ function createController(props) {
|
|
|
1329
1317
|
]
|
|
1330
1318
|
},
|
|
1331
1319
|
IAutoBePreliminaryGetDatabaseSchemas: {
|
|
1332
|
-
description: "Request to retrieve database schema definitions for context
|
|
1320
|
+
description: "Request to retrieve database schema definitions for context.",
|
|
1333
1321
|
type: "object",
|
|
1334
1322
|
properties: {
|
|
1335
1323
|
type: {
|
|
1336
|
-
description: "Type discriminator
|
|
1324
|
+
description: "Type discriminator.",
|
|
1337
1325
|
type: "string",
|
|
1338
1326
|
"enum": [
|
|
1339
1327
|
"getDatabaseSchemas"
|
|
1340
1328
|
]
|
|
1341
1329
|
},
|
|
1342
1330
|
schemaNames: {
|
|
1343
|
-
description: "
|
|
1331
|
+
description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls.",
|
|
1344
1332
|
type: "array",
|
|
1345
1333
|
items: {
|
|
1346
1334
|
type: "string"
|
|
@@ -1354,18 +1342,18 @@ function createController(props) {
|
|
|
1354
1342
|
]
|
|
1355
1343
|
},
|
|
1356
1344
|
IAutoBePreliminaryGetPreviousAnalysisSections: {
|
|
1357
|
-
description: "Request to retrieve
|
|
1345
|
+
description: "Request to retrieve analysis sections from the previous iteration by numeric\nID.",
|
|
1358
1346
|
type: "object",
|
|
1359
1347
|
properties: {
|
|
1360
1348
|
type: {
|
|
1361
|
-
description: "Type discriminator
|
|
1349
|
+
description: "Type discriminator.",
|
|
1362
1350
|
type: "string",
|
|
1363
1351
|
"enum": [
|
|
1364
1352
|
"getPreviousAnalysisSections"
|
|
1365
1353
|
]
|
|
1366
1354
|
},
|
|
1367
1355
|
sectionIds: {
|
|
1368
|
-
description: "
|
|
1356
|
+
description: "Section IDs to retrieve from previous iteration. DO NOT request same IDs\nalready requested in previous calls.",
|
|
1369
1357
|
type: "array",
|
|
1370
1358
|
items: {
|
|
1371
1359
|
type: "integer",
|
|
@@ -1380,18 +1368,18 @@ function createController(props) {
|
|
|
1380
1368
|
]
|
|
1381
1369
|
},
|
|
1382
1370
|
IAutoBePreliminaryGetPreviousDatabaseSchemas: {
|
|
1383
|
-
description: "Request to retrieve database schemas from
|
|
1371
|
+
description: "Request to retrieve database schemas from the previous iteration.\n\nLoads database table definitions from the last successfully generated\nversion, used as reference context during regeneration or modification\ncycles.",
|
|
1384
1372
|
type: "object",
|
|
1385
1373
|
properties: {
|
|
1386
1374
|
type: {
|
|
1387
|
-
description: "Type discriminator
|
|
1375
|
+
description: "Type discriminator.",
|
|
1388
1376
|
type: "string",
|
|
1389
1377
|
"enum": [
|
|
1390
1378
|
"getPreviousDatabaseSchemas"
|
|
1391
1379
|
]
|
|
1392
1380
|
},
|
|
1393
1381
|
schemaNames: {
|
|
1394
|
-
description: "
|
|
1382
|
+
description: "Table names to retrieve from previous iteration. DO NOT request same names\nalready requested in previous calls.",
|
|
1395
1383
|
type: "array",
|
|
1396
1384
|
items: {
|
|
1397
1385
|
type: "string"
|
|
@@ -1405,18 +1393,18 @@ function createController(props) {
|
|
|
1405
1393
|
]
|
|
1406
1394
|
},
|
|
1407
1395
|
IAutoBePreliminaryGetPreviousInterfaceOperations: {
|
|
1408
|
-
description: "Request to retrieve interface operations from
|
|
1396
|
+
description: "Request to retrieve interface operations from the previous iteration.\n\nLoads API operation definitions from the last successfully generated version,\nused as reference context during regeneration or modification cycles.",
|
|
1409
1397
|
type: "object",
|
|
1410
1398
|
properties: {
|
|
1411
1399
|
type: {
|
|
1412
|
-
description: "Type discriminator
|
|
1400
|
+
description: "Type discriminator.",
|
|
1413
1401
|
type: "string",
|
|
1414
1402
|
"enum": [
|
|
1415
1403
|
"getPreviousInterfaceOperations"
|
|
1416
1404
|
]
|
|
1417
1405
|
},
|
|
1418
1406
|
endpoints: {
|
|
1419
|
-
description: "
|
|
1407
|
+
description: "Endpoints to retrieve from previous iteration. DO NOT request same\nendpoints already requested in previous calls.",
|
|
1420
1408
|
type: "array",
|
|
1421
1409
|
items: {
|
|
1422
1410
|
$ref: "#/$defs/AutoBeOpenApi.IEndpoint"
|
|
@@ -1434,12 +1422,12 @@ function createController(props) {
|
|
|
1434
1422
|
type: "object",
|
|
1435
1423
|
properties: {
|
|
1436
1424
|
path: {
|
|
1437
|
-
description: "HTTP path of the API operation.\n\
|
|
1425
|
+
description: "HTTP path of the API operation.\n\nMust start with `/`. Parameters use curly braces: `{paramName}`. Resource\nnames in camelCase. No quotes, spaces, role prefixes (`/admin/`), or API\nversion prefixes (`/api/v1/`).\n\nAllowed characters: letters, digits, `/`, `{`, `}`, `-`, `_`, `.`",
|
|
1438
1426
|
type: "string",
|
|
1439
1427
|
pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
|
|
1440
1428
|
},
|
|
1441
1429
|
method: {
|
|
1442
|
-
description: "HTTP method
|
|
1430
|
+
description: "HTTP method (lowercase only).\n\nUse `patch` (not `get`) when a read operation needs a complex\n{@link requestBody}. `get` cannot have a request body.",
|
|
1443
1431
|
type: "string",
|
|
1444
1432
|
"enum": [
|
|
1445
1433
|
"get",
|
|
@@ -1456,26 +1444,26 @@ function createController(props) {
|
|
|
1456
1444
|
]
|
|
1457
1445
|
},
|
|
1458
1446
|
"IAutoBeInterfaceOperationApplication.IComplete": {
|
|
1459
|
-
description: "Request to generate a detailed API operation
|
|
1447
|
+
description: "Request to generate a detailed API operation.",
|
|
1460
1448
|
type: "object",
|
|
1461
1449
|
properties: {
|
|
1462
1450
|
type: {
|
|
1463
|
-
description: "Type discriminator for
|
|
1451
|
+
description: "Type discriminator for completion request.",
|
|
1464
1452
|
type: "string",
|
|
1465
1453
|
"enum": [
|
|
1466
1454
|
"complete"
|
|
1467
1455
|
]
|
|
1468
1456
|
},
|
|
1469
1457
|
analysis: {
|
|
1470
|
-
description: "Analysis of the endpoint's purpose and context
|
|
1458
|
+
description: "Analysis of the endpoint's purpose and context.",
|
|
1471
1459
|
type: "string"
|
|
1472
1460
|
},
|
|
1473
1461
|
rationale: {
|
|
1474
|
-
description: "Rationale for the operation design decisions
|
|
1462
|
+
description: "Rationale for the operation design decisions.",
|
|
1475
1463
|
type: "string"
|
|
1476
1464
|
},
|
|
1477
1465
|
operation: {
|
|
1478
|
-
description: "The API operation to generate.\n\
|
|
1466
|
+
description: "The API operation to generate.\n\nFollow CRUD operation patterns:\n\n- List/search (PATCH `index`): include pagination, search, and sorting in\n request body\n- Detail retrieval (GET `at`): return single full entity\n- Creation (POST): use `.ICreate` request body\n- Modification (PUT): use `.IUpdate` request body\n\nUse object types for request/response bodies, reference named component\ntypes, and `application/json` content-type.",
|
|
1479
1467
|
$ref: "#/$defs/IAutoBeInterfaceOperationApplication.IOperation"
|
|
1480
1468
|
}
|
|
1481
1469
|
},
|
|
@@ -1487,29 +1475,29 @@ function createController(props) {
|
|
|
1487
1475
|
]
|
|
1488
1476
|
},
|
|
1489
1477
|
"IAutoBeInterfaceOperationApplication.IOperation": {
|
|
1490
|
-
description: "
|
|
1478
|
+
description: "RESTful API operation (excludes authorization and prerequisite fields).\n\nUse object types for request/response bodies, reference named component\ntypes, use `application/json` content-type, and `string &\ntags.Format<\"uri\">` for file operations.",
|
|
1491
1479
|
type: "object",
|
|
1492
1480
|
properties: {
|
|
1493
1481
|
name: {
|
|
1494
|
-
description: "Functional name of the API endpoint
|
|
1482
|
+
description: "Functional name of the API endpoint. MUST use camelCase.\n\nMUST NOT be a JS/TS reserved word (`delete`, `for`, `if`, `class`,\n`return`, `new`, `this`, `void`, `const`, `let`, `var`, `async`, `await`,\n`export`, `import`, `switch`, `case`, `throw`, `try`). Use `erase`\ninstead of `delete`, `iterate` instead of `for`.\n\nStandard names:\n\n- `index`: list/search (PATCH), `at`: get by ID (GET)\n- `create`: POST, `update`: PUT, `erase`: DELETE\n\nAccessor uniqueness: the accessor is formed by joining non-parameter path\nsegments with dots, then appending the name. E.g., path\n`/shopping/sale/{saleId}/review/{reviewId}` + name `at` = accessor\n`shopping.sale.review.at`. Must be globally unique.",
|
|
1495
1483
|
type: "string",
|
|
1496
1484
|
pattern: "^[a-z][a-zA-Z0-9]*$"
|
|
1497
1485
|
},
|
|
1498
1486
|
specification: {
|
|
1499
|
-
description: "
|
|
1487
|
+
description: "Internal implementation guidance for downstream agents (Realize, Test).\n\nDescribe HOW this operation should be implemented: service logic, DB\nqueries, business rules, edge cases, and error handling.\n\n> MUST be written in English. Never use other languages.",
|
|
1500
1488
|
type: "string"
|
|
1501
1489
|
},
|
|
1502
1490
|
description: {
|
|
1503
|
-
description: "
|
|
1491
|
+
description: "Multi-paragraph description of the API operation for consumers.\n\nReference and incorporate DB schema table/column description comments.\nOrganize into multiple paragraphs covering purpose, business logic,\nrelationships, and error handling.\n\nDo NOT use \"soft delete\" / \"soft-delete\" unless the operation actually\nimplements soft deletion (triggers validation expecting\nsoft_delete_column).\n\n> MUST be written in English. Never use other languages.",
|
|
1504
1492
|
type: "string"
|
|
1505
1493
|
},
|
|
1506
1494
|
path: {
|
|
1507
|
-
description: "HTTP path of the API operation.\n\
|
|
1495
|
+
description: "HTTP path of the API operation.\n\nMust start with `/`. Parameters use curly braces: `{paramName}`. Resource\nnames in camelCase. No quotes, spaces, role prefixes (`/admin/`), or API\nversion prefixes (`/api/v1/`).\n\nAllowed characters: letters, digits, `/`, `{`, `}`, `-`, `_`, `.`",
|
|
1508
1496
|
type: "string",
|
|
1509
1497
|
pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
|
|
1510
1498
|
},
|
|
1511
1499
|
method: {
|
|
1512
|
-
description: "HTTP method
|
|
1500
|
+
description: "HTTP method (lowercase only).\n\nUse `patch` (not `get`) when a read operation needs a complex\n{@link requestBody}. `get` cannot have a request body.",
|
|
1513
1501
|
type: "string",
|
|
1514
1502
|
"enum": [
|
|
1515
1503
|
"get",
|
|
@@ -1520,7 +1508,7 @@ function createController(props) {
|
|
|
1520
1508
|
]
|
|
1521
1509
|
},
|
|
1522
1510
|
responseBody: {
|
|
1523
|
-
description: "Response body of the API operation
|
|
1511
|
+
description: "Response body of the API operation, or `null` if none.",
|
|
1524
1512
|
anyOf: [
|
|
1525
1513
|
{
|
|
1526
1514
|
type: "null"
|
|
@@ -1531,14 +1519,14 @@ function createController(props) {
|
|
|
1531
1519
|
]
|
|
1532
1520
|
},
|
|
1533
1521
|
parameters: {
|
|
1534
|
-
description: "List of path parameters.\n\
|
|
1522
|
+
description: "List of path parameters.\n\nEach parameter name must correspond to a `{paramName}` in the\n{@link path}.",
|
|
1535
1523
|
type: "array",
|
|
1536
1524
|
items: {
|
|
1537
1525
|
$ref: "#/$defs/AutoBeOpenApi.IParameter"
|
|
1538
1526
|
}
|
|
1539
1527
|
},
|
|
1540
1528
|
requestBody: {
|
|
1541
|
-
description: "Request body of the API operation
|
|
1529
|
+
description: "Request body of the API operation, or `null` if none.",
|
|
1542
1530
|
anyOf: [
|
|
1543
1531
|
{
|
|
1544
1532
|
type: "null"
|
|
@@ -1561,15 +1549,15 @@ function createController(props) {
|
|
|
1561
1549
|
]
|
|
1562
1550
|
},
|
|
1563
1551
|
"AutoBeOpenApi.IResponseBody": {
|
|
1564
|
-
description: "Response body
|
|
1552
|
+
description: "Response body for an API operation.\n\nContent-type is always `application/json`. For file downloads, use a URI\nstring property instead of `application/octet-stream`.",
|
|
1565
1553
|
type: "object",
|
|
1566
1554
|
properties: {
|
|
1567
1555
|
description: {
|
|
1568
|
-
description: "Description
|
|
1556
|
+
description: "Description of the response body.\n\n> MUST be written in English. Never use other languages.",
|
|
1569
1557
|
type: "string"
|
|
1570
1558
|
},
|
|
1571
1559
|
typeName: {
|
|
1572
|
-
description: "
|
|
1560
|
+
description: "Type name referencing a component schema.\n\nNaming convention: `IEntityName` (full), `IEntityName.ISummary`,\n`IEntityName.IInvert`, `IPageIEntityName` (paginated).",
|
|
1573
1561
|
type: "string"
|
|
1574
1562
|
}
|
|
1575
1563
|
},
|
|
@@ -1579,20 +1567,20 @@ function createController(props) {
|
|
|
1579
1567
|
]
|
|
1580
1568
|
},
|
|
1581
1569
|
"AutoBeOpenApi.IParameter": {
|
|
1582
|
-
description: "Path parameter
|
|
1570
|
+
description: "Path parameter definition for an API route.",
|
|
1583
1571
|
type: "object",
|
|
1584
1572
|
properties: {
|
|
1585
1573
|
description: {
|
|
1586
|
-
description: "Description
|
|
1574
|
+
description: "Description of the path parameter.\n\n> MUST be written in English. Never use other languages.",
|
|
1587
1575
|
type: "string"
|
|
1588
1576
|
},
|
|
1589
1577
|
name: {
|
|
1590
|
-
description: "Identifier name
|
|
1578
|
+
description: "Identifier name in camelCase. Must match the `{paramName}` in the\n{@link AutoBeOpenApi.IOperation.path}.",
|
|
1591
1579
|
type: "string",
|
|
1592
1580
|
pattern: "^[a-z][a-zA-Z0-9]*$"
|
|
1593
1581
|
},
|
|
1594
1582
|
schema: {
|
|
1595
|
-
description: "Type schema of the path parameter
|
|
1583
|
+
description: "Type schema of the path parameter (primitive types only).",
|
|
1596
1584
|
anyOf: [
|
|
1597
1585
|
{
|
|
1598
1586
|
$ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
|
|
@@ -1625,28 +1613,23 @@ function createController(props) {
|
|
|
1625
1613
|
type: "object",
|
|
1626
1614
|
properties: {
|
|
1627
1615
|
minimum: {
|
|
1628
|
-
description: "Minimum value restriction.",
|
|
1629
1616
|
type: "number"
|
|
1630
1617
|
},
|
|
1631
1618
|
maximum: {
|
|
1632
|
-
description: "Maximum value restriction.",
|
|
1633
1619
|
type: "number"
|
|
1634
1620
|
},
|
|
1635
1621
|
exclusiveMinimum: {
|
|
1636
|
-
description: "Exclusive minimum value restriction.",
|
|
1637
1622
|
type: "number"
|
|
1638
1623
|
},
|
|
1639
1624
|
exclusiveMaximum: {
|
|
1640
|
-
description: "Exclusive maximum value restriction.",
|
|
1641
1625
|
type: "number"
|
|
1642
1626
|
},
|
|
1643
1627
|
multipleOf: {
|
|
1644
|
-
description: "Multiple of value restriction.",
|
|
1645
1628
|
type: "number",
|
|
1646
1629
|
exclusiveMinimum: 0
|
|
1647
1630
|
},
|
|
1648
1631
|
type: {
|
|
1649
|
-
description: "Discriminator value
|
|
1632
|
+
description: "Discriminator value. MUST be a single string, NEVER an array.\n\nFor nullable types, use `IOneOf` instead: `{ oneOf: [{ type: \"string\"\n}, { type: \"null\" }] }`",
|
|
1650
1633
|
type: "string",
|
|
1651
1634
|
"enum": [
|
|
1652
1635
|
"number"
|
|
@@ -1662,28 +1645,23 @@ function createController(props) {
|
|
|
1662
1645
|
type: "object",
|
|
1663
1646
|
properties: {
|
|
1664
1647
|
minimum: {
|
|
1665
|
-
description: "Minimum value restriction.",
|
|
1666
1648
|
type: "integer"
|
|
1667
1649
|
},
|
|
1668
1650
|
maximum: {
|
|
1669
|
-
description: "Maximum value restriction.",
|
|
1670
1651
|
type: "integer"
|
|
1671
1652
|
},
|
|
1672
1653
|
exclusiveMinimum: {
|
|
1673
|
-
description: "Exclusive minimum value restriction.",
|
|
1674
1654
|
type: "integer"
|
|
1675
1655
|
},
|
|
1676
1656
|
exclusiveMaximum: {
|
|
1677
|
-
description: "Exclusive maximum value restriction.",
|
|
1678
1657
|
type: "integer"
|
|
1679
1658
|
},
|
|
1680
1659
|
multipleOf: {
|
|
1681
|
-
description: "Multiple of value restriction.",
|
|
1682
1660
|
type: "integer",
|
|
1683
1661
|
exclusiveMinimum: 0
|
|
1684
1662
|
},
|
|
1685
1663
|
type: {
|
|
1686
|
-
description: "Discriminator value
|
|
1664
|
+
description: "Discriminator value. MUST be a single string, NEVER an array.\n\nFor nullable types, use `IOneOf` instead: `{ oneOf: [{ type: \"string\"\n}, { type: \"null\" }] }`",
|
|
1687
1665
|
type: "string",
|
|
1688
1666
|
"enum": [
|
|
1689
1667
|
"integer"
|
|
@@ -1730,21 +1708,19 @@ function createController(props) {
|
|
|
1730
1708
|
type: "string"
|
|
1731
1709
|
},
|
|
1732
1710
|
contentMediaType: {
|
|
1733
|
-
description: "Content media type restriction.\n\
|
|
1711
|
+
description: "Content media type restriction.\n\nFor multiple media types, use `oneOf` with separate string schemas per\n`contentMediaType` value. Never use an array here.",
|
|
1734
1712
|
type: "string"
|
|
1735
1713
|
},
|
|
1736
1714
|
minLength: {
|
|
1737
|
-
description: "Minimum length restriction.",
|
|
1738
1715
|
type: "integer",
|
|
1739
1716
|
minimum: 0
|
|
1740
1717
|
},
|
|
1741
1718
|
maxLength: {
|
|
1742
|
-
description: "Maximum length restriction.",
|
|
1743
1719
|
type: "integer",
|
|
1744
1720
|
minimum: 0
|
|
1745
1721
|
},
|
|
1746
1722
|
type: {
|
|
1747
|
-
description: "Discriminator value
|
|
1723
|
+
description: "Discriminator value. MUST be a single string, NEVER an array.\n\nFor nullable types, use `IOneOf` instead: `{ oneOf: [{ type: \"string\"\n}, { type: \"null\" }] }`",
|
|
1748
1724
|
type: "string",
|
|
1749
1725
|
"enum": [
|
|
1750
1726
|
"string"
|
|
@@ -1756,15 +1732,15 @@ function createController(props) {
|
|
|
1756
1732
|
]
|
|
1757
1733
|
},
|
|
1758
1734
|
"AutoBeOpenApi.IRequestBody": {
|
|
1759
|
-
description: "Request body
|
|
1735
|
+
description: "Request body for an API operation.\n\nContent-type is always `application/json`. For file uploads, use a URI\nstring property instead of `multipart/form-data`.",
|
|
1760
1736
|
type: "object",
|
|
1761
1737
|
properties: {
|
|
1762
1738
|
description: {
|
|
1763
|
-
description: "Description
|
|
1739
|
+
description: "Description of the request body.\n\n> MUST be written in English. Never use other languages.",
|
|
1764
1740
|
type: "string"
|
|
1765
1741
|
},
|
|
1766
1742
|
typeName: {
|
|
1767
|
-
description: "
|
|
1743
|
+
description: "Type name referencing a component schema.\n\nNaming convention: `IEntityName.ICreate` (POST), `IEntityName.IUpdate`\n(PUT), `IEntityName.IRequest` (list/search).",
|
|
1768
1744
|
type: "string"
|
|
1769
1745
|
}
|
|
1770
1746
|
},
|
|
@@ -1775,7 +1751,7 @@ function createController(props) {
|
|
|
1775
1751
|
}
|
|
1776
1752
|
}
|
|
1777
1753
|
},
|
|
1778
|
-
description: "Process operation generation task or preliminary data requests
|
|
1754
|
+
description: "Process operation generation task or preliminary data requests.",
|
|
1779
1755
|
validate: (() => { const _iv7 = new Set(["password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date-time", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv14 = new Set(["password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date-time", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getAnalysisSections" === input.type && (Array.isArray(input.sectionIds) && (1 <= input.sectionIds.length && input.sectionIds.length <= 100 && input.sectionIds.every(elem => "number" === typeof elem && __typia_transform__isTypeUint32._isTypeUint32(elem)))); const _io2 = input => "getDatabaseSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io3 = input => "getPreviousAnalysisSections" === input.type && (Array.isArray(input.sectionIds) && (1 <= input.sectionIds.length && input.sectionIds.every(elem => "number" === typeof elem && __typia_transform__isTypeUint32._isTypeUint32(elem)))); const _io4 = input => "getPreviousDatabaseSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io5 = input => "getPreviousInterfaceOperations" === input.type && (Array.isArray(input.endpoints) && (1 <= input.endpoints.length && input.endpoints.every(elem => "object" === typeof elem && null !== elem && _io6(elem)))); const _io6 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io7 = input => "complete" === input.type && "string" === typeof input.analysis && "string" === typeof input.rationale && ("object" === typeof input.operation && null !== input.operation && _io8(input.operation)); const _io8 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.specification && "string" === typeof input.description && ("string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path)) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method) && (null === input.responseBody || "object" === typeof input.responseBody && null !== input.responseBody && _io9(input.responseBody)) && (Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _io10(elem))) && (null === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && _io14(input.requestBody)); const _io9 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _io10 = input => "string" === typeof input.description && ("string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name)) && ("object" === typeof input.schema && null !== input.schema && _iu1(input.schema)); const _io11 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -9223372036854776000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 9223372036854776000)) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -9223372036854776000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 9223372036854776000)) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type; const _io12 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type; const _io13 = input => (undefined === input.format || true === _iv7.has(input.format)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type; const _io14 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _iu0 = input => (() => {
|
|
1780
1756
|
if ("getAnalysisSections" === input.type)
|
|
1781
1757
|
return _io1(input);
|