From 8b245693e21a2f9ecff6e5a4f7ae78193ecb5488 Mon Sep 17 00:00:00 2001 From: Waleed Date: Wed, 18 Mar 2026 10:34:49 -0700 Subject: [PATCH] fix(hubspot): add missing tickets and oauth scopes to OAuth config (#3653) --- apps/sim/lib/oauth/oauth.ts | 3 +++ apps/sim/lib/oauth/utils.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/sim/lib/oauth/oauth.ts b/apps/sim/lib/oauth/oauth.ts index 38c6472cfd..84430b805d 100644 --- a/apps/sim/lib/oauth/oauth.ts +++ b/apps/sim/lib/oauth/oauth.ts @@ -836,6 +836,9 @@ export const OAUTH_PROVIDERS: Record = { 'crm.lists.read', 'crm.lists.write', 'crm.objects.tickets.read', + 'crm.objects.tickets.write', + 'tickets', + 'oauth', ], }, }, diff --git a/apps/sim/lib/oauth/utils.ts b/apps/sim/lib/oauth/utils.ts index 5ca4263919..2db01dc12c 100644 --- a/apps/sim/lib/oauth/utils.ts +++ b/apps/sim/lib/oauth/utils.ts @@ -308,6 +308,9 @@ export const SCOPE_DESCRIPTIONS: Record = { 'crm.lists.read': 'Read HubSpot lists', 'crm.lists.write': 'Create and update HubSpot lists', 'crm.objects.tickets.read': 'Read HubSpot tickets', + 'crm.objects.tickets.write': 'Create and update HubSpot tickets', + tickets: 'Access HubSpot tickets', + oauth: 'Authenticate with HubSpot OAuth', // Salesforce scopes api: 'Access Salesforce API',