From 8f122a15c9fe3974b1561c2ab7b146dc069b250f Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 20 Oct 2026 17:44:11 +0000 Subject: [PATCH] Regenerate client from commit c24d398 of spec repo --- .generator/schemas/v2/openapi.yaml | 134 +++--------------- packages/datadog-api-client-v2/index.ts | 6 +- .../DemInferredJourneyCandidateAttributes.ts | 11 -- .../DemInferredJourneyIgnoredAttributes.ts | 11 -- .../models/DemInferredJourneyItem.ts | 18 +++ .../DemSearchInferredJourneysResponse.ts | 5 +- .../models/LLMObsContentBlock.ts | 9 +- .../models/LLMObsContentBlockType.ts | 4 +- .../models/LLMObsFrontendContentBlock.ts | 62 -------- .../models/LLMObsFrontendContentBlockType.ts | 14 -- .../models/LLMObsLegacyContentBlock.ts | 53 ------- .../models/LLMObsLegacyContentBlockType.ts | 28 ---- .../models/ObjectSerializer.ts | 24 +--- .../models/TriggerAttributes.ts | 67 +-------- .../models/TriggerType.ts | 18 --- 15 files changed, 57 insertions(+), 407 deletions(-) create mode 100644 packages/datadog-api-client-v2/models/DemInferredJourneyItem.ts delete mode 100644 packages/datadog-api-client-v2/models/LLMObsFrontendContentBlock.ts delete mode 100644 packages/datadog-api-client-v2/models/LLMObsFrontendContentBlockType.ts delete mode 100644 packages/datadog-api-client-v2/models/LLMObsLegacyContentBlock.ts delete mode 100644 packages/datadog-api-client-v2/models/LLMObsLegacyContentBlockType.ts delete mode 100644 packages/datadog-api-client-v2/models/TriggerType.ts diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 0168ec45e3bc..0eb131fbc4b6 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -34993,6 +34993,7 @@ components: x-enum-varnames: - CREATE_TEST_SUITE_FOR_JOURNEY_REQUEST DemInferredJourneyCandidateAttributes: + additionalProperties: false description: Attributes of an inferred journey candidate. properties: created_at: @@ -35058,6 +35059,7 @@ components: - attributes type: object DemInferredJourneyIgnoredAttributes: + additionalProperties: false description: Attributes of an ignored inferred journey. properties: created_at: @@ -35122,6 +35124,11 @@ components: - type - attributes type: object + DemInferredJourneyItem: + description: A single inferred journey item, either a candidate or an ignored journey. + oneOf: + - $ref: "#/components/schemas/DemInferredJourneyCandidateData" + - $ref: "#/components/schemas/DemInferredJourneyIgnoredData" DemInferredJourneyStatus: default: candidate description: The status of an inferred DEM journey. @@ -35551,10 +35558,7 @@ components: data: description: List of inferred journey items matching the search criteria. items: - anyOf: - - $ref: "#/components/schemas/DemInferredJourneyCandidateData" - - $ref: "#/components/schemas/DemInferredJourneyIgnoredData" - description: A single inferred journey item, either a candidate or an ignored journey. + $ref: "#/components/schemas/DemInferredJourneyItem" type: array required: - data @@ -36456,11 +36460,6 @@ components: - DEPLOYMENT_GATES_EVALUATION_RESULT_RESPONSE DeploymentGatesEvaluationRule: description: A rule to evaluate as part of a deployment gate evaluation. - discriminator: - mapping: - faulty_deployment_detection: "#/components/schemas/DeploymentGatesFDDRule" - monitor: "#/components/schemas/DeploymentGatesMonitorRule" - propertyName: type oneOf: - $ref: "#/components/schemas/DeploymentGatesMonitorRule" - $ref: "#/components/schemas/DeploymentGatesFDDRule" @@ -68154,9 +68153,6 @@ components: type: string type: object LLMObsContentBlock: - anyOf: - - $ref: "#/components/schemas/LLMObsFrontendContentBlock" - - $ref: "#/components/schemas/LLMObsLegacyContentBlock" description: |- A single content block rendered inside a `display_block` interaction. `type` discriminates which other fields are meaningful: @@ -68165,7 +68161,7 @@ components: - `header`: `content` must be a string; `level`, when set, must be one of `sm`, `md`, `lg`, `xl`. - `json`: `content` must be a well-formed JSON value (object, array, or scalar). - `image`: `url` is required. - - `widget`: `tileDef` is required (any well-formed JSON; the frontend owns the renderable schema). + - `univiz`: `tileDef` is required (any well-formed JSON; the frontend owns the renderable schema). - `llmobs_trace`: `traceId` is required; `interactionType`, when set, must be `trace` or `experiment_trace`. - `frontend`: `code` is required and must be a non-empty string; `label` is optional. @@ -68181,7 +68177,7 @@ components: description: |- Block payload. A string for `markdown`, `header`, and `text`; an arbitrary JSON value (object, array, or scalar) for `json`. Omitted - for `image`, `widget`, `llmobs_trace`, and `frontend`. + for `image`, `univiz`, `llmobs_trace`, and `frontend`. example: "## Triage Instructions" height: description: Optional rendered height. Must be positive when set. @@ -68198,7 +68194,7 @@ components: $ref: "#/components/schemas/LLMObsContentBlockHeaderLevel" tileDef: description: |- - Tile definition for a `widget` block. Required for `widget`. The + Tile definition for a `univiz` block. Required for `univiz`. The schema is owned by the frontend renderer. example: requests: @@ -68221,8 +68217,6 @@ components: description: URL of the image. Required for `image` blocks. example: "https://example.com/image.png" type: string - required: - - type type: object LLMObsContentBlockHeaderLevel: description: Visual size for a `header` block. @@ -68277,7 +68271,7 @@ components: - text - json - image - - widget + - univiz - llmobs_trace - frontend example: markdown @@ -68288,7 +68282,7 @@ components: - TEXT - JSON - IMAGE - - WIDGET + - UNIVIZ - LLMOBS_TRACE - FRONTEND LLMObsContentBlocks: @@ -71210,29 +71204,11 @@ components: required: - data type: object - LLMObsFrontendContentBlock: - description: Validation requirements for a `frontend` display block. - properties: - code: - $ref: "#/components/schemas/LLMObsFrontendContentBlockCode" - type: - $ref: "#/components/schemas/LLMObsFrontendContentBlockType" - required: - - code - type: object LLMObsFrontendContentBlockCode: description: HTML code rendered by a `frontend` block. Required for `frontend` blocks. example: '
Ready for review
' minLength: 1 type: string - LLMObsFrontendContentBlockType: - description: Type discriminator for a `frontend` display block. - enum: - - frontend - example: frontend - type: string - x-enum-varnames: - - FRONTEND LLMObsInferenceCode: description: A generated code snippet for running an inference request programmatically. properties: @@ -71838,32 +71814,6 @@ components: - CATEGORICAL - BOOLEAN - TEXT - LLMObsLegacyContentBlock: - description: Validation requirements for an existing non-frontend display block. - properties: - type: - $ref: "#/components/schemas/LLMObsLegacyContentBlockType" - type: object - LLMObsLegacyContentBlockType: - description: Type discriminator for an existing non-frontend display block. - enum: - - markdown - - header - - text - - json - - image - - widget - - llmobs_trace - example: markdown - type: string - x-enum-varnames: - - MARKDOWN - - HEADER - - TEXT - - JSON - - IMAGE - - WIDGET - - LLMOBS_TRACE LLMObsMetricAssessment: description: Assessment result for an Agent Observability experiment metric. enum: @@ -113157,16 +113107,6 @@ components: description: |- Type-specific details for a content pack state. The set of fields present depends on the content pack's `type`. When Cloud SIEM is inactive for the requesting organization, `onboarding` is returned instead of the content pack's usual type, such as `logs` or `vulnerability`.` - discriminator: - mapping: - appsec: "#/components/schemas/SecurityMonitoringContentPackAppSecDetails" - audit: "#/components/schemas/SecurityMonitoringContentPackAuditDetails" - entity: "#/components/schemas/SecurityMonitoringContentPackEntityDetails" - logs: "#/components/schemas/SecurityMonitoringContentPackLogsDetails" - onboarding: "#/components/schemas/SecurityMonitoringContentPackOnboardingDetails" - threat_intel: "#/components/schemas/SecurityMonitoringContentPackThreatIntelDetails" - vulnerability: "#/components/schemas/SecurityMonitoringContentPackVulnerabilityDetails" - propertyName: type oneOf: - $ref: "#/components/schemas/SecurityMonitoringContentPackLogsDetails" - $ref: "#/components/schemas/SecurityMonitoringContentPackThreatIntelDetails" @@ -114383,14 +114323,6 @@ components: type: object SecurityMonitoringIntegrationConfigCreateAttributes: description: The attributes of the entity context sync configuration to create. - discriminator: - mapping: - CROWDSTRIKE: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes" - ENTRA_ID: "#/components/schemas/SecurityMonitoringEntraIdIntegrationConfigCreateAttributes" - GOOGLE_WORKSPACE: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes" - OKTA: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigCreateAttributes" - SENTINELONE: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationConfigCreateAttributes" - propertyName: integration_type oneOf: - $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes" - $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigCreateAttributes" @@ -114542,14 +114474,6 @@ components: - INITIALIZING SecurityMonitoringIntegrationConfigUpdateAttributes: description: Fields to update on the entity context sync configuration. All fields other than the integration type are optional. - discriminator: - mapping: - CROWDSTRIKE: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes" - ENTRA_ID: "#/components/schemas/SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes" - GOOGLE_WORKSPACE: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes" - OKTA: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigUpdateAttributes" - SENTINELONE: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationConfigUpdateAttributes" - propertyName: integration_type oneOf: - $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes" - $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigUpdateAttributes" @@ -114588,14 +114512,6 @@ components: type: object SecurityMonitoringIntegrationCredentialsValidateAttributes: description: The credentials to validate against the external entity source. - discriminator: - mapping: - CROWDSTRIKE: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationCredentialsValidateAttributes" - ENTRA_ID: "#/components/schemas/SecurityMonitoringEntraIdIntegrationCredentialsValidateAttributes" - GOOGLE_WORKSPACE: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationCredentialsValidateAttributes" - OKTA: "#/components/schemas/SecurityMonitoringOktaIntegrationCredentialsValidateAttributes" - SENTINELONE: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationCredentialsValidateAttributes" - propertyName: integration_type oneOf: - $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationCredentialsValidateAttributes" - $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationCredentialsValidateAttributes" @@ -135167,9 +135083,6 @@ components: - $ref: "#/components/schemas/SoftwareCatalogTriggerWrapper" - $ref: "#/components/schemas/WorkflowTriggerWrapper" TriggerAttributes: - anyOf: - - $ref: "#/components/schemas/MonitorAlertTrigger" - - $ref: "#/components/schemas/GeneralInvestigationTrigger" description: The trigger definition for starting an investigation. example: monitor_alert_trigger: @@ -135177,14 +135090,9 @@ components: event_ts: 1700000000000 monitor_id: 12345678 type: monitor_alert_trigger - properties: - general_investigation: - $ref: "#/components/schemas/GeneralInvestigationAttributes" - monitor_alert_trigger: - $ref: "#/components/schemas/MonitorAlertTriggerAttributes" - type: - $ref: "#/components/schemas/TriggerType" - type: object + oneOf: + - $ref: "#/components/schemas/MonitorAlertTrigger" + - $ref: "#/components/schemas/GeneralInvestigationTrigger" TriggerInvestigationRequest: description: Request to trigger a new investigation. properties: @@ -135285,16 +135193,6 @@ components: x-enum-varnames: - SECURITY_FINDINGS - SECURITY_SIGNALS - TriggerType: - description: The type of trigger for the investigation. - enum: - - monitor_alert_trigger - - general_investigation - example: monitor_alert_trigger - type: string - x-enum-varnames: - - MONITOR_ALERT_TRIGGER - - GENERAL_INVESTIGATION TriggerWorkflowAutomationAction: description: "Triggers a Workflow Automation." properties: diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 4b2faf317c22..5152d2bc3111 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -4061,6 +4061,7 @@ export { DemInferredJourneyCandidateAttributes } from "./models/DemInferredJourn export { DemInferredJourneyCandidateData } from "./models/DemInferredJourneyCandidateData"; export { DemInferredJourneyIgnoredAttributes } from "./models/DemInferredJourneyIgnoredAttributes"; export { DemInferredJourneyIgnoredData } from "./models/DemInferredJourneyIgnoredData"; +export { DemInferredJourneyItem } from "./models/DemInferredJourneyItem"; export { DemInferredJourneyStatus } from "./models/DemInferredJourneyStatus"; export { DemJourneyCreateAttributes } from "./models/DemJourneyCreateAttributes"; export { DemJourneyCreateData } from "./models/DemJourneyCreateData"; @@ -6252,8 +6253,6 @@ export { LLMObsExperimentUpdateDataAttributesRequest } from "./models/LLMObsExpe export { LLMObsExperimentUpdateDataRequest } from "./models/LLMObsExperimentUpdateDataRequest"; export { LLMObsExperimentUpdateRequest } from "./models/LLMObsExperimentUpdateRequest"; export { LLMObsExperimentUser } from "./models/LLMObsExperimentUser"; -export { LLMObsFrontendContentBlock } from "./models/LLMObsFrontendContentBlock"; -export { LLMObsFrontendContentBlockType } from "./models/LLMObsFrontendContentBlockType"; export { LLMObsInferenceCode } from "./models/LLMObsInferenceCode"; export { LLMObsInferenceContent } from "./models/LLMObsInferenceContent"; export { LLMObsInferenceContentValue } from "./models/LLMObsInferenceContentValue"; @@ -6272,8 +6271,6 @@ export { LLMObsIntegrationName } from "./models/LLMObsIntegrationName"; export { LLMObsInternalReasoning } from "./models/LLMObsInternalReasoning"; export { LLMObsLabelSchema } from "./models/LLMObsLabelSchema"; export { LLMObsLabelSchemaType } from "./models/LLMObsLabelSchemaType"; -export { LLMObsLegacyContentBlock } from "./models/LLMObsLegacyContentBlock"; -export { LLMObsLegacyContentBlockType } from "./models/LLMObsLegacyContentBlockType"; export { LLMObsMetricAssessment } from "./models/LLMObsMetricAssessment"; export { LLMObsMetricScoreType } from "./models/LLMObsMetricScoreType"; export { LLMObsOpenAIMetadata } from "./models/LLMObsOpenAIMetadata"; @@ -10191,7 +10188,6 @@ export { TriggerInvestigationResponseDataAttributes } from "./models/TriggerInve export { TriggerInvestigationResponseType } from "./models/TriggerInvestigationResponseType"; export { TriggerRateLimit } from "./models/TriggerRateLimit"; export { TriggerSource } from "./models/TriggerSource"; -export { TriggerType } from "./models/TriggerType"; export { TriggerWorkflowAutomationAction } from "./models/TriggerWorkflowAutomationAction"; export { TriggerWorkflowAutomationActionType } from "./models/TriggerWorkflowAutomationActionType"; export { TwilioAlertsLogsIntegrationDataflowRequest } from "./models/TwilioAlertsLogsIntegrationDataflowRequest"; diff --git a/packages/datadog-api-client-v2/models/DemInferredJourneyCandidateAttributes.ts b/packages/datadog-api-client-v2/models/DemInferredJourneyCandidateAttributes.ts index cec472c40b27..8ed1756f6b41 100644 --- a/packages/datadog-api-client-v2/models/DemInferredJourneyCandidateAttributes.ts +++ b/packages/datadog-api-client-v2/models/DemInferredJourneyCandidateAttributes.ts @@ -50,13 +50,6 @@ export class DemInferredJourneyCandidateAttributes { */ "variants": Array; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** * @ignore */ @@ -111,10 +104,6 @@ export class DemInferredJourneyCandidateAttributes { type: "Array", required: true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, }; /** diff --git a/packages/datadog-api-client-v2/models/DemInferredJourneyIgnoredAttributes.ts b/packages/datadog-api-client-v2/models/DemInferredJourneyIgnoredAttributes.ts index 994b9b5f44fd..f857cb2987fd 100644 --- a/packages/datadog-api-client-v2/models/DemInferredJourneyIgnoredAttributes.ts +++ b/packages/datadog-api-client-v2/models/DemInferredJourneyIgnoredAttributes.ts @@ -50,13 +50,6 @@ export class DemInferredJourneyIgnoredAttributes { */ "variants": Array; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** * @ignore */ @@ -112,10 +105,6 @@ export class DemInferredJourneyIgnoredAttributes { type: "Array", required: true, }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, }; /** diff --git a/packages/datadog-api-client-v2/models/DemInferredJourneyItem.ts b/packages/datadog-api-client-v2/models/DemInferredJourneyItem.ts new file mode 100644 index 000000000000..80989734b1e2 --- /dev/null +++ b/packages/datadog-api-client-v2/models/DemInferredJourneyItem.ts @@ -0,0 +1,18 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { DemInferredJourneyCandidateData } from "./DemInferredJourneyCandidateData"; +import { DemInferredJourneyIgnoredData } from "./DemInferredJourneyIgnoredData"; + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * A single inferred journey item, either a candidate or an ignored journey. + */ + +export type DemInferredJourneyItem = + | DemInferredJourneyCandidateData + | DemInferredJourneyIgnoredData + | UnparsedObject; diff --git a/packages/datadog-api-client-v2/models/DemSearchInferredJourneysResponse.ts b/packages/datadog-api-client-v2/models/DemSearchInferredJourneysResponse.ts index c8658a15b137..c29a8eac69d1 100644 --- a/packages/datadog-api-client-v2/models/DemSearchInferredJourneysResponse.ts +++ b/packages/datadog-api-client-v2/models/DemSearchInferredJourneysResponse.ts @@ -3,6 +3,7 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { DemInferredJourneyItem } from "./DemInferredJourneyItem"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -13,7 +14,7 @@ export class DemSearchInferredJourneysResponse { /** * List of inferred journey items matching the search criteria. */ - "data": Array; + "data": Array; /** * A container for additional, undeclared properties. @@ -33,7 +34,7 @@ export class DemSearchInferredJourneysResponse { static readonly attributeTypeMap: AttributeTypeMap = { data: { baseName: "data", - type: "Array", + type: "Array", required: true, }, additionalProperties: { diff --git a/packages/datadog-api-client-v2/models/LLMObsContentBlock.ts b/packages/datadog-api-client-v2/models/LLMObsContentBlock.ts index 3c274eddcde9..7ffa43e29e0c 100644 --- a/packages/datadog-api-client-v2/models/LLMObsContentBlock.ts +++ b/packages/datadog-api-client-v2/models/LLMObsContentBlock.ts @@ -18,7 +18,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * - `header`: `content` must be a string; `level`, when set, must be one of `sm`, `md`, `lg`, `xl`. * - `json`: `content` must be a well-formed JSON value (object, array, or scalar). * - `image`: `url` is required. - * - `widget`: `tileDef` is required (any well-formed JSON; the frontend owns the renderable schema). + * - `univiz`: `tileDef` is required (any well-formed JSON; the frontend owns the renderable schema). * - `llmobs_trace`: `traceId` is required; `interactionType`, when set, must be `trace` or `experiment_trace`. * - `frontend`: `code` is required and must be a non-empty string; `label` is optional. * @@ -36,7 +36,7 @@ export class LLMObsContentBlock { /** * Block payload. A string for `markdown`, `header`, and `text`; an * arbitrary JSON value (object, array, or scalar) for `json`. Omitted - * for `image`, `widget`, `llmobs_trace`, and `frontend`. + * for `image`, `univiz`, `llmobs_trace`, and `frontend`. */ "content"?: any; /** @@ -57,7 +57,7 @@ export class LLMObsContentBlock { */ "level"?: LLMObsContentBlockHeaderLevel; /** - * Tile definition for a `widget` block. Required for `widget`. The + * Tile definition for a `univiz` block. Required for `univiz`. The * schema is owned by the frontend renderer. */ "tileDef"?: any; @@ -73,7 +73,7 @@ export class LLMObsContentBlock { * Discriminator for a single `display_block` content block. Adding a * variant requires coordinated changes in the frontend renderer. */ - "type": LLMObsContentBlockType; + "type"?: LLMObsContentBlockType; /** * URL of the image. Required for `image` blocks. */ @@ -139,7 +139,6 @@ export class LLMObsContentBlock { type: { baseName: "type", type: "LLMObsContentBlockType", - required: true, }, url: { baseName: "url", diff --git a/packages/datadog-api-client-v2/models/LLMObsContentBlockType.ts b/packages/datadog-api-client-v2/models/LLMObsContentBlockType.ts index df6c63a967db..ce0ec7339305 100644 --- a/packages/datadog-api-client-v2/models/LLMObsContentBlockType.ts +++ b/packages/datadog-api-client-v2/models/LLMObsContentBlockType.ts @@ -17,7 +17,7 @@ export type LLMObsContentBlockType = | typeof TEXT | typeof JSON | typeof IMAGE - | typeof WIDGET + | typeof UNIVIZ | typeof LLMOBS_TRACE | typeof FRONTEND | UnparsedObject; @@ -26,6 +26,6 @@ export const HEADER = "header"; export const TEXT = "text"; export const JSON = "json"; export const IMAGE = "image"; -export const WIDGET = "widget"; +export const UNIVIZ = "univiz"; export const LLMOBS_TRACE = "llmobs_trace"; export const FRONTEND = "frontend"; diff --git a/packages/datadog-api-client-v2/models/LLMObsFrontendContentBlock.ts b/packages/datadog-api-client-v2/models/LLMObsFrontendContentBlock.ts deleted file mode 100644 index f7cdcc842175..000000000000 --- a/packages/datadog-api-client-v2/models/LLMObsFrontendContentBlock.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2020-Present Datadog, Inc. - */ -import { LLMObsFrontendContentBlockType } from "./LLMObsFrontendContentBlockType"; - -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; - -/** - * Validation requirements for a `frontend` display block. - */ -export class LLMObsFrontendContentBlock { - /** - * HTML code rendered by a `frontend` block. Required for `frontend` blocks. - */ - "code": string; - /** - * Type discriminator for a `frontend` display block. - */ - "type"?: LLMObsFrontendContentBlockType; - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "LLMObsFrontendContentBlockType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LLMObsFrontendContentBlock.attributeTypeMap; - } - - public constructor() {} -} diff --git a/packages/datadog-api-client-v2/models/LLMObsFrontendContentBlockType.ts b/packages/datadog-api-client-v2/models/LLMObsFrontendContentBlockType.ts deleted file mode 100644 index 7161cd110952..000000000000 --- a/packages/datadog-api-client-v2/models/LLMObsFrontendContentBlockType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2020-Present Datadog, Inc. - */ - -import { UnparsedObject } from "../../datadog-api-client-common/util"; - -/** - * Type discriminator for a `frontend` display block. - */ - -export type LLMObsFrontendContentBlockType = typeof FRONTEND | UnparsedObject; -export const FRONTEND = "frontend"; diff --git a/packages/datadog-api-client-v2/models/LLMObsLegacyContentBlock.ts b/packages/datadog-api-client-v2/models/LLMObsLegacyContentBlock.ts deleted file mode 100644 index 84b6050d3a9f..000000000000 --- a/packages/datadog-api-client-v2/models/LLMObsLegacyContentBlock.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2020-Present Datadog, Inc. - */ -import { LLMObsLegacyContentBlockType } from "./LLMObsLegacyContentBlockType"; - -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; - -/** - * Validation requirements for an existing non-frontend display block. - */ -export class LLMObsLegacyContentBlock { - /** - * Type discriminator for an existing non-frontend display block. - */ - "type"?: LLMObsLegacyContentBlockType; - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "LLMObsLegacyContentBlockType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LLMObsLegacyContentBlock.attributeTypeMap; - } - - public constructor() {} -} diff --git a/packages/datadog-api-client-v2/models/LLMObsLegacyContentBlockType.ts b/packages/datadog-api-client-v2/models/LLMObsLegacyContentBlockType.ts deleted file mode 100644 index 4dee353e0e18..000000000000 --- a/packages/datadog-api-client-v2/models/LLMObsLegacyContentBlockType.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2020-Present Datadog, Inc. - */ - -import { UnparsedObject } from "../../datadog-api-client-common/util"; - -/** - * Type discriminator for an existing non-frontend display block. - */ - -export type LLMObsLegacyContentBlockType = - | typeof MARKDOWN - | typeof HEADER - | typeof TEXT - | typeof JSON - | typeof IMAGE - | typeof WIDGET - | typeof LLMOBS_TRACE - | UnparsedObject; -export const MARKDOWN = "markdown"; -export const HEADER = "header"; -export const TEXT = "text"; -export const JSON = "json"; -export const IMAGE = "image"; -export const WIDGET = "widget"; -export const LLMOBS_TRACE = "llmobs_trace"; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index e42a08284e37..2e5eabb578de 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -3166,7 +3166,6 @@ import { LLMObsExperimentationSimpleSearchRequest } from "./LLMObsExperimentatio import { LLMObsExperimentationSimpleSearchResponse } from "./LLMObsExperimentationSimpleSearchResponse"; import { LLMObsExperimentationSortField } from "./LLMObsExperimentationSortField"; import { LLMObsExperimentsResponse } from "./LLMObsExperimentsResponse"; -import { LLMObsFrontendContentBlock } from "./LLMObsFrontendContentBlock"; import { LLMObsInferenceCode } from "./LLMObsInferenceCode"; import { LLMObsInferenceContent } from "./LLMObsInferenceContent"; import { LLMObsInferenceContentValue } from "./LLMObsInferenceContentValue"; @@ -3183,7 +3182,6 @@ import { LLMObsIntegrationInferenceResponse } from "./LLMObsIntegrationInference import { LLMObsIntegrationModel } from "./LLMObsIntegrationModel"; import { LLMObsInternalReasoning } from "./LLMObsInternalReasoning"; import { LLMObsLabelSchema } from "./LLMObsLabelSchema"; -import { LLMObsLegacyContentBlock } from "./LLMObsLegacyContentBlock"; import { LLMObsOpenAIMetadata } from "./LLMObsOpenAIMetadata"; import { LLMObsPatternsActivityProgress } from "./LLMObsPatternsActivityProgress"; import { LLMObsPatternsClusteredPoint } from "./LLMObsPatternsClusteredPoint"; @@ -6189,7 +6187,6 @@ import { TopLongTaskInvoker } from "./TopLongTaskInvoker"; import { TraceAttributes } from "./TraceAttributes"; import { TraceData } from "./TraceData"; import { TraceResponse } from "./TraceResponse"; -import { TriggerAttributes } from "./TriggerAttributes"; import { TriggerInvestigationRequest } from "./TriggerInvestigationRequest"; import { TriggerInvestigationRequestData } from "./TriggerInvestigationRequestData"; import { TriggerInvestigationRequestDataAttributes } from "./TriggerInvestigationRequestDataAttributes"; @@ -8095,7 +8092,7 @@ const enumsMap: { [key: string]: any[] } = { "text", "json", "image", - "widget", + "univiz", "llmobs_trace", "frontend", ], @@ -8126,7 +8123,6 @@ const enumsMap: { [key: string]: any[] } = { LLMObsExperimentType: ["experiments"], LLMObsExperimentationSortFieldDirection: ["asc", "desc"], LLMObsExperimentationType: ["experimentation"], - LLMObsFrontendContentBlockType: ["frontend"], LLMObsIntegrationName: [ "openai", "amazon_bedrock", @@ -8136,15 +8132,6 @@ const enumsMap: { [key: string]: any[] } = { "llmproxy", ], LLMObsLabelSchemaType: ["score", "categorical", "boolean", "text"], - LLMObsLegacyContentBlockType: [ - "markdown", - "header", - "text", - "json", - "image", - "widget", - "llmobs_trace", - ], LLMObsMetricAssessment: ["pass", "fail"], LLMObsMetricScoreType: ["score", "categorical", "boolean", "json"], LLMObsOpenAIReasoningEffort: ["none", "low", "medium", "high", "xhigh"], @@ -10061,7 +10048,6 @@ const enumsMap: { [key: string]: any[] } = { TriggerInvestigationRequestType: ["trigger_investigation_request"], TriggerInvestigationResponseType: ["trigger_investigation_response"], TriggerSource: ["security_findings", "security_signals"], - TriggerType: ["monitor_alert_trigger", "general_investigation"], TriggerWorkflowAutomationActionType: ["workflow"], TwilioIntegrationAccountBasicAuthType: ["basic"], UCConfigPairDataType: ["azure_uc_configs"], @@ -14161,7 +14147,6 @@ const typeMap: { [index: string]: any } = { LLMObsExperimentationSimpleSearchResponse, LLMObsExperimentationSortField: LLMObsExperimentationSortField, LLMObsExperimentsResponse: LLMObsExperimentsResponse, - LLMObsFrontendContentBlock: LLMObsFrontendContentBlock, LLMObsInferenceCode: LLMObsInferenceCode, LLMObsInferenceContent: LLMObsInferenceContent, LLMObsInferenceContentValue: LLMObsInferenceContentValue, @@ -14178,7 +14163,6 @@ const typeMap: { [index: string]: any } = { LLMObsIntegrationModel: LLMObsIntegrationModel, LLMObsInternalReasoning: LLMObsInternalReasoning, LLMObsLabelSchema: LLMObsLabelSchema, - LLMObsLegacyContentBlock: LLMObsLegacyContentBlock, LLMObsOpenAIMetadata: LLMObsOpenAIMetadata, LLMObsPatternsActivityProgress: LLMObsPatternsActivityProgress, LLMObsPatternsClusteredPoint: LLMObsPatternsClusteredPoint, @@ -18021,7 +18005,6 @@ const typeMap: { [index: string]: any } = { TraceAttributes: TraceAttributes, TraceData: TraceData, TraceResponse: TraceResponse, - TriggerAttributes: TriggerAttributes, TriggerInvestigationRequest: TriggerInvestigationRequest, TriggerInvestigationRequestData: TriggerInvestigationRequestData, TriggerInvestigationRequestDataAttributes: @@ -18679,6 +18662,10 @@ const oneOfMap: { [index: string]: string[] } = { "Degradation", "StatusPageAsIncluded", ], + DemInferredJourneyItem: [ + "DemInferredJourneyCandidateData", + "DemInferredJourneyIgnoredData", + ], DeploymentGatesEvaluationRule: [ "DeploymentGatesMonitorRule", "DeploymentGatesFDDRule", @@ -19357,6 +19344,7 @@ const oneOfMap: { [index: string]: string[] } = { "SoftwareCatalogTriggerWrapper", "WorkflowTriggerWrapper", ], + TriggerAttributes: ["MonitorAlertTrigger", "GeneralInvestigationTrigger"], TwilioIntegrationAccountAuthenticationRequest: [ "TwilioIntegrationAccountBasicAuthRequest", ], diff --git a/packages/datadog-api-client-v2/models/TriggerAttributes.ts b/packages/datadog-api-client-v2/models/TriggerAttributes.ts index adbfdf5637b4..5a45c90f0ab6 100644 --- a/packages/datadog-api-client-v2/models/TriggerAttributes.ts +++ b/packages/datadog-api-client-v2/models/TriggerAttributes.ts @@ -3,69 +3,16 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ -import { GeneralInvestigationAttributes } from "./GeneralInvestigationAttributes"; -import { MonitorAlertTriggerAttributes } from "./MonitorAlertTriggerAttributes"; -import { TriggerType } from "./TriggerType"; +import { GeneralInvestigationTrigger } from "./GeneralInvestigationTrigger"; +import { MonitorAlertTrigger } from "./MonitorAlertTrigger"; -import { AttributeTypeMap } from "../../datadog-api-client-common/util"; +import { UnparsedObject } from "../../datadog-api-client-common/util"; /** * The trigger definition for starting an investigation. */ -export class TriggerAttributes { - /** - * Attributes for a general investigation, not tied to a specific monitor alert. - */ - "generalInvestigation"?: GeneralInvestigationAttributes; - /** - * Attributes for a monitor alert trigger. - */ - "monitorAlertTrigger"?: MonitorAlertTriggerAttributes; - /** - * The type of trigger for the investigation. - */ - "type"?: TriggerType; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - generalInvestigation: { - baseName: "general_investigation", - type: "GeneralInvestigationAttributes", - }, - monitorAlertTrigger: { - baseName: "monitor_alert_trigger", - type: "MonitorAlertTriggerAttributes", - }, - type: { - baseName: "type", - type: "TriggerType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return TriggerAttributes.attributeTypeMap; - } - - public constructor() {} -} +export type TriggerAttributes = + | MonitorAlertTrigger + | GeneralInvestigationTrigger + | UnparsedObject; diff --git a/packages/datadog-api-client-v2/models/TriggerType.ts b/packages/datadog-api-client-v2/models/TriggerType.ts deleted file mode 100644 index cd5b89391940..000000000000 --- a/packages/datadog-api-client-v2/models/TriggerType.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2020-Present Datadog, Inc. - */ - -import { UnparsedObject } from "../../datadog-api-client-common/util"; - -/** - * The type of trigger for the investigation. - */ - -export type TriggerType = - | typeof MONITOR_ALERT_TRIGGER - | typeof GENERAL_INVESTIGATION - | UnparsedObject; -export const MONITOR_ALERT_TRIGGER = "monitor_alert_trigger"; -export const GENERAL_INVESTIGATION = "general_investigation";