From 802735f5990ac35d9f524e16ea71d652b5fbe1bc Mon Sep 17 00:00:00 2001 From: Haim Kastner Date: Tue, 9 Jun 2026 08:35:48 +0300 Subject: [PATCH] Align DLP policy tests to ChatsPolicy.event_types (array) The policy spec renamed ChatsPolicy.event_type (singular scalar) to event_types (array of DLPEventType, minItems 1). The runtime still accepts the legacy singular form, but the generated type only exposes event_types, so the strongly-typed test fixtures no longer compiled. Updated the DLP rule fixtures to event_types=[...] to match the regenerated SDK. Co-Authored-By: Claude Opus 4.8 --- tests/specs/api.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/specs/api.spec.ts b/tests/specs/api.spec.ts index bd27254..680eb60 100644 --- a/tests/specs/api.spec.ts +++ b/tests/specs/api.spec.ts @@ -56,7 +56,7 @@ describe('# AI Security API', () => { description: 'Integration test', order: 0, policy: { - event_type: DLPEventType.FileUpload, + event_types: [DLPEventType.FileUpload], action: 'prevent', logging: LoggingStatus.Enabled, services_and_application: { mode: SelectionMode.All }, @@ -286,7 +286,7 @@ describe('# AI Security API', () => { name: 'Toggle Test Rule', order: 0, policy: { - event_type: DLPEventType.Prompt, + event_types: [DLPEventType.Prompt], action: 'detect', logging: LoggingStatus.Enabled, services_and_application: { mode: SelectionMode.All },