From 6fa54cfc818de7436f4968f359be22ea2b4b52cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B8ran=20Dalum?= Date: Wed, 5 Aug 2026 11:03:44 +0200 Subject: [PATCH] feat: add external chat url --- schema-definitions/urls.json | 30 ++++++++++++++++++++++++++++++ src/urls.ts | 1 + 2 files changed, 31 insertions(+) diff --git a/schema-definitions/urls.json b/schema-definitions/urls.json index 3ebe9ca..a11d352 100644 --- a/schema-definitions/urls.json +++ b/schema-definitions/urls.json @@ -630,6 +630,36 @@ } ] } + }, + "externalChatUrl": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "lang": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": ["lang", "value"] + }, + { + "type": "object", + "properties": { + "language": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + ] + } } } } diff --git a/src/urls.ts b/src/urls.ts index 01bb23f..b0b3a56 100644 --- a/src/urls.ts +++ b/src/urls.ts @@ -32,6 +32,7 @@ export const ConfigurableLinksSchema = z.object({ lostAndFoundUrl: LanguageAndTextTypeArray.optional(), frequentlyAskedQuestionsUrl: LanguageAndTextTypeArray.optional(), sparReadMoreUrl: LanguageAndTextTypeArray.optional(), + externalChatUrl: LanguageAndTextTypeArray.optional(), }); export type ConfigurableLinks = z.infer;