@qualitas-id/mcp 1.0.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 +262 -0
- package/dist/constants.d.ts +18 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +18 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +82 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/common.d.ts +20 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +10 -0
- package/dist/schemas/common.js.map +1 -0
- package/dist/schemas/flow.d.ts +358 -0
- package/dist/schemas/flow.d.ts.map +1 -0
- package/dist/schemas/flow.js +72 -0
- package/dist/schemas/flow.js.map +1 -0
- package/dist/schemas/project.d.ts +70 -0
- package/dist/schemas/project.d.ts.map +1 -0
- package/dist/schemas/project.js +26 -0
- package/dist/schemas/project.js.map +1 -0
- package/dist/schemas/run.d.ts +54 -0
- package/dist/schemas/run.d.ts.map +1 -0
- package/dist/schemas/run.js +20 -0
- package/dist/schemas/run.js.map +1 -0
- package/dist/schemas/variable.d.ts +91 -0
- package/dist/schemas/variable.d.ts.map +1 -0
- package/dist/schemas/variable.js +30 -0
- package/dist/schemas/variable.js.map +1 -0
- package/dist/services/api-client.d.ts +101 -0
- package/dist/services/api-client.d.ts.map +1 -0
- package/dist/services/api-client.js +184 -0
- package/dist/services/api-client.js.map +1 -0
- package/dist/services/flow-generator.d.ts +31 -0
- package/dist/services/flow-generator.d.ts.map +1 -0
- package/dist/services/flow-generator.js +638 -0
- package/dist/services/flow-generator.js.map +1 -0
- package/dist/shared-types.d.ts +579 -0
- package/dist/shared-types.d.ts.map +1 -0
- package/dist/shared-types.js +12 -0
- package/dist/shared-types.js.map +1 -0
- package/dist/tools/flows.d.ts +13 -0
- package/dist/tools/flows.d.ts.map +1 -0
- package/dist/tools/flows.js +458 -0
- package/dist/tools/flows.js.map +1 -0
- package/dist/tools/projects.d.ts +13 -0
- package/dist/tools/projects.d.ts.map +1 -0
- package/dist/tools/projects.js +381 -0
- package/dist/tools/projects.js.map +1 -0
- package/dist/tools/runs.d.ts +9 -0
- package/dist/tools/runs.d.ts.map +1 -0
- package/dist/tools/runs.js +342 -0
- package/dist/tools/runs.js.map +1 -0
- package/dist/tools/utils.d.ts +12 -0
- package/dist/tools/utils.d.ts.map +1 -0
- package/dist/tools/utils.js +144 -0
- package/dist/tools/utils.js.map +1 -0
- package/dist/tools/variables.d.ts +9 -0
- package/dist/tools/variables.d.ts.map +1 -0
- package/dist/tools/variables.js +316 -0
- package/dist/tools/variables.js.map +1 -0
- package/dist/types.d.ts +117 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/flow-layout.d.ts +34 -0
- package/dist/utils/flow-layout.d.ts.map +1 -0
- package/dist/utils/flow-layout.js +109 -0
- package/dist/utils/flow-layout.js.map +1 -0
- package/dist/utils/flow-validation.d.ts +74 -0
- package/dist/utils/flow-validation.d.ts.map +1 -0
- package/dist/utils/flow-validation.js +386 -0
- package/dist/utils/flow-validation.js.map +1 -0
- package/dist/utils/ocr.d.ts +25 -0
- package/dist/utils/ocr.d.ts.map +1 -0
- package/dist/utils/ocr.js +88 -0
- package/dist/utils/ocr.js.map +1 -0
- package/package.json +65 -0
- package/skills/qualitas.md +253 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ListFlowsSchema: z.ZodObject<{
|
|
3
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
4
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
} & {
|
|
6
|
+
project_id: z.ZodString;
|
|
7
|
+
search: z.ZodOptional<z.ZodString>;
|
|
8
|
+
status: z.ZodOptional<z.ZodEnum<["passing", "failing", "never_run", "running"]>>;
|
|
9
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
limit: number;
|
|
12
|
+
offset: number;
|
|
13
|
+
response_format: "markdown" | "json";
|
|
14
|
+
project_id: string;
|
|
15
|
+
status?: "failing" | "passing" | "never_run" | "running" | undefined;
|
|
16
|
+
search?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
project_id: string;
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
offset?: number | undefined;
|
|
21
|
+
status?: "failing" | "passing" | "never_run" | "running" | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
response_format?: "markdown" | "json" | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const GetFlowSchema: z.ZodObject<{
|
|
26
|
+
project_id: z.ZodString;
|
|
27
|
+
flow_id: z.ZodString;
|
|
28
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
29
|
+
}, "strict", z.ZodTypeAny, {
|
|
30
|
+
response_format: "markdown" | "json";
|
|
31
|
+
project_id: string;
|
|
32
|
+
flow_id: string;
|
|
33
|
+
}, {
|
|
34
|
+
project_id: string;
|
|
35
|
+
flow_id: string;
|
|
36
|
+
response_format?: "markdown" | "json" | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const CreateFlowSchema: z.ZodObject<{
|
|
39
|
+
project_id: z.ZodString;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
description: z.ZodOptional<z.ZodString>;
|
|
42
|
+
type: z.ZodDefault<z.ZodEnum<["flow", "fragment"]>>;
|
|
43
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod"]>>;
|
|
44
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
type: z.ZodString;
|
|
47
|
+
position: z.ZodObject<{
|
|
48
|
+
x: z.ZodNumber;
|
|
49
|
+
y: z.ZodNumber;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
x: number;
|
|
52
|
+
y: number;
|
|
53
|
+
}, {
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
}>;
|
|
57
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
data: Record<string, unknown>;
|
|
60
|
+
type: string;
|
|
61
|
+
id: string;
|
|
62
|
+
position: {
|
|
63
|
+
x: number;
|
|
64
|
+
y: number;
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
data: Record<string, unknown>;
|
|
68
|
+
type: string;
|
|
69
|
+
id: string;
|
|
70
|
+
position: {
|
|
71
|
+
x: number;
|
|
72
|
+
y: number;
|
|
73
|
+
};
|
|
74
|
+
}>, "many">;
|
|
75
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
source: z.ZodString;
|
|
78
|
+
target: z.ZodString;
|
|
79
|
+
sourceHandle: z.ZodOptional<z.ZodString>;
|
|
80
|
+
targetHandle: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
id: string;
|
|
83
|
+
source: string;
|
|
84
|
+
target: string;
|
|
85
|
+
sourceHandle?: string | undefined;
|
|
86
|
+
targetHandle?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
id: string;
|
|
89
|
+
source: string;
|
|
90
|
+
target: string;
|
|
91
|
+
sourceHandle?: string | undefined;
|
|
92
|
+
targetHandle?: string | undefined;
|
|
93
|
+
}>, "many">;
|
|
94
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
values: z.ZodObject<{
|
|
97
|
+
dev: z.ZodOptional<z.ZodString>;
|
|
98
|
+
staging: z.ZodOptional<z.ZodString>;
|
|
99
|
+
prod: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
dev?: string | undefined;
|
|
102
|
+
staging?: string | undefined;
|
|
103
|
+
prod?: string | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
dev?: string | undefined;
|
|
106
|
+
staging?: string | undefined;
|
|
107
|
+
prod?: string | undefined;
|
|
108
|
+
}>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
values: {
|
|
111
|
+
dev?: string | undefined;
|
|
112
|
+
staging?: string | undefined;
|
|
113
|
+
prod?: string | undefined;
|
|
114
|
+
};
|
|
115
|
+
name: string;
|
|
116
|
+
}, {
|
|
117
|
+
values: {
|
|
118
|
+
dev?: string | undefined;
|
|
119
|
+
staging?: string | undefined;
|
|
120
|
+
prod?: string | undefined;
|
|
121
|
+
};
|
|
122
|
+
name: string;
|
|
123
|
+
}>, "many">>;
|
|
124
|
+
}, "strict", z.ZodTypeAny, {
|
|
125
|
+
type: "flow" | "fragment";
|
|
126
|
+
name: string;
|
|
127
|
+
project_id: string;
|
|
128
|
+
environment: "dev" | "staging" | "prod";
|
|
129
|
+
nodes: {
|
|
130
|
+
data: Record<string, unknown>;
|
|
131
|
+
type: string;
|
|
132
|
+
id: string;
|
|
133
|
+
position: {
|
|
134
|
+
x: number;
|
|
135
|
+
y: number;
|
|
136
|
+
};
|
|
137
|
+
}[];
|
|
138
|
+
edges: {
|
|
139
|
+
id: string;
|
|
140
|
+
source: string;
|
|
141
|
+
target: string;
|
|
142
|
+
sourceHandle?: string | undefined;
|
|
143
|
+
targetHandle?: string | undefined;
|
|
144
|
+
}[];
|
|
145
|
+
description?: string | undefined;
|
|
146
|
+
variables?: {
|
|
147
|
+
values: {
|
|
148
|
+
dev?: string | undefined;
|
|
149
|
+
staging?: string | undefined;
|
|
150
|
+
prod?: string | undefined;
|
|
151
|
+
};
|
|
152
|
+
name: string;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
name: string;
|
|
156
|
+
project_id: string;
|
|
157
|
+
nodes: {
|
|
158
|
+
data: Record<string, unknown>;
|
|
159
|
+
type: string;
|
|
160
|
+
id: string;
|
|
161
|
+
position: {
|
|
162
|
+
x: number;
|
|
163
|
+
y: number;
|
|
164
|
+
};
|
|
165
|
+
}[];
|
|
166
|
+
edges: {
|
|
167
|
+
id: string;
|
|
168
|
+
source: string;
|
|
169
|
+
target: string;
|
|
170
|
+
sourceHandle?: string | undefined;
|
|
171
|
+
targetHandle?: string | undefined;
|
|
172
|
+
}[];
|
|
173
|
+
type?: "flow" | "fragment" | undefined;
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
environment?: "dev" | "staging" | "prod" | undefined;
|
|
176
|
+
variables?: {
|
|
177
|
+
values: {
|
|
178
|
+
dev?: string | undefined;
|
|
179
|
+
staging?: string | undefined;
|
|
180
|
+
prod?: string | undefined;
|
|
181
|
+
};
|
|
182
|
+
name: string;
|
|
183
|
+
}[] | undefined;
|
|
184
|
+
}>;
|
|
185
|
+
export declare const UpdateFlowSchema: z.ZodObject<{
|
|
186
|
+
project_id: z.ZodString;
|
|
187
|
+
flow_id: z.ZodString;
|
|
188
|
+
name: z.ZodOptional<z.ZodString>;
|
|
189
|
+
description: z.ZodOptional<z.ZodString>;
|
|
190
|
+
environment: z.ZodOptional<z.ZodEnum<["dev", "staging", "prod"]>>;
|
|
191
|
+
nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
type: z.ZodString;
|
|
194
|
+
position: z.ZodObject<{
|
|
195
|
+
x: z.ZodNumber;
|
|
196
|
+
y: z.ZodNumber;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
x: number;
|
|
199
|
+
y: number;
|
|
200
|
+
}, {
|
|
201
|
+
x: number;
|
|
202
|
+
y: number;
|
|
203
|
+
}>;
|
|
204
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
data: Record<string, unknown>;
|
|
207
|
+
type: string;
|
|
208
|
+
id: string;
|
|
209
|
+
position: {
|
|
210
|
+
x: number;
|
|
211
|
+
y: number;
|
|
212
|
+
};
|
|
213
|
+
}, {
|
|
214
|
+
data: Record<string, unknown>;
|
|
215
|
+
type: string;
|
|
216
|
+
id: string;
|
|
217
|
+
position: {
|
|
218
|
+
x: number;
|
|
219
|
+
y: number;
|
|
220
|
+
};
|
|
221
|
+
}>, "many">>;
|
|
222
|
+
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
source: z.ZodString;
|
|
225
|
+
target: z.ZodString;
|
|
226
|
+
sourceHandle: z.ZodOptional<z.ZodString>;
|
|
227
|
+
targetHandle: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
id: string;
|
|
230
|
+
source: string;
|
|
231
|
+
target: string;
|
|
232
|
+
sourceHandle?: string | undefined;
|
|
233
|
+
targetHandle?: string | undefined;
|
|
234
|
+
}, {
|
|
235
|
+
id: string;
|
|
236
|
+
source: string;
|
|
237
|
+
target: string;
|
|
238
|
+
sourceHandle?: string | undefined;
|
|
239
|
+
targetHandle?: string | undefined;
|
|
240
|
+
}>, "many">>;
|
|
241
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
242
|
+
name: z.ZodString;
|
|
243
|
+
values: z.ZodObject<{
|
|
244
|
+
dev: z.ZodOptional<z.ZodString>;
|
|
245
|
+
staging: z.ZodOptional<z.ZodString>;
|
|
246
|
+
prod: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
dev?: string | undefined;
|
|
249
|
+
staging?: string | undefined;
|
|
250
|
+
prod?: string | undefined;
|
|
251
|
+
}, {
|
|
252
|
+
dev?: string | undefined;
|
|
253
|
+
staging?: string | undefined;
|
|
254
|
+
prod?: string | undefined;
|
|
255
|
+
}>;
|
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
values: {
|
|
258
|
+
dev?: string | undefined;
|
|
259
|
+
staging?: string | undefined;
|
|
260
|
+
prod?: string | undefined;
|
|
261
|
+
};
|
|
262
|
+
name: string;
|
|
263
|
+
}, {
|
|
264
|
+
values: {
|
|
265
|
+
dev?: string | undefined;
|
|
266
|
+
staging?: string | undefined;
|
|
267
|
+
prod?: string | undefined;
|
|
268
|
+
};
|
|
269
|
+
name: string;
|
|
270
|
+
}>, "many">>;
|
|
271
|
+
}, "strict", z.ZodTypeAny, {
|
|
272
|
+
project_id: string;
|
|
273
|
+
flow_id: string;
|
|
274
|
+
name?: string | undefined;
|
|
275
|
+
description?: string | undefined;
|
|
276
|
+
environment?: "dev" | "staging" | "prod" | undefined;
|
|
277
|
+
nodes?: {
|
|
278
|
+
data: Record<string, unknown>;
|
|
279
|
+
type: string;
|
|
280
|
+
id: string;
|
|
281
|
+
position: {
|
|
282
|
+
x: number;
|
|
283
|
+
y: number;
|
|
284
|
+
};
|
|
285
|
+
}[] | undefined;
|
|
286
|
+
edges?: {
|
|
287
|
+
id: string;
|
|
288
|
+
source: string;
|
|
289
|
+
target: string;
|
|
290
|
+
sourceHandle?: string | undefined;
|
|
291
|
+
targetHandle?: string | undefined;
|
|
292
|
+
}[] | undefined;
|
|
293
|
+
variables?: {
|
|
294
|
+
values: {
|
|
295
|
+
dev?: string | undefined;
|
|
296
|
+
staging?: string | undefined;
|
|
297
|
+
prod?: string | undefined;
|
|
298
|
+
};
|
|
299
|
+
name: string;
|
|
300
|
+
}[] | undefined;
|
|
301
|
+
}, {
|
|
302
|
+
project_id: string;
|
|
303
|
+
flow_id: string;
|
|
304
|
+
name?: string | undefined;
|
|
305
|
+
description?: string | undefined;
|
|
306
|
+
environment?: "dev" | "staging" | "prod" | undefined;
|
|
307
|
+
nodes?: {
|
|
308
|
+
data: Record<string, unknown>;
|
|
309
|
+
type: string;
|
|
310
|
+
id: string;
|
|
311
|
+
position: {
|
|
312
|
+
x: number;
|
|
313
|
+
y: number;
|
|
314
|
+
};
|
|
315
|
+
}[] | undefined;
|
|
316
|
+
edges?: {
|
|
317
|
+
id: string;
|
|
318
|
+
source: string;
|
|
319
|
+
target: string;
|
|
320
|
+
sourceHandle?: string | undefined;
|
|
321
|
+
targetHandle?: string | undefined;
|
|
322
|
+
}[] | undefined;
|
|
323
|
+
variables?: {
|
|
324
|
+
values: {
|
|
325
|
+
dev?: string | undefined;
|
|
326
|
+
staging?: string | undefined;
|
|
327
|
+
prod?: string | undefined;
|
|
328
|
+
};
|
|
329
|
+
name: string;
|
|
330
|
+
}[] | undefined;
|
|
331
|
+
}>;
|
|
332
|
+
export declare const DeleteFlowSchema: z.ZodObject<{
|
|
333
|
+
project_id: z.ZodString;
|
|
334
|
+
flow_id: z.ZodString;
|
|
335
|
+
}, "strict", z.ZodTypeAny, {
|
|
336
|
+
project_id: string;
|
|
337
|
+
flow_id: string;
|
|
338
|
+
}, {
|
|
339
|
+
project_id: string;
|
|
340
|
+
flow_id: string;
|
|
341
|
+
}>;
|
|
342
|
+
export declare const GenerateFlowSchema: z.ZodObject<{
|
|
343
|
+
project_id: z.ZodString;
|
|
344
|
+
scenario: z.ZodString;
|
|
345
|
+
name: z.ZodOptional<z.ZodString>;
|
|
346
|
+
environment: z.ZodDefault<z.ZodEnum<["dev", "staging", "prod"]>>;
|
|
347
|
+
}, "strict", z.ZodTypeAny, {
|
|
348
|
+
project_id: string;
|
|
349
|
+
scenario: string;
|
|
350
|
+
environment: "dev" | "staging" | "prod";
|
|
351
|
+
name?: string | undefined;
|
|
352
|
+
}, {
|
|
353
|
+
project_id: string;
|
|
354
|
+
scenario: string;
|
|
355
|
+
name?: string | undefined;
|
|
356
|
+
environment?: "dev" | "staging" | "prod" | undefined;
|
|
357
|
+
}>;
|
|
358
|
+
//# sourceMappingURL=flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/schemas/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;EAKjB,CAAC;AAEZ,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIf,CAAC;AAEZ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBlB,CAAC;AAEZ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBlB,CAAC;AAEZ,eAAO,MAAM,gBAAgB;;;;;;;;;EAGlB,CAAC;AAEZ,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAKpB,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ResponseFormatSchema, PaginationSchema } from "./common.js";
|
|
3
|
+
export const ListFlowsSchema = PaginationSchema.extend({
|
|
4
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
5
|
+
search: z.string().optional().describe("Search flows by name"),
|
|
6
|
+
status: z.enum(["passing", "failing", "never_run", "running"]).optional().describe("Filter by flow status"),
|
|
7
|
+
response_format: ResponseFormatSchema,
|
|
8
|
+
}).strict();
|
|
9
|
+
export const GetFlowSchema = z.object({
|
|
10
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
11
|
+
flow_id: z.string().uuid("Invalid flow ID").describe("The flow ID"),
|
|
12
|
+
response_format: ResponseFormatSchema,
|
|
13
|
+
}).strict();
|
|
14
|
+
export const CreateFlowSchema = z.object({
|
|
15
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
16
|
+
name: z.string().min(1, "Name is required").max(200).describe("Flow name"),
|
|
17
|
+
description: z.string().max(500).optional().describe("Flow description"),
|
|
18
|
+
type: z.enum(["flow", "fragment"]).default("flow").describe("Type: 'flow' for regular flows, 'fragment' for reusable fragments"),
|
|
19
|
+
environment: z.enum(["dev", "staging", "prod"]).default("dev").describe("Target environment"),
|
|
20
|
+
nodes: z.array(z.object({
|
|
21
|
+
id: z.string(),
|
|
22
|
+
type: z.string(),
|
|
23
|
+
position: z.object({ x: z.number(), y: z.number() }),
|
|
24
|
+
data: z.record(z.unknown()),
|
|
25
|
+
})).describe("Array of flow nodes (React Flow format)"),
|
|
26
|
+
edges: z.array(z.object({
|
|
27
|
+
id: z.string(),
|
|
28
|
+
source: z.string(),
|
|
29
|
+
target: z.string(),
|
|
30
|
+
sourceHandle: z.string().optional(),
|
|
31
|
+
targetHandle: z.string().optional(),
|
|
32
|
+
})).describe("Array of flow edges connecting nodes"),
|
|
33
|
+
variables: z.array(z.object({
|
|
34
|
+
name: z.string(),
|
|
35
|
+
values: z.object({ dev: z.string().optional(), staging: z.string().optional(), prod: z.string().optional() }),
|
|
36
|
+
})).optional().describe("Flow-scoped variables"),
|
|
37
|
+
}).strict();
|
|
38
|
+
export const UpdateFlowSchema = z.object({
|
|
39
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
40
|
+
flow_id: z.string().uuid("Invalid flow ID").describe("The flow ID"),
|
|
41
|
+
name: z.string().min(1).max(200).optional().describe("New flow name"),
|
|
42
|
+
description: z.string().max(500).optional().describe("New flow description"),
|
|
43
|
+
environment: z.enum(["dev", "staging", "prod"]).optional().describe("New target environment"),
|
|
44
|
+
nodes: z.array(z.object({
|
|
45
|
+
id: z.string(),
|
|
46
|
+
type: z.string(),
|
|
47
|
+
position: z.object({ x: z.number(), y: z.number() }),
|
|
48
|
+
data: z.record(z.unknown()),
|
|
49
|
+
})).optional().describe("Updated nodes array"),
|
|
50
|
+
edges: z.array(z.object({
|
|
51
|
+
id: z.string(),
|
|
52
|
+
source: z.string(),
|
|
53
|
+
target: z.string(),
|
|
54
|
+
sourceHandle: z.string().optional(),
|
|
55
|
+
targetHandle: z.string().optional(),
|
|
56
|
+
})).optional().describe("Updated edges array"),
|
|
57
|
+
variables: z.array(z.object({
|
|
58
|
+
name: z.string(),
|
|
59
|
+
values: z.object({ dev: z.string().optional(), staging: z.string().optional(), prod: z.string().optional() }),
|
|
60
|
+
})).optional().describe("Updated variables"),
|
|
61
|
+
}).strict();
|
|
62
|
+
export const DeleteFlowSchema = z.object({
|
|
63
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
64
|
+
flow_id: z.string().uuid("Invalid flow ID").describe("The flow ID to delete"),
|
|
65
|
+
}).strict();
|
|
66
|
+
export const GenerateFlowSchema = z.object({
|
|
67
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID to create the flow in"),
|
|
68
|
+
scenario: z.string().min(10, "Scenario must be at least 10 characters").max(5000, "Scenario too long").describe("Natural language description of the test scenario. Be specific about what actions to take, what elements to interact with, and what to verify. Example: 'User logs in with email test@example.com and password, then adds item to cart, verifies cart shows 1 item'"),
|
|
69
|
+
name: z.string().min(1).max(200).optional().describe("Flow name (auto-generated from scenario if not provided)"),
|
|
70
|
+
environment: z.enum(["dev", "staging", "prod"]).default("dev").describe("Target environment"),
|
|
71
|
+
}).strict();
|
|
72
|
+
//# sourceMappingURL=flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../src/schemas/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG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5E,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CAC9E,CAAC,CAAC,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IAClG,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,yCAAyC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,qQAAqQ,CAAC;IACtX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;IAChH,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC;CAC9F,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ListProjectsSchema: z.ZodObject<{
|
|
3
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
4
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
} & {
|
|
6
|
+
search: z.ZodOptional<z.ZodString>;
|
|
7
|
+
status: z.ZodOptional<z.ZodEnum<["active", "healthy", "failing", "archived"]>>;
|
|
8
|
+
sort: z.ZodDefault<z.ZodEnum<["name", "createdAt", "updatedAt"]>>;
|
|
9
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
limit: number;
|
|
12
|
+
offset: number;
|
|
13
|
+
sort: "name" | "createdAt" | "updatedAt";
|
|
14
|
+
response_format: "markdown" | "json";
|
|
15
|
+
status?: "active" | "healthy" | "failing" | "archived" | undefined;
|
|
16
|
+
search?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
limit?: number | undefined;
|
|
19
|
+
offset?: number | undefined;
|
|
20
|
+
sort?: "name" | "createdAt" | "updatedAt" | undefined;
|
|
21
|
+
status?: "active" | "healthy" | "failing" | "archived" | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
response_format?: "markdown" | "json" | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const GetProjectSchema: z.ZodObject<{
|
|
26
|
+
project_id: z.ZodString;
|
|
27
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
response_format: "markdown" | "json";
|
|
30
|
+
project_id: string;
|
|
31
|
+
}, {
|
|
32
|
+
project_id: string;
|
|
33
|
+
response_format?: "markdown" | "json" | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const CreateProjectSchema: z.ZodObject<{
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
39
|
+
icon_color: z.ZodOptional<z.ZodString>;
|
|
40
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, "strict", z.ZodTypeAny, {
|
|
42
|
+
name: string;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
icon?: string | undefined;
|
|
45
|
+
icon_color?: string | undefined;
|
|
46
|
+
base_url?: string | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
name: string;
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
icon?: string | undefined;
|
|
51
|
+
icon_color?: string | undefined;
|
|
52
|
+
base_url?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
export declare const UpdateProjectSchema: z.ZodObject<{
|
|
55
|
+
project_id: z.ZodString;
|
|
56
|
+
name: z.ZodOptional<z.ZodString>;
|
|
57
|
+
description: z.ZodOptional<z.ZodString>;
|
|
58
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, "strict", z.ZodTypeAny, {
|
|
60
|
+
project_id: string;
|
|
61
|
+
name?: string | undefined;
|
|
62
|
+
description?: string | undefined;
|
|
63
|
+
base_url?: string | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
project_id: string;
|
|
66
|
+
name?: string | undefined;
|
|
67
|
+
description?: string | undefined;
|
|
68
|
+
base_url?: string | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
//# sourceMappingURL=project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;EAKpB,CAAC;AAEZ,eAAO,MAAM,gBAAgB;;;;;;;;;EAGlB,CAAC;AAEZ,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAMrB,CAAC;AAEZ,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAKrB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ResponseFormatSchema, PaginationSchema } from "./common.js";
|
|
3
|
+
export const ListProjectsSchema = PaginationSchema.extend({
|
|
4
|
+
search: z.string().optional().describe("Search projects by name"),
|
|
5
|
+
status: z.enum(["active", "healthy", "failing", "archived"]).optional().describe("Filter by project status"),
|
|
6
|
+
sort: z.enum(["name", "createdAt", "updatedAt"]).default("updatedAt").describe("Sort field: name, createdAt, or updatedAt"),
|
|
7
|
+
response_format: ResponseFormatSchema,
|
|
8
|
+
}).strict();
|
|
9
|
+
export const GetProjectSchema = z.object({
|
|
10
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
11
|
+
response_format: ResponseFormatSchema,
|
|
12
|
+
}).strict();
|
|
13
|
+
export const CreateProjectSchema = z.object({
|
|
14
|
+
name: z.string().min(1, "Name is required").max(100).describe("Project name"),
|
|
15
|
+
description: z.string().max(500).optional().describe("Project description"),
|
|
16
|
+
icon: z.string().optional().describe("Icon name (e.g., 'shopping-cart', 'globe')"),
|
|
17
|
+
icon_color: z.string().optional().describe("Icon color (e.g., 'blue', 'green', 'red')"),
|
|
18
|
+
base_url: z.string().url("Invalid URL format").optional().describe("Base URL of the application under test (e.g., 'https://shop.example.com')"),
|
|
19
|
+
}).strict();
|
|
20
|
+
export const UpdateProjectSchema = z.object({
|
|
21
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
22
|
+
name: z.string().min(1).max(100).optional().describe("New project name"),
|
|
23
|
+
description: z.string().max(500).optional().describe("New project description"),
|
|
24
|
+
base_url: z.string().url("Invalid URL format").optional().describe("New base URL"),
|
|
25
|
+
}).strict();
|
|
26
|
+
//# sourceMappingURL=project.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAErE,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,MAAM,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACjE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,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AM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC5E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACxE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAC/E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;CACnF,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RunFlowSchema: z.ZodObject<{
|
|
3
|
+
project_id: z.ZodString;
|
|
4
|
+
flow_id: z.ZodString;
|
|
5
|
+
environment: z.ZodOptional<z.ZodEnum<["dev", "staging", "prod"]>>;
|
|
6
|
+
headless: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
}, "strict", z.ZodTypeAny, {
|
|
8
|
+
project_id: string;
|
|
9
|
+
flow_id: string;
|
|
10
|
+
headless: boolean;
|
|
11
|
+
environment?: "dev" | "staging" | "prod" | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
project_id: string;
|
|
14
|
+
flow_id: string;
|
|
15
|
+
environment?: "dev" | "staging" | "prod" | undefined;
|
|
16
|
+
headless?: boolean | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const GetRunStatusSchema: z.ZodObject<{
|
|
19
|
+
project_id: z.ZodString;
|
|
20
|
+
flow_id: z.ZodString;
|
|
21
|
+
run_id: z.ZodString;
|
|
22
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
23
|
+
}, "strict", z.ZodTypeAny, {
|
|
24
|
+
response_format: "markdown" | "json";
|
|
25
|
+
project_id: string;
|
|
26
|
+
flow_id: string;
|
|
27
|
+
run_id: string;
|
|
28
|
+
}, {
|
|
29
|
+
project_id: string;
|
|
30
|
+
flow_id: string;
|
|
31
|
+
run_id: string;
|
|
32
|
+
response_format?: "markdown" | "json" | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const ListRunsSchema: z.ZodObject<{
|
|
35
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
36
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
37
|
+
} & {
|
|
38
|
+
project_id: z.ZodString;
|
|
39
|
+
flow_id: z.ZodString;
|
|
40
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
41
|
+
}, "strict", z.ZodTypeAny, {
|
|
42
|
+
limit: number;
|
|
43
|
+
offset: number;
|
|
44
|
+
response_format: "markdown" | "json";
|
|
45
|
+
project_id: string;
|
|
46
|
+
flow_id: string;
|
|
47
|
+
}, {
|
|
48
|
+
project_id: string;
|
|
49
|
+
flow_id: string;
|
|
50
|
+
limit?: number | undefined;
|
|
51
|
+
offset?: number | undefined;
|
|
52
|
+
response_format?: "markdown" | "json" | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
//# sourceMappingURL=run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/schemas/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;EAKf,CAAC;AAEZ,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAKpB,CAAC;AAEZ,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;EAIhB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ResponseFormatSchema, PaginationSchema } from "./common.js";
|
|
3
|
+
export const RunFlowSchema = z.object({
|
|
4
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
5
|
+
flow_id: z.string().uuid("Invalid flow ID").describe("The flow ID to execute"),
|
|
6
|
+
environment: z.enum(["dev", "staging", "prod"]).optional().describe("Override environment for this run"),
|
|
7
|
+
headless: z.boolean().default(true).describe("Run browser in headless mode"),
|
|
8
|
+
}).strict();
|
|
9
|
+
export const GetRunStatusSchema = z.object({
|
|
10
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
11
|
+
flow_id: z.string().uuid("Invalid flow ID").describe("The flow ID"),
|
|
12
|
+
run_id: z.string().uuid("Invalid run ID").describe("The run ID"),
|
|
13
|
+
response_format: ResponseFormatSchema,
|
|
14
|
+
}).strict();
|
|
15
|
+
export const ListRunsSchema = PaginationSchema.extend({
|
|
16
|
+
project_id: z.string().uuid("Invalid project ID").describe("The project ID"),
|
|
17
|
+
flow_id: z.string().uuid("Invalid flow ID").describe("The flow ID"),
|
|
18
|
+
response_format: ResponseFormatSchema,
|
|
19
|
+
}).strict();
|
|
20
|
+
//# sourceMappingURL=run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/schemas/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAErE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC5E,OAAO,EAAE,CAAC,CAAC,M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