@smartbear/mcp 0.32.0 → 0.33.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/common/client-registry.js +19 -7
- package/dist/package.json.js +1 -1
- package/dist/swagger/client/functional-testing-api.js +25 -0
- package/dist/swagger/client/functional-testing-tools.js +12 -2
- package/dist/swagger/client/functional-testing-types.js +29 -0
- package/dist/swagger/client.js +7 -4
- package/dist/zephyr/client.js +3 -1
- package/dist/zephyr/common/rest-api-schemas.js +2876 -522
- package/dist/zephyr/common/utils.js +58 -14
- package/dist/zephyr/tool/test-case/update-test-case.js +37 -21
- package/dist/zephyr/tool/test-cycle/update-test-cycle.js +41 -25
- package/dist/zephyr/tool/test-plan/get-test-plans.js +65 -0
- package/package.json +1 -1
|
@@ -128,14 +128,63 @@ zod.object({
|
|
|
128
128
|
}).strict()
|
|
129
129
|
).optional()
|
|
130
130
|
}).strict();
|
|
131
|
+
zod.union([
|
|
132
|
+
zod.object({
|
|
133
|
+
errorCode: zod.number(),
|
|
134
|
+
message: zod.string()
|
|
135
|
+
}).strict().describe(
|
|
136
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
137
|
+
),
|
|
138
|
+
zod.object({
|
|
139
|
+
errorCode: zod.number(),
|
|
140
|
+
message: zod.string()
|
|
141
|
+
}).strict().describe("A numeric query parameter was sent with a non-numeric value.")
|
|
142
|
+
]);
|
|
143
|
+
zod.union([
|
|
144
|
+
zod.object({
|
|
145
|
+
error: zod.string()
|
|
146
|
+
}).strict().describe("The Authorization header is missing."),
|
|
147
|
+
zod.object({
|
|
148
|
+
error: zod.string()
|
|
149
|
+
}).strict().describe(
|
|
150
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
151
|
+
),
|
|
152
|
+
zod.object({
|
|
153
|
+
error: zod.string()
|
|
154
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
155
|
+
zod.object({
|
|
156
|
+
error: zod.string()
|
|
157
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
158
|
+
zod.object({
|
|
159
|
+
error: zod.string()
|
|
160
|
+
}).strict().describe(
|
|
161
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
162
|
+
)
|
|
163
|
+
]);
|
|
164
|
+
zod.union([
|
|
165
|
+
zod.object({
|
|
166
|
+
errorCode: zod.number(),
|
|
167
|
+
message: zod.string()
|
|
168
|
+
}).strict().describe(
|
|
169
|
+
"The projectKey filter refers to a project that does not exist or is deactivated."
|
|
170
|
+
),
|
|
171
|
+
zod.object({
|
|
172
|
+
errorCode: zod.number(),
|
|
173
|
+
message: zod.string()
|
|
174
|
+
}).strict().describe(
|
|
175
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
176
|
+
),
|
|
177
|
+
zod.object({
|
|
178
|
+
errorCode: zod.number(),
|
|
179
|
+
message: zod.string()
|
|
180
|
+
}).strict().describe(
|
|
181
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
182
|
+
)
|
|
183
|
+
]);
|
|
131
184
|
zod.object({
|
|
132
185
|
errorCode: zod.number(),
|
|
133
186
|
message: zod.string()
|
|
134
|
-
}).strict();
|
|
135
|
-
zod.object({
|
|
136
|
-
errorCode: zod.number(),
|
|
137
|
-
message: zod.string()
|
|
138
|
-
}).strict();
|
|
187
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
139
188
|
zod.object({
|
|
140
189
|
errorCode: zod.number(),
|
|
141
190
|
message: zod.string()
|
|
@@ -144,7 +193,6 @@ const createTestCaseBodyProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
|
144
193
|
const createTestCaseBodyNameMax = 255;
|
|
145
194
|
const createTestCaseBodyNameRegExp = /^(?!\\s*$).+/;
|
|
146
195
|
const createTestCaseBodyEstimatedTimeMin = 0;
|
|
147
|
-
const createTestCaseBodyComponentIdMin = 1;
|
|
148
196
|
const createTestCaseBodyPriorityNameMax = 255;
|
|
149
197
|
const createTestCaseBodyStatusNameMax = 255;
|
|
150
198
|
const createTestCaseBodyOwnerIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
@@ -155,7 +203,7 @@ const CreateTestCaseBody = zod.object({
|
|
|
155
203
|
objective: zod.string().nullish().describe("A description of the objective."),
|
|
156
204
|
precondition: zod.string().nullish().describe("Any conditions that need to be met."),
|
|
157
205
|
estimatedTime: zod.number().min(createTestCaseBodyEstimatedTimeMin).optional().describe("Estimated duration in milliseconds."),
|
|
158
|
-
componentId: zod.number().min(
|
|
206
|
+
componentId: zod.number().min(1).optional().describe("ID of a component from Jira."),
|
|
159
207
|
priorityName: zod.string().min(1).max(createTestCaseBodyPriorityNameMax).optional().describe("The priority name."),
|
|
160
208
|
statusName: zod.string().min(1).max(createTestCaseBodyStatusNameMax).optional().describe("The status name."),
|
|
161
209
|
folderId: zod.number().min(1).optional().describe("ID of a folder to place the entity within."),
|
|
@@ -170,14 +218,163 @@ const CreateTestCase201Response = zod.object({
|
|
|
170
218
|
self: zod.string().optional(),
|
|
171
219
|
key: zod.string().optional()
|
|
172
220
|
}).strict();
|
|
221
|
+
zod.union([
|
|
222
|
+
zod.object({
|
|
223
|
+
errorCode: zod.number(),
|
|
224
|
+
message: zod.string()
|
|
225
|
+
}).strict().describe(
|
|
226
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
227
|
+
),
|
|
228
|
+
zod.object({
|
|
229
|
+
errorCode: zod.number(),
|
|
230
|
+
message: zod.string()
|
|
231
|
+
}).strict().describe(
|
|
232
|
+
"A request body field has the wrong type or format (for example a non-ISO-8601 date)."
|
|
233
|
+
),
|
|
234
|
+
zod.object({
|
|
235
|
+
errorCode: zod.number(),
|
|
236
|
+
message: zod.string()
|
|
237
|
+
}).strict().describe("The request body is not valid JSON."),
|
|
238
|
+
zod.object({
|
|
239
|
+
errorCode: zod.number(),
|
|
240
|
+
message: zod.string()
|
|
241
|
+
}).strict().describe(
|
|
242
|
+
"The folderId in the body refers to a folder that does not exist."
|
|
243
|
+
),
|
|
244
|
+
zod.object({
|
|
245
|
+
errorCode: zod.number(),
|
|
246
|
+
message: zod.string()
|
|
247
|
+
}).strict().describe(
|
|
248
|
+
"The folderId refers to a folder that is not a TEST_CYCLE folder."
|
|
249
|
+
),
|
|
250
|
+
zod.object({
|
|
251
|
+
errorCode: zod.number(),
|
|
252
|
+
message: zod.string()
|
|
253
|
+
}).strict().describe(
|
|
254
|
+
"The folderId refers to a folder that belongs to a different project than the one being targeted."
|
|
255
|
+
),
|
|
256
|
+
zod.object({
|
|
257
|
+
errorCode: zod.number(),
|
|
258
|
+
message: zod.string()
|
|
259
|
+
}).strict().describe("The labels array contains more than the maximum of 50 items."),
|
|
260
|
+
zod.object({
|
|
261
|
+
errorCode: zod.number(),
|
|
262
|
+
message: zod.string()
|
|
263
|
+
}).strict().describe("The labels array contains an empty or blank label."),
|
|
264
|
+
zod.object({
|
|
265
|
+
errorCode: zod.number(),
|
|
266
|
+
message: zod.string()
|
|
267
|
+
}).strict().describe(
|
|
268
|
+
"A label in the labels array contains spaces, which is not allowed."
|
|
269
|
+
),
|
|
270
|
+
zod.object({
|
|
271
|
+
errorCode: zod.number(),
|
|
272
|
+
message: zod.string()
|
|
273
|
+
}).strict().describe(
|
|
274
|
+
"A custom field name in the body does not exist for the project."
|
|
275
|
+
),
|
|
276
|
+
zod.object({
|
|
277
|
+
errorCode: zod.number(),
|
|
278
|
+
message: zod.string()
|
|
279
|
+
}).strict().describe(
|
|
280
|
+
'A custom field value has the wrong type for the field definition. The message names the field and the expected type, e.g. "requires a number value", "requires a string value", "requires a boolean value", "requires a string which is in the format yyyy-MM-dd", or "requires a list".\n'
|
|
281
|
+
),
|
|
282
|
+
zod.object({
|
|
283
|
+
errorCode: zod.number(),
|
|
284
|
+
message: zod.string()
|
|
285
|
+
}).strict().describe(
|
|
286
|
+
"A choice custom field value references an option name that does not exist."
|
|
287
|
+
),
|
|
288
|
+
zod.object({
|
|
289
|
+
errorCode: zod.number(),
|
|
290
|
+
message: zod.string()
|
|
291
|
+
}).strict().describe(
|
|
292
|
+
"The project has required custom fields but the request omitted them."
|
|
293
|
+
),
|
|
294
|
+
zod.object({
|
|
295
|
+
errorCode: zod.number(),
|
|
296
|
+
message: zod.string()
|
|
297
|
+
}).strict().describe(
|
|
298
|
+
"Custom fields were provided but not all required ones are present."
|
|
299
|
+
),
|
|
300
|
+
zod.object({
|
|
301
|
+
errorCode: zod.number(),
|
|
302
|
+
message: zod.string()
|
|
303
|
+
}).strict().describe(
|
|
304
|
+
"A required custom field was provided with a null or empty value."
|
|
305
|
+
),
|
|
306
|
+
zod.object({
|
|
307
|
+
errorCode: zod.number(),
|
|
308
|
+
message: zod.string()
|
|
309
|
+
}).strict().describe(
|
|
310
|
+
"A required multi-choice custom field was set to an empty collection."
|
|
311
|
+
)
|
|
312
|
+
]);
|
|
313
|
+
zod.union([
|
|
314
|
+
zod.object({
|
|
315
|
+
error: zod.string()
|
|
316
|
+
}).strict().describe("The Authorization header is missing."),
|
|
317
|
+
zod.object({
|
|
318
|
+
error: zod.string()
|
|
319
|
+
}).strict().describe(
|
|
320
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
321
|
+
),
|
|
322
|
+
zod.object({
|
|
323
|
+
error: zod.string()
|
|
324
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
325
|
+
zod.object({
|
|
326
|
+
error: zod.string()
|
|
327
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
328
|
+
zod.object({
|
|
329
|
+
error: zod.string()
|
|
330
|
+
}).strict().describe(
|
|
331
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
332
|
+
)
|
|
333
|
+
]);
|
|
334
|
+
zod.union([
|
|
335
|
+
zod.object({
|
|
336
|
+
errorCode: zod.number(),
|
|
337
|
+
message: zod.string()
|
|
338
|
+
}).strict().describe(
|
|
339
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
340
|
+
),
|
|
341
|
+
zod.object({
|
|
342
|
+
errorCode: zod.number(),
|
|
343
|
+
message: zod.string()
|
|
344
|
+
}).strict().describe("Referenced custom fields do not belong to the current client.")
|
|
345
|
+
]);
|
|
346
|
+
zod.union([
|
|
347
|
+
zod.object({
|
|
348
|
+
errorCode: zod.number(),
|
|
349
|
+
message: zod.string()
|
|
350
|
+
}).strict().describe(
|
|
351
|
+
"The projectKey filter refers to a project that does not exist or is deactivated."
|
|
352
|
+
),
|
|
353
|
+
zod.object({
|
|
354
|
+
errorCode: zod.number(),
|
|
355
|
+
message: zod.string()
|
|
356
|
+
}).strict().describe("The statusName does not exist for the project."),
|
|
357
|
+
zod.object({
|
|
358
|
+
errorCode: zod.number(),
|
|
359
|
+
message: zod.string()
|
|
360
|
+
}).strict().describe("The priorityName does not exist for the project."),
|
|
361
|
+
zod.object({
|
|
362
|
+
errorCode: zod.number(),
|
|
363
|
+
message: zod.string()
|
|
364
|
+
}).strict().describe(
|
|
365
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
366
|
+
),
|
|
367
|
+
zod.object({
|
|
368
|
+
errorCode: zod.number(),
|
|
369
|
+
message: zod.string()
|
|
370
|
+
}).strict().describe(
|
|
371
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
372
|
+
)
|
|
373
|
+
]);
|
|
173
374
|
zod.object({
|
|
174
375
|
errorCode: zod.number(),
|
|
175
376
|
message: zod.string()
|
|
176
|
-
}).strict();
|
|
177
|
-
zod.object({
|
|
178
|
-
errorCode: zod.number(),
|
|
179
|
-
message: zod.string()
|
|
180
|
-
}).strict();
|
|
377
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
181
378
|
zod.object({
|
|
182
379
|
errorCode: zod.number(),
|
|
183
380
|
message: zod.string()
|
|
@@ -310,44 +507,93 @@ const ListTestCasesCursorPaginated200Response = zod.object({
|
|
|
310
507
|
}).strict()
|
|
311
508
|
).optional()
|
|
312
509
|
}).strict();
|
|
313
|
-
zod.
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
message: zod.string()
|
|
320
|
-
}).strict();
|
|
321
|
-
zod.object({
|
|
322
|
-
errorCode: zod.number(),
|
|
323
|
-
message: zod.string()
|
|
324
|
-
}).strict();
|
|
325
|
-
const getTestCasePathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
326
|
-
const GetTestCaseParams = zod.object({
|
|
327
|
-
testCaseKey: zod.string().regex(getTestCasePathTestCaseKeyRegExp).describe(
|
|
328
|
-
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
329
|
-
)
|
|
330
|
-
}).strict();
|
|
331
|
-
const getTestCase200ResponseKeyRegExp = /.+-T[0-9]+/;
|
|
332
|
-
const getTestCase200ResponseNameMax = 255;
|
|
333
|
-
const getTestCase200ResponseNameRegExp = /^(?!\\s*$).+/;
|
|
334
|
-
const getTestCase200ResponseEstimatedTimeMin = 0;
|
|
335
|
-
const getTestCase200ResponseLabelsMax = 50;
|
|
336
|
-
const getTestCase200ResponseOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
337
|
-
const GetTestCase200Response = zod.object({
|
|
338
|
-
id: zod.number().min(1).describe("The ID of the entity"),
|
|
339
|
-
key: zod.string().regex(getTestCase200ResponseKeyRegExp).describe("The test case key"),
|
|
340
|
-
name: zod.string().min(1).max(getTestCase200ResponseNameMax).regex(getTestCase200ResponseNameRegExp),
|
|
341
|
-
project: zod.object({
|
|
342
|
-
id: zod.number().min(1).describe("The ID of the entity"),
|
|
343
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
344
|
-
}).strict().describe("ID and link relative to Zephyr project."),
|
|
345
|
-
createdOn: zod.string().datetime({}).optional().describe(
|
|
346
|
-
"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"
|
|
510
|
+
zod.union([
|
|
511
|
+
zod.object({
|
|
512
|
+
errorCode: zod.number(),
|
|
513
|
+
message: zod.string()
|
|
514
|
+
}).strict().describe(
|
|
515
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
347
516
|
),
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
517
|
+
zod.object({
|
|
518
|
+
errorCode: zod.number(),
|
|
519
|
+
message: zod.string()
|
|
520
|
+
}).strict().describe("A numeric query parameter was sent with a non-numeric value.")
|
|
521
|
+
]);
|
|
522
|
+
zod.union([
|
|
523
|
+
zod.object({
|
|
524
|
+
error: zod.string()
|
|
525
|
+
}).strict().describe("The Authorization header is missing."),
|
|
526
|
+
zod.object({
|
|
527
|
+
error: zod.string()
|
|
528
|
+
}).strict().describe(
|
|
529
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
530
|
+
),
|
|
531
|
+
zod.object({
|
|
532
|
+
error: zod.string()
|
|
533
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
534
|
+
zod.object({
|
|
535
|
+
error: zod.string()
|
|
536
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
537
|
+
zod.object({
|
|
538
|
+
error: zod.string()
|
|
539
|
+
}).strict().describe(
|
|
540
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
541
|
+
)
|
|
542
|
+
]);
|
|
543
|
+
zod.union([
|
|
544
|
+
zod.object({
|
|
545
|
+
errorCode: zod.number(),
|
|
546
|
+
message: zod.string()
|
|
547
|
+
}).strict().describe(
|
|
548
|
+
"The projectKey filter refers to a project that does not exist or is deactivated."
|
|
549
|
+
),
|
|
550
|
+
zod.object({
|
|
551
|
+
errorCode: zod.number(),
|
|
552
|
+
message: zod.string()
|
|
553
|
+
}).strict().describe(
|
|
554
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
555
|
+
),
|
|
556
|
+
zod.object({
|
|
557
|
+
errorCode: zod.number(),
|
|
558
|
+
message: zod.string()
|
|
559
|
+
}).strict().describe(
|
|
560
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
561
|
+
)
|
|
562
|
+
]);
|
|
563
|
+
zod.object({
|
|
564
|
+
errorCode: zod.number(),
|
|
565
|
+
message: zod.string()
|
|
566
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
567
|
+
zod.object({
|
|
568
|
+
errorCode: zod.number(),
|
|
569
|
+
message: zod.string()
|
|
570
|
+
}).strict();
|
|
571
|
+
const getTestCasePathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
572
|
+
const GetTestCaseParams = zod.object({
|
|
573
|
+
testCaseKey: zod.string().regex(getTestCasePathTestCaseKeyRegExp).describe(
|
|
574
|
+
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
575
|
+
)
|
|
576
|
+
}).strict();
|
|
577
|
+
const getTestCase200ResponseKeyRegExp = /.+-T[0-9]+/;
|
|
578
|
+
const getTestCase200ResponseNameMax = 255;
|
|
579
|
+
const getTestCase200ResponseNameRegExp = /^(?!\\s*$).+/;
|
|
580
|
+
const getTestCase200ResponseEstimatedTimeMin = 0;
|
|
581
|
+
const getTestCase200ResponseLabelsMax = 50;
|
|
582
|
+
const getTestCase200ResponseOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
583
|
+
const GetTestCase200Response = zod.object({
|
|
584
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
585
|
+
key: zod.string().regex(getTestCase200ResponseKeyRegExp).describe("The test case key"),
|
|
586
|
+
name: zod.string().min(1).max(getTestCase200ResponseNameMax).regex(getTestCase200ResponseNameRegExp),
|
|
587
|
+
project: zod.object({
|
|
588
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
589
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
590
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
591
|
+
createdOn: zod.string().datetime({}).optional().describe(
|
|
592
|
+
"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"
|
|
593
|
+
),
|
|
594
|
+
objective: zod.string().nullish().describe("A description of the objective."),
|
|
595
|
+
precondition: zod.string().nullish().describe("Any conditions that need to be met."),
|
|
596
|
+
estimatedTime: zod.number().min(getTestCase200ResponseEstimatedTimeMin).nullish().describe("Estimated duration in milliseconds."),
|
|
351
597
|
labels: zod.array(zod.string()).max(getTestCase200ResponseLabelsMax).optional().describe("Array of labels associated to this entity."),
|
|
352
598
|
component: zod.object({
|
|
353
599
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
@@ -410,15 +656,52 @@ const GetTestCase200Response = zod.object({
|
|
|
410
656
|
zod.object({
|
|
411
657
|
errorCode: zod.number(),
|
|
412
658
|
message: zod.string()
|
|
413
|
-
}).strict()
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
659
|
+
}).strict().describe(
|
|
660
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
661
|
+
);
|
|
662
|
+
zod.union([
|
|
663
|
+
zod.object({
|
|
664
|
+
error: zod.string()
|
|
665
|
+
}).strict().describe("The Authorization header is missing."),
|
|
666
|
+
zod.object({
|
|
667
|
+
error: zod.string()
|
|
668
|
+
}).strict().describe(
|
|
669
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
670
|
+
),
|
|
671
|
+
zod.object({
|
|
672
|
+
error: zod.string()
|
|
673
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
674
|
+
zod.object({
|
|
675
|
+
error: zod.string()
|
|
676
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
677
|
+
zod.object({
|
|
678
|
+
error: zod.string()
|
|
679
|
+
}).strict().describe(
|
|
680
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
681
|
+
)
|
|
682
|
+
]);
|
|
683
|
+
zod.union([
|
|
684
|
+
zod.object({
|
|
685
|
+
errorCode: zod.number(),
|
|
686
|
+
message: zod.string()
|
|
687
|
+
}).strict().describe("No test case exists for the given testCaseKey."),
|
|
688
|
+
zod.object({
|
|
689
|
+
errorCode: zod.number(),
|
|
690
|
+
message: zod.string()
|
|
691
|
+
}).strict().describe(
|
|
692
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
693
|
+
),
|
|
694
|
+
zod.object({
|
|
695
|
+
errorCode: zod.number(),
|
|
696
|
+
message: zod.string()
|
|
697
|
+
}).strict().describe(
|
|
698
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
699
|
+
)
|
|
700
|
+
]);
|
|
418
701
|
zod.object({
|
|
419
702
|
errorCode: zod.number(),
|
|
420
703
|
message: zod.string()
|
|
421
|
-
}).strict();
|
|
704
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
422
705
|
zod.object({
|
|
423
706
|
errorCode: zod.number(),
|
|
424
707
|
message: zod.string()
|
|
@@ -447,7 +730,10 @@ const UpdateTestCaseBody = zod.object({
|
|
|
447
730
|
precondition: zod.string().nullish().describe("Any conditions that need to be met."),
|
|
448
731
|
estimatedTime: zod.number().min(updateTestCaseBodyEstimatedTimeMin).nullish().describe("Estimated duration in milliseconds."),
|
|
449
732
|
labels: zod.array(zod.string()).max(updateTestCaseBodyLabelsMax).optional().describe("Array of labels associated to this entity."),
|
|
450
|
-
component: zod.
|
|
733
|
+
component: zod.object({
|
|
734
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
735
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
736
|
+
}).strict().nullish().describe("ID and link to the Jira component resource."),
|
|
451
737
|
priority: zod.object({
|
|
452
738
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
453
739
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
@@ -456,136 +742,466 @@ const UpdateTestCaseBody = zod.object({
|
|
|
456
742
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
457
743
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
458
744
|
}).strict().describe("ID and link to the status resource."),
|
|
459
|
-
folder: zod.
|
|
460
|
-
"The ID of the
|
|
461
|
-
|
|
462
|
-
|
|
745
|
+
folder: zod.object({
|
|
746
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
747
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
748
|
+
}).strict().nullish().describe("ID and link to the folder resource."),
|
|
749
|
+
owner: zod.object({
|
|
750
|
+
accountId: zod.string().regex(updateTestCaseBodyOwnerAccountIdRegExp).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
751
|
+
self: zod.string().url().optional().describe(
|
|
752
|
+
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
753
|
+
)
|
|
754
|
+
}).strict().nullish(),
|
|
463
755
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
464
756
|
"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"
|
|
465
757
|
)
|
|
466
758
|
}).strict();
|
|
467
|
-
zod.
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
zod.
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
)
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
zod.
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
).
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
}).strict().describe("
|
|
518
|
-
zod.object({
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}).strict()
|
|
522
|
-
zod.object({
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
}).strict()
|
|
526
|
-
zod.object({
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
}).strict()
|
|
530
|
-
zod.object({
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}).strict()
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}).strict()
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
zod.
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
zod.
|
|
759
|
+
zod.union([
|
|
760
|
+
zod.object({
|
|
761
|
+
errorCode: zod.number(),
|
|
762
|
+
message: zod.string()
|
|
763
|
+
}).strict().describe(
|
|
764
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
765
|
+
),
|
|
766
|
+
zod.object({
|
|
767
|
+
errorCode: zod.number(),
|
|
768
|
+
message: zod.string()
|
|
769
|
+
}).strict().describe(
|
|
770
|
+
"A request body field has the wrong type or format (for example a non-ISO-8601 date)."
|
|
771
|
+
),
|
|
772
|
+
zod.object({
|
|
773
|
+
errorCode: zod.number(),
|
|
774
|
+
message: zod.string()
|
|
775
|
+
}).strict().describe("The request body is not valid JSON."),
|
|
776
|
+
zod.object({
|
|
777
|
+
errorCode: zod.number(),
|
|
778
|
+
message: zod.string()
|
|
779
|
+
}).strict().describe(
|
|
780
|
+
"The key in the request body does not match the testCaseKey in the path."
|
|
781
|
+
),
|
|
782
|
+
zod.object({
|
|
783
|
+
errorCode: zod.number(),
|
|
784
|
+
message: zod.string()
|
|
785
|
+
}).strict().describe(
|
|
786
|
+
"The project id in the request body does not match the test case's actual project."
|
|
787
|
+
),
|
|
788
|
+
zod.object({
|
|
789
|
+
errorCode: zod.number(),
|
|
790
|
+
message: zod.string()
|
|
791
|
+
}).strict().describe(
|
|
792
|
+
"The folderId in the body refers to a folder that does not exist."
|
|
793
|
+
),
|
|
794
|
+
zod.object({
|
|
795
|
+
errorCode: zod.number(),
|
|
796
|
+
message: zod.string()
|
|
797
|
+
}).strict().describe(
|
|
798
|
+
"The folderId refers to a folder that is not a TEST_CYCLE folder."
|
|
799
|
+
),
|
|
800
|
+
zod.object({
|
|
801
|
+
errorCode: zod.number(),
|
|
802
|
+
message: zod.string()
|
|
803
|
+
}).strict().describe(
|
|
804
|
+
"The folderId refers to a folder that belongs to a different project than the one being targeted."
|
|
805
|
+
),
|
|
806
|
+
zod.object({
|
|
807
|
+
errorCode: zod.number(),
|
|
808
|
+
message: zod.string()
|
|
809
|
+
}).strict().describe("The status id does not exist for the project."),
|
|
810
|
+
zod.object({
|
|
811
|
+
errorCode: zod.number(),
|
|
812
|
+
message: zod.string()
|
|
813
|
+
}).strict().describe("The priority id does not exist for the project."),
|
|
814
|
+
zod.object({
|
|
815
|
+
errorCode: zod.number(),
|
|
816
|
+
message: zod.string()
|
|
817
|
+
}).strict().describe("The labels array contains more than the maximum of 50 items."),
|
|
818
|
+
zod.object({
|
|
819
|
+
errorCode: zod.number(),
|
|
820
|
+
message: zod.string()
|
|
821
|
+
}).strict().describe("The labels array contains an empty or blank label."),
|
|
822
|
+
zod.object({
|
|
823
|
+
errorCode: zod.number(),
|
|
824
|
+
message: zod.string()
|
|
825
|
+
}).strict().describe(
|
|
826
|
+
"A label in the labels array contains spaces, which is not allowed."
|
|
827
|
+
),
|
|
828
|
+
zod.object({
|
|
829
|
+
errorCode: zod.number(),
|
|
830
|
+
message: zod.string()
|
|
831
|
+
}).strict().describe(
|
|
832
|
+
"A custom field name in the body does not exist for the project."
|
|
833
|
+
),
|
|
834
|
+
zod.object({
|
|
835
|
+
errorCode: zod.number(),
|
|
836
|
+
message: zod.string()
|
|
837
|
+
}).strict().describe(
|
|
838
|
+
'A custom field value has the wrong type for the field definition. The message names the field and the expected type, e.g. "requires a number value", "requires a string value", "requires a boolean value", "requires a string which is in the format yyyy-MM-dd", or "requires a list".\n'
|
|
839
|
+
),
|
|
840
|
+
zod.object({
|
|
841
|
+
errorCode: zod.number(),
|
|
842
|
+
message: zod.string()
|
|
843
|
+
}).strict().describe(
|
|
844
|
+
"A choice custom field value references an option name that does not exist."
|
|
845
|
+
),
|
|
846
|
+
zod.object({
|
|
847
|
+
errorCode: zod.number(),
|
|
848
|
+
message: zod.string()
|
|
849
|
+
}).strict().describe(
|
|
850
|
+
"The project has required custom fields but the request omitted them."
|
|
851
|
+
),
|
|
852
|
+
zod.object({
|
|
853
|
+
errorCode: zod.number(),
|
|
854
|
+
message: zod.string()
|
|
855
|
+
}).strict().describe(
|
|
856
|
+
"Custom fields were provided but not all required ones are present."
|
|
857
|
+
),
|
|
858
|
+
zod.object({
|
|
859
|
+
errorCode: zod.number(),
|
|
860
|
+
message: zod.string()
|
|
861
|
+
}).strict().describe(
|
|
862
|
+
"A required custom field was provided with a null or empty value."
|
|
863
|
+
),
|
|
864
|
+
zod.object({
|
|
865
|
+
errorCode: zod.number(),
|
|
866
|
+
message: zod.string()
|
|
867
|
+
}).strict().describe(
|
|
868
|
+
"A required multi-choice custom field was set to an empty collection."
|
|
869
|
+
)
|
|
870
|
+
]);
|
|
871
|
+
zod.union([
|
|
872
|
+
zod.object({
|
|
873
|
+
error: zod.string()
|
|
874
|
+
}).strict().describe("The Authorization header is missing."),
|
|
875
|
+
zod.object({
|
|
876
|
+
error: zod.string()
|
|
877
|
+
}).strict().describe(
|
|
878
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
879
|
+
),
|
|
880
|
+
zod.object({
|
|
881
|
+
error: zod.string()
|
|
882
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
883
|
+
zod.object({
|
|
884
|
+
error: zod.string()
|
|
885
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
886
|
+
zod.object({
|
|
887
|
+
error: zod.string()
|
|
888
|
+
}).strict().describe(
|
|
889
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
890
|
+
)
|
|
891
|
+
]);
|
|
892
|
+
zod.union([
|
|
893
|
+
zod.object({
|
|
894
|
+
errorCode: zod.number(),
|
|
895
|
+
message: zod.string()
|
|
896
|
+
}).strict().describe(
|
|
897
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
898
|
+
),
|
|
899
|
+
zod.object({
|
|
900
|
+
errorCode: zod.number(),
|
|
901
|
+
message: zod.string()
|
|
902
|
+
}).strict().describe("Referenced custom fields do not belong to the current client.")
|
|
903
|
+
]);
|
|
904
|
+
zod.union([
|
|
905
|
+
zod.object({
|
|
906
|
+
errorCode: zod.number(),
|
|
907
|
+
message: zod.string()
|
|
908
|
+
}).strict().describe(
|
|
909
|
+
"No test case exists for the id supplied in the request body (used by the update endpoint, which resolves the test case by its body id)."
|
|
910
|
+
),
|
|
911
|
+
zod.object({
|
|
912
|
+
errorCode: zod.number(),
|
|
913
|
+
message: zod.string()
|
|
914
|
+
}).strict().describe(
|
|
915
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
916
|
+
),
|
|
917
|
+
zod.object({
|
|
918
|
+
errorCode: zod.number(),
|
|
919
|
+
message: zod.string()
|
|
920
|
+
}).strict().describe(
|
|
921
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
922
|
+
)
|
|
923
|
+
]);
|
|
924
|
+
zod.object({
|
|
925
|
+
errorCode: zod.number(),
|
|
926
|
+
message: zod.string()
|
|
927
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
928
|
+
zod.object({
|
|
929
|
+
errorCode: zod.number(),
|
|
930
|
+
message: zod.string()
|
|
931
|
+
}).strict();
|
|
932
|
+
const getTestCaseLinksPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
933
|
+
const GetTestCaseLinksParams = zod.object({
|
|
934
|
+
testCaseKey: zod.string().regex(getTestCaseLinksPathTestCaseKeyRegExp).describe(
|
|
935
|
+
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
936
|
+
)
|
|
937
|
+
}).strict();
|
|
938
|
+
const GetTestCaseLinks200Response = zod.object({
|
|
939
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
940
|
+
issues: zod.array(
|
|
941
|
+
zod.object({
|
|
942
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
943
|
+
self: zod.string().url().optional().describe(
|
|
944
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
945
|
+
),
|
|
946
|
+
id: zod.number().min(1).optional().describe(
|
|
947
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
948
|
+
),
|
|
949
|
+
target: zod.string().url().optional().describe(
|
|
950
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
951
|
+
),
|
|
952
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
953
|
+
}).strict()
|
|
954
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
955
|
+
webLinks: zod.array(
|
|
956
|
+
zod.object({
|
|
957
|
+
description: zod.string().optional().describe("The web link description"),
|
|
958
|
+
url: zod.string().describe("The web link URL"),
|
|
959
|
+
self: zod.string().url().optional().describe(
|
|
960
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
961
|
+
),
|
|
962
|
+
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
963
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
964
|
+
}).strict()
|
|
965
|
+
).optional().describe("A list of web links for this entity")
|
|
966
|
+
}).strict().describe("A list of links for this test case.");
|
|
967
|
+
zod.object({
|
|
968
|
+
errorCode: zod.number(),
|
|
969
|
+
message: zod.string()
|
|
970
|
+
}).strict().describe(
|
|
971
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
972
|
+
);
|
|
973
|
+
zod.union([
|
|
974
|
+
zod.object({
|
|
975
|
+
error: zod.string()
|
|
976
|
+
}).strict().describe("The Authorization header is missing."),
|
|
977
|
+
zod.object({
|
|
978
|
+
error: zod.string()
|
|
979
|
+
}).strict().describe(
|
|
980
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
981
|
+
),
|
|
982
|
+
zod.object({
|
|
983
|
+
error: zod.string()
|
|
984
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
985
|
+
zod.object({
|
|
986
|
+
error: zod.string()
|
|
987
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
988
|
+
zod.object({
|
|
989
|
+
error: zod.string()
|
|
990
|
+
}).strict().describe(
|
|
991
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
992
|
+
)
|
|
993
|
+
]);
|
|
994
|
+
zod.union([
|
|
995
|
+
zod.object({
|
|
996
|
+
errorCode: zod.number(),
|
|
997
|
+
message: zod.string()
|
|
998
|
+
}).strict().describe("No test case exists for the given testCaseKey."),
|
|
999
|
+
zod.object({
|
|
1000
|
+
errorCode: zod.number(),
|
|
1001
|
+
message: zod.string()
|
|
1002
|
+
}).strict().describe(
|
|
1003
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
1004
|
+
),
|
|
1005
|
+
zod.object({
|
|
1006
|
+
errorCode: zod.number(),
|
|
1007
|
+
message: zod.string()
|
|
1008
|
+
}).strict().describe(
|
|
1009
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
1010
|
+
)
|
|
1011
|
+
]);
|
|
1012
|
+
zod.object({
|
|
1013
|
+
errorCode: zod.number(),
|
|
1014
|
+
message: zod.string()
|
|
1015
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
1016
|
+
zod.object({
|
|
582
1017
|
errorCode: zod.number(),
|
|
583
1018
|
message: zod.string()
|
|
584
1019
|
}).strict();
|
|
1020
|
+
const createTestCaseIssueLinkPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
1021
|
+
const CreateTestCaseIssueLinkParams = zod.object({
|
|
1022
|
+
testCaseKey: zod.string().regex(createTestCaseIssueLinkPathTestCaseKeyRegExp).describe(
|
|
1023
|
+
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
1024
|
+
)
|
|
1025
|
+
}).strict();
|
|
1026
|
+
const CreateTestCaseIssueLinkBody = zod.object({
|
|
1027
|
+
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
1028
|
+
}).strict();
|
|
1029
|
+
const CreateTestCaseIssueLink201Response = zod.object({
|
|
1030
|
+
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
1031
|
+
self: zod.string().optional()
|
|
1032
|
+
}).strict();
|
|
1033
|
+
zod.union([
|
|
1034
|
+
zod.object({
|
|
1035
|
+
errorCode: zod.number(),
|
|
1036
|
+
message: zod.string()
|
|
1037
|
+
}).strict().describe(
|
|
1038
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
1039
|
+
),
|
|
1040
|
+
zod.object({
|
|
1041
|
+
errorCode: zod.number(),
|
|
1042
|
+
message: zod.string()
|
|
1043
|
+
}).strict().describe(
|
|
1044
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
1045
|
+
),
|
|
1046
|
+
zod.object({
|
|
1047
|
+
errorCode: zod.number(),
|
|
1048
|
+
message: zod.string()
|
|
1049
|
+
}).strict().describe("The request body is not valid JSON."),
|
|
1050
|
+
zod.object({
|
|
1051
|
+
errorCode: zod.number(),
|
|
1052
|
+
message: zod.string()
|
|
1053
|
+
}).strict().describe(
|
|
1054
|
+
"The Jira issue already has a coverage link to this test case. (Backend-asserted; not reproducible locally because the Jira issue lookup is unavailable and fails first.)"
|
|
1055
|
+
)
|
|
1056
|
+
]);
|
|
1057
|
+
zod.union([
|
|
1058
|
+
zod.object({
|
|
1059
|
+
error: zod.string()
|
|
1060
|
+
}).strict().describe("The Authorization header is missing."),
|
|
1061
|
+
zod.object({
|
|
1062
|
+
error: zod.string()
|
|
1063
|
+
}).strict().describe(
|
|
1064
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
1065
|
+
),
|
|
1066
|
+
zod.object({
|
|
1067
|
+
error: zod.string()
|
|
1068
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
1069
|
+
zod.object({
|
|
1070
|
+
error: zod.string()
|
|
1071
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
1072
|
+
zod.object({
|
|
1073
|
+
error: zod.string()
|
|
1074
|
+
}).strict().describe(
|
|
1075
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
1076
|
+
)
|
|
1077
|
+
]);
|
|
1078
|
+
zod.object({
|
|
1079
|
+
errorCode: zod.number(),
|
|
1080
|
+
message: zod.string()
|
|
1081
|
+
}).strict().describe(
|
|
1082
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
1083
|
+
);
|
|
1084
|
+
zod.union([
|
|
1085
|
+
zod.object({
|
|
1086
|
+
errorCode: zod.number(),
|
|
1087
|
+
message: zod.string()
|
|
1088
|
+
}).strict().describe(
|
|
1089
|
+
"A referenced Jira entity (e.g. jiraProjectVersion) does not exist or is not accessible."
|
|
1090
|
+
),
|
|
1091
|
+
zod.object({
|
|
1092
|
+
errorCode: zod.number(),
|
|
1093
|
+
message: zod.string()
|
|
1094
|
+
}).strict().describe("No test case exists for the given testCaseKey."),
|
|
1095
|
+
zod.object({
|
|
1096
|
+
errorCode: zod.number(),
|
|
1097
|
+
message: zod.string()
|
|
1098
|
+
}).strict().describe(
|
|
1099
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
1100
|
+
),
|
|
1101
|
+
zod.object({
|
|
1102
|
+
errorCode: zod.number(),
|
|
1103
|
+
message: zod.string()
|
|
1104
|
+
}).strict().describe(
|
|
1105
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
1106
|
+
)
|
|
1107
|
+
]);
|
|
1108
|
+
zod.object({
|
|
1109
|
+
errorCode: zod.number(),
|
|
1110
|
+
message: zod.string()
|
|
1111
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
585
1112
|
zod.object({
|
|
586
1113
|
errorCode: zod.number(),
|
|
587
1114
|
message: zod.string()
|
|
588
1115
|
}).strict();
|
|
1116
|
+
const createTestCaseWebLinkPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
1117
|
+
const CreateTestCaseWebLinkParams = zod.object({
|
|
1118
|
+
testCaseKey: zod.string().regex(createTestCaseWebLinkPathTestCaseKeyRegExp).describe(
|
|
1119
|
+
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
1120
|
+
)
|
|
1121
|
+
}).strict();
|
|
1122
|
+
const CreateTestCaseWebLinkBody = zod.object({
|
|
1123
|
+
description: zod.string().optional().describe("The web link description"),
|
|
1124
|
+
url: zod.string().describe("The web link URL")
|
|
1125
|
+
}).strict();
|
|
1126
|
+
const CreateTestCaseWebLink201Response = zod.object({
|
|
1127
|
+
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
1128
|
+
self: zod.string().optional()
|
|
1129
|
+
}).strict();
|
|
1130
|
+
zod.union([
|
|
1131
|
+
zod.object({
|
|
1132
|
+
errorCode: zod.number(),
|
|
1133
|
+
message: zod.string()
|
|
1134
|
+
}).strict().describe(
|
|
1135
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
1136
|
+
),
|
|
1137
|
+
zod.object({
|
|
1138
|
+
errorCode: zod.number(),
|
|
1139
|
+
message: zod.string()
|
|
1140
|
+
}).strict().describe(
|
|
1141
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
1142
|
+
),
|
|
1143
|
+
zod.object({
|
|
1144
|
+
errorCode: zod.number(),
|
|
1145
|
+
message: zod.string()
|
|
1146
|
+
}).strict().describe("The request body is not valid JSON."),
|
|
1147
|
+
zod.object({
|
|
1148
|
+
errorCode: zod.number(),
|
|
1149
|
+
message: zod.string()
|
|
1150
|
+
}).strict().describe(
|
|
1151
|
+
"A web link with the same URL and description already exists on the test case."
|
|
1152
|
+
)
|
|
1153
|
+
]);
|
|
1154
|
+
zod.union([
|
|
1155
|
+
zod.object({
|
|
1156
|
+
error: zod.string()
|
|
1157
|
+
}).strict().describe("The Authorization header is missing."),
|
|
1158
|
+
zod.object({
|
|
1159
|
+
error: zod.string()
|
|
1160
|
+
}).strict().describe(
|
|
1161
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
1162
|
+
),
|
|
1163
|
+
zod.object({
|
|
1164
|
+
error: zod.string()
|
|
1165
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
1166
|
+
zod.object({
|
|
1167
|
+
error: zod.string()
|
|
1168
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
1169
|
+
zod.object({
|
|
1170
|
+
error: zod.string()
|
|
1171
|
+
}).strict().describe(
|
|
1172
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
1173
|
+
)
|
|
1174
|
+
]);
|
|
1175
|
+
zod.object({
|
|
1176
|
+
errorCode: zod.number(),
|
|
1177
|
+
message: zod.string()
|
|
1178
|
+
}).strict().describe(
|
|
1179
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
1180
|
+
);
|
|
1181
|
+
zod.union([
|
|
1182
|
+
zod.object({
|
|
1183
|
+
errorCode: zod.number(),
|
|
1184
|
+
message: zod.string()
|
|
1185
|
+
}).strict().describe(
|
|
1186
|
+
"No test case exists for the given testCaseKey (returned by the web-link and test-script write endpoints)."
|
|
1187
|
+
),
|
|
1188
|
+
zod.object({
|
|
1189
|
+
errorCode: zod.number(),
|
|
1190
|
+
message: zod.string()
|
|
1191
|
+
}).strict().describe(
|
|
1192
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
1193
|
+
),
|
|
1194
|
+
zod.object({
|
|
1195
|
+
errorCode: zod.number(),
|
|
1196
|
+
message: zod.string()
|
|
1197
|
+
}).strict().describe(
|
|
1198
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
1199
|
+
)
|
|
1200
|
+
]);
|
|
1201
|
+
zod.object({
|
|
1202
|
+
errorCode: zod.number(),
|
|
1203
|
+
message: zod.string()
|
|
1204
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
589
1205
|
zod.object({
|
|
590
1206
|
errorCode: zod.number(),
|
|
591
1207
|
message: zod.string()
|
|
@@ -617,32 +1233,77 @@ zod.object({
|
|
|
617
1233
|
startAt: zod.number().min(listTestCaseVersions200ResponseOneStartAtMin).describe(
|
|
618
1234
|
"Indicates the index of the first item returned in the page of results."
|
|
619
1235
|
),
|
|
620
|
-
maxResults: zod.number().min(1).describe(
|
|
621
|
-
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
1236
|
+
maxResults: zod.number().min(1).describe(
|
|
1237
|
+
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
1238
|
+
),
|
|
1239
|
+
total: zod.number().min(listTestCaseVersions200ResponseOneTotalMin).optional().describe(
|
|
1240
|
+
"Indicates the total number of items available across all pages."
|
|
1241
|
+
),
|
|
1242
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
1243
|
+
values: zod.array(
|
|
1244
|
+
zod.object({
|
|
1245
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
1246
|
+
id: zod.number().min(1).optional().describe("The ID of the entity")
|
|
1247
|
+
}).strict()
|
|
1248
|
+
).optional().describe("A list of versions for a test case")
|
|
1249
|
+
}).strict();
|
|
1250
|
+
zod.union([
|
|
1251
|
+
zod.object({
|
|
1252
|
+
errorCode: zod.number(),
|
|
1253
|
+
message: zod.string()
|
|
1254
|
+
}).strict().describe(
|
|
1255
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
1256
|
+
),
|
|
1257
|
+
zod.object({
|
|
1258
|
+
errorCode: zod.number(),
|
|
1259
|
+
message: zod.string()
|
|
1260
|
+
}).strict().describe(
|
|
1261
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
1262
|
+
),
|
|
1263
|
+
zod.object({
|
|
1264
|
+
errorCode: zod.number(),
|
|
1265
|
+
message: zod.string()
|
|
1266
|
+
}).strict().describe("A numeric query parameter was sent with a non-numeric value.")
|
|
1267
|
+
]);
|
|
1268
|
+
zod.union([
|
|
1269
|
+
zod.object({
|
|
1270
|
+
error: zod.string()
|
|
1271
|
+
}).strict().describe("The Authorization header is missing."),
|
|
1272
|
+
zod.object({
|
|
1273
|
+
error: zod.string()
|
|
1274
|
+
}).strict().describe(
|
|
1275
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
622
1276
|
),
|
|
623
|
-
|
|
624
|
-
|
|
1277
|
+
zod.object({
|
|
1278
|
+
error: zod.string()
|
|
1279
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
1280
|
+
zod.object({
|
|
1281
|
+
error: zod.string()
|
|
1282
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
1283
|
+
zod.object({
|
|
1284
|
+
error: zod.string()
|
|
1285
|
+
}).strict().describe(
|
|
1286
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
1287
|
+
)
|
|
1288
|
+
]);
|
|
1289
|
+
zod.union([
|
|
1290
|
+
zod.object({
|
|
1291
|
+
errorCode: zod.number(),
|
|
1292
|
+
message: zod.string()
|
|
1293
|
+
}).strict().describe(
|
|
1294
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
625
1295
|
),
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
zod.
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}).strict();
|
|
634
|
-
zod.object({
|
|
635
|
-
errorCode: zod.number(),
|
|
636
|
-
message: zod.string()
|
|
637
|
-
}).strict();
|
|
638
|
-
zod.object({
|
|
639
|
-
errorCode: zod.number(),
|
|
640
|
-
message: zod.string()
|
|
641
|
-
}).strict();
|
|
1296
|
+
zod.object({
|
|
1297
|
+
errorCode: zod.number(),
|
|
1298
|
+
message: zod.string()
|
|
1299
|
+
}).strict().describe(
|
|
1300
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
1301
|
+
)
|
|
1302
|
+
]);
|
|
642
1303
|
zod.object({
|
|
643
1304
|
errorCode: zod.number(),
|
|
644
1305
|
message: zod.string()
|
|
645
|
-
}).strict();
|
|
1306
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
646
1307
|
zod.object({
|
|
647
1308
|
errorCode: zod.number(),
|
|
648
1309
|
message: zod.string()
|
|
@@ -733,18 +1394,63 @@ zod.object({
|
|
|
733
1394
|
).optional().describe("A list of web links for this entity")
|
|
734
1395
|
}).strict().optional().describe("A list of links for this test case.")
|
|
735
1396
|
}).strict();
|
|
1397
|
+
zod.union([
|
|
1398
|
+
zod.object({
|
|
1399
|
+
errorCode: zod.number(),
|
|
1400
|
+
message: zod.string()
|
|
1401
|
+
}).strict().describe(
|
|
1402
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
1403
|
+
),
|
|
1404
|
+
zod.object({
|
|
1405
|
+
errorCode: zod.number(),
|
|
1406
|
+
message: zod.string()
|
|
1407
|
+
}).strict().describe(
|
|
1408
|
+
"A numeric path parameter was sent with a non-numeric value (for example a non-numeric test case version)."
|
|
1409
|
+
)
|
|
1410
|
+
]);
|
|
1411
|
+
zod.union([
|
|
1412
|
+
zod.object({
|
|
1413
|
+
error: zod.string()
|
|
1414
|
+
}).strict().describe("The Authorization header is missing."),
|
|
1415
|
+
zod.object({
|
|
1416
|
+
error: zod.string()
|
|
1417
|
+
}).strict().describe(
|
|
1418
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
1419
|
+
),
|
|
1420
|
+
zod.object({
|
|
1421
|
+
error: zod.string()
|
|
1422
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
1423
|
+
zod.object({
|
|
1424
|
+
error: zod.string()
|
|
1425
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
1426
|
+
zod.object({
|
|
1427
|
+
error: zod.string()
|
|
1428
|
+
}).strict().describe(
|
|
1429
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
1430
|
+
)
|
|
1431
|
+
]);
|
|
1432
|
+
zod.union([
|
|
1433
|
+
zod.object({
|
|
1434
|
+
errorCode: zod.number(),
|
|
1435
|
+
message: zod.string()
|
|
1436
|
+
}).strict().describe("No test case exists for the given testCaseKey."),
|
|
1437
|
+
zod.object({
|
|
1438
|
+
errorCode: zod.number(),
|
|
1439
|
+
message: zod.string()
|
|
1440
|
+
}).strict().describe(
|
|
1441
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
1442
|
+
),
|
|
1443
|
+
zod.object({
|
|
1444
|
+
errorCode: zod.number(),
|
|
1445
|
+
message: zod.string()
|
|
1446
|
+
}).strict().describe(
|
|
1447
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
1448
|
+
)
|
|
1449
|
+
]);
|
|
736
1450
|
zod.object({
|
|
737
1451
|
errorCode: zod.number(),
|
|
738
1452
|
message: zod.string()
|
|
739
|
-
}).strict();
|
|
740
|
-
zod.object({
|
|
741
|
-
errorCode: zod.number(),
|
|
742
|
-
message: zod.string()
|
|
743
|
-
}).strict();
|
|
744
|
-
zod.object({
|
|
745
|
-
errorCode: zod.number(),
|
|
746
|
-
message: zod.string()
|
|
747
|
-
}).strict();
|
|
1453
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
748
1454
|
zod.object({
|
|
749
1455
|
errorCode: zod.number(),
|
|
750
1456
|
message: zod.string()
|
|
@@ -765,15 +1471,60 @@ const GetTestCaseTestScript200Response = zod.object({
|
|
|
765
1471
|
zod.object({
|
|
766
1472
|
errorCode: zod.number(),
|
|
767
1473
|
message: zod.string()
|
|
768
|
-
}).strict()
|
|
1474
|
+
}).strict().describe(
|
|
1475
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
1476
|
+
);
|
|
1477
|
+
zod.union([
|
|
1478
|
+
zod.object({
|
|
1479
|
+
error: zod.string()
|
|
1480
|
+
}).strict().describe("The Authorization header is missing."),
|
|
1481
|
+
zod.object({
|
|
1482
|
+
error: zod.string()
|
|
1483
|
+
}).strict().describe(
|
|
1484
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
1485
|
+
),
|
|
1486
|
+
zod.object({
|
|
1487
|
+
error: zod.string()
|
|
1488
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
1489
|
+
zod.object({
|
|
1490
|
+
error: zod.string()
|
|
1491
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
1492
|
+
zod.object({
|
|
1493
|
+
error: zod.string()
|
|
1494
|
+
}).strict().describe(
|
|
1495
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
1496
|
+
)
|
|
1497
|
+
]);
|
|
1498
|
+
zod.union([
|
|
1499
|
+
zod.object({
|
|
1500
|
+
errorCode: zod.number(),
|
|
1501
|
+
message: zod.string()
|
|
1502
|
+
}).strict().describe(
|
|
1503
|
+
"No test script (and no test case) exists for the given testCaseKey."
|
|
1504
|
+
),
|
|
1505
|
+
zod.object({
|
|
1506
|
+
errorCode: zod.number(),
|
|
1507
|
+
message: zod.string()
|
|
1508
|
+
}).strict().describe(
|
|
1509
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
1510
|
+
),
|
|
1511
|
+
zod.object({
|
|
1512
|
+
errorCode: zod.number(),
|
|
1513
|
+
message: zod.string()
|
|
1514
|
+
}).strict().describe(
|
|
1515
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
1516
|
+
)
|
|
1517
|
+
]);
|
|
769
1518
|
zod.object({
|
|
770
1519
|
errorCode: zod.number(),
|
|
771
1520
|
message: zod.string()
|
|
772
|
-
}).strict()
|
|
1521
|
+
}).strict().describe(
|
|
1522
|
+
"The test case uses step-by-step test steps rather than a plain/BDD script; use the teststeps endpoint instead."
|
|
1523
|
+
);
|
|
773
1524
|
zod.object({
|
|
774
1525
|
errorCode: zod.number(),
|
|
775
1526
|
message: zod.string()
|
|
776
|
-
}).strict();
|
|
1527
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
777
1528
|
zod.object({
|
|
778
1529
|
errorCode: zod.number(),
|
|
779
1530
|
message: zod.string()
|
|
@@ -794,18 +1545,79 @@ const CreateTestCaseTestScript201Response = zod.object({
|
|
|
794
1545
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
795
1546
|
self: zod.string().optional()
|
|
796
1547
|
}).strict();
|
|
1548
|
+
zod.union([
|
|
1549
|
+
zod.object({
|
|
1550
|
+
errorCode: zod.number(),
|
|
1551
|
+
message: zod.string()
|
|
1552
|
+
}).strict().describe(
|
|
1553
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
1554
|
+
),
|
|
1555
|
+
zod.object({
|
|
1556
|
+
errorCode: zod.number(),
|
|
1557
|
+
message: zod.string()
|
|
1558
|
+
}).strict().describe(
|
|
1559
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
1560
|
+
),
|
|
1561
|
+
zod.object({
|
|
1562
|
+
errorCode: zod.number(),
|
|
1563
|
+
message: zod.string()
|
|
1564
|
+
}).strict().describe("The request body is not valid JSON."),
|
|
1565
|
+
zod.object({
|
|
1566
|
+
errorCode: zod.number(),
|
|
1567
|
+
message: zod.string()
|
|
1568
|
+
}).strict().describe("The BDD test script text is not valid Gherkin.")
|
|
1569
|
+
]);
|
|
1570
|
+
zod.union([
|
|
1571
|
+
zod.object({
|
|
1572
|
+
error: zod.string()
|
|
1573
|
+
}).strict().describe("The Authorization header is missing."),
|
|
1574
|
+
zod.object({
|
|
1575
|
+
error: zod.string()
|
|
1576
|
+
}).strict().describe(
|
|
1577
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
1578
|
+
),
|
|
1579
|
+
zod.object({
|
|
1580
|
+
error: zod.string()
|
|
1581
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
1582
|
+
zod.object({
|
|
1583
|
+
error: zod.string()
|
|
1584
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
1585
|
+
zod.object({
|
|
1586
|
+
error: zod.string()
|
|
1587
|
+
}).strict().describe(
|
|
1588
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
1589
|
+
)
|
|
1590
|
+
]);
|
|
797
1591
|
zod.object({
|
|
798
1592
|
errorCode: zod.number(),
|
|
799
1593
|
message: zod.string()
|
|
800
|
-
}).strict()
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
1594
|
+
}).strict().describe(
|
|
1595
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
1596
|
+
);
|
|
1597
|
+
zod.union([
|
|
1598
|
+
zod.object({
|
|
1599
|
+
errorCode: zod.number(),
|
|
1600
|
+
message: zod.string()
|
|
1601
|
+
}).strict().describe(
|
|
1602
|
+
"No test case exists for the given testCaseKey (returned by the web-link and test-script write endpoints)."
|
|
1603
|
+
),
|
|
1604
|
+
zod.object({
|
|
1605
|
+
errorCode: zod.number(),
|
|
1606
|
+
message: zod.string()
|
|
1607
|
+
}).strict().describe(
|
|
1608
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
1609
|
+
),
|
|
1610
|
+
zod.object({
|
|
1611
|
+
errorCode: zod.number(),
|
|
1612
|
+
message: zod.string()
|
|
1613
|
+
}).strict().describe(
|
|
1614
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
1615
|
+
)
|
|
1616
|
+
]);
|
|
805
1617
|
zod.object({
|
|
806
1618
|
errorCode: zod.number(),
|
|
807
1619
|
message: zod.string()
|
|
808
|
-
}).strict();
|
|
1620
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
809
1621
|
zod.object({
|
|
810
1622
|
errorCode: zod.number(),
|
|
811
1623
|
message: zod.string()
|
|
@@ -885,18 +1697,73 @@ const GetTestCaseTestSteps200Response = zod.object({
|
|
|
885
1697
|
)
|
|
886
1698
|
).optional().describe("The list of test steps")
|
|
887
1699
|
}).strict().describe("Response body when retrieving test steps");
|
|
1700
|
+
zod.union([
|
|
1701
|
+
zod.object({
|
|
1702
|
+
errorCode: zod.number(),
|
|
1703
|
+
message: zod.string()
|
|
1704
|
+
}).strict().describe(
|
|
1705
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
1706
|
+
),
|
|
1707
|
+
zod.object({
|
|
1708
|
+
errorCode: zod.number(),
|
|
1709
|
+
message: zod.string()
|
|
1710
|
+
}).strict().describe(
|
|
1711
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
1712
|
+
),
|
|
1713
|
+
zod.object({
|
|
1714
|
+
errorCode: zod.number(),
|
|
1715
|
+
message: zod.string()
|
|
1716
|
+
}).strict().describe("A numeric query parameter was sent with a non-numeric value.")
|
|
1717
|
+
]);
|
|
1718
|
+
zod.union([
|
|
1719
|
+
zod.object({
|
|
1720
|
+
error: zod.string()
|
|
1721
|
+
}).strict().describe("The Authorization header is missing."),
|
|
1722
|
+
zod.object({
|
|
1723
|
+
error: zod.string()
|
|
1724
|
+
}).strict().describe(
|
|
1725
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
1726
|
+
),
|
|
1727
|
+
zod.object({
|
|
1728
|
+
error: zod.string()
|
|
1729
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
1730
|
+
zod.object({
|
|
1731
|
+
error: zod.string()
|
|
1732
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
1733
|
+
zod.object({
|
|
1734
|
+
error: zod.string()
|
|
1735
|
+
}).strict().describe(
|
|
1736
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
1737
|
+
)
|
|
1738
|
+
]);
|
|
1739
|
+
zod.union([
|
|
1740
|
+
zod.object({
|
|
1741
|
+
errorCode: zod.number(),
|
|
1742
|
+
message: zod.string()
|
|
1743
|
+
}).strict().describe("No test case exists for the given testCaseKey."),
|
|
1744
|
+
zod.object({
|
|
1745
|
+
errorCode: zod.number(),
|
|
1746
|
+
message: zod.string()
|
|
1747
|
+
}).strict().describe(
|
|
1748
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
1749
|
+
),
|
|
1750
|
+
zod.object({
|
|
1751
|
+
errorCode: zod.number(),
|
|
1752
|
+
message: zod.string()
|
|
1753
|
+
}).strict().describe(
|
|
1754
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
1755
|
+
)
|
|
1756
|
+
]);
|
|
888
1757
|
zod.object({
|
|
889
1758
|
errorCode: zod.number(),
|
|
890
1759
|
message: zod.string()
|
|
891
|
-
}).strict()
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
message: zod.string()
|
|
895
|
-
}).strict();
|
|
1760
|
+
}).strict().describe(
|
|
1761
|
+
"The test case uses a plain-text or BDD script rather than step-by-step steps; use the testscript endpoint instead."
|
|
1762
|
+
);
|
|
896
1763
|
zod.object({
|
|
897
1764
|
errorCode: zod.number(),
|
|
898
1765
|
message: zod.string()
|
|
899
|
-
}).strict();
|
|
1766
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
900
1767
|
zod.object({
|
|
901
1768
|
errorCode: zod.number(),
|
|
902
1769
|
message: zod.string()
|
|
@@ -959,18 +1826,151 @@ const CreateTestCaseTestSteps201Response = zod.object({
|
|
|
959
1826
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
960
1827
|
self: zod.string().optional()
|
|
961
1828
|
}).strict();
|
|
1829
|
+
zod.union([
|
|
1830
|
+
zod.object({
|
|
1831
|
+
errorCode: zod.number(),
|
|
1832
|
+
message: zod.string()
|
|
1833
|
+
}).strict().describe(
|
|
1834
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
1835
|
+
),
|
|
1836
|
+
zod.object({
|
|
1837
|
+
errorCode: zod.number(),
|
|
1838
|
+
message: zod.string()
|
|
1839
|
+
}).strict().describe(
|
|
1840
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
1841
|
+
),
|
|
1842
|
+
zod.object({
|
|
1843
|
+
errorCode: zod.number(),
|
|
1844
|
+
message: zod.string()
|
|
1845
|
+
}).strict().describe("The request body is not valid JSON."),
|
|
1846
|
+
zod.object({
|
|
1847
|
+
errorCode: zod.number(),
|
|
1848
|
+
message: zod.string()
|
|
1849
|
+
}).strict().describe("The test step write `mode` is not one of APPEND or OVERWRITE."),
|
|
1850
|
+
zod.object({
|
|
1851
|
+
errorCode: zod.number(),
|
|
1852
|
+
message: zod.string()
|
|
1853
|
+
}).strict().describe(
|
|
1854
|
+
"The request must contain at least 1 and at most 100 test steps."
|
|
1855
|
+
),
|
|
1856
|
+
zod.object({
|
|
1857
|
+
errorCode: zod.number(),
|
|
1858
|
+
message: zod.string()
|
|
1859
|
+
}).strict().describe(
|
|
1860
|
+
'A test step is malformed. Covers several variants that share this response shape:\n- "The step should be inline or call to test." (neither inline nor testCase set)\n- "The step should be inline or call to test, not both." (both set)\n- "Test Data, Description and Expected Result are empty." (inline step with no content)\n'
|
|
1861
|
+
),
|
|
1862
|
+
zod.object({
|
|
1863
|
+
errorCode: zod.number(),
|
|
1864
|
+
message: zod.string()
|
|
1865
|
+
}).strict().describe(
|
|
1866
|
+
"A call-to-test step references the same test case (circular reference)."
|
|
1867
|
+
),
|
|
1868
|
+
zod.object({
|
|
1869
|
+
errorCode: zod.number(),
|
|
1870
|
+
message: zod.string()
|
|
1871
|
+
}).strict().describe(
|
|
1872
|
+
"A call-to-test step references a test case that does not exist."
|
|
1873
|
+
),
|
|
1874
|
+
zod.object({
|
|
1875
|
+
errorCode: zod.number(),
|
|
1876
|
+
message: zod.string()
|
|
1877
|
+
}).strict().describe(
|
|
1878
|
+
"A custom field name in the body does not exist for the project."
|
|
1879
|
+
),
|
|
1880
|
+
zod.object({
|
|
1881
|
+
errorCode: zod.number(),
|
|
1882
|
+
message: zod.string()
|
|
1883
|
+
}).strict().describe(
|
|
1884
|
+
'A custom field value has the wrong type for the field definition. The message names the field and the expected type, e.g. "requires a number value", "requires a string value", "requires a boolean value", "requires a string which is in the format yyyy-MM-dd", or "requires a list".\n'
|
|
1885
|
+
),
|
|
1886
|
+
zod.object({
|
|
1887
|
+
errorCode: zod.number(),
|
|
1888
|
+
message: zod.string()
|
|
1889
|
+
}).strict().describe(
|
|
1890
|
+
"A choice custom field value references an option name that does not exist."
|
|
1891
|
+
),
|
|
1892
|
+
zod.object({
|
|
1893
|
+
errorCode: zod.number(),
|
|
1894
|
+
message: zod.string()
|
|
1895
|
+
}).strict().describe(
|
|
1896
|
+
"The project has required custom fields but the request omitted them."
|
|
1897
|
+
),
|
|
1898
|
+
zod.object({
|
|
1899
|
+
errorCode: zod.number(),
|
|
1900
|
+
message: zod.string()
|
|
1901
|
+
}).strict().describe(
|
|
1902
|
+
"Custom fields were provided but not all required ones are present."
|
|
1903
|
+
),
|
|
1904
|
+
zod.object({
|
|
1905
|
+
errorCode: zod.number(),
|
|
1906
|
+
message: zod.string()
|
|
1907
|
+
}).strict().describe(
|
|
1908
|
+
"A required custom field was provided with a null or empty value."
|
|
1909
|
+
),
|
|
1910
|
+
zod.object({
|
|
1911
|
+
errorCode: zod.number(),
|
|
1912
|
+
message: zod.string()
|
|
1913
|
+
}).strict().describe(
|
|
1914
|
+
"A required multi-choice custom field was set to an empty collection."
|
|
1915
|
+
)
|
|
1916
|
+
]);
|
|
1917
|
+
zod.union([
|
|
1918
|
+
zod.object({
|
|
1919
|
+
error: zod.string()
|
|
1920
|
+
}).strict().describe("The Authorization header is missing."),
|
|
1921
|
+
zod.object({
|
|
1922
|
+
error: zod.string()
|
|
1923
|
+
}).strict().describe(
|
|
1924
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
1925
|
+
),
|
|
1926
|
+
zod.object({
|
|
1927
|
+
error: zod.string()
|
|
1928
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
1929
|
+
zod.object({
|
|
1930
|
+
error: zod.string()
|
|
1931
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
1932
|
+
zod.object({
|
|
1933
|
+
error: zod.string()
|
|
1934
|
+
}).strict().describe(
|
|
1935
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
1936
|
+
)
|
|
1937
|
+
]);
|
|
1938
|
+
zod.union([
|
|
1939
|
+
zod.object({
|
|
1940
|
+
errorCode: zod.number(),
|
|
1941
|
+
message: zod.string()
|
|
1942
|
+
}).strict().describe(
|
|
1943
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
1944
|
+
),
|
|
1945
|
+
zod.object({
|
|
1946
|
+
errorCode: zod.number(),
|
|
1947
|
+
message: zod.string()
|
|
1948
|
+
}).strict().describe("Referenced custom fields do not belong to the current client.")
|
|
1949
|
+
]);
|
|
1950
|
+
zod.union([
|
|
1951
|
+
zod.object({
|
|
1952
|
+
errorCode: zod.number(),
|
|
1953
|
+
message: zod.string()
|
|
1954
|
+
}).strict().describe(
|
|
1955
|
+
"No test case exists for the given testCaseKey (returned by the web-link and test-script write endpoints)."
|
|
1956
|
+
),
|
|
1957
|
+
zod.object({
|
|
1958
|
+
errorCode: zod.number(),
|
|
1959
|
+
message: zod.string()
|
|
1960
|
+
}).strict().describe(
|
|
1961
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
1962
|
+
),
|
|
1963
|
+
zod.object({
|
|
1964
|
+
errorCode: zod.number(),
|
|
1965
|
+
message: zod.string()
|
|
1966
|
+
}).strict().describe(
|
|
1967
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
1968
|
+
)
|
|
1969
|
+
]);
|
|
962
1970
|
zod.object({
|
|
963
1971
|
errorCode: zod.number(),
|
|
964
1972
|
message: zod.string()
|
|
965
|
-
}).strict();
|
|
966
|
-
zod.object({
|
|
967
|
-
errorCode: zod.number(),
|
|
968
|
-
message: zod.string()
|
|
969
|
-
}).strict();
|
|
970
|
-
zod.object({
|
|
971
|
-
errorCode: zod.number(),
|
|
972
|
-
message: zod.string()
|
|
973
|
-
}).strict();
|
|
1973
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
974
1974
|
zod.object({
|
|
975
1975
|
errorCode: zod.number(),
|
|
976
1976
|
message: zod.string()
|
|
@@ -982,60 +1982,98 @@ zod.object({
|
|
|
982
1982
|
),
|
|
983
1983
|
attachmentId: zod.number().min(1).describe("The numeric ID of the attachment.")
|
|
984
1984
|
}).strict();
|
|
985
|
-
zod.
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
message: zod.string()
|
|
992
|
-
}).strict();
|
|
993
|
-
zod.object({
|
|
994
|
-
errorCode: zod.number(),
|
|
995
|
-
message: zod.string()
|
|
996
|
-
}).strict();
|
|
997
|
-
zod.object({
|
|
998
|
-
errorCode: zod.number(),
|
|
999
|
-
message: zod.string()
|
|
1000
|
-
}).strict();
|
|
1001
|
-
zod.object({
|
|
1002
|
-
errorCode: zod.number(),
|
|
1003
|
-
message: zod.string()
|
|
1004
|
-
}).strict();
|
|
1005
|
-
const uploadTestCaseAttachmentPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
1006
|
-
const uploadTestCaseAttachmentPathFileNameMax = 255;
|
|
1007
|
-
zod.object({
|
|
1008
|
-
testCaseKey: zod.string().regex(uploadTestCaseAttachmentPathTestCaseKeyRegExp).describe(
|
|
1009
|
-
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
1985
|
+
zod.union([
|
|
1986
|
+
zod.object({
|
|
1987
|
+
errorCode: zod.number(),
|
|
1988
|
+
message: zod.string()
|
|
1989
|
+
}).strict().describe(
|
|
1990
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
1010
1991
|
),
|
|
1011
|
-
|
|
1012
|
-
|
|
1992
|
+
zod.object({
|
|
1993
|
+
errorCode: zod.number(),
|
|
1994
|
+
message: zod.string()
|
|
1995
|
+
}).strict().describe(
|
|
1996
|
+
"A numeric path parameter was sent with a non-numeric value (for example a non-numeric test case version)."
|
|
1013
1997
|
)
|
|
1014
|
-
|
|
1015
|
-
zod.
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
}).strict()
|
|
1019
|
-
zod.object({
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1998
|
+
]);
|
|
1999
|
+
zod.union([
|
|
2000
|
+
zod.object({
|
|
2001
|
+
error: zod.string()
|
|
2002
|
+
}).strict().describe("The Authorization header is missing."),
|
|
2003
|
+
zod.object({
|
|
2004
|
+
error: zod.string()
|
|
2005
|
+
}).strict().describe(
|
|
2006
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
2007
|
+
),
|
|
2008
|
+
zod.object({
|
|
2009
|
+
error: zod.string()
|
|
2010
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
2011
|
+
zod.object({
|
|
2012
|
+
error: zod.string()
|
|
2013
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
2014
|
+
zod.object({
|
|
2015
|
+
error: zod.string()
|
|
2016
|
+
}).strict().describe(
|
|
2017
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
2018
|
+
)
|
|
2019
|
+
]);
|
|
1023
2020
|
zod.object({
|
|
1024
2021
|
errorCode: zod.number(),
|
|
1025
2022
|
message: zod.string()
|
|
1026
|
-
}).strict();
|
|
2023
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
1027
2024
|
zod.object({
|
|
1028
2025
|
errorCode: zod.number(),
|
|
1029
2026
|
message: zod.string()
|
|
1030
2027
|
}).strict();
|
|
2028
|
+
const uploadTestCaseAttachmentPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
2029
|
+
const uploadTestCaseAttachmentPathFileNameMax = 255;
|
|
1031
2030
|
zod.object({
|
|
1032
|
-
|
|
1033
|
-
|
|
2031
|
+
testCaseKey: zod.string().regex(uploadTestCaseAttachmentPathTestCaseKeyRegExp).describe(
|
|
2032
|
+
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
2033
|
+
),
|
|
2034
|
+
fileName: zod.string().min(1).max(uploadTestCaseAttachmentPathFileNameMax).describe(
|
|
2035
|
+
"The name of the file being uploaded, including its extension (for example, `screenshot.png`).\nThis is used as the attachment's display name. URL-encode any special characters and keep\nthe name to 255 characters or fewer.\n"
|
|
2036
|
+
)
|
|
1034
2037
|
}).strict();
|
|
2038
|
+
zod.union([
|
|
2039
|
+
zod.object({
|
|
2040
|
+
errorCode: zod.number(),
|
|
2041
|
+
message: zod.string()
|
|
2042
|
+
}).strict().describe(
|
|
2043
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
2044
|
+
),
|
|
2045
|
+
zod.object({
|
|
2046
|
+
errorCode: zod.number(),
|
|
2047
|
+
message: zod.string()
|
|
2048
|
+
}).strict().describe(
|
|
2049
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
2050
|
+
)
|
|
2051
|
+
]);
|
|
2052
|
+
zod.union([
|
|
2053
|
+
zod.object({
|
|
2054
|
+
error: zod.string()
|
|
2055
|
+
}).strict().describe("The Authorization header is missing."),
|
|
2056
|
+
zod.object({
|
|
2057
|
+
error: zod.string()
|
|
2058
|
+
}).strict().describe(
|
|
2059
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
2060
|
+
),
|
|
2061
|
+
zod.object({
|
|
2062
|
+
error: zod.string()
|
|
2063
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
2064
|
+
zod.object({
|
|
2065
|
+
error: zod.string()
|
|
2066
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
2067
|
+
zod.object({
|
|
2068
|
+
error: zod.string()
|
|
2069
|
+
}).strict().describe(
|
|
2070
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
2071
|
+
)
|
|
2072
|
+
]);
|
|
1035
2073
|
zod.object({
|
|
1036
2074
|
errorCode: zod.number(),
|
|
1037
2075
|
message: zod.string()
|
|
1038
|
-
}).strict();
|
|
2076
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
1039
2077
|
zod.object({
|
|
1040
2078
|
errorCode: zod.number(),
|
|
1041
2079
|
message: zod.string()
|
|
@@ -1049,30 +2087,51 @@ zod.object({
|
|
|
1049
2087
|
"The name of the file being uploaded, including its extension (for example, `screenshot.png`).\nThis is used as the attachment's display name. URL-encode any special characters and keep\nthe name to 255 characters or fewer.\n"
|
|
1050
2088
|
)
|
|
1051
2089
|
}).strict();
|
|
2090
|
+
zod.union([
|
|
2091
|
+
zod.object({
|
|
2092
|
+
errorCode: zod.number(),
|
|
2093
|
+
message: zod.string()
|
|
2094
|
+
}).strict().describe(
|
|
2095
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
2096
|
+
),
|
|
2097
|
+
zod.object({
|
|
2098
|
+
errorCode: zod.number(),
|
|
2099
|
+
message: zod.string()
|
|
2100
|
+
}).strict().describe(
|
|
2101
|
+
"A numeric path parameter was sent with a non-numeric value (for example a non-numeric test case version)."
|
|
2102
|
+
),
|
|
2103
|
+
zod.object({
|
|
2104
|
+
errorCode: zod.number(),
|
|
2105
|
+
message: zod.string()
|
|
2106
|
+
}).strict().describe(
|
|
2107
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
2108
|
+
)
|
|
2109
|
+
]);
|
|
2110
|
+
zod.union([
|
|
2111
|
+
zod.object({
|
|
2112
|
+
error: zod.string()
|
|
2113
|
+
}).strict().describe("The Authorization header is missing."),
|
|
2114
|
+
zod.object({
|
|
2115
|
+
error: zod.string()
|
|
2116
|
+
}).strict().describe(
|
|
2117
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
2118
|
+
),
|
|
2119
|
+
zod.object({
|
|
2120
|
+
error: zod.string()
|
|
2121
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
2122
|
+
zod.object({
|
|
2123
|
+
error: zod.string()
|
|
2124
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
2125
|
+
zod.object({
|
|
2126
|
+
error: zod.string()
|
|
2127
|
+
}).strict().describe(
|
|
2128
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
2129
|
+
)
|
|
2130
|
+
]);
|
|
1052
2131
|
zod.object({
|
|
1053
2132
|
errorCode: zod.number(),
|
|
1054
2133
|
message: zod.string()
|
|
1055
|
-
}).strict();
|
|
1056
|
-
zod.object({
|
|
1057
|
-
errorCode: zod.number(),
|
|
1058
|
-
message: zod.string()
|
|
1059
|
-
}).strict();
|
|
1060
|
-
zod.object({
|
|
1061
|
-
errorCode: zod.number(),
|
|
1062
|
-
message: zod.string()
|
|
1063
|
-
}).strict();
|
|
1064
|
-
zod.object({
|
|
1065
|
-
errorCode: zod.number(),
|
|
1066
|
-
message: zod.string()
|
|
1067
|
-
}).strict();
|
|
1068
|
-
zod.object({
|
|
1069
|
-
errorCode: zod.number(),
|
|
1070
|
-
message: zod.string()
|
|
1071
|
-
}).strict();
|
|
1072
|
-
zod.object({
|
|
1073
|
-
errorCode: zod.number(),
|
|
1074
|
-
message: zod.string()
|
|
1075
|
-
}).strict();
|
|
2134
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
1076
2135
|
zod.object({
|
|
1077
2136
|
errorCode: zod.number(),
|
|
1078
2137
|
message: zod.string()
|
|
@@ -1083,22 +2142,45 @@ zod.object({
|
|
|
1083
2142
|
testCaseStepId: zod.number().min(1).describe("The ID of the step within the test case."),
|
|
1084
2143
|
attachmentId: zod.number().min(1).describe("The numeric ID of the attachment.")
|
|
1085
2144
|
}).strict();
|
|
2145
|
+
zod.union([
|
|
2146
|
+
zod.object({
|
|
2147
|
+
errorCode: zod.number(),
|
|
2148
|
+
message: zod.string()
|
|
2149
|
+
}).strict().describe(
|
|
2150
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
2151
|
+
),
|
|
2152
|
+
zod.object({
|
|
2153
|
+
errorCode: zod.number(),
|
|
2154
|
+
message: zod.string()
|
|
2155
|
+
}).strict().describe(
|
|
2156
|
+
"A numeric path parameter was sent with a non-numeric value (for example a non-numeric test case version)."
|
|
2157
|
+
)
|
|
2158
|
+
]);
|
|
2159
|
+
zod.union([
|
|
2160
|
+
zod.object({
|
|
2161
|
+
error: zod.string()
|
|
2162
|
+
}).strict().describe("The Authorization header is missing."),
|
|
2163
|
+
zod.object({
|
|
2164
|
+
error: zod.string()
|
|
2165
|
+
}).strict().describe(
|
|
2166
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
2167
|
+
),
|
|
2168
|
+
zod.object({
|
|
2169
|
+
error: zod.string()
|
|
2170
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
2171
|
+
zod.object({
|
|
2172
|
+
error: zod.string()
|
|
2173
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
2174
|
+
zod.object({
|
|
2175
|
+
error: zod.string()
|
|
2176
|
+
}).strict().describe(
|
|
2177
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
2178
|
+
)
|
|
2179
|
+
]);
|
|
1086
2180
|
zod.object({
|
|
1087
2181
|
errorCode: zod.number(),
|
|
1088
2182
|
message: zod.string()
|
|
1089
|
-
}).strict();
|
|
1090
|
-
zod.object({
|
|
1091
|
-
errorCode: zod.number(),
|
|
1092
|
-
message: zod.string()
|
|
1093
|
-
}).strict();
|
|
1094
|
-
zod.object({
|
|
1095
|
-
errorCode: zod.number(),
|
|
1096
|
-
message: zod.string()
|
|
1097
|
-
}).strict();
|
|
1098
|
-
zod.object({
|
|
1099
|
-
errorCode: zod.number(),
|
|
1100
|
-
message: zod.string()
|
|
1101
|
-
}).strict();
|
|
2183
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
1102
2184
|
zod.object({
|
|
1103
2185
|
errorCode: zod.number(),
|
|
1104
2186
|
message: zod.string()
|
|
@@ -1122,15 +2204,62 @@ zod.object({
|
|
|
1122
2204
|
zod.object({
|
|
1123
2205
|
errorCode: zod.number(),
|
|
1124
2206
|
message: zod.string()
|
|
1125
|
-
}).strict()
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
2207
|
+
}).strict().describe(
|
|
2208
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
2209
|
+
);
|
|
2210
|
+
zod.union([
|
|
2211
|
+
zod.object({
|
|
2212
|
+
error: zod.string()
|
|
2213
|
+
}).strict().describe("The Authorization header is missing."),
|
|
2214
|
+
zod.object({
|
|
2215
|
+
error: zod.string()
|
|
2216
|
+
}).strict().describe(
|
|
2217
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
2218
|
+
),
|
|
2219
|
+
zod.object({
|
|
2220
|
+
error: zod.string()
|
|
2221
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
2222
|
+
zod.object({
|
|
2223
|
+
error: zod.string()
|
|
2224
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
2225
|
+
zod.object({
|
|
2226
|
+
error: zod.string()
|
|
2227
|
+
}).strict().describe(
|
|
2228
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
2229
|
+
)
|
|
2230
|
+
]);
|
|
2231
|
+
zod.union([
|
|
2232
|
+
zod.object({
|
|
2233
|
+
errorCode: zod.number(),
|
|
2234
|
+
message: zod.string()
|
|
2235
|
+
}).strict().describe(
|
|
2236
|
+
"No test case exists for the given testCaseKey (returned by the web-link and test-script write endpoints)."
|
|
2237
|
+
),
|
|
2238
|
+
zod.object({
|
|
2239
|
+
errorCode: zod.number(),
|
|
2240
|
+
message: zod.string()
|
|
2241
|
+
}).strict().describe("The given test step id does not exist for the test case."),
|
|
2242
|
+
zod.object({
|
|
2243
|
+
errorCode: zod.number(),
|
|
2244
|
+
message: zod.string()
|
|
2245
|
+
}).strict().describe("The test case step exists but has no attachment metadata."),
|
|
2246
|
+
zod.object({
|
|
2247
|
+
errorCode: zod.number(),
|
|
2248
|
+
message: zod.string()
|
|
2249
|
+
}).strict().describe(
|
|
2250
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
2251
|
+
),
|
|
2252
|
+
zod.object({
|
|
2253
|
+
errorCode: zod.number(),
|
|
2254
|
+
message: zod.string()
|
|
2255
|
+
}).strict().describe(
|
|
2256
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
2257
|
+
)
|
|
2258
|
+
]);
|
|
1130
2259
|
zod.object({
|
|
1131
2260
|
errorCode: zod.number(),
|
|
1132
2261
|
message: zod.string()
|
|
1133
|
-
}).strict();
|
|
2262
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
1134
2263
|
zod.object({
|
|
1135
2264
|
errorCode: zod.number(),
|
|
1136
2265
|
message: zod.string()
|
|
@@ -1150,15 +2279,58 @@ zod.object({
|
|
|
1150
2279
|
zod.object({
|
|
1151
2280
|
errorCode: zod.number(),
|
|
1152
2281
|
message: zod.string()
|
|
1153
|
-
}).strict()
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
2282
|
+
}).strict().describe(
|
|
2283
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
2284
|
+
);
|
|
2285
|
+
zod.union([
|
|
2286
|
+
zod.object({
|
|
2287
|
+
error: zod.string()
|
|
2288
|
+
}).strict().describe("The Authorization header is missing."),
|
|
2289
|
+
zod.object({
|
|
2290
|
+
error: zod.string()
|
|
2291
|
+
}).strict().describe(
|
|
2292
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
2293
|
+
),
|
|
2294
|
+
zod.object({
|
|
2295
|
+
error: zod.string()
|
|
2296
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
2297
|
+
zod.object({
|
|
2298
|
+
error: zod.string()
|
|
2299
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
2300
|
+
zod.object({
|
|
2301
|
+
error: zod.string()
|
|
2302
|
+
}).strict().describe(
|
|
2303
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
2304
|
+
)
|
|
2305
|
+
]);
|
|
2306
|
+
zod.union([
|
|
2307
|
+
zod.object({
|
|
2308
|
+
errorCode: zod.number(),
|
|
2309
|
+
message: zod.string()
|
|
2310
|
+
}).strict().describe(
|
|
2311
|
+
"No test case exists for the given testCaseKey (returned by the web-link and test-script write endpoints)."
|
|
2312
|
+
),
|
|
2313
|
+
zod.object({
|
|
2314
|
+
errorCode: zod.number(),
|
|
2315
|
+
message: zod.string()
|
|
2316
|
+
}).strict().describe("The test case exists but has no attachment metadata."),
|
|
2317
|
+
zod.object({
|
|
2318
|
+
errorCode: zod.number(),
|
|
2319
|
+
message: zod.string()
|
|
2320
|
+
}).strict().describe(
|
|
2321
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
2322
|
+
),
|
|
2323
|
+
zod.object({
|
|
2324
|
+
errorCode: zod.number(),
|
|
2325
|
+
message: zod.string()
|
|
2326
|
+
}).strict().describe(
|
|
2327
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
2328
|
+
)
|
|
2329
|
+
]);
|
|
1158
2330
|
zod.object({
|
|
1159
2331
|
errorCode: zod.number(),
|
|
1160
2332
|
message: zod.string()
|
|
1161
|
-
}).strict();
|
|
2333
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
1162
2334
|
zod.object({
|
|
1163
2335
|
errorCode: zod.number(),
|
|
1164
2336
|
message: zod.string()
|
|
@@ -1896,14 +3068,20 @@ const UpdateTestCycleBody = zod.object({
|
|
|
1896
3068
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
1897
3069
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1898
3070
|
}).strict().describe("ID and link relative to Zephyr project."),
|
|
1899
|
-
jiraProjectVersion: zod.
|
|
3071
|
+
jiraProjectVersion: zod.object({
|
|
3072
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
3073
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
3074
|
+
}).strict().nullish().describe(
|
|
1900
3075
|
"ID and Link to fetch information about Jira Project version. Relates to 'Version' or 'Releases' in Jira projects."
|
|
1901
3076
|
),
|
|
1902
3077
|
status: zod.object({
|
|
1903
3078
|
id: zod.number().min(1).describe("The ID of the entity"),
|
|
1904
3079
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1905
3080
|
}).strict().describe("ID and link to the status resource."),
|
|
1906
|
-
folder: zod.
|
|
3081
|
+
folder: zod.object({
|
|
3082
|
+
id: zod.number().min(1).describe("The ID of the entity"),
|
|
3083
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
3084
|
+
}).strict().nullish().describe("ID and link to the folder resource."),
|
|
1907
3085
|
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
1908
3086
|
plannedStartDate: zod.string().datetime({}).nullish().describe(
|
|
1909
3087
|
"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')"
|
|
@@ -1911,7 +3089,12 @@ const UpdateTestCycleBody = zod.object({
|
|
|
1911
3089
|
plannedEndDate: zod.string().datetime({}).nullish().describe(
|
|
1912
3090
|
"The planned end 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')"
|
|
1913
3091
|
),
|
|
1914
|
-
owner: zod.
|
|
3092
|
+
owner: zod.object({
|
|
3093
|
+
accountId: zod.string().regex(updateTestCycleBodyOwnerAccountIdRegExp).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
3094
|
+
self: zod.string().url().optional().describe(
|
|
3095
|
+
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
3096
|
+
)
|
|
3097
|
+
}).strict().nullish(),
|
|
1915
3098
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1916
3099
|
"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"
|
|
1917
3100
|
)
|
|
@@ -2531,14 +3714,43 @@ zod.object({
|
|
|
2531
3714
|
}).strict()
|
|
2532
3715
|
).optional()
|
|
2533
3716
|
}).strict();
|
|
3717
|
+
zod.union([
|
|
3718
|
+
zod.object({
|
|
3719
|
+
errorCode: zod.number(),
|
|
3720
|
+
message: zod.string()
|
|
3721
|
+
}).strict().describe(
|
|
3722
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
3723
|
+
),
|
|
3724
|
+
zod.object({
|
|
3725
|
+
errorCode: zod.number(),
|
|
3726
|
+
message: zod.string()
|
|
3727
|
+
}).strict().describe("A numeric query parameter was sent with a non-numeric value.")
|
|
3728
|
+
]);
|
|
3729
|
+
zod.union([
|
|
3730
|
+
zod.object({
|
|
3731
|
+
error: zod.string()
|
|
3732
|
+
}).strict().describe("The Authorization header is missing."),
|
|
3733
|
+
zod.object({
|
|
3734
|
+
error: zod.string()
|
|
3735
|
+
}).strict().describe(
|
|
3736
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
3737
|
+
),
|
|
3738
|
+
zod.object({
|
|
3739
|
+
error: zod.string()
|
|
3740
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
3741
|
+
zod.object({
|
|
3742
|
+
error: zod.string()
|
|
3743
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
3744
|
+
zod.object({
|
|
3745
|
+
error: zod.string()
|
|
3746
|
+
}).strict().describe(
|
|
3747
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
3748
|
+
)
|
|
3749
|
+
]);
|
|
2534
3750
|
zod.object({
|
|
2535
3751
|
errorCode: zod.number(),
|
|
2536
3752
|
message: zod.string()
|
|
2537
|
-
}).strict();
|
|
2538
|
-
zod.object({
|
|
2539
|
-
errorCode: zod.number(),
|
|
2540
|
-
message: zod.string()
|
|
2541
|
-
}).strict();
|
|
3753
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2542
3754
|
zod.object({
|
|
2543
3755
|
errorCode: zod.number(),
|
|
2544
3756
|
message: zod.string()
|
|
@@ -2566,14 +3778,141 @@ zod.object({
|
|
|
2566
3778
|
self: zod.string().optional(),
|
|
2567
3779
|
key: zod.string().optional()
|
|
2568
3780
|
}).strict();
|
|
3781
|
+
zod.union([
|
|
3782
|
+
zod.object({
|
|
3783
|
+
errorCode: zod.number(),
|
|
3784
|
+
message: zod.string()
|
|
3785
|
+
}).strict().describe(
|
|
3786
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
3787
|
+
),
|
|
3788
|
+
zod.object({
|
|
3789
|
+
errorCode: zod.number(),
|
|
3790
|
+
message: zod.string()
|
|
3791
|
+
}).strict().describe(
|
|
3792
|
+
"A request body field has the wrong type or format (for example a non-ISO-8601 date)."
|
|
3793
|
+
),
|
|
3794
|
+
zod.object({
|
|
3795
|
+
errorCode: zod.number(),
|
|
3796
|
+
message: zod.string()
|
|
3797
|
+
}).strict().describe("The request body is not valid JSON."),
|
|
3798
|
+
zod.object({
|
|
3799
|
+
errorCode: zod.number(),
|
|
3800
|
+
message: zod.string()
|
|
3801
|
+
}).strict().describe(
|
|
3802
|
+
"The folderId in the body refers to a folder that does not exist."
|
|
3803
|
+
),
|
|
3804
|
+
zod.object({
|
|
3805
|
+
errorCode: zod.number(),
|
|
3806
|
+
message: zod.string()
|
|
3807
|
+
}).strict().describe("The labels array contains more than the maximum of 50 items."),
|
|
3808
|
+
zod.object({
|
|
3809
|
+
errorCode: zod.number(),
|
|
3810
|
+
message: zod.string()
|
|
3811
|
+
}).strict().describe("The labels array contains an empty or blank label."),
|
|
3812
|
+
zod.object({
|
|
3813
|
+
errorCode: zod.number(),
|
|
3814
|
+
message: zod.string()
|
|
3815
|
+
}).strict().describe(
|
|
3816
|
+
"A label in the labels array contains spaces, which is not allowed."
|
|
3817
|
+
),
|
|
3818
|
+
zod.object({
|
|
3819
|
+
errorCode: zod.number(),
|
|
3820
|
+
message: zod.string()
|
|
3821
|
+
}).strict().describe(
|
|
3822
|
+
"A custom field name in the body does not exist for the project."
|
|
3823
|
+
),
|
|
3824
|
+
zod.object({
|
|
3825
|
+
errorCode: zod.number(),
|
|
3826
|
+
message: zod.string()
|
|
3827
|
+
}).strict().describe(
|
|
3828
|
+
'A custom field value has the wrong type for the field definition. The message names the field and the expected type, e.g. "requires a number value", "requires a string value", "requires a boolean value", "requires a string which is in the format yyyy-MM-dd", or "requires a list".\n'
|
|
3829
|
+
),
|
|
3830
|
+
zod.object({
|
|
3831
|
+
errorCode: zod.number(),
|
|
3832
|
+
message: zod.string()
|
|
3833
|
+
}).strict().describe(
|
|
3834
|
+
"A choice custom field value references an option name that does not exist."
|
|
3835
|
+
),
|
|
3836
|
+
zod.object({
|
|
3837
|
+
errorCode: zod.number(),
|
|
3838
|
+
message: zod.string()
|
|
3839
|
+
}).strict().describe(
|
|
3840
|
+
"The project has required custom fields but the request omitted them."
|
|
3841
|
+
),
|
|
3842
|
+
zod.object({
|
|
3843
|
+
errorCode: zod.number(),
|
|
3844
|
+
message: zod.string()
|
|
3845
|
+
}).strict().describe(
|
|
3846
|
+
"Custom fields were provided but not all required ones are present."
|
|
3847
|
+
),
|
|
3848
|
+
zod.object({
|
|
3849
|
+
errorCode: zod.number(),
|
|
3850
|
+
message: zod.string()
|
|
3851
|
+
}).strict().describe(
|
|
3852
|
+
"A required custom field was provided with a null or empty value."
|
|
3853
|
+
),
|
|
3854
|
+
zod.object({
|
|
3855
|
+
errorCode: zod.number(),
|
|
3856
|
+
message: zod.string()
|
|
3857
|
+
}).strict().describe(
|
|
3858
|
+
"A required multi-choice custom field was set to an empty collection."
|
|
3859
|
+
)
|
|
3860
|
+
]);
|
|
3861
|
+
zod.union([
|
|
3862
|
+
zod.object({
|
|
3863
|
+
error: zod.string()
|
|
3864
|
+
}).strict().describe("The Authorization header is missing."),
|
|
3865
|
+
zod.object({
|
|
3866
|
+
error: zod.string()
|
|
3867
|
+
}).strict().describe(
|
|
3868
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
3869
|
+
),
|
|
3870
|
+
zod.object({
|
|
3871
|
+
error: zod.string()
|
|
3872
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
3873
|
+
zod.object({
|
|
3874
|
+
error: zod.string()
|
|
3875
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
3876
|
+
zod.object({
|
|
3877
|
+
error: zod.string()
|
|
3878
|
+
}).strict().describe(
|
|
3879
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
3880
|
+
)
|
|
3881
|
+
]);
|
|
2569
3882
|
zod.object({
|
|
2570
3883
|
errorCode: zod.number(),
|
|
2571
3884
|
message: zod.string()
|
|
2572
|
-
}).strict()
|
|
3885
|
+
}).strict().describe(
|
|
3886
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
3887
|
+
);
|
|
3888
|
+
zod.union([
|
|
3889
|
+
zod.object({
|
|
3890
|
+
errorCode: zod.number(),
|
|
3891
|
+
message: zod.string()
|
|
3892
|
+
}).strict().describe(
|
|
3893
|
+
"The projectKey filter refers to a project that does not exist or is deactivated."
|
|
3894
|
+
),
|
|
3895
|
+
zod.object({
|
|
3896
|
+
errorCode: zod.number(),
|
|
3897
|
+
message: zod.string()
|
|
3898
|
+
}).strict().describe("The statusName does not exist for the project."),
|
|
3899
|
+
zod.object({
|
|
3900
|
+
errorCode: zod.number(),
|
|
3901
|
+
message: zod.string()
|
|
3902
|
+
}).strict().describe(
|
|
3903
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
3904
|
+
),
|
|
3905
|
+
zod.object({
|
|
3906
|
+
errorCode: zod.number(),
|
|
3907
|
+
message: zod.string()
|
|
3908
|
+
}).strict().describe(
|
|
3909
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
3910
|
+
)
|
|
3911
|
+
]);
|
|
2573
3912
|
zod.object({
|
|
2574
3913
|
errorCode: zod.number(),
|
|
2575
3914
|
message: zod.string()
|
|
2576
|
-
}).strict();
|
|
3915
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2577
3916
|
zod.object({
|
|
2578
3917
|
errorCode: zod.number(),
|
|
2579
3918
|
message: zod.string()
|
|
@@ -2583,7 +3922,7 @@ const listTestPlansCursorPaginatedQueryLimitDefault = 10;
|
|
|
2583
3922
|
const listTestPlansCursorPaginatedQueryLimitMax = 1e3;
|
|
2584
3923
|
const listTestPlansCursorPaginatedQueryStartAtIdDefault = 0;
|
|
2585
3924
|
const listTestPlansCursorPaginatedQueryStartAtIdMin = 0;
|
|
2586
|
-
zod.object({
|
|
3925
|
+
const ListTestPlansCursorPaginatedQueryParams = zod.object({
|
|
2587
3926
|
projectKey: zod.string().regex(listTestPlansCursorPaginatedQueryProjectKeyRegExp).optional().describe("Jira project key filter"),
|
|
2588
3927
|
limit: zod.number().min(1).max(listTestPlansCursorPaginatedQueryLimitMax).default(listTestPlansCursorPaginatedQueryLimitDefault).describe(
|
|
2589
3928
|
"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"
|
|
@@ -2600,7 +3939,7 @@ const listTestPlansCursorPaginated200ResponseTwoValuesItemNameMax = 255;
|
|
|
2600
3939
|
const listTestPlansCursorPaginated200ResponseTwoValuesItemNameRegExp = /^(?!\\s*$).+/;
|
|
2601
3940
|
const listTestPlansCursorPaginated200ResponseTwoValuesItemOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
2602
3941
|
const listTestPlansCursorPaginated200ResponseTwoValuesItemLabelsMax = 50;
|
|
2603
|
-
zod.object({
|
|
3942
|
+
const ListTestPlansCursorPaginated200Response = zod.object({
|
|
2604
3943
|
next: zod.string().url().nullish(),
|
|
2605
3944
|
nextStartAtId: zod.number().min(listTestPlansCursorPaginated200ResponseOneNextStartAtIdMin).nullable(),
|
|
2606
3945
|
limit: zod.number().min(listTestPlansCursorPaginated200ResponseOneLimitMin),
|
|
@@ -2690,6 +4029,43 @@ zod.object({
|
|
|
2690
4029
|
}).strict()
|
|
2691
4030
|
).optional()
|
|
2692
4031
|
}).strict();
|
|
4032
|
+
zod.union([
|
|
4033
|
+
zod.object({
|
|
4034
|
+
errorCode: zod.number(),
|
|
4035
|
+
message: zod.string()
|
|
4036
|
+
}).strict().describe(
|
|
4037
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
4038
|
+
),
|
|
4039
|
+
zod.object({
|
|
4040
|
+
errorCode: zod.number(),
|
|
4041
|
+
message: zod.string()
|
|
4042
|
+
}).strict().describe("A numeric query parameter was sent with a non-numeric value.")
|
|
4043
|
+
]);
|
|
4044
|
+
zod.union([
|
|
4045
|
+
zod.object({
|
|
4046
|
+
error: zod.string()
|
|
4047
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4048
|
+
zod.object({
|
|
4049
|
+
error: zod.string()
|
|
4050
|
+
}).strict().describe(
|
|
4051
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4052
|
+
),
|
|
4053
|
+
zod.object({
|
|
4054
|
+
error: zod.string()
|
|
4055
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4056
|
+
zod.object({
|
|
4057
|
+
error: zod.string()
|
|
4058
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4059
|
+
zod.object({
|
|
4060
|
+
error: zod.string()
|
|
4061
|
+
}).strict().describe(
|
|
4062
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4063
|
+
)
|
|
4064
|
+
]);
|
|
4065
|
+
zod.object({
|
|
4066
|
+
errorCode: zod.number(),
|
|
4067
|
+
message: zod.string()
|
|
4068
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2693
4069
|
zod.object({
|
|
2694
4070
|
errorCode: zod.number(),
|
|
2695
4071
|
message: zod.string()
|
|
@@ -2777,15 +4153,52 @@ zod.object({
|
|
|
2777
4153
|
zod.object({
|
|
2778
4154
|
errorCode: zod.number(),
|
|
2779
4155
|
message: zod.string()
|
|
2780
|
-
}).strict()
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
4156
|
+
}).strict().describe(
|
|
4157
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
4158
|
+
);
|
|
4159
|
+
zod.union([
|
|
4160
|
+
zod.object({
|
|
4161
|
+
error: zod.string()
|
|
4162
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4163
|
+
zod.object({
|
|
4164
|
+
error: zod.string()
|
|
4165
|
+
}).strict().describe(
|
|
4166
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4167
|
+
),
|
|
4168
|
+
zod.object({
|
|
4169
|
+
error: zod.string()
|
|
4170
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4171
|
+
zod.object({
|
|
4172
|
+
error: zod.string()
|
|
4173
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4174
|
+
zod.object({
|
|
4175
|
+
error: zod.string()
|
|
4176
|
+
}).strict().describe(
|
|
4177
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4178
|
+
)
|
|
4179
|
+
]);
|
|
4180
|
+
zod.union([
|
|
4181
|
+
zod.object({
|
|
4182
|
+
errorCode: zod.number(),
|
|
4183
|
+
message: zod.string()
|
|
4184
|
+
}).strict().describe("No test plan exists for the given ID or key."),
|
|
4185
|
+
zod.object({
|
|
4186
|
+
errorCode: zod.number(),
|
|
4187
|
+
message: zod.string()
|
|
4188
|
+
}).strict().describe(
|
|
4189
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
4190
|
+
),
|
|
4191
|
+
zod.object({
|
|
4192
|
+
errorCode: zod.number(),
|
|
4193
|
+
message: zod.string()
|
|
4194
|
+
}).strict().describe(
|
|
4195
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
4196
|
+
)
|
|
4197
|
+
]);
|
|
2785
4198
|
zod.object({
|
|
2786
4199
|
errorCode: zod.number(),
|
|
2787
4200
|
message: zod.string()
|
|
2788
|
-
}).strict();
|
|
4201
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2789
4202
|
zod.object({
|
|
2790
4203
|
errorCode: zod.number(),
|
|
2791
4204
|
message: zod.string()
|
|
@@ -2804,18 +4217,77 @@ zod.object({
|
|
|
2804
4217
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
2805
4218
|
self: zod.string().optional()
|
|
2806
4219
|
}).strict();
|
|
4220
|
+
zod.union([
|
|
4221
|
+
zod.object({
|
|
4222
|
+
errorCode: zod.number(),
|
|
4223
|
+
message: zod.string()
|
|
4224
|
+
}).strict().describe(
|
|
4225
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
4226
|
+
),
|
|
4227
|
+
zod.object({
|
|
4228
|
+
errorCode: zod.number(),
|
|
4229
|
+
message: zod.string()
|
|
4230
|
+
}).strict().describe(
|
|
4231
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
4232
|
+
),
|
|
4233
|
+
zod.object({
|
|
4234
|
+
errorCode: zod.number(),
|
|
4235
|
+
message: zod.string()
|
|
4236
|
+
}).strict().describe("The request body is not valid JSON.")
|
|
4237
|
+
]);
|
|
4238
|
+
zod.union([
|
|
4239
|
+
zod.object({
|
|
4240
|
+
error: zod.string()
|
|
4241
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4242
|
+
zod.object({
|
|
4243
|
+
error: zod.string()
|
|
4244
|
+
}).strict().describe(
|
|
4245
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4246
|
+
),
|
|
4247
|
+
zod.object({
|
|
4248
|
+
error: zod.string()
|
|
4249
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4250
|
+
zod.object({
|
|
4251
|
+
error: zod.string()
|
|
4252
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4253
|
+
zod.object({
|
|
4254
|
+
error: zod.string()
|
|
4255
|
+
}).strict().describe(
|
|
4256
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4257
|
+
)
|
|
4258
|
+
]);
|
|
2807
4259
|
zod.object({
|
|
2808
4260
|
errorCode: zod.number(),
|
|
2809
4261
|
message: zod.string()
|
|
2810
|
-
}).strict()
|
|
4262
|
+
}).strict().describe(
|
|
4263
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
4264
|
+
);
|
|
4265
|
+
zod.union([
|
|
4266
|
+
zod.object({
|
|
4267
|
+
errorCode: zod.number(),
|
|
4268
|
+
message: zod.string()
|
|
4269
|
+
}).strict().describe("No test plan exists for the given ID or key."),
|
|
4270
|
+
zod.object({
|
|
4271
|
+
errorCode: zod.number(),
|
|
4272
|
+
message: zod.string()
|
|
4273
|
+
}).strict().describe(
|
|
4274
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
4275
|
+
),
|
|
4276
|
+
zod.object({
|
|
4277
|
+
errorCode: zod.number(),
|
|
4278
|
+
message: zod.string()
|
|
4279
|
+
}).strict().describe(
|
|
4280
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
4281
|
+
)
|
|
4282
|
+
]);
|
|
2811
4283
|
zod.object({
|
|
2812
4284
|
errorCode: zod.number(),
|
|
2813
4285
|
message: zod.string()
|
|
2814
|
-
}).strict();
|
|
4286
|
+
}).strict().describe("A web link with the same URL already exists on the test plan.");
|
|
2815
4287
|
zod.object({
|
|
2816
4288
|
errorCode: zod.number(),
|
|
2817
4289
|
message: zod.string()
|
|
2818
|
-
}).strict();
|
|
4290
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2819
4291
|
zod.object({
|
|
2820
4292
|
errorCode: zod.number(),
|
|
2821
4293
|
message: zod.string()
|
|
@@ -2833,18 +4305,85 @@ zod.object({
|
|
|
2833
4305
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
2834
4306
|
self: zod.string().optional()
|
|
2835
4307
|
}).strict();
|
|
4308
|
+
zod.union([
|
|
4309
|
+
zod.object({
|
|
4310
|
+
errorCode: zod.number(),
|
|
4311
|
+
message: zod.string()
|
|
4312
|
+
}).strict().describe(
|
|
4313
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
4314
|
+
),
|
|
4315
|
+
zod.object({
|
|
4316
|
+
errorCode: zod.number(),
|
|
4317
|
+
message: zod.string()
|
|
4318
|
+
}).strict().describe(
|
|
4319
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
4320
|
+
),
|
|
4321
|
+
zod.object({
|
|
4322
|
+
errorCode: zod.number(),
|
|
4323
|
+
message: zod.string()
|
|
4324
|
+
}).strict().describe("The request body is not valid JSON.")
|
|
4325
|
+
]);
|
|
4326
|
+
zod.union([
|
|
4327
|
+
zod.object({
|
|
4328
|
+
error: zod.string()
|
|
4329
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4330
|
+
zod.object({
|
|
4331
|
+
error: zod.string()
|
|
4332
|
+
}).strict().describe(
|
|
4333
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4334
|
+
),
|
|
4335
|
+
zod.object({
|
|
4336
|
+
error: zod.string()
|
|
4337
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4338
|
+
zod.object({
|
|
4339
|
+
error: zod.string()
|
|
4340
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4341
|
+
zod.object({
|
|
4342
|
+
error: zod.string()
|
|
4343
|
+
}).strict().describe(
|
|
4344
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4345
|
+
)
|
|
4346
|
+
]);
|
|
2836
4347
|
zod.object({
|
|
2837
4348
|
errorCode: zod.number(),
|
|
2838
4349
|
message: zod.string()
|
|
2839
|
-
}).strict()
|
|
4350
|
+
}).strict().describe(
|
|
4351
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
4352
|
+
);
|
|
4353
|
+
zod.union([
|
|
4354
|
+
zod.object({
|
|
4355
|
+
errorCode: zod.number(),
|
|
4356
|
+
message: zod.string()
|
|
4357
|
+
}).strict().describe("No test plan exists for the given ID or key."),
|
|
4358
|
+
zod.object({
|
|
4359
|
+
errorCode: zod.number(),
|
|
4360
|
+
message: zod.string()
|
|
4361
|
+
}).strict().describe(
|
|
4362
|
+
"A referenced Jira entity (e.g. jiraProjectVersion) does not exist or is not accessible."
|
|
4363
|
+
),
|
|
4364
|
+
zod.object({
|
|
4365
|
+
errorCode: zod.number(),
|
|
4366
|
+
message: zod.string()
|
|
4367
|
+
}).strict().describe(
|
|
4368
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
4369
|
+
),
|
|
4370
|
+
zod.object({
|
|
4371
|
+
errorCode: zod.number(),
|
|
4372
|
+
message: zod.string()
|
|
4373
|
+
}).strict().describe(
|
|
4374
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
4375
|
+
)
|
|
4376
|
+
]);
|
|
2840
4377
|
zod.object({
|
|
2841
4378
|
errorCode: zod.number(),
|
|
2842
4379
|
message: zod.string()
|
|
2843
|
-
}).strict()
|
|
4380
|
+
}).strict().describe(
|
|
4381
|
+
"An issue link with the same issueId already exists on the entity."
|
|
4382
|
+
);
|
|
2844
4383
|
zod.object({
|
|
2845
4384
|
errorCode: zod.number(),
|
|
2846
4385
|
message: zod.string()
|
|
2847
|
-
}).strict();
|
|
4386
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2848
4387
|
zod.object({
|
|
2849
4388
|
errorCode: zod.number(),
|
|
2850
4389
|
message: zod.string()
|
|
@@ -2863,18 +4402,81 @@ zod.object({
|
|
|
2863
4402
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
2864
4403
|
self: zod.string().optional()
|
|
2865
4404
|
}).strict();
|
|
4405
|
+
zod.union([
|
|
4406
|
+
zod.object({
|
|
4407
|
+
errorCode: zod.number(),
|
|
4408
|
+
message: zod.string()
|
|
4409
|
+
}).strict().describe(
|
|
4410
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
4411
|
+
),
|
|
4412
|
+
zod.object({
|
|
4413
|
+
errorCode: zod.number(),
|
|
4414
|
+
message: zod.string()
|
|
4415
|
+
}).strict().describe(
|
|
4416
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
4417
|
+
),
|
|
4418
|
+
zod.object({
|
|
4419
|
+
errorCode: zod.number(),
|
|
4420
|
+
message: zod.string()
|
|
4421
|
+
}).strict().describe("The request body is not valid JSON.")
|
|
4422
|
+
]);
|
|
4423
|
+
zod.union([
|
|
4424
|
+
zod.object({
|
|
4425
|
+
error: zod.string()
|
|
4426
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4427
|
+
zod.object({
|
|
4428
|
+
error: zod.string()
|
|
4429
|
+
}).strict().describe(
|
|
4430
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4431
|
+
),
|
|
4432
|
+
zod.object({
|
|
4433
|
+
error: zod.string()
|
|
4434
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4435
|
+
zod.object({
|
|
4436
|
+
error: zod.string()
|
|
4437
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4438
|
+
zod.object({
|
|
4439
|
+
error: zod.string()
|
|
4440
|
+
}).strict().describe(
|
|
4441
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4442
|
+
)
|
|
4443
|
+
]);
|
|
2866
4444
|
zod.object({
|
|
2867
4445
|
errorCode: zod.number(),
|
|
2868
4446
|
message: zod.string()
|
|
2869
|
-
}).strict()
|
|
4447
|
+
}).strict().describe(
|
|
4448
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
4449
|
+
);
|
|
4450
|
+
zod.union([
|
|
4451
|
+
zod.object({
|
|
4452
|
+
errorCode: zod.number(),
|
|
4453
|
+
message: zod.string()
|
|
4454
|
+
}).strict().describe("No test plan exists for the given ID or key."),
|
|
4455
|
+
zod.object({
|
|
4456
|
+
errorCode: zod.number(),
|
|
4457
|
+
message: zod.string()
|
|
4458
|
+
}).strict().describe("No test cycle exists with the given id or key."),
|
|
4459
|
+
zod.object({
|
|
4460
|
+
errorCode: zod.number(),
|
|
4461
|
+
message: zod.string()
|
|
4462
|
+
}).strict().describe(
|
|
4463
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
4464
|
+
),
|
|
4465
|
+
zod.object({
|
|
4466
|
+
errorCode: zod.number(),
|
|
4467
|
+
message: zod.string()
|
|
4468
|
+
}).strict().describe(
|
|
4469
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
4470
|
+
)
|
|
4471
|
+
]);
|
|
2870
4472
|
zod.object({
|
|
2871
4473
|
errorCode: zod.number(),
|
|
2872
4474
|
message: zod.string()
|
|
2873
|
-
}).strict();
|
|
4475
|
+
}).strict().describe("A link to the same test cycle already exists on the entity.");
|
|
2874
4476
|
zod.object({
|
|
2875
4477
|
errorCode: zod.number(),
|
|
2876
4478
|
message: zod.string()
|
|
2877
|
-
}).strict();
|
|
4479
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2878
4480
|
zod.object({
|
|
2879
4481
|
errorCode: zod.number(),
|
|
2880
4482
|
message: zod.string()
|
|
@@ -2886,28 +4488,58 @@ zod.object({
|
|
|
2886
4488
|
),
|
|
2887
4489
|
attachmentId: zod.number().min(1).describe("The numeric ID of the attachment.")
|
|
2888
4490
|
}).strict();
|
|
4491
|
+
zod.union([
|
|
4492
|
+
zod.object({
|
|
4493
|
+
errorCode: zod.number(),
|
|
4494
|
+
message: zod.string()
|
|
4495
|
+
}).strict().describe(
|
|
4496
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
4497
|
+
),
|
|
4498
|
+
zod.object({
|
|
4499
|
+
errorCode: zod.number(),
|
|
4500
|
+
message: zod.string()
|
|
4501
|
+
}).strict().describe(
|
|
4502
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
4503
|
+
),
|
|
4504
|
+
zod.object({
|
|
4505
|
+
errorCode: zod.number(),
|
|
4506
|
+
message: zod.string()
|
|
4507
|
+
}).strict().describe(
|
|
4508
|
+
"A numeric path parameter was sent with a non-numeric value (for example a non-numeric test case version)."
|
|
4509
|
+
)
|
|
4510
|
+
]);
|
|
4511
|
+
zod.union([
|
|
4512
|
+
zod.object({
|
|
4513
|
+
error: zod.string()
|
|
4514
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4515
|
+
zod.object({
|
|
4516
|
+
error: zod.string()
|
|
4517
|
+
}).strict().describe(
|
|
4518
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4519
|
+
),
|
|
4520
|
+
zod.object({
|
|
4521
|
+
error: zod.string()
|
|
4522
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4523
|
+
zod.object({
|
|
4524
|
+
error: zod.string()
|
|
4525
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4526
|
+
zod.object({
|
|
4527
|
+
error: zod.string()
|
|
4528
|
+
}).strict().describe(
|
|
4529
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4530
|
+
)
|
|
4531
|
+
]);
|
|
2889
4532
|
zod.object({
|
|
2890
4533
|
errorCode: zod.number(),
|
|
2891
4534
|
message: zod.string()
|
|
2892
|
-
}).strict();
|
|
2893
|
-
zod.object({
|
|
2894
|
-
errorCode: zod.number(),
|
|
2895
|
-
message: zod.string()
|
|
2896
|
-
}).strict();
|
|
2897
|
-
zod.object({
|
|
2898
|
-
errorCode: zod.number(),
|
|
2899
|
-
message: zod.string()
|
|
2900
|
-
}).strict();
|
|
2901
|
-
zod.object({
|
|
2902
|
-
errorCode: zod.number(),
|
|
2903
|
-
message: zod.string()
|
|
2904
|
-
}).strict();
|
|
4535
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2905
4536
|
zod.object({
|
|
2906
4537
|
errorCode: zod.number(),
|
|
2907
4538
|
message: zod.string()
|
|
2908
4539
|
}).strict();
|
|
4540
|
+
const getTestPlanAttachmentsReferencePathTestPlanIdOrKeyRegExp = /([0-9]+)|(.+-P[0-9]+)/;
|
|
2909
4541
|
zod.object({
|
|
2910
|
-
testPlanIdOrKey: zod.string().describe(
|
|
4542
|
+
testPlanIdOrKey: zod.string().regex(getTestPlanAttachmentsReferencePathTestPlanIdOrKeyRegExp).describe(
|
|
2911
4543
|
"The ID or key of the test plan. Test plan keys are of the format [A-Z]+-P[0-9]+"
|
|
2912
4544
|
)
|
|
2913
4545
|
}).strict();
|
|
@@ -2922,15 +4554,56 @@ zod.object({
|
|
|
2922
4554
|
zod.object({
|
|
2923
4555
|
errorCode: zod.number(),
|
|
2924
4556
|
message: zod.string()
|
|
2925
|
-
}).strict()
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
4557
|
+
}).strict().describe(
|
|
4558
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
4559
|
+
);
|
|
4560
|
+
zod.union([
|
|
4561
|
+
zod.object({
|
|
4562
|
+
error: zod.string()
|
|
4563
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4564
|
+
zod.object({
|
|
4565
|
+
error: zod.string()
|
|
4566
|
+
}).strict().describe(
|
|
4567
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4568
|
+
),
|
|
4569
|
+
zod.object({
|
|
4570
|
+
error: zod.string()
|
|
4571
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4572
|
+
zod.object({
|
|
4573
|
+
error: zod.string()
|
|
4574
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4575
|
+
zod.object({
|
|
4576
|
+
error: zod.string()
|
|
4577
|
+
}).strict().describe(
|
|
4578
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4579
|
+
)
|
|
4580
|
+
]);
|
|
4581
|
+
zod.union([
|
|
4582
|
+
zod.object({
|
|
4583
|
+
errorCode: zod.number(),
|
|
4584
|
+
message: zod.string()
|
|
4585
|
+
}).strict().describe("No test plan exists for the given ID or key."),
|
|
4586
|
+
zod.object({
|
|
4587
|
+
errorCode: zod.number(),
|
|
4588
|
+
message: zod.string()
|
|
4589
|
+
}).strict().describe("The test plan exists but has no attachment metadata."),
|
|
4590
|
+
zod.object({
|
|
4591
|
+
errorCode: zod.number(),
|
|
4592
|
+
message: zod.string()
|
|
4593
|
+
}).strict().describe(
|
|
4594
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
4595
|
+
),
|
|
4596
|
+
zod.object({
|
|
4597
|
+
errorCode: zod.number(),
|
|
4598
|
+
message: zod.string()
|
|
4599
|
+
}).strict().describe(
|
|
4600
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
4601
|
+
)
|
|
4602
|
+
]);
|
|
2930
4603
|
zod.object({
|
|
2931
4604
|
errorCode: zod.number(),
|
|
2932
4605
|
message: zod.string()
|
|
2933
|
-
}).strict();
|
|
4606
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2934
4607
|
zod.object({
|
|
2935
4608
|
errorCode: zod.number(),
|
|
2936
4609
|
message: zod.string()
|
|
@@ -2945,30 +4618,45 @@ zod.object({
|
|
|
2945
4618
|
"The name of the file being uploaded, including its extension (for example, `screenshot.png`).\nThis is used as the attachment's display name. URL-encode any special characters and keep\nthe name to 255 characters or fewer.\n"
|
|
2946
4619
|
)
|
|
2947
4620
|
}).strict();
|
|
4621
|
+
zod.union([
|
|
4622
|
+
zod.object({
|
|
4623
|
+
errorCode: zod.number(),
|
|
4624
|
+
message: zod.string()
|
|
4625
|
+
}).strict().describe(
|
|
4626
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
4627
|
+
),
|
|
4628
|
+
zod.object({
|
|
4629
|
+
errorCode: zod.number(),
|
|
4630
|
+
message: zod.string()
|
|
4631
|
+
}).strict().describe(
|
|
4632
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
4633
|
+
)
|
|
4634
|
+
]);
|
|
4635
|
+
zod.union([
|
|
4636
|
+
zod.object({
|
|
4637
|
+
error: zod.string()
|
|
4638
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4639
|
+
zod.object({
|
|
4640
|
+
error: zod.string()
|
|
4641
|
+
}).strict().describe(
|
|
4642
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4643
|
+
),
|
|
4644
|
+
zod.object({
|
|
4645
|
+
error: zod.string()
|
|
4646
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4647
|
+
zod.object({
|
|
4648
|
+
error: zod.string()
|
|
4649
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4650
|
+
zod.object({
|
|
4651
|
+
error: zod.string()
|
|
4652
|
+
}).strict().describe(
|
|
4653
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4654
|
+
)
|
|
4655
|
+
]);
|
|
2948
4656
|
zod.object({
|
|
2949
4657
|
errorCode: zod.number(),
|
|
2950
4658
|
message: zod.string()
|
|
2951
|
-
}).strict();
|
|
2952
|
-
zod.object({
|
|
2953
|
-
errorCode: zod.number(),
|
|
2954
|
-
message: zod.string()
|
|
2955
|
-
}).strict();
|
|
2956
|
-
zod.object({
|
|
2957
|
-
errorCode: zod.number(),
|
|
2958
|
-
message: zod.string()
|
|
2959
|
-
}).strict();
|
|
2960
|
-
zod.object({
|
|
2961
|
-
errorCode: zod.number(),
|
|
2962
|
-
message: zod.string()
|
|
2963
|
-
}).strict();
|
|
2964
|
-
zod.object({
|
|
2965
|
-
errorCode: zod.number(),
|
|
2966
|
-
message: zod.string()
|
|
2967
|
-
}).strict();
|
|
2968
|
-
zod.object({
|
|
2969
|
-
errorCode: zod.number(),
|
|
2970
|
-
message: zod.string()
|
|
2971
|
-
}).strict();
|
|
4659
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
2972
4660
|
zod.object({
|
|
2973
4661
|
errorCode: zod.number(),
|
|
2974
4662
|
message: zod.string()
|
|
@@ -3112,14 +4800,43 @@ zod.object({
|
|
|
3112
4800
|
}).strict()
|
|
3113
4801
|
).optional()
|
|
3114
4802
|
}).strict();
|
|
4803
|
+
zod.union([
|
|
4804
|
+
zod.object({
|
|
4805
|
+
errorCode: zod.number(),
|
|
4806
|
+
message: zod.string()
|
|
4807
|
+
}).strict().describe(
|
|
4808
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
4809
|
+
),
|
|
4810
|
+
zod.object({
|
|
4811
|
+
errorCode: zod.number(),
|
|
4812
|
+
message: zod.string()
|
|
4813
|
+
}).strict().describe("A numeric query parameter was sent with a non-numeric value.")
|
|
4814
|
+
]);
|
|
4815
|
+
zod.union([
|
|
4816
|
+
zod.object({
|
|
4817
|
+
error: zod.string()
|
|
4818
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4819
|
+
zod.object({
|
|
4820
|
+
error: zod.string()
|
|
4821
|
+
}).strict().describe(
|
|
4822
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4823
|
+
),
|
|
4824
|
+
zod.object({
|
|
4825
|
+
error: zod.string()
|
|
4826
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4827
|
+
zod.object({
|
|
4828
|
+
error: zod.string()
|
|
4829
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4830
|
+
zod.object({
|
|
4831
|
+
error: zod.string()
|
|
4832
|
+
}).strict().describe(
|
|
4833
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4834
|
+
)
|
|
4835
|
+
]);
|
|
3115
4836
|
zod.object({
|
|
3116
4837
|
errorCode: zod.number(),
|
|
3117
4838
|
message: zod.string()
|
|
3118
|
-
}).strict();
|
|
3119
|
-
zod.object({
|
|
3120
|
-
errorCode: zod.number(),
|
|
3121
|
-
message: zod.string()
|
|
3122
|
-
}).strict();
|
|
4839
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3123
4840
|
zod.object({
|
|
3124
4841
|
errorCode: zod.number(),
|
|
3125
4842
|
message: zod.string()
|
|
@@ -3166,14 +4883,119 @@ const CreateTestExecution201Response = zod.object({
|
|
|
3166
4883
|
id: zod.number().min(1).optional().describe("The ID of the entity"),
|
|
3167
4884
|
self: zod.string().optional()
|
|
3168
4885
|
}).strict();
|
|
4886
|
+
zod.union([
|
|
4887
|
+
zod.object({
|
|
4888
|
+
errorCode: zod.number(),
|
|
4889
|
+
message: zod.string()
|
|
4890
|
+
}).strict().describe(
|
|
4891
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
4892
|
+
),
|
|
4893
|
+
zod.object({
|
|
4894
|
+
errorCode: zod.number(),
|
|
4895
|
+
message: zod.string()
|
|
4896
|
+
}).strict().describe("The request body is not valid JSON."),
|
|
4897
|
+
zod.object({
|
|
4898
|
+
errorCode: zod.number(),
|
|
4899
|
+
message: zod.string()
|
|
4900
|
+
}).strict().describe(
|
|
4901
|
+
"A custom field name in the body does not exist for the project."
|
|
4902
|
+
),
|
|
4903
|
+
zod.object({
|
|
4904
|
+
errorCode: zod.number(),
|
|
4905
|
+
message: zod.string()
|
|
4906
|
+
}).strict().describe(
|
|
4907
|
+
'A custom field value has the wrong type for the field definition. The message names the field and the expected type, e.g. "requires a number value", "requires a string value", "requires a boolean value", "requires a string which is in the format yyyy-MM-dd", or "requires a list".\n'
|
|
4908
|
+
),
|
|
4909
|
+
zod.object({
|
|
4910
|
+
errorCode: zod.number(),
|
|
4911
|
+
message: zod.string()
|
|
4912
|
+
}).strict().describe(
|
|
4913
|
+
"The statusName provided for creating a test execution does not exist in the project."
|
|
4914
|
+
),
|
|
4915
|
+
zod.object({
|
|
4916
|
+
errorCode: zod.number(),
|
|
4917
|
+
message: zod.string()
|
|
4918
|
+
}).strict().describe(
|
|
4919
|
+
"The project has required custom fields but the request omitted them."
|
|
4920
|
+
),
|
|
4921
|
+
zod.object({
|
|
4922
|
+
errorCode: zod.number(),
|
|
4923
|
+
message: zod.string()
|
|
4924
|
+
}).strict().describe(
|
|
4925
|
+
"Custom fields were provided but not all required ones are present."
|
|
4926
|
+
),
|
|
4927
|
+
zod.object({
|
|
4928
|
+
errorCode: zod.number(),
|
|
4929
|
+
message: zod.string()
|
|
4930
|
+
}).strict().describe(
|
|
4931
|
+
"A required custom field was provided with a null or empty value."
|
|
4932
|
+
),
|
|
4933
|
+
zod.object({
|
|
4934
|
+
errorCode: zod.number(),
|
|
4935
|
+
message: zod.string()
|
|
4936
|
+
}).strict().describe(
|
|
4937
|
+
"A required multi-choice custom field was set to an empty collection."
|
|
4938
|
+
)
|
|
4939
|
+
]);
|
|
4940
|
+
zod.union([
|
|
4941
|
+
zod.object({
|
|
4942
|
+
error: zod.string()
|
|
4943
|
+
}).strict().describe("The Authorization header is missing."),
|
|
4944
|
+
zod.object({
|
|
4945
|
+
error: zod.string()
|
|
4946
|
+
}).strict().describe(
|
|
4947
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
4948
|
+
),
|
|
4949
|
+
zod.object({
|
|
4950
|
+
error: zod.string()
|
|
4951
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
4952
|
+
zod.object({
|
|
4953
|
+
error: zod.string()
|
|
4954
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
4955
|
+
zod.object({
|
|
4956
|
+
error: zod.string()
|
|
4957
|
+
}).strict().describe(
|
|
4958
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
4959
|
+
)
|
|
4960
|
+
]);
|
|
3169
4961
|
zod.object({
|
|
3170
4962
|
errorCode: zod.number(),
|
|
3171
4963
|
message: zod.string()
|
|
3172
|
-
}).strict()
|
|
4964
|
+
}).strict().describe(
|
|
4965
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
4966
|
+
);
|
|
4967
|
+
zod.union([
|
|
4968
|
+
zod.object({
|
|
4969
|
+
errorCode: zod.number(),
|
|
4970
|
+
message: zod.string()
|
|
4971
|
+
}).strict().describe("No test case exists for the given testCaseKey."),
|
|
4972
|
+
zod.object({
|
|
4973
|
+
errorCode: zod.number(),
|
|
4974
|
+
message: zod.string()
|
|
4975
|
+
}).strict().describe("No test cycle exists with the given id or key."),
|
|
4976
|
+
zod.object({
|
|
4977
|
+
errorCode: zod.number(),
|
|
4978
|
+
message: zod.string()
|
|
4979
|
+
}).strict().describe(
|
|
4980
|
+
"The projectKey filter refers to a project that does not exist or is deactivated."
|
|
4981
|
+
),
|
|
4982
|
+
zod.object({
|
|
4983
|
+
errorCode: zod.number(),
|
|
4984
|
+
message: zod.string()
|
|
4985
|
+
}).strict().describe(
|
|
4986
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
4987
|
+
),
|
|
4988
|
+
zod.object({
|
|
4989
|
+
errorCode: zod.number(),
|
|
4990
|
+
message: zod.string()
|
|
4991
|
+
}).strict().describe(
|
|
4992
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
4993
|
+
)
|
|
4994
|
+
]);
|
|
3173
4995
|
zod.object({
|
|
3174
4996
|
errorCode: zod.number(),
|
|
3175
4997
|
message: zod.string()
|
|
3176
|
-
}).strict();
|
|
4998
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3177
4999
|
zod.object({
|
|
3178
5000
|
errorCode: zod.number(),
|
|
3179
5001
|
message: zod.string()
|
|
@@ -3312,14 +5134,43 @@ const ListTestExecutionsNextgen200Response = zod.object({
|
|
|
3312
5134
|
}).strict()
|
|
3313
5135
|
).optional()
|
|
3314
5136
|
}).strict();
|
|
5137
|
+
zod.union([
|
|
5138
|
+
zod.object({
|
|
5139
|
+
errorCode: zod.number(),
|
|
5140
|
+
message: zod.string()
|
|
5141
|
+
}).strict().describe(
|
|
5142
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
5143
|
+
),
|
|
5144
|
+
zod.object({
|
|
5145
|
+
errorCode: zod.number(),
|
|
5146
|
+
message: zod.string()
|
|
5147
|
+
}).strict().describe("A numeric query parameter was sent with a non-numeric value.")
|
|
5148
|
+
]);
|
|
5149
|
+
zod.union([
|
|
5150
|
+
zod.object({
|
|
5151
|
+
error: zod.string()
|
|
5152
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5153
|
+
zod.object({
|
|
5154
|
+
error: zod.string()
|
|
5155
|
+
}).strict().describe(
|
|
5156
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5157
|
+
),
|
|
5158
|
+
zod.object({
|
|
5159
|
+
error: zod.string()
|
|
5160
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5161
|
+
zod.object({
|
|
5162
|
+
error: zod.string()
|
|
5163
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5164
|
+
zod.object({
|
|
5165
|
+
error: zod.string()
|
|
5166
|
+
}).strict().describe(
|
|
5167
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5168
|
+
)
|
|
5169
|
+
]);
|
|
3315
5170
|
zod.object({
|
|
3316
5171
|
errorCode: zod.number(),
|
|
3317
5172
|
message: zod.string()
|
|
3318
|
-
}).strict();
|
|
3319
|
-
zod.object({
|
|
3320
|
-
errorCode: zod.number(),
|
|
3321
|
-
message: zod.string()
|
|
3322
|
-
}).strict();
|
|
5173
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3323
5174
|
zod.object({
|
|
3324
5175
|
errorCode: zod.number(),
|
|
3325
5176
|
message: zod.string()
|
|
@@ -3404,15 +5255,52 @@ const GetTestExecution200Response = zod.object({
|
|
|
3404
5255
|
zod.object({
|
|
3405
5256
|
errorCode: zod.number(),
|
|
3406
5257
|
message: zod.string()
|
|
3407
|
-
}).strict()
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
5258
|
+
}).strict().describe(
|
|
5259
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
5260
|
+
);
|
|
5261
|
+
zod.union([
|
|
5262
|
+
zod.object({
|
|
5263
|
+
error: zod.string()
|
|
5264
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5265
|
+
zod.object({
|
|
5266
|
+
error: zod.string()
|
|
5267
|
+
}).strict().describe(
|
|
5268
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5269
|
+
),
|
|
5270
|
+
zod.object({
|
|
5271
|
+
error: zod.string()
|
|
5272
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5273
|
+
zod.object({
|
|
5274
|
+
error: zod.string()
|
|
5275
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5276
|
+
zod.object({
|
|
5277
|
+
error: zod.string()
|
|
5278
|
+
}).strict().describe(
|
|
5279
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5280
|
+
)
|
|
5281
|
+
]);
|
|
5282
|
+
zod.union([
|
|
5283
|
+
zod.object({
|
|
5284
|
+
errorCode: zod.number(),
|
|
5285
|
+
message: zod.string()
|
|
5286
|
+
}).strict().describe("No test execution exists with the given id or key."),
|
|
5287
|
+
zod.object({
|
|
5288
|
+
errorCode: zod.number(),
|
|
5289
|
+
message: zod.string()
|
|
5290
|
+
}).strict().describe(
|
|
5291
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
5292
|
+
),
|
|
5293
|
+
zod.object({
|
|
5294
|
+
errorCode: zod.number(),
|
|
5295
|
+
message: zod.string()
|
|
5296
|
+
}).strict().describe(
|
|
5297
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
5298
|
+
)
|
|
5299
|
+
]);
|
|
3412
5300
|
zod.object({
|
|
3413
5301
|
errorCode: zod.number(),
|
|
3414
5302
|
message: zod.string()
|
|
3415
|
-
}).strict();
|
|
5303
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3416
5304
|
zod.object({
|
|
3417
5305
|
errorCode: zod.number(),
|
|
3418
5306
|
message: zod.string()
|
|
@@ -3438,18 +5326,87 @@ const UpdateTestExecutionBody = zod.object({
|
|
|
3438
5326
|
assignedToId: zod.string().regex(updateTestExecutionBodyAssignedToIdRegExp).nullish().describe("Atlassian Account ID of the Jira user."),
|
|
3439
5327
|
comment: zod.string().nullish().describe("Comment added against overall test case execution.")
|
|
3440
5328
|
}).strict();
|
|
5329
|
+
zod.union([
|
|
5330
|
+
zod.object({
|
|
5331
|
+
errorCode: zod.number(),
|
|
5332
|
+
message: zod.string()
|
|
5333
|
+
}).strict().describe(
|
|
5334
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
5335
|
+
),
|
|
5336
|
+
zod.object({
|
|
5337
|
+
errorCode: zod.number(),
|
|
5338
|
+
message: zod.string()
|
|
5339
|
+
}).strict().describe(
|
|
5340
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
5341
|
+
),
|
|
5342
|
+
zod.object({
|
|
5343
|
+
errorCode: zod.number(),
|
|
5344
|
+
message: zod.string()
|
|
5345
|
+
}).strict().describe("The request body is not valid JSON.")
|
|
5346
|
+
]);
|
|
5347
|
+
zod.union([
|
|
5348
|
+
zod.object({
|
|
5349
|
+
error: zod.string()
|
|
5350
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5351
|
+
zod.object({
|
|
5352
|
+
error: zod.string()
|
|
5353
|
+
}).strict().describe(
|
|
5354
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5355
|
+
),
|
|
5356
|
+
zod.object({
|
|
5357
|
+
error: zod.string()
|
|
5358
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5359
|
+
zod.object({
|
|
5360
|
+
error: zod.string()
|
|
5361
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5362
|
+
zod.object({
|
|
5363
|
+
error: zod.string()
|
|
5364
|
+
}).strict().describe(
|
|
5365
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5366
|
+
)
|
|
5367
|
+
]);
|
|
3441
5368
|
zod.object({
|
|
3442
5369
|
errorCode: zod.number(),
|
|
3443
5370
|
message: zod.string()
|
|
3444
|
-
}).strict()
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
5371
|
+
}).strict().describe(
|
|
5372
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
5373
|
+
);
|
|
5374
|
+
zod.union([
|
|
5375
|
+
zod.object({
|
|
5376
|
+
errorCode: zod.number(),
|
|
5377
|
+
message: zod.string()
|
|
5378
|
+
}).strict().describe("No test execution exists with the given id or key."),
|
|
5379
|
+
zod.object({
|
|
5380
|
+
errorCode: zod.number(),
|
|
5381
|
+
message: zod.string()
|
|
5382
|
+
}).strict().describe(
|
|
5383
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
5384
|
+
),
|
|
5385
|
+
zod.object({
|
|
5386
|
+
errorCode: zod.number(),
|
|
5387
|
+
message: zod.string()
|
|
5388
|
+
}).strict().describe(
|
|
5389
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
5390
|
+
)
|
|
5391
|
+
]);
|
|
5392
|
+
zod.union([
|
|
5393
|
+
zod.object({
|
|
5394
|
+
errorCode: zod.number(),
|
|
5395
|
+
message: zod.string()
|
|
5396
|
+
}).strict().describe(
|
|
5397
|
+
"The provided status name does not exist for the test execution's project."
|
|
5398
|
+
),
|
|
5399
|
+
zod.object({
|
|
5400
|
+
errorCode: zod.number(),
|
|
5401
|
+
message: zod.string()
|
|
5402
|
+
}).strict().describe(
|
|
5403
|
+
"The provided environment name does not exist for the test execution's project."
|
|
5404
|
+
)
|
|
5405
|
+
]);
|
|
3449
5406
|
zod.object({
|
|
3450
5407
|
errorCode: zod.number(),
|
|
3451
5408
|
message: zod.string()
|
|
3452
|
-
}).strict();
|
|
5409
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3453
5410
|
zod.object({
|
|
3454
5411
|
errorCode: zod.number(),
|
|
3455
5412
|
message: zod.string()
|
|
@@ -3514,14 +5471,67 @@ const GetTestExecutionTestSteps200Response = zod.object({
|
|
|
3514
5471
|
}).strict().describe("Inline test step")
|
|
3515
5472
|
).optional().describe("The list of test steps")
|
|
3516
5473
|
}).strict().describe("Response body when retrieving test steps for a test execution");
|
|
5474
|
+
zod.union([
|
|
5475
|
+
zod.object({
|
|
5476
|
+
errorCode: zod.number(),
|
|
5477
|
+
message: zod.string()
|
|
5478
|
+
}).strict().describe(
|
|
5479
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
5480
|
+
),
|
|
5481
|
+
zod.object({
|
|
5482
|
+
errorCode: zod.number(),
|
|
5483
|
+
message: zod.string()
|
|
5484
|
+
}).strict().describe(
|
|
5485
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
5486
|
+
),
|
|
5487
|
+
zod.object({
|
|
5488
|
+
errorCode: zod.number(),
|
|
5489
|
+
message: zod.string()
|
|
5490
|
+
}).strict().describe("A numeric query parameter was sent with a non-numeric value.")
|
|
5491
|
+
]);
|
|
5492
|
+
zod.union([
|
|
5493
|
+
zod.object({
|
|
5494
|
+
error: zod.string()
|
|
5495
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5496
|
+
zod.object({
|
|
5497
|
+
error: zod.string()
|
|
5498
|
+
}).strict().describe(
|
|
5499
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5500
|
+
),
|
|
5501
|
+
zod.object({
|
|
5502
|
+
error: zod.string()
|
|
5503
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5504
|
+
zod.object({
|
|
5505
|
+
error: zod.string()
|
|
5506
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5507
|
+
zod.object({
|
|
5508
|
+
error: zod.string()
|
|
5509
|
+
}).strict().describe(
|
|
5510
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5511
|
+
)
|
|
5512
|
+
]);
|
|
5513
|
+
zod.union([
|
|
5514
|
+
zod.object({
|
|
5515
|
+
errorCode: zod.number(),
|
|
5516
|
+
message: zod.string()
|
|
5517
|
+
}).strict().describe("No test execution exists with the given id or key."),
|
|
5518
|
+
zod.object({
|
|
5519
|
+
errorCode: zod.number(),
|
|
5520
|
+
message: zod.string()
|
|
5521
|
+
}).strict().describe(
|
|
5522
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
5523
|
+
),
|
|
5524
|
+
zod.object({
|
|
5525
|
+
errorCode: zod.number(),
|
|
5526
|
+
message: zod.string()
|
|
5527
|
+
}).strict().describe(
|
|
5528
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
5529
|
+
)
|
|
5530
|
+
]);
|
|
3517
5531
|
zod.object({
|
|
3518
5532
|
errorCode: zod.number(),
|
|
3519
5533
|
message: zod.string()
|
|
3520
|
-
}).strict();
|
|
3521
|
-
zod.object({
|
|
3522
|
-
errorCode: zod.number(),
|
|
3523
|
-
message: zod.string()
|
|
3524
|
-
}).strict();
|
|
5534
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3525
5535
|
zod.object({
|
|
3526
5536
|
errorCode: zod.number(),
|
|
3527
5537
|
message: zod.string()
|
|
@@ -3531,24 +5541,79 @@ const PutTestExecutionTestStepsParams = zod.object({
|
|
|
3531
5541
|
testExecutionIdOrKey: zod.string().regex(putTestExecutionTestStepsPathTestExecutionIdOrKeyRegExp).describe(
|
|
3532
5542
|
"The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+"
|
|
3533
5543
|
)
|
|
3534
|
-
}).strict();
|
|
3535
|
-
const putTestExecutionTestStepsBodyStepsItemStatusNameMax = 255;
|
|
3536
|
-
const PutTestExecutionTestStepsBody = zod.object({
|
|
3537
|
-
steps: zod.array(
|
|
3538
|
-
zod.object({
|
|
3539
|
-
actualResult: zod.string().optional().describe("The actual result."),
|
|
3540
|
-
statusName: zod.string().min(1).max(putTestExecutionTestStepsBodyStepsItemStatusNameMax).optional().describe("The status name.")
|
|
3541
|
-
}).strict()
|
|
3542
|
-
).optional()
|
|
3543
|
-
}).strict();
|
|
3544
|
-
zod.
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
5544
|
+
}).strict();
|
|
5545
|
+
const putTestExecutionTestStepsBodyStepsItemStatusNameMax = 255;
|
|
5546
|
+
const PutTestExecutionTestStepsBody = zod.object({
|
|
5547
|
+
steps: zod.array(
|
|
5548
|
+
zod.object({
|
|
5549
|
+
actualResult: zod.string().optional().describe("The actual result."),
|
|
5550
|
+
statusName: zod.string().min(1).max(putTestExecutionTestStepsBodyStepsItemStatusNameMax).optional().describe("The status name.")
|
|
5551
|
+
}).strict()
|
|
5552
|
+
).optional()
|
|
5553
|
+
}).strict();
|
|
5554
|
+
zod.union([
|
|
5555
|
+
zod.object({
|
|
5556
|
+
errorCode: zod.number(),
|
|
5557
|
+
message: zod.string()
|
|
5558
|
+
}).strict().describe(
|
|
5559
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
5560
|
+
),
|
|
5561
|
+
zod.object({
|
|
5562
|
+
errorCode: zod.number(),
|
|
5563
|
+
message: zod.string()
|
|
5564
|
+
}).strict().describe(
|
|
5565
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
5566
|
+
),
|
|
5567
|
+
zod.object({
|
|
5568
|
+
errorCode: zod.number(),
|
|
5569
|
+
message: zod.string()
|
|
5570
|
+
}).strict().describe("The request body is not valid JSON.")
|
|
5571
|
+
]);
|
|
5572
|
+
zod.union([
|
|
5573
|
+
zod.object({
|
|
5574
|
+
error: zod.string()
|
|
5575
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5576
|
+
zod.object({
|
|
5577
|
+
error: zod.string()
|
|
5578
|
+
}).strict().describe(
|
|
5579
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5580
|
+
),
|
|
5581
|
+
zod.object({
|
|
5582
|
+
error: zod.string()
|
|
5583
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5584
|
+
zod.object({
|
|
5585
|
+
error: zod.string()
|
|
5586
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5587
|
+
zod.object({
|
|
5588
|
+
error: zod.string()
|
|
5589
|
+
}).strict().describe(
|
|
5590
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5591
|
+
)
|
|
5592
|
+
]);
|
|
3548
5593
|
zod.object({
|
|
3549
5594
|
errorCode: zod.number(),
|
|
3550
5595
|
message: zod.string()
|
|
3551
|
-
}).strict()
|
|
5596
|
+
}).strict().describe(
|
|
5597
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
5598
|
+
);
|
|
5599
|
+
zod.union([
|
|
5600
|
+
zod.object({
|
|
5601
|
+
errorCode: zod.number(),
|
|
5602
|
+
message: zod.string()
|
|
5603
|
+
}).strict().describe("No test execution exists with the given id or key."),
|
|
5604
|
+
zod.object({
|
|
5605
|
+
errorCode: zod.number(),
|
|
5606
|
+
message: zod.string()
|
|
5607
|
+
}).strict().describe(
|
|
5608
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
5609
|
+
),
|
|
5610
|
+
zod.object({
|
|
5611
|
+
errorCode: zod.number(),
|
|
5612
|
+
message: zod.string()
|
|
5613
|
+
}).strict().describe(
|
|
5614
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
5615
|
+
)
|
|
5616
|
+
]);
|
|
3552
5617
|
zod.object({
|
|
3553
5618
|
errorCode: zod.number(),
|
|
3554
5619
|
message: zod.string()
|
|
@@ -3561,12 +5626,18 @@ zod.union([
|
|
|
3561
5626
|
zod.object({
|
|
3562
5627
|
errorCode: zod.number(),
|
|
3563
5628
|
message: zod.string()
|
|
3564
|
-
}).strict()
|
|
5629
|
+
}).strict(),
|
|
5630
|
+
zod.object({
|
|
5631
|
+
errorCode: zod.number(),
|
|
5632
|
+
message: zod.string()
|
|
5633
|
+
}).strict().describe(
|
|
5634
|
+
"The provided status name does not exist for the test execution's project."
|
|
5635
|
+
)
|
|
3565
5636
|
]);
|
|
3566
5637
|
zod.object({
|
|
3567
5638
|
errorCode: zod.number(),
|
|
3568
5639
|
message: zod.string()
|
|
3569
|
-
}).strict();
|
|
5640
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3570
5641
|
zod.object({
|
|
3571
5642
|
errorCode: zod.number(),
|
|
3572
5643
|
message: zod.string()
|
|
@@ -3583,11 +5654,54 @@ zod.object({
|
|
|
3583
5654
|
zod.object({
|
|
3584
5655
|
errorCode: zod.number(),
|
|
3585
5656
|
message: zod.string()
|
|
3586
|
-
}).strict()
|
|
5657
|
+
}).strict().describe(
|
|
5658
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
5659
|
+
);
|
|
5660
|
+
zod.union([
|
|
5661
|
+
zod.object({
|
|
5662
|
+
error: zod.string()
|
|
5663
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5664
|
+
zod.object({
|
|
5665
|
+
error: zod.string()
|
|
5666
|
+
}).strict().describe(
|
|
5667
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5668
|
+
),
|
|
5669
|
+
zod.object({
|
|
5670
|
+
error: zod.string()
|
|
5671
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5672
|
+
zod.object({
|
|
5673
|
+
error: zod.string()
|
|
5674
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5675
|
+
zod.object({
|
|
5676
|
+
error: zod.string()
|
|
5677
|
+
}).strict().describe(
|
|
5678
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5679
|
+
)
|
|
5680
|
+
]);
|
|
3587
5681
|
zod.object({
|
|
3588
5682
|
errorCode: zod.number(),
|
|
3589
5683
|
message: zod.string()
|
|
3590
|
-
}).strict()
|
|
5684
|
+
}).strict().describe(
|
|
5685
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
5686
|
+
);
|
|
5687
|
+
zod.union([
|
|
5688
|
+
zod.object({
|
|
5689
|
+
errorCode: zod.number(),
|
|
5690
|
+
message: zod.string()
|
|
5691
|
+
}).strict().describe("No test execution exists with the given id or key."),
|
|
5692
|
+
zod.object({
|
|
5693
|
+
errorCode: zod.number(),
|
|
5694
|
+
message: zod.string()
|
|
5695
|
+
}).strict().describe(
|
|
5696
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
5697
|
+
),
|
|
5698
|
+
zod.object({
|
|
5699
|
+
errorCode: zod.number(),
|
|
5700
|
+
message: zod.string()
|
|
5701
|
+
}).strict().describe(
|
|
5702
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
5703
|
+
)
|
|
5704
|
+
]);
|
|
3591
5705
|
zod.object({
|
|
3592
5706
|
errorCode: zod.number(),
|
|
3593
5707
|
message: zod.string()
|
|
@@ -3595,7 +5709,7 @@ zod.object({
|
|
|
3595
5709
|
zod.object({
|
|
3596
5710
|
errorCode: zod.number(),
|
|
3597
5711
|
message: zod.string()
|
|
3598
|
-
}).strict();
|
|
5712
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3599
5713
|
zod.object({
|
|
3600
5714
|
errorCode: zod.number(),
|
|
3601
5715
|
message: zod.string()
|
|
@@ -3616,27 +5730,34 @@ zod.object({
|
|
|
3616
5730
|
zod.object({
|
|
3617
5731
|
errorCode: zod.number(),
|
|
3618
5732
|
message: zod.string()
|
|
3619
|
-
}).strict()
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
zod.
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
zod.
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
5733
|
+
}).strict().describe(
|
|
5734
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
5735
|
+
);
|
|
5736
|
+
zod.union([
|
|
5737
|
+
zod.object({
|
|
5738
|
+
error: zod.string()
|
|
5739
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5740
|
+
zod.object({
|
|
5741
|
+
error: zod.string()
|
|
5742
|
+
}).strict().describe(
|
|
5743
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5744
|
+
),
|
|
5745
|
+
zod.object({
|
|
5746
|
+
error: zod.string()
|
|
5747
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5748
|
+
zod.object({
|
|
5749
|
+
error: zod.string()
|
|
5750
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5751
|
+
zod.object({
|
|
5752
|
+
error: zod.string()
|
|
5753
|
+
}).strict().describe(
|
|
5754
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5755
|
+
)
|
|
5756
|
+
]);
|
|
3636
5757
|
zod.object({
|
|
3637
5758
|
errorCode: zod.number(),
|
|
3638
5759
|
message: zod.string()
|
|
3639
|
-
}).strict();
|
|
5760
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3640
5761
|
zod.object({
|
|
3641
5762
|
errorCode: zod.number(),
|
|
3642
5763
|
message: zod.string()
|
|
@@ -3665,18 +5786,45 @@ const ListTestExecutionLinks200Response = zod.object({
|
|
|
3665
5786
|
}).strict()
|
|
3666
5787
|
).optional().describe("A list of Jira issues linked to this entity")
|
|
3667
5788
|
}).strict();
|
|
5789
|
+
zod.union([
|
|
5790
|
+
zod.object({
|
|
5791
|
+
errorCode: zod.number(),
|
|
5792
|
+
message: zod.string()
|
|
5793
|
+
}).strict().describe(
|
|
5794
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
5795
|
+
),
|
|
5796
|
+
zod.object({
|
|
5797
|
+
errorCode: zod.number(),
|
|
5798
|
+
message: zod.string()
|
|
5799
|
+
}).strict().describe(
|
|
5800
|
+
"The test execution key is well-formed but not found in the database (returned as 400 by the links endpoint)."
|
|
5801
|
+
)
|
|
5802
|
+
]);
|
|
5803
|
+
zod.union([
|
|
5804
|
+
zod.object({
|
|
5805
|
+
error: zod.string()
|
|
5806
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5807
|
+
zod.object({
|
|
5808
|
+
error: zod.string()
|
|
5809
|
+
}).strict().describe(
|
|
5810
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5811
|
+
),
|
|
5812
|
+
zod.object({
|
|
5813
|
+
error: zod.string()
|
|
5814
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5815
|
+
zod.object({
|
|
5816
|
+
error: zod.string()
|
|
5817
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5818
|
+
zod.object({
|
|
5819
|
+
error: zod.string()
|
|
5820
|
+
}).strict().describe(
|
|
5821
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5822
|
+
)
|
|
5823
|
+
]);
|
|
3668
5824
|
zod.object({
|
|
3669
5825
|
errorCode: zod.number(),
|
|
3670
5826
|
message: zod.string()
|
|
3671
|
-
}).strict();
|
|
3672
|
-
zod.object({
|
|
3673
|
-
errorCode: zod.number(),
|
|
3674
|
-
message: zod.string()
|
|
3675
|
-
}).strict();
|
|
3676
|
-
zod.object({
|
|
3677
|
-
errorCode: zod.number(),
|
|
3678
|
-
message: zod.string()
|
|
3679
|
-
}).strict();
|
|
5827
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3680
5828
|
zod.object({
|
|
3681
5829
|
errorCode: zod.number(),
|
|
3682
5830
|
message: zod.string()
|
|
@@ -3690,18 +5838,79 @@ const CreateTestExecutionIssueLinkParams = zod.object({
|
|
|
3690
5838
|
const CreateTestExecutionIssueLinkBody = zod.object({
|
|
3691
5839
|
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
3692
5840
|
}).strict();
|
|
5841
|
+
zod.union([
|
|
5842
|
+
zod.object({
|
|
5843
|
+
errorCode: zod.number(),
|
|
5844
|
+
message: zod.string()
|
|
5845
|
+
}).strict().describe(
|
|
5846
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
5847
|
+
),
|
|
5848
|
+
zod.object({
|
|
5849
|
+
errorCode: zod.number(),
|
|
5850
|
+
message: zod.string()
|
|
5851
|
+
}).strict().describe(
|
|
5852
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
5853
|
+
),
|
|
5854
|
+
zod.object({
|
|
5855
|
+
errorCode: zod.number(),
|
|
5856
|
+
message: zod.string()
|
|
5857
|
+
}).strict().describe("The request body is not valid JSON.")
|
|
5858
|
+
]);
|
|
5859
|
+
zod.union([
|
|
5860
|
+
zod.object({
|
|
5861
|
+
error: zod.string()
|
|
5862
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5863
|
+
zod.object({
|
|
5864
|
+
error: zod.string()
|
|
5865
|
+
}).strict().describe(
|
|
5866
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5867
|
+
),
|
|
5868
|
+
zod.object({
|
|
5869
|
+
error: zod.string()
|
|
5870
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5871
|
+
zod.object({
|
|
5872
|
+
error: zod.string()
|
|
5873
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5874
|
+
zod.object({
|
|
5875
|
+
error: zod.string()
|
|
5876
|
+
}).strict().describe(
|
|
5877
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5878
|
+
)
|
|
5879
|
+
]);
|
|
3693
5880
|
zod.object({
|
|
3694
5881
|
errorCode: zod.number(),
|
|
3695
5882
|
message: zod.string()
|
|
3696
|
-
}).strict()
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
5883
|
+
}).strict().describe(
|
|
5884
|
+
"The caller lacks a required Zephyr permission (when the project's permission system is enabled)."
|
|
5885
|
+
);
|
|
5886
|
+
zod.union([
|
|
5887
|
+
zod.object({
|
|
5888
|
+
errorCode: zod.number(),
|
|
5889
|
+
message: zod.string()
|
|
5890
|
+
}).strict().describe("No test execution exists with the given id or key."),
|
|
5891
|
+
zod.object({
|
|
5892
|
+
errorCode: zod.number(),
|
|
5893
|
+
message: zod.string()
|
|
5894
|
+
}).strict().describe(
|
|
5895
|
+
"A referenced Jira entity (e.g. jiraProjectVersion) does not exist or is not accessible."
|
|
5896
|
+
),
|
|
5897
|
+
zod.object({
|
|
5898
|
+
errorCode: zod.number(),
|
|
5899
|
+
message: zod.string()
|
|
5900
|
+
}).strict().describe(
|
|
5901
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
5902
|
+
),
|
|
5903
|
+
zod.object({
|
|
5904
|
+
errorCode: zod.number(),
|
|
5905
|
+
message: zod.string()
|
|
5906
|
+
}).strict().describe(
|
|
5907
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
5908
|
+
)
|
|
5909
|
+
]);
|
|
3701
5910
|
zod.object({
|
|
3702
5911
|
errorCode: zod.number(),
|
|
3703
5912
|
message: zod.string()
|
|
3704
|
-
}).strict();
|
|
5913
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3705
5914
|
zod.object({
|
|
3706
5915
|
errorCode: zod.number(),
|
|
3707
5916
|
message: zod.string()
|
|
@@ -3729,15 +5938,64 @@ zod.object({
|
|
|
3729
5938
|
zod.object({
|
|
3730
5939
|
errorCode: zod.number(),
|
|
3731
5940
|
message: zod.string()
|
|
3732
|
-
}).strict()
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
5941
|
+
}).strict().describe(
|
|
5942
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
5943
|
+
);
|
|
5944
|
+
zod.union([
|
|
5945
|
+
zod.object({
|
|
5946
|
+
error: zod.string()
|
|
5947
|
+
}).strict().describe("The Authorization header is missing."),
|
|
5948
|
+
zod.object({
|
|
5949
|
+
error: zod.string()
|
|
5950
|
+
}).strict().describe(
|
|
5951
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
5952
|
+
),
|
|
5953
|
+
zod.object({
|
|
5954
|
+
error: zod.string()
|
|
5955
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
5956
|
+
zod.object({
|
|
5957
|
+
error: zod.string()
|
|
5958
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
5959
|
+
zod.object({
|
|
5960
|
+
error: zod.string()
|
|
5961
|
+
}).strict().describe(
|
|
5962
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
5963
|
+
)
|
|
5964
|
+
]);
|
|
5965
|
+
zod.union([
|
|
5966
|
+
zod.object({
|
|
5967
|
+
errorCode: zod.number(),
|
|
5968
|
+
message: zod.string()
|
|
5969
|
+
}).strict().describe("No test execution exists with the given id or key."),
|
|
5970
|
+
zod.object({
|
|
5971
|
+
errorCode: zod.number(),
|
|
5972
|
+
message: zod.string()
|
|
5973
|
+
}).strict().describe(
|
|
5974
|
+
"The test execution step with the given ID does not exist in the test execution."
|
|
5975
|
+
),
|
|
5976
|
+
zod.object({
|
|
5977
|
+
errorCode: zod.number(),
|
|
5978
|
+
message: zod.string()
|
|
5979
|
+
}).strict().describe(
|
|
5980
|
+
"No attachment metadata was found for the given test execution step."
|
|
5981
|
+
),
|
|
5982
|
+
zod.object({
|
|
5983
|
+
errorCode: zod.number(),
|
|
5984
|
+
message: zod.string()
|
|
5985
|
+
}).strict().describe(
|
|
5986
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
5987
|
+
),
|
|
5988
|
+
zod.object({
|
|
5989
|
+
errorCode: zod.number(),
|
|
5990
|
+
message: zod.string()
|
|
5991
|
+
}).strict().describe(
|
|
5992
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
5993
|
+
)
|
|
5994
|
+
]);
|
|
3737
5995
|
zod.object({
|
|
3738
5996
|
errorCode: zod.number(),
|
|
3739
5997
|
message: zod.string()
|
|
3740
|
-
}).strict();
|
|
5998
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3741
5999
|
zod.object({
|
|
3742
6000
|
errorCode: zod.number(),
|
|
3743
6001
|
message: zod.string()
|
|
@@ -3759,15 +6017,56 @@ zod.object({
|
|
|
3759
6017
|
zod.object({
|
|
3760
6018
|
errorCode: zod.number(),
|
|
3761
6019
|
message: zod.string()
|
|
3762
|
-
}).strict()
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
6020
|
+
}).strict().describe(
|
|
6021
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
6022
|
+
);
|
|
6023
|
+
zod.union([
|
|
6024
|
+
zod.object({
|
|
6025
|
+
error: zod.string()
|
|
6026
|
+
}).strict().describe("The Authorization header is missing."),
|
|
6027
|
+
zod.object({
|
|
6028
|
+
error: zod.string()
|
|
6029
|
+
}).strict().describe(
|
|
6030
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
6031
|
+
),
|
|
6032
|
+
zod.object({
|
|
6033
|
+
error: zod.string()
|
|
6034
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
6035
|
+
zod.object({
|
|
6036
|
+
error: zod.string()
|
|
6037
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
6038
|
+
zod.object({
|
|
6039
|
+
error: zod.string()
|
|
6040
|
+
}).strict().describe(
|
|
6041
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
6042
|
+
)
|
|
6043
|
+
]);
|
|
6044
|
+
zod.union([
|
|
6045
|
+
zod.object({
|
|
6046
|
+
errorCode: zod.number(),
|
|
6047
|
+
message: zod.string()
|
|
6048
|
+
}).strict().describe("No test execution exists with the given id or key."),
|
|
6049
|
+
zod.object({
|
|
6050
|
+
errorCode: zod.number(),
|
|
6051
|
+
message: zod.string()
|
|
6052
|
+
}).strict().describe("No attachment metadata was found for the given test execution."),
|
|
6053
|
+
zod.object({
|
|
6054
|
+
errorCode: zod.number(),
|
|
6055
|
+
message: zod.string()
|
|
6056
|
+
}).strict().describe(
|
|
6057
|
+
"The referenced resource does not exist, or the caller does not have access to its project."
|
|
6058
|
+
),
|
|
6059
|
+
zod.object({
|
|
6060
|
+
errorCode: zod.number(),
|
|
6061
|
+
message: zod.string()
|
|
6062
|
+
}).strict().describe(
|
|
6063
|
+
"The referenced resource belongs to a disabled project, or a project that does not exist."
|
|
6064
|
+
)
|
|
6065
|
+
]);
|
|
3767
6066
|
zod.object({
|
|
3768
6067
|
errorCode: zod.number(),
|
|
3769
6068
|
message: zod.string()
|
|
3770
|
-
}).strict();
|
|
6069
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3771
6070
|
zod.object({
|
|
3772
6071
|
errorCode: zod.number(),
|
|
3773
6072
|
message: zod.string()
|
|
@@ -3785,27 +6084,34 @@ zod.object({
|
|
|
3785
6084
|
zod.object({
|
|
3786
6085
|
errorCode: zod.number(),
|
|
3787
6086
|
message: zod.string()
|
|
3788
|
-
}).strict()
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
zod.
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
zod.
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
6087
|
+
}).strict().describe(
|
|
6088
|
+
"A request body field failed validation at the API layer (required field missing, pattern mismatch, size, or numeric bound)."
|
|
6089
|
+
);
|
|
6090
|
+
zod.union([
|
|
6091
|
+
zod.object({
|
|
6092
|
+
error: zod.string()
|
|
6093
|
+
}).strict().describe("The Authorization header is missing."),
|
|
6094
|
+
zod.object({
|
|
6095
|
+
error: zod.string()
|
|
6096
|
+
}).strict().describe(
|
|
6097
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
6098
|
+
),
|
|
6099
|
+
zod.object({
|
|
6100
|
+
error: zod.string()
|
|
6101
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
6102
|
+
zod.object({
|
|
6103
|
+
error: zod.string()
|
|
6104
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
6105
|
+
zod.object({
|
|
6106
|
+
error: zod.string()
|
|
6107
|
+
}).strict().describe(
|
|
6108
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
6109
|
+
)
|
|
6110
|
+
]);
|
|
3805
6111
|
zod.object({
|
|
3806
6112
|
errorCode: zod.number(),
|
|
3807
6113
|
message: zod.string()
|
|
3808
|
-
}).strict();
|
|
6114
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3809
6115
|
zod.object({
|
|
3810
6116
|
errorCode: zod.number(),
|
|
3811
6117
|
message: zod.string()
|
|
@@ -3818,22 +6124,45 @@ zod.object({
|
|
|
3818
6124
|
testExecutionStepId: zod.number().min(1).describe("The ID of the step within the test execution."),
|
|
3819
6125
|
attachmentId: zod.number().min(1).describe("The numeric ID of the attachment.")
|
|
3820
6126
|
}).strict();
|
|
6127
|
+
zod.union([
|
|
6128
|
+
zod.object({
|
|
6129
|
+
errorCode: zod.number(),
|
|
6130
|
+
message: zod.string()
|
|
6131
|
+
}).strict().describe(
|
|
6132
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
6133
|
+
),
|
|
6134
|
+
zod.object({
|
|
6135
|
+
errorCode: zod.number(),
|
|
6136
|
+
message: zod.string()
|
|
6137
|
+
}).strict().describe(
|
|
6138
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
6139
|
+
)
|
|
6140
|
+
]);
|
|
6141
|
+
zod.union([
|
|
6142
|
+
zod.object({
|
|
6143
|
+
error: zod.string()
|
|
6144
|
+
}).strict().describe("The Authorization header is missing."),
|
|
6145
|
+
zod.object({
|
|
6146
|
+
error: zod.string()
|
|
6147
|
+
}).strict().describe(
|
|
6148
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
6149
|
+
),
|
|
6150
|
+
zod.object({
|
|
6151
|
+
error: zod.string()
|
|
6152
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
6153
|
+
zod.object({
|
|
6154
|
+
error: zod.string()
|
|
6155
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
6156
|
+
zod.object({
|
|
6157
|
+
error: zod.string()
|
|
6158
|
+
}).strict().describe(
|
|
6159
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
6160
|
+
)
|
|
6161
|
+
]);
|
|
3821
6162
|
zod.object({
|
|
3822
6163
|
errorCode: zod.number(),
|
|
3823
6164
|
message: zod.string()
|
|
3824
|
-
}).strict();
|
|
3825
|
-
zod.object({
|
|
3826
|
-
errorCode: zod.number(),
|
|
3827
|
-
message: zod.string()
|
|
3828
|
-
}).strict();
|
|
3829
|
-
zod.object({
|
|
3830
|
-
errorCode: zod.number(),
|
|
3831
|
-
message: zod.string()
|
|
3832
|
-
}).strict();
|
|
3833
|
-
zod.object({
|
|
3834
|
-
errorCode: zod.number(),
|
|
3835
|
-
message: zod.string()
|
|
3836
|
-
}).strict();
|
|
6165
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3837
6166
|
zod.object({
|
|
3838
6167
|
errorCode: zod.number(),
|
|
3839
6168
|
message: zod.string()
|
|
@@ -3845,22 +6174,45 @@ zod.object({
|
|
|
3845
6174
|
),
|
|
3846
6175
|
attachmentId: zod.number().min(1).describe("The numeric ID of the attachment.")
|
|
3847
6176
|
}).strict();
|
|
6177
|
+
zod.union([
|
|
6178
|
+
zod.object({
|
|
6179
|
+
errorCode: zod.number(),
|
|
6180
|
+
message: zod.string()
|
|
6181
|
+
}).strict().describe(
|
|
6182
|
+
"A path parameter failed validation at the API layer (for example a testCaseKey that does not match its required pattern)."
|
|
6183
|
+
),
|
|
6184
|
+
zod.object({
|
|
6185
|
+
errorCode: zod.number(),
|
|
6186
|
+
message: zod.string()
|
|
6187
|
+
}).strict().describe(
|
|
6188
|
+
"A query parameter failed validation at the API layer (projectKey pattern, or the numeric bounds maxResults >= 1, startAt 0..1000000, folderId >= 1, jiraProjectVersionId >= 1)."
|
|
6189
|
+
)
|
|
6190
|
+
]);
|
|
6191
|
+
zod.union([
|
|
6192
|
+
zod.object({
|
|
6193
|
+
error: zod.string()
|
|
6194
|
+
}).strict().describe("The Authorization header is missing."),
|
|
6195
|
+
zod.object({
|
|
6196
|
+
error: zod.string()
|
|
6197
|
+
}).strict().describe(
|
|
6198
|
+
"The bearer token does not have the three dot-separated parts of a JWT."
|
|
6199
|
+
),
|
|
6200
|
+
zod.object({
|
|
6201
|
+
error: zod.string()
|
|
6202
|
+
}).strict().describe("A segment of the bearer token is not valid base64."),
|
|
6203
|
+
zod.object({
|
|
6204
|
+
error: zod.string()
|
|
6205
|
+
}).strict().describe("A decoded segment of the bearer token is not valid JSON."),
|
|
6206
|
+
zod.object({
|
|
6207
|
+
error: zod.string()
|
|
6208
|
+
}).strict().describe(
|
|
6209
|
+
"The JWT is well-formed but its signature could not be verified (wrong secret, tampered, or unknown issuer)."
|
|
6210
|
+
)
|
|
6211
|
+
]);
|
|
3848
6212
|
zod.object({
|
|
3849
6213
|
errorCode: zod.number(),
|
|
3850
6214
|
message: zod.string()
|
|
3851
|
-
}).strict();
|
|
3852
|
-
zod.object({
|
|
3853
|
-
errorCode: zod.number(),
|
|
3854
|
-
message: zod.string()
|
|
3855
|
-
}).strict();
|
|
3856
|
-
zod.object({
|
|
3857
|
-
errorCode: zod.number(),
|
|
3858
|
-
message: zod.string()
|
|
3859
|
-
}).strict();
|
|
3860
|
-
zod.object({
|
|
3861
|
-
errorCode: zod.number(),
|
|
3862
|
-
message: zod.string()
|
|
3863
|
-
}).strict();
|
|
6215
|
+
}).strict().describe("The backend service returned a 5xx or could not be reached.");
|
|
3864
6216
|
zod.object({
|
|
3865
6217
|
errorCode: zod.number(),
|
|
3866
6218
|
message: zod.string()
|
|
@@ -4973,6 +7325,8 @@ export {
|
|
|
4973
7325
|
ListTestExecutionLinksParams,
|
|
4974
7326
|
ListTestExecutionsNextgen200Response,
|
|
4975
7327
|
ListTestExecutionsNextgenQueryParams,
|
|
7328
|
+
ListTestPlansCursorPaginated200Response,
|
|
7329
|
+
ListTestPlansCursorPaginatedQueryParams,
|
|
4976
7330
|
PutTestExecutionTestStepsBody,
|
|
4977
7331
|
PutTestExecutionTestStepsParams,
|
|
4978
7332
|
UpdateTestCaseBody,
|
|
@@ -5009,7 +7363,6 @@ export {
|
|
|
5009
7363
|
createStatusBodyDescriptionMax,
|
|
5010
7364
|
createStatusBodyNameMax,
|
|
5011
7365
|
createStatusBodyProjectKeyRegExp,
|
|
5012
|
-
createTestCaseBodyComponentIdMin,
|
|
5013
7366
|
createTestCaseBodyEstimatedTimeMin,
|
|
5014
7367
|
createTestCaseBodyLabelsMax,
|
|
5015
7368
|
createTestCaseBodyNameMax,
|
|
@@ -5139,6 +7492,7 @@ export {
|
|
|
5139
7492
|
getTestPlan200ResponseNameRegExp,
|
|
5140
7493
|
getTestPlan200ResponseOwnerAccountIdRegExp,
|
|
5141
7494
|
getTestPlanAttachmentPathTestPlanIdOrKeyRegExp,
|
|
7495
|
+
getTestPlanAttachmentsReferencePathTestPlanIdOrKeyRegExp,
|
|
5142
7496
|
getTestPlanPathTestPlanIdOrKeyRegExp,
|
|
5143
7497
|
listEnvironments200ResponseOneStartAtMin,
|
|
5144
7498
|
listEnvironments200ResponseOneTotalMin,
|