@smartbear/mcp 0.28.0 → 0.30.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/README.md +1 -1
- package/dist/bearq/client.js +5 -3
- package/dist/bearq/tool/environments/list-environments.js +28 -0
- package/dist/bearq/tool/tasks/run-regression-tests.js +10 -3
- package/dist/bearq/tool/tasks/run-test-cases.js +12 -3
- package/dist/bearq/tool/tasks/run-tests-in-functional-areas.js +12 -3
- package/dist/bugsnag/client.js +2 -2
- package/dist/collaborator/client.js +5 -2
- package/dist/common/client-identity.js +20 -0
- package/dist/common/info.js +21 -1
- package/dist/common/initialize.js +7 -0
- package/dist/common/request-context.js +7 -0
- package/dist/common/server.js +37 -1
- package/dist/common/transport-http.js +13 -13
- package/dist/package.json.js +1 -1
- package/dist/pactflow/client/tools.js +408 -0
- package/dist/pactflow/client.js +5 -12
- package/dist/qmetry/client/api/client-api.js +2 -2
- package/dist/qmetry/client/automation.js +2 -2
- package/dist/qtm4j/http/auth-service.js +2 -2
- package/dist/reflect/client.js +7 -3
- package/dist/reflect/tool/tests/create-segment.js +18 -0
- package/dist/reflect/tool/tests/create-test.js +18 -0
- package/dist/reflect/tool/tests/definition.js +190 -0
- package/dist/swagger/client/api.js +2 -1
- package/dist/swagger/client/functional-testing-api.js +193 -42
- package/dist/swagger/client/functional-testing-tools.js +50 -2
- package/dist/swagger/client/functional-testing-types.js +27 -0
- package/dist/swagger/client/portal-types.js +144 -10
- package/dist/swagger/client/registry-types.js +60 -1
- package/dist/swagger/client/tool-constants.js +20 -0
- package/dist/swagger/client/tools.js +87 -29
- package/dist/swagger/client/user-management-types.js +14 -0
- package/dist/swagger/client.js +24 -2
- package/dist/zephyr/common/auth-service.js +2 -2
- package/dist/zephyr/common/rest-api-schemas.js +1 -1
- package/package.json +3 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { RunFunctionalTestingTestParamsSchema, GetFunctionalTestingExecutionTestSchema } from "./functional-testing-types.js";
|
|
1
|
+
import { RunFunctionalTestingTestParamsSchema, GetFunctionalTestingExecutionTestSchema, ListFunctionalTestingSuiteExecutionsSchema, CancelFunctionalTestingSuiteExecutionSchema, RunFunctionalTestingSuiteParamsSchema, GetFunctionalTestingSuiteExecutionSchema, GetFunctionalTestHistoryParamsSchema } from "./functional-testing-types.js";
|
|
2
2
|
const FUNCTIONAL_TESTING_TOOLS = [
|
|
3
3
|
{
|
|
4
4
|
title: "List Tests",
|
|
5
5
|
toolset: "Functional Testing",
|
|
6
6
|
summary: "Lists all API tests available in your Swagger Functional Testing account. Use this tool when you need to discover available tests before running them or checking their status. Do not use this tool to retrieve test execution results or history.",
|
|
7
|
-
handler: "listFunctionalTestingTests"
|
|
7
|
+
handler: "listFunctionalTestingTests",
|
|
8
|
+
idempotent: true,
|
|
9
|
+
readOnly: true
|
|
8
10
|
},
|
|
9
11
|
{
|
|
10
12
|
title: "Run Test",
|
|
@@ -21,6 +23,25 @@ const FUNCTIONAL_TESTING_TOOLS = [
|
|
|
21
23
|
summary: "Get the status of a Swagger Functional Testing test execution. It returns information about the execution such as its status (running, passed or failed), run time, as well as the break down of the status of each test step.",
|
|
22
24
|
inputSchema: GetFunctionalTestingExecutionTestSchema,
|
|
23
25
|
handler: "getFunctionalTestingExecution",
|
|
26
|
+
idempotent: true,
|
|
27
|
+
readOnly: true
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: "List Suite Executions",
|
|
31
|
+
toolset: "Functional Testing",
|
|
32
|
+
summary: "Lists all executions for a given test suite in your Swagger Functional Testing workspace. Use this tool when you need to review execution history and timings for a specific suite. Do not use this tool to retrieve the status of a single execution or individual test results.",
|
|
33
|
+
inputSchema: ListFunctionalTestingSuiteExecutionsSchema,
|
|
34
|
+
handler: "listFunctionalTestingSuiteExecutions",
|
|
35
|
+
readOnly: true,
|
|
36
|
+
idempotent: true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: "Cancel Suite Execution",
|
|
40
|
+
toolset: "Functional Testing",
|
|
41
|
+
summary: "Cancels an ongoing test suite execution in your Swagger Functional Testing workspace. Use this tool when you need to stop a long-running or accidentally triggered suite run. Do not use this tool to cancel individual test runs.",
|
|
42
|
+
inputSchema: CancelFunctionalTestingSuiteExecutionSchema,
|
|
43
|
+
handler: "cancelFunctionalTestingSuiteExecution",
|
|
44
|
+
readOnly: false,
|
|
24
45
|
idempotent: false
|
|
25
46
|
},
|
|
26
47
|
{
|
|
@@ -30,6 +51,33 @@ const FUNCTIONAL_TESTING_TOOLS = [
|
|
|
30
51
|
handler: "listFunctionalTestingSuites",
|
|
31
52
|
idempotent: true,
|
|
32
53
|
readOnly: true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: "Run Suite",
|
|
57
|
+
toolset: "Functional Testing",
|
|
58
|
+
summary: "Runs a specific test suite in your Swagger Functional Testing workspace. The execution is asynchronous — it returns an executionId, not results directly. Use `swagger_get_suite_status` with your suiteId and executionId to track progress and retrieve the final per-test results. Optionally accepts a `tunnelAgentName` argument to override the suite's saved tunnel for this run. Do not use this tool to run a single test — use `swagger_run_test` instead.",
|
|
59
|
+
inputSchema: RunFunctionalTestingSuiteParamsSchema,
|
|
60
|
+
handler: "runFunctionalTestingSuite",
|
|
61
|
+
idempotent: false,
|
|
62
|
+
readOnly: false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: "Get Suite Status",
|
|
66
|
+
toolset: "Functional Testing",
|
|
67
|
+
summary: "Get the status of a Swagger Functional Testing suite execution. Returns the overall status (pending, canceled, passed or failed), whether the run is finished, and a per-test breakdown with pass/fail. Use this to poll for the outcome of a suite run triggered by `swagger_run_suite`. Requires both `suiteId` and the `executionId` arguments returned by `swagger_run_suite`.",
|
|
68
|
+
inputSchema: GetFunctionalTestingSuiteExecutionSchema,
|
|
69
|
+
handler: "getFunctionalTestingSuiteExecution",
|
|
70
|
+
idempotent: true,
|
|
71
|
+
readOnly: true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: "Get Test Execution History",
|
|
75
|
+
toolset: "Functional Testing",
|
|
76
|
+
summary: "Retrieves the execution history for a given test in your Swagger Functional Testing workspace. Returns a list of past runs, each including pass/fail status, run time, creation timestamp, and — for failed runs — a per-step breakdown of failure details. Use this tool when you need to check past run results, identify failures, or assess test reliability over time. Do not use this tool to run a test or retrieve suite-level execution results.",
|
|
77
|
+
inputSchema: GetFunctionalTestHistoryParamsSchema,
|
|
78
|
+
handler: "getFunctionalTestingTestHistory",
|
|
79
|
+
idempotent: true,
|
|
80
|
+
readOnly: true
|
|
33
81
|
}
|
|
34
82
|
];
|
|
35
83
|
export {
|
|
@@ -5,7 +5,34 @@ const RunFunctionalTestingTestParamsSchema = z.object({
|
|
|
5
5
|
const GetFunctionalTestingExecutionTestSchema = z.object({
|
|
6
6
|
executionId: z.string().describe("ID of the Functional Testing execution").trim().min(1)
|
|
7
7
|
});
|
|
8
|
+
const ListFunctionalTestingSuiteExecutionsSchema = z.object({
|
|
9
|
+
suiteId: z.string().describe("ID of the Functional Testing suite to list executions for").trim().min(1)
|
|
10
|
+
});
|
|
11
|
+
const CancelFunctionalTestingSuiteExecutionSchema = z.object({
|
|
12
|
+
suiteId: z.string().describe("ID of the Functional Testing suite the execution belongs to").trim().min(1),
|
|
13
|
+
executionId: z.string().describe("ID of the Functional Testing suite execution to cancel").trim().min(1)
|
|
14
|
+
});
|
|
15
|
+
const RunFunctionalTestingSuiteParamsSchema = z.object({
|
|
16
|
+
suiteId: z.string().describe("ID of the Functional Testing suite to run").trim().min(1),
|
|
17
|
+
tunnelAgentName: z.string().describe(
|
|
18
|
+
"Optional tunnel agent name to override the suite's saved tunnel for this run. When omitted, the suite's saved tunnel overrides are used, falling back to each test's saved tunnel."
|
|
19
|
+
).trim().min(1).optional()
|
|
20
|
+
});
|
|
21
|
+
const GetFunctionalTestingSuiteExecutionSchema = z.object({
|
|
22
|
+
suiteId: z.string().describe("ID of the Functional Testing suite").trim().min(1),
|
|
23
|
+
executionId: z.string().describe("ID of the Functional Testing suite execution").trim().min(1)
|
|
24
|
+
});
|
|
25
|
+
const GetFunctionalTestHistoryParamsSchema = z.object({
|
|
26
|
+
testId: z.string().describe("ID of the Functional Testing test").trim().min(1),
|
|
27
|
+
limit: z.number().int().min(1).max(100).optional().describe("Number of most recent runs to return (default: 25, max: 100)"),
|
|
28
|
+
offset: z.number().int().min(0).optional().describe("Pagination offset (default: 0)")
|
|
29
|
+
});
|
|
8
30
|
export {
|
|
31
|
+
CancelFunctionalTestingSuiteExecutionSchema,
|
|
32
|
+
GetFunctionalTestHistoryParamsSchema,
|
|
9
33
|
GetFunctionalTestingExecutionTestSchema,
|
|
34
|
+
GetFunctionalTestingSuiteExecutionSchema,
|
|
35
|
+
ListFunctionalTestingSuiteExecutionsSchema,
|
|
36
|
+
RunFunctionalTestingSuiteParamsSchema,
|
|
10
37
|
RunFunctionalTestingTestParamsSchema
|
|
11
38
|
};
|
|
@@ -61,20 +61,40 @@ const CreateTableOfContentsArgsSchema = z.object({
|
|
|
61
61
|
"Content type - 'apiUrl' for API references, 'html' for HTML content, or 'markdown' for Markdown content"
|
|
62
62
|
),
|
|
63
63
|
source: z.enum(["internal", "external"]).optional().describe(
|
|
64
|
-
"Source of the document content - 'internal' allows to edit content in both UI and API, 'external' enables editing only via API."
|
|
64
|
+
"Source of the document content - 'internal' allows to edit content in both UI and API, 'external' enables editing only via API. Not used when type is 'apiUrl'."
|
|
65
65
|
),
|
|
66
66
|
url: z.string().optional().describe(
|
|
67
|
-
"URL for API reference content
|
|
67
|
+
"URL for API reference content - required when type is 'apiUrl', must end with '/swagger.json' or '/swagger.yaml'. Not used for 'html'/'markdown'."
|
|
68
68
|
),
|
|
69
|
-
apiSpec: z.string().nullable().optional().describe(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
(
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
apiSpec: z.string().nullable().optional().describe(
|
|
70
|
+
"API specification format for API URL content - only used when type is 'apiUrl'"
|
|
71
|
+
),
|
|
72
|
+
documentId: z.string().nullable().optional().describe(
|
|
73
|
+
"Document ID for HTML or Markdown content - only used when type is 'html' or 'markdown'"
|
|
74
|
+
)
|
|
75
|
+
}).meta({
|
|
76
|
+
// Structural rule (in addition to the .refine() below) so the generated
|
|
77
|
+
// JSON Schema states which fields are required per content.type, instead
|
|
78
|
+
// of leaving every field optional with the constraint only in prose.
|
|
79
|
+
allOf: [
|
|
80
|
+
{
|
|
81
|
+
if: { properties: { type: { const: "apiUrl" } } },
|
|
82
|
+
// biome-ignore lint/suspicious/noThenProperty: JSON Schema if/then/else keyword, not a thenable
|
|
83
|
+
then: { required: ["url"], properties: { documentId: false } },
|
|
84
|
+
message: "URL is required when content type is 'apiUrl'"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
if: { properties: { type: { enum: ["html", "markdown"] } } },
|
|
88
|
+
// biome-ignore lint/suspicious/noThenProperty: JSON Schema if/then/else keyword, not a thenable
|
|
89
|
+
then: { properties: { url: false, apiSpec: false } },
|
|
90
|
+
message: "url must not be set when content type is 'html' or 'markdown'"
|
|
75
91
|
}
|
|
76
|
-
|
|
77
|
-
|
|
92
|
+
]
|
|
93
|
+
}).optional().describe("Content configuration for the table of contents item").refine((content) => content?.type !== "apiUrl" || !!content.url, {
|
|
94
|
+
message: "URL is required when content type is 'apiUrl'",
|
|
95
|
+
path: ["url"]
|
|
96
|
+
}).refine(
|
|
97
|
+
(content) => content?.type !== "apiUrl" || !content.url || content.url.endsWith("/swagger.json") || content.url.endsWith("/swagger.yaml"),
|
|
78
98
|
{
|
|
79
99
|
message: "URL must end with '/swagger.json' or '/swagger.yaml' when content type is 'apiUrl'",
|
|
80
100
|
path: ["url"]
|
|
@@ -237,19 +257,133 @@ const CreateDocumentationPageArgsSchema = z.object({
|
|
|
237
257
|
"Parent table of contents item ID - null for top-level pages, or ID of parent item for nested structure"
|
|
238
258
|
)
|
|
239
259
|
});
|
|
260
|
+
const PageSchema = z.object({
|
|
261
|
+
number: z.number().optional(),
|
|
262
|
+
size: z.number().optional(),
|
|
263
|
+
totalElements: z.number().optional(),
|
|
264
|
+
totalPages: z.number().optional()
|
|
265
|
+
});
|
|
266
|
+
const PortalOutputSchema = z.looseObject({
|
|
267
|
+
id: z.string().optional(),
|
|
268
|
+
name: z.string().optional(),
|
|
269
|
+
subdomain: z.string().optional(),
|
|
270
|
+
customDomain: z.string().optional(),
|
|
271
|
+
offline: z.boolean().optional(),
|
|
272
|
+
openapiRenderer: z.string().optional(),
|
|
273
|
+
routing: z.string().optional(),
|
|
274
|
+
credentialsEnabled: z.boolean().optional(),
|
|
275
|
+
swaggerHubOrganizationId: z.string().optional()
|
|
276
|
+
});
|
|
277
|
+
const PortalsListOutputSchema = z.object({
|
|
278
|
+
page: PageSchema.optional(),
|
|
279
|
+
items: z.array(PortalOutputSchema).optional()
|
|
280
|
+
});
|
|
281
|
+
const ProductOutputSchema = z.looseObject({
|
|
282
|
+
id: z.string().optional(),
|
|
283
|
+
name: z.string().optional(),
|
|
284
|
+
slug: z.string().optional(),
|
|
285
|
+
portalId: z.string().optional(),
|
|
286
|
+
description: z.string().optional(),
|
|
287
|
+
public: z.boolean().optional(),
|
|
288
|
+
hidden: z.boolean().optional()
|
|
289
|
+
});
|
|
290
|
+
const ProductsListOutputSchema = z.object({
|
|
291
|
+
page: PageSchema.optional(),
|
|
292
|
+
items: z.array(ProductOutputSchema).optional()
|
|
293
|
+
});
|
|
294
|
+
const SectionOutputSchema = z.looseObject({
|
|
295
|
+
id: z.string().optional(),
|
|
296
|
+
productId: z.string().optional(),
|
|
297
|
+
title: z.string().optional(),
|
|
298
|
+
slug: z.string().optional(),
|
|
299
|
+
order: z.number().optional()
|
|
300
|
+
});
|
|
301
|
+
const SectionsListOutputSchema = z.object({
|
|
302
|
+
page: PageSchema.optional(),
|
|
303
|
+
items: z.array(SectionOutputSchema).optional()
|
|
304
|
+
});
|
|
305
|
+
const CreateTocOutputSchema = z.object({
|
|
306
|
+
id: z.string().optional(),
|
|
307
|
+
documentId: z.string().optional()
|
|
308
|
+
});
|
|
309
|
+
const DocumentOutputSchema = z.object({
|
|
310
|
+
id: z.string().optional(),
|
|
311
|
+
type: z.enum(["html", "markdown"]).optional(),
|
|
312
|
+
source: z.enum(["internal", "external"]).optional(),
|
|
313
|
+
content: z.string().optional(),
|
|
314
|
+
createdAt: z.string().optional(),
|
|
315
|
+
updatedAt: z.string().optional()
|
|
316
|
+
});
|
|
317
|
+
const PublishOutputSchema = z.looseObject({
|
|
318
|
+
success: z.boolean().optional(),
|
|
319
|
+
preview: z.boolean().optional(),
|
|
320
|
+
liveUrl: z.string().nullable().optional(),
|
|
321
|
+
previewUrl: z.string().nullable().optional()
|
|
322
|
+
});
|
|
323
|
+
const ResolvePortalOutputSchema = z.object({
|
|
324
|
+
organizationId: z.string().optional(),
|
|
325
|
+
portalId: z.string().optional(),
|
|
326
|
+
subdomain: z.string().optional(),
|
|
327
|
+
customDomain: z.string().optional(),
|
|
328
|
+
portalCreated: z.boolean().optional(),
|
|
329
|
+
products: z.array(
|
|
330
|
+
z.object({
|
|
331
|
+
productId: z.string().optional(),
|
|
332
|
+
productSlug: z.string().optional(),
|
|
333
|
+
productName: z.string().optional()
|
|
334
|
+
})
|
|
335
|
+
).optional()
|
|
336
|
+
});
|
|
337
|
+
const CreateDocPageOutputSchema = z.looseObject({
|
|
338
|
+
productId: z.string().optional(),
|
|
339
|
+
sectionId: z.string().optional(),
|
|
340
|
+
sectionSlug: z.string().optional(),
|
|
341
|
+
draftUrl: z.string().optional()
|
|
342
|
+
});
|
|
343
|
+
const DeleteProductOutputSchema = z.object({
|
|
344
|
+
message: z.string()
|
|
345
|
+
});
|
|
346
|
+
const DeleteTableOfContentsOutputSchema = z.object({
|
|
347
|
+
success: z.boolean().optional()
|
|
348
|
+
});
|
|
349
|
+
const TocListOutputSchema = z.object({
|
|
350
|
+
items: z.array(
|
|
351
|
+
z.looseObject({
|
|
352
|
+
id: z.string().optional(),
|
|
353
|
+
slug: z.string().optional(),
|
|
354
|
+
title: z.string().optional(),
|
|
355
|
+
order: z.number().optional(),
|
|
356
|
+
parentId: z.string().nullable().optional()
|
|
357
|
+
})
|
|
358
|
+
)
|
|
359
|
+
});
|
|
240
360
|
export {
|
|
361
|
+
CreateDocPageOutputSchema,
|
|
241
362
|
CreateDocumentationPageArgsSchema,
|
|
242
363
|
CreatePortalArgsSchema,
|
|
243
364
|
CreateProductArgsSchema,
|
|
244
365
|
CreateTableOfContentsArgsSchema,
|
|
366
|
+
CreateTocOutputSchema,
|
|
367
|
+
DeleteProductOutputSchema,
|
|
245
368
|
DeleteTableOfContentsArgsSchema,
|
|
369
|
+
DeleteTableOfContentsOutputSchema,
|
|
370
|
+
DocumentOutputSchema,
|
|
246
371
|
GetDocumentArgsSchema,
|
|
247
372
|
GetProductSectionsArgsSchema,
|
|
248
373
|
GetTableOfContentsArgsSchema,
|
|
249
374
|
PortalArgsSchema,
|
|
375
|
+
PortalOutputSchema,
|
|
376
|
+
PortalsListOutputSchema,
|
|
250
377
|
ProductArgsSchema,
|
|
378
|
+
ProductOutputSchema,
|
|
379
|
+
ProductsListOutputSchema,
|
|
380
|
+
PublishOutputSchema,
|
|
251
381
|
PublishProductArgsSchema,
|
|
252
382
|
ResolveOrganizationPortalArgsSchema,
|
|
383
|
+
ResolvePortalOutputSchema,
|
|
384
|
+
SectionOutputSchema,
|
|
385
|
+
SectionsListOutputSchema,
|
|
386
|
+
TocListOutputSchema,
|
|
253
387
|
UpdateDocumentArgsSchema,
|
|
254
388
|
UpdatePortalArgsSchema,
|
|
255
389
|
UpdateProductArgsSchema
|
|
@@ -69,12 +69,71 @@ const StandardizeApiParamsSchema = z.object({
|
|
|
69
69
|
"The version to save the fixed definition as (e.g. '1.0.1'). Omitting this will overwrite the current version — prefer providing a patch bump (e.g. '1.0.0' → '1.0.1') unless the user specifies otherwise."
|
|
70
70
|
)
|
|
71
71
|
});
|
|
72
|
+
const CreateApiOutputSchema = z.looseObject({
|
|
73
|
+
owner: z.string().optional(),
|
|
74
|
+
apiName: z.string().optional(),
|
|
75
|
+
version: z.string().optional(),
|
|
76
|
+
url: z.string().optional(),
|
|
77
|
+
operation: z.enum(["create", "update"]).optional()
|
|
78
|
+
});
|
|
79
|
+
const CreateApiFromPromptOutputSchema = z.looseObject({
|
|
80
|
+
owner: z.string().optional(),
|
|
81
|
+
apiName: z.string().optional(),
|
|
82
|
+
specType: z.string().optional(),
|
|
83
|
+
version: z.string().optional(),
|
|
84
|
+
url: z.string().optional(),
|
|
85
|
+
operation: z.enum(["create", "update"]).optional()
|
|
86
|
+
});
|
|
87
|
+
const StandardizationErrorSchema = z.object({
|
|
88
|
+
line: z.number().optional(),
|
|
89
|
+
description: z.string().optional(),
|
|
90
|
+
severity: z.string().optional()
|
|
91
|
+
});
|
|
92
|
+
const ScanOutputSchema = z.looseObject({
|
|
93
|
+
count: z.number().optional(),
|
|
94
|
+
countsBySeverity: z.record(z.string(), z.number()).optional(),
|
|
95
|
+
validation: z.array(StandardizationErrorSchema).optional()
|
|
96
|
+
});
|
|
97
|
+
const ScanFromRegistryOutputSchema = z.looseObject({
|
|
98
|
+
count: z.number().optional(),
|
|
99
|
+
countsBySeverity: z.record(z.string(), z.number()).optional(),
|
|
100
|
+
validation: z.array(StandardizationErrorSchema).optional(),
|
|
101
|
+
url: z.string().optional()
|
|
102
|
+
});
|
|
103
|
+
const StandardizeOutputSchema = z.looseObject({
|
|
104
|
+
message: z.string().optional(),
|
|
105
|
+
errorsFound: z.number().optional(),
|
|
106
|
+
fixedDefinition: z.string().optional(),
|
|
107
|
+
savedVersion: z.string().optional()
|
|
108
|
+
});
|
|
109
|
+
const ApiDefinitionOutputSchema = z.object({
|
|
110
|
+
definition: z.string()
|
|
111
|
+
});
|
|
112
|
+
const SearchApisOutputSchema = z.object({
|
|
113
|
+
items: z.array(
|
|
114
|
+
z.looseObject({
|
|
115
|
+
owner: z.string().optional(),
|
|
116
|
+
name: z.string().optional(),
|
|
117
|
+
version: z.string().optional(),
|
|
118
|
+
description: z.string().optional(),
|
|
119
|
+
specification: z.string().optional(),
|
|
120
|
+
url: z.string().optional()
|
|
121
|
+
})
|
|
122
|
+
)
|
|
123
|
+
});
|
|
72
124
|
export {
|
|
125
|
+
ApiDefinitionOutputSchema,
|
|
73
126
|
ApiDefinitionParamsSchema,
|
|
74
127
|
ApiSearchParamsSchema,
|
|
128
|
+
CreateApiFromPromptOutputSchema,
|
|
75
129
|
CreateApiFromPromptParamsSchema,
|
|
130
|
+
CreateApiOutputSchema,
|
|
76
131
|
CreateApiParamsSchema,
|
|
77
132
|
ScanApiStandardizationFromRegistryParamsSchema,
|
|
133
|
+
ScanFromRegistryOutputSchema,
|
|
134
|
+
ScanOutputSchema,
|
|
78
135
|
ScanStandardizationParamsSchema,
|
|
79
|
-
|
|
136
|
+
SearchApisOutputSchema,
|
|
137
|
+
StandardizeApiParamsSchema,
|
|
138
|
+
StandardizeOutputSchema
|
|
80
139
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const READ_ONLY = {
|
|
2
|
+
readOnly: true,
|
|
3
|
+
openWorld: false,
|
|
4
|
+
destructive: false
|
|
5
|
+
};
|
|
6
|
+
const WRITE = {
|
|
7
|
+
readOnly: false,
|
|
8
|
+
openWorld: true,
|
|
9
|
+
destructive: false
|
|
10
|
+
};
|
|
11
|
+
const WRITE_DESTRUCTIVE = {
|
|
12
|
+
readOnly: false,
|
|
13
|
+
openWorld: true,
|
|
14
|
+
destructive: true
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
READ_ONLY,
|
|
18
|
+
WRITE,
|
|
19
|
+
WRITE_DESTRUCTIVE
|
|
20
|
+
};
|