From 7654b10f016d067fc43af7cfd8bd07c10f27edac Mon Sep 17 00:00:00 2001 From: "laszlo.david" Date: Thu, 29 Jan 2026 14:13:47 +0200 Subject: [PATCH 1/2] CRQ-44335 add task input information --- articles/LCPublicAPI/api/Webhooks.v1.json | 107 +++++++++++++++++++++- 1 file changed, 105 insertions(+), 2 deletions(-) diff --git a/articles/LCPublicAPI/api/Webhooks.v1.json b/articles/LCPublicAPI/api/Webhooks.v1.json index c1f52c0..2f92111 100644 --- a/articles/LCPublicAPI/api/Webhooks.v1.json +++ b/articles/LCPublicAPI/api/Webhooks.v1.json @@ -228,11 +228,15 @@ "id": "1zdzlmo5rwf8k" }, "description": "The failed task type." + }, + "input": { + "$ref": "#/components/schemas/task-input" } }, "required": [ "id", - "name" + "name", + "input" ] }, "failed-task-error": { @@ -563,13 +567,17 @@ }, "format": "date-time", "description": "The project due date.\n\nGMT Timezone\n\nAllowed formats:\\\n\"YYYY-MM-DDThh:mmZ\"\\\n\"YYYY-MM-DDThh:mm:ssZ\"\\\n\"YYYY-MM-DDThh:mm:ss.sZ\"\\\n\"YYYY-MM-DDThh:mm:ss.ssZ\"\\\n\"YYYY-MM-DDThh:mm:ss.sssZ\"" + }, + "input": { + "$ref": "#/components/schemas/task-input" } }, "required": [ "id", "status", "taskType", - "assignees" + "assignees", + "input" ] }, "task-event-assignees": { @@ -625,6 +633,101 @@ "automatic" ] }, + "task-input": { + "title": "Task Input", + "type": "object", + "x-stoplight": { + "id": "task-input" + }, + "description": "Information about the task input. Currently only `sourceFile` and `targetFile` objects are populated in webhook events.", + "properties": { + "id": { + "type": "string", + "description": "The input identifier." + }, + "inputType": { + "type": "string", + "enum": [ + "sourceFile", + "targetFile", + "languageDirection", + "project" + ], + "description": "The type of input." + }, + "sourceFile": { + "$ref": "#/components/schemas/task-input-source-file", + "description": "Source file information. Present when inputType is sourceFile." + }, + "targetFile": { + "$ref": "#/components/schemas/task-input-target-file", + "description": "Target file information. Present when inputType is targetFile." + } + }, + "required": [ + "id", + "inputType" + ] + }, + "task-input-source-file": { + "title": "Task Input Source File", + "type": "object", + "x-stoplight": { + "id": "task-input-source-file" + }, + "description": "Source file information for task input.", + "properties": { + "fileVersionId": { + "type": "string", + "description": "The file version identifier." + }, + "version": { + "type": "integer", + "description": "The file version number." + }, + "type": { + "type": "string", + "enum": [ + "nativeSource", + "bcmSource", + "nativeTarget", + "bcmTarget" + ], + "description": "The file type." + } + }, + "required": [ + "fileVersionId", + "version", + "type" + ] + }, + "task-input-target-file": { + "title": "Task Input Target File", + "type": "object", + "x-stoplight": { + "id": "task-input-target-file" + }, + "description": "Target file information for task input. Extends source file with additional sourceFileId.", + "allOf": [ + { + "$ref": "#/components/schemas/task-input-source-file" + }, + { + "type": "object", + "properties": { + "sourceFileId": { + "type": "string", + "description": "The identifier of the source file associated with this target file." + } + }, + "required": [ + "sourceFileId", + "type" + ] + } + ] + }, "webhook": { "title": "Webhook", "type": "object", From 4e2d09c40ffd208c590a7fb4f65826023074ad16 Mon Sep 17 00:00:00 2001 From: "laszlo.david" Date: Fri, 30 Jan 2026 09:04:41 +0200 Subject: [PATCH 2/2] CRQ-44335 adapt simpler file type --- articles/LCPublicAPI/api/Webhooks.v1.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/articles/LCPublicAPI/api/Webhooks.v1.json b/articles/LCPublicAPI/api/Webhooks.v1.json index 2f92111..6422372 100644 --- a/articles/LCPublicAPI/api/Webhooks.v1.json +++ b/articles/LCPublicAPI/api/Webhooks.v1.json @@ -688,10 +688,8 @@ "type": { "type": "string", "enum": [ - "nativeSource", - "bcmSource", - "nativeTarget", - "bcmTarget" + "native", + "bcm" ], "description": "The file type." }