diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index fcf5fd48e2c3..d7216f4e28c0 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -56412,139 +56412,6 @@ components: example: "my-gcp-project" type: string type: object - LLMObsDataDeletionRequest: - description: Request to delete LLM Observability data. - properties: - data: - $ref: "#/components/schemas/LLMObsDataDeletionRequestData" - required: - - data - type: object - LLMObsDataDeletionRequestAttributes: - description: Attributes for an LLM Observability data deletion request. - properties: - delay: - description: Optional delay in seconds before the deletion is executed. - example: 0 - format: int64 - type: integer - from: - description: Start of the deletion time range in milliseconds since Unix epoch. - example: 1705314600000 - format: int64 - type: integer - query: - additionalProperties: - type: string - description: Query filters selecting the data to delete. Must include a `query` key with an `@trace_id` filter. - example: - query: "@trace_id:abc123def456" - type: object - to: - description: End of the deletion time range in milliseconds since Unix epoch. - example: 1705315200000 - format: int64 - type: integer - required: - - query - - from - - to - type: object - LLMObsDataDeletionRequestData: - description: Data object for an LLM Observability data deletion request. - properties: - attributes: - $ref: "#/components/schemas/LLMObsDataDeletionRequestAttributes" - type: - $ref: "#/components/schemas/LLMObsDataDeletionRequestType" - required: - - type - - attributes - type: object - LLMObsDataDeletionRequestType: - description: Resource type for an LLM Observability data deletion request. - enum: - - create_deletion_req - example: create_deletion_req - type: string - x-enum-varnames: - - CREATE_DELETION_REQ - LLMObsDataDeletionResponse: - description: Response containing details of a submitted LLM Observability data deletion request. - properties: - data: - $ref: "#/components/schemas/LLMObsDataDeletionResponseData" - required: - - data - type: object - LLMObsDataDeletionResponseAttributes: - description: Attributes of a submitted LLM Observability data deletion request. - properties: - created_at: - description: Timestamp when the deletion request was created. - example: "2024-01-15T10:30:00Z" - format: date-time - type: string - created_by: - description: UUID of the user who created the deletion request. - example: "user-uuid-1234" - type: string - from_time: - description: Start of the deletion time range in milliseconds since Unix epoch. - example: 1705314600000 - format: int64 - type: integer - org_id: - description: ID of the organization that submitted the deletion request. - example: 12345 - format: int64 - type: integer - product: - description: Product name for the deletion request. - example: "llmobs" - type: string - query: - description: The query string used to select data for deletion. - example: "@trace_id:abc123def456" - type: string - to_time: - description: End of the deletion time range in milliseconds since Unix epoch. - example: 1705315200000 - format: int64 - type: integer - required: - - org_id - - product - - created_at - - created_by - - from_time - - to_time - - query - type: object - LLMObsDataDeletionResponseData: - description: Data object for an LLM Observability data deletion response. - properties: - attributes: - $ref: "#/components/schemas/LLMObsDataDeletionResponseAttributes" - id: - description: Unique identifier of the deletion request. - example: "msg-abc123" - type: string - type: - $ref: "#/components/schemas/LLMObsDataDeletionResponseType" - required: - - id - - type - - attributes - type: object - LLMObsDataDeletionResponseType: - description: Resource type for an LLM Observability data deletion response. - enum: - - deletion_request - example: deletion_request - type: string - x-enum-varnames: - - DELETION_REQUEST LLMObsDatasetBatchUpdateDataAttributesRequest: description: Attributes for batch-updating records in an LLM Observability dataset. properties: @@ -158593,77 +158460,6 @@ paths: operator: OR permissions: - org_management - /api/v2/llm-obs/deletion/data/llmobs: - post: - description: Submit a request to delete LLM Observability span data matching a trace ID filter within a specified time range. - operationId: DeleteLLMObsData - requestBody: - content: - application/json: - examples: - default: - value: - data: - attributes: - from: 1705314600000 - query: - query: "@trace_id:abc123def456" - to: 1705315200000 - type: create_deletion_req - schema: - $ref: "#/components/schemas/LLMObsDataDeletionRequest" - description: Data deletion request payload. - required: true - responses: - "202": - content: - application/json: - examples: - default: - value: - data: - attributes: - created_at: "2024-01-15T10:30:00Z" - created_by: "user-uuid-1234" - from_time: 1705314600000 - org_id: 12345 - product: llmobs - query: "@trace_id:abc123def456" - to_time: 1705315200000 - id: msg-abc123 - type: deletion_request - schema: - $ref: "#/components/schemas/LLMObsDataDeletionResponse" - description: Accepted - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - summary: Delete LLM Observability data - tags: - - LLM Observability - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/llm-obs/v1/annotated-interactions: get: description: |- diff --git a/features/v2/llm_observability.feature b/features/v2/llm_observability.feature index b1897f532b9f..8cb53cdc5a9d 100644 --- a/features/v2/llm_observability.feature +++ b/features/v2/llm_observability.feature @@ -420,22 +420,6 @@ Feature: LLM Observability When the request is sent Then the response status is 200 OK — annotations created or updated. Per-item errors are listed in `errors`. - @generated @skip @team:DataDog/ml-observability - Scenario: Delete LLM Observability data returns "Accepted" response - Given operation "DeleteLLMObsData" enabled - And new "DeleteLLMObsData" request - And body with value {"data": {"attributes": {"delay": 0, "from": 1705314600000, "query": {"query": "@trace_id:abc123def456"}, "to": 1705315200000}, "type": "create_deletion_req"}} - When the request is sent - Then the response status is 202 Accepted - - @generated @skip @team:DataDog/ml-observability - Scenario: Delete LLM Observability data returns "Bad Request" response - Given operation "DeleteLLMObsData" enabled - And new "DeleteLLMObsData" request - And body with value {"data": {"attributes": {"delay": 0, "from": 1705314600000, "query": {"query": "@trace_id:abc123def456"}, "to": 1705315200000}, "type": "create_deletion_req"}} - When the request is sent - Then the response status is 400 Bad Request - @generated @skip @team:DataDog/ml-observability Scenario: Delete LLM Observability dataset records returns "Bad Request" response Given operation "DeleteLLMObsDatasetRecords" enabled diff --git a/features/v2/undo.json b/features/v2/undo.json index df961ee10c84..ad49f8ac47cf 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -4439,14 +4439,6 @@ "type": "idempotent" } }, - "DeleteLLMObsData": { - "tag": "LLM Observability", - "undo": { - "operationId": "TODO", - "parameters": [], - "type": "unsafe" - } - }, "GetLLMObsAnnotatedInteractionsByTraceIDs": { "tag": "LLM Observability", "undo": { diff --git a/private/bdd_runner/src/support/scenarios_model_mapping.ts b/private/bdd_runner/src/support/scenarios_model_mapping.ts index feb93fa4c081..db27ee6dc9a6 100644 --- a/private/bdd_runner/src/support/scenarios_model_mapping.ts +++ b/private/bdd_runner/src/support/scenarios_model_mapping.ts @@ -2562,13 +2562,6 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = { }, operationResponseType: "{}", }, - "LLMObservabilityApi.V2.DeleteLLMObsData": { - body: { - type: "LLMObsDataDeletionRequest", - format: "", - }, - operationResponseType: "LLMObsDataDeletionResponse", - }, "LLMObservabilityApi.V2.GetLLMObsAnnotatedInteractionsByTraceIDs": { contentIds: { type: "Array", diff --git a/services/llm_observability/src/v2/LLMObservabilityApi.ts b/services/llm_observability/src/v2/LLMObservabilityApi.ts index 6c09bf99a819..23c12989aa73 100644 --- a/services/llm_observability/src/v2/LLMObservabilityApi.ts +++ b/services/llm_observability/src/v2/LLMObservabilityApi.ts @@ -44,8 +44,6 @@ import { LLMObsCreatePromptVersionRequest } from "./models/LLMObsCreatePromptVer import { LLMObsCustomEvalConfigListResponse } from "./models/LLMObsCustomEvalConfigListResponse"; import { LLMObsCustomEvalConfigResponse } from "./models/LLMObsCustomEvalConfigResponse"; import { LLMObsCustomEvalConfigUpdateRequest } from "./models/LLMObsCustomEvalConfigUpdateRequest"; -import { LLMObsDataDeletionRequest } from "./models/LLMObsDataDeletionRequest"; -import { LLMObsDataDeletionResponse } from "./models/LLMObsDataDeletionResponse"; import { LLMObsDatasetBatchUpdateRequest } from "./models/LLMObsDatasetBatchUpdateRequest"; import { LLMObsDatasetCloneRequest } from "./models/LLMObsDatasetCloneRequest"; import { LLMObsDatasetDraftStateResponse } from "./models/LLMObsDatasetDraftStateResponse"; @@ -1266,64 +1264,6 @@ export class LLMObservabilityApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async deleteLLMObsData( - body: LLMObsDataDeletionRequest, - _options?: Configuration, - ): Promise { - const _config = _options || this.configuration; - - if ( - !_config.unstableOperations["LLMObservabilityApi.v2.deleteLLMObsData"] - ) { - throw new Error( - "Unstable operation 'deleteLLMObsData' is disabled. Enable it by setting `configuration.unstableOperations['LLMObservabilityApi.v2.deleteLLMObsData'] = true`", - ); - } - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("body", "deleteLLMObsData"); - } - - // Path Params - const localVarPath = "/api/v2/llm-obs/deletion/data/llmobs"; - - // Make Request Context - const { server, overrides } = _config.getServerAndOverrides( - "LLMObservabilityApi.v2.deleteLLMObsData", - LLMObservabilityApi.operationServers, - ); - const requestContext = server.makeRequestContext( - localVarPath, - HttpMethod.POST, - overrides, - ); - requestContext.setHeaderParam("Accept", "application/json"); - requestContext.setHttpConfig(_config.httpConfig); - - // Set User-Agent - if (this.userAgent) { - requestContext.setHeaderParam("User-Agent", this.userAgent); - } - - // Body Params - const contentType = getPreferredMediaType(["application/json"]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = stringify( - serialize(body, TypingInfo, "LLMObsDataDeletionRequest", ""), - contentType, - ); - requestContext.setBody(serializedBody); - - // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); - - return requestContext; - } - public async deleteLLMObsDatasetRecords( projectId: string, datasetId: string, @@ -6397,87 +6337,6 @@ export class LLMObservabilityApiResponseProcessor { ); } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteLLMObsData - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteLLMObsData( - response: ResponseContext, - ): Promise { - const contentType = normalizeMediaType(response.headers["content-type"]); - if (response.httpStatusCode === 202) { - const body: LLMObsDataDeletionResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "LLMObsDataDeletionResponse", - ) as LLMObsDataDeletionResponse; - return body; - } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 - ) { - const bodyText = parse(await response.body.text(), contentType); - let body: JSONAPIErrorResponse; - try { - body = deserialize( - bodyText, - TypingInfo, - "JSONAPIErrorResponse", - ) as JSONAPIErrorResponse; - } catch (error) { - logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText, - ); - } - throw new ApiException( - response.httpStatusCode, - body, - ); - } - if (response.httpStatusCode === 429) { - const bodyText = parse(await response.body.text(), contentType); - let body: APIErrorResponse; - try { - body = deserialize( - bodyText, - TypingInfo, - "APIErrorResponse", - ) as APIErrorResponse; - } catch (error) { - logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText, - ); - } - throw new ApiException(response.httpStatusCode, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: LLMObsDataDeletionResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "LLMObsDataDeletionResponse", - "", - ) as LLMObsDataDeletionResponse; - return body; - } - - const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"', - ); - } - /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -11085,14 +10944,6 @@ export interface LLMObservabilityApiDeleteLLMObsCustomEvalConfigRequest { evalName: string; } -export interface LLMObservabilityApiDeleteLLMObsDataRequest { - /** - * Data deletion request payload. - * @type LLMObsDataDeletionRequest - */ - body: LLMObsDataDeletionRequest; -} - export interface LLMObservabilityApiDeleteLLMObsDatasetRecordsRequest { /** * The ID of the LLM Observability project. @@ -12325,27 +12176,6 @@ export class LLMObservabilityApi { }); } - /** - * Submit a request to delete LLM Observability span data matching a trace ID filter within a specified time range. - * @param param The request object - */ - public deleteLLMObsData( - param: LLMObservabilityApiDeleteLLMObsDataRequest, - options?: Configuration, - ): Promise { - const requestContextPromise = this.requestFactory.deleteLLMObsData( - param.body, - options, - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.deleteLLMObsData(responseContext); - }); - }); - } - /** * Delete one or more records from an LLM Observability dataset. * @param param The request object diff --git a/services/llm_observability/src/v2/index.ts b/services/llm_observability/src/v2/index.ts index 035b7ea65285..4e21006c13ec 100644 --- a/services/llm_observability/src/v2/index.ts +++ b/services/llm_observability/src/v2/index.ts @@ -16,7 +16,6 @@ export { LLMObservabilityApiDeleteLLMObsAnnotationQueueInteractionsRequest, LLMObservabilityApiDeleteLLMObsAnnotationsRequest, LLMObservabilityApiDeleteLLMObsCustomEvalConfigRequest, - LLMObservabilityApiDeleteLLMObsDataRequest, LLMObservabilityApiDeleteLLMObsDatasetRecordsRequest, LLMObservabilityApiDeleteLLMObsDatasetsRequest, LLMObservabilityApiDeleteLLMObsExperimentsRequest, @@ -172,14 +171,6 @@ export { LLMObsCustomEvalConfigUpdateData } from "./models/LLMObsCustomEvalConfi export { LLMObsCustomEvalConfigUpdateRequest } from "./models/LLMObsCustomEvalConfigUpdateRequest"; export { LLMObsCustomEvalConfigUser } from "./models/LLMObsCustomEvalConfigUser"; export { LLMObsCustomEvalConfigVertexAIOptions } from "./models/LLMObsCustomEvalConfigVertexAIOptions"; -export { LLMObsDataDeletionRequest } from "./models/LLMObsDataDeletionRequest"; -export { LLMObsDataDeletionRequestAttributes } from "./models/LLMObsDataDeletionRequestAttributes"; -export { LLMObsDataDeletionRequestData } from "./models/LLMObsDataDeletionRequestData"; -export { LLMObsDataDeletionRequestType } from "./models/LLMObsDataDeletionRequestType"; -export { LLMObsDataDeletionResponse } from "./models/LLMObsDataDeletionResponse"; -export { LLMObsDataDeletionResponseAttributes } from "./models/LLMObsDataDeletionResponseAttributes"; -export { LLMObsDataDeletionResponseData } from "./models/LLMObsDataDeletionResponseData"; -export { LLMObsDataDeletionResponseType } from "./models/LLMObsDataDeletionResponseType"; export { LLMObsDatasetBatchUpdateDataAttributesRequest } from "./models/LLMObsDatasetBatchUpdateDataAttributesRequest"; export { LLMObsDatasetBatchUpdateDataRequest } from "./models/LLMObsDatasetBatchUpdateDataRequest"; export { LLMObsDatasetBatchUpdateInsertRecord } from "./models/LLMObsDatasetBatchUpdateInsertRecord"; diff --git a/services/llm_observability/src/v2/models/LLMObsDataDeletionRequest.ts b/services/llm_observability/src/v2/models/LLMObsDataDeletionRequest.ts deleted file mode 100644 index 92c04094c0b3..000000000000 --- a/services/llm_observability/src/v2/models/LLMObsDataDeletionRequest.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { LLMObsDataDeletionRequestData } from "./LLMObsDataDeletionRequestData"; - -/** - * Request to delete LLM Observability data. - */ -export class LLMObsDataDeletionRequest { - /** - * Data object for an LLM Observability data deletion request. - */ - "data": LLMObsDataDeletionRequestData; - /** - * 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 = { - data: { - baseName: "data", - type: "LLMObsDataDeletionRequestData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LLMObsDataDeletionRequest.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/llm_observability/src/v2/models/LLMObsDataDeletionRequestAttributes.ts b/services/llm_observability/src/v2/models/LLMObsDataDeletionRequestAttributes.ts deleted file mode 100644 index cf31a32a966c..000000000000 --- a/services/llm_observability/src/v2/models/LLMObsDataDeletionRequestAttributes.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Attributes for an LLM Observability data deletion request. - */ -export class LLMObsDataDeletionRequestAttributes { - /** - * Optional delay in seconds before the deletion is executed. - */ - "delay"?: number; - /** - * Start of the deletion time range in milliseconds since Unix epoch. - */ - "from": number; - /** - * Query filters selecting the data to delete. Must include a `query` key with an `@trace_id` filter. - */ - "query": { [key: string]: string }; - /** - * End of the deletion time range in milliseconds since Unix epoch. - */ - "to": number; - /** - * 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 = { - delay: { - baseName: "delay", - type: "number", - format: "int64", - }, - from: { - baseName: "from", - type: "number", - required: true, - format: "int64", - }, - query: { - baseName: "query", - type: "{ [key: string]: string; }", - required: true, - }, - to: { - baseName: "to", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LLMObsDataDeletionRequestAttributes.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/llm_observability/src/v2/models/LLMObsDataDeletionRequestData.ts b/services/llm_observability/src/v2/models/LLMObsDataDeletionRequestData.ts deleted file mode 100644 index f5050276cc50..000000000000 --- a/services/llm_observability/src/v2/models/LLMObsDataDeletionRequestData.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { LLMObsDataDeletionRequestAttributes } from "./LLMObsDataDeletionRequestAttributes"; -import { LLMObsDataDeletionRequestType } from "./LLMObsDataDeletionRequestType"; - -/** - * Data object for an LLM Observability data deletion request. - */ -export class LLMObsDataDeletionRequestData { - /** - * Attributes for an LLM Observability data deletion request. - */ - "attributes": LLMObsDataDeletionRequestAttributes; - /** - * Resource type for an LLM Observability data deletion request. - */ - "type": LLMObsDataDeletionRequestType; - /** - * 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 = { - attributes: { - baseName: "attributes", - type: "LLMObsDataDeletionRequestAttributes", - required: true, - }, - type: { - baseName: "type", - type: "LLMObsDataDeletionRequestType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LLMObsDataDeletionRequestData.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/llm_observability/src/v2/models/LLMObsDataDeletionRequestType.ts b/services/llm_observability/src/v2/models/LLMObsDataDeletionRequestType.ts deleted file mode 100644 index b3d02c57d862..000000000000 --- a/services/llm_observability/src/v2/models/LLMObsDataDeletionRequestType.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UnparsedObject } from "@datadog/datadog-api-client"; - -/** - * Resource type for an LLM Observability data deletion request. - */ -export type LLMObsDataDeletionRequestType = - | typeof CREATE_DELETION_REQ - | UnparsedObject; -export const CREATE_DELETION_REQ = "create_deletion_req"; diff --git a/services/llm_observability/src/v2/models/LLMObsDataDeletionResponse.ts b/services/llm_observability/src/v2/models/LLMObsDataDeletionResponse.ts deleted file mode 100644 index 914c3c680250..000000000000 --- a/services/llm_observability/src/v2/models/LLMObsDataDeletionResponse.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { LLMObsDataDeletionResponseData } from "./LLMObsDataDeletionResponseData"; - -/** - * Response containing details of a submitted LLM Observability data deletion request. - */ -export class LLMObsDataDeletionResponse { - /** - * Data object for an LLM Observability data deletion response. - */ - "data": LLMObsDataDeletionResponseData; - /** - * 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 = { - data: { - baseName: "data", - type: "LLMObsDataDeletionResponseData", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LLMObsDataDeletionResponse.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/llm_observability/src/v2/models/LLMObsDataDeletionResponseAttributes.ts b/services/llm_observability/src/v2/models/LLMObsDataDeletionResponseAttributes.ts deleted file mode 100644 index 7eec9150448c..000000000000 --- a/services/llm_observability/src/v2/models/LLMObsDataDeletionResponseAttributes.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Attributes of a submitted LLM Observability data deletion request. - */ -export class LLMObsDataDeletionResponseAttributes { - /** - * Timestamp when the deletion request was created. - */ - "createdAt": Date; - /** - * UUID of the user who created the deletion request. - */ - "createdBy": string; - /** - * Start of the deletion time range in milliseconds since Unix epoch. - */ - "fromTime": number; - /** - * ID of the organization that submitted the deletion request. - */ - "orgId": number; - /** - * Product name for the deletion request. - */ - "product": string; - /** - * The query string used to select data for deletion. - */ - "query": string; - /** - * End of the deletion time range in milliseconds since Unix epoch. - */ - "toTime": number; - /** - * 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 = { - createdAt: { - baseName: "created_at", - type: "Date", - required: true, - format: "date-time", - }, - createdBy: { - baseName: "created_by", - type: "string", - required: true, - }, - fromTime: { - baseName: "from_time", - type: "number", - required: true, - format: "int64", - }, - orgId: { - baseName: "org_id", - type: "number", - required: true, - format: "int64", - }, - product: { - baseName: "product", - type: "string", - required: true, - }, - query: { - baseName: "query", - type: "string", - required: true, - }, - toTime: { - baseName: "to_time", - type: "number", - required: true, - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LLMObsDataDeletionResponseAttributes.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/llm_observability/src/v2/models/LLMObsDataDeletionResponseData.ts b/services/llm_observability/src/v2/models/LLMObsDataDeletionResponseData.ts deleted file mode 100644 index 5e275665e0fd..000000000000 --- a/services/llm_observability/src/v2/models/LLMObsDataDeletionResponseData.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { LLMObsDataDeletionResponseAttributes } from "./LLMObsDataDeletionResponseAttributes"; -import { LLMObsDataDeletionResponseType } from "./LLMObsDataDeletionResponseType"; - -/** - * Data object for an LLM Observability data deletion response. - */ -export class LLMObsDataDeletionResponseData { - /** - * Attributes of a submitted LLM Observability data deletion request. - */ - "attributes": LLMObsDataDeletionResponseAttributes; - /** - * Unique identifier of the deletion request. - */ - "id": string; - /** - * Resource type for an LLM Observability data deletion response. - */ - "type": LLMObsDataDeletionResponseType; - /** - * 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 = { - attributes: { - baseName: "attributes", - type: "LLMObsDataDeletionResponseAttributes", - required: true, - }, - id: { - baseName: "id", - type: "string", - required: true, - }, - type: { - baseName: "type", - type: "LLMObsDataDeletionResponseType", - required: true, - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return LLMObsDataDeletionResponseData.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/llm_observability/src/v2/models/LLMObsDataDeletionResponseType.ts b/services/llm_observability/src/v2/models/LLMObsDataDeletionResponseType.ts deleted file mode 100644 index e8c185f3f8a1..000000000000 --- a/services/llm_observability/src/v2/models/LLMObsDataDeletionResponseType.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UnparsedObject } from "@datadog/datadog-api-client"; - -/** - * Resource type for an LLM Observability data deletion response. - */ -export type LLMObsDataDeletionResponseType = - | typeof DELETION_REQUEST - | UnparsedObject; -export const DELETION_REQUEST = "deletion_request"; diff --git a/services/llm_observability/src/v2/models/TypingInfo.ts b/services/llm_observability/src/v2/models/TypingInfo.ts index 32fe47d3b09b..b3b4babd9dd5 100644 --- a/services/llm_observability/src/v2/models/TypingInfo.ts +++ b/services/llm_observability/src/v2/models/TypingInfo.ts @@ -78,12 +78,6 @@ import { LLMObsCustomEvalConfigUpdateData } from "./LLMObsCustomEvalConfigUpdate import { LLMObsCustomEvalConfigUpdateRequest } from "./LLMObsCustomEvalConfigUpdateRequest"; import { LLMObsCustomEvalConfigUser } from "./LLMObsCustomEvalConfigUser"; import { LLMObsCustomEvalConfigVertexAIOptions } from "./LLMObsCustomEvalConfigVertexAIOptions"; -import { LLMObsDataDeletionRequest } from "./LLMObsDataDeletionRequest"; -import { LLMObsDataDeletionRequestAttributes } from "./LLMObsDataDeletionRequestAttributes"; -import { LLMObsDataDeletionRequestData } from "./LLMObsDataDeletionRequestData"; -import { LLMObsDataDeletionResponse } from "./LLMObsDataDeletionResponse"; -import { LLMObsDataDeletionResponseAttributes } from "./LLMObsDataDeletionResponseAttributes"; -import { LLMObsDataDeletionResponseData } from "./LLMObsDataDeletionResponseData"; import { LLMObsDatasetBatchUpdateDataAttributesRequest } from "./LLMObsDatasetBatchUpdateDataAttributesRequest"; import { LLMObsDatasetBatchUpdateDataRequest } from "./LLMObsDatasetBatchUpdateDataRequest"; import { LLMObsDatasetBatchUpdateInsertRecord } from "./LLMObsDatasetBatchUpdateInsertRecord"; @@ -364,8 +358,6 @@ export const TypingInfo: ModelTypingInfo = { "keyword_search", ], LLMObsCustomEvalConfigType: ["evaluator_config"], - LLMObsDataDeletionRequestType: ["create_deletion_req"], - LLMObsDataDeletionResponseType: ["deletion_request"], LLMObsDatasetDraftStateType: ["draft_state_data"], LLMObsDatasetExportFormat: ["csv"], LLMObsDatasetType: ["datasets"], @@ -551,12 +543,6 @@ export const TypingInfo: ModelTypingInfo = { LLMObsCustomEvalConfigUser: LLMObsCustomEvalConfigUser, LLMObsCustomEvalConfigVertexAIOptions: LLMObsCustomEvalConfigVertexAIOptions, - LLMObsDataDeletionRequest: LLMObsDataDeletionRequest, - LLMObsDataDeletionRequestAttributes: LLMObsDataDeletionRequestAttributes, - LLMObsDataDeletionRequestData: LLMObsDataDeletionRequestData, - LLMObsDataDeletionResponse: LLMObsDataDeletionResponse, - LLMObsDataDeletionResponseAttributes: LLMObsDataDeletionResponseAttributes, - LLMObsDataDeletionResponseData: LLMObsDataDeletionResponseData, LLMObsDatasetBatchUpdateDataAttributesRequest: LLMObsDatasetBatchUpdateDataAttributesRequest, LLMObsDatasetBatchUpdateDataRequest: LLMObsDatasetBatchUpdateDataRequest,