@skyramp/mcp 0.3.4 → 0.3.6-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/playwright/registerPlaywrightTools.js +92 -30
- package/build/playwright/traceRecordingPrompt.d.ts +6 -0
- package/build/playwright/traceRecordingPrompt.js +6 -2
- package/build/prompts/code-reuse.d.ts +1 -2
- package/build/prompts/code-reuse.js +182 -77
- package/build/prompts/modularization/integration-test-modularization.d.ts +2 -0
- package/build/prompts/modularization/integration-test-modularization.js +83 -41
- package/build/prompts/modularization/render.d.ts +18 -0
- package/build/prompts/modularization/render.js +12 -0
- package/build/prompts/modularization/ui-test-modularization.d.ts +3 -1
- package/build/prompts/modularization/ui-test-modularization.js +89 -47
- package/build/prompts/pom-aware-code-reuse.js +3 -1
- package/build/prompts/shared-helper-policy.d.ts +57 -0
- package/build/prompts/shared-helper-policy.js +135 -0
- package/build/prompts/test-recommendation/diffExecutionPlan.js +62 -56
- package/build/prompts/test-recommendation/fullRepoCatalog.js +19 -8
- package/build/prompts/test-recommendation/recommendationShared.d.ts +28 -6
- package/build/prompts/test-recommendation/recommendationShared.js +90 -16
- package/build/prompts/test-recommendation/registerRecommendTestsPrompt.js +22 -0
- package/build/prompts/test-recommendation/test-recommendation-prompt.d.ts +2 -2
- package/build/prompts/test-recommendation/test-recommendation-prompt.js +3 -3
- package/build/prompts/testbot/testbot-prompts.js +88 -33
- package/build/recommendation/budgeters/shared.js +105 -27
- package/build/recommendation/discriminators.js +13 -2
- package/build/recommendation/planRanker.d.ts +6 -6
- package/build/recommendation/planRanker.js +6 -61
- package/build/services/AnalyticsService.d.ts +7 -0
- package/build/services/AnalyticsService.js +7 -1
- package/build/services/ModularizationService.js +1 -3
- package/build/services/TestDiscoveryService.d.ts +0 -2
- package/build/services/TestDiscoveryService.js +2 -37
- package/build/services/TestGenerationService.d.ts +16 -0
- package/build/services/TestGenerationService.js +86 -10
- package/build/services/containerEnv.js +13 -12
- package/build/tools/code-refactor/codeReuseTool.js +279 -93
- package/build/tools/code-refactor/enhance-state.d.ts +49 -0
- package/build/tools/code-refactor/enhance-state.js +109 -0
- package/build/tools/code-refactor/enhanceAssertionsTool.js +34 -1
- package/build/tools/code-refactor/modularizationTool.js +9 -2
- package/build/tools/code-refactor/reuse-outcome.d.ts +23 -1
- package/build/tools/code-refactor/reuse-outcome.js +14 -4
- package/build/tools/code-refactor/reuse-state.d.ts +127 -5
- package/build/tools/code-refactor/reuse-state.js +628 -16
- package/build/tools/code-refactor/utils-verify-gates.d.ts +26 -0
- package/build/tools/code-refactor/utils-verify-gates.js +100 -0
- package/build/tools/code-refactor/verify-gates.d.ts +2 -1
- package/build/tools/code-refactor/verify-gates.js +90 -25
- package/build/tools/executeSkyrampTestTool.d.ts +19 -0
- package/build/tools/executeSkyrampTestTool.js +158 -8
- package/build/tools/generate-tests/generateBatchScenarioRestTool.js +2 -2
- package/build/tools/generate-tests/generateE2ERestTool.js +16 -0
- package/build/tools/generate-tests/generateUIRestTool.d.ts +1 -0
- package/build/tools/generate-tests/generateUIRestTool.js +22 -0
- package/build/tools/generate-tests/scenarioLint.d.ts +2 -0
- package/build/tools/generate-tests/scenarioLint.js +127 -19
- package/build/tools/generate-tests/trace-reuse-guard.d.ts +20 -0
- package/build/tools/generate-tests/trace-reuse-guard.js +93 -0
- package/build/tools/submitReportTool.d.ts +38 -38
- package/build/tools/submitReportTool.js +487 -104
- package/build/tools/test-management/analyzeChangesTool.d.ts +24 -1
- package/build/tools/test-management/analyzeChangesTool.js +75 -12
- package/build/tools/test-management/analyzeTestHealthTool.js +7 -7
- package/build/tools/test-management/registerTestPlanTool.d.ts +203 -0
- package/build/tools/test-management/registerTestPlanTool.js +149 -23
- package/build/types/Recommendation.d.ts +34 -5
- package/build/types/RepositoryAnalysis.d.ts +133 -114
- package/build/types/RepositoryAnalysis.js +1 -1
- package/build/types/ReuseOutcome.d.ts +102 -6
- package/build/types/ReuseOutcome.js +16 -2
- package/build/types/TestRecommendation.js +21 -3
- package/build/types/TestTypes.js +14 -8
- package/build/types/TestbotReport.d.ts +25 -3
- package/build/types/index.d.ts +2 -2
- package/build/types/index.js +1 -1
- package/build/utils/AnalysisStateManager.d.ts +69 -1
- package/build/utils/AnalysisStateManager.js +69 -5
- package/build/utils/branchDiff.d.ts +10 -0
- package/build/utils/branchDiff.js +28 -0
- package/build/utils/changedRoutes.d.ts +29 -0
- package/build/utils/changedRoutes.js +87 -0
- package/build/utils/featureFlags.d.ts +21 -0
- package/build/utils/featureFlags.js +23 -0
- package/build/utils/frontendIntegration.js +34 -4
- package/build/utils/importerHop.d.ts +2 -8
- package/build/utils/importerHop.js +15 -53
- package/build/utils/pathMatching.d.ts +38 -0
- package/build/utils/pathMatching.js +71 -0
- package/build/utils/pathSignatures.d.ts +22 -0
- package/build/utils/pathSignatures.js +57 -0
- package/build/utils/planMatchKeys.d.ts +16 -3
- package/build/utils/planMatchKeys.js +26 -10
- package/build/utils/pluralization.d.ts +10 -0
- package/build/utils/pluralization.js +18 -0
- package/build/utils/pom-catalog-parse.d.ts +52 -0
- package/build/utils/pom-catalog-parse.js +141 -0
- package/build/utils/pom-scope/selector-extractor.d.ts +12 -0
- package/build/utils/pom-scope/selector-extractor.js +34 -8
- package/build/utils/pom-verify/verify.d.ts +6 -5
- package/build/utils/pom-verify/verify.js +8 -6
- package/build/utils/reportLanguage.d.ts +43 -0
- package/build/utils/reportLanguage.js +125 -0
- package/build/utils/reportVerification.d.ts +74 -4
- package/build/utils/reportVerification.js +259 -3
- package/build/utils/reuseRouting.d.ts +3 -0
- package/build/utils/reuseRouting.js +50 -0
- package/build/utils/routeParsers.d.ts +2 -0
- package/build/utils/routeParsers.js +65 -8
- package/build/utils/scenarioDrafting.d.ts +1 -1
- package/build/utils/scenarioDrafting.js +57 -45
- package/build/utils/subjectEndpoints.d.ts +19 -0
- package/build/utils/subjectEndpoints.js +98 -0
- package/build/utils/testFileClassification.d.ts +11 -0
- package/build/utils/testFileClassification.js +47 -0
- package/build/utils/uiPageEnumerator.d.ts +45 -19
- package/build/utils/uiPageEnumerator.js +95 -51
- package/build/utils/utils-verify/allow.d.ts +16 -0
- package/build/utils/utils-verify/allow.js +68 -0
- package/build/utils/utils-verify/call-sites.d.ts +34 -0
- package/build/utils/utils-verify/call-sites.js +154 -0
- package/build/utils/utils-verify/index.d.ts +7 -0
- package/build/utils/utils-verify/index.js +7 -0
- package/build/utils/utils-verify/language-spec.d.ts +91 -0
- package/build/utils/utils-verify/language-spec.js +210 -0
- package/build/utils/utils-verify/locate.d.ts +39 -0
- package/build/utils/utils-verify/locate.js +199 -0
- package/build/utils/utils-verify/parse.d.ts +34 -0
- package/build/utils/utils-verify/parse.js +177 -0
- package/build/utils/utils-verify/stage.d.ts +24 -0
- package/build/utils/utils-verify/stage.js +107 -0
- package/build/utils/utils-verify/verify.d.ts +63 -0
- package/build/utils/utils-verify/verify.js +168 -0
- package/build/utils/utils.d.ts +3 -1
- package/build/utils/utils.js +3 -1
- package/build/workspace/workspace.d.ts +32 -32
- package/node_modules/playwright/lib/mcp/skyramp/assertTool.js +9 -5
- package/node_modules/playwright/lib/mcp/skyramp/loadTraceTool.js +16 -0
- package/node_modules/playwright/lib/mcp/skyramp/skyRampImport.js +2 -0
- package/node_modules/playwright/lib/mcp/skyramp/traceRecordingBackend.js +115 -14
- package/node_modules/playwright/lib/mcp/test/skyRampExport.js +13 -1
- package/node_modules/playwright/node_modules/playwright-core/.DS_Store +0 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/server/codegen/skyramp/jsonlReader.js +2 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/htmlReport/index.html +27 -253
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/assets/{codeMirrorModule-DtudTj_v.js → codeMirrorModule-DJMC4zNo.js} +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/assets/index-BW82eAUI.js +196 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/index.html +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/assets/{codeMirrorModule-FNMuBzX1.js → codeMirrorModule-CZfp96qZ.js} +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-gpLo02E0.js +809 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.Bq1r1URj.js +2 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.html +2 -2
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/uiMode.VEfqi1qN.js +5 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +2 -2
- 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/package.json +1 -1
- package/package.json +2 -2
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/assets/index-BpDwp16L.js +0 -422
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Co9upU5h.js +0 -1035
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.DXNIQ_dx.js +0 -2
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CIKB3XSv.js +0 -5
|
@@ -76,13 +76,19 @@ export interface ScenarioStep {
|
|
|
76
76
|
interactionType: "success" | "error" | "edge-case";
|
|
77
77
|
requestBody?: Record<string, any>;
|
|
78
78
|
queryParams?: Record<string, any>;
|
|
79
|
-
|
|
79
|
+
/** A JSON object, or an array for a collection/list endpoint's response. */
|
|
80
|
+
responseBody?: Record<string, any> | any[];
|
|
80
81
|
expectedStatusCode: number;
|
|
81
82
|
expectedResponseFields?: string[];
|
|
82
83
|
chainsFrom?: ChainingRef | ChainingRef[];
|
|
83
84
|
/** Structured hint for the LLM: fields that MUST appear in the request body for this step. */
|
|
84
85
|
bodyMustInclude?: string[];
|
|
85
86
|
}
|
|
87
|
+
/** The endpoint a test is about: the step under test, not its setup or cleanup. */
|
|
88
|
+
export interface SubjectEndpoint {
|
|
89
|
+
method: string;
|
|
90
|
+
path: string;
|
|
91
|
+
}
|
|
86
92
|
export declare enum ScenarioSource {
|
|
87
93
|
CodeInferred = "code-inferred",
|
|
88
94
|
Trace = "trace",
|
|
@@ -113,6 +119,19 @@ export interface DraftedScenario {
|
|
|
113
119
|
* Used by the testbot to compute exact assertion values instead of null-checks.
|
|
114
120
|
*/
|
|
115
121
|
bugCatchingTarget?: string;
|
|
122
|
+
/**
|
|
123
|
+
* The endpoints this test is about, resolved one time by
|
|
124
|
+
* `resolveSubjectEndpoints` where the PR diff is available. Every dedup
|
|
125
|
+
* reader keys off this list rather than deriving a subject again from
|
|
126
|
+
* `steps[]` — SKYR-4214: two stages derived different subjects for one
|
|
127
|
+
* candidate, so whether a candidate deduped depended on whether the model
|
|
128
|
+
* happened to append a cleanup step.
|
|
129
|
+
*
|
|
130
|
+
* Absent on a scenario from an older state file; readers then fall back to
|
|
131
|
+
* the last-mutating-step rule. An EMPTY list means "no information" and must
|
|
132
|
+
* never be read as "covered".
|
|
133
|
+
*/
|
|
134
|
+
subjectEndpoints?: SubjectEndpoint[];
|
|
116
135
|
}
|
|
117
136
|
export interface BranchDiffContext {
|
|
118
137
|
currentBranch: string;
|
|
@@ -987,15 +1006,15 @@ export declare const chainingRefSchema: z.ZodObject<{
|
|
|
987
1006
|
}, "strip", z.ZodTypeAny, {
|
|
988
1007
|
sourceStep: number;
|
|
989
1008
|
sourceField: string;
|
|
990
|
-
sourceLocation: "
|
|
1009
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
991
1010
|
targetParam: string;
|
|
992
|
-
targetLocation: "path" | "
|
|
1011
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
993
1012
|
}, {
|
|
994
1013
|
sourceStep: number;
|
|
995
1014
|
sourceField: string;
|
|
996
|
-
sourceLocation: "
|
|
1015
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
997
1016
|
targetParam: string;
|
|
998
|
-
targetLocation: "path" | "
|
|
1017
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
999
1018
|
}>;
|
|
1000
1019
|
export declare const scenarioStepSchema: z.ZodObject<{
|
|
1001
1020
|
order: z.ZodNumber;
|
|
@@ -1005,7 +1024,7 @@ export declare const scenarioStepSchema: z.ZodObject<{
|
|
|
1005
1024
|
interactionType: z.ZodEnum<["success", "error", "edge-case"]>;
|
|
1006
1025
|
requestBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1007
1026
|
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1008
|
-
responseBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1027
|
+
responseBody: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1009
1028
|
expectedStatusCode: z.ZodNumber;
|
|
1010
1029
|
expectedResponseFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1011
1030
|
chainsFrom: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -1017,15 +1036,15 @@ export declare const scenarioStepSchema: z.ZodObject<{
|
|
|
1017
1036
|
}, "strip", z.ZodTypeAny, {
|
|
1018
1037
|
sourceStep: number;
|
|
1019
1038
|
sourceField: string;
|
|
1020
|
-
sourceLocation: "
|
|
1039
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1021
1040
|
targetParam: string;
|
|
1022
|
-
targetLocation: "path" | "
|
|
1041
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1023
1042
|
}, {
|
|
1024
1043
|
sourceStep: number;
|
|
1025
1044
|
sourceField: string;
|
|
1026
|
-
sourceLocation: "
|
|
1045
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1027
1046
|
targetParam: string;
|
|
1028
|
-
targetLocation: "path" | "
|
|
1047
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1029
1048
|
}>, z.ZodArray<z.ZodObject<{
|
|
1030
1049
|
sourceStep: z.ZodNumber;
|
|
1031
1050
|
sourceField: z.ZodString;
|
|
@@ -1035,15 +1054,15 @@ export declare const scenarioStepSchema: z.ZodObject<{
|
|
|
1035
1054
|
}, "strip", z.ZodTypeAny, {
|
|
1036
1055
|
sourceStep: number;
|
|
1037
1056
|
sourceField: string;
|
|
1038
|
-
sourceLocation: "
|
|
1057
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1039
1058
|
targetParam: string;
|
|
1040
|
-
targetLocation: "path" | "
|
|
1059
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1041
1060
|
}, {
|
|
1042
1061
|
sourceStep: number;
|
|
1043
1062
|
sourceField: string;
|
|
1044
|
-
sourceLocation: "
|
|
1063
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1045
1064
|
targetParam: string;
|
|
1046
|
-
targetLocation: "path" | "
|
|
1065
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1047
1066
|
}>, "many">]>>;
|
|
1048
1067
|
bodyMustInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1049
1068
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1055,20 +1074,20 @@ export declare const scenarioStepSchema: z.ZodObject<{
|
|
|
1055
1074
|
expectedStatusCode: number;
|
|
1056
1075
|
queryParams?: Record<string, any> | undefined;
|
|
1057
1076
|
requestBody?: Record<string, any> | undefined;
|
|
1058
|
-
responseBody?: Record<string, any> | undefined;
|
|
1077
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1059
1078
|
expectedResponseFields?: string[] | undefined;
|
|
1060
1079
|
chainsFrom?: {
|
|
1061
1080
|
sourceStep: number;
|
|
1062
1081
|
sourceField: string;
|
|
1063
|
-
sourceLocation: "
|
|
1082
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1064
1083
|
targetParam: string;
|
|
1065
|
-
targetLocation: "path" | "
|
|
1084
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1066
1085
|
} | {
|
|
1067
1086
|
sourceStep: number;
|
|
1068
1087
|
sourceField: string;
|
|
1069
|
-
sourceLocation: "
|
|
1088
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1070
1089
|
targetParam: string;
|
|
1071
|
-
targetLocation: "path" | "
|
|
1090
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1072
1091
|
}[] | undefined;
|
|
1073
1092
|
bodyMustInclude?: string[] | undefined;
|
|
1074
1093
|
}, {
|
|
@@ -1080,20 +1099,20 @@ export declare const scenarioStepSchema: z.ZodObject<{
|
|
|
1080
1099
|
expectedStatusCode: number;
|
|
1081
1100
|
queryParams?: Record<string, any> | undefined;
|
|
1082
1101
|
requestBody?: Record<string, any> | undefined;
|
|
1083
|
-
responseBody?: Record<string, any> | undefined;
|
|
1102
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1084
1103
|
expectedResponseFields?: string[] | undefined;
|
|
1085
1104
|
chainsFrom?: {
|
|
1086
1105
|
sourceStep: number;
|
|
1087
1106
|
sourceField: string;
|
|
1088
|
-
sourceLocation: "
|
|
1107
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1089
1108
|
targetParam: string;
|
|
1090
|
-
targetLocation: "path" | "
|
|
1109
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1091
1110
|
} | {
|
|
1092
1111
|
sourceStep: number;
|
|
1093
1112
|
sourceField: string;
|
|
1094
|
-
sourceLocation: "
|
|
1113
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1095
1114
|
targetParam: string;
|
|
1096
|
-
targetLocation: "path" | "
|
|
1115
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1097
1116
|
}[] | undefined;
|
|
1098
1117
|
bodyMustInclude?: string[] | undefined;
|
|
1099
1118
|
}>;
|
|
@@ -1110,7 +1129,7 @@ export declare const draftedScenarioSchema: z.ZodObject<{
|
|
|
1110
1129
|
interactionType: z.ZodEnum<["success", "error", "edge-case"]>;
|
|
1111
1130
|
requestBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1112
1131
|
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1113
|
-
responseBody: 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">]>>;
|
|
1114
1133
|
expectedStatusCode: z.ZodNumber;
|
|
1115
1134
|
expectedResponseFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1116
1135
|
chainsFrom: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -1122,15 +1141,15 @@ export declare const draftedScenarioSchema: z.ZodObject<{
|
|
|
1122
1141
|
}, "strip", z.ZodTypeAny, {
|
|
1123
1142
|
sourceStep: number;
|
|
1124
1143
|
sourceField: string;
|
|
1125
|
-
sourceLocation: "
|
|
1144
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1126
1145
|
targetParam: string;
|
|
1127
|
-
targetLocation: "path" | "
|
|
1146
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1128
1147
|
}, {
|
|
1129
1148
|
sourceStep: number;
|
|
1130
1149
|
sourceField: string;
|
|
1131
|
-
sourceLocation: "
|
|
1150
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1132
1151
|
targetParam: string;
|
|
1133
|
-
targetLocation: "path" | "
|
|
1152
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1134
1153
|
}>, z.ZodArray<z.ZodObject<{
|
|
1135
1154
|
sourceStep: z.ZodNumber;
|
|
1136
1155
|
sourceField: z.ZodString;
|
|
@@ -1140,15 +1159,15 @@ export declare const draftedScenarioSchema: z.ZodObject<{
|
|
|
1140
1159
|
}, "strip", z.ZodTypeAny, {
|
|
1141
1160
|
sourceStep: number;
|
|
1142
1161
|
sourceField: string;
|
|
1143
|
-
sourceLocation: "
|
|
1162
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1144
1163
|
targetParam: string;
|
|
1145
|
-
targetLocation: "path" | "
|
|
1164
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1146
1165
|
}, {
|
|
1147
1166
|
sourceStep: number;
|
|
1148
1167
|
sourceField: string;
|
|
1149
|
-
sourceLocation: "
|
|
1168
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1150
1169
|
targetParam: string;
|
|
1151
|
-
targetLocation: "path" | "
|
|
1170
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1152
1171
|
}>, "many">]>>;
|
|
1153
1172
|
bodyMustInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1154
1173
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1160,20 +1179,20 @@ export declare const draftedScenarioSchema: z.ZodObject<{
|
|
|
1160
1179
|
expectedStatusCode: number;
|
|
1161
1180
|
queryParams?: Record<string, any> | undefined;
|
|
1162
1181
|
requestBody?: Record<string, any> | undefined;
|
|
1163
|
-
responseBody?: Record<string, any> | undefined;
|
|
1182
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1164
1183
|
expectedResponseFields?: string[] | undefined;
|
|
1165
1184
|
chainsFrom?: {
|
|
1166
1185
|
sourceStep: number;
|
|
1167
1186
|
sourceField: string;
|
|
1168
|
-
sourceLocation: "
|
|
1187
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1169
1188
|
targetParam: string;
|
|
1170
|
-
targetLocation: "path" | "
|
|
1189
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1171
1190
|
} | {
|
|
1172
1191
|
sourceStep: number;
|
|
1173
1192
|
sourceField: string;
|
|
1174
|
-
sourceLocation: "
|
|
1193
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1175
1194
|
targetParam: string;
|
|
1176
|
-
targetLocation: "path" | "
|
|
1195
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1177
1196
|
}[] | undefined;
|
|
1178
1197
|
bodyMustInclude?: string[] | undefined;
|
|
1179
1198
|
}, {
|
|
@@ -1185,20 +1204,20 @@ export declare const draftedScenarioSchema: z.ZodObject<{
|
|
|
1185
1204
|
expectedStatusCode: number;
|
|
1186
1205
|
queryParams?: Record<string, any> | undefined;
|
|
1187
1206
|
requestBody?: Record<string, any> | undefined;
|
|
1188
|
-
responseBody?: Record<string, any> | undefined;
|
|
1207
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1189
1208
|
expectedResponseFields?: string[] | undefined;
|
|
1190
1209
|
chainsFrom?: {
|
|
1191
1210
|
sourceStep: number;
|
|
1192
1211
|
sourceField: string;
|
|
1193
|
-
sourceLocation: "
|
|
1212
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1194
1213
|
targetParam: string;
|
|
1195
|
-
targetLocation: "path" | "
|
|
1214
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1196
1215
|
} | {
|
|
1197
1216
|
sourceStep: number;
|
|
1198
1217
|
sourceField: string;
|
|
1199
|
-
sourceLocation: "
|
|
1218
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1200
1219
|
targetParam: string;
|
|
1201
|
-
targetLocation: "path" | "
|
|
1220
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1202
1221
|
}[] | undefined;
|
|
1203
1222
|
bodyMustInclude?: string[] | undefined;
|
|
1204
1223
|
}>, "many">;
|
|
@@ -1222,20 +1241,20 @@ export declare const draftedScenarioSchema: z.ZodObject<{
|
|
|
1222
1241
|
expectedStatusCode: number;
|
|
1223
1242
|
queryParams?: Record<string, any> | undefined;
|
|
1224
1243
|
requestBody?: Record<string, any> | undefined;
|
|
1225
|
-
responseBody?: Record<string, any> | undefined;
|
|
1244
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1226
1245
|
expectedResponseFields?: string[] | undefined;
|
|
1227
1246
|
chainsFrom?: {
|
|
1228
1247
|
sourceStep: number;
|
|
1229
1248
|
sourceField: string;
|
|
1230
|
-
sourceLocation: "
|
|
1249
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1231
1250
|
targetParam: string;
|
|
1232
|
-
targetLocation: "path" | "
|
|
1251
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1233
1252
|
} | {
|
|
1234
1253
|
sourceStep: number;
|
|
1235
1254
|
sourceField: string;
|
|
1236
|
-
sourceLocation: "
|
|
1255
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1237
1256
|
targetParam: string;
|
|
1238
|
-
targetLocation: "path" | "
|
|
1257
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1239
1258
|
}[] | undefined;
|
|
1240
1259
|
bodyMustInclude?: string[] | undefined;
|
|
1241
1260
|
}[];
|
|
@@ -1259,20 +1278,20 @@ export declare const draftedScenarioSchema: z.ZodObject<{
|
|
|
1259
1278
|
expectedStatusCode: number;
|
|
1260
1279
|
queryParams?: Record<string, any> | undefined;
|
|
1261
1280
|
requestBody?: Record<string, any> | undefined;
|
|
1262
|
-
responseBody?: Record<string, any> | undefined;
|
|
1281
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1263
1282
|
expectedResponseFields?: string[] | undefined;
|
|
1264
1283
|
chainsFrom?: {
|
|
1265
1284
|
sourceStep: number;
|
|
1266
1285
|
sourceField: string;
|
|
1267
|
-
sourceLocation: "
|
|
1286
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1268
1287
|
targetParam: string;
|
|
1269
|
-
targetLocation: "path" | "
|
|
1288
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1270
1289
|
} | {
|
|
1271
1290
|
sourceStep: number;
|
|
1272
1291
|
sourceField: string;
|
|
1273
|
-
sourceLocation: "
|
|
1292
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1274
1293
|
targetParam: string;
|
|
1275
|
-
targetLocation: "path" | "
|
|
1294
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1276
1295
|
}[] | undefined;
|
|
1277
1296
|
bodyMustInclude?: string[] | undefined;
|
|
1278
1297
|
}[];
|
|
@@ -1487,12 +1506,12 @@ export declare const analysisMetadataSchema: z.ZodObject<{
|
|
|
1487
1506
|
}, "strip", z.ZodTypeAny, {
|
|
1488
1507
|
repositoryName: string;
|
|
1489
1508
|
analysisDate: string;
|
|
1490
|
-
scanDepth: "
|
|
1509
|
+
scanDepth: "quick" | "full";
|
|
1491
1510
|
analysisScope?: AnalysisScope | undefined;
|
|
1492
1511
|
}, {
|
|
1493
1512
|
repositoryName: string;
|
|
1494
1513
|
analysisDate: string;
|
|
1495
|
-
scanDepth: "
|
|
1514
|
+
scanDepth: "quick" | "full";
|
|
1496
1515
|
analysisScope?: AnalysisScope | undefined;
|
|
1497
1516
|
}>;
|
|
1498
1517
|
export declare const projectClassificationSchema: z.ZodObject<{
|
|
@@ -1520,12 +1539,12 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1520
1539
|
}, "strip", z.ZodTypeAny, {
|
|
1521
1540
|
repositoryName: string;
|
|
1522
1541
|
analysisDate: string;
|
|
1523
|
-
scanDepth: "
|
|
1542
|
+
scanDepth: "quick" | "full";
|
|
1524
1543
|
analysisScope?: AnalysisScope | undefined;
|
|
1525
1544
|
}, {
|
|
1526
1545
|
repositoryName: string;
|
|
1527
1546
|
analysisDate: string;
|
|
1528
|
-
scanDepth: "
|
|
1547
|
+
scanDepth: "quick" | "full";
|
|
1529
1548
|
analysisScope?: AnalysisScope | undefined;
|
|
1530
1549
|
}>;
|
|
1531
1550
|
projectClassification: z.ZodObject<{
|
|
@@ -1598,7 +1617,7 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1598
1617
|
interactionType: z.ZodEnum<["success", "error", "edge-case"]>;
|
|
1599
1618
|
requestBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1600
1619
|
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1601
|
-
responseBody: 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">]>>;
|
|
1602
1621
|
expectedStatusCode: z.ZodNumber;
|
|
1603
1622
|
expectedResponseFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1604
1623
|
chainsFrom: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -1610,15 +1629,15 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1610
1629
|
}, "strip", z.ZodTypeAny, {
|
|
1611
1630
|
sourceStep: number;
|
|
1612
1631
|
sourceField: string;
|
|
1613
|
-
sourceLocation: "
|
|
1632
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1614
1633
|
targetParam: string;
|
|
1615
|
-
targetLocation: "path" | "
|
|
1634
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1616
1635
|
}, {
|
|
1617
1636
|
sourceStep: number;
|
|
1618
1637
|
sourceField: string;
|
|
1619
|
-
sourceLocation: "
|
|
1638
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1620
1639
|
targetParam: string;
|
|
1621
|
-
targetLocation: "path" | "
|
|
1640
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1622
1641
|
}>, z.ZodArray<z.ZodObject<{
|
|
1623
1642
|
sourceStep: z.ZodNumber;
|
|
1624
1643
|
sourceField: z.ZodString;
|
|
@@ -1628,15 +1647,15 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1628
1647
|
}, "strip", z.ZodTypeAny, {
|
|
1629
1648
|
sourceStep: number;
|
|
1630
1649
|
sourceField: string;
|
|
1631
|
-
sourceLocation: "
|
|
1650
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1632
1651
|
targetParam: string;
|
|
1633
|
-
targetLocation: "path" | "
|
|
1652
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1634
1653
|
}, {
|
|
1635
1654
|
sourceStep: number;
|
|
1636
1655
|
sourceField: string;
|
|
1637
|
-
sourceLocation: "
|
|
1656
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1638
1657
|
targetParam: string;
|
|
1639
|
-
targetLocation: "path" | "
|
|
1658
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1640
1659
|
}>, "many">]>>;
|
|
1641
1660
|
bodyMustInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1642
1661
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1648,20 +1667,20 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1648
1667
|
expectedStatusCode: number;
|
|
1649
1668
|
queryParams?: Record<string, any> | undefined;
|
|
1650
1669
|
requestBody?: Record<string, any> | undefined;
|
|
1651
|
-
responseBody?: Record<string, any> | undefined;
|
|
1670
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1652
1671
|
expectedResponseFields?: string[] | undefined;
|
|
1653
1672
|
chainsFrom?: {
|
|
1654
1673
|
sourceStep: number;
|
|
1655
1674
|
sourceField: string;
|
|
1656
|
-
sourceLocation: "
|
|
1675
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1657
1676
|
targetParam: string;
|
|
1658
|
-
targetLocation: "path" | "
|
|
1677
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1659
1678
|
} | {
|
|
1660
1679
|
sourceStep: number;
|
|
1661
1680
|
sourceField: string;
|
|
1662
|
-
sourceLocation: "
|
|
1681
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1663
1682
|
targetParam: string;
|
|
1664
|
-
targetLocation: "path" | "
|
|
1683
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1665
1684
|
}[] | undefined;
|
|
1666
1685
|
bodyMustInclude?: string[] | undefined;
|
|
1667
1686
|
}, {
|
|
@@ -1673,20 +1692,20 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1673
1692
|
expectedStatusCode: number;
|
|
1674
1693
|
queryParams?: Record<string, any> | undefined;
|
|
1675
1694
|
requestBody?: Record<string, any> | undefined;
|
|
1676
|
-
responseBody?: Record<string, any> | undefined;
|
|
1695
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1677
1696
|
expectedResponseFields?: string[] | undefined;
|
|
1678
1697
|
chainsFrom?: {
|
|
1679
1698
|
sourceStep: number;
|
|
1680
1699
|
sourceField: string;
|
|
1681
|
-
sourceLocation: "
|
|
1700
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1682
1701
|
targetParam: string;
|
|
1683
|
-
targetLocation: "path" | "
|
|
1702
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1684
1703
|
} | {
|
|
1685
1704
|
sourceStep: number;
|
|
1686
1705
|
sourceField: string;
|
|
1687
|
-
sourceLocation: "
|
|
1706
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1688
1707
|
targetParam: string;
|
|
1689
|
-
targetLocation: "path" | "
|
|
1708
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1690
1709
|
}[] | undefined;
|
|
1691
1710
|
bodyMustInclude?: string[] | undefined;
|
|
1692
1711
|
}>, "many">;
|
|
@@ -1710,20 +1729,20 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1710
1729
|
expectedStatusCode: number;
|
|
1711
1730
|
queryParams?: Record<string, any> | undefined;
|
|
1712
1731
|
requestBody?: Record<string, any> | undefined;
|
|
1713
|
-
responseBody?: Record<string, any> | undefined;
|
|
1732
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1714
1733
|
expectedResponseFields?: string[] | undefined;
|
|
1715
1734
|
chainsFrom?: {
|
|
1716
1735
|
sourceStep: number;
|
|
1717
1736
|
sourceField: string;
|
|
1718
|
-
sourceLocation: "
|
|
1737
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1719
1738
|
targetParam: string;
|
|
1720
|
-
targetLocation: "path" | "
|
|
1739
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1721
1740
|
} | {
|
|
1722
1741
|
sourceStep: number;
|
|
1723
1742
|
sourceField: string;
|
|
1724
|
-
sourceLocation: "
|
|
1743
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1725
1744
|
targetParam: string;
|
|
1726
|
-
targetLocation: "path" | "
|
|
1745
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1727
1746
|
}[] | undefined;
|
|
1728
1747
|
bodyMustInclude?: string[] | undefined;
|
|
1729
1748
|
}[];
|
|
@@ -1747,20 +1766,20 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1747
1766
|
expectedStatusCode: number;
|
|
1748
1767
|
queryParams?: Record<string, any> | undefined;
|
|
1749
1768
|
requestBody?: Record<string, any> | undefined;
|
|
1750
|
-
responseBody?: Record<string, any> | undefined;
|
|
1769
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1751
1770
|
expectedResponseFields?: string[] | undefined;
|
|
1752
1771
|
chainsFrom?: {
|
|
1753
1772
|
sourceStep: number;
|
|
1754
1773
|
sourceField: string;
|
|
1755
|
-
sourceLocation: "
|
|
1774
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1756
1775
|
targetParam: string;
|
|
1757
|
-
targetLocation: "path" | "
|
|
1776
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1758
1777
|
} | {
|
|
1759
1778
|
sourceStep: number;
|
|
1760
1779
|
sourceField: string;
|
|
1761
|
-
sourceLocation: "
|
|
1780
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1762
1781
|
targetParam: string;
|
|
1763
|
-
targetLocation: "path" | "
|
|
1782
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1764
1783
|
}[] | undefined;
|
|
1765
1784
|
bodyMustInclude?: string[] | undefined;
|
|
1766
1785
|
}[];
|
|
@@ -1790,20 +1809,20 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1790
1809
|
expectedStatusCode: number;
|
|
1791
1810
|
queryParams?: Record<string, any> | undefined;
|
|
1792
1811
|
requestBody?: Record<string, any> | undefined;
|
|
1793
|
-
responseBody?: Record<string, any> | undefined;
|
|
1812
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1794
1813
|
expectedResponseFields?: string[] | undefined;
|
|
1795
1814
|
chainsFrom?: {
|
|
1796
1815
|
sourceStep: number;
|
|
1797
1816
|
sourceField: string;
|
|
1798
|
-
sourceLocation: "
|
|
1817
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1799
1818
|
targetParam: string;
|
|
1800
|
-
targetLocation: "path" | "
|
|
1819
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1801
1820
|
} | {
|
|
1802
1821
|
sourceStep: number;
|
|
1803
1822
|
sourceField: string;
|
|
1804
|
-
sourceLocation: "
|
|
1823
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1805
1824
|
targetParam: string;
|
|
1806
|
-
targetLocation: "path" | "
|
|
1825
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1807
1826
|
}[] | undefined;
|
|
1808
1827
|
bodyMustInclude?: string[] | undefined;
|
|
1809
1828
|
}[];
|
|
@@ -1833,20 +1852,20 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1833
1852
|
expectedStatusCode: number;
|
|
1834
1853
|
queryParams?: Record<string, any> | undefined;
|
|
1835
1854
|
requestBody?: Record<string, any> | undefined;
|
|
1836
|
-
responseBody?: Record<string, any> | undefined;
|
|
1855
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
1837
1856
|
expectedResponseFields?: string[] | undefined;
|
|
1838
1857
|
chainsFrom?: {
|
|
1839
1858
|
sourceStep: number;
|
|
1840
1859
|
sourceField: string;
|
|
1841
|
-
sourceLocation: "
|
|
1860
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1842
1861
|
targetParam: string;
|
|
1843
|
-
targetLocation: "path" | "
|
|
1862
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1844
1863
|
} | {
|
|
1845
1864
|
sourceStep: number;
|
|
1846
1865
|
sourceField: string;
|
|
1847
|
-
sourceLocation: "
|
|
1866
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
1848
1867
|
targetParam: string;
|
|
1849
|
-
targetLocation: "path" | "
|
|
1868
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
1850
1869
|
}[] | undefined;
|
|
1851
1870
|
bodyMustInclude?: string[] | undefined;
|
|
1852
1871
|
}[];
|
|
@@ -1869,14 +1888,14 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1869
1888
|
path: string;
|
|
1870
1889
|
version: string;
|
|
1871
1890
|
authType: string;
|
|
1872
|
-
baseUrl: string;
|
|
1873
1891
|
endpointCount: number;
|
|
1892
|
+
baseUrl: string;
|
|
1874
1893
|
}, {
|
|
1875
1894
|
path: string;
|
|
1876
1895
|
version: string;
|
|
1877
1896
|
authType: string;
|
|
1878
|
-
baseUrl: string;
|
|
1879
1897
|
endpointCount: number;
|
|
1898
|
+
baseUrl: string;
|
|
1880
1899
|
}>, "many">;
|
|
1881
1900
|
playwrightRecordings: z.ZodArray<z.ZodObject<{
|
|
1882
1901
|
path: z.ZodString;
|
|
@@ -1910,8 +1929,8 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1910
1929
|
path: string;
|
|
1911
1930
|
version: string;
|
|
1912
1931
|
authType: string;
|
|
1913
|
-
baseUrl: string;
|
|
1914
1932
|
endpointCount: number;
|
|
1933
|
+
baseUrl: string;
|
|
1915
1934
|
}[];
|
|
1916
1935
|
playwrightRecordings: {
|
|
1917
1936
|
path: string;
|
|
@@ -1929,8 +1948,8 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
1929
1948
|
path: string;
|
|
1930
1949
|
version: string;
|
|
1931
1950
|
authType: string;
|
|
1932
|
-
baseUrl: string;
|
|
1933
1951
|
endpointCount: number;
|
|
1952
|
+
baseUrl: string;
|
|
1934
1953
|
}[];
|
|
1935
1954
|
playwrightRecordings: {
|
|
1936
1955
|
path: string;
|
|
@@ -2696,7 +2715,7 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2696
2715
|
metadata: {
|
|
2697
2716
|
repositoryName: string;
|
|
2698
2717
|
analysisDate: string;
|
|
2699
|
-
scanDepth: "
|
|
2718
|
+
scanDepth: "quick" | "full";
|
|
2700
2719
|
analysisScope?: AnalysisScope | undefined;
|
|
2701
2720
|
};
|
|
2702
2721
|
projectClassification: {
|
|
@@ -2734,20 +2753,20 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2734
2753
|
expectedStatusCode: number;
|
|
2735
2754
|
queryParams?: Record<string, any> | undefined;
|
|
2736
2755
|
requestBody?: Record<string, any> | undefined;
|
|
2737
|
-
responseBody?: Record<string, any> | undefined;
|
|
2756
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
2738
2757
|
expectedResponseFields?: string[] | undefined;
|
|
2739
2758
|
chainsFrom?: {
|
|
2740
2759
|
sourceStep: number;
|
|
2741
2760
|
sourceField: string;
|
|
2742
|
-
sourceLocation: "
|
|
2761
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
2743
2762
|
targetParam: string;
|
|
2744
|
-
targetLocation: "path" | "
|
|
2763
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
2745
2764
|
} | {
|
|
2746
2765
|
sourceStep: number;
|
|
2747
2766
|
sourceField: string;
|
|
2748
|
-
sourceLocation: "
|
|
2767
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
2749
2768
|
targetParam: string;
|
|
2750
|
-
targetLocation: "path" | "
|
|
2769
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
2751
2770
|
}[] | undefined;
|
|
2752
2771
|
bodyMustInclude?: string[] | undefined;
|
|
2753
2772
|
}[];
|
|
@@ -2764,8 +2783,8 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2764
2783
|
path: string;
|
|
2765
2784
|
version: string;
|
|
2766
2785
|
authType: string;
|
|
2767
|
-
baseUrl: string;
|
|
2768
2786
|
endpointCount: number;
|
|
2787
|
+
baseUrl: string;
|
|
2769
2788
|
}[];
|
|
2770
2789
|
playwrightRecordings: {
|
|
2771
2790
|
path: string;
|
|
@@ -2909,7 +2928,7 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2909
2928
|
metadata: {
|
|
2910
2929
|
repositoryName: string;
|
|
2911
2930
|
analysisDate: string;
|
|
2912
|
-
scanDepth: "
|
|
2931
|
+
scanDepth: "quick" | "full";
|
|
2913
2932
|
analysisScope?: AnalysisScope | undefined;
|
|
2914
2933
|
};
|
|
2915
2934
|
projectClassification: {
|
|
@@ -2947,20 +2966,20 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2947
2966
|
expectedStatusCode: number;
|
|
2948
2967
|
queryParams?: Record<string, any> | undefined;
|
|
2949
2968
|
requestBody?: Record<string, any> | undefined;
|
|
2950
|
-
responseBody?: Record<string, any> | undefined;
|
|
2969
|
+
responseBody?: any[] | Record<string, any> | undefined;
|
|
2951
2970
|
expectedResponseFields?: string[] | undefined;
|
|
2952
2971
|
chainsFrom?: {
|
|
2953
2972
|
sourceStep: number;
|
|
2954
2973
|
sourceField: string;
|
|
2955
|
-
sourceLocation: "
|
|
2974
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
2956
2975
|
targetParam: string;
|
|
2957
|
-
targetLocation: "path" | "
|
|
2976
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
2958
2977
|
} | {
|
|
2959
2978
|
sourceStep: number;
|
|
2960
2979
|
sourceField: string;
|
|
2961
|
-
sourceLocation: "
|
|
2980
|
+
sourceLocation: "body" | "header" | "cookie";
|
|
2962
2981
|
targetParam: string;
|
|
2963
|
-
targetLocation: "path" | "
|
|
2982
|
+
targetLocation: "path" | "body" | "header" | "cookie" | "query";
|
|
2964
2983
|
}[] | undefined;
|
|
2965
2984
|
bodyMustInclude?: string[] | undefined;
|
|
2966
2985
|
}[];
|
|
@@ -2977,8 +2996,8 @@ export declare const repositoryAnalysisSchema: z.ZodObject<{
|
|
|
2977
2996
|
path: string;
|
|
2978
2997
|
version: string;
|
|
2979
2998
|
authType: string;
|
|
2980
|
-
baseUrl: string;
|
|
2981
2999
|
endpointCount: number;
|
|
3000
|
+
baseUrl: string;
|
|
2982
3001
|
}[];
|
|
2983
3002
|
playwrightRecordings: {
|
|
2984
3003
|
path: string;
|