@autobe/agent 0.24.0 → 0.24.2

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.
Files changed (65) hide show
  1. package/lib/AutoBeMockAgent.js +1 -0
  2. package/lib/AutoBeMockAgent.js.map +1 -1
  3. package/lib/constants/AutoBeSystemPromptConstant.d.ts +4 -3
  4. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  5. package/lib/factory/createAutoBeContext.js +3 -3
  6. package/lib/factory/getAutoBeGenerated.js +4 -1
  7. package/lib/factory/getAutoBeGenerated.js.map +1 -1
  8. package/lib/factory/getAutoBeRealizeGenerated.d.ts +2 -1
  9. package/lib/factory/getAutoBeRealizeGenerated.js +1 -1
  10. package/lib/factory/getAutoBeRealizeGenerated.js.map +1 -1
  11. package/lib/factory/getCriticalCompiler.js +1 -1
  12. package/lib/factory/getCriticalCompiler.js.map +1 -1
  13. package/lib/index.mjs +1092 -139
  14. package/lib/index.mjs.map +1 -1
  15. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +67 -8
  16. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
  17. package/lib/orchestrate/interface/utils/OperationValidator.js +2 -1
  18. package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -1
  19. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +1 -1
  20. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
  21. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +1 -1
  22. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
  23. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +1 -1
  24. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
  25. package/lib/orchestrate/realize/internal/compileRealizeFiles.js +3 -1
  26. package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -1
  27. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +4 -1
  28. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -1
  29. package/lib/orchestrate/realize/orchestrateRealize.js +15 -5
  30. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  31. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +3 -1
  32. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
  33. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +4 -3
  34. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
  35. package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js +1 -0
  36. package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -1
  37. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.d.ts +5 -0
  38. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +113 -0
  39. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -0
  40. package/lib/orchestrate/test/orchestrateTestScenario.js +8 -2
  41. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  42. package/lib/orchestrate/test/orchestrateTestScenarioReview.d.ts +5 -0
  43. package/lib/orchestrate/test/orchestrateTestScenarioReview.js +847 -0
  44. package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -0
  45. package/lib/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.d.ts +47 -0
  46. package/lib/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.js +3 -0
  47. package/lib/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.js.map +1 -0
  48. package/package.json +6 -6
  49. package/src/AutoBeMockAgent.ts +1 -0
  50. package/src/constants/AutoBeSystemPromptConstant.ts +4 -3
  51. package/src/factory/getAutoBeGenerated.ts +3 -0
  52. package/src/factory/getAutoBeRealizeGenerated.ts +3 -1
  53. package/src/factory/getCriticalCompiler.ts +2 -1
  54. package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +68 -8
  55. package/src/orchestrate/interface/utils/OperationValidator.ts +2 -1
  56. package/src/orchestrate/realize/internal/compileRealizeFiles.ts +3 -1
  57. package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +4 -1
  58. package/src/orchestrate/realize/orchestrateRealize.ts +44 -37
  59. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +5 -1
  60. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +20 -14
  61. package/src/orchestrate/realize/utils/getRealizeWriteImportStatements.ts +1 -0
  62. package/src/orchestrate/test/histories/transformTestScenarioReviewHistories.ts +156 -0
  63. package/src/orchestrate/test/orchestrateTestScenario.ts +13 -3
  64. package/src/orchestrate/test/orchestrateTestScenarioReview.ts +185 -0
  65. package/src/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.ts +52 -0
@@ -0,0 +1,847 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
+ return new (P || (P = Promise))(function (resolve, reject) {
38
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
42
+ });
43
+ };
44
+ var __importDefault = (this && this.__importDefault) || function (mod) {
45
+ return (mod && mod.__esModule) ? mod : { "default": mod };
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.orchestrateTestScenarioReview = orchestrateTestScenarioReview;
49
+ const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
50
+ const __typia_transform__llmApplicationFinalize = __importStar(require("typia/lib/internal/_llmApplicationFinalize.js"));
51
+ const utils_1 = require("@autobe/utils");
52
+ const tstl_1 = require("tstl");
53
+ const typia_1 = __importDefault(require("typia"));
54
+ const uuid_1 = require("uuid");
55
+ const assertSchemaModel_1 = require("../../context/assertSchemaModel");
56
+ const transformTestScenarioReviewHistories_1 = require("./histories/transformTestScenarioReviewHistories");
57
+ function orchestrateTestScenarioReview(ctx, groups, progress) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const res = yield review(ctx, groups, progress);
60
+ return res;
61
+ });
62
+ }
63
+ function review(ctx, groups, progress) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ var _a, _b;
66
+ try {
67
+ const pointer = {
68
+ value: null,
69
+ };
70
+ const { tokenUsage } = yield ctx.conversate({
71
+ source: "testScenariosReview",
72
+ controller: createController({
73
+ model: ctx.model,
74
+ pointer,
75
+ originalGroups: groups,
76
+ }),
77
+ histories: (0, transformTestScenarioReviewHistories_1.transformTestScenarioReviewHistories)(ctx, groups),
78
+ enforceFunctionCall: true,
79
+ message: "Review the Test Scenario.",
80
+ });
81
+ if (pointer.value === null) {
82
+ // unreachable
83
+ throw new Error("Failed to get review result.");
84
+ }
85
+ progress.total = Math.max(progress.total, (progress.completed += pointer.value.scenarioGroups.length));
86
+ ctx.dispatch({
87
+ type: "testScenariosReview",
88
+ id: (0, uuid_1.v7)(),
89
+ tokenUsage,
90
+ total: progress.total,
91
+ completed: progress.completed,
92
+ scenarios: pointer.value.scenarioGroups
93
+ .map((group) => {
94
+ return group.scenarios.map((s) => {
95
+ return Object.assign(Object.assign({}, s), { endpoint: group.endpoint });
96
+ });
97
+ })
98
+ .flat(),
99
+ step: (_b = (_a = ctx.state().interface) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
100
+ created_at: new Date().toISOString(),
101
+ });
102
+ return pointer.value.scenarioGroups;
103
+ }
104
+ catch (_c) {
105
+ progress.completed += groups.length;
106
+ return groups;
107
+ }
108
+ });
109
+ }
110
+ function createController(props) {
111
+ (0, assertSchemaModel_1.assertSchemaModel)(props.model);
112
+ const validate = (next) => {
113
+ const result = (() => { const _io0 = input => "string" === typeof input.review && "string" === typeof input.plan && "boolean" === typeof input.pass && (Array.isArray(input.scenarioGroups) && input.scenarioGroups.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "object" === typeof input.endpoint && null !== input.endpoint && _io2(input.endpoint) && (Array.isArray(input.scenarios) && (1 <= input.scenarios.length && input.scenarios.every(elem => "object" === typeof elem && null !== elem && _io3(elem)))); const _io2 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io3 = input => "string" === typeof input.draft && "string" === typeof input.functionName && (Array.isArray(input.dependencies) && input.dependencies.every(elem => "object" === typeof elem && null !== elem && _io4(elem))); const _io4 = input => "object" === typeof input.endpoint && null !== input.endpoint && _io2(input.endpoint) && "string" === typeof input.purpose; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
114
+ path: _path + ".review",
115
+ expected: "string",
116
+ value: input.review
117
+ }), "string" === typeof input.plan || _report(_exceptionable, {
118
+ path: _path + ".plan",
119
+ expected: "string",
120
+ value: input.plan
121
+ }), "boolean" === typeof input.pass || _report(_exceptionable, {
122
+ path: _path + ".pass",
123
+ expected: "boolean",
124
+ value: input.pass
125
+ }), (Array.isArray(input.scenarioGroups) || _report(_exceptionable, {
126
+ path: _path + ".scenarioGroups",
127
+ expected: "Array<IAutoBeTestScenarioApplication.IScenarioGroup>",
128
+ value: input.scenarioGroups
129
+ })) && input.scenarioGroups.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
130
+ path: _path + ".scenarioGroups[" + _index4 + "]",
131
+ expected: "IAutoBeTestScenarioApplication.IScenarioGroup",
132
+ value: elem
133
+ })) && _vo1(elem, _path + ".scenarioGroups[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
134
+ path: _path + ".scenarioGroups[" + _index4 + "]",
135
+ expected: "IAutoBeTestScenarioApplication.IScenarioGroup",
136
+ value: elem
137
+ })).every(flag => flag) || _report(_exceptionable, {
138
+ path: _path + ".scenarioGroups",
139
+ expected: "Array<IAutoBeTestScenarioApplication.IScenarioGroup>",
140
+ value: input.scenarioGroups
141
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [("object" === typeof input.endpoint && null !== input.endpoint || _report(_exceptionable, {
142
+ path: _path + ".endpoint",
143
+ expected: "AutoBeOpenApi.IEndpoint",
144
+ value: input.endpoint
145
+ })) && _vo2(input.endpoint, _path + ".endpoint", true && _exceptionable) || _report(_exceptionable, {
146
+ path: _path + ".endpoint",
147
+ expected: "AutoBeOpenApi.IEndpoint",
148
+ value: input.endpoint
149
+ }), (Array.isArray(input.scenarios) || _report(_exceptionable, {
150
+ path: _path + ".scenarios",
151
+ expected: "(Array<IAutoBeTestScenarioApplication.IScenario> & MinItems<1>)",
152
+ value: input.scenarios
153
+ })) && ((1 <= input.scenarios.length || _report(_exceptionable, {
154
+ path: _path + ".scenarios",
155
+ expected: "Array<> & MinItems<1>",
156
+ value: input.scenarios
157
+ })) && input.scenarios.map((elem, _index5) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
158
+ path: _path + ".scenarios[" + _index5 + "]",
159
+ expected: "IAutoBeTestScenarioApplication.IScenario",
160
+ value: elem
161
+ })) && _vo3(elem, _path + ".scenarios[" + _index5 + "]", true && _exceptionable) || _report(_exceptionable, {
162
+ path: _path + ".scenarios[" + _index5 + "]",
163
+ expected: "IAutoBeTestScenarioApplication.IScenario",
164
+ value: elem
165
+ })).every(flag => flag)) || _report(_exceptionable, {
166
+ path: _path + ".scenarios",
167
+ expected: "(Array<IAutoBeTestScenarioApplication.IScenario> & MinItems<1>)",
168
+ value: input.scenarios
169
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
170
+ path: _path + ".path",
171
+ expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
172
+ value: input.path
173
+ })) || _report(_exceptionable, {
174
+ path: _path + ".path",
175
+ expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
176
+ value: input.path
177
+ }), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
178
+ path: _path + ".method",
179
+ expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
180
+ value: input.method
181
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.draft || _report(_exceptionable, {
182
+ path: _path + ".draft",
183
+ expected: "string",
184
+ value: input.draft
185
+ }), "string" === typeof input.functionName || _report(_exceptionable, {
186
+ path: _path + ".functionName",
187
+ expected: "string",
188
+ value: input.functionName
189
+ }), (Array.isArray(input.dependencies) || _report(_exceptionable, {
190
+ path: _path + ".dependencies",
191
+ expected: "Array<IAutoBeTestScenarioApplication.IDependencies>",
192
+ value: input.dependencies
193
+ })) && input.dependencies.map((elem, _index6) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
194
+ path: _path + ".dependencies[" + _index6 + "]",
195
+ expected: "IAutoBeTestScenarioApplication.IDependencies",
196
+ value: elem
197
+ })) && _vo4(elem, _path + ".dependencies[" + _index6 + "]", true && _exceptionable) || _report(_exceptionable, {
198
+ path: _path + ".dependencies[" + _index6 + "]",
199
+ expected: "IAutoBeTestScenarioApplication.IDependencies",
200
+ value: elem
201
+ })).every(flag => flag) || _report(_exceptionable, {
202
+ path: _path + ".dependencies",
203
+ expected: "Array<IAutoBeTestScenarioApplication.IDependencies>",
204
+ value: input.dependencies
205
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [("object" === typeof input.endpoint && null !== input.endpoint || _report(_exceptionable, {
206
+ path: _path + ".endpoint",
207
+ expected: "AutoBeOpenApi.IEndpoint",
208
+ value: input.endpoint
209
+ })) && _vo2(input.endpoint, _path + ".endpoint", true && _exceptionable) || _report(_exceptionable, {
210
+ path: _path + ".endpoint",
211
+ expected: "AutoBeOpenApi.IEndpoint",
212
+ value: input.endpoint
213
+ }), "string" === typeof input.purpose || _report(_exceptionable, {
214
+ path: _path + ".purpose",
215
+ expected: "string",
216
+ value: input.purpose
217
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
218
+ if (false === __is(input)) {
219
+ errors = [];
220
+ _report = __typia_transform__validateReport._validateReport(errors);
221
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
222
+ path: _path + "",
223
+ expected: "IAutoBeTestScenarioReviewApplication.IProps",
224
+ value: input
225
+ })) && _vo0(input, _path + "", true) || _report(true, {
226
+ path: _path + "",
227
+ expected: "IAutoBeTestScenarioReviewApplication.IProps",
228
+ value: input
229
+ }))(input, "$input", true);
230
+ const success = 0 === errors.length;
231
+ return success ? {
232
+ success,
233
+ data: input
234
+ } : {
235
+ success,
236
+ errors,
237
+ data: input
238
+ };
239
+ }
240
+ return {
241
+ success: true,
242
+ data: input
243
+ };
244
+ }; })()(next);
245
+ if (result.success === false)
246
+ return result;
247
+ // merge to unique scenario groups
248
+ const scenarioGroups = uniqueScenarioGroups(result.data.scenarioGroups);
249
+ const errors = [];
250
+ // validate endpoints between scenarioGroups and originalGroups
251
+ const filteredScenarioGroups = props.originalGroups.reduce((acc, originalGroup) => {
252
+ // Keep only groups whose endpoint matches with one in props.originalGroups
253
+ const matchingGroup = scenarioGroups.find((g) => g.endpoint.method === originalGroup.endpoint.method &&
254
+ g.endpoint.path === originalGroup.endpoint.path);
255
+ if (!matchingGroup) {
256
+ return [...acc, originalGroup];
257
+ }
258
+ return [...acc, matchingGroup];
259
+ }, []);
260
+ result.data.scenarioGroups = filteredScenarioGroups;
261
+ if (errors.length > 0) {
262
+ return {
263
+ success: false,
264
+ errors,
265
+ data: result.data,
266
+ };
267
+ }
268
+ return result;
269
+ };
270
+ const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"](validate);
271
+ return {
272
+ protocol: "class",
273
+ name: "Test Scenario Reviewer",
274
+ application,
275
+ execute: {
276
+ review: (input) => {
277
+ props.pointer.value = input;
278
+ },
279
+ },
280
+ };
281
+ }
282
+ const uniqueScenarioGroups = (groups) => new tstl_1.HashMap(groups.map((g) => new tstl_1.Pair(g.endpoint, g)), utils_1.AutoBeEndpointComparator.hashCode, utils_1.AutoBeEndpointComparator.equals)
283
+ .toJSON()
284
+ .map((it) => it.second);
285
+ const collection = {
286
+ chatgpt: (validate) => (() => {
287
+ const application = {
288
+ model: "chatgpt",
289
+ options: {
290
+ reference: true,
291
+ strict: false,
292
+ separate: null
293
+ },
294
+ functions: [
295
+ {
296
+ name: "review",
297
+ parameters: {
298
+ description: "Current Type: {@link IAutoBeTestScenarioReviewApplication.IProps}",
299
+ type: "object",
300
+ properties: {
301
+ review: {
302
+ description: "Concise review summary focusing on critical findings and key\nimprovements.\n\nShould include:\n\n- Executive summary of overall quality\n- Critical issues requiring immediate fixes\n- Key improvement recommendations\n- Database schema compliance status\n- Modified scenarios identification by functionName",
303
+ type: "string"
304
+ },
305
+ plan: {
306
+ description: "Structured action plan with priority-based improvements.\n\nShould contain:\n\n- Critical fixes required immediately\n- High priority enhancements\n- Implementation guidance\n- Success criteria\n- Specific scenario action items by functionName",
307
+ type: "string"
308
+ },
309
+ pass: {
310
+ description: "If the scenario groups pass the review, Set to true.",
311
+ type: "boolean"
312
+ },
313
+ scenarioGroups: {
314
+ description: "The reviewed and improved scenario groups with all quality fixes applied.\n\nThis is the primary output containing:\n\n- All critical issues resolved\n- Authentication flows corrected\n- Database dependencies validated\n- Quality enhancements implemented\n- Only implementable scenarios retained",
315
+ type: "array",
316
+ items: {
317
+ $ref: "#/$defs/IAutoBeTestScenarioApplication.IScenarioGroup"
318
+ }
319
+ }
320
+ },
321
+ required: [
322
+ "review",
323
+ "plan",
324
+ "pass",
325
+ "scenarioGroups"
326
+ ],
327
+ additionalProperties: false,
328
+ $defs: {
329
+ "IAutoBeTestScenarioApplication.IScenarioGroup": {
330
+ description: "### Description of {@link endpoint} property:\n\n> Target API endpoint to test.\n> \n> This must be **unique** across all scenario groups. An endpoint is\n> identified by its `path` and `method` combination.\n> \n> Multiple test scenarios may exist for a single endpoint.",
331
+ type: "object",
332
+ properties: {
333
+ endpoint: {
334
+ $ref: "#/$defs/AutoBeOpenApi.IEndpoint"
335
+ },
336
+ scenarios: {
337
+ description: "An array of test scenarios associated with the given endpoint.\n\nEach scenario represents a specific test case for the same `path` and\n`method`.\n\nIMPORTANT: Each scenario must be actually implementable. A scenario's\nimplementability is determined by the existence of ALL APIs (endpoints)\nrequired to test it. This includes not only the primary endpoint being\ntested, but also ALL dependency endpoints needed for setup,\nauthentication, and data preparation. If even one required dependency API\nis missing from the available operations, the scenario cannot be\nimplemented and should not be generated.\n\nExample: A \"test banned user login\" scenario requires both a login API\nAND a ban user API. If the ban API doesn't exist, this scenario is not\nimplementable regardless of database schema fields.\n\n\n@minItems 1",
338
+ type: "array",
339
+ items: {
340
+ $ref: "#/$defs/IAutoBeTestScenarioApplication.IScenario"
341
+ }
342
+ }
343
+ },
344
+ required: [
345
+ "endpoint",
346
+ "scenarios"
347
+ ]
348
+ },
349
+ "AutoBeOpenApi.IEndpoint": {
350
+ description: "API endpoint information.",
351
+ type: "object",
352
+ properties: {
353
+ path: {
354
+ description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)\n\n\n@pattern ^\\/[a-zA-Z0-9\\/_{}.-]*$",
355
+ type: "string"
356
+ },
357
+ method: {
358
+ description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record",
359
+ type: "string",
360
+ "enum": [
361
+ "get",
362
+ "post",
363
+ "put",
364
+ "delete",
365
+ "patch"
366
+ ]
367
+ }
368
+ },
369
+ required: [
370
+ "path",
371
+ "method"
372
+ ]
373
+ },
374
+ "IAutoBeTestScenarioApplication.IScenario": {
375
+ description: "Represents a test scenario for a single API operation.\n\nThis interface defines a structured, user-centric test draft that includes\na descriptive function name, a detailed scenario draft, and logical\ndependencies on other endpoints required for context or setup.\n\nCRITICAL: All referenced endpoints MUST exist in the provided API\noperations. Do NOT create scenarios for non-existent APIs, even if database\nschema fields suggest their existence. Test scenarios must be implementable\nwith available APIs only.",
376
+ type: "object",
377
+ properties: {
378
+ draft: {
379
+ description: "A detailed natural language description of how this API endpoint should\nbe tested. This should include both successful and failure scenarios,\nbusiness rule validations, edge cases, and any sequence of steps\nnecessary to perform the test. A subsequent agent will use this draft to\ngenerate multiple concrete test cases.",
380
+ type: "string"
381
+ },
382
+ functionName: {
383
+ description: "Descriptive function name derived from the user scenario.\n\nThe function name serves as a concise, technical identifier that clearly\nrepresents the specific user scenario being described. It should be\nimmediately understandable and directly correspond to the user situation\nwithout requiring additional context.\n\n## Naming Convention\n\nDO: Use snake_case naming convention.\n\n- Must start with `test_api_` prefix (mandatory requirement)\n- ALWAYS start with business feature, NOT action verbs\n- Business feature comes first, followed by scenario context\n- Embed action verbs within the scenario description, not at the beginning\n\n## Content Structure\n\nFunction names should follow this pattern:\n`test_api_[core_feature]_[specific_scenario]`\n\nWhere:\n\n- `core_feature`: The main business feature or entity being tested\n (customer, seller, cart, push_message, etc.)\n- `specific_scenario`: The specific operation or scenario context\n (join_verification_not_found, login_success,\n moderator_assignment_update, discountable_ticket_duplicated,\n csv_export, etc.)\n\n## Business Feature-Based Examples\n\n- `test_api_customer_join_verification_not_found` - Customer join\n verification when verification code not found\n- `test_api_seller_login` - Seller login operation\n- `test_api_cart_discountable_ticket_duplicated` - Cart discountable ticket\n with duplication scenario\n- `test_api_push_message_csv` - Push message functionality with CSV format\n- `test_api_product_review_update` - Product review update operation\n\n## Clarity Guidelines\n\n- Prioritize clarity over brevity\n- Avoid technical jargon or implementation terms\n- Use terminology that reflects user perspective\n- Ensure the name alone conveys the user's intent\n- Make it understandable to non-technical stakeholders\n- Keep consistent with user scenario description\n\n## Single Endpoint Alignment\n\nFunction names must reflect scenarios that:\n\n- Accomplish user goals through this single endpoint only\n- Don't imply dependency on other API operations\n- Represent complete user interactions",
384
+ type: "string"
385
+ },
386
+ dependencies: {
387
+ description: "A list of other API endpoints that this scenario logically depends on.\n\nThese dependencies represent context or prerequisite conditions, such as\nauthentication, resource creation, or data setup, that are relevant to\nthe test. This list is not a strict execution order \u2014 if ordering is\nimportant, it must be described explicitly in the `purpose`.\n\nWARNING: Every endpoint referenced here MUST exist in the provided API\noperations. Do NOT reference endpoints that are not explicitly available,\neven if they seem logically necessary based on database schema or\nbusiness logic.",
388
+ type: "array",
389
+ items: {
390
+ $ref: "#/$defs/IAutoBeTestScenarioApplication.IDependencies"
391
+ }
392
+ }
393
+ },
394
+ required: [
395
+ "draft",
396
+ "functionName",
397
+ "dependencies"
398
+ ]
399
+ },
400
+ "IAutoBeTestScenarioApplication.IDependencies": {
401
+ description: "### Description of {@link endpoint} property:\n\n> Target API endpoint that this scenario depends on.\n> \n> This endpoint MUST exist in the available API operations list.\n> Non-existent endpoints will cause test implementation failures.",
402
+ type: "object",
403
+ properties: {
404
+ endpoint: {
405
+ $ref: "#/$defs/AutoBeOpenApi.IEndpoint"
406
+ },
407
+ purpose: {
408
+ description: "A concise explanation of why this API call is relevant or required for\nthe main test scenario.\n\nThis should describe the contextual or setup role of the dependency, such\nas creating necessary data or establishing user authentication.\n\nExample: \"Creates a category so that a product can be linked to it during\ncreation.\"",
409
+ type: "string"
410
+ }
411
+ },
412
+ required: [
413
+ "endpoint",
414
+ "purpose"
415
+ ]
416
+ }
417
+ }
418
+ },
419
+ validate: (() => { const _io0 = input => "string" === typeof input.review && "string" === typeof input.plan && "boolean" === typeof input.pass && (Array.isArray(input.scenarioGroups) && input.scenarioGroups.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "object" === typeof input.endpoint && null !== input.endpoint && _io2(input.endpoint) && (Array.isArray(input.scenarios) && (1 <= input.scenarios.length && input.scenarios.every(elem => "object" === typeof elem && null !== elem && _io3(elem)))); const _io2 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io3 = input => "string" === typeof input.draft && "string" === typeof input.functionName && (Array.isArray(input.dependencies) && input.dependencies.every(elem => "object" === typeof elem && null !== elem && _io4(elem))); const _io4 = input => "object" === typeof input.endpoint && null !== input.endpoint && _io2(input.endpoint) && "string" === typeof input.purpose; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
420
+ path: _path + ".review",
421
+ expected: "string",
422
+ value: input.review
423
+ }), "string" === typeof input.plan || _report(_exceptionable, {
424
+ path: _path + ".plan",
425
+ expected: "string",
426
+ value: input.plan
427
+ }), "boolean" === typeof input.pass || _report(_exceptionable, {
428
+ path: _path + ".pass",
429
+ expected: "boolean",
430
+ value: input.pass
431
+ }), (Array.isArray(input.scenarioGroups) || _report(_exceptionable, {
432
+ path: _path + ".scenarioGroups",
433
+ expected: "Array<IAutoBeTestScenarioApplication.IScenarioGroup>",
434
+ value: input.scenarioGroups
435
+ })) && input.scenarioGroups.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
436
+ path: _path + ".scenarioGroups[" + _index4 + "]",
437
+ expected: "IAutoBeTestScenarioApplication.IScenarioGroup",
438
+ value: elem
439
+ })) && _vo1(elem, _path + ".scenarioGroups[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
440
+ path: _path + ".scenarioGroups[" + _index4 + "]",
441
+ expected: "IAutoBeTestScenarioApplication.IScenarioGroup",
442
+ value: elem
443
+ })).every(flag => flag) || _report(_exceptionable, {
444
+ path: _path + ".scenarioGroups",
445
+ expected: "Array<IAutoBeTestScenarioApplication.IScenarioGroup>",
446
+ value: input.scenarioGroups
447
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [("object" === typeof input.endpoint && null !== input.endpoint || _report(_exceptionable, {
448
+ path: _path + ".endpoint",
449
+ expected: "AutoBeOpenApi.IEndpoint",
450
+ value: input.endpoint
451
+ })) && _vo2(input.endpoint, _path + ".endpoint", true && _exceptionable) || _report(_exceptionable, {
452
+ path: _path + ".endpoint",
453
+ expected: "AutoBeOpenApi.IEndpoint",
454
+ value: input.endpoint
455
+ }), (Array.isArray(input.scenarios) || _report(_exceptionable, {
456
+ path: _path + ".scenarios",
457
+ expected: "(Array<IAutoBeTestScenarioApplication.IScenario> & MinItems<1>)",
458
+ value: input.scenarios
459
+ })) && ((1 <= input.scenarios.length || _report(_exceptionable, {
460
+ path: _path + ".scenarios",
461
+ expected: "Array<> & MinItems<1>",
462
+ value: input.scenarios
463
+ })) && input.scenarios.map((elem, _index5) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
464
+ path: _path + ".scenarios[" + _index5 + "]",
465
+ expected: "IAutoBeTestScenarioApplication.IScenario",
466
+ value: elem
467
+ })) && _vo3(elem, _path + ".scenarios[" + _index5 + "]", true && _exceptionable) || _report(_exceptionable, {
468
+ path: _path + ".scenarios[" + _index5 + "]",
469
+ expected: "IAutoBeTestScenarioApplication.IScenario",
470
+ value: elem
471
+ })).every(flag => flag)) || _report(_exceptionable, {
472
+ path: _path + ".scenarios",
473
+ expected: "(Array<IAutoBeTestScenarioApplication.IScenario> & MinItems<1>)",
474
+ value: input.scenarios
475
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
476
+ path: _path + ".path",
477
+ expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
478
+ value: input.path
479
+ })) || _report(_exceptionable, {
480
+ path: _path + ".path",
481
+ expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
482
+ value: input.path
483
+ }), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
484
+ path: _path + ".method",
485
+ expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
486
+ value: input.method
487
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.draft || _report(_exceptionable, {
488
+ path: _path + ".draft",
489
+ expected: "string",
490
+ value: input.draft
491
+ }), "string" === typeof input.functionName || _report(_exceptionable, {
492
+ path: _path + ".functionName",
493
+ expected: "string",
494
+ value: input.functionName
495
+ }), (Array.isArray(input.dependencies) || _report(_exceptionable, {
496
+ path: _path + ".dependencies",
497
+ expected: "Array<IAutoBeTestScenarioApplication.IDependencies>",
498
+ value: input.dependencies
499
+ })) && input.dependencies.map((elem, _index6) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
500
+ path: _path + ".dependencies[" + _index6 + "]",
501
+ expected: "IAutoBeTestScenarioApplication.IDependencies",
502
+ value: elem
503
+ })) && _vo4(elem, _path + ".dependencies[" + _index6 + "]", true && _exceptionable) || _report(_exceptionable, {
504
+ path: _path + ".dependencies[" + _index6 + "]",
505
+ expected: "IAutoBeTestScenarioApplication.IDependencies",
506
+ value: elem
507
+ })).every(flag => flag) || _report(_exceptionable, {
508
+ path: _path + ".dependencies",
509
+ expected: "Array<IAutoBeTestScenarioApplication.IDependencies>",
510
+ value: input.dependencies
511
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [("object" === typeof input.endpoint && null !== input.endpoint || _report(_exceptionable, {
512
+ path: _path + ".endpoint",
513
+ expected: "AutoBeOpenApi.IEndpoint",
514
+ value: input.endpoint
515
+ })) && _vo2(input.endpoint, _path + ".endpoint", true && _exceptionable) || _report(_exceptionable, {
516
+ path: _path + ".endpoint",
517
+ expected: "AutoBeOpenApi.IEndpoint",
518
+ value: input.endpoint
519
+ }), "string" === typeof input.purpose || _report(_exceptionable, {
520
+ path: _path + ".purpose",
521
+ expected: "string",
522
+ value: input.purpose
523
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
524
+ if (false === __is(input)) {
525
+ errors = [];
526
+ _report = __typia_transform__validateReport._validateReport(errors);
527
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
528
+ path: _path + "",
529
+ expected: "IAutoBeTestScenarioReviewApplication.IProps",
530
+ value: input
531
+ })) && _vo0(input, _path + "", true) || _report(true, {
532
+ path: _path + "",
533
+ expected: "IAutoBeTestScenarioReviewApplication.IProps",
534
+ value: input
535
+ }))(input, "$input", true);
536
+ const success = 0 === errors.length;
537
+ return success ? {
538
+ success,
539
+ data: input
540
+ } : {
541
+ success,
542
+ errors,
543
+ data: input
544
+ };
545
+ }
546
+ return {
547
+ success: true,
548
+ data: input
549
+ };
550
+ }; })()
551
+ }
552
+ ]
553
+ };
554
+ __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
555
+ validate: {
556
+ review: validate,
557
+ },
558
+ }), { equals: false }));
559
+ return application;
560
+ })(),
561
+ claude: (validate) => (() => {
562
+ const application = {
563
+ model: "claude",
564
+ options: {
565
+ reference: true,
566
+ separate: null
567
+ },
568
+ functions: [
569
+ {
570
+ name: "review",
571
+ parameters: {
572
+ description: "Current Type: {@link IAutoBeTestScenarioReviewApplication.IProps}",
573
+ type: "object",
574
+ properties: {
575
+ review: {
576
+ description: "Concise review summary focusing on critical findings and key\nimprovements.\n\nShould include:\n\n- Executive summary of overall quality\n- Critical issues requiring immediate fixes\n- Key improvement recommendations\n- Database schema compliance status\n- Modified scenarios identification by functionName",
577
+ type: "string"
578
+ },
579
+ plan: {
580
+ description: "Structured action plan with priority-based improvements.\n\nShould contain:\n\n- Critical fixes required immediately\n- High priority enhancements\n- Implementation guidance\n- Success criteria\n- Specific scenario action items by functionName",
581
+ type: "string"
582
+ },
583
+ pass: {
584
+ description: "If the scenario groups pass the review, Set to true.",
585
+ type: "boolean"
586
+ },
587
+ scenarioGroups: {
588
+ description: "The reviewed and improved scenario groups with all quality fixes applied.\n\nThis is the primary output containing:\n\n- All critical issues resolved\n- Authentication flows corrected\n- Database dependencies validated\n- Quality enhancements implemented\n- Only implementable scenarios retained",
589
+ type: "array",
590
+ items: {
591
+ $ref: "#/$defs/IAutoBeTestScenarioApplication.IScenarioGroup"
592
+ }
593
+ }
594
+ },
595
+ required: [
596
+ "review",
597
+ "plan",
598
+ "pass",
599
+ "scenarioGroups"
600
+ ],
601
+ additionalProperties: false,
602
+ $defs: {
603
+ "IAutoBeTestScenarioApplication.IScenarioGroup": {
604
+ type: "object",
605
+ properties: {
606
+ endpoint: {
607
+ description: "Target API endpoint to test.\n\nThis must be **unique** across all scenario groups. An endpoint is\nidentified by its `path` and `method` combination.\n\nMultiple test scenarios may exist for a single endpoint.",
608
+ $ref: "#/$defs/AutoBeOpenApi.IEndpoint"
609
+ },
610
+ scenarios: {
611
+ description: "An array of test scenarios associated with the given endpoint.\n\nEach scenario represents a specific test case for the same `path` and\n`method`.\n\nIMPORTANT: Each scenario must be actually implementable. A scenario's\nimplementability is determined by the existence of ALL APIs (endpoints)\nrequired to test it. This includes not only the primary endpoint being\ntested, but also ALL dependency endpoints needed for setup,\nauthentication, and data preparation. If even one required dependency API\nis missing from the available operations, the scenario cannot be\nimplemented and should not be generated.\n\nExample: A \"test banned user login\" scenario requires both a login API\nAND a ban user API. If the ban API doesn't exist, this scenario is not\nimplementable regardless of database schema fields.",
612
+ type: "array",
613
+ items: {
614
+ $ref: "#/$defs/IAutoBeTestScenarioApplication.IScenario"
615
+ },
616
+ minItems: 1
617
+ }
618
+ },
619
+ required: [
620
+ "endpoint",
621
+ "scenarios"
622
+ ]
623
+ },
624
+ "AutoBeOpenApi.IEndpoint": {
625
+ description: "API endpoint information.",
626
+ type: "object",
627
+ properties: {
628
+ path: {
629
+ description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)",
630
+ type: "string",
631
+ pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
632
+ },
633
+ method: {
634
+ description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record",
635
+ oneOf: [
636
+ {
637
+ "const": "get"
638
+ },
639
+ {
640
+ "const": "post"
641
+ },
642
+ {
643
+ "const": "put"
644
+ },
645
+ {
646
+ "const": "delete"
647
+ },
648
+ {
649
+ "const": "patch"
650
+ }
651
+ ]
652
+ }
653
+ },
654
+ required: [
655
+ "path",
656
+ "method"
657
+ ]
658
+ },
659
+ "IAutoBeTestScenarioApplication.IScenario": {
660
+ description: "Represents a test scenario for a single API operation.\n\nThis interface defines a structured, user-centric test draft that includes\na descriptive function name, a detailed scenario draft, and logical\ndependencies on other endpoints required for context or setup.\n\nCRITICAL: All referenced endpoints MUST exist in the provided API\noperations. Do NOT create scenarios for non-existent APIs, even if database\nschema fields suggest their existence. Test scenarios must be implementable\nwith available APIs only.",
661
+ type: "object",
662
+ properties: {
663
+ draft: {
664
+ description: "A detailed natural language description of how this API endpoint should\nbe tested. This should include both successful and failure scenarios,\nbusiness rule validations, edge cases, and any sequence of steps\nnecessary to perform the test. A subsequent agent will use this draft to\ngenerate multiple concrete test cases.",
665
+ type: "string"
666
+ },
667
+ functionName: {
668
+ description: "Descriptive function name derived from the user scenario.\n\nThe function name serves as a concise, technical identifier that clearly\nrepresents the specific user scenario being described. It should be\nimmediately understandable and directly correspond to the user situation\nwithout requiring additional context.\n\n## Naming Convention\n\nDO: Use snake_case naming convention.\n\n- Must start with `test_api_` prefix (mandatory requirement)\n- ALWAYS start with business feature, NOT action verbs\n- Business feature comes first, followed by scenario context\n- Embed action verbs within the scenario description, not at the beginning\n\n## Content Structure\n\nFunction names should follow this pattern:\n`test_api_[core_feature]_[specific_scenario]`\n\nWhere:\n\n- `core_feature`: The main business feature or entity being tested\n (customer, seller, cart, push_message, etc.)\n- `specific_scenario`: The specific operation or scenario context\n (join_verification_not_found, login_success,\n moderator_assignment_update, discountable_ticket_duplicated,\n csv_export, etc.)\n\n## Business Feature-Based Examples\n\n- `test_api_customer_join_verification_not_found` - Customer join\n verification when verification code not found\n- `test_api_seller_login` - Seller login operation\n- `test_api_cart_discountable_ticket_duplicated` - Cart discountable ticket\n with duplication scenario\n- `test_api_push_message_csv` - Push message functionality with CSV format\n- `test_api_product_review_update` - Product review update operation\n\n## Clarity Guidelines\n\n- Prioritize clarity over brevity\n- Avoid technical jargon or implementation terms\n- Use terminology that reflects user perspective\n- Ensure the name alone conveys the user's intent\n- Make it understandable to non-technical stakeholders\n- Keep consistent with user scenario description\n\n## Single Endpoint Alignment\n\nFunction names must reflect scenarios that:\n\n- Accomplish user goals through this single endpoint only\n- Don't imply dependency on other API operations\n- Represent complete user interactions",
669
+ type: "string"
670
+ },
671
+ dependencies: {
672
+ description: "A list of other API endpoints that this scenario logically depends on.\n\nThese dependencies represent context or prerequisite conditions, such as\nauthentication, resource creation, or data setup, that are relevant to\nthe test. This list is not a strict execution order \u2014 if ordering is\nimportant, it must be described explicitly in the `purpose`.\n\nWARNING: Every endpoint referenced here MUST exist in the provided API\noperations. Do NOT reference endpoints that are not explicitly available,\neven if they seem logically necessary based on database schema or\nbusiness logic.",
673
+ type: "array",
674
+ items: {
675
+ $ref: "#/$defs/IAutoBeTestScenarioApplication.IDependencies"
676
+ }
677
+ }
678
+ },
679
+ required: [
680
+ "draft",
681
+ "functionName",
682
+ "dependencies"
683
+ ]
684
+ },
685
+ "IAutoBeTestScenarioApplication.IDependencies": {
686
+ type: "object",
687
+ properties: {
688
+ endpoint: {
689
+ description: "Target API endpoint that this scenario depends on.\n\nThis endpoint MUST exist in the available API operations list.\nNon-existent endpoints will cause test implementation failures.",
690
+ $ref: "#/$defs/AutoBeOpenApi.IEndpoint"
691
+ },
692
+ purpose: {
693
+ description: "A concise explanation of why this API call is relevant or required for\nthe main test scenario.\n\nThis should describe the contextual or setup role of the dependency, such\nas creating necessary data or establishing user authentication.\n\nExample: \"Creates a category so that a product can be linked to it during\ncreation.\"",
694
+ type: "string"
695
+ }
696
+ },
697
+ required: [
698
+ "endpoint",
699
+ "purpose"
700
+ ]
701
+ }
702
+ }
703
+ },
704
+ validate: (() => { const _io0 = input => "string" === typeof input.review && "string" === typeof input.plan && "boolean" === typeof input.pass && (Array.isArray(input.scenarioGroups) && input.scenarioGroups.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "object" === typeof input.endpoint && null !== input.endpoint && _io2(input.endpoint) && (Array.isArray(input.scenarios) && (1 <= input.scenarios.length && input.scenarios.every(elem => "object" === typeof elem && null !== elem && _io3(elem)))); const _io2 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io3 = input => "string" === typeof input.draft && "string" === typeof input.functionName && (Array.isArray(input.dependencies) && input.dependencies.every(elem => "object" === typeof elem && null !== elem && _io4(elem))); const _io4 = input => "object" === typeof input.endpoint && null !== input.endpoint && _io2(input.endpoint) && "string" === typeof input.purpose; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
705
+ path: _path + ".review",
706
+ expected: "string",
707
+ value: input.review
708
+ }), "string" === typeof input.plan || _report(_exceptionable, {
709
+ path: _path + ".plan",
710
+ expected: "string",
711
+ value: input.plan
712
+ }), "boolean" === typeof input.pass || _report(_exceptionable, {
713
+ path: _path + ".pass",
714
+ expected: "boolean",
715
+ value: input.pass
716
+ }), (Array.isArray(input.scenarioGroups) || _report(_exceptionable, {
717
+ path: _path + ".scenarioGroups",
718
+ expected: "Array<IAutoBeTestScenarioApplication.IScenarioGroup>",
719
+ value: input.scenarioGroups
720
+ })) && input.scenarioGroups.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
721
+ path: _path + ".scenarioGroups[" + _index4 + "]",
722
+ expected: "IAutoBeTestScenarioApplication.IScenarioGroup",
723
+ value: elem
724
+ })) && _vo1(elem, _path + ".scenarioGroups[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
725
+ path: _path + ".scenarioGroups[" + _index4 + "]",
726
+ expected: "IAutoBeTestScenarioApplication.IScenarioGroup",
727
+ value: elem
728
+ })).every(flag => flag) || _report(_exceptionable, {
729
+ path: _path + ".scenarioGroups",
730
+ expected: "Array<IAutoBeTestScenarioApplication.IScenarioGroup>",
731
+ value: input.scenarioGroups
732
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [("object" === typeof input.endpoint && null !== input.endpoint || _report(_exceptionable, {
733
+ path: _path + ".endpoint",
734
+ expected: "AutoBeOpenApi.IEndpoint",
735
+ value: input.endpoint
736
+ })) && _vo2(input.endpoint, _path + ".endpoint", true && _exceptionable) || _report(_exceptionable, {
737
+ path: _path + ".endpoint",
738
+ expected: "AutoBeOpenApi.IEndpoint",
739
+ value: input.endpoint
740
+ }), (Array.isArray(input.scenarios) || _report(_exceptionable, {
741
+ path: _path + ".scenarios",
742
+ expected: "(Array<IAutoBeTestScenarioApplication.IScenario> & MinItems<1>)",
743
+ value: input.scenarios
744
+ })) && ((1 <= input.scenarios.length || _report(_exceptionable, {
745
+ path: _path + ".scenarios",
746
+ expected: "Array<> & MinItems<1>",
747
+ value: input.scenarios
748
+ })) && input.scenarios.map((elem, _index5) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
749
+ path: _path + ".scenarios[" + _index5 + "]",
750
+ expected: "IAutoBeTestScenarioApplication.IScenario",
751
+ value: elem
752
+ })) && _vo3(elem, _path + ".scenarios[" + _index5 + "]", true && _exceptionable) || _report(_exceptionable, {
753
+ path: _path + ".scenarios[" + _index5 + "]",
754
+ expected: "IAutoBeTestScenarioApplication.IScenario",
755
+ value: elem
756
+ })).every(flag => flag)) || _report(_exceptionable, {
757
+ path: _path + ".scenarios",
758
+ expected: "(Array<IAutoBeTestScenarioApplication.IScenario> & MinItems<1>)",
759
+ value: input.scenarios
760
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
761
+ path: _path + ".path",
762
+ expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
763
+ value: input.path
764
+ })) || _report(_exceptionable, {
765
+ path: _path + ".path",
766
+ expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
767
+ value: input.path
768
+ }), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
769
+ path: _path + ".method",
770
+ expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
771
+ value: input.method
772
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.draft || _report(_exceptionable, {
773
+ path: _path + ".draft",
774
+ expected: "string",
775
+ value: input.draft
776
+ }), "string" === typeof input.functionName || _report(_exceptionable, {
777
+ path: _path + ".functionName",
778
+ expected: "string",
779
+ value: input.functionName
780
+ }), (Array.isArray(input.dependencies) || _report(_exceptionable, {
781
+ path: _path + ".dependencies",
782
+ expected: "Array<IAutoBeTestScenarioApplication.IDependencies>",
783
+ value: input.dependencies
784
+ })) && input.dependencies.map((elem, _index6) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
785
+ path: _path + ".dependencies[" + _index6 + "]",
786
+ expected: "IAutoBeTestScenarioApplication.IDependencies",
787
+ value: elem
788
+ })) && _vo4(elem, _path + ".dependencies[" + _index6 + "]", true && _exceptionable) || _report(_exceptionable, {
789
+ path: _path + ".dependencies[" + _index6 + "]",
790
+ expected: "IAutoBeTestScenarioApplication.IDependencies",
791
+ value: elem
792
+ })).every(flag => flag) || _report(_exceptionable, {
793
+ path: _path + ".dependencies",
794
+ expected: "Array<IAutoBeTestScenarioApplication.IDependencies>",
795
+ value: input.dependencies
796
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [("object" === typeof input.endpoint && null !== input.endpoint || _report(_exceptionable, {
797
+ path: _path + ".endpoint",
798
+ expected: "AutoBeOpenApi.IEndpoint",
799
+ value: input.endpoint
800
+ })) && _vo2(input.endpoint, _path + ".endpoint", true && _exceptionable) || _report(_exceptionable, {
801
+ path: _path + ".endpoint",
802
+ expected: "AutoBeOpenApi.IEndpoint",
803
+ value: input.endpoint
804
+ }), "string" === typeof input.purpose || _report(_exceptionable, {
805
+ path: _path + ".purpose",
806
+ expected: "string",
807
+ value: input.purpose
808
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
809
+ if (false === __is(input)) {
810
+ errors = [];
811
+ _report = __typia_transform__validateReport._validateReport(errors);
812
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
813
+ path: _path + "",
814
+ expected: "IAutoBeTestScenarioReviewApplication.IProps",
815
+ value: input
816
+ })) && _vo0(input, _path + "", true) || _report(true, {
817
+ path: _path + "",
818
+ expected: "IAutoBeTestScenarioReviewApplication.IProps",
819
+ value: input
820
+ }))(input, "$input", true);
821
+ const success = 0 === errors.length;
822
+ return success ? {
823
+ success,
824
+ data: input
825
+ } : {
826
+ success,
827
+ errors,
828
+ data: input
829
+ };
830
+ }
831
+ return {
832
+ success: true,
833
+ data: input
834
+ };
835
+ }; })()
836
+ }
837
+ ]
838
+ };
839
+ __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
840
+ validate: {
841
+ review: validate,
842
+ },
843
+ }), { equals: false }));
844
+ return application;
845
+ })(),
846
+ };
847
+ //# sourceMappingURL=orchestrateTestScenarioReview.js.map