From 5f3b4b17c67a862b3bf3afedc2dc40791181c4aa Mon Sep 17 00:00:00 2001 From: Giuliano Date: Sat, 28 Feb 2026 13:17:47 +0000 Subject: [PATCH] Update extensions/voice-call/src/config.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- extensions/voice-call/src/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/voice-call/src/config.ts b/extensions/voice-call/src/config.ts index ab3c91e4477..b7b1ab80f69 100644 --- a/extensions/voice-call/src/config.ts +++ b/extensions/voice-call/src/config.ts @@ -65,7 +65,7 @@ export const TwilioConfigSchema = z * @see https://www.twilio.com/docs/global-infrastructure/understanding-twilio-regions * @see https://www.twilio.com/docs/global-infrastructure/api-domain-migration-guide */ - region: z.string().min(1).optional(), + region: z.string().regex(/^[a-z0-9]+$/).optional(), /** * Twilio Edge Location (e.g. "dublin", "sydney", "ashburn"). * Used together with `region` to construct the API FQDN. @@ -73,7 +73,7 @@ export const TwilioConfigSchema = z * Must be specified with `region` to avoid the deprecated domain pattern. * @see https://www.twilio.com/docs/global-infrastructure/understanding-edge-locations */ - edge: z.string().min(1).optional(), + edge: z.string().regex(/^[a-z-]+$/).optional(), }) .strict(); export type TwilioConfig = z.infer;