@anlyx/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/config.d.ts +208 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +143 -0
- package/dist/config.js.map +1 -0
- package/dist/fixture-validation.d.ts +17 -0
- package/dist/fixture-validation.d.ts.map +1 -0
- package/dist/fixture-validation.js +121 -0
- package/dist/fixture-validation.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/report-aggregation.d.ts +23 -0
- package/dist/report-aggregation.d.ts.map +1 -0
- package/dist/report-aggregation.js +168 -0
- package/dist/report-aggregation.js.map +1 -0
- package/dist/schema.d.ts +628 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +155 -0
- package/dist/schema.js.map +1 -0
- package/package.json +38 -0
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const httpMethodSchema: z.ZodEnum<{
|
|
3
|
+
GET: "GET";
|
|
4
|
+
POST: "POST";
|
|
5
|
+
PUT: "PUT";
|
|
6
|
+
PATCH: "PATCH";
|
|
7
|
+
DELETE: "DELETE";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const confidenceLevelSchema: z.ZodEnum<{
|
|
10
|
+
unknown: "unknown";
|
|
11
|
+
high: "high";
|
|
12
|
+
medium: "medium";
|
|
13
|
+
low: "low";
|
|
14
|
+
}>;
|
|
15
|
+
export declare const captureStatusSchema: z.ZodEnum<{
|
|
16
|
+
success: "success";
|
|
17
|
+
failed: "failed";
|
|
18
|
+
pending: "pending";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const supportLevelSchema: z.ZodEnum<{
|
|
21
|
+
basic: "basic";
|
|
22
|
+
enhanced: "enhanced";
|
|
23
|
+
deep: "deep";
|
|
24
|
+
}>;
|
|
25
|
+
export declare const endpointSchema: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
method: z.ZodEnum<{
|
|
28
|
+
GET: "GET";
|
|
29
|
+
POST: "POST";
|
|
30
|
+
PUT: "PUT";
|
|
31
|
+
PATCH: "PATCH";
|
|
32
|
+
DELETE: "DELETE";
|
|
33
|
+
}>;
|
|
34
|
+
path: z.ZodString;
|
|
35
|
+
framework: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
spring: "spring";
|
|
37
|
+
openapi: "openapi";
|
|
38
|
+
}>>;
|
|
39
|
+
supportLevel: z.ZodEnum<{
|
|
40
|
+
basic: "basic";
|
|
41
|
+
enhanced: "enhanced";
|
|
42
|
+
deep: "deep";
|
|
43
|
+
}>;
|
|
44
|
+
controller: z.ZodOptional<z.ZodString>;
|
|
45
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
46
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
47
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
49
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
50
|
+
authRequired: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
|
+
usedByPageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
unknown: "unknown";
|
|
55
|
+
high: "high";
|
|
56
|
+
medium: "medium";
|
|
57
|
+
low: "low";
|
|
58
|
+
}>>;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
export declare const flowNodeSchema: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
type: z.ZodEnum<{
|
|
63
|
+
unknown: "unknown";
|
|
64
|
+
controller: "controller";
|
|
65
|
+
page: "page";
|
|
66
|
+
endpoint: "endpoint";
|
|
67
|
+
service: "service";
|
|
68
|
+
repository: "repository";
|
|
69
|
+
database: "database";
|
|
70
|
+
dto: "dto";
|
|
71
|
+
schema: "schema";
|
|
72
|
+
externalApi: "externalApi";
|
|
73
|
+
cache: "cache";
|
|
74
|
+
utility: "utility";
|
|
75
|
+
validator: "validator";
|
|
76
|
+
mapper: "mapper";
|
|
77
|
+
}>;
|
|
78
|
+
label: z.ZodString;
|
|
79
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
80
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
unknown: "unknown";
|
|
83
|
+
high: "high";
|
|
84
|
+
medium: "medium";
|
|
85
|
+
low: "low";
|
|
86
|
+
}>>;
|
|
87
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
export declare const flowEdgeSchema: z.ZodObject<{
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
from: z.ZodString;
|
|
92
|
+
to: z.ZodString;
|
|
93
|
+
kind: z.ZodEnum<{
|
|
94
|
+
cache: "cache";
|
|
95
|
+
main: "main";
|
|
96
|
+
sub: "sub";
|
|
97
|
+
request: "request";
|
|
98
|
+
response: "response";
|
|
99
|
+
db: "db";
|
|
100
|
+
external: "external";
|
|
101
|
+
}>;
|
|
102
|
+
label: z.ZodOptional<z.ZodString>;
|
|
103
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
unknown: "unknown";
|
|
106
|
+
high: "high";
|
|
107
|
+
medium: "medium";
|
|
108
|
+
low: "low";
|
|
109
|
+
}>>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
export declare const subFlowSchema: z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
parentNodeId: z.ZodString;
|
|
114
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
type: z.ZodEnum<{
|
|
117
|
+
unknown: "unknown";
|
|
118
|
+
controller: "controller";
|
|
119
|
+
page: "page";
|
|
120
|
+
endpoint: "endpoint";
|
|
121
|
+
service: "service";
|
|
122
|
+
repository: "repository";
|
|
123
|
+
database: "database";
|
|
124
|
+
dto: "dto";
|
|
125
|
+
schema: "schema";
|
|
126
|
+
externalApi: "externalApi";
|
|
127
|
+
cache: "cache";
|
|
128
|
+
utility: "utility";
|
|
129
|
+
validator: "validator";
|
|
130
|
+
mapper: "mapper";
|
|
131
|
+
}>;
|
|
132
|
+
label: z.ZodString;
|
|
133
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
134
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
unknown: "unknown";
|
|
137
|
+
high: "high";
|
|
138
|
+
medium: "medium";
|
|
139
|
+
low: "low";
|
|
140
|
+
}>>;
|
|
141
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
142
|
+
}, z.core.$strict>>;
|
|
143
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
from: z.ZodString;
|
|
146
|
+
to: z.ZodString;
|
|
147
|
+
kind: z.ZodEnum<{
|
|
148
|
+
cache: "cache";
|
|
149
|
+
main: "main";
|
|
150
|
+
sub: "sub";
|
|
151
|
+
request: "request";
|
|
152
|
+
response: "response";
|
|
153
|
+
db: "db";
|
|
154
|
+
external: "external";
|
|
155
|
+
}>;
|
|
156
|
+
label: z.ZodOptional<z.ZodString>;
|
|
157
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
159
|
+
unknown: "unknown";
|
|
160
|
+
high: "high";
|
|
161
|
+
medium: "medium";
|
|
162
|
+
low: "low";
|
|
163
|
+
}>>;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
collapsedByDefault: z.ZodBoolean;
|
|
166
|
+
}, z.core.$strict>;
|
|
167
|
+
export declare const endpointFlowSchema: z.ZodObject<{
|
|
168
|
+
endpointId: z.ZodString;
|
|
169
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
type: z.ZodEnum<{
|
|
172
|
+
unknown: "unknown";
|
|
173
|
+
controller: "controller";
|
|
174
|
+
page: "page";
|
|
175
|
+
endpoint: "endpoint";
|
|
176
|
+
service: "service";
|
|
177
|
+
repository: "repository";
|
|
178
|
+
database: "database";
|
|
179
|
+
dto: "dto";
|
|
180
|
+
schema: "schema";
|
|
181
|
+
externalApi: "externalApi";
|
|
182
|
+
cache: "cache";
|
|
183
|
+
utility: "utility";
|
|
184
|
+
validator: "validator";
|
|
185
|
+
mapper: "mapper";
|
|
186
|
+
}>;
|
|
187
|
+
label: z.ZodString;
|
|
188
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
189
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
190
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
unknown: "unknown";
|
|
192
|
+
high: "high";
|
|
193
|
+
medium: "medium";
|
|
194
|
+
low: "low";
|
|
195
|
+
}>>;
|
|
196
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
197
|
+
}, z.core.$strict>>;
|
|
198
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
199
|
+
id: z.ZodString;
|
|
200
|
+
from: z.ZodString;
|
|
201
|
+
to: z.ZodString;
|
|
202
|
+
kind: z.ZodEnum<{
|
|
203
|
+
cache: "cache";
|
|
204
|
+
main: "main";
|
|
205
|
+
sub: "sub";
|
|
206
|
+
request: "request";
|
|
207
|
+
response: "response";
|
|
208
|
+
db: "db";
|
|
209
|
+
external: "external";
|
|
210
|
+
}>;
|
|
211
|
+
label: z.ZodOptional<z.ZodString>;
|
|
212
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
214
|
+
unknown: "unknown";
|
|
215
|
+
high: "high";
|
|
216
|
+
medium: "medium";
|
|
217
|
+
low: "low";
|
|
218
|
+
}>>;
|
|
219
|
+
}, z.core.$strict>>;
|
|
220
|
+
mainPath: z.ZodArray<z.ZodString>;
|
|
221
|
+
subFlows: z.ZodArray<z.ZodObject<{
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
parentNodeId: z.ZodString;
|
|
224
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
225
|
+
id: z.ZodString;
|
|
226
|
+
type: z.ZodEnum<{
|
|
227
|
+
unknown: "unknown";
|
|
228
|
+
controller: "controller";
|
|
229
|
+
page: "page";
|
|
230
|
+
endpoint: "endpoint";
|
|
231
|
+
service: "service";
|
|
232
|
+
repository: "repository";
|
|
233
|
+
database: "database";
|
|
234
|
+
dto: "dto";
|
|
235
|
+
schema: "schema";
|
|
236
|
+
externalApi: "externalApi";
|
|
237
|
+
cache: "cache";
|
|
238
|
+
utility: "utility";
|
|
239
|
+
validator: "validator";
|
|
240
|
+
mapper: "mapper";
|
|
241
|
+
}>;
|
|
242
|
+
label: z.ZodString;
|
|
243
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
244
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
246
|
+
unknown: "unknown";
|
|
247
|
+
high: "high";
|
|
248
|
+
medium: "medium";
|
|
249
|
+
low: "low";
|
|
250
|
+
}>>;
|
|
251
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
252
|
+
}, z.core.$strict>>;
|
|
253
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
from: z.ZodString;
|
|
256
|
+
to: z.ZodString;
|
|
257
|
+
kind: z.ZodEnum<{
|
|
258
|
+
cache: "cache";
|
|
259
|
+
main: "main";
|
|
260
|
+
sub: "sub";
|
|
261
|
+
request: "request";
|
|
262
|
+
response: "response";
|
|
263
|
+
db: "db";
|
|
264
|
+
external: "external";
|
|
265
|
+
}>;
|
|
266
|
+
label: z.ZodOptional<z.ZodString>;
|
|
267
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
268
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
269
|
+
unknown: "unknown";
|
|
270
|
+
high: "high";
|
|
271
|
+
medium: "medium";
|
|
272
|
+
low: "low";
|
|
273
|
+
}>>;
|
|
274
|
+
}, z.core.$strict>>;
|
|
275
|
+
collapsedByDefault: z.ZodBoolean;
|
|
276
|
+
}, z.core.$strict>>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
export declare const viewportSchema: z.ZodObject<{
|
|
279
|
+
width: z.ZodNumber;
|
|
280
|
+
height: z.ZodNumber;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
export declare const screenshotSegmentSchema: z.ZodObject<{
|
|
283
|
+
segmentIndex: z.ZodNumber;
|
|
284
|
+
title: z.ZodOptional<z.ZodString>;
|
|
285
|
+
path: z.ZodOptional<z.ZodString>;
|
|
286
|
+
viewport: z.ZodObject<{
|
|
287
|
+
width: z.ZodNumber;
|
|
288
|
+
height: z.ZodNumber;
|
|
289
|
+
}, z.core.$strict>;
|
|
290
|
+
scrollY: z.ZodNumber;
|
|
291
|
+
}, z.core.$strict>;
|
|
292
|
+
export declare const apiCallSchema: z.ZodObject<{
|
|
293
|
+
method: z.ZodEnum<{
|
|
294
|
+
GET: "GET";
|
|
295
|
+
POST: "POST";
|
|
296
|
+
PUT: "PUT";
|
|
297
|
+
PATCH: "PATCH";
|
|
298
|
+
DELETE: "DELETE";
|
|
299
|
+
}>;
|
|
300
|
+
path: z.ZodString;
|
|
301
|
+
endpointId: z.ZodOptional<z.ZodString>;
|
|
302
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
}, z.core.$strict>;
|
|
304
|
+
export declare const pageStoryboardSchema: z.ZodObject<{
|
|
305
|
+
id: z.ZodString;
|
|
306
|
+
route: z.ZodString;
|
|
307
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
308
|
+
screenshots: z.ZodArray<z.ZodObject<{
|
|
309
|
+
segmentIndex: z.ZodNumber;
|
|
310
|
+
title: z.ZodOptional<z.ZodString>;
|
|
311
|
+
path: z.ZodOptional<z.ZodString>;
|
|
312
|
+
viewport: z.ZodObject<{
|
|
313
|
+
width: z.ZodNumber;
|
|
314
|
+
height: z.ZodNumber;
|
|
315
|
+
}, z.core.$strict>;
|
|
316
|
+
scrollY: z.ZodNumber;
|
|
317
|
+
}, z.core.$strict>>;
|
|
318
|
+
apiCalls: z.ZodArray<z.ZodObject<{
|
|
319
|
+
method: z.ZodEnum<{
|
|
320
|
+
GET: "GET";
|
|
321
|
+
POST: "POST";
|
|
322
|
+
PUT: "PUT";
|
|
323
|
+
PATCH: "PATCH";
|
|
324
|
+
DELETE: "DELETE";
|
|
325
|
+
}>;
|
|
326
|
+
path: z.ZodString;
|
|
327
|
+
endpointId: z.ZodOptional<z.ZodString>;
|
|
328
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
}, z.core.$strict>>;
|
|
330
|
+
captureStatus: z.ZodEnum<{
|
|
331
|
+
success: "success";
|
|
332
|
+
failed: "failed";
|
|
333
|
+
pending: "pending";
|
|
334
|
+
}>;
|
|
335
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strict>;
|
|
337
|
+
export declare const captureResultSchema: z.ZodObject<{
|
|
338
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
339
|
+
id: z.ZodString;
|
|
340
|
+
route: z.ZodString;
|
|
341
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
342
|
+
screenshots: z.ZodArray<z.ZodObject<{
|
|
343
|
+
segmentIndex: z.ZodNumber;
|
|
344
|
+
title: z.ZodOptional<z.ZodString>;
|
|
345
|
+
path: z.ZodOptional<z.ZodString>;
|
|
346
|
+
viewport: z.ZodObject<{
|
|
347
|
+
width: z.ZodNumber;
|
|
348
|
+
height: z.ZodNumber;
|
|
349
|
+
}, z.core.$strict>;
|
|
350
|
+
scrollY: z.ZodNumber;
|
|
351
|
+
}, z.core.$strict>>;
|
|
352
|
+
apiCalls: z.ZodArray<z.ZodObject<{
|
|
353
|
+
method: z.ZodEnum<{
|
|
354
|
+
GET: "GET";
|
|
355
|
+
POST: "POST";
|
|
356
|
+
PUT: "PUT";
|
|
357
|
+
PATCH: "PATCH";
|
|
358
|
+
DELETE: "DELETE";
|
|
359
|
+
}>;
|
|
360
|
+
path: z.ZodString;
|
|
361
|
+
endpointId: z.ZodOptional<z.ZodString>;
|
|
362
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
}, z.core.$strict>>;
|
|
364
|
+
captureStatus: z.ZodEnum<{
|
|
365
|
+
success: "success";
|
|
366
|
+
failed: "failed";
|
|
367
|
+
pending: "pending";
|
|
368
|
+
}>;
|
|
369
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
370
|
+
}, z.core.$strict>>;
|
|
371
|
+
capturedAt: z.ZodString;
|
|
372
|
+
viewport: z.ZodObject<{
|
|
373
|
+
width: z.ZodNumber;
|
|
374
|
+
height: z.ZodNumber;
|
|
375
|
+
}, z.core.$strict>;
|
|
376
|
+
storageStateUsed: z.ZodOptional<z.ZodString>;
|
|
377
|
+
}, z.core.$strict>;
|
|
378
|
+
export declare const scanResultSchema: z.ZodObject<{
|
|
379
|
+
projectName: z.ZodString;
|
|
380
|
+
generatedAt: z.ZodString;
|
|
381
|
+
schemaVersion: z.ZodLiteral<"0.1">;
|
|
382
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
method: z.ZodEnum<{
|
|
385
|
+
GET: "GET";
|
|
386
|
+
POST: "POST";
|
|
387
|
+
PUT: "PUT";
|
|
388
|
+
PATCH: "PATCH";
|
|
389
|
+
DELETE: "DELETE";
|
|
390
|
+
}>;
|
|
391
|
+
path: z.ZodString;
|
|
392
|
+
framework: z.ZodOptional<z.ZodEnum<{
|
|
393
|
+
spring: "spring";
|
|
394
|
+
openapi: "openapi";
|
|
395
|
+
}>>;
|
|
396
|
+
supportLevel: z.ZodEnum<{
|
|
397
|
+
basic: "basic";
|
|
398
|
+
enhanced: "enhanced";
|
|
399
|
+
deep: "deep";
|
|
400
|
+
}>;
|
|
401
|
+
controller: z.ZodOptional<z.ZodString>;
|
|
402
|
+
handler: z.ZodOptional<z.ZodString>;
|
|
403
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
404
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
405
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
406
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
407
|
+
authRequired: z.ZodOptional<z.ZodBoolean>;
|
|
408
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
409
|
+
usedByPageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
410
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
411
|
+
unknown: "unknown";
|
|
412
|
+
high: "high";
|
|
413
|
+
medium: "medium";
|
|
414
|
+
low: "low";
|
|
415
|
+
}>>;
|
|
416
|
+
}, z.core.$strict>>;
|
|
417
|
+
flows: z.ZodArray<z.ZodObject<{
|
|
418
|
+
endpointId: z.ZodString;
|
|
419
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
420
|
+
id: z.ZodString;
|
|
421
|
+
type: z.ZodEnum<{
|
|
422
|
+
unknown: "unknown";
|
|
423
|
+
controller: "controller";
|
|
424
|
+
page: "page";
|
|
425
|
+
endpoint: "endpoint";
|
|
426
|
+
service: "service";
|
|
427
|
+
repository: "repository";
|
|
428
|
+
database: "database";
|
|
429
|
+
dto: "dto";
|
|
430
|
+
schema: "schema";
|
|
431
|
+
externalApi: "externalApi";
|
|
432
|
+
cache: "cache";
|
|
433
|
+
utility: "utility";
|
|
434
|
+
validator: "validator";
|
|
435
|
+
mapper: "mapper";
|
|
436
|
+
}>;
|
|
437
|
+
label: z.ZodString;
|
|
438
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
439
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
440
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
441
|
+
unknown: "unknown";
|
|
442
|
+
high: "high";
|
|
443
|
+
medium: "medium";
|
|
444
|
+
low: "low";
|
|
445
|
+
}>>;
|
|
446
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
447
|
+
}, z.core.$strict>>;
|
|
448
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
449
|
+
id: z.ZodString;
|
|
450
|
+
from: z.ZodString;
|
|
451
|
+
to: z.ZodString;
|
|
452
|
+
kind: z.ZodEnum<{
|
|
453
|
+
cache: "cache";
|
|
454
|
+
main: "main";
|
|
455
|
+
sub: "sub";
|
|
456
|
+
request: "request";
|
|
457
|
+
response: "response";
|
|
458
|
+
db: "db";
|
|
459
|
+
external: "external";
|
|
460
|
+
}>;
|
|
461
|
+
label: z.ZodOptional<z.ZodString>;
|
|
462
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
463
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
464
|
+
unknown: "unknown";
|
|
465
|
+
high: "high";
|
|
466
|
+
medium: "medium";
|
|
467
|
+
low: "low";
|
|
468
|
+
}>>;
|
|
469
|
+
}, z.core.$strict>>;
|
|
470
|
+
mainPath: z.ZodArray<z.ZodString>;
|
|
471
|
+
subFlows: z.ZodArray<z.ZodObject<{
|
|
472
|
+
id: z.ZodString;
|
|
473
|
+
parentNodeId: z.ZodString;
|
|
474
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
475
|
+
id: z.ZodString;
|
|
476
|
+
type: z.ZodEnum<{
|
|
477
|
+
unknown: "unknown";
|
|
478
|
+
controller: "controller";
|
|
479
|
+
page: "page";
|
|
480
|
+
endpoint: "endpoint";
|
|
481
|
+
service: "service";
|
|
482
|
+
repository: "repository";
|
|
483
|
+
database: "database";
|
|
484
|
+
dto: "dto";
|
|
485
|
+
schema: "schema";
|
|
486
|
+
externalApi: "externalApi";
|
|
487
|
+
cache: "cache";
|
|
488
|
+
utility: "utility";
|
|
489
|
+
validator: "validator";
|
|
490
|
+
mapper: "mapper";
|
|
491
|
+
}>;
|
|
492
|
+
label: z.ZodString;
|
|
493
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
494
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
495
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
496
|
+
unknown: "unknown";
|
|
497
|
+
high: "high";
|
|
498
|
+
medium: "medium";
|
|
499
|
+
low: "low";
|
|
500
|
+
}>>;
|
|
501
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
502
|
+
}, z.core.$strict>>;
|
|
503
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
504
|
+
id: z.ZodString;
|
|
505
|
+
from: z.ZodString;
|
|
506
|
+
to: z.ZodString;
|
|
507
|
+
kind: z.ZodEnum<{
|
|
508
|
+
cache: "cache";
|
|
509
|
+
main: "main";
|
|
510
|
+
sub: "sub";
|
|
511
|
+
request: "request";
|
|
512
|
+
response: "response";
|
|
513
|
+
db: "db";
|
|
514
|
+
external: "external";
|
|
515
|
+
}>;
|
|
516
|
+
label: z.ZodOptional<z.ZodString>;
|
|
517
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
519
|
+
unknown: "unknown";
|
|
520
|
+
high: "high";
|
|
521
|
+
medium: "medium";
|
|
522
|
+
low: "low";
|
|
523
|
+
}>>;
|
|
524
|
+
}, z.core.$strict>>;
|
|
525
|
+
collapsedByDefault: z.ZodBoolean;
|
|
526
|
+
}, z.core.$strict>>;
|
|
527
|
+
}, z.core.$strict>>;
|
|
528
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
529
|
+
id: z.ZodString;
|
|
530
|
+
route: z.ZodString;
|
|
531
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
532
|
+
screenshots: z.ZodArray<z.ZodObject<{
|
|
533
|
+
segmentIndex: z.ZodNumber;
|
|
534
|
+
title: z.ZodOptional<z.ZodString>;
|
|
535
|
+
path: z.ZodOptional<z.ZodString>;
|
|
536
|
+
viewport: z.ZodObject<{
|
|
537
|
+
width: z.ZodNumber;
|
|
538
|
+
height: z.ZodNumber;
|
|
539
|
+
}, z.core.$strict>;
|
|
540
|
+
scrollY: z.ZodNumber;
|
|
541
|
+
}, z.core.$strict>>;
|
|
542
|
+
apiCalls: z.ZodArray<z.ZodObject<{
|
|
543
|
+
method: z.ZodEnum<{
|
|
544
|
+
GET: "GET";
|
|
545
|
+
POST: "POST";
|
|
546
|
+
PUT: "PUT";
|
|
547
|
+
PATCH: "PATCH";
|
|
548
|
+
DELETE: "DELETE";
|
|
549
|
+
}>;
|
|
550
|
+
path: z.ZodString;
|
|
551
|
+
endpointId: z.ZodOptional<z.ZodString>;
|
|
552
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
}, z.core.$strict>>;
|
|
554
|
+
captureStatus: z.ZodEnum<{
|
|
555
|
+
success: "success";
|
|
556
|
+
failed: "failed";
|
|
557
|
+
pending: "pending";
|
|
558
|
+
}>;
|
|
559
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
560
|
+
}, z.core.$strict>>;
|
|
561
|
+
capture: z.ZodOptional<z.ZodObject<{
|
|
562
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
563
|
+
id: z.ZodString;
|
|
564
|
+
route: z.ZodString;
|
|
565
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
566
|
+
screenshots: z.ZodArray<z.ZodObject<{
|
|
567
|
+
segmentIndex: z.ZodNumber;
|
|
568
|
+
title: z.ZodOptional<z.ZodString>;
|
|
569
|
+
path: z.ZodOptional<z.ZodString>;
|
|
570
|
+
viewport: z.ZodObject<{
|
|
571
|
+
width: z.ZodNumber;
|
|
572
|
+
height: z.ZodNumber;
|
|
573
|
+
}, z.core.$strict>;
|
|
574
|
+
scrollY: z.ZodNumber;
|
|
575
|
+
}, z.core.$strict>>;
|
|
576
|
+
apiCalls: z.ZodArray<z.ZodObject<{
|
|
577
|
+
method: z.ZodEnum<{
|
|
578
|
+
GET: "GET";
|
|
579
|
+
POST: "POST";
|
|
580
|
+
PUT: "PUT";
|
|
581
|
+
PATCH: "PATCH";
|
|
582
|
+
DELETE: "DELETE";
|
|
583
|
+
}>;
|
|
584
|
+
path: z.ZodString;
|
|
585
|
+
endpointId: z.ZodOptional<z.ZodString>;
|
|
586
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
587
|
+
}, z.core.$strict>>;
|
|
588
|
+
captureStatus: z.ZodEnum<{
|
|
589
|
+
success: "success";
|
|
590
|
+
failed: "failed";
|
|
591
|
+
pending: "pending";
|
|
592
|
+
}>;
|
|
593
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, z.core.$strict>>;
|
|
595
|
+
capturedAt: z.ZodString;
|
|
596
|
+
viewport: z.ZodObject<{
|
|
597
|
+
width: z.ZodNumber;
|
|
598
|
+
height: z.ZodNumber;
|
|
599
|
+
}, z.core.$strict>;
|
|
600
|
+
storageStateUsed: z.ZodOptional<z.ZodString>;
|
|
601
|
+
}, z.core.$strict>>;
|
|
602
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
603
|
+
code: z.ZodString;
|
|
604
|
+
message: z.ZodString;
|
|
605
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
606
|
+
}, z.core.$strict>>;
|
|
607
|
+
}, z.core.$strict>;
|
|
608
|
+
export type HttpMethod = z.infer<typeof httpMethodSchema>;
|
|
609
|
+
export type ConfidenceLevel = z.infer<typeof confidenceLevelSchema>;
|
|
610
|
+
export type CaptureStatus = z.infer<typeof captureStatusSchema>;
|
|
611
|
+
export type SupportLevel = z.infer<typeof supportLevelSchema>;
|
|
612
|
+
export type Endpoint = z.infer<typeof endpointSchema>;
|
|
613
|
+
export type FlowNode = z.infer<typeof flowNodeSchema>;
|
|
614
|
+
export type FlowEdge = z.infer<typeof flowEdgeSchema>;
|
|
615
|
+
export type SubFlow = z.infer<typeof subFlowSchema>;
|
|
616
|
+
export type EndpointFlow = z.infer<typeof endpointFlowSchema>;
|
|
617
|
+
export type Viewport = z.infer<typeof viewportSchema>;
|
|
618
|
+
export type ScreenshotSegment = z.infer<typeof screenshotSegmentSchema>;
|
|
619
|
+
export type ApiCall = z.infer<typeof apiCallSchema>;
|
|
620
|
+
export type PageStoryboard = z.infer<typeof pageStoryboardSchema>;
|
|
621
|
+
export type CaptureResult = z.infer<typeof captureResultSchema>;
|
|
622
|
+
export type ScanResult = z.infer<typeof scanResultSchema>;
|
|
623
|
+
export declare function parseEndpoint(value: unknown): Endpoint;
|
|
624
|
+
export declare function parseEndpointFlow(value: unknown): EndpointFlow;
|
|
625
|
+
export declare function parsePageStoryboard(value: unknown): PageStoryboard;
|
|
626
|
+
export declare function parseScanResult(value: unknown): ScanResult;
|
|
627
|
+
export declare function parseCaptureResult(value: unknown): CaptureResult;
|
|
628
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;EAAoD,CAAC;AAClF,eAAO,MAAM,qBAAqB;;;;;EAA+C,CAAC;AAClF,eAAO,MAAM,mBAAmB;;;;EAA2C,CAAC;AAC5E,eAAO,MAAM,kBAAkB;;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