diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ea8f0cd3e16b..dc0f066c079d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -57944,6 +57944,7 @@ components: - none - false_positive - testing_or_maintenance + - remediated - investigated_case_opened - true_positive_benign - true_positive_malicious @@ -57953,6 +57954,7 @@ components: - NONE - FALSE_POSITIVE - TESTING_OR_MAINTENANCE + - REMEDIATED - INVESTIGATED_CASE_OPENED - TRUE_POSITIVE_BENIGN - TRUE_POSITIVE_MALICIOUS @@ -103305,6 +103307,8 @@ paths: schema: $ref: "#/components/schemas/SecurityMonitoringSignalResponse" description: OK + "403": + $ref: "#/components/responses/NotAuthorizedResponse" "404": $ref: "#/components/responses/NotFoundResponse" "429": @@ -103342,25 +103346,17 @@ paths: $ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse" description: OK "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Bad Request + $ref: "#/components/responses/BadRequestResponse" "403": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Forbidden + $ref: "#/components/responses/NotAuthorizedResponse" "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Not Found + $ref: "#/components/responses/NotFoundResponse" "429": $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: [] summary: Modify the triage assignee of a security signal tags: ["Security Monitoring"] x-codegen-request-body-name: body @@ -103390,25 +103386,17 @@ paths: $ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse" description: OK "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Bad Request + $ref: "#/components/responses/BadRequestResponse" "403": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Forbidden + $ref: "#/components/responses/NotAuthorizedResponse" "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Not Found + $ref: "#/components/responses/NotFoundResponse" "429": $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: [] summary: Change the related incidents of a security signal tags: ["Security Monitoring"] x-codegen-request-body-name: body @@ -103438,25 +103426,17 @@ paths: $ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse" description: OK "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Bad Request + $ref: "#/components/responses/BadRequestResponse" "403": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Forbidden + $ref: "#/components/responses/NotAuthorizedResponse" "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Not Found + $ref: "#/components/responses/NotFoundResponse" "429": $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: [] summary: Change the triage state of a security signal tags: ["Security Monitoring"] x-codegen-request-body-name: body diff --git a/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts b/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts index 512dfcd196c6..8a67e9c98c70 100644 --- a/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts +++ b/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts @@ -1303,6 +1303,7 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { applySecurityAuthentication(_config, requestContext, [ "apiKeyAuth", "appKeyAuth", + "AuthZ", ]); return requestContext; @@ -1363,6 +1364,7 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { applySecurityAuthentication(_config, requestContext, [ "apiKeyAuth", "appKeyAuth", + "AuthZ", ]); return requestContext; @@ -1418,6 +1420,7 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory { applySecurityAuthentication(_config, requestContext, [ "apiKeyAuth", "appKeyAuth", + "AuthZ", ]); return requestContext; @@ -7369,7 +7372,11 @@ export class SecurityMonitoringApiResponseProcessor { ) as SecurityMonitoringSignalResponse; return body; } - if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + if ( + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429 + ) { const bodyText = ObjectSerializer.parse( await response.body.text(), contentType diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index d1a3d2d2681a..b3d6b853b119 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -5209,6 +5209,7 @@ const enumsMap: { [key: string]: any[] } = { "none", "false_positive", "testing_or_maintenance", + "remediated", "investigated_case_opened", "true_positive_benign", "true_positive_malicious", diff --git a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.ts b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.ts index 999158200ef8..1ea7e155061d 100644 --- a/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.ts +++ b/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.ts @@ -14,6 +14,7 @@ export type SecurityMonitoringSignalArchiveReason = | typeof NONE | typeof FALSE_POSITIVE | typeof TESTING_OR_MAINTENANCE + | typeof REMEDIATED | typeof INVESTIGATED_CASE_OPENED | typeof TRUE_POSITIVE_BENIGN | typeof TRUE_POSITIVE_MALICIOUS @@ -22,6 +23,7 @@ export type SecurityMonitoringSignalArchiveReason = export const NONE = "none"; export const FALSE_POSITIVE = "false_positive"; export const TESTING_OR_MAINTENANCE = "testing_or_maintenance"; +export const REMEDIATED = "remediated"; export const INVESTIGATED_CASE_OPENED = "investigated_case_opened"; export const TRUE_POSITIVE_BENIGN = "true_positive_benign"; export const TRUE_POSITIVE_MALICIOUS = "true_positive_malicious";