@smartbear/mcp 0.15.0 → 0.17.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/dist/bugsnag/client/api/Error.js +43 -0
- package/dist/bugsnag/client.js +44 -1310
- package/dist/bugsnag/input-schemas.js +18 -18
- package/dist/bugsnag/tool/error/get-error.js +98 -0
- package/dist/bugsnag/tool/error/list-project-errors.js +102 -0
- package/dist/bugsnag/tool/error/update-error.js +256 -0
- package/dist/bugsnag/tool/event/get-event-details-from-dashboard-url.js +55 -0
- package/dist/bugsnag/tool/event/get-event.js +38 -0
- package/dist/bugsnag/tool/event/list-error-events.js +62 -0
- package/dist/bugsnag/tool/performance/get-network-endpoint-groupings.js +46 -0
- package/dist/bugsnag/tool/performance/get-span-group.js +73 -0
- package/dist/bugsnag/tool/performance/get-trace.js +83 -0
- package/dist/bugsnag/tool/performance/list-span-groups.js +111 -0
- package/dist/bugsnag/tool/performance/list-spans.js +97 -0
- package/dist/bugsnag/tool/performance/list-trace-fields.js +41 -0
- package/dist/bugsnag/tool/performance/set-network-endpoint-groupings.js +90 -0
- package/dist/bugsnag/tool/project/get-current-project.js +31 -0
- package/dist/bugsnag/tool/project/list-project-event-filters.js +42 -0
- package/dist/bugsnag/tool/project/list-projects.js +43 -0
- package/dist/bugsnag/tool/release/get-build.js +50 -0
- package/dist/bugsnag/tool/release/get-release.js +68 -0
- package/dist/bugsnag/tool/release/list-releases.js +88 -0
- package/dist/common/prompts.js +9 -0
- package/dist/common/server.js +16 -0
- package/dist/common/transport-http.js +2 -0
- package/dist/package.json.js +1 -1
- package/dist/reflect/client.js +66 -1
- package/dist/reflect/config/constants.js +3 -1
- package/dist/reflect/prompt/sap-test.js +29 -0
- package/dist/reflect/tool/recording/add-prompt-step.js +60 -0
- package/dist/reflect/tool/recording/add-segment.js +56 -0
- package/dist/reflect/tool/recording/connect-to-session.js +89 -0
- package/dist/reflect/tool/recording/delete-previous-step.js +47 -0
- package/dist/reflect/tool/recording/get-screenshot.js +55 -0
- package/dist/reflect/tool/tests/list-segments.js +68 -0
- package/dist/reflect/websocket-manager.js +92 -0
- package/dist/zephyr/client.js +2 -0
- package/dist/zephyr/common/rest-api-schemas.js +173 -312
- package/dist/zephyr/tool/issue-link/get-test-executions.js +1 -1
- package/dist/zephyr/tool/test-case/create-issue-link.js +4 -2
- package/dist/zephyr/tool/test-case/create-test-script.js +4 -2
- package/dist/zephyr/tool/test-case/create-test-steps.js +4 -2
- package/dist/zephyr/tool/test-case/create-web-link.js +5 -2
- package/dist/zephyr/tool/test-case/get-test-steps.js +4 -2
- package/dist/zephyr/tool/test-case/update-test-case.js +2 -0
- package/dist/zephyr/tool/test-cycle/create-issue-link.js +4 -2
- package/dist/zephyr/tool/test-cycle/create-web-link.js +4 -2
- package/dist/zephyr/tool/test-cycle/update-test-cycle.js +1 -0
- package/dist/zephyr/tool/test-execution/create-issue-link.js +4 -2
- package/dist/zephyr/tool/test-execution/get-test-steps.js +4 -2
- package/dist/zephyr/tool/test-execution/update-test-execution.js +5 -2
- package/dist/zephyr/tool/test-execution/update-test-steps.js +89 -0
- package/package.json +11 -9
|
@@ -116,7 +116,7 @@ zod.object({
|
|
|
116
116
|
webLinks: zod.array(
|
|
117
117
|
zod.object({
|
|
118
118
|
description: zod.string().optional().describe("The web link description"),
|
|
119
|
-
url: zod.string().
|
|
119
|
+
url: zod.string().describe("The web link URL"),
|
|
120
120
|
self: zod.string().url().optional().describe(
|
|
121
121
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
122
122
|
),
|
|
@@ -124,7 +124,7 @@ zod.object({
|
|
|
124
124
|
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
125
125
|
}).strict()
|
|
126
126
|
).optional().describe("A list of web links for this entity")
|
|
127
|
-
}).strict().optional().describe("
|
|
127
|
+
}).strict().optional().describe("A list of links for this test case.")
|
|
128
128
|
}).strict()
|
|
129
129
|
).optional()
|
|
130
130
|
}).strict();
|
|
@@ -156,7 +156,7 @@ const CreateTestCaseBody = zod.object({
|
|
|
156
156
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
157
157
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
158
158
|
)
|
|
159
|
-
});
|
|
159
|
+
}).strict();
|
|
160
160
|
const CreateTestCase201Response = zod.object({
|
|
161
161
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
162
162
|
self: zod.string().optional(),
|
|
@@ -177,7 +177,10 @@ const ListTestCasesCursorPaginatedQueryParams = zod.object({
|
|
|
177
177
|
limit: zod.number().min(1).max(listTestCasesCursorPaginatedQueryLimitMax).default(listTestCasesCursorPaginatedQueryLimitDefault).describe(
|
|
178
178
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the limit value in the response to confirm how many results were actually returned.\n"
|
|
179
179
|
),
|
|
180
|
-
startAtId: zod.number().min(listTestCasesCursorPaginatedQueryStartAtIdMin).default(listTestCasesCursorPaginatedQueryStartAtIdDefault).describe("Zero-indexed starting position for ID-based pagination.")
|
|
180
|
+
startAtId: zod.number().min(listTestCasesCursorPaginatedQueryStartAtIdMin).default(listTestCasesCursorPaginatedQueryStartAtIdDefault).describe("Zero-indexed starting position for ID-based pagination."),
|
|
181
|
+
updatedAfter: zod.string().datetime({}).optional().describe(
|
|
182
|
+
"Filter only entities updated after the given time. Format: yyyy-MM-dd'T'HH:mm:ss'Z'"
|
|
183
|
+
)
|
|
181
184
|
});
|
|
182
185
|
const listTestCasesCursorPaginated200ResponseOneNextStartAtIdMin = 0;
|
|
183
186
|
const listTestCasesCursorPaginated200ResponseOneLimitMin = 0;
|
|
@@ -279,7 +282,7 @@ const ListTestCasesCursorPaginated200Response = zod.object({
|
|
|
279
282
|
webLinks: zod.array(
|
|
280
283
|
zod.object({
|
|
281
284
|
description: zod.string().optional().describe("The web link description"),
|
|
282
|
-
url: zod.string().
|
|
285
|
+
url: zod.string().describe("The web link URL"),
|
|
283
286
|
self: zod.string().url().optional().describe(
|
|
284
287
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
285
288
|
),
|
|
@@ -287,7 +290,7 @@ const ListTestCasesCursorPaginated200Response = zod.object({
|
|
|
287
290
|
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
288
291
|
}).strict()
|
|
289
292
|
).optional().describe("A list of web links for this entity")
|
|
290
|
-
}).strict().optional().describe("
|
|
293
|
+
}).strict().optional().describe("A list of links for this test case.")
|
|
291
294
|
}).strict()
|
|
292
295
|
).optional()
|
|
293
296
|
}).strict();
|
|
@@ -300,7 +303,7 @@ const GetTestCaseParams = zod.object({
|
|
|
300
303
|
testCaseKey: zod.string().regex(getTestCasePathTestCaseKeyRegExp).describe(
|
|
301
304
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
302
305
|
)
|
|
303
|
-
});
|
|
306
|
+
}).strict();
|
|
304
307
|
const getTestCase200ResponseKeyRegExp = /.+-T[0-9]+/;
|
|
305
308
|
const getTestCase200ResponseNameMax = 255;
|
|
306
309
|
const getTestCase200ResponseNameRegExp = /^(?!\\s*$).+/;
|
|
@@ -370,7 +373,7 @@ const GetTestCase200Response = zod.object({
|
|
|
370
373
|
webLinks: zod.array(
|
|
371
374
|
zod.object({
|
|
372
375
|
description: zod.string().optional().describe("The web link description"),
|
|
373
|
-
url: zod.string().
|
|
376
|
+
url: zod.string().describe("The web link URL"),
|
|
374
377
|
self: zod.string().url().optional().describe(
|
|
375
378
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
376
379
|
),
|
|
@@ -378,7 +381,7 @@ const GetTestCase200Response = zod.object({
|
|
|
378
381
|
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
379
382
|
}).strict()
|
|
380
383
|
).optional().describe("A list of web links for this entity")
|
|
381
|
-
}).strict().optional().describe("
|
|
384
|
+
}).strict().optional().describe("A list of links for this test case.")
|
|
382
385
|
}).strict();
|
|
383
386
|
zod.object({
|
|
384
387
|
errorCode: zod.number(),
|
|
@@ -389,7 +392,7 @@ const UpdateTestCaseParams = zod.object({
|
|
|
389
392
|
testCaseKey: zod.string().regex(updateTestCasePathTestCaseKeyRegExp).describe(
|
|
390
393
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
391
394
|
)
|
|
392
|
-
});
|
|
395
|
+
}).strict();
|
|
393
396
|
const updateTestCaseBodyKeyRegExp = /.+-T[0-9]+/;
|
|
394
397
|
const updateTestCaseBodyNameMax = 255;
|
|
395
398
|
const updateTestCaseBodyNameRegExp = /^(?!\\s*$).+/;
|
|
@@ -401,98 +404,39 @@ const UpdateTestCaseBody = zod.object({
|
|
|
401
404
|
key: zod.string().regex(updateTestCaseBodyKeyRegExp).describe("The test case key"),
|
|
402
405
|
name: zod.string().min(1).max(updateTestCaseBodyNameMax).regex(updateTestCaseBodyNameRegExp),
|
|
403
406
|
project: zod.object({
|
|
404
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
408
|
-
})
|
|
409
|
-
).describe("ID and link relative to Zephyr project."),
|
|
410
|
-
createdOn: zod.string().datetime({}).optional().describe(
|
|
411
|
-
"Data and time test case was created. Format: yyyy-MM-dd'T'HH:mm:ss'Z'. This field is read-only, cannot be updated.\n"
|
|
412
|
-
),
|
|
407
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
408
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
409
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
413
410
|
objective: zod.string().nullish().describe("A description of the objective."),
|
|
414
411
|
precondition: zod.string().nullish().describe("Any conditions that need to be met."),
|
|
415
412
|
estimatedTime: zod.number().min(updateTestCaseBodyEstimatedTimeMin).nullish().describe("Estimated duration in milliseconds."),
|
|
416
413
|
labels: zod.array(zod.string()).max(updateTestCaseBodyLabelsMax).optional().describe("Array of labels associated to this entity."),
|
|
417
414
|
component: zod.object({
|
|
418
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
422
|
-
})
|
|
423
|
-
).nullish().describe("ID and link to the Jira component resource."),
|
|
415
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
416
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
417
|
+
}).strict().nullish().describe("ID and link to the Jira component resource."),
|
|
424
418
|
priority: zod.object({
|
|
425
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
429
|
-
})
|
|
430
|
-
).describe("ID and link to the priority resource."),
|
|
419
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
420
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
421
|
+
}).strict().describe("ID and link to the priority resource."),
|
|
431
422
|
status: zod.object({
|
|
432
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
436
|
-
})
|
|
437
|
-
).describe("ID and link to the status resource."),
|
|
423
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
424
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
425
|
+
}).strict().describe("ID and link to the status resource."),
|
|
438
426
|
folder: zod.object({
|
|
439
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
443
|
-
})
|
|
444
|
-
).nullish().describe("ID and link to the folder resource."),
|
|
427
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
428
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
429
|
+
}).strict().nullish().describe("ID and link to the folder resource."),
|
|
445
430
|
owner: zod.object({
|
|
446
431
|
accountId: zod.string().regex(updateTestCaseBodyOwnerAccountIdRegExp).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
447
432
|
self: zod.string().url().optional().describe(
|
|
448
433
|
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
449
434
|
)
|
|
450
|
-
}).nullish(),
|
|
451
|
-
testScript: zod.object({
|
|
452
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
453
|
-
}).optional(),
|
|
435
|
+
}).strict().nullish(),
|
|
454
436
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
455
437
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
456
|
-
)
|
|
457
|
-
|
|
458
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
459
|
-
}).and(
|
|
460
|
-
zod.object({
|
|
461
|
-
issues: zod.array(
|
|
462
|
-
zod.object({
|
|
463
|
-
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
464
|
-
}).and(
|
|
465
|
-
zod.object({
|
|
466
|
-
self: zod.string().url().optional().describe(
|
|
467
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
468
|
-
),
|
|
469
|
-
id: zod.number().min(1).optional().describe(
|
|
470
|
-
"The ID that represents the link between the entity and the Jira issue."
|
|
471
|
-
),
|
|
472
|
-
target: zod.string().url().optional().describe(
|
|
473
|
-
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
474
|
-
),
|
|
475
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
476
|
-
})
|
|
477
|
-
)
|
|
478
|
-
).optional().describe("A list of Jira issues linked to this entity"),
|
|
479
|
-
webLinks: zod.array(
|
|
480
|
-
zod.object({
|
|
481
|
-
description: zod.string().optional().describe("The web link description"),
|
|
482
|
-
url: zod.string().url().describe("The web link URL")
|
|
483
|
-
}).and(
|
|
484
|
-
zod.object({
|
|
485
|
-
self: zod.string().url().optional().describe(
|
|
486
|
-
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
487
|
-
),
|
|
488
|
-
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
489
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
490
|
-
})
|
|
491
|
-
)
|
|
492
|
-
).optional().describe("A list of web links for this entity")
|
|
493
|
-
})
|
|
494
|
-
).optional().describe("This property is ignored on updates.")
|
|
495
|
-
});
|
|
438
|
+
)
|
|
439
|
+
}).strict();
|
|
496
440
|
zod.object({
|
|
497
441
|
errorCode: zod.number(),
|
|
498
442
|
message: zod.string()
|
|
@@ -502,7 +446,7 @@ const GetTestCaseLinksParams = zod.object({
|
|
|
502
446
|
testCaseKey: zod.string().regex(getTestCaseLinksPathTestCaseKeyRegExp).describe(
|
|
503
447
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
504
448
|
)
|
|
505
|
-
});
|
|
449
|
+
}).strict();
|
|
506
450
|
const GetTestCaseLinks200Response = zod.object({
|
|
507
451
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
508
452
|
issues: zod.array(
|
|
@@ -523,7 +467,7 @@ const GetTestCaseLinks200Response = zod.object({
|
|
|
523
467
|
webLinks: zod.array(
|
|
524
468
|
zod.object({
|
|
525
469
|
description: zod.string().optional().describe("The web link description"),
|
|
526
|
-
url: zod.string().
|
|
470
|
+
url: zod.string().describe("The web link URL"),
|
|
527
471
|
self: zod.string().url().optional().describe(
|
|
528
472
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
529
473
|
),
|
|
@@ -531,7 +475,7 @@ const GetTestCaseLinks200Response = zod.object({
|
|
|
531
475
|
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
532
476
|
}).strict()
|
|
533
477
|
).optional().describe("A list of web links for this entity")
|
|
534
|
-
}).strict().describe("
|
|
478
|
+
}).strict().describe("A list of links for this test case.");
|
|
535
479
|
zod.object({
|
|
536
480
|
errorCode: zod.number(),
|
|
537
481
|
message: zod.string()
|
|
@@ -541,10 +485,10 @@ const CreateTestCaseIssueLinkParams = zod.object({
|
|
|
541
485
|
testCaseKey: zod.string().regex(createTestCaseIssueLinkPathTestCaseKeyRegExp).describe(
|
|
542
486
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
543
487
|
)
|
|
544
|
-
});
|
|
488
|
+
}).strict();
|
|
545
489
|
const CreateTestCaseIssueLinkBody = zod.object({
|
|
546
490
|
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
547
|
-
});
|
|
491
|
+
}).strict();
|
|
548
492
|
const CreateTestCaseIssueLink201Response = zod.object({
|
|
549
493
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
550
494
|
self: zod.string().optional()
|
|
@@ -558,11 +502,11 @@ const CreateTestCaseWebLinkParams = zod.object({
|
|
|
558
502
|
testCaseKey: zod.string().regex(createTestCaseWebLinkPathTestCaseKeyRegExp).describe(
|
|
559
503
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
560
504
|
)
|
|
561
|
-
});
|
|
505
|
+
}).strict();
|
|
562
506
|
const CreateTestCaseWebLinkBody = zod.object({
|
|
563
507
|
description: zod.string().optional().describe("The web link description"),
|
|
564
|
-
url: zod.string().
|
|
565
|
-
});
|
|
508
|
+
url: zod.string().describe("The web link URL")
|
|
509
|
+
}).strict();
|
|
566
510
|
const CreateTestCaseWebLink201Response = zod.object({
|
|
567
511
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
568
512
|
self: zod.string().optional()
|
|
@@ -576,7 +520,7 @@ zod.object({
|
|
|
576
520
|
testCaseKey: zod.string().regex(listTestCaseVersionsPathTestCaseKeyRegExp).describe(
|
|
577
521
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
578
522
|
)
|
|
579
|
-
});
|
|
523
|
+
}).strict();
|
|
580
524
|
const listTestCaseVersionsQueryMaxResultsDefault = 10;
|
|
581
525
|
const listTestCaseVersionsQueryStartAtDefault = 0;
|
|
582
526
|
const listTestCaseVersionsQueryStartAtMin = 0;
|
|
@@ -622,7 +566,7 @@ zod.object({
|
|
|
622
566
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
623
567
|
),
|
|
624
568
|
version: zod.number().describe("Version of the test case to retrieve.")
|
|
625
|
-
});
|
|
569
|
+
}).strict();
|
|
626
570
|
const getTestCaseVersion200ResponseKeyRegExp = /.+-T[0-9]+/;
|
|
627
571
|
const getTestCaseVersion200ResponseNameMax = 255;
|
|
628
572
|
const getTestCaseVersion200ResponseNameRegExp = /^(?!\\s*$).+/;
|
|
@@ -692,7 +636,7 @@ zod.object({
|
|
|
692
636
|
webLinks: zod.array(
|
|
693
637
|
zod.object({
|
|
694
638
|
description: zod.string().optional().describe("The web link description"),
|
|
695
|
-
url: zod.string().
|
|
639
|
+
url: zod.string().describe("The web link URL"),
|
|
696
640
|
self: zod.string().url().optional().describe(
|
|
697
641
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
698
642
|
),
|
|
@@ -700,7 +644,7 @@ zod.object({
|
|
|
700
644
|
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
701
645
|
}).strict()
|
|
702
646
|
).optional().describe("A list of web links for this entity")
|
|
703
|
-
}).strict().optional().describe("
|
|
647
|
+
}).strict().optional().describe("A list of links for this test case.")
|
|
704
648
|
}).strict();
|
|
705
649
|
zod.object({
|
|
706
650
|
errorCode: zod.number(),
|
|
@@ -711,7 +655,7 @@ const GetTestCaseTestScriptParams = zod.object({
|
|
|
711
655
|
testCaseKey: zod.string().regex(getTestCaseTestScriptPathTestCaseKeyRegExp).describe(
|
|
712
656
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
713
657
|
)
|
|
714
|
-
});
|
|
658
|
+
}).strict();
|
|
715
659
|
const GetTestCaseTestScript200Response = zod.object({
|
|
716
660
|
type: zod.enum(["plain", "bdd"]).describe(
|
|
717
661
|
"Test scripts can be written in plain text or BDD format. The BDD type supports\nremote execution on a build system via API plugin.\n\nSupported Keywords for BDD:\nGiven, When, Then, And, But.\n\nFor more information about BDD and Gherkin syntax, see:\nhttps://support.smartbear.com/zephyr/docs/en/test-cases/gherkin-behavior-driven-development--bdd-.html\n\nFor Plain Text scripts, we support HTML fragments.\nTo create a step-by-step test script, you should use the POST /testcases/{testCaseKey}/teststeps endpoint.\n"
|
|
@@ -728,13 +672,13 @@ const CreateTestCaseTestScriptParams = zod.object({
|
|
|
728
672
|
testCaseKey: zod.string().regex(createTestCaseTestScriptPathTestCaseKeyRegExp).describe(
|
|
729
673
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
730
674
|
)
|
|
731
|
-
});
|
|
675
|
+
}).strict();
|
|
732
676
|
const CreateTestCaseTestScriptBody = zod.object({
|
|
733
677
|
type: zod.enum(["plain", "bdd"]).describe(
|
|
734
678
|
"Test scripts can be written in plain text or BDD format. The BDD type supports\nremote execution on a build system via API plugin.\n\nSupported Keywords for BDD:\nGiven, When, Then, And, But.\n\nFor more information about BDD and Gherkin syntax, see:\nhttps://support.smartbear.com/zephyr/docs/en/test-cases/gherkin-behavior-driven-development--bdd-.html\n\nFor Plain Text scripts, we support HTML fragments.\nTo create a step-by-step test script, you should use the POST /testcases/{testCaseKey}/teststeps endpoint.\n"
|
|
735
679
|
),
|
|
736
680
|
text: zod.string().min(1)
|
|
737
|
-
}).describe("Request body for creating test scripts");
|
|
681
|
+
}).strict().describe("Request body for creating test scripts");
|
|
738
682
|
const CreateTestCaseTestScript201Response = zod.object({
|
|
739
683
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
740
684
|
self: zod.string().optional()
|
|
@@ -748,7 +692,7 @@ const GetTestCaseTestStepsParams = zod.object({
|
|
|
748
692
|
testCaseKey: zod.string().regex(getTestCaseTestStepsPathTestCaseKeyRegExp).describe(
|
|
749
693
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
750
694
|
)
|
|
751
|
-
});
|
|
695
|
+
}).strict();
|
|
752
696
|
const getTestCaseTestStepsQueryMaxResultsDefault = 10;
|
|
753
697
|
const getTestCaseTestStepsQueryStartAtDefault = 0;
|
|
754
698
|
const getTestCaseTestStepsQueryStartAtMin = 0;
|
|
@@ -763,7 +707,7 @@ const GetTestCaseTestStepsQueryParams = zod.object({
|
|
|
763
707
|
});
|
|
764
708
|
const getTestCaseTestSteps200ResponseOneStartAtMin = 0;
|
|
765
709
|
const getTestCaseTestSteps200ResponseOneTotalMin = 0;
|
|
766
|
-
const
|
|
710
|
+
const getTestCaseTestSteps200ResponseTwoValuesItemTestCaseOneTwoTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
767
711
|
const GetTestCaseTestSteps200Response = zod.object({
|
|
768
712
|
next: zod.string().url().nullish().describe(
|
|
769
713
|
"URL to the next page of results, or null if there are no more results."
|
|
@@ -781,24 +725,24 @@ const GetTestCaseTestSteps200Response = zod.object({
|
|
|
781
725
|
values: zod.array(
|
|
782
726
|
zod.object({
|
|
783
727
|
inline: zod.object({
|
|
784
|
-
description: zod.string().
|
|
785
|
-
testData: zod.string().
|
|
728
|
+
description: zod.string().nullish().describe("The instruction to be followed"),
|
|
729
|
+
testData: zod.string().nullish().describe(
|
|
786
730
|
"Any test data required to perform the instruction (optional). The fields values provided can be interpolated into the description."
|
|
787
731
|
),
|
|
788
|
-
expectedResult: zod.string().
|
|
732
|
+
expectedResult: zod.string().nullish().describe(
|
|
789
733
|
"The expected outcome of executing the instruction"
|
|
790
734
|
),
|
|
791
735
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
792
736
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
793
737
|
),
|
|
794
|
-
reflectRef: zod.string().
|
|
795
|
-
}).strict().
|
|
738
|
+
reflectRef: zod.string().nullish().describe("The AI reference. Zephyr only feature")
|
|
739
|
+
}).strict().nullish(),
|
|
796
740
|
testCase: zod.object({
|
|
797
741
|
self: zod.string().url().optional().describe(
|
|
798
742
|
"The REST API endpoint to get more resource details."
|
|
799
743
|
),
|
|
800
744
|
testCaseKey: zod.string().regex(
|
|
801
|
-
|
|
745
|
+
getTestCaseTestSteps200ResponseTwoValuesItemTestCaseOneTwoTestCaseKeyRegExp
|
|
802
746
|
).optional().describe(
|
|
803
747
|
"The key of the other test case that the test step should delegate execution to. This cannot be the parent test case."
|
|
804
748
|
),
|
|
@@ -810,8 +754,8 @@ const GetTestCaseTestSteps200Response = zod.object({
|
|
|
810
754
|
),
|
|
811
755
|
value: zod.string().optional().describe("Value of the parameter")
|
|
812
756
|
}).strict()
|
|
813
|
-
).
|
|
814
|
-
}).strict().
|
|
757
|
+
).nullish().describe("The list of parameters of the call to test step")
|
|
758
|
+
}).strict().nullish()
|
|
815
759
|
}).strict().describe(
|
|
816
760
|
"An instruction to be followed as part of a step-by-step test script. The test step can have either an inline definition, or delegate execution to another test case. One of these options must be specified."
|
|
817
761
|
)
|
|
@@ -826,7 +770,7 @@ const CreateTestCaseTestStepsParams = zod.object({
|
|
|
826
770
|
testCaseKey: zod.string().regex(createTestCaseTestStepsPathTestCaseKeyRegExp).describe(
|
|
827
771
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
828
772
|
)
|
|
829
|
-
});
|
|
773
|
+
}).strict();
|
|
830
774
|
const createTestCaseTestStepsBodyItemsItemTestCaseTwoTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
831
775
|
const CreateTestCaseTestStepsBody = zod.object({
|
|
832
776
|
mode: zod.string().describe(
|
|
@@ -846,38 +790,33 @@ const CreateTestCaseTestStepsBody = zod.object({
|
|
|
846
790
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
847
791
|
),
|
|
848
792
|
reflectRef: zod.string().optional().describe("The AI reference. Zephyr only feature")
|
|
849
|
-
}).optional(),
|
|
793
|
+
}).strict().optional(),
|
|
850
794
|
testCase: zod.object({
|
|
851
795
|
self: zod.string().url().optional().describe(
|
|
852
796
|
"The REST API endpoint to get more resource details."
|
|
853
|
-
)
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
zod.
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
"The list of parameters of the call to test step"
|
|
871
|
-
)
|
|
872
|
-
})
|
|
873
|
-
).optional()
|
|
874
|
-
}).describe(
|
|
797
|
+
),
|
|
798
|
+
testCaseKey: zod.string().regex(
|
|
799
|
+
createTestCaseTestStepsBodyItemsItemTestCaseTwoTestCaseKeyRegExp
|
|
800
|
+
).optional().describe(
|
|
801
|
+
"The key of the other test case that the test step should delegate execution to. This cannot be the parent test case."
|
|
802
|
+
),
|
|
803
|
+
parameters: zod.array(
|
|
804
|
+
zod.object({
|
|
805
|
+
name: zod.string().optional().describe("Name of the parameter"),
|
|
806
|
+
type: zod.enum(["MANUAL_INPUT", "DEFAULT_VALUE"]).optional().describe(
|
|
807
|
+
"Type of the parameter. It is manual inputs for parameters or the default values."
|
|
808
|
+
),
|
|
809
|
+
value: zod.string().optional().describe("Value of the parameter")
|
|
810
|
+
}).strict()
|
|
811
|
+
).optional().describe("The list of parameters of the call to test step")
|
|
812
|
+
}).strict().optional()
|
|
813
|
+
}).strict().describe(
|
|
875
814
|
"An instruction to be followed as part of a step-by-step test script. The test step can have either an inline definition, or delegate execution to another test case. One of these options must be specified."
|
|
876
815
|
)
|
|
877
816
|
).describe(
|
|
878
817
|
"The list of test steps. Each step should be an object containing `inline` or `testCase`. **They should only include one of these fields at a time**."
|
|
879
818
|
)
|
|
880
|
-
}).describe(
|
|
819
|
+
}).strict().describe(
|
|
881
820
|
"Request body for creating test steps. A maximum of 100 test steps can be added in one request. To add more than 100 steps, you can submit multiple requests. The mode property allows you to specify whether you want to delete the current test steps and create a new list, or append more items to the end of the current list."
|
|
882
821
|
);
|
|
883
822
|
const CreateTestCaseTestSteps201Response = zod.object({
|
|
@@ -996,7 +935,7 @@ const ListTestCycles200Response = zod.object({
|
|
|
996
935
|
webLinks: zod.array(
|
|
997
936
|
zod.object({
|
|
998
937
|
description: zod.string().optional().describe("The web link description"),
|
|
999
|
-
url: zod.string().
|
|
938
|
+
url: zod.string().describe("The web link URL"),
|
|
1000
939
|
self: zod.string().url().optional().describe(
|
|
1001
940
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1002
941
|
),
|
|
@@ -1019,9 +958,7 @@ const ListTestCycles200Response = zod.object({
|
|
|
1019
958
|
)
|
|
1020
959
|
}).strict()
|
|
1021
960
|
).optional().describe("A list of test plans linked to a test cycle")
|
|
1022
|
-
}).strict().optional().describe(
|
|
1023
|
-
"Represents all links that a Test Cycle has. This property is ignored on update operations."
|
|
1024
|
-
)
|
|
961
|
+
}).strict().optional().describe("Represents all links that a Test Cycle has.")
|
|
1025
962
|
}).strict().describe("Details of a test cycle")
|
|
1026
963
|
).optional()
|
|
1027
964
|
}).strict();
|
|
@@ -1053,7 +990,7 @@ const CreateTestCycleBody = zod.object({
|
|
|
1053
990
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1054
991
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1055
992
|
)
|
|
1056
|
-
});
|
|
993
|
+
}).strict();
|
|
1057
994
|
const CreateTestCycle201Response = zod.object({
|
|
1058
995
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
1059
996
|
self: zod.string().optional(),
|
|
@@ -1066,7 +1003,7 @@ zod.object({
|
|
|
1066
1003
|
const getTestCyclePathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1067
1004
|
const GetTestCycleParams = zod.object({
|
|
1068
1005
|
testCycleIdOrKey: zod.string().regex(getTestCyclePathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
1069
|
-
});
|
|
1006
|
+
}).strict();
|
|
1070
1007
|
const getTestCycle200ResponseKeyRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1071
1008
|
const getTestCycle200ResponseNameRegExp = /^(?!\s*$).+/;
|
|
1072
1009
|
const getTestCycle200ResponseOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
@@ -1128,7 +1065,7 @@ const GetTestCycle200Response = zod.object({
|
|
|
1128
1065
|
webLinks: zod.array(
|
|
1129
1066
|
zod.object({
|
|
1130
1067
|
description: zod.string().optional().describe("The web link description"),
|
|
1131
|
-
url: zod.string().
|
|
1068
|
+
url: zod.string().describe("The web link URL"),
|
|
1132
1069
|
self: zod.string().url().optional().describe(
|
|
1133
1070
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1134
1071
|
),
|
|
@@ -1151,9 +1088,7 @@ const GetTestCycle200Response = zod.object({
|
|
|
1151
1088
|
)
|
|
1152
1089
|
}).strict()
|
|
1153
1090
|
).optional().describe("A list of test plans linked to a test cycle")
|
|
1154
|
-
}).strict().optional().describe(
|
|
1155
|
-
"Represents all links that a Test Cycle has. This property is ignored on update operations."
|
|
1156
|
-
)
|
|
1091
|
+
}).strict().optional().describe("Represents all links that a Test Cycle has.")
|
|
1157
1092
|
}).strict().describe("Details of a test cycle");
|
|
1158
1093
|
zod.object({
|
|
1159
1094
|
errorCode: zod.number(),
|
|
@@ -1162,44 +1097,33 @@ zod.object({
|
|
|
1162
1097
|
const updateTestCyclePathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1163
1098
|
const UpdateTestCycleParams = zod.object({
|
|
1164
1099
|
testCycleIdOrKey: zod.string().regex(updateTestCyclePathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
1165
|
-
});
|
|
1100
|
+
}).strict();
|
|
1166
1101
|
const updateTestCycleBodyKeyRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1167
|
-
const
|
|
1102
|
+
const updateTestCycleBodyNameMax = 255;
|
|
1103
|
+
const updateTestCycleBodyNameRegExp = /^(?!\\s*$).+/;
|
|
1168
1104
|
const updateTestCycleBodyOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
1169
1105
|
const UpdateTestCycleBody = zod.object({
|
|
1170
1106
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
1171
1107
|
key: zod.string().regex(updateTestCycleBodyKeyRegExp).describe("Unique key of the test cycle"),
|
|
1172
|
-
name: zod.string().
|
|
1108
|
+
name: zod.string().min(1).max(updateTestCycleBodyNameMax).regex(updateTestCycleBodyNameRegExp),
|
|
1173
1109
|
project: zod.object({
|
|
1174
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1178
|
-
})
|
|
1179
|
-
).describe("ID and link relative to Zephyr project."),
|
|
1110
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
1111
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1112
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
1180
1113
|
jiraProjectVersion: zod.object({
|
|
1181
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1185
|
-
})
|
|
1186
|
-
).nullish().describe(
|
|
1114
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
1115
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1116
|
+
}).strict().nullish().describe(
|
|
1187
1117
|
"ID and Link to fetch information about Jira Project version. Relates to 'Version' or 'Releases' in Jira projects."
|
|
1188
1118
|
),
|
|
1189
1119
|
status: zod.object({
|
|
1190
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1194
|
-
})
|
|
1195
|
-
).describe("ID and link to the status resource."),
|
|
1120
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
1121
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1122
|
+
}).strict().describe("ID and link to the status resource."),
|
|
1196
1123
|
folder: zod.object({
|
|
1197
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1201
|
-
})
|
|
1202
|
-
).nullish().describe("ID and link to the folder resource."),
|
|
1124
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
1125
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1126
|
+
}).strict().nullish().describe("ID and link to the folder resource."),
|
|
1203
1127
|
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
1204
1128
|
plannedStartDate: zod.string().datetime({}).nullish().describe(
|
|
1205
1129
|
"Planned start date of the test cycle. This field cannot be blank. Setting it as null or excluding it from the request will leave the field values unchanged. ISO 8601 Format (i.e., yyyy-MM-dd'T'HH:mm:ss'Z')"
|
|
@@ -1212,66 +1136,11 @@ const UpdateTestCycleBody = zod.object({
|
|
|
1212
1136
|
self: zod.string().url().optional().describe(
|
|
1213
1137
|
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
1214
1138
|
)
|
|
1215
|
-
}).nullish(),
|
|
1139
|
+
}).strict().nullish(),
|
|
1216
1140
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1217
1141
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1218
|
-
),
|
|
1219
|
-
links: zod.object({
|
|
1220
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1221
|
-
}).and(
|
|
1222
|
-
zod.object({
|
|
1223
|
-
issues: zod.array(
|
|
1224
|
-
zod.object({
|
|
1225
|
-
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
1226
|
-
}).and(
|
|
1227
|
-
zod.object({
|
|
1228
|
-
self: zod.string().url().optional().describe(
|
|
1229
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1230
|
-
),
|
|
1231
|
-
id: zod.number().min(1).optional().describe(
|
|
1232
|
-
"The ID that represents the link between the entity and the Jira issue."
|
|
1233
|
-
),
|
|
1234
|
-
target: zod.string().url().optional().describe(
|
|
1235
|
-
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1236
|
-
),
|
|
1237
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1238
|
-
})
|
|
1239
|
-
)
|
|
1240
|
-
).optional().describe("A list of Jira issues linked to this entity"),
|
|
1241
|
-
webLinks: zod.array(
|
|
1242
|
-
zod.object({
|
|
1243
|
-
description: zod.string().optional().describe("The web link description"),
|
|
1244
|
-
url: zod.string().url().describe("The web link URL")
|
|
1245
|
-
}).and(
|
|
1246
|
-
zod.object({
|
|
1247
|
-
self: zod.string().url().optional().describe(
|
|
1248
|
-
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1249
|
-
),
|
|
1250
|
-
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
1251
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1252
|
-
})
|
|
1253
|
-
)
|
|
1254
|
-
).optional().describe("A list of web links for this entity"),
|
|
1255
|
-
testPlans: zod.array(
|
|
1256
|
-
zod.object({
|
|
1257
|
-
id: zod.number().min(1).optional().describe(
|
|
1258
|
-
"The ID that represents the link between the Test Cycle and the Test Plan."
|
|
1259
|
-
),
|
|
1260
|
-
self: zod.string().url().optional().describe(
|
|
1261
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1262
|
-
),
|
|
1263
|
-
testPlanId: zod.number().optional().describe("The ID of the test plan"),
|
|
1264
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1265
|
-
target: zod.string().url().optional().describe(
|
|
1266
|
-
"The Zephyr REST API endpoint to get the full representation of the test plan"
|
|
1267
|
-
)
|
|
1268
|
-
})
|
|
1269
|
-
).optional().describe("A list of test plans linked to a test cycle")
|
|
1270
|
-
})
|
|
1271
|
-
).optional().describe(
|
|
1272
|
-
"Represents all links that a Test Cycle has. This property is ignored on update operations."
|
|
1273
1142
|
)
|
|
1274
|
-
}).
|
|
1143
|
+
}).strict();
|
|
1275
1144
|
zod.object({
|
|
1276
1145
|
errorCode: zod.number(),
|
|
1277
1146
|
message: zod.string()
|
|
@@ -1279,7 +1148,7 @@ zod.object({
|
|
|
1279
1148
|
const getTestCycleLinksPathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1280
1149
|
const GetTestCycleLinksParams = zod.object({
|
|
1281
1150
|
testCycleIdOrKey: zod.string().regex(getTestCycleLinksPathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
1282
|
-
});
|
|
1151
|
+
}).strict();
|
|
1283
1152
|
const GetTestCycleLinks200Response = zod.object({
|
|
1284
1153
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
1285
1154
|
issues: zod.array(
|
|
@@ -1300,7 +1169,7 @@ const GetTestCycleLinks200Response = zod.object({
|
|
|
1300
1169
|
webLinks: zod.array(
|
|
1301
1170
|
zod.object({
|
|
1302
1171
|
description: zod.string().optional().describe("The web link description"),
|
|
1303
|
-
url: zod.string().
|
|
1172
|
+
url: zod.string().describe("The web link URL"),
|
|
1304
1173
|
self: zod.string().url().optional().describe(
|
|
1305
1174
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1306
1175
|
),
|
|
@@ -1323,9 +1192,7 @@ const GetTestCycleLinks200Response = zod.object({
|
|
|
1323
1192
|
)
|
|
1324
1193
|
}).strict()
|
|
1325
1194
|
).optional().describe("A list of test plans linked to a test cycle")
|
|
1326
|
-
}).strict().describe(
|
|
1327
|
-
"Represents all links that a Test Cycle has. This property is ignored on update operations."
|
|
1328
|
-
);
|
|
1195
|
+
}).strict().describe("Represents all links that a Test Cycle has.");
|
|
1329
1196
|
zod.object({
|
|
1330
1197
|
errorCode: zod.number(),
|
|
1331
1198
|
message: zod.string()
|
|
@@ -1333,10 +1200,10 @@ zod.object({
|
|
|
1333
1200
|
const createTestCycleIssueLinkPathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1334
1201
|
const CreateTestCycleIssueLinkParams = zod.object({
|
|
1335
1202
|
testCycleIdOrKey: zod.string().regex(createTestCycleIssueLinkPathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
1336
|
-
});
|
|
1203
|
+
}).strict();
|
|
1337
1204
|
const CreateTestCycleIssueLinkBody = zod.object({
|
|
1338
1205
|
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
1339
|
-
});
|
|
1206
|
+
}).strict();
|
|
1340
1207
|
zod.object({
|
|
1341
1208
|
errorCode: zod.number(),
|
|
1342
1209
|
message: zod.string()
|
|
@@ -1344,11 +1211,11 @@ zod.object({
|
|
|
1344
1211
|
const createTestCycleWebLinkPathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1345
1212
|
const CreateTestCycleWebLinkParams = zod.object({
|
|
1346
1213
|
testCycleIdOrKey: zod.string().regex(createTestCycleWebLinkPathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
1347
|
-
});
|
|
1214
|
+
}).strict();
|
|
1348
1215
|
const CreateTestCycleWebLinkBody = zod.object({
|
|
1349
1216
|
description: zod.string().optional().describe("The web link description"),
|
|
1350
|
-
url: zod.string().
|
|
1351
|
-
});
|
|
1217
|
+
url: zod.string().describe("The web link URL")
|
|
1218
|
+
}).strict();
|
|
1352
1219
|
zod.object({
|
|
1353
1220
|
errorCode: zod.number(),
|
|
1354
1221
|
message: zod.string()
|
|
@@ -1428,7 +1295,7 @@ zod.object({
|
|
|
1428
1295
|
webLinks: zod.array(
|
|
1429
1296
|
zod.object({
|
|
1430
1297
|
description: zod.string().optional().describe("The web link description"),
|
|
1431
|
-
url: zod.string().
|
|
1298
|
+
url: zod.string().describe("The web link URL"),
|
|
1432
1299
|
self: zod.string().url().optional().describe(
|
|
1433
1300
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1434
1301
|
),
|
|
@@ -1489,7 +1356,7 @@ zod.object({
|
|
|
1489
1356
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1490
1357
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1491
1358
|
)
|
|
1492
|
-
});
|
|
1359
|
+
}).strict();
|
|
1493
1360
|
zod.object({
|
|
1494
1361
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
1495
1362
|
self: zod.string().optional(),
|
|
@@ -1504,7 +1371,7 @@ zod.object({
|
|
|
1504
1371
|
testPlanIdOrKey: zod.string().regex(getTestPlanPathTestPlanIdOrKeyRegExp).describe(
|
|
1505
1372
|
"The ID or key of the test plan. Test plan keys are of the format [A-Z]+-P[0-9]+"
|
|
1506
1373
|
)
|
|
1507
|
-
});
|
|
1374
|
+
}).strict();
|
|
1508
1375
|
const getTestPlan200ResponseKeyRegExp = /.+-P[0-9]+/;
|
|
1509
1376
|
const getTestPlan200ResponseNameMax = 255;
|
|
1510
1377
|
const getTestPlan200ResponseNameRegExp = /^(?!\\s*$).+/;
|
|
@@ -1541,7 +1408,7 @@ zod.object({
|
|
|
1541
1408
|
webLinks: zod.array(
|
|
1542
1409
|
zod.object({
|
|
1543
1410
|
description: zod.string().optional().describe("The web link description"),
|
|
1544
|
-
url: zod.string().
|
|
1411
|
+
url: zod.string().describe("The web link URL"),
|
|
1545
1412
|
self: zod.string().url().optional().describe(
|
|
1546
1413
|
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1547
1414
|
),
|
|
@@ -1588,11 +1455,11 @@ zod.object({
|
|
|
1588
1455
|
testPlanIdOrKey: zod.string().regex(createTestPlanWebLinkPathTestPlanIdOrKeyRegExp).describe(
|
|
1589
1456
|
"The ID or key of the test plan. Test plan keys are of the format [A-Z]+-P[0-9]+"
|
|
1590
1457
|
)
|
|
1591
|
-
});
|
|
1458
|
+
}).strict();
|
|
1592
1459
|
zod.object({
|
|
1593
1460
|
description: zod.string().optional().describe("The web link description"),
|
|
1594
|
-
url: zod.string().
|
|
1595
|
-
}).and(zod.unknown());
|
|
1461
|
+
url: zod.string().describe("The web link URL")
|
|
1462
|
+
}).strict().and(zod.unknown());
|
|
1596
1463
|
zod.object({
|
|
1597
1464
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
1598
1465
|
self: zod.string().optional()
|
|
@@ -1606,10 +1473,10 @@ zod.object({
|
|
|
1606
1473
|
testPlanIdOrKey: zod.string().regex(createTestPlanIssueLinkPathTestPlanIdOrKeyRegExp).describe(
|
|
1607
1474
|
"The ID or key of the test plan. Test plan keys are of the format [A-Z]+-P[0-9]+"
|
|
1608
1475
|
)
|
|
1609
|
-
});
|
|
1476
|
+
}).strict();
|
|
1610
1477
|
zod.object({
|
|
1611
1478
|
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
1612
|
-
});
|
|
1479
|
+
}).strict();
|
|
1613
1480
|
zod.object({
|
|
1614
1481
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
1615
1482
|
self: zod.string().optional()
|
|
@@ -1623,11 +1490,11 @@ zod.object({
|
|
|
1623
1490
|
testPlanIdOrKey: zod.string().regex(createTestPlanTestCycleLinkPathTestPlanIdOrKeyRegExp).describe(
|
|
1624
1491
|
"The ID or key of the test plan. Test plan keys are of the format [A-Z]+-P[0-9]+"
|
|
1625
1492
|
)
|
|
1626
|
-
});
|
|
1493
|
+
}).strict();
|
|
1627
1494
|
const createTestPlanTestCycleLinkBodyTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1628
1495
|
zod.object({
|
|
1629
1496
|
testCycleIdOrKey: zod.string().regex(createTestPlanTestCycleLinkBodyTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
1630
|
-
});
|
|
1497
|
+
}).strict();
|
|
1631
1498
|
zod.object({
|
|
1632
1499
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
1633
1500
|
self: zod.string().optional()
|
|
@@ -1803,7 +1670,7 @@ const CreateTestExecutionBody = zod.object({
|
|
|
1803
1670
|
actualResult: zod.string().optional().describe(
|
|
1804
1671
|
"free text field to provide more info on result of step execution."
|
|
1805
1672
|
)
|
|
1806
|
-
})
|
|
1673
|
+
}).strict()
|
|
1807
1674
|
).optional(),
|
|
1808
1675
|
environmentName: zod.string().optional().describe("Environment assigned to the test case."),
|
|
1809
1676
|
actualEndDate: zod.string().datetime({}).optional().describe(
|
|
@@ -1816,7 +1683,7 @@ const CreateTestExecutionBody = zod.object({
|
|
|
1816
1683
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1817
1684
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1818
1685
|
)
|
|
1819
|
-
});
|
|
1686
|
+
}).strict();
|
|
1820
1687
|
const CreateTestExecution201Response = zod.object({
|
|
1821
1688
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
1822
1689
|
self: zod.string().optional()
|
|
@@ -1965,7 +1832,7 @@ const GetTestExecutionParams = zod.object({
|
|
|
1965
1832
|
testExecutionIdOrKey: zod.string().regex(getTestExecutionPathTestExecutionIdOrKeyRegExp).describe(
|
|
1966
1833
|
"The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+"
|
|
1967
1834
|
)
|
|
1968
|
-
});
|
|
1835
|
+
}).strict();
|
|
1969
1836
|
const getTestExecutionQueryIncludeStepLinksDefault = false;
|
|
1970
1837
|
zod.object({
|
|
1971
1838
|
includeStepLinks: zod.boolean().default(getTestExecutionQueryIncludeStepLinksDefault).describe(
|
|
@@ -2046,7 +1913,7 @@ const UpdateTestExecutionParams = zod.object({
|
|
|
2046
1913
|
testExecutionIdOrKey: zod.string().regex(updateTestExecutionPathTestExecutionIdOrKeyRegExp).describe(
|
|
2047
1914
|
"The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+"
|
|
2048
1915
|
)
|
|
2049
|
-
});
|
|
1916
|
+
}).strict();
|
|
2050
1917
|
const updateTestExecutionBodyStatusNameMax = 255;
|
|
2051
1918
|
const updateTestExecutionBodyExecutionTimeMin = 0;
|
|
2052
1919
|
const updateTestExecutionBodyExecutedByIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
@@ -2061,7 +1928,7 @@ const UpdateTestExecutionBody = zod.object({
|
|
|
2061
1928
|
executedById: zod.string().regex(updateTestExecutionBodyExecutedByIdRegExp).nullish().describe("Atlassian Account ID of the Jira user."),
|
|
2062
1929
|
assignedToId: zod.string().regex(updateTestExecutionBodyAssignedToIdRegExp).nullish().describe("Atlassian Account ID of the Jira user."),
|
|
2063
1930
|
comment: zod.string().nullish().describe("Comment added against overall test case execution.")
|
|
2064
|
-
});
|
|
1931
|
+
}).strict();
|
|
2065
1932
|
zod.object({
|
|
2066
1933
|
errorCode: zod.number(),
|
|
2067
1934
|
message: zod.string()
|
|
@@ -2071,7 +1938,7 @@ const GetTestExecutionTestStepsParams = zod.object({
|
|
|
2071
1938
|
testExecutionIdOrKey: zod.string().regex(getTestExecutionTestStepsPathTestExecutionIdOrKeyRegExp).describe(
|
|
2072
1939
|
"The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+"
|
|
2073
1940
|
)
|
|
2074
|
-
});
|
|
1941
|
+
}).strict();
|
|
2075
1942
|
const getTestExecutionTestStepsQueryMaxResultsDefault = 10;
|
|
2076
1943
|
const getTestExecutionTestStepsQueryStartAtDefault = 0;
|
|
2077
1944
|
const getTestExecutionTestStepsQueryStartAtMin = 0;
|
|
@@ -2126,20 +1993,20 @@ const GetTestExecutionTestSteps200Response = zod.object({
|
|
|
2126
1993
|
).optional().describe("The list of test steps")
|
|
2127
1994
|
}).strict().describe("Response body when retrieving test steps for a test execution");
|
|
2128
1995
|
const putTestExecutionTestStepsPathTestExecutionIdOrKeyRegExp = /([0-9]+)|(.+-E[0-9]+)/;
|
|
2129
|
-
zod.object({
|
|
1996
|
+
const PutTestExecutionTestStepsParams = zod.object({
|
|
2130
1997
|
testExecutionIdOrKey: zod.string().regex(putTestExecutionTestStepsPathTestExecutionIdOrKeyRegExp).describe(
|
|
2131
1998
|
"The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+"
|
|
2132
1999
|
)
|
|
2133
|
-
});
|
|
2000
|
+
}).strict();
|
|
2134
2001
|
const putTestExecutionTestStepsBodyStepsItemStatusNameMax = 255;
|
|
2135
|
-
zod.object({
|
|
2002
|
+
const PutTestExecutionTestStepsBody = zod.object({
|
|
2136
2003
|
steps: zod.array(
|
|
2137
2004
|
zod.object({
|
|
2138
2005
|
actualResult: zod.string().optional().describe("The actual result."),
|
|
2139
2006
|
statusName: zod.string().min(1).max(putTestExecutionTestStepsBodyStepsItemStatusNameMax).optional().describe("The status name.")
|
|
2140
|
-
})
|
|
2007
|
+
}).strict()
|
|
2141
2008
|
).optional()
|
|
2142
|
-
});
|
|
2009
|
+
}).strict();
|
|
2143
2010
|
zod.object({
|
|
2144
2011
|
errorCode: zod.number(),
|
|
2145
2012
|
message: zod.string()
|
|
@@ -2167,7 +2034,7 @@ zod.object({
|
|
|
2167
2034
|
testExecutionIdOrKey: zod.string().regex(syncTestExecutionScriptPathTestExecutionIdOrKeyRegExp).describe(
|
|
2168
2035
|
"The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+"
|
|
2169
2036
|
)
|
|
2170
|
-
});
|
|
2037
|
+
}).strict();
|
|
2171
2038
|
zod.object({
|
|
2172
2039
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2173
2040
|
}).strict();
|
|
@@ -2188,7 +2055,7 @@ const ListTestExecutionLinksParams = zod.object({
|
|
|
2188
2055
|
testExecutionIdOrKey: zod.string().regex(listTestExecutionLinksPathTestExecutionIdOrKeyRegExp).describe(
|
|
2189
2056
|
"The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+"
|
|
2190
2057
|
)
|
|
2191
|
-
});
|
|
2058
|
+
}).strict();
|
|
2192
2059
|
const ListTestExecutionLinks200Response = zod.object({
|
|
2193
2060
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
2194
2061
|
issues: zod.array(
|
|
@@ -2216,10 +2083,10 @@ const CreateTestExecutionIssueLinkParams = zod.object({
|
|
|
2216
2083
|
testExecutionIdOrKey: zod.string().regex(createTestExecutionIssueLinkPathTestExecutionIdOrKeyRegExp).describe(
|
|
2217
2084
|
"The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+"
|
|
2218
2085
|
)
|
|
2219
|
-
});
|
|
2086
|
+
}).strict();
|
|
2220
2087
|
const CreateTestExecutionIssueLinkBody = zod.object({
|
|
2221
2088
|
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
2222
|
-
});
|
|
2089
|
+
}).strict();
|
|
2223
2090
|
zod.object({
|
|
2224
2091
|
errorCode: zod.number(),
|
|
2225
2092
|
message: zod.string()
|
|
@@ -2270,7 +2137,7 @@ zod.object({
|
|
|
2270
2137
|
const getProjectPathProjectIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+)/;
|
|
2271
2138
|
const GetProjectParams = zod.object({
|
|
2272
2139
|
projectIdOrKey: zod.string().regex(getProjectPathProjectIdOrKeyRegExp).describe("The Zephyr project ID or Jira project key")
|
|
2273
|
-
});
|
|
2140
|
+
}).strict();
|
|
2274
2141
|
const GetProject200Response = zod.object({
|
|
2275
2142
|
id: zod.number().describe("The ID of the project in Zephyr."),
|
|
2276
2143
|
jiraProjectId: zod.number().describe("The ID of the project in Jira."),
|
|
@@ -2350,7 +2217,7 @@ const CreateFolderBody = zod.object({
|
|
|
2350
2217
|
),
|
|
2351
2218
|
projectKey: zod.string().regex(createFolderBodyProjectKeyRegExp).describe("Jira project key."),
|
|
2352
2219
|
folderType: zod.string().describe('Valid values: `"TEST_CASE"`, `"TEST_PLAN"`, `"TEST_CYCLE"`')
|
|
2353
|
-
});
|
|
2220
|
+
}).strict();
|
|
2354
2221
|
const CreateFolder201Response = zod.object({
|
|
2355
2222
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
2356
2223
|
self: zod.string().optional()
|
|
@@ -2361,7 +2228,7 @@ zod.object({
|
|
|
2361
2228
|
}).strict();
|
|
2362
2229
|
zod.object({
|
|
2363
2230
|
folderId: zod.number().min(1).describe("Folder ID")
|
|
2364
|
-
});
|
|
2231
|
+
}).strict();
|
|
2365
2232
|
const getFolder200ResponseNameMax = 255;
|
|
2366
2233
|
const getFolder200ResponseNameRegExp = /^(?!\\s*$).+/;
|
|
2367
2234
|
const getFolder200ResponseIndexMin = 0;
|
|
@@ -2445,7 +2312,7 @@ zod.object({
|
|
|
2445
2312
|
name: zod.string().min(1).max(createPriorityBodyNameMax).describe("The priority name."),
|
|
2446
2313
|
description: zod.string().min(1).max(createPriorityBodyDescriptionMax).optional().describe("The priority description."),
|
|
2447
2314
|
color: zod.string().regex(createPriorityBodyColorRegExp).optional().describe("A color in hexadecimal format")
|
|
2448
|
-
});
|
|
2315
|
+
}).strict();
|
|
2449
2316
|
zod.object({
|
|
2450
2317
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
2451
2318
|
self: zod.string().optional()
|
|
@@ -2456,7 +2323,7 @@ zod.object({
|
|
|
2456
2323
|
}).strict();
|
|
2457
2324
|
zod.object({
|
|
2458
2325
|
priorityId: zod.number().min(1)
|
|
2459
|
-
});
|
|
2326
|
+
}).strict();
|
|
2460
2327
|
const getPriority200ResponseOneNameMax = 255;
|
|
2461
2328
|
const getPriority200ResponseOneNameRegExp = /^(?!\\s*$).+/;
|
|
2462
2329
|
const getPriority200ResponseOneIndexMin = 0;
|
|
@@ -2484,7 +2351,7 @@ zod.object({
|
|
|
2484
2351
|
}).strict();
|
|
2485
2352
|
zod.object({
|
|
2486
2353
|
priorityId: zod.number().min(1)
|
|
2487
|
-
});
|
|
2354
|
+
}).strict();
|
|
2488
2355
|
const updatePriorityBodyNameMax = 255;
|
|
2489
2356
|
const updatePriorityBodyDescriptionMax = 255;
|
|
2490
2357
|
const updatePriorityBodyIndexMin = 0;
|
|
@@ -2492,18 +2359,15 @@ const updatePriorityBodyColorRegExp = /#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})/;
|
|
|
2492
2359
|
zod.object({
|
|
2493
2360
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
2494
2361
|
project: zod.object({
|
|
2495
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2499
|
-
})
|
|
2500
|
-
).describe("ID and link relative to Zephyr project."),
|
|
2362
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
2363
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2364
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
2501
2365
|
name: zod.string().min(1).max(updatePriorityBodyNameMax).describe("The priority name."),
|
|
2502
2366
|
description: zod.string().min(1).max(updatePriorityBodyDescriptionMax).optional().describe("The priority description."),
|
|
2503
2367
|
index: zod.number().min(updatePriorityBodyIndexMin),
|
|
2504
2368
|
default: zod.boolean(),
|
|
2505
2369
|
color: zod.string().regex(updatePriorityBodyColorRegExp).optional().describe("A color in hexadecimal format")
|
|
2506
|
-
});
|
|
2370
|
+
}).strict();
|
|
2507
2371
|
zod.object({
|
|
2508
2372
|
errorCode: zod.number(),
|
|
2509
2373
|
message: zod.string()
|
|
@@ -2578,7 +2442,7 @@ zod.object({
|
|
|
2578
2442
|
type: zod.enum(["TEST_CASE", "TEST_PLAN", "TEST_CYCLE", "TEST_EXECUTION"]).describe("Determines which type of entity the status belongs to."),
|
|
2579
2443
|
description: zod.string().min(1).max(createStatusBodyDescriptionMax).optional().describe("The status description."),
|
|
2580
2444
|
color: zod.string().regex(createStatusBodyColorRegExp).optional().describe("A color in hexadecimal format")
|
|
2581
|
-
});
|
|
2445
|
+
}).strict();
|
|
2582
2446
|
zod.object({
|
|
2583
2447
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
2584
2448
|
self: zod.string().optional()
|
|
@@ -2589,7 +2453,7 @@ zod.object({
|
|
|
2589
2453
|
}).strict();
|
|
2590
2454
|
zod.object({
|
|
2591
2455
|
statusId: zod.number().min(1)
|
|
2592
|
-
});
|
|
2456
|
+
}).strict();
|
|
2593
2457
|
const getStatus200ResponseOneNameMax = 255;
|
|
2594
2458
|
const getStatus200ResponseOneNameRegExp = /^(?!\\s*$).+/;
|
|
2595
2459
|
const getStatus200ResponseOneIndexMin = 0;
|
|
@@ -2620,7 +2484,7 @@ zod.object({
|
|
|
2620
2484
|
}).strict();
|
|
2621
2485
|
zod.object({
|
|
2622
2486
|
statusId: zod.number().min(1)
|
|
2623
|
-
});
|
|
2487
|
+
}).strict();
|
|
2624
2488
|
const updateStatusBodyNameMax = 255;
|
|
2625
2489
|
const updateStatusBodyDescriptionMax = 255;
|
|
2626
2490
|
const updateStatusBodyIndexMin = 0;
|
|
@@ -2628,19 +2492,16 @@ const updateStatusBodyColorRegExp = /#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})/;
|
|
|
2628
2492
|
zod.object({
|
|
2629
2493
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
2630
2494
|
project: zod.object({
|
|
2631
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2635
|
-
})
|
|
2636
|
-
).describe("ID and link relative to Zephyr project."),
|
|
2495
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
2496
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2497
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
2637
2498
|
name: zod.string().min(1).max(updateStatusBodyNameMax).describe("The status name."),
|
|
2638
2499
|
description: zod.string().min(1).max(updateStatusBodyDescriptionMax).optional().describe("The status description."),
|
|
2639
2500
|
index: zod.number().min(updateStatusBodyIndexMin),
|
|
2640
2501
|
archived: zod.boolean(),
|
|
2641
2502
|
default: zod.boolean(),
|
|
2642
2503
|
color: zod.string().regex(updateStatusBodyColorRegExp).optional().describe("A color in hexadecimal format")
|
|
2643
|
-
});
|
|
2504
|
+
}).strict();
|
|
2644
2505
|
zod.object({
|
|
2645
2506
|
errorCode: zod.number(),
|
|
2646
2507
|
message: zod.string()
|
|
@@ -2708,7 +2569,7 @@ zod.object({
|
|
|
2708
2569
|
projectKey: zod.string().regex(createEnvironmentBodyProjectKeyRegExp).describe("Jira project key."),
|
|
2709
2570
|
name: zod.string().min(1).max(createEnvironmentBodyNameMax).describe("The environment name."),
|
|
2710
2571
|
description: zod.string().min(1).max(createEnvironmentBodyDescriptionMax).optional().describe("The environment description.")
|
|
2711
|
-
});
|
|
2572
|
+
}).strict();
|
|
2712
2573
|
zod.object({
|
|
2713
2574
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
2714
2575
|
self: zod.string().optional()
|
|
@@ -2737,7 +2598,7 @@ zod.object({
|
|
|
2737
2598
|
}).strict();
|
|
2738
2599
|
zod.object({
|
|
2739
2600
|
environmentId: zod.number().min(1)
|
|
2740
|
-
});
|
|
2601
|
+
}).strict();
|
|
2741
2602
|
const getEnvironment200ResponseOneNameMax = 255;
|
|
2742
2603
|
const getEnvironment200ResponseOneNameRegExp = /^(?!\\s*$).+/;
|
|
2743
2604
|
const getEnvironment200ResponseOneIndexMin = 0;
|
|
@@ -2763,23 +2624,20 @@ zod.object({
|
|
|
2763
2624
|
}).strict();
|
|
2764
2625
|
zod.object({
|
|
2765
2626
|
environmentId: zod.number().min(1)
|
|
2766
|
-
});
|
|
2627
|
+
}).strict();
|
|
2767
2628
|
const updateEnvironmentBodyNameMax = 255;
|
|
2768
2629
|
const updateEnvironmentBodyDescriptionMax = 255;
|
|
2769
2630
|
const updateEnvironmentBodyIndexMin = 0;
|
|
2770
2631
|
zod.object({
|
|
2771
2632
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
2772
2633
|
project: zod.object({
|
|
2773
|
-
id: zod.number().min(1).describe("The ID of the entity")
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2777
|
-
})
|
|
2778
|
-
).describe("ID and link relative to Zephyr project."),
|
|
2634
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
2635
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2636
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
2779
2637
|
name: zod.string().min(1).max(updateEnvironmentBodyNameMax).describe("The environment name."),
|
|
2780
2638
|
description: zod.string().min(1).max(updateEnvironmentBodyDescriptionMax).optional().describe("The environment description."),
|
|
2781
2639
|
index: zod.number().min(updateEnvironmentBodyIndexMin)
|
|
2782
|
-
});
|
|
2640
|
+
}).strict();
|
|
2783
2641
|
zod.union([
|
|
2784
2642
|
zod.object({
|
|
2785
2643
|
errorCode: zod.number(),
|
|
@@ -2808,7 +2666,7 @@ zod.object({
|
|
|
2808
2666
|
}).strict();
|
|
2809
2667
|
zod.object({
|
|
2810
2668
|
linkId: zod.number().min(1)
|
|
2811
|
-
});
|
|
2669
|
+
}).strict();
|
|
2812
2670
|
zod.object({
|
|
2813
2671
|
errorCode: zod.number(),
|
|
2814
2672
|
message: zod.string()
|
|
@@ -2816,7 +2674,7 @@ zod.object({
|
|
|
2816
2674
|
const getIssueLinkTestCasesPathIssueKeyRegExp = /.+-[0-9]+/;
|
|
2817
2675
|
const GetIssueLinkTestCasesParams = zod.object({
|
|
2818
2676
|
issueKey: zod.string().regex(getIssueLinkTestCasesPathIssueKeyRegExp).describe("The key of the Jira issue")
|
|
2819
|
-
});
|
|
2677
|
+
}).strict();
|
|
2820
2678
|
const GetIssueLinkTestCases200ResponseItem = zod.object({
|
|
2821
2679
|
key: zod.string().optional(),
|
|
2822
2680
|
version: zod.number().optional(),
|
|
@@ -2832,7 +2690,7 @@ zod.object({
|
|
|
2832
2690
|
const getIssueLinkTestCyclesPathIssueKeyRegExp = /.+-[0-9]+/;
|
|
2833
2691
|
const GetIssueLinkTestCyclesParams = zod.object({
|
|
2834
2692
|
issueKey: zod.string().regex(getIssueLinkTestCyclesPathIssueKeyRegExp).describe("The key of the Jira issue")
|
|
2835
|
-
});
|
|
2693
|
+
}).strict();
|
|
2836
2694
|
const GetIssueLinkTestCycles200ResponseItem = zod.object({
|
|
2837
2695
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
2838
2696
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
@@ -2847,7 +2705,7 @@ zod.object({
|
|
|
2847
2705
|
const getIssueLinkTestPlansPathIssueKeyRegExp = /.+-[0-9]+/;
|
|
2848
2706
|
zod.object({
|
|
2849
2707
|
issueKey: zod.string().regex(getIssueLinkTestPlansPathIssueKeyRegExp).describe("The key of the Jira issue")
|
|
2850
|
-
});
|
|
2708
|
+
}).strict();
|
|
2851
2709
|
const GetIssueLinkTestPlans200ResponseItem = zod.object({
|
|
2852
2710
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
2853
2711
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
@@ -2862,7 +2720,7 @@ zod.object({
|
|
|
2862
2720
|
const getIssueLinkTestExecutionsPathIssueKeyRegExp = /.+-[0-9]+/;
|
|
2863
2721
|
const GetIssueLinkTestExecutionsParams = zod.object({
|
|
2864
2722
|
issueKey: zod.string().regex(getIssueLinkTestExecutionsPathIssueKeyRegExp).describe("The key of the Jira issue")
|
|
2865
|
-
});
|
|
2723
|
+
}).strict();
|
|
2866
2724
|
const GetIssueLinkTestExecutions200ResponseItem = zod.object({
|
|
2867
2725
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
2868
2726
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
@@ -2899,10 +2757,10 @@ zod.object({
|
|
|
2899
2757
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
2900
2758
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
2901
2759
|
)
|
|
2902
|
-
}).optional().describe(
|
|
2760
|
+
}).strict().optional().describe(
|
|
2903
2761
|
"Pass this object as a JSON in your form-data alongside the file. Make sure you set the type of this object as `application/json` otherwise the object will be ignored."
|
|
2904
2762
|
)
|
|
2905
|
-
});
|
|
2763
|
+
}).strict();
|
|
2906
2764
|
const createCustomExecutions200ResponseTestCycleKeyRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
2907
2765
|
zod.object({
|
|
2908
2766
|
testCycle: zod.object({
|
|
@@ -2940,10 +2798,10 @@ zod.object({
|
|
|
2940
2798
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
2941
2799
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
2942
2800
|
)
|
|
2943
|
-
}).optional().describe(
|
|
2801
|
+
}).strict().optional().describe(
|
|
2944
2802
|
"Pass this object as a JSON in your form-data alongside the file. Make sure you set the type of this object as `application/json` otherwise the object will be ignored."
|
|
2945
2803
|
)
|
|
2946
|
-
});
|
|
2804
|
+
}).strict();
|
|
2947
2805
|
const createCucumberExecutions200ResponseTestCycleKeyRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
2948
2806
|
zod.object({
|
|
2949
2807
|
testCycle: zod.object({
|
|
@@ -2981,10 +2839,10 @@ zod.object({
|
|
|
2981
2839
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
2982
2840
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
2983
2841
|
)
|
|
2984
|
-
}).optional().describe(
|
|
2842
|
+
}).strict().optional().describe(
|
|
2985
2843
|
"Pass this object as a JSON in your form-data alongside the file. Make sure you set the type of this object as `application/json` otherwise the object will be ignored."
|
|
2986
2844
|
)
|
|
2987
|
-
});
|
|
2845
|
+
}).strict();
|
|
2988
2846
|
const createJUnitExecutions200ResponseTestCycleKeyRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
2989
2847
|
zod.object({
|
|
2990
2848
|
testCycle: zod.object({
|
|
@@ -3085,6 +2943,8 @@ export {
|
|
|
3085
2943
|
ListTestExecutionLinksParams,
|
|
3086
2944
|
ListTestExecutionsNextgen200Response,
|
|
3087
2945
|
ListTestExecutionsNextgenQueryParams,
|
|
2946
|
+
PutTestExecutionTestStepsBody,
|
|
2947
|
+
PutTestExecutionTestStepsParams,
|
|
3088
2948
|
UpdateTestCaseBody,
|
|
3089
2949
|
UpdateTestCaseParams,
|
|
3090
2950
|
UpdateTestCycleBody,
|
|
@@ -3192,7 +3052,7 @@ export {
|
|
|
3192
3052
|
getTestCaseTestScriptPathTestCaseKeyRegExp,
|
|
3193
3053
|
getTestCaseTestSteps200ResponseOneStartAtMin,
|
|
3194
3054
|
getTestCaseTestSteps200ResponseOneTotalMin,
|
|
3195
|
-
|
|
3055
|
+
getTestCaseTestSteps200ResponseTwoValuesItemTestCaseOneTwoTestCaseKeyRegExp,
|
|
3196
3056
|
getTestCaseTestStepsPathTestCaseKeyRegExp,
|
|
3197
3057
|
getTestCaseTestStepsQueryMaxResultsDefault,
|
|
3198
3058
|
getTestCaseTestStepsQueryStartAtDefault,
|
|
@@ -3393,6 +3253,7 @@ export {
|
|
|
3393
3253
|
updateTestCaseBodyOwnerAccountIdRegExp,
|
|
3394
3254
|
updateTestCasePathTestCaseKeyRegExp,
|
|
3395
3255
|
updateTestCycleBodyKeyRegExp,
|
|
3256
|
+
updateTestCycleBodyNameMax,
|
|
3396
3257
|
updateTestCycleBodyNameRegExp,
|
|
3397
3258
|
updateTestCycleBodyOwnerAccountIdRegExp,
|
|
3398
3259
|
updateTestCyclePathTestCycleIdOrKeyRegExp,
|