From b2390812119ab1880524811941a3aa773271a82b Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Tue, 11 Nov 2025 22:55:47 +0100 Subject: [PATCH] fix: update response types to match actual API contract MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backend Brooke confirmed the actual API response structure uses "definitions" not "created_definitions". Also added missing preset and pattern fields to GenerateSlotDefinitionsResponse. Changes: - GenerateSlotDefinitionsResponse: added preset and pattern fields - GenerateSlotDefinitionsResponse: renamed created_definitions → definitions - CloneSlotDefinitionResponse: renamed created_definitions → definitions This matches the confirmed API contract from BUILD 348. --- src/types/slot-definitions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/types/slot-definitions.ts b/src/types/slot-definitions.ts index 9e4340c..48e79a9 100644 --- a/src/types/slot-definitions.ts +++ b/src/types/slot-definitions.ts @@ -172,7 +172,9 @@ export interface GenerateSlotDefinitionsResponse { data: { created_count: number; skipped_count?: number; - created_definitions: SlotDefinition[]; + preset: SlotDefinitionPreset; + pattern: PresetPattern; + definitions: SlotDefinition[]; skipped?: SkippedSlot[]; }; } @@ -195,7 +197,7 @@ export interface CloneSlotDefinitionResponse { data: { created_count: number; skipped_count?: number; - created_definitions: SlotDefinition[]; + definitions: SlotDefinition[]; skipped?: SkippedSlot[]; }; }