Skip to content

Commit 28877da

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9239ab8 of spec repo
1 parent 7ff4b29 commit 28877da

9 files changed

Lines changed: 183 additions & 39 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 46 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57909,7 +57909,6 @@ components:
5790957909
- none
5791057910
- false_positive
5791157911
- testing_or_maintenance
57912-
- remediated
5791357912
- investigated_case_opened
5791457913
- true_positive_benign
5791557914
- true_positive_malicious
@@ -57919,7 +57918,6 @@ components:
5791957918
- NONE
5792057919
- FALSE_POSITIVE
5792157920
- TESTING_OR_MAINTENANCE
57922-
- REMEDIATED
5792357921
- INVESTIGATED_CASE_OPENED
5792457922
- TRUE_POSITIVE_BENIGN
5792557923
- TRUE_POSITIVE_MALICIOUS
@@ -75978,6 +75976,7 @@ paths:
7597875976
x-pagination:
7597975977
limitParam: page[size]
7598075978
pageParam: page[number]
75979+
pageStart: 1
7598175980
resultsPath: data
7598275981
post:
7598375982
description: Create a Case
@@ -102449,8 +102448,6 @@ paths:
102449102448
schema:
102450102449
$ref: "#/components/schemas/SecurityMonitoringSignalResponse"
102451102450
description: OK
102452-
"403":
102453-
$ref: "#/components/responses/NotAuthorizedResponse"
102454102451
"404":
102455102452
$ref: "#/components/responses/NotFoundResponse"
102456102453
"429":
@@ -102488,17 +102485,25 @@ paths:
102488102485
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102489102486
description: OK
102490102487
"400":
102491-
$ref: "#/components/responses/BadRequestResponse"
102488+
content:
102489+
application/json:
102490+
schema:
102491+
$ref: "#/components/schemas/APIErrorResponse"
102492+
description: Bad Request
102492102493
"403":
102493-
$ref: "#/components/responses/NotAuthorizedResponse"
102494+
content:
102495+
application/json:
102496+
schema:
102497+
$ref: "#/components/schemas/APIErrorResponse"
102498+
description: Forbidden
102494102499
"404":
102495-
$ref: "#/components/responses/NotFoundResponse"
102500+
content:
102501+
application/json:
102502+
schema:
102503+
$ref: "#/components/schemas/APIErrorResponse"
102504+
description: Not Found
102496102505
"429":
102497102506
$ref: "#/components/responses/TooManyRequestsResponse"
102498-
security:
102499-
- apiKeyAuth: []
102500-
appKeyAuth: []
102501-
- AuthZ: []
102502102507
summary: Modify the triage assignee of a security signal
102503102508
tags: ["Security Monitoring"]
102504102509
x-codegen-request-body-name: body
@@ -102528,17 +102533,25 @@ paths:
102528102533
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102529102534
description: OK
102530102535
"400":
102531-
$ref: "#/components/responses/BadRequestResponse"
102536+
content:
102537+
application/json:
102538+
schema:
102539+
$ref: "#/components/schemas/APIErrorResponse"
102540+
description: Bad Request
102532102541
"403":
102533-
$ref: "#/components/responses/NotAuthorizedResponse"
102542+
content:
102543+
application/json:
102544+
schema:
102545+
$ref: "#/components/schemas/APIErrorResponse"
102546+
description: Forbidden
102534102547
"404":
102535-
$ref: "#/components/responses/NotFoundResponse"
102548+
content:
102549+
application/json:
102550+
schema:
102551+
$ref: "#/components/schemas/APIErrorResponse"
102552+
description: Not Found
102536102553
"429":
102537102554
$ref: "#/components/responses/TooManyRequestsResponse"
102538-
security:
102539-
- apiKeyAuth: []
102540-
appKeyAuth: []
102541-
- AuthZ: []
102542102555
summary: Change the related incidents of a security signal
102543102556
tags: ["Security Monitoring"]
102544102557
x-codegen-request-body-name: body
@@ -102568,17 +102581,25 @@ paths:
102568102581
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102569102582
description: OK
102570102583
"400":
102571-
$ref: "#/components/responses/BadRequestResponse"
102584+
content:
102585+
application/json:
102586+
schema:
102587+
$ref: "#/components/schemas/APIErrorResponse"
102588+
description: Bad Request
102572102589
"403":
102573-
$ref: "#/components/responses/NotAuthorizedResponse"
102590+
content:
102591+
application/json:
102592+
schema:
102593+
$ref: "#/components/schemas/APIErrorResponse"
102594+
description: Forbidden
102574102595
"404":
102575-
$ref: "#/components/responses/NotFoundResponse"
102596+
content:
102597+
application/json:
102598+
schema:
102599+
$ref: "#/components/schemas/APIErrorResponse"
102600+
description: Not Found
102576102601
"429":
102577102602
$ref: "#/components/responses/TooManyRequestsResponse"
102578-
security:
102579-
- apiKeyAuth: []
102580-
appKeyAuth: []
102581-
- AuthZ: []
102582102603
summary: Change the triage state of a security signal
102583102604
tags: ["Security Monitoring"]
102584102605
x-codegen-request-body-name: body
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-03-25T10:29:24.893Z"
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"log": {
3+
"_recordingName": "Case Management/Search cases returns \"OK\" response with pagination",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "a97b8b378352cdc6fbd499ef00afc3f6",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 556,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [
28+
{
29+
"name": "page",
30+
"value": {
31+
"number": "1",
32+
"size": "2"
33+
}
34+
},
35+
{
36+
"name": "filter",
37+
"value": "status:closed"
38+
}
39+
],
40+
"url": "https://api.datadoghq.com/api/v2/cases?page%5Bsize%5D=2&page%5Bnumber%5D=1&filter=status%3Aclosed"
41+
},
42+
"response": {
43+
"bodySize": 3222,
44+
"content": {
45+
"mimeType": "application/vnd.api+json",
46+
"size": 3222,
47+
"text": "{\"data\":[{\"id\":\"cd4abeaa-0a5b-4b83-b99c-5b6d1f912938\",\"type\":\"case\",\"attributes\":{\"attributes\":{\"service\":[\"synthetics-browser\"]},\"closed_at\":\"2026-01-24T00:47:45.477244496Z\",\"comment_count\":0,\"created_at\":\"2025-11-12T00:42:59.178125Z\",\"created_by_author\":{\"type\":\"USER\",\"content\":{\"ID\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"active\":true}},\"creation_source\":\"ERROR_TRACKING\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[{\"type\":\"ERROR_TRACKING\",\"ref\":\"/error-tracking?issueId=a5bb2896-a4d0-11f0-bd76-da7ad0900002\",\"resource_id\":\"a5bb2896-a4d0-11f0-bd76-da7ad0900002\"}],\"internal_id\":\"cd4abeaa-0a5b-4b83-b99c-5b6d1f912938\",\"key\":\"ET-3\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2026-02-05T03:58:14.876711989Z\",\"priority\":\"NOT_DEFINED\",\"public_id\":\"89979\",\"status\":\"CLOSED\",\"status_group\":\"SG_CLOSED\",\"status_name\":\"Closed\",\"title\":\"require-trusted-types-for: csp_violation: 'trusted-types-sink' blocked by 'require-trusted-types-for' directive\",\"type\":\"ERROR_TRACKING_ISSUE\",\"type_id\":\"00000000-0000-0000-0000-000000000005\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"87cb11a0-278c-440a-99fe-701223c80296\",\"type\":\"user\"}},\"created_by\":{\"data\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"384521ba-dc5f-481f-942d-15bd48428029\",\"type\":\"project\"}}}},{\"id\":\"7afc10c8-4096-4af1-9ccf-ec0df3a2f63b\",\"type\":\"case\",\"attributes\":{\"attributes\":{\"service\":[\"synthetics-browser\"]},\"comment_count\":0,\"created_at\":\"2025-09-02T13:56:48.031226Z\",\"created_by_author\":{\"type\":\"USER\",\"content\":{\"ID\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"name\":\"frog\",\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"active\":true}},\"creation_source\":\"ERROR_TRACKING\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[{\"type\":\"ERROR_TRACKING\",\"ref\":\"/error-tracking?issueId=d3ab59c6-84ee-11f0-87bb-da7ad0900002\",\"resource_id\":\"d3ab59c6-84ee-11f0-87bb-da7ad0900002\"}],\"internal_id\":\"7afc10c8-4096-4af1-9ccf-ec0df3a2f63b\",\"key\":\"ET-2\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2026-03-25T09:56:47.052997427Z\",\"priority\":\"NOT_DEFINED\",\"public_id\":\"79361\",\"status\":\"CLOSED\",\"status_group\":\"SG_CLOSED\",\"status_name\":\"Closed\",\"title\":\"Error: Expected unhandled error\",\"type\":\"ERROR_TRACKING_ISSUE\",\"type_id\":\"00000000-0000-0000-0000-000000000005\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"87cb11a0-278c-440a-99fe-701223c80296\",\"type\":\"user\"}},\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"384521ba-dc5f-481f-942d-15bd48428029\",\"type\":\"project\"}}}}],\"meta\":{\"total_cases\":3,\"page\":{\"current\":1,\"size\":2,\"total\":2}},\"included\":[{\"id\":\"87cb11a0-278c-440a-99fe-701223c80296\",\"type\":\"user\",\"attributes\":{\"active\":false,\"email\":\"\",\"handle\":\"\",\"name\":\"\"}},{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}},{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}"
48+
},
49+
"cookies": [],
50+
"headers": [
51+
{
52+
"name": "content-type",
53+
"value": "application/vnd.api+json"
54+
}
55+
],
56+
"headersSize": 665,
57+
"httpVersion": "HTTP/1.1",
58+
"redirectURL": "",
59+
"status": 200,
60+
"statusText": "OK"
61+
},
62+
"startedDateTime": "2026-03-25T10:29:24.899Z",
63+
"time": 150
64+
},
65+
{
66+
"_id": "e440eea8a78521a716743ebcab9e6db0",
67+
"_order": 0,
68+
"cache": {},
69+
"request": {
70+
"bodySize": 0,
71+
"cookies": [],
72+
"headers": [
73+
{
74+
"_fromType": "array",
75+
"name": "accept",
76+
"value": "application/json"
77+
}
78+
],
79+
"headersSize": 556,
80+
"httpVersion": "HTTP/1.1",
81+
"method": "GET",
82+
"queryString": [
83+
{
84+
"name": "page",
85+
"value": {
86+
"number": "2",
87+
"size": "2"
88+
}
89+
},
90+
{
91+
"name": "filter",
92+
"value": "status:closed"
93+
}
94+
],
95+
"url": "https://api.datadoghq.com/api/v2/cases?page%5Bsize%5D=2&page%5Bnumber%5D=2&filter=status%3Aclosed"
96+
},
97+
"response": {
98+
"bodySize": 1640,
99+
"content": {
100+
"mimeType": "application/vnd.api+json",
101+
"size": 1640,
102+
"text": "{\"data\":[{\"id\":\"f1b32a47-621d-4c57-9642-045aeb83891e\",\"type\":\"case\",\"attributes\":{\"attributes\":{\"service\":[\"synthetics-browser\"]},\"closed_at\":\"2025-08-21T17:21:13.882830862Z\",\"comment_count\":0,\"created_at\":\"2025-08-21T17:20:22.807979Z\",\"created_by_author\":{\"type\":\"USER\",\"content\":{\"ID\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"name\":\"frog\",\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"active\":true}},\"creation_source\":\"ERROR_TRACKING\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[{\"type\":\"ERROR_TRACKING\",\"ref\":\"/error-tracking?issueId=5f8ebd5c-6dd9-11f0-8a28-da7ad0900002\",\"resource_id\":\"5f8ebd5c-6dd9-11f0-8a28-da7ad0900002\"}],\"internal_id\":\"f1b32a47-621d-4c57-9642-045aeb83891e\",\"key\":\"ET-1\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-08-21T17:21:13.882830862Z\",\"priority\":\"NOT_DEFINED\",\"public_id\":\"77795\",\"status\":\"CLOSED\",\"status_group\":\"SG_CLOSED\",\"status_name\":\"Closed\",\"title\":\"Error: HTTP error\",\"type\":\"ERROR_TRACKING_ISSUE\",\"type_id\":\"00000000-0000-0000-0000-000000000005\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"87cb11a0-278c-440a-99fe-701223c80296\",\"type\":\"user\"}},\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"384521ba-dc5f-481f-942d-15bd48428029\",\"type\":\"project\"}}}}],\"meta\":{\"total_cases\":3,\"page\":{\"current\":2,\"size\":1,\"total\":2}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}},{\"id\":\"87cb11a0-278c-440a-99fe-701223c80296\",\"type\":\"user\",\"attributes\":{\"active\":false,\"email\":\"\",\"handle\":\"\",\"name\":\"\"}}]}"
103+
},
104+
"cookies": [],
105+
"headers": [
106+
{
107+
"name": "content-type",
108+
"value": "application/vnd.api+json"
109+
}
110+
],
111+
"headersSize": 665,
112+
"httpVersion": "HTTP/1.1",
113+
"redirectURL": "",
114+
"status": 200,
115+
"statusText": "OK"
116+
},
117+
"startedDateTime": "2026-03-25T10:29:25.055Z",
118+
"time": 131
119+
}
120+
],
121+
"pages": [],
122+
"version": "1.2"
123+
}
124+
}

examples/v2/case-management/SearchCases_3433960044.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ import { client, v2 } from "@datadog/datadog-api-client";
77
const configuration = client.createConfiguration();
88
const apiInstance = new v2.CaseManagementApi(configuration);
99

10+
const params: v2.CaseManagementApiSearchCasesRequest = {
11+
pageSize: 2,
12+
filter: "status:closed",
13+
};
14+
1015
(async () => {
1116
try {
12-
for await (const item of apiInstance.searchCasesWithPagination()) {
17+
for await (const item of apiInstance.searchCasesWithPagination(params)) {
1318
console.log(item);
1419
}
1520
} catch (error) {

features/v2/case_management.feature

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,11 +508,14 @@ Feature: Case Management
508508
When the request is sent
509509
Then the response status is 200 OK
510510

511-
@generated @skip @team:DataDog/case-management @with-pagination
511+
@replay-only @skip-validation @team:DataDog/case-management @with-pagination
512512
Scenario: Search cases returns "OK" response with pagination
513513
Given new "SearchCases" request
514+
And request contains "page[size]" parameter with value 2
515+
And request contains "filter" parameter with value "status:closed"
514516
When the request with pagination is sent
515517
Then the response status is 200 OK
518+
And the response has 3 items
516519

517520
@team:DataDog/case-management
518521
Scenario: Unarchive case returns "Bad Request" response

packages/datadog-api-client-v2/apis/CaseManagementApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4585,7 +4585,7 @@ export class CaseManagementApi {
45854585
pageSize = param.pageSize;
45864586
}
45874587
param.pageSize = pageSize;
4588-
param.pageNumber = 0;
4588+
param.pageNumber = 1;
45894589
while (true) {
45904590
const requestContext = await this.requestFactory.searchCases(
45914591
param.pageSize,

packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
13031303
applySecurityAuthentication(_config, requestContext, [
13041304
"apiKeyAuth",
13051305
"appKeyAuth",
1306-
"AuthZ",
13071306
]);
13081307

13091308
return requestContext;
@@ -1364,7 +1363,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
13641363
applySecurityAuthentication(_config, requestContext, [
13651364
"apiKeyAuth",
13661365
"appKeyAuth",
1367-
"AuthZ",
13681366
]);
13691367

13701368
return requestContext;
@@ -1420,7 +1418,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
14201418
applySecurityAuthentication(_config, requestContext, [
14211419
"apiKeyAuth",
14221420
"appKeyAuth",
1423-
"AuthZ",
14241421
]);
14251422

14261423
return requestContext;
@@ -7372,11 +7369,7 @@ export class SecurityMonitoringApiResponseProcessor {
73727369
) as SecurityMonitoringSignalResponse;
73737370
return body;
73747371
}
7375-
if (
7376-
response.httpStatusCode === 403 ||
7377-
response.httpStatusCode === 404 ||
7378-
response.httpStatusCode === 429
7379-
) {
7372+
if (response.httpStatusCode === 404 || response.httpStatusCode === 429) {
73807373
const bodyText = ObjectSerializer.parse(
73817374
await response.body.text(),
73827375
contentType

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5164,7 +5164,6 @@ const enumsMap: { [key: string]: any[] } = {
51645164
"none",
51655165
"false_positive",
51665166
"testing_or_maintenance",
5167-
"remediated",
51685167
"investigated_case_opened",
51695168
"true_positive_benign",
51705169
"true_positive_malicious",

packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export type SecurityMonitoringSignalArchiveReason =
1414
| typeof NONE
1515
| typeof FALSE_POSITIVE
1616
| typeof TESTING_OR_MAINTENANCE
17-
| typeof REMEDIATED
1817
| typeof INVESTIGATED_CASE_OPENED
1918
| typeof TRUE_POSITIVE_BENIGN
2019
| typeof TRUE_POSITIVE_MALICIOUS
@@ -23,7 +22,6 @@ export type SecurityMonitoringSignalArchiveReason =
2322
export const NONE = "none";
2423
export const FALSE_POSITIVE = "false_positive";
2524
export const TESTING_OR_MAINTENANCE = "testing_or_maintenance";
26-
export const REMEDIATED = "remediated";
2725
export const INVESTIGATED_CASE_OPENED = "investigated_case_opened";
2826
export const TRUE_POSITIVE_BENIGN = "true_positive_benign";
2927
export const TRUE_POSITIVE_MALICIOUS = "true_positive_malicious";

0 commit comments

Comments
 (0)