@skyramp/mcp 0.3.8 → 0.4.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/commands/commandLibrary.d.ts +1 -1
- package/build/commands/commandLibrary.js +3 -3
- package/build/commands/recommendTestsAndExecuteCommand.d.ts +1 -1
- package/build/commands/recommendTestsAndExecuteCommand.js +35 -20
- package/build/commands/testThisEndpointCommand.js +35 -19
- package/build/index.js +9 -3
- package/build/playwright/blueprintDigest.d.ts +15 -0
- package/build/playwright/blueprintDigest.js +152 -0
- package/build/playwright/blueprintDigestStore.d.ts +31 -0
- package/build/playwright/blueprintDigestStore.js +117 -0
- package/build/playwright/registerPlaywrightTools.js +60 -12
- package/build/playwright/traceRecordingPrompt.js +8 -7
- package/build/prompts/enhance-assertions/sharedAssertionRules.js +9 -8
- package/build/prompts/enhance-assertions/uiAssertionsPrompt.js +24 -2
- package/build/prompts/promptAssets.d.ts +20 -0
- package/build/prompts/promptAssets.js +55 -0
- package/build/prompts/sut-setup/modes/dockerComposePrompt.js +19 -5
- package/build/prompts/test-maintenance/actionsInstructions.d.ts +4 -0
- package/build/prompts/test-maintenance/actionsInstructions.js +14 -2
- package/build/prompts/test-maintenance/drift-analysis-prompt.d.ts +0 -10
- package/build/prompts/test-maintenance/drift-analysis-prompt.js +2 -11
- package/build/prompts/test-maintenance/uiDriftAnalysisSections.js +8 -4
- package/build/prompts/test-recommendation/diffExecutionPlan.d.ts +5 -22
- package/build/prompts/test-recommendation/diffExecutionPlan.js +37 -465
- package/build/prompts/test-recommendation/recommendationSections.d.ts +7 -17
- package/build/prompts/test-recommendation/recommendationSections.js +67 -309
- package/build/prompts/test-recommendation/recommendationShared.d.ts +19 -47
- package/build/prompts/test-recommendation/recommendationShared.js +49 -155
- package/build/prompts/test-recommendation/registerRecommendTestsPrompt.d.ts +0 -5
- package/build/prompts/test-recommendation/registerRecommendTestsPrompt.js +10 -153
- package/build/prompts/test-recommendation/test-recommendation-prompt.d.ts +2 -29
- package/build/prompts/test-recommendation/test-recommendation-prompt.js +32 -457
- package/build/prompts/testbot/planDeclarations.d.ts +6 -0
- package/build/prompts/testbot/planDeclarations.js +9 -0
- package/build/prompts/testbot/testbot-prompts.d.ts +8 -0
- package/build/prompts/testbot/testbot-prompts.js +256 -381
- package/build/recommendation/answers.d.ts +35 -0
- package/build/recommendation/answers.js +96 -0
- package/build/recommendation/registerPlan.d.ts +49 -0
- package/build/recommendation/registerPlan.js +117 -0
- package/build/recommendation/runVerifiers.d.ts +10 -0
- package/build/recommendation/runVerifiers.js +49 -0
- package/build/recommendation/subjectStep.d.ts +42 -0
- package/build/recommendation/subjectStep.js +86 -0
- package/build/recommendation/types.d.ts +163 -0
- package/build/recommendation/types.js +20 -0
- package/build/recommendation/verifierContracts.d.ts +382 -0
- package/build/recommendation/verifierContracts.js +263 -0
- package/build/recommendation/verifiers/changedFile.d.ts +2 -0
- package/build/recommendation/verifiers/changedFile.js +82 -0
- package/build/recommendation/verifiers/citedPath.d.ts +12 -0
- package/build/recommendation/verifiers/citedPath.js +35 -0
- package/build/recommendation/verifiers/coverage.d.ts +7 -0
- package/build/recommendation/verifiers/coverage.js +617 -0
- package/build/recommendation/verifiers/deliveredMatchesPlan.d.ts +11 -0
- package/build/recommendation/verifiers/deliveredMatchesPlan.js +33 -0
- package/build/recommendation/verifiers/endpointGrounded.d.ts +17 -0
- package/build/recommendation/verifiers/endpointGrounded.js +128 -0
- package/build/recommendation/verifiers/existingCoverage.d.ts +6 -0
- package/build/recommendation/verifiers/existingCoverage.js +51 -0
- package/build/recommendation/verifiers/expectedOutcome.d.ts +31 -0
- package/build/recommendation/verifiers/expectedOutcome.js +105 -0
- package/build/recommendation/verifiers/removedElementGuarded.d.ts +2 -0
- package/build/recommendation/verifiers/removedElementGuarded.js +57 -0
- package/build/recommendation/verifiers/reportedCategory.d.ts +26 -0
- package/build/recommendation/verifiers/reportedCategory.js +84 -0
- package/build/recommendation/verifiers/screenRoute.d.ts +10 -0
- package/build/recommendation/verifiers/screenRoute.js +118 -0
- package/build/recommendation/verifiers/statedDifference.d.ts +6 -0
- package/build/recommendation/verifiers/statedDifference.js +140 -0
- package/build/recommendation/verifiers/uiElementGrounded.d.ts +7 -0
- package/build/recommendation/verifiers/uiElementGrounded.js +318 -0
- package/build/resources/analysisResources.js +1 -114
- package/build/resources/testbotResource.js +23 -13
- package/build/services/ModularizationService.js +2 -1
- package/build/services/TestDiscoveryService.d.ts +3 -72
- package/build/services/TestDiscoveryService.js +10 -303
- package/build/services/containerEnv.d.ts +1 -1
- package/build/services/containerEnv.js +12 -0
- package/build/skills/fixTestImportErrorsSkill.d.ts +13 -0
- package/build/skills/fixTestImportErrorsSkill.js +20 -0
- package/build/toolNames.d.ts +1 -0
- package/build/toolNames.js +1 -0
- package/build/tools/code-refactor/enhanceAssertionsTool.js +3 -3
- package/build/tools/code-refactor/modularizationTool.js +2 -1
- package/build/tools/executeSkyrampTestTool.d.ts +80 -0
- package/build/tools/executeSkyrampTestTool.js +246 -19
- package/build/tools/generate-tests/generateBatchScenarioRestTool.js +6 -0
- package/build/tools/generate-tests/generateContractRestTool.js +3 -3
- package/build/tools/generate-tests/planGuard.d.ts +2 -2
- package/build/tools/generate-tests/planGuard.js +78 -18
- package/build/tools/one-click/oneClickTool.d.ts +0 -1
- package/build/tools/one-click/oneClickTool.js +0 -5
- package/build/tools/submitReportTool.d.ts +48 -42
- package/build/tools/submitReportTool.js +576 -193
- package/build/tools/test-management/actionsTool.js +72 -4
- package/build/tools/test-management/analyzeChangesTool.d.ts +144 -48
- package/build/tools/test-management/analyzeChangesTool.js +212 -1219
- package/build/tools/test-management/analyzeTestHealthTool.js +13 -24
- package/build/tools/test-management/index.d.ts +1 -0
- package/build/tools/test-management/index.js +1 -0
- package/build/tools/test-management/registerTestPlanTool.d.ts +795 -172
- package/build/tools/test-management/registerTestPlanTool.js +609 -542
- package/build/tools/test-management/resolveScreenTool.d.ts +75 -0
- package/build/tools/test-management/resolveScreenTool.js +289 -0
- package/build/types/BlueprintDigest.d.ts +34 -0
- package/build/types/BlueprintDigest.js +1 -0
- package/build/types/RepositoryAnalysis.d.ts +20 -1559
- package/build/types/RepositoryAnalysis.js +2 -58
- package/build/types/StepMethod.d.ts +40 -0
- package/build/types/StepMethod.js +77 -0
- package/build/types/TestAnalysis.d.ts +12 -0
- package/build/types/TestExecution.d.ts +4 -0
- package/build/types/TestRecommendation.d.ts +24 -24
- package/build/types/TestRecommendation.js +91 -89
- package/build/types/TestbotPromptOptions.d.ts +0 -4
- package/build/types/TestbotReport.d.ts +64 -2
- package/build/utils/AnalysisStateManager.d.ts +79 -113
- package/build/utils/AnalysisStateManager.js +147 -57
- package/build/utils/assertion-verify/api-shared-lints.js +1 -1
- package/build/utils/assertion-verify/metrics.js +85 -36
- package/build/utils/assertion-verify/ui-lints.d.ts +0 -5
- package/build/utils/assertion-verify/ui-lints.js +32 -0
- package/build/utils/branchDiff.d.ts +63 -31
- package/build/utils/branchDiff.js +242 -94
- package/build/utils/containedPath.d.ts +18 -0
- package/build/utils/containedPath.js +73 -0
- package/build/utils/dartRouteExtractor.d.ts +18 -34
- package/build/utils/dartRouteExtractor.js +101 -173
- package/build/utils/featureFlags.d.ts +12 -0
- package/build/utils/featureFlags.js +14 -0
- package/build/utils/frontendSelectors.d.ts +48 -27
- package/build/utils/frontendSelectors.js +241 -80
- package/build/utils/pathMatching.d.ts +2 -4
- package/build/utils/pathMatching.js +2 -4
- package/build/utils/planMatchKeys.d.ts +38 -47
- package/build/utils/planMatchKeys.js +143 -81
- package/build/utils/rebaselineSnapshots.d.ts +24 -0
- package/build/utils/rebaselineSnapshots.js +65 -0
- package/build/utils/removedUiElements.d.ts +22 -0
- package/build/utils/removedUiElements.js +106 -0
- package/build/utils/reportVerification.d.ts +2 -6
- package/build/utils/reportVerification.js +61 -2
- package/build/utils/screenRoutes.d.ts +66 -0
- package/build/utils/screenRoutes.js +727 -0
- package/build/utils/sourceRouteExtractor.js +320 -112
- package/build/utils/testFileClassification.d.ts +11 -2
- package/build/utils/testFileClassification.js +44 -2
- package/build/utils/testFixtures.d.ts +5 -0
- package/build/utils/testFixtures.js +13 -0
- package/build/utils/utils.d.ts +0 -1
- package/build/utils/utils.js +0 -11
- package/build/utils/versions.d.ts +3 -3
- package/build/utils/versions.js +1 -1
- package/build/workspace/workspace.d.ts +12 -12
- package/node_modules/playwright/lib/mcp/skyramp/assertHiddenTool.js +56 -0
- package/node_modules/playwright/lib/mcp/skyramp/assertTool.js +2 -1
- package/node_modules/playwright/lib/mcp/skyramp/loadTraceTool.js +10 -0
- package/node_modules/playwright/lib/mcp/skyramp/skyRampImport.js +4 -1
- package/node_modules/playwright/lib/mcp/skyramp/traceRecordingBackend.js +160 -1
- package/node_modules/playwright/lib/mcp/test/skyRampExport.js +4 -2
- package/node_modules/playwright/node_modules/playwright-core/lib/server/codegen/skyramp/jsonlReader.js +1 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +2 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder.js +5 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/{index.-Id052Lr.js → index.B7KbSQcC.js} +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.html +1 -1
- package/node_modules/playwright/node_modules/playwright-core/package.json +1 -1
- package/node_modules/playwright/node_modules/playwright-core/src/server/codegen/skyramp/jsonlReader.ts +1 -1
- package/node_modules/playwright/node_modules/playwright-core/src/server/recorder/recorderSignalProcessor.ts +7 -0
- package/node_modules/playwright/node_modules/playwright-core/src/server/recorder.ts +6 -1
- package/node_modules/playwright/package.json +1 -1
- package/package.json +4 -3
- package/plugin/.claude-plugin/plugin.json +8 -0
- package/plugin/plugin.json +6 -0
- package/plugin/prompts/declaring-a-plan.md +20 -0
- package/plugin/prompts/generate-tests/context-fetching.md +4 -0
- package/plugin/prompts/generate-tests/execution-plan.md +63 -0
- package/plugin/prompts/generate-tests/generation.md +108 -0
- package/plugin/prompts/generate-tests/path-parameters.md +1 -0
- package/plugin/prompts/generate-tests/reasoning-protocol.md +17 -0
- package/plugin/prompts/generate-tests/tool-workflow-variants.md +61 -0
- package/plugin/prompts/generate-tests/tool-workflows.md +65 -0
- package/plugin/prompts/plan-tests.md +42 -0
- package/plugin/prompts/testbot-task1.md +82 -0
- package/plugin/skills/fix-test-import-errors/SKILL.md +98 -0
- package/build/prompts/test-recommendation/analysisOutputPrompt.d.ts +0 -84
- package/build/prompts/test-recommendation/analysisOutputPrompt.js +0 -369
- package/build/prompts/test-recommendation/fullRepoCatalog.d.ts +0 -7
- package/build/prompts/test-recommendation/fullRepoCatalog.js +0 -283
- package/build/prompts/test-recommendation/scopeAssessment.d.ts +0 -81
- package/build/prompts/test-recommendation/scopeAssessment.js +0 -359
- package/build/recommendation/budgeters/diversityBalancedBudgeter.d.ts +0 -7
- package/build/recommendation/budgeters/diversityBalancedBudgeter.js +0 -105
- package/build/recommendation/budgeters/fixedNBudgeter.d.ts +0 -7
- package/build/recommendation/budgeters/fixedNBudgeter.js +0 -11
- package/build/recommendation/budgeters/shared.d.ts +0 -32
- package/build/recommendation/budgeters/shared.js +0 -246
- package/build/recommendation/discriminators.d.ts +0 -37
- package/build/recommendation/discriminators.js +0 -379
- package/build/recommendation/diversity.d.ts +0 -47
- package/build/recommendation/diversity.js +0 -101
- package/build/recommendation/planRanker.d.ts +0 -65
- package/build/recommendation/planRanker.js +0 -83
- package/build/recommendation/testFixtures.d.ts +0 -25
- package/build/recommendation/testFixtures.js +0 -45
- package/build/types/FrontendIntegration.d.ts +0 -28
- package/build/types/FrontendIntegration.js +0 -22
- package/build/types/Recommendation.d.ts +0 -146
- package/build/types/Recommendation.js +0 -74
- package/build/utils/changedRoutes.d.ts +0 -29
- package/build/utils/changedRoutes.js +0 -87
- package/build/utils/frontendIntegration.d.ts +0 -9
- package/build/utils/frontendIntegration.js +0 -243
- package/build/utils/importerHop.d.ts +0 -135
- package/build/utils/importerHop.js +0 -489
- package/build/utils/pathAffinityClassification.d.ts +0 -49
- package/build/utils/pathAffinityClassification.js +0 -180
- package/build/utils/pythonMountPrefixes.d.ts +0 -25
- package/build/utils/pythonMountPrefixes.js +0 -347
- package/build/utils/repoScanner.d.ts +0 -34
- package/build/utils/repoScanner.js +0 -300
- package/build/utils/routeParsers.d.ts +0 -95
- package/build/utils/routeParsers.js +0 -951
- package/build/utils/scenarioDrafting.d.ts +0 -92
- package/build/utils/scenarioDrafting.js +0 -951
- package/build/utils/subjectEndpoints.d.ts +0 -19
- package/build/utils/subjectEndpoints.js +0 -98
- package/build/utils/uiPageEnumerator.d.ts +0 -172
- package/build/utils/uiPageEnumerator.js +0 -474
|
@@ -76,6 +76,9 @@ export interface ScenarioStep {
|
|
|
76
76
|
interactionType: "success" | "error" | "edge-case";
|
|
77
77
|
requestBody?: Record<string, any>;
|
|
78
78
|
queryParams?: Record<string, any>;
|
|
79
|
+
/** Parameters this step leaves out on purpose. The only way a check can tell a
|
|
80
|
+
* deliberate omission from a parameter the step has nothing to do with. */
|
|
81
|
+
omits?: string[];
|
|
79
82
|
/** A JSON object, or an array for a collection/list endpoint's response. */
|
|
80
83
|
responseBody?: Record<string, any> | any[];
|
|
81
84
|
expectedStatusCode: number;
|
|
@@ -95,7 +98,7 @@ export declare enum ScenarioSource {
|
|
|
95
98
|
Documentation = "documentation",
|
|
96
99
|
AgentEnriched = "agent-enriched"
|
|
97
100
|
}
|
|
98
|
-
export interface
|
|
101
|
+
export interface PlanScenario {
|
|
99
102
|
scenarioName: string;
|
|
100
103
|
description: string;
|
|
101
104
|
category: ScenarioCategory;
|
|
@@ -137,60 +140,19 @@ export interface BranchDiffContext {
|
|
|
137
140
|
currentBranch: string;
|
|
138
141
|
baseBranch: string;
|
|
139
142
|
changedFiles: string[];
|
|
140
|
-
|
|
141
|
-
path: string;
|
|
142
|
-
methods: Array<{
|
|
143
|
-
method: string;
|
|
144
|
-
sourceFile: string;
|
|
145
|
-
interactionCount: number;
|
|
146
|
-
}>;
|
|
147
|
-
}>;
|
|
148
|
-
modifiedEndpoints: Array<{
|
|
149
|
-
path: string;
|
|
150
|
-
methods: Array<{
|
|
151
|
-
method: string;
|
|
152
|
-
sourceFile: string;
|
|
153
|
-
changeType: "added" | "modified" | "removed";
|
|
154
|
-
}>;
|
|
155
|
-
}>;
|
|
156
|
-
removedEndpoints?: Array<{
|
|
157
|
-
path: string;
|
|
158
|
-
methods: Array<{
|
|
159
|
-
method: string;
|
|
160
|
-
sourceFile: string;
|
|
161
|
-
changeType: "removed";
|
|
162
|
-
}>;
|
|
163
|
-
}>;
|
|
164
|
-
affectedServices: string[];
|
|
143
|
+
affectedServices?: string[];
|
|
165
144
|
summary?: string;
|
|
166
145
|
}
|
|
167
|
-
export interface RouteDiscoveryInfo {
|
|
168
|
-
/** Files the LLM should inspect to infer endpoint methods and paths from source. */
|
|
169
|
-
candidateFiles: string[];
|
|
170
|
-
/** Static scanner output. Best-effort hints only, not an authoritative catalog. */
|
|
171
|
-
staticHints: Array<{
|
|
172
|
-
path: string;
|
|
173
|
-
methods: string[];
|
|
174
|
-
sourceFile: string;
|
|
175
|
-
}>;
|
|
176
|
-
/** OpenAPI paths from workspace config. Authoritative when specFetchSucceeded is true. */
|
|
177
|
-
openApiPaths: string[];
|
|
178
|
-
/** Router/module entry points that help the LLM reconstruct full mounted paths. */
|
|
179
|
-
routerMountContext: string[];
|
|
180
|
-
/** Full diff file path when available; read this to ground endpoint extraction in changed code. */
|
|
181
|
-
diffFilePath?: string;
|
|
182
|
-
}
|
|
183
146
|
export interface RepositoryAnalysis {
|
|
184
147
|
metadata: AnalysisMetadata;
|
|
185
148
|
projectClassification: ProjectClassification;
|
|
186
149
|
technologyStack: TechnologyStack;
|
|
187
150
|
businessContext: BusinessContext;
|
|
188
151
|
artifacts: DiscoveredArtifacts;
|
|
189
|
-
|
|
152
|
+
workspace: WorkspaceContext;
|
|
190
153
|
authentication: AuthenticationInfo;
|
|
191
154
|
infrastructure: InfrastructureInfo;
|
|
192
155
|
existingTests: ExistingTestInfo;
|
|
193
|
-
routeDiscovery?: RouteDiscoveryInfo;
|
|
194
156
|
branchDiffContext?: BranchDiffContext;
|
|
195
157
|
}
|
|
196
158
|
export interface AnalysisMetadata {
|
|
@@ -220,7 +182,6 @@ export interface BusinessContext {
|
|
|
220
182
|
userFlows: string[];
|
|
221
183
|
dataFlows: string[];
|
|
222
184
|
integrationPatterns: string[];
|
|
223
|
-
draftedScenarios: DraftedScenario[];
|
|
224
185
|
}
|
|
225
186
|
export interface DiscoveredArtifacts {
|
|
226
187
|
openApiSpecs: Array<{
|
|
@@ -243,10 +204,10 @@ export interface TraceFile {
|
|
|
243
204
|
analyzed?: boolean;
|
|
244
205
|
userFlows?: string[];
|
|
245
206
|
}
|
|
246
|
-
|
|
247
|
-
|
|
207
|
+
/** Values read straight out of `.skyramp/workspace.yml`. `authentication` below
|
|
208
|
+
* is the rest of them. */
|
|
209
|
+
export interface WorkspaceContext {
|
|
248
210
|
baseUrl: string;
|
|
249
|
-
endpoints: EnrichedEndpoint[];
|
|
250
211
|
}
|
|
251
212
|
export interface AuthenticationInfo {
|
|
252
213
|
method: string;
|
|
@@ -1116,388 +1077,25 @@ export declare const scenarioStepSchema: z.ZodObject<{
|
|
|
1116
1077
|
}[] | undefined;
|
|
1117
1078
|
bodyMustInclude?: string[] | undefined;
|
|
1118
1079
|
}>;
|
|
1119
|
-
export declare const draftedScenarioSchema: z.ZodObject<{
|
|
1120
|
-
scenarioName: z.ZodString;
|
|
1121
|
-
description: z.ZodString;
|
|
1122
|
-
category: z.ZodEnum<["new_endpoint", "bug_caught", "requirement_conflict", "business_rule", "security_boundary", "data_integrity", "breaking_change", "auth", "error_handling", "workflow", "data_validation", "crud"]>;
|
|
1123
|
-
priority: z.ZodEnum<["high", "medium", "low"]>;
|
|
1124
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
1125
|
-
order: z.ZodNumber;
|
|
1126
|
-
method: z.ZodString;
|
|
1127
|
-
path: z.ZodString;
|
|
1128
|
-
description: z.ZodString;
|
|
1129
|
-
interactionType: z.ZodEnum<["success", "error", "edge-case"]>;
|
|
1130
|
-
requestBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1131
|
-
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1132
|
-
responseBody: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1133
|
-
expectedStatusCode: z.ZodNumber;
|
|
1134
|
-
expectedResponseFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1135
|
-
chainsFrom: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1136
|
-
sourceStep: z.ZodNumber;
|
|
1137
|
-
sourceField: z.ZodString;
|
|
1138
|
-
sourceLocation: z.ZodEnum<["body", "header", "cookie"]>;
|
|
1139
|
-
targetParam: z.ZodString;
|
|
1140
|
-
targetLocation: z.ZodEnum<["path", "body", "query", "header", "cookie"]>;
|
|
1141
|
-
}, "strip", z.ZodTypeAny, {
|
|
1142
|
-
sourceStep: number;
|
|
1143
|
-
sourceField: string;
|
|
1144
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1145
|
-
targetParam: string;
|
|
1146
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1147
|
-
}, {
|
|
1148
|
-
sourceStep: number;
|
|
1149
|
-
sourceField: string;
|
|
1150
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1151
|
-
targetParam: string;
|
|
1152
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1153
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
1154
|
-
sourceStep: z.ZodNumber;
|
|
1155
|
-
sourceField: z.ZodString;
|
|
1156
|
-
sourceLocation: z.ZodEnum<["body", "header", "cookie"]>;
|
|
1157
|
-
targetParam: z.ZodString;
|
|
1158
|
-
targetLocation: z.ZodEnum<["path", "body", "query", "header", "cookie"]>;
|
|
1159
|
-
}, "strip", z.ZodTypeAny, {
|
|
1160
|
-
sourceStep: number;
|
|
1161
|
-
sourceField: string;
|
|
1162
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1163
|
-
targetParam: string;
|
|
1164
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1165
|
-
}, {
|
|
1166
|
-
sourceStep: number;
|
|
1167
|
-
sourceField: string;
|
|
1168
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1169
|
-
targetParam: string;
|
|
1170
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1171
|
-
}>, "many">]>>;
|
|
1172
|
-
bodyMustInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1173
|
-
}, "strip", z.ZodTypeAny, {
|
|
1174
|
-
path: string;
|
|
1175
|
-
method: string;
|
|
1176
|
-
description: string;
|
|
1177
|
-
order: number;
|
|
1178
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1179
|
-
expectedStatusCode: number;
|
|
1180
|
-
queryParams?: Record<string, any> | undefined;
|
|
1181
|
-
requestBody?: Record<string, any> | undefined;
|
|
1182
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1183
|
-
expectedResponseFields?: string[] | undefined;
|
|
1184
|
-
chainsFrom?: {
|
|
1185
|
-
sourceStep: number;
|
|
1186
|
-
sourceField: string;
|
|
1187
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1188
|
-
targetParam: string;
|
|
1189
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1190
|
-
} | {
|
|
1191
|
-
sourceStep: number;
|
|
1192
|
-
sourceField: string;
|
|
1193
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1194
|
-
targetParam: string;
|
|
1195
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1196
|
-
}[] | undefined;
|
|
1197
|
-
bodyMustInclude?: string[] | undefined;
|
|
1198
|
-
}, {
|
|
1199
|
-
path: string;
|
|
1200
|
-
method: string;
|
|
1201
|
-
description: string;
|
|
1202
|
-
order: number;
|
|
1203
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1204
|
-
expectedStatusCode: number;
|
|
1205
|
-
queryParams?: Record<string, any> | undefined;
|
|
1206
|
-
requestBody?: Record<string, any> | undefined;
|
|
1207
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1208
|
-
expectedResponseFields?: string[] | undefined;
|
|
1209
|
-
chainsFrom?: {
|
|
1210
|
-
sourceStep: number;
|
|
1211
|
-
sourceField: string;
|
|
1212
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1213
|
-
targetParam: string;
|
|
1214
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1215
|
-
} | {
|
|
1216
|
-
sourceStep: number;
|
|
1217
|
-
sourceField: string;
|
|
1218
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1219
|
-
targetParam: string;
|
|
1220
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1221
|
-
}[] | undefined;
|
|
1222
|
-
bodyMustInclude?: string[] | undefined;
|
|
1223
|
-
}>, "many">;
|
|
1224
|
-
chainingKeys: z.ZodArray<z.ZodString, "many">;
|
|
1225
|
-
requiresAuth: z.ZodBoolean;
|
|
1226
|
-
estimatedComplexity: z.ZodEnum<["simple", "moderate", "complex"]>;
|
|
1227
|
-
source: z.ZodOptional<z.ZodNativeEnum<typeof ScenarioSource>>;
|
|
1228
|
-
testType: z.ZodOptional<z.ZodNativeEnum<typeof TestType>>;
|
|
1229
|
-
bugCatchingTarget: z.ZodOptional<z.ZodString>;
|
|
1230
|
-
}, "strip", z.ZodTypeAny, {
|
|
1231
|
-
description: string;
|
|
1232
|
-
priority: "high" | "medium" | "low";
|
|
1233
|
-
scenarioName: string;
|
|
1234
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
1235
|
-
steps: {
|
|
1236
|
-
path: string;
|
|
1237
|
-
method: string;
|
|
1238
|
-
description: string;
|
|
1239
|
-
order: number;
|
|
1240
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1241
|
-
expectedStatusCode: number;
|
|
1242
|
-
queryParams?: Record<string, any> | undefined;
|
|
1243
|
-
requestBody?: Record<string, any> | undefined;
|
|
1244
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1245
|
-
expectedResponseFields?: string[] | undefined;
|
|
1246
|
-
chainsFrom?: {
|
|
1247
|
-
sourceStep: number;
|
|
1248
|
-
sourceField: string;
|
|
1249
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1250
|
-
targetParam: string;
|
|
1251
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1252
|
-
} | {
|
|
1253
|
-
sourceStep: number;
|
|
1254
|
-
sourceField: string;
|
|
1255
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1256
|
-
targetParam: string;
|
|
1257
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1258
|
-
}[] | undefined;
|
|
1259
|
-
bodyMustInclude?: string[] | undefined;
|
|
1260
|
-
}[];
|
|
1261
|
-
chainingKeys: string[];
|
|
1262
|
-
requiresAuth: boolean;
|
|
1263
|
-
estimatedComplexity: "simple" | "moderate" | "complex";
|
|
1264
|
-
testType?: TestType | undefined;
|
|
1265
|
-
source?: ScenarioSource | undefined;
|
|
1266
|
-
bugCatchingTarget?: string | undefined;
|
|
1267
|
-
}, {
|
|
1268
|
-
description: string;
|
|
1269
|
-
priority: "high" | "medium" | "low";
|
|
1270
|
-
scenarioName: string;
|
|
1271
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
1272
|
-
steps: {
|
|
1273
|
-
path: string;
|
|
1274
|
-
method: string;
|
|
1275
|
-
description: string;
|
|
1276
|
-
order: number;
|
|
1277
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1278
|
-
expectedStatusCode: number;
|
|
1279
|
-
queryParams?: Record<string, any> | undefined;
|
|
1280
|
-
requestBody?: Record<string, any> | undefined;
|
|
1281
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1282
|
-
expectedResponseFields?: string[] | undefined;
|
|
1283
|
-
chainsFrom?: {
|
|
1284
|
-
sourceStep: number;
|
|
1285
|
-
sourceField: string;
|
|
1286
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1287
|
-
targetParam: string;
|
|
1288
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1289
|
-
} | {
|
|
1290
|
-
sourceStep: number;
|
|
1291
|
-
sourceField: string;
|
|
1292
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1293
|
-
targetParam: string;
|
|
1294
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1295
|
-
}[] | undefined;
|
|
1296
|
-
bodyMustInclude?: string[] | undefined;
|
|
1297
|
-
}[];
|
|
1298
|
-
chainingKeys: string[];
|
|
1299
|
-
requiresAuth: boolean;
|
|
1300
|
-
estimatedComplexity: "simple" | "moderate" | "complex";
|
|
1301
|
-
testType?: TestType | undefined;
|
|
1302
|
-
source?: ScenarioSource | undefined;
|
|
1303
|
-
bugCatchingTarget?: string | undefined;
|
|
1304
|
-
}>;
|
|
1305
1080
|
export declare const branchDiffContextSchema: z.ZodObject<{
|
|
1306
1081
|
currentBranch: z.ZodString;
|
|
1307
1082
|
baseBranch: z.ZodString;
|
|
1308
1083
|
changedFiles: z.ZodArray<z.ZodString, "many">;
|
|
1309
|
-
|
|
1310
|
-
path: z.ZodString;
|
|
1311
|
-
methods: z.ZodArray<z.ZodObject<{
|
|
1312
|
-
method: z.ZodString;
|
|
1313
|
-
sourceFile: z.ZodString;
|
|
1314
|
-
interactionCount: z.ZodNumber;
|
|
1315
|
-
}, "strip", z.ZodTypeAny, {
|
|
1316
|
-
method: string;
|
|
1317
|
-
sourceFile: string;
|
|
1318
|
-
interactionCount: number;
|
|
1319
|
-
}, {
|
|
1320
|
-
method: string;
|
|
1321
|
-
sourceFile: string;
|
|
1322
|
-
interactionCount: number;
|
|
1323
|
-
}>, "many">;
|
|
1324
|
-
}, "strip", z.ZodTypeAny, {
|
|
1325
|
-
path: string;
|
|
1326
|
-
methods: {
|
|
1327
|
-
method: string;
|
|
1328
|
-
sourceFile: string;
|
|
1329
|
-
interactionCount: number;
|
|
1330
|
-
}[];
|
|
1331
|
-
}, {
|
|
1332
|
-
path: string;
|
|
1333
|
-
methods: {
|
|
1334
|
-
method: string;
|
|
1335
|
-
sourceFile: string;
|
|
1336
|
-
interactionCount: number;
|
|
1337
|
-
}[];
|
|
1338
|
-
}>, "many">;
|
|
1339
|
-
modifiedEndpoints: z.ZodArray<z.ZodObject<{
|
|
1340
|
-
path: z.ZodString;
|
|
1341
|
-
methods: z.ZodArray<z.ZodObject<{
|
|
1342
|
-
method: z.ZodString;
|
|
1343
|
-
sourceFile: z.ZodString;
|
|
1344
|
-
changeType: z.ZodEnum<["added", "modified", "removed"]>;
|
|
1345
|
-
}, "strip", z.ZodTypeAny, {
|
|
1346
|
-
method: string;
|
|
1347
|
-
sourceFile: string;
|
|
1348
|
-
changeType: "modified" | "added" | "removed";
|
|
1349
|
-
}, {
|
|
1350
|
-
method: string;
|
|
1351
|
-
sourceFile: string;
|
|
1352
|
-
changeType: "modified" | "added" | "removed";
|
|
1353
|
-
}>, "many">;
|
|
1354
|
-
}, "strip", z.ZodTypeAny, {
|
|
1355
|
-
path: string;
|
|
1356
|
-
methods: {
|
|
1357
|
-
method: string;
|
|
1358
|
-
sourceFile: string;
|
|
1359
|
-
changeType: "modified" | "added" | "removed";
|
|
1360
|
-
}[];
|
|
1361
|
-
}, {
|
|
1362
|
-
path: string;
|
|
1363
|
-
methods: {
|
|
1364
|
-
method: string;
|
|
1365
|
-
sourceFile: string;
|
|
1366
|
-
changeType: "modified" | "added" | "removed";
|
|
1367
|
-
}[];
|
|
1368
|
-
}>, "many">;
|
|
1369
|
-
removedEndpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1370
|
-
path: z.ZodString;
|
|
1371
|
-
methods: z.ZodArray<z.ZodObject<{
|
|
1372
|
-
method: z.ZodString;
|
|
1373
|
-
sourceFile: z.ZodString;
|
|
1374
|
-
changeType: z.ZodLiteral<"removed">;
|
|
1375
|
-
}, "strip", z.ZodTypeAny, {
|
|
1376
|
-
method: string;
|
|
1377
|
-
sourceFile: string;
|
|
1378
|
-
changeType: "removed";
|
|
1379
|
-
}, {
|
|
1380
|
-
method: string;
|
|
1381
|
-
sourceFile: string;
|
|
1382
|
-
changeType: "removed";
|
|
1383
|
-
}>, "many">;
|
|
1384
|
-
}, "strip", z.ZodTypeAny, {
|
|
1385
|
-
path: string;
|
|
1386
|
-
methods: {
|
|
1387
|
-
method: string;
|
|
1388
|
-
sourceFile: string;
|
|
1389
|
-
changeType: "removed";
|
|
1390
|
-
}[];
|
|
1391
|
-
}, {
|
|
1392
|
-
path: string;
|
|
1393
|
-
methods: {
|
|
1394
|
-
method: string;
|
|
1395
|
-
sourceFile: string;
|
|
1396
|
-
changeType: "removed";
|
|
1397
|
-
}[];
|
|
1398
|
-
}>, "many">>;
|
|
1399
|
-
affectedServices: z.ZodArray<z.ZodString, "many">;
|
|
1084
|
+
affectedServices: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1400
1085
|
summary: z.ZodOptional<z.ZodString>;
|
|
1401
1086
|
}, "strip", z.ZodTypeAny, {
|
|
1402
1087
|
currentBranch: string;
|
|
1403
1088
|
baseBranch: string;
|
|
1404
1089
|
changedFiles: string[];
|
|
1405
|
-
|
|
1406
|
-
path: string;
|
|
1407
|
-
methods: {
|
|
1408
|
-
method: string;
|
|
1409
|
-
sourceFile: string;
|
|
1410
|
-
interactionCount: number;
|
|
1411
|
-
}[];
|
|
1412
|
-
}[];
|
|
1413
|
-
modifiedEndpoints: {
|
|
1414
|
-
path: string;
|
|
1415
|
-
methods: {
|
|
1416
|
-
method: string;
|
|
1417
|
-
sourceFile: string;
|
|
1418
|
-
changeType: "modified" | "added" | "removed";
|
|
1419
|
-
}[];
|
|
1420
|
-
}[];
|
|
1421
|
-
affectedServices: string[];
|
|
1422
|
-
removedEndpoints?: {
|
|
1423
|
-
path: string;
|
|
1424
|
-
methods: {
|
|
1425
|
-
method: string;
|
|
1426
|
-
sourceFile: string;
|
|
1427
|
-
changeType: "removed";
|
|
1428
|
-
}[];
|
|
1429
|
-
}[] | undefined;
|
|
1090
|
+
affectedServices?: string[] | undefined;
|
|
1430
1091
|
summary?: string | undefined;
|
|
1431
1092
|
}, {
|
|
1432
1093
|
currentBranch: string;
|
|
1433
1094
|
baseBranch: string;
|
|
1434
1095
|
changedFiles: string[];
|
|
1435
|
-
|
|
1436
|
-
path: string;
|
|
1437
|
-
methods: {
|
|
1438
|
-
method: string;
|
|
1439
|
-
sourceFile: string;
|
|
1440
|
-
interactionCount: number;
|
|
1441
|
-
}[];
|
|
1442
|
-
}[];
|
|
1443
|
-
modifiedEndpoints: {
|
|
1444
|
-
path: string;
|
|
1445
|
-
methods: {
|
|
1446
|
-
method: string;
|
|
1447
|
-
sourceFile: string;
|
|
1448
|
-
changeType: "modified" | "added" | "removed";
|
|
1449
|
-
}[];
|
|
1450
|
-
}[];
|
|
1451
|
-
affectedServices: string[];
|
|
1452
|
-
removedEndpoints?: {
|
|
1453
|
-
path: string;
|
|
1454
|
-
methods: {
|
|
1455
|
-
method: string;
|
|
1456
|
-
sourceFile: string;
|
|
1457
|
-
changeType: "removed";
|
|
1458
|
-
}[];
|
|
1459
|
-
}[] | undefined;
|
|
1096
|
+
affectedServices?: string[] | undefined;
|
|
1460
1097
|
summary?: string | undefined;
|
|
1461
1098
|
}>;
|
|
1462
|
-
export declare const routeDiscoveryInfoSchema: z.ZodObject<{
|
|
1463
|
-
candidateFiles: z.ZodArray<z.ZodString, "many">;
|
|
1464
|
-
staticHints: z.ZodArray<z.ZodObject<{
|
|
1465
|
-
path: z.ZodString;
|
|
1466
|
-
methods: z.ZodArray<z.ZodString, "many">;
|
|
1467
|
-
sourceFile: z.ZodString;
|
|
1468
|
-
}, "strip", z.ZodTypeAny, {
|
|
1469
|
-
path: string;
|
|
1470
|
-
sourceFile: string;
|
|
1471
|
-
methods: string[];
|
|
1472
|
-
}, {
|
|
1473
|
-
path: string;
|
|
1474
|
-
sourceFile: string;
|
|
1475
|
-
methods: string[];
|
|
1476
|
-
}>, "many">;
|
|
1477
|
-
openApiPaths: z.ZodArray<z.ZodString, "many">;
|
|
1478
|
-
routerMountContext: z.ZodArray<z.ZodString, "many">;
|
|
1479
|
-
diffFilePath: z.ZodOptional<z.ZodString>;
|
|
1480
|
-
}, "strip", z.ZodTypeAny, {
|
|
1481
|
-
candidateFiles: string[];
|
|
1482
|
-
staticHints: {
|
|
1483
|
-
path: string;
|
|
1484
|
-
sourceFile: string;
|
|
1485
|
-
methods: string[];
|
|
1486
|
-
}[];
|
|
1487
|
-
openApiPaths: string[];
|
|
1488
|
-
routerMountContext: string[];
|
|
1489
|
-
diffFilePath?: string | undefined;
|
|
1490
|
-
}, {
|
|
1491
|
-
candidateFiles: string[];
|
|
1492
|
-
staticHints: {
|
|
1493
|
-
path: string;
|
|
1494
|
-
sourceFile: string;
|
|
1495
|
-
methods: string[];
|
|
1496
|
-
}[];
|
|
1497
|
-
openApiPaths: string[];
|
|
1498
|
-
routerMountContext: string[];
|
|
1499
|
-
diffFilePath?: string | undefined;
|
|
1500
|
-
}>;
|
|
1501
1099
|
export declare const analysisMetadataSchema: z.ZodObject<{
|
|
1502
1100
|
repositoryName: z.ZodString;
|
|
1503
1101
|
analysisDate: z.ZodString;
|
|
@@ -1604,278 +1202,16 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1604
1202
|
userFlows: z.ZodArray<z.ZodString, "many">;
|
|
1605
1203
|
dataFlows: z.ZodArray<z.ZodString, "many">;
|
|
1606
1204
|
integrationPatterns: z.ZodArray<z.ZodString, "many">;
|
|
1607
|
-
draftedScenarios: z.ZodArray<z.ZodObject<{
|
|
1608
|
-
scenarioName: z.ZodString;
|
|
1609
|
-
description: z.ZodString;
|
|
1610
|
-
category: z.ZodEnum<["new_endpoint", "bug_caught", "requirement_conflict", "business_rule", "security_boundary", "data_integrity", "breaking_change", "auth", "error_handling", "workflow", "data_validation", "crud"]>;
|
|
1611
|
-
priority: z.ZodEnum<["high", "medium", "low"]>;
|
|
1612
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
1613
|
-
order: z.ZodNumber;
|
|
1614
|
-
method: z.ZodString;
|
|
1615
|
-
path: z.ZodString;
|
|
1616
|
-
description: z.ZodString;
|
|
1617
|
-
interactionType: z.ZodEnum<["success", "error", "edge-case"]>;
|
|
1618
|
-
requestBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1619
|
-
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1620
|
-
responseBody: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1621
|
-
expectedStatusCode: z.ZodNumber;
|
|
1622
|
-
expectedResponseFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1623
|
-
chainsFrom: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1624
|
-
sourceStep: z.ZodNumber;
|
|
1625
|
-
sourceField: z.ZodString;
|
|
1626
|
-
sourceLocation: z.ZodEnum<["body", "header", "cookie"]>;
|
|
1627
|
-
targetParam: z.ZodString;
|
|
1628
|
-
targetLocation: z.ZodEnum<["path", "body", "query", "header", "cookie"]>;
|
|
1629
|
-
}, "strip", z.ZodTypeAny, {
|
|
1630
|
-
sourceStep: number;
|
|
1631
|
-
sourceField: string;
|
|
1632
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1633
|
-
targetParam: string;
|
|
1634
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1635
|
-
}, {
|
|
1636
|
-
sourceStep: number;
|
|
1637
|
-
sourceField: string;
|
|
1638
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1639
|
-
targetParam: string;
|
|
1640
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1641
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
1642
|
-
sourceStep: z.ZodNumber;
|
|
1643
|
-
sourceField: z.ZodString;
|
|
1644
|
-
sourceLocation: z.ZodEnum<["body", "header", "cookie"]>;
|
|
1645
|
-
targetParam: z.ZodString;
|
|
1646
|
-
targetLocation: z.ZodEnum<["path", "body", "query", "header", "cookie"]>;
|
|
1647
|
-
}, "strip", z.ZodTypeAny, {
|
|
1648
|
-
sourceStep: number;
|
|
1649
|
-
sourceField: string;
|
|
1650
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1651
|
-
targetParam: string;
|
|
1652
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1653
|
-
}, {
|
|
1654
|
-
sourceStep: number;
|
|
1655
|
-
sourceField: string;
|
|
1656
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1657
|
-
targetParam: string;
|
|
1658
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1659
|
-
}>, "many">]>>;
|
|
1660
|
-
bodyMustInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1661
|
-
}, "strip", z.ZodTypeAny, {
|
|
1662
|
-
path: string;
|
|
1663
|
-
method: string;
|
|
1664
|
-
description: string;
|
|
1665
|
-
order: number;
|
|
1666
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1667
|
-
expectedStatusCode: number;
|
|
1668
|
-
queryParams?: Record<string, any> | undefined;
|
|
1669
|
-
requestBody?: Record<string, any> | undefined;
|
|
1670
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1671
|
-
expectedResponseFields?: string[] | undefined;
|
|
1672
|
-
chainsFrom?: {
|
|
1673
|
-
sourceStep: number;
|
|
1674
|
-
sourceField: string;
|
|
1675
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1676
|
-
targetParam: string;
|
|
1677
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1678
|
-
} | {
|
|
1679
|
-
sourceStep: number;
|
|
1680
|
-
sourceField: string;
|
|
1681
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1682
|
-
targetParam: string;
|
|
1683
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1684
|
-
}[] | undefined;
|
|
1685
|
-
bodyMustInclude?: string[] | undefined;
|
|
1686
|
-
}, {
|
|
1687
|
-
path: string;
|
|
1688
|
-
method: string;
|
|
1689
|
-
description: string;
|
|
1690
|
-
order: number;
|
|
1691
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1692
|
-
expectedStatusCode: number;
|
|
1693
|
-
queryParams?: Record<string, any> | undefined;
|
|
1694
|
-
requestBody?: Record<string, any> | undefined;
|
|
1695
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1696
|
-
expectedResponseFields?: string[] | undefined;
|
|
1697
|
-
chainsFrom?: {
|
|
1698
|
-
sourceStep: number;
|
|
1699
|
-
sourceField: string;
|
|
1700
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1701
|
-
targetParam: string;
|
|
1702
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1703
|
-
} | {
|
|
1704
|
-
sourceStep: number;
|
|
1705
|
-
sourceField: string;
|
|
1706
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1707
|
-
targetParam: string;
|
|
1708
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1709
|
-
}[] | undefined;
|
|
1710
|
-
bodyMustInclude?: string[] | undefined;
|
|
1711
|
-
}>, "many">;
|
|
1712
|
-
chainingKeys: z.ZodArray<z.ZodString, "many">;
|
|
1713
|
-
requiresAuth: z.ZodBoolean;
|
|
1714
|
-
estimatedComplexity: z.ZodEnum<["simple", "moderate", "complex"]>;
|
|
1715
|
-
source: z.ZodOptional<z.ZodNativeEnum<typeof ScenarioSource>>;
|
|
1716
|
-
testType: z.ZodOptional<z.ZodNativeEnum<typeof TestType>>;
|
|
1717
|
-
bugCatchingTarget: z.ZodOptional<z.ZodString>;
|
|
1718
|
-
}, "strip", z.ZodTypeAny, {
|
|
1719
|
-
description: string;
|
|
1720
|
-
priority: "high" | "medium" | "low";
|
|
1721
|
-
scenarioName: string;
|
|
1722
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
1723
|
-
steps: {
|
|
1724
|
-
path: string;
|
|
1725
|
-
method: string;
|
|
1726
|
-
description: string;
|
|
1727
|
-
order: number;
|
|
1728
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1729
|
-
expectedStatusCode: number;
|
|
1730
|
-
queryParams?: Record<string, any> | undefined;
|
|
1731
|
-
requestBody?: Record<string, any> | undefined;
|
|
1732
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1733
|
-
expectedResponseFields?: string[] | undefined;
|
|
1734
|
-
chainsFrom?: {
|
|
1735
|
-
sourceStep: number;
|
|
1736
|
-
sourceField: string;
|
|
1737
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1738
|
-
targetParam: string;
|
|
1739
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1740
|
-
} | {
|
|
1741
|
-
sourceStep: number;
|
|
1742
|
-
sourceField: string;
|
|
1743
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1744
|
-
targetParam: string;
|
|
1745
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1746
|
-
}[] | undefined;
|
|
1747
|
-
bodyMustInclude?: string[] | undefined;
|
|
1748
|
-
}[];
|
|
1749
|
-
chainingKeys: string[];
|
|
1750
|
-
requiresAuth: boolean;
|
|
1751
|
-
estimatedComplexity: "simple" | "moderate" | "complex";
|
|
1752
|
-
testType?: TestType | undefined;
|
|
1753
|
-
source?: ScenarioSource | undefined;
|
|
1754
|
-
bugCatchingTarget?: string | undefined;
|
|
1755
|
-
}, {
|
|
1756
|
-
description: string;
|
|
1757
|
-
priority: "high" | "medium" | "low";
|
|
1758
|
-
scenarioName: string;
|
|
1759
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
1760
|
-
steps: {
|
|
1761
|
-
path: string;
|
|
1762
|
-
method: string;
|
|
1763
|
-
description: string;
|
|
1764
|
-
order: number;
|
|
1765
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1766
|
-
expectedStatusCode: number;
|
|
1767
|
-
queryParams?: Record<string, any> | undefined;
|
|
1768
|
-
requestBody?: Record<string, any> | undefined;
|
|
1769
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1770
|
-
expectedResponseFields?: string[] | undefined;
|
|
1771
|
-
chainsFrom?: {
|
|
1772
|
-
sourceStep: number;
|
|
1773
|
-
sourceField: string;
|
|
1774
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1775
|
-
targetParam: string;
|
|
1776
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1777
|
-
} | {
|
|
1778
|
-
sourceStep: number;
|
|
1779
|
-
sourceField: string;
|
|
1780
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1781
|
-
targetParam: string;
|
|
1782
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1783
|
-
}[] | undefined;
|
|
1784
|
-
bodyMustInclude?: string[] | undefined;
|
|
1785
|
-
}[];
|
|
1786
|
-
chainingKeys: string[];
|
|
1787
|
-
requiresAuth: boolean;
|
|
1788
|
-
estimatedComplexity: "simple" | "moderate" | "complex";
|
|
1789
|
-
testType?: TestType | undefined;
|
|
1790
|
-
source?: ScenarioSource | undefined;
|
|
1791
|
-
bugCatchingTarget?: string | undefined;
|
|
1792
|
-
}>, "many">;
|
|
1793
1205
|
}, "strip", z.ZodTypeAny, {
|
|
1794
1206
|
mainPurpose: string;
|
|
1795
1207
|
userFlows: string[];
|
|
1796
1208
|
dataFlows: string[];
|
|
1797
1209
|
integrationPatterns: string[];
|
|
1798
|
-
draftedScenarios: {
|
|
1799
|
-
description: string;
|
|
1800
|
-
priority: "high" | "medium" | "low";
|
|
1801
|
-
scenarioName: string;
|
|
1802
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
1803
|
-
steps: {
|
|
1804
|
-
path: string;
|
|
1805
|
-
method: string;
|
|
1806
|
-
description: string;
|
|
1807
|
-
order: number;
|
|
1808
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1809
|
-
expectedStatusCode: number;
|
|
1810
|
-
queryParams?: Record<string, any> | undefined;
|
|
1811
|
-
requestBody?: Record<string, any> | undefined;
|
|
1812
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1813
|
-
expectedResponseFields?: string[] | undefined;
|
|
1814
|
-
chainsFrom?: {
|
|
1815
|
-
sourceStep: number;
|
|
1816
|
-
sourceField: string;
|
|
1817
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1818
|
-
targetParam: string;
|
|
1819
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1820
|
-
} | {
|
|
1821
|
-
sourceStep: number;
|
|
1822
|
-
sourceField: string;
|
|
1823
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1824
|
-
targetParam: string;
|
|
1825
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1826
|
-
}[] | undefined;
|
|
1827
|
-
bodyMustInclude?: string[] | undefined;
|
|
1828
|
-
}[];
|
|
1829
|
-
chainingKeys: string[];
|
|
1830
|
-
requiresAuth: boolean;
|
|
1831
|
-
estimatedComplexity: "simple" | "moderate" | "complex";
|
|
1832
|
-
testType?: TestType | undefined;
|
|
1833
|
-
source?: ScenarioSource | undefined;
|
|
1834
|
-
bugCatchingTarget?: string | undefined;
|
|
1835
|
-
}[];
|
|
1836
1210
|
}, {
|
|
1837
1211
|
mainPurpose: string;
|
|
1838
1212
|
userFlows: string[];
|
|
1839
1213
|
dataFlows: string[];
|
|
1840
1214
|
integrationPatterns: string[];
|
|
1841
|
-
draftedScenarios: {
|
|
1842
|
-
description: string;
|
|
1843
|
-
priority: "high" | "medium" | "low";
|
|
1844
|
-
scenarioName: string;
|
|
1845
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
1846
|
-
steps: {
|
|
1847
|
-
path: string;
|
|
1848
|
-
method: string;
|
|
1849
|
-
description: string;
|
|
1850
|
-
order: number;
|
|
1851
|
-
interactionType: "error" | "success" | "edge-case";
|
|
1852
|
-
expectedStatusCode: number;
|
|
1853
|
-
queryParams?: Record<string, any> | undefined;
|
|
1854
|
-
requestBody?: Record<string, any> | undefined;
|
|
1855
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
1856
|
-
expectedResponseFields?: string[] | undefined;
|
|
1857
|
-
chainsFrom?: {
|
|
1858
|
-
sourceStep: number;
|
|
1859
|
-
sourceField: string;
|
|
1860
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1861
|
-
targetParam: string;
|
|
1862
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1863
|
-
} | {
|
|
1864
|
-
sourceStep: number;
|
|
1865
|
-
sourceField: string;
|
|
1866
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
1867
|
-
targetParam: string;
|
|
1868
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1869
|
-
}[] | undefined;
|
|
1870
|
-
bodyMustInclude?: string[] | undefined;
|
|
1871
|
-
}[];
|
|
1872
|
-
chainingKeys: string[];
|
|
1873
|
-
requiresAuth: boolean;
|
|
1874
|
-
estimatedComplexity: "simple" | "moderate" | "complex";
|
|
1875
|
-
testType?: TestType | undefined;
|
|
1876
|
-
source?: ScenarioSource | undefined;
|
|
1877
|
-
bugCatchingTarget?: string | undefined;
|
|
1878
|
-
}[];
|
|
1879
1215
|
}>;
|
|
1880
1216
|
artifacts: z.ZodObject<{
|
|
1881
1217
|
openApiSpecs: z.ZodArray<z.ZodObject<{
|
|
@@ -1963,460 +1299,12 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1963
1299
|
}[];
|
|
1964
1300
|
notFound: string[];
|
|
1965
1301
|
}>;
|
|
1966
|
-
|
|
1967
|
-
totalCount: z.ZodNumber;
|
|
1302
|
+
workspace: z.ZodObject<{
|
|
1968
1303
|
baseUrl: z.ZodString;
|
|
1969
|
-
endpoints: z.ZodArray<z.ZodObject<{
|
|
1970
|
-
path: z.ZodString;
|
|
1971
|
-
resourceGroup: z.ZodString;
|
|
1972
|
-
pathParams: z.ZodArray<z.ZodObject<{
|
|
1973
|
-
name: z.ZodString;
|
|
1974
|
-
type: z.ZodString;
|
|
1975
|
-
required: z.ZodBoolean;
|
|
1976
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1977
|
-
constraints: z.ZodOptional<z.ZodString>;
|
|
1978
|
-
}, "strip", z.ZodTypeAny, {
|
|
1979
|
-
type: string;
|
|
1980
|
-
name: string;
|
|
1981
|
-
required: boolean;
|
|
1982
|
-
description?: string | undefined;
|
|
1983
|
-
constraints?: string | undefined;
|
|
1984
|
-
}, {
|
|
1985
|
-
type: string;
|
|
1986
|
-
name: string;
|
|
1987
|
-
required: boolean;
|
|
1988
|
-
description?: string | undefined;
|
|
1989
|
-
constraints?: string | undefined;
|
|
1990
|
-
}>, "many">;
|
|
1991
|
-
methods: z.ZodArray<z.ZodObject<{
|
|
1992
|
-
method: z.ZodString;
|
|
1993
|
-
description: z.ZodString;
|
|
1994
|
-
queryParams: z.ZodArray<z.ZodObject<{
|
|
1995
|
-
name: z.ZodString;
|
|
1996
|
-
type: z.ZodString;
|
|
1997
|
-
required: z.ZodBoolean;
|
|
1998
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1999
|
-
constraints: z.ZodOptional<z.ZodString>;
|
|
2000
|
-
}, "strip", z.ZodTypeAny, {
|
|
2001
|
-
type: string;
|
|
2002
|
-
name: string;
|
|
2003
|
-
required: boolean;
|
|
2004
|
-
description?: string | undefined;
|
|
2005
|
-
constraints?: string | undefined;
|
|
2006
|
-
}, {
|
|
2007
|
-
type: string;
|
|
2008
|
-
name: string;
|
|
2009
|
-
required: boolean;
|
|
2010
|
-
description?: string | undefined;
|
|
2011
|
-
constraints?: string | undefined;
|
|
2012
|
-
}>, "many">;
|
|
2013
|
-
authRequired: z.ZodBoolean;
|
|
2014
|
-
authType: z.ZodOptional<z.ZodString>;
|
|
2015
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2016
|
-
sourceFile: z.ZodString;
|
|
2017
|
-
interactions: z.ZodArray<z.ZodObject<{
|
|
2018
|
-
description: z.ZodString;
|
|
2019
|
-
type: z.ZodEnum<["success", "error", "edge-case"]>;
|
|
2020
|
-
request: z.ZodObject<{
|
|
2021
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
2022
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2023
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2024
|
-
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2025
|
-
}, "strip", z.ZodTypeAny, {
|
|
2026
|
-
body?: Record<string, any> | undefined;
|
|
2027
|
-
contentType?: string | undefined;
|
|
2028
|
-
headers?: Record<string, string> | undefined;
|
|
2029
|
-
queryParams?: Record<string, any> | undefined;
|
|
2030
|
-
}, {
|
|
2031
|
-
body?: Record<string, any> | undefined;
|
|
2032
|
-
contentType?: string | undefined;
|
|
2033
|
-
headers?: Record<string, string> | undefined;
|
|
2034
|
-
queryParams?: Record<string, any> | undefined;
|
|
2035
|
-
}>;
|
|
2036
|
-
response: z.ZodObject<{
|
|
2037
|
-
statusCode: z.ZodNumber;
|
|
2038
|
-
description: z.ZodString;
|
|
2039
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2040
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2041
|
-
cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2042
|
-
name: z.ZodString;
|
|
2043
|
-
sampleValue: z.ZodString;
|
|
2044
|
-
purpose: z.ZodString;
|
|
2045
|
-
httpOnly: z.ZodBoolean;
|
|
2046
|
-
secure: z.ZodBoolean;
|
|
2047
|
-
}, "strip", z.ZodTypeAny, {
|
|
2048
|
-
name: string;
|
|
2049
|
-
sampleValue: string;
|
|
2050
|
-
purpose: string;
|
|
2051
|
-
httpOnly: boolean;
|
|
2052
|
-
secure: boolean;
|
|
2053
|
-
}, {
|
|
2054
|
-
name: string;
|
|
2055
|
-
sampleValue: string;
|
|
2056
|
-
purpose: string;
|
|
2057
|
-
httpOnly: boolean;
|
|
2058
|
-
secure: boolean;
|
|
2059
|
-
}>, "many">>;
|
|
2060
|
-
}, "strip", z.ZodTypeAny, {
|
|
2061
|
-
description: string;
|
|
2062
|
-
statusCode: number;
|
|
2063
|
-
body?: Record<string, any> | undefined;
|
|
2064
|
-
headers?: Record<string, string> | undefined;
|
|
2065
|
-
cookies?: {
|
|
2066
|
-
name: string;
|
|
2067
|
-
sampleValue: string;
|
|
2068
|
-
purpose: string;
|
|
2069
|
-
httpOnly: boolean;
|
|
2070
|
-
secure: boolean;
|
|
2071
|
-
}[] | undefined;
|
|
2072
|
-
}, {
|
|
2073
|
-
description: string;
|
|
2074
|
-
statusCode: number;
|
|
2075
|
-
body?: Record<string, any> | undefined;
|
|
2076
|
-
headers?: Record<string, string> | undefined;
|
|
2077
|
-
cookies?: {
|
|
2078
|
-
name: string;
|
|
2079
|
-
sampleValue: string;
|
|
2080
|
-
purpose: string;
|
|
2081
|
-
httpOnly: boolean;
|
|
2082
|
-
secure: boolean;
|
|
2083
|
-
}[] | undefined;
|
|
2084
|
-
}>;
|
|
2085
|
-
}, "strip", z.ZodTypeAny, {
|
|
2086
|
-
type: "error" | "success" | "edge-case";
|
|
2087
|
-
description: string;
|
|
2088
|
-
request: {
|
|
2089
|
-
body?: Record<string, any> | undefined;
|
|
2090
|
-
contentType?: string | undefined;
|
|
2091
|
-
headers?: Record<string, string> | undefined;
|
|
2092
|
-
queryParams?: Record<string, any> | undefined;
|
|
2093
|
-
};
|
|
2094
|
-
response: {
|
|
2095
|
-
description: string;
|
|
2096
|
-
statusCode: number;
|
|
2097
|
-
body?: Record<string, any> | undefined;
|
|
2098
|
-
headers?: Record<string, string> | undefined;
|
|
2099
|
-
cookies?: {
|
|
2100
|
-
name: string;
|
|
2101
|
-
sampleValue: string;
|
|
2102
|
-
purpose: string;
|
|
2103
|
-
httpOnly: boolean;
|
|
2104
|
-
secure: boolean;
|
|
2105
|
-
}[] | undefined;
|
|
2106
|
-
};
|
|
2107
|
-
}, {
|
|
2108
|
-
type: "error" | "success" | "edge-case";
|
|
2109
|
-
description: string;
|
|
2110
|
-
request: {
|
|
2111
|
-
body?: Record<string, any> | undefined;
|
|
2112
|
-
contentType?: string | undefined;
|
|
2113
|
-
headers?: Record<string, string> | undefined;
|
|
2114
|
-
queryParams?: Record<string, any> | undefined;
|
|
2115
|
-
};
|
|
2116
|
-
response: {
|
|
2117
|
-
description: string;
|
|
2118
|
-
statusCode: number;
|
|
2119
|
-
body?: Record<string, any> | undefined;
|
|
2120
|
-
headers?: Record<string, string> | undefined;
|
|
2121
|
-
cookies?: {
|
|
2122
|
-
name: string;
|
|
2123
|
-
sampleValue: string;
|
|
2124
|
-
purpose: string;
|
|
2125
|
-
httpOnly: boolean;
|
|
2126
|
-
secure: boolean;
|
|
2127
|
-
}[] | undefined;
|
|
2128
|
-
};
|
|
2129
|
-
}>, "many">;
|
|
2130
|
-
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2131
|
-
createsResource: z.ZodOptional<z.ZodString>;
|
|
2132
|
-
}, "strip", z.ZodTypeAny, {
|
|
2133
|
-
method: string;
|
|
2134
|
-
description: string;
|
|
2135
|
-
sourceFile: string;
|
|
2136
|
-
queryParams: {
|
|
2137
|
-
type: string;
|
|
2138
|
-
name: string;
|
|
2139
|
-
required: boolean;
|
|
2140
|
-
description?: string | undefined;
|
|
2141
|
-
constraints?: string | undefined;
|
|
2142
|
-
}[];
|
|
2143
|
-
authRequired: boolean;
|
|
2144
|
-
interactions: {
|
|
2145
|
-
type: "error" | "success" | "edge-case";
|
|
2146
|
-
description: string;
|
|
2147
|
-
request: {
|
|
2148
|
-
body?: Record<string, any> | undefined;
|
|
2149
|
-
contentType?: string | undefined;
|
|
2150
|
-
headers?: Record<string, string> | undefined;
|
|
2151
|
-
queryParams?: Record<string, any> | undefined;
|
|
2152
|
-
};
|
|
2153
|
-
response: {
|
|
2154
|
-
description: string;
|
|
2155
|
-
statusCode: number;
|
|
2156
|
-
body?: Record<string, any> | undefined;
|
|
2157
|
-
headers?: Record<string, string> | undefined;
|
|
2158
|
-
cookies?: {
|
|
2159
|
-
name: string;
|
|
2160
|
-
sampleValue: string;
|
|
2161
|
-
purpose: string;
|
|
2162
|
-
httpOnly: boolean;
|
|
2163
|
-
secure: boolean;
|
|
2164
|
-
}[] | undefined;
|
|
2165
|
-
};
|
|
2166
|
-
}[];
|
|
2167
|
-
authType?: string | undefined;
|
|
2168
|
-
scopes?: string[] | undefined;
|
|
2169
|
-
dependsOn?: string[] | undefined;
|
|
2170
|
-
createsResource?: string | undefined;
|
|
2171
|
-
}, {
|
|
2172
|
-
method: string;
|
|
2173
|
-
description: string;
|
|
2174
|
-
sourceFile: string;
|
|
2175
|
-
queryParams: {
|
|
2176
|
-
type: string;
|
|
2177
|
-
name: string;
|
|
2178
|
-
required: boolean;
|
|
2179
|
-
description?: string | undefined;
|
|
2180
|
-
constraints?: string | undefined;
|
|
2181
|
-
}[];
|
|
2182
|
-
authRequired: boolean;
|
|
2183
|
-
interactions: {
|
|
2184
|
-
type: "error" | "success" | "edge-case";
|
|
2185
|
-
description: string;
|
|
2186
|
-
request: {
|
|
2187
|
-
body?: Record<string, any> | undefined;
|
|
2188
|
-
contentType?: string | undefined;
|
|
2189
|
-
headers?: Record<string, string> | undefined;
|
|
2190
|
-
queryParams?: Record<string, any> | undefined;
|
|
2191
|
-
};
|
|
2192
|
-
response: {
|
|
2193
|
-
description: string;
|
|
2194
|
-
statusCode: number;
|
|
2195
|
-
body?: Record<string, any> | undefined;
|
|
2196
|
-
headers?: Record<string, string> | undefined;
|
|
2197
|
-
cookies?: {
|
|
2198
|
-
name: string;
|
|
2199
|
-
sampleValue: string;
|
|
2200
|
-
purpose: string;
|
|
2201
|
-
httpOnly: boolean;
|
|
2202
|
-
secure: boolean;
|
|
2203
|
-
}[] | undefined;
|
|
2204
|
-
};
|
|
2205
|
-
}[];
|
|
2206
|
-
authType?: string | undefined;
|
|
2207
|
-
scopes?: string[] | undefined;
|
|
2208
|
-
dependsOn?: string[] | undefined;
|
|
2209
|
-
createsResource?: string | undefined;
|
|
2210
|
-
}>, "many">;
|
|
2211
|
-
}, "strip", z.ZodTypeAny, {
|
|
2212
|
-
path: string;
|
|
2213
|
-
resourceGroup: string;
|
|
2214
|
-
pathParams: {
|
|
2215
|
-
type: string;
|
|
2216
|
-
name: string;
|
|
2217
|
-
required: boolean;
|
|
2218
|
-
description?: string | undefined;
|
|
2219
|
-
constraints?: string | undefined;
|
|
2220
|
-
}[];
|
|
2221
|
-
methods: {
|
|
2222
|
-
method: string;
|
|
2223
|
-
description: string;
|
|
2224
|
-
sourceFile: string;
|
|
2225
|
-
queryParams: {
|
|
2226
|
-
type: string;
|
|
2227
|
-
name: string;
|
|
2228
|
-
required: boolean;
|
|
2229
|
-
description?: string | undefined;
|
|
2230
|
-
constraints?: string | undefined;
|
|
2231
|
-
}[];
|
|
2232
|
-
authRequired: boolean;
|
|
2233
|
-
interactions: {
|
|
2234
|
-
type: "error" | "success" | "edge-case";
|
|
2235
|
-
description: string;
|
|
2236
|
-
request: {
|
|
2237
|
-
body?: Record<string, any> | undefined;
|
|
2238
|
-
contentType?: string | undefined;
|
|
2239
|
-
headers?: Record<string, string> | undefined;
|
|
2240
|
-
queryParams?: Record<string, any> | undefined;
|
|
2241
|
-
};
|
|
2242
|
-
response: {
|
|
2243
|
-
description: string;
|
|
2244
|
-
statusCode: number;
|
|
2245
|
-
body?: Record<string, any> | undefined;
|
|
2246
|
-
headers?: Record<string, string> | undefined;
|
|
2247
|
-
cookies?: {
|
|
2248
|
-
name: string;
|
|
2249
|
-
sampleValue: string;
|
|
2250
|
-
purpose: string;
|
|
2251
|
-
httpOnly: boolean;
|
|
2252
|
-
secure: boolean;
|
|
2253
|
-
}[] | undefined;
|
|
2254
|
-
};
|
|
2255
|
-
}[];
|
|
2256
|
-
authType?: string | undefined;
|
|
2257
|
-
scopes?: string[] | undefined;
|
|
2258
|
-
dependsOn?: string[] | undefined;
|
|
2259
|
-
createsResource?: string | undefined;
|
|
2260
|
-
}[];
|
|
2261
|
-
}, {
|
|
2262
|
-
path: string;
|
|
2263
|
-
resourceGroup: string;
|
|
2264
|
-
pathParams: {
|
|
2265
|
-
type: string;
|
|
2266
|
-
name: string;
|
|
2267
|
-
required: boolean;
|
|
2268
|
-
description?: string | undefined;
|
|
2269
|
-
constraints?: string | undefined;
|
|
2270
|
-
}[];
|
|
2271
|
-
methods: {
|
|
2272
|
-
method: string;
|
|
2273
|
-
description: string;
|
|
2274
|
-
sourceFile: string;
|
|
2275
|
-
queryParams: {
|
|
2276
|
-
type: string;
|
|
2277
|
-
name: string;
|
|
2278
|
-
required: boolean;
|
|
2279
|
-
description?: string | undefined;
|
|
2280
|
-
constraints?: string | undefined;
|
|
2281
|
-
}[];
|
|
2282
|
-
authRequired: boolean;
|
|
2283
|
-
interactions: {
|
|
2284
|
-
type: "error" | "success" | "edge-case";
|
|
2285
|
-
description: string;
|
|
2286
|
-
request: {
|
|
2287
|
-
body?: Record<string, any> | undefined;
|
|
2288
|
-
contentType?: string | undefined;
|
|
2289
|
-
headers?: Record<string, string> | undefined;
|
|
2290
|
-
queryParams?: Record<string, any> | undefined;
|
|
2291
|
-
};
|
|
2292
|
-
response: {
|
|
2293
|
-
description: string;
|
|
2294
|
-
statusCode: number;
|
|
2295
|
-
body?: Record<string, any> | undefined;
|
|
2296
|
-
headers?: Record<string, string> | undefined;
|
|
2297
|
-
cookies?: {
|
|
2298
|
-
name: string;
|
|
2299
|
-
sampleValue: string;
|
|
2300
|
-
purpose: string;
|
|
2301
|
-
httpOnly: boolean;
|
|
2302
|
-
secure: boolean;
|
|
2303
|
-
}[] | undefined;
|
|
2304
|
-
};
|
|
2305
|
-
}[];
|
|
2306
|
-
authType?: string | undefined;
|
|
2307
|
-
scopes?: string[] | undefined;
|
|
2308
|
-
dependsOn?: string[] | undefined;
|
|
2309
|
-
createsResource?: string | undefined;
|
|
2310
|
-
}[];
|
|
2311
|
-
}>, "many">;
|
|
2312
1304
|
}, "strip", z.ZodTypeAny, {
|
|
2313
1305
|
baseUrl: string;
|
|
2314
|
-
totalCount: number;
|
|
2315
|
-
endpoints: {
|
|
2316
|
-
path: string;
|
|
2317
|
-
resourceGroup: string;
|
|
2318
|
-
pathParams: {
|
|
2319
|
-
type: string;
|
|
2320
|
-
name: string;
|
|
2321
|
-
required: boolean;
|
|
2322
|
-
description?: string | undefined;
|
|
2323
|
-
constraints?: string | undefined;
|
|
2324
|
-
}[];
|
|
2325
|
-
methods: {
|
|
2326
|
-
method: string;
|
|
2327
|
-
description: string;
|
|
2328
|
-
sourceFile: string;
|
|
2329
|
-
queryParams: {
|
|
2330
|
-
type: string;
|
|
2331
|
-
name: string;
|
|
2332
|
-
required: boolean;
|
|
2333
|
-
description?: string | undefined;
|
|
2334
|
-
constraints?: string | undefined;
|
|
2335
|
-
}[];
|
|
2336
|
-
authRequired: boolean;
|
|
2337
|
-
interactions: {
|
|
2338
|
-
type: "error" | "success" | "edge-case";
|
|
2339
|
-
description: string;
|
|
2340
|
-
request: {
|
|
2341
|
-
body?: Record<string, any> | undefined;
|
|
2342
|
-
contentType?: string | undefined;
|
|
2343
|
-
headers?: Record<string, string> | undefined;
|
|
2344
|
-
queryParams?: Record<string, any> | undefined;
|
|
2345
|
-
};
|
|
2346
|
-
response: {
|
|
2347
|
-
description: string;
|
|
2348
|
-
statusCode: number;
|
|
2349
|
-
body?: Record<string, any> | undefined;
|
|
2350
|
-
headers?: Record<string, string> | undefined;
|
|
2351
|
-
cookies?: {
|
|
2352
|
-
name: string;
|
|
2353
|
-
sampleValue: string;
|
|
2354
|
-
purpose: string;
|
|
2355
|
-
httpOnly: boolean;
|
|
2356
|
-
secure: boolean;
|
|
2357
|
-
}[] | undefined;
|
|
2358
|
-
};
|
|
2359
|
-
}[];
|
|
2360
|
-
authType?: string | undefined;
|
|
2361
|
-
scopes?: string[] | undefined;
|
|
2362
|
-
dependsOn?: string[] | undefined;
|
|
2363
|
-
createsResource?: string | undefined;
|
|
2364
|
-
}[];
|
|
2365
|
-
}[];
|
|
2366
1306
|
}, {
|
|
2367
1307
|
baseUrl: string;
|
|
2368
|
-
totalCount: number;
|
|
2369
|
-
endpoints: {
|
|
2370
|
-
path: string;
|
|
2371
|
-
resourceGroup: string;
|
|
2372
|
-
pathParams: {
|
|
2373
|
-
type: string;
|
|
2374
|
-
name: string;
|
|
2375
|
-
required: boolean;
|
|
2376
|
-
description?: string | undefined;
|
|
2377
|
-
constraints?: string | undefined;
|
|
2378
|
-
}[];
|
|
2379
|
-
methods: {
|
|
2380
|
-
method: string;
|
|
2381
|
-
description: string;
|
|
2382
|
-
sourceFile: string;
|
|
2383
|
-
queryParams: {
|
|
2384
|
-
type: string;
|
|
2385
|
-
name: string;
|
|
2386
|
-
required: boolean;
|
|
2387
|
-
description?: string | undefined;
|
|
2388
|
-
constraints?: string | undefined;
|
|
2389
|
-
}[];
|
|
2390
|
-
authRequired: boolean;
|
|
2391
|
-
interactions: {
|
|
2392
|
-
type: "error" | "success" | "edge-case";
|
|
2393
|
-
description: string;
|
|
2394
|
-
request: {
|
|
2395
|
-
body?: Record<string, any> | undefined;
|
|
2396
|
-
contentType?: string | undefined;
|
|
2397
|
-
headers?: Record<string, string> | undefined;
|
|
2398
|
-
queryParams?: Record<string, any> | undefined;
|
|
2399
|
-
};
|
|
2400
|
-
response: {
|
|
2401
|
-
description: string;
|
|
2402
|
-
statusCode: number;
|
|
2403
|
-
body?: Record<string, any> | undefined;
|
|
2404
|
-
headers?: Record<string, string> | undefined;
|
|
2405
|
-
cookies?: {
|
|
2406
|
-
name: string;
|
|
2407
|
-
sampleValue: string;
|
|
2408
|
-
purpose: string;
|
|
2409
|
-
httpOnly: boolean;
|
|
2410
|
-
secure: boolean;
|
|
2411
|
-
}[] | undefined;
|
|
2412
|
-
};
|
|
2413
|
-
}[];
|
|
2414
|
-
authType?: string | undefined;
|
|
2415
|
-
scopes?: string[] | undefined;
|
|
2416
|
-
dependsOn?: string[] | undefined;
|
|
2417
|
-
createsResource?: string | undefined;
|
|
2418
|
-
}[];
|
|
2419
|
-
}[];
|
|
2420
1308
|
}>;
|
|
2421
1309
|
authentication: z.ZodObject<{
|
|
2422
1310
|
method: z.ZodString;
|
|
@@ -2515,200 +1403,23 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2515
1403
|
estimatedCoverage?: number | undefined;
|
|
2516
1404
|
relevantExternalTestPaths?: string[] | undefined;
|
|
2517
1405
|
}>;
|
|
2518
|
-
routeDiscovery: z.ZodOptional<z.ZodObject<{
|
|
2519
|
-
candidateFiles: z.ZodArray<z.ZodString, "many">;
|
|
2520
|
-
staticHints: z.ZodArray<z.ZodObject<{
|
|
2521
|
-
path: z.ZodString;
|
|
2522
|
-
methods: z.ZodArray<z.ZodString, "many">;
|
|
2523
|
-
sourceFile: z.ZodString;
|
|
2524
|
-
}, "strip", z.ZodTypeAny, {
|
|
2525
|
-
path: string;
|
|
2526
|
-
sourceFile: string;
|
|
2527
|
-
methods: string[];
|
|
2528
|
-
}, {
|
|
2529
|
-
path: string;
|
|
2530
|
-
sourceFile: string;
|
|
2531
|
-
methods: string[];
|
|
2532
|
-
}>, "many">;
|
|
2533
|
-
openApiPaths: z.ZodArray<z.ZodString, "many">;
|
|
2534
|
-
routerMountContext: z.ZodArray<z.ZodString, "many">;
|
|
2535
|
-
diffFilePath: z.ZodOptional<z.ZodString>;
|
|
2536
|
-
}, "strip", z.ZodTypeAny, {
|
|
2537
|
-
candidateFiles: string[];
|
|
2538
|
-
staticHints: {
|
|
2539
|
-
path: string;
|
|
2540
|
-
sourceFile: string;
|
|
2541
|
-
methods: string[];
|
|
2542
|
-
}[];
|
|
2543
|
-
openApiPaths: string[];
|
|
2544
|
-
routerMountContext: string[];
|
|
2545
|
-
diffFilePath?: string | undefined;
|
|
2546
|
-
}, {
|
|
2547
|
-
candidateFiles: string[];
|
|
2548
|
-
staticHints: {
|
|
2549
|
-
path: string;
|
|
2550
|
-
sourceFile: string;
|
|
2551
|
-
methods: string[];
|
|
2552
|
-
}[];
|
|
2553
|
-
openApiPaths: string[];
|
|
2554
|
-
routerMountContext: string[];
|
|
2555
|
-
diffFilePath?: string | undefined;
|
|
2556
|
-
}>>;
|
|
2557
1406
|
branchDiffContext: z.ZodOptional<z.ZodObject<{
|
|
2558
1407
|
currentBranch: z.ZodString;
|
|
2559
1408
|
baseBranch: z.ZodString;
|
|
2560
1409
|
changedFiles: z.ZodArray<z.ZodString, "many">;
|
|
2561
|
-
|
|
2562
|
-
path: z.ZodString;
|
|
2563
|
-
methods: z.ZodArray<z.ZodObject<{
|
|
2564
|
-
method: z.ZodString;
|
|
2565
|
-
sourceFile: z.ZodString;
|
|
2566
|
-
interactionCount: z.ZodNumber;
|
|
2567
|
-
}, "strip", z.ZodTypeAny, {
|
|
2568
|
-
method: string;
|
|
2569
|
-
sourceFile: string;
|
|
2570
|
-
interactionCount: number;
|
|
2571
|
-
}, {
|
|
2572
|
-
method: string;
|
|
2573
|
-
sourceFile: string;
|
|
2574
|
-
interactionCount: number;
|
|
2575
|
-
}>, "many">;
|
|
2576
|
-
}, "strip", z.ZodTypeAny, {
|
|
2577
|
-
path: string;
|
|
2578
|
-
methods: {
|
|
2579
|
-
method: string;
|
|
2580
|
-
sourceFile: string;
|
|
2581
|
-
interactionCount: number;
|
|
2582
|
-
}[];
|
|
2583
|
-
}, {
|
|
2584
|
-
path: string;
|
|
2585
|
-
methods: {
|
|
2586
|
-
method: string;
|
|
2587
|
-
sourceFile: string;
|
|
2588
|
-
interactionCount: number;
|
|
2589
|
-
}[];
|
|
2590
|
-
}>, "many">;
|
|
2591
|
-
modifiedEndpoints: z.ZodArray<z.ZodObject<{
|
|
2592
|
-
path: z.ZodString;
|
|
2593
|
-
methods: z.ZodArray<z.ZodObject<{
|
|
2594
|
-
method: z.ZodString;
|
|
2595
|
-
sourceFile: z.ZodString;
|
|
2596
|
-
changeType: z.ZodEnum<["added", "modified", "removed"]>;
|
|
2597
|
-
}, "strip", z.ZodTypeAny, {
|
|
2598
|
-
method: string;
|
|
2599
|
-
sourceFile: string;
|
|
2600
|
-
changeType: "modified" | "added" | "removed";
|
|
2601
|
-
}, {
|
|
2602
|
-
method: string;
|
|
2603
|
-
sourceFile: string;
|
|
2604
|
-
changeType: "modified" | "added" | "removed";
|
|
2605
|
-
}>, "many">;
|
|
2606
|
-
}, "strip", z.ZodTypeAny, {
|
|
2607
|
-
path: string;
|
|
2608
|
-
methods: {
|
|
2609
|
-
method: string;
|
|
2610
|
-
sourceFile: string;
|
|
2611
|
-
changeType: "modified" | "added" | "removed";
|
|
2612
|
-
}[];
|
|
2613
|
-
}, {
|
|
2614
|
-
path: string;
|
|
2615
|
-
methods: {
|
|
2616
|
-
method: string;
|
|
2617
|
-
sourceFile: string;
|
|
2618
|
-
changeType: "modified" | "added" | "removed";
|
|
2619
|
-
}[];
|
|
2620
|
-
}>, "many">;
|
|
2621
|
-
removedEndpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2622
|
-
path: z.ZodString;
|
|
2623
|
-
methods: z.ZodArray<z.ZodObject<{
|
|
2624
|
-
method: z.ZodString;
|
|
2625
|
-
sourceFile: z.ZodString;
|
|
2626
|
-
changeType: z.ZodLiteral<"removed">;
|
|
2627
|
-
}, "strip", z.ZodTypeAny, {
|
|
2628
|
-
method: string;
|
|
2629
|
-
sourceFile: string;
|
|
2630
|
-
changeType: "removed";
|
|
2631
|
-
}, {
|
|
2632
|
-
method: string;
|
|
2633
|
-
sourceFile: string;
|
|
2634
|
-
changeType: "removed";
|
|
2635
|
-
}>, "many">;
|
|
2636
|
-
}, "strip", z.ZodTypeAny, {
|
|
2637
|
-
path: string;
|
|
2638
|
-
methods: {
|
|
2639
|
-
method: string;
|
|
2640
|
-
sourceFile: string;
|
|
2641
|
-
changeType: "removed";
|
|
2642
|
-
}[];
|
|
2643
|
-
}, {
|
|
2644
|
-
path: string;
|
|
2645
|
-
methods: {
|
|
2646
|
-
method: string;
|
|
2647
|
-
sourceFile: string;
|
|
2648
|
-
changeType: "removed";
|
|
2649
|
-
}[];
|
|
2650
|
-
}>, "many">>;
|
|
2651
|
-
affectedServices: z.ZodArray<z.ZodString, "many">;
|
|
1410
|
+
affectedServices: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2652
1411
|
summary: z.ZodOptional<z.ZodString>;
|
|
2653
1412
|
}, "strip", z.ZodTypeAny, {
|
|
2654
1413
|
currentBranch: string;
|
|
2655
1414
|
baseBranch: string;
|
|
2656
1415
|
changedFiles: string[];
|
|
2657
|
-
|
|
2658
|
-
path: string;
|
|
2659
|
-
methods: {
|
|
2660
|
-
method: string;
|
|
2661
|
-
sourceFile: string;
|
|
2662
|
-
interactionCount: number;
|
|
2663
|
-
}[];
|
|
2664
|
-
}[];
|
|
2665
|
-
modifiedEndpoints: {
|
|
2666
|
-
path: string;
|
|
2667
|
-
methods: {
|
|
2668
|
-
method: string;
|
|
2669
|
-
sourceFile: string;
|
|
2670
|
-
changeType: "modified" | "added" | "removed";
|
|
2671
|
-
}[];
|
|
2672
|
-
}[];
|
|
2673
|
-
affectedServices: string[];
|
|
2674
|
-
removedEndpoints?: {
|
|
2675
|
-
path: string;
|
|
2676
|
-
methods: {
|
|
2677
|
-
method: string;
|
|
2678
|
-
sourceFile: string;
|
|
2679
|
-
changeType: "removed";
|
|
2680
|
-
}[];
|
|
2681
|
-
}[] | undefined;
|
|
1416
|
+
affectedServices?: string[] | undefined;
|
|
2682
1417
|
summary?: string | undefined;
|
|
2683
1418
|
}, {
|
|
2684
1419
|
currentBranch: string;
|
|
2685
1420
|
baseBranch: string;
|
|
2686
1421
|
changedFiles: string[];
|
|
2687
|
-
|
|
2688
|
-
path: string;
|
|
2689
|
-
methods: {
|
|
2690
|
-
method: string;
|
|
2691
|
-
sourceFile: string;
|
|
2692
|
-
interactionCount: number;
|
|
2693
|
-
}[];
|
|
2694
|
-
}[];
|
|
2695
|
-
modifiedEndpoints: {
|
|
2696
|
-
path: string;
|
|
2697
|
-
methods: {
|
|
2698
|
-
method: string;
|
|
2699
|
-
sourceFile: string;
|
|
2700
|
-
changeType: "modified" | "added" | "removed";
|
|
2701
|
-
}[];
|
|
2702
|
-
}[];
|
|
2703
|
-
affectedServices: string[];
|
|
2704
|
-
removedEndpoints?: {
|
|
2705
|
-
path: string;
|
|
2706
|
-
methods: {
|
|
2707
|
-
method: string;
|
|
2708
|
-
sourceFile: string;
|
|
2709
|
-
changeType: "removed";
|
|
2710
|
-
}[];
|
|
2711
|
-
}[] | undefined;
|
|
1422
|
+
affectedServices?: string[] | undefined;
|
|
2712
1423
|
summary?: string | undefined;
|
|
2713
1424
|
}>>;
|
|
2714
1425
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2739,44 +1450,6 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2739
1450
|
userFlows: string[];
|
|
2740
1451
|
dataFlows: string[];
|
|
2741
1452
|
integrationPatterns: string[];
|
|
2742
|
-
draftedScenarios: {
|
|
2743
|
-
description: string;
|
|
2744
|
-
priority: "high" | "medium" | "low";
|
|
2745
|
-
scenarioName: string;
|
|
2746
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
2747
|
-
steps: {
|
|
2748
|
-
path: string;
|
|
2749
|
-
method: string;
|
|
2750
|
-
description: string;
|
|
2751
|
-
order: number;
|
|
2752
|
-
interactionType: "error" | "success" | "edge-case";
|
|
2753
|
-
expectedStatusCode: number;
|
|
2754
|
-
queryParams?: Record<string, any> | undefined;
|
|
2755
|
-
requestBody?: Record<string, any> | undefined;
|
|
2756
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
2757
|
-
expectedResponseFields?: string[] | undefined;
|
|
2758
|
-
chainsFrom?: {
|
|
2759
|
-
sourceStep: number;
|
|
2760
|
-
sourceField: string;
|
|
2761
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
2762
|
-
targetParam: string;
|
|
2763
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
2764
|
-
} | {
|
|
2765
|
-
sourceStep: number;
|
|
2766
|
-
sourceField: string;
|
|
2767
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
2768
|
-
targetParam: string;
|
|
2769
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
2770
|
-
}[] | undefined;
|
|
2771
|
-
bodyMustInclude?: string[] | undefined;
|
|
2772
|
-
}[];
|
|
2773
|
-
chainingKeys: string[];
|
|
2774
|
-
requiresAuth: boolean;
|
|
2775
|
-
estimatedComplexity: "simple" | "moderate" | "complex";
|
|
2776
|
-
testType?: TestType | undefined;
|
|
2777
|
-
source?: ScenarioSource | undefined;
|
|
2778
|
-
bugCatchingTarget?: string | undefined;
|
|
2779
|
-
}[];
|
|
2780
1453
|
};
|
|
2781
1454
|
artifacts: {
|
|
2782
1455
|
openApiSpecs: {
|
|
@@ -2798,60 +1471,8 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2798
1471
|
}[];
|
|
2799
1472
|
notFound: string[];
|
|
2800
1473
|
};
|
|
2801
|
-
|
|
1474
|
+
workspace: {
|
|
2802
1475
|
baseUrl: string;
|
|
2803
|
-
totalCount: number;
|
|
2804
|
-
endpoints: {
|
|
2805
|
-
path: string;
|
|
2806
|
-
resourceGroup: string;
|
|
2807
|
-
pathParams: {
|
|
2808
|
-
type: string;
|
|
2809
|
-
name: string;
|
|
2810
|
-
required: boolean;
|
|
2811
|
-
description?: string | undefined;
|
|
2812
|
-
constraints?: string | undefined;
|
|
2813
|
-
}[];
|
|
2814
|
-
methods: {
|
|
2815
|
-
method: string;
|
|
2816
|
-
description: string;
|
|
2817
|
-
sourceFile: string;
|
|
2818
|
-
queryParams: {
|
|
2819
|
-
type: string;
|
|
2820
|
-
name: string;
|
|
2821
|
-
required: boolean;
|
|
2822
|
-
description?: string | undefined;
|
|
2823
|
-
constraints?: string | undefined;
|
|
2824
|
-
}[];
|
|
2825
|
-
authRequired: boolean;
|
|
2826
|
-
interactions: {
|
|
2827
|
-
type: "error" | "success" | "edge-case";
|
|
2828
|
-
description: string;
|
|
2829
|
-
request: {
|
|
2830
|
-
body?: Record<string, any> | undefined;
|
|
2831
|
-
contentType?: string | undefined;
|
|
2832
|
-
headers?: Record<string, string> | undefined;
|
|
2833
|
-
queryParams?: Record<string, any> | undefined;
|
|
2834
|
-
};
|
|
2835
|
-
response: {
|
|
2836
|
-
description: string;
|
|
2837
|
-
statusCode: number;
|
|
2838
|
-
body?: Record<string, any> | undefined;
|
|
2839
|
-
headers?: Record<string, string> | undefined;
|
|
2840
|
-
cookies?: {
|
|
2841
|
-
name: string;
|
|
2842
|
-
sampleValue: string;
|
|
2843
|
-
purpose: string;
|
|
2844
|
-
httpOnly: boolean;
|
|
2845
|
-
secure: boolean;
|
|
2846
|
-
}[] | undefined;
|
|
2847
|
-
};
|
|
2848
|
-
}[];
|
|
2849
|
-
authType?: string | undefined;
|
|
2850
|
-
scopes?: string[] | undefined;
|
|
2851
|
-
dependsOn?: string[] | undefined;
|
|
2852
|
-
createsResource?: string | undefined;
|
|
2853
|
-
}[];
|
|
2854
|
-
}[];
|
|
2855
1476
|
};
|
|
2856
1477
|
authentication: {
|
|
2857
1478
|
method: string;
|
|
@@ -2882,46 +1503,11 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2882
1503
|
estimatedCoverage?: number | undefined;
|
|
2883
1504
|
relevantExternalTestPaths?: string[] | undefined;
|
|
2884
1505
|
};
|
|
2885
|
-
routeDiscovery?: {
|
|
2886
|
-
candidateFiles: string[];
|
|
2887
|
-
staticHints: {
|
|
2888
|
-
path: string;
|
|
2889
|
-
sourceFile: string;
|
|
2890
|
-
methods: string[];
|
|
2891
|
-
}[];
|
|
2892
|
-
openApiPaths: string[];
|
|
2893
|
-
routerMountContext: string[];
|
|
2894
|
-
diffFilePath?: string | undefined;
|
|
2895
|
-
} | undefined;
|
|
2896
1506
|
branchDiffContext?: {
|
|
2897
1507
|
currentBranch: string;
|
|
2898
1508
|
baseBranch: string;
|
|
2899
1509
|
changedFiles: string[];
|
|
2900
|
-
|
|
2901
|
-
path: string;
|
|
2902
|
-
methods: {
|
|
2903
|
-
method: string;
|
|
2904
|
-
sourceFile: string;
|
|
2905
|
-
interactionCount: number;
|
|
2906
|
-
}[];
|
|
2907
|
-
}[];
|
|
2908
|
-
modifiedEndpoints: {
|
|
2909
|
-
path: string;
|
|
2910
|
-
methods: {
|
|
2911
|
-
method: string;
|
|
2912
|
-
sourceFile: string;
|
|
2913
|
-
changeType: "modified" | "added" | "removed";
|
|
2914
|
-
}[];
|
|
2915
|
-
}[];
|
|
2916
|
-
affectedServices: string[];
|
|
2917
|
-
removedEndpoints?: {
|
|
2918
|
-
path: string;
|
|
2919
|
-
methods: {
|
|
2920
|
-
method: string;
|
|
2921
|
-
sourceFile: string;
|
|
2922
|
-
changeType: "removed";
|
|
2923
|
-
}[];
|
|
2924
|
-
}[] | undefined;
|
|
1510
|
+
affectedServices?: string[] | undefined;
|
|
2925
1511
|
summary?: string | undefined;
|
|
2926
1512
|
} | undefined;
|
|
2927
1513
|
}, {
|
|
@@ -2952,44 +1538,6 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2952
1538
|
userFlows: string[];
|
|
2953
1539
|
dataFlows: string[];
|
|
2954
1540
|
integrationPatterns: string[];
|
|
2955
|
-
draftedScenarios: {
|
|
2956
|
-
description: string;
|
|
2957
|
-
priority: "high" | "medium" | "low";
|
|
2958
|
-
scenarioName: string;
|
|
2959
|
-
category: "new_endpoint" | "bug_caught" | "requirement_conflict" | "business_rule" | "security_boundary" | "data_integrity" | "breaking_change" | "auth" | "error_handling" | "workflow" | "data_validation" | "crud";
|
|
2960
|
-
steps: {
|
|
2961
|
-
path: string;
|
|
2962
|
-
method: string;
|
|
2963
|
-
description: string;
|
|
2964
|
-
order: number;
|
|
2965
|
-
interactionType: "error" | "success" | "edge-case";
|
|
2966
|
-
expectedStatusCode: number;
|
|
2967
|
-
queryParams?: Record<string, any> | undefined;
|
|
2968
|
-
requestBody?: Record<string, any> | undefined;
|
|
2969
|
-
responseBody?: any[] | Record<string, any> | undefined;
|
|
2970
|
-
expectedResponseFields?: string[] | undefined;
|
|
2971
|
-
chainsFrom?: {
|
|
2972
|
-
sourceStep: number;
|
|
2973
|
-
sourceField: string;
|
|
2974
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
2975
|
-
targetParam: string;
|
|
2976
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
2977
|
-
} | {
|
|
2978
|
-
sourceStep: number;
|
|
2979
|
-
sourceField: string;
|
|
2980
|
-
sourceLocation: "body" | "header" | "cookie";
|
|
2981
|
-
targetParam: string;
|
|
2982
|
-
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
2983
|
-
}[] | undefined;
|
|
2984
|
-
bodyMustInclude?: string[] | undefined;
|
|
2985
|
-
}[];
|
|
2986
|
-
chainingKeys: string[];
|
|
2987
|
-
requiresAuth: boolean;
|
|
2988
|
-
estimatedComplexity: "simple" | "moderate" | "complex";
|
|
2989
|
-
testType?: TestType | undefined;
|
|
2990
|
-
source?: ScenarioSource | undefined;
|
|
2991
|
-
bugCatchingTarget?: string | undefined;
|
|
2992
|
-
}[];
|
|
2993
1541
|
};
|
|
2994
1542
|
artifacts: {
|
|
2995
1543
|
openApiSpecs: {
|
|
@@ -3011,60 +1559,8 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
3011
1559
|
}[];
|
|
3012
1560
|
notFound: string[];
|
|
3013
1561
|
};
|
|
3014
|
-
|
|
1562
|
+
workspace: {
|
|
3015
1563
|
baseUrl: string;
|
|
3016
|
-
totalCount: number;
|
|
3017
|
-
endpoints: {
|
|
3018
|
-
path: string;
|
|
3019
|
-
resourceGroup: string;
|
|
3020
|
-
pathParams: {
|
|
3021
|
-
type: string;
|
|
3022
|
-
name: string;
|
|
3023
|
-
required: boolean;
|
|
3024
|
-
description?: string | undefined;
|
|
3025
|
-
constraints?: string | undefined;
|
|
3026
|
-
}[];
|
|
3027
|
-
methods: {
|
|
3028
|
-
method: string;
|
|
3029
|
-
description: string;
|
|
3030
|
-
sourceFile: string;
|
|
3031
|
-
queryParams: {
|
|
3032
|
-
type: string;
|
|
3033
|
-
name: string;
|
|
3034
|
-
required: boolean;
|
|
3035
|
-
description?: string | undefined;
|
|
3036
|
-
constraints?: string | undefined;
|
|
3037
|
-
}[];
|
|
3038
|
-
authRequired: boolean;
|
|
3039
|
-
interactions: {
|
|
3040
|
-
type: "error" | "success" | "edge-case";
|
|
3041
|
-
description: string;
|
|
3042
|
-
request: {
|
|
3043
|
-
body?: Record<string, any> | undefined;
|
|
3044
|
-
contentType?: string | undefined;
|
|
3045
|
-
headers?: Record<string, string> | undefined;
|
|
3046
|
-
queryParams?: Record<string, any> | undefined;
|
|
3047
|
-
};
|
|
3048
|
-
response: {
|
|
3049
|
-
description: string;
|
|
3050
|
-
statusCode: number;
|
|
3051
|
-
body?: Record<string, any> | undefined;
|
|
3052
|
-
headers?: Record<string, string> | undefined;
|
|
3053
|
-
cookies?: {
|
|
3054
|
-
name: string;
|
|
3055
|
-
sampleValue: string;
|
|
3056
|
-
purpose: string;
|
|
3057
|
-
httpOnly: boolean;
|
|
3058
|
-
secure: boolean;
|
|
3059
|
-
}[] | undefined;
|
|
3060
|
-
};
|
|
3061
|
-
}[];
|
|
3062
|
-
authType?: string | undefined;
|
|
3063
|
-
scopes?: string[] | undefined;
|
|
3064
|
-
dependsOn?: string[] | undefined;
|
|
3065
|
-
createsResource?: string | undefined;
|
|
3066
|
-
}[];
|
|
3067
|
-
}[];
|
|
3068
1564
|
};
|
|
3069
1565
|
authentication: {
|
|
3070
1566
|
method: string;
|
|
@@ -3095,46 +1591,11 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
3095
1591
|
estimatedCoverage?: number | undefined;
|
|
3096
1592
|
relevantExternalTestPaths?: string[] | undefined;
|
|
3097
1593
|
};
|
|
3098
|
-
routeDiscovery?: {
|
|
3099
|
-
candidateFiles: string[];
|
|
3100
|
-
staticHints: {
|
|
3101
|
-
path: string;
|
|
3102
|
-
sourceFile: string;
|
|
3103
|
-
methods: string[];
|
|
3104
|
-
}[];
|
|
3105
|
-
openApiPaths: string[];
|
|
3106
|
-
routerMountContext: string[];
|
|
3107
|
-
diffFilePath?: string | undefined;
|
|
3108
|
-
} | undefined;
|
|
3109
1594
|
branchDiffContext?: {
|
|
3110
1595
|
currentBranch: string;
|
|
3111
1596
|
baseBranch: string;
|
|
3112
1597
|
changedFiles: string[];
|
|
3113
|
-
|
|
3114
|
-
path: string;
|
|
3115
|
-
methods: {
|
|
3116
|
-
method: string;
|
|
3117
|
-
sourceFile: string;
|
|
3118
|
-
interactionCount: number;
|
|
3119
|
-
}[];
|
|
3120
|
-
}[];
|
|
3121
|
-
modifiedEndpoints: {
|
|
3122
|
-
path: string;
|
|
3123
|
-
methods: {
|
|
3124
|
-
method: string;
|
|
3125
|
-
sourceFile: string;
|
|
3126
|
-
changeType: "modified" | "added" | "removed";
|
|
3127
|
-
}[];
|
|
3128
|
-
}[];
|
|
3129
|
-
affectedServices: string[];
|
|
3130
|
-
removedEndpoints?: {
|
|
3131
|
-
path: string;
|
|
3132
|
-
methods: {
|
|
3133
|
-
method: string;
|
|
3134
|
-
sourceFile: string;
|
|
3135
|
-
changeType: "removed";
|
|
3136
|
-
}[];
|
|
3137
|
-
}[] | undefined;
|
|
1598
|
+
affectedServices?: string[] | undefined;
|
|
3138
1599
|
summary?: string | undefined;
|
|
3139
1600
|
} | undefined;
|
|
3140
1601
|
}>;
|