From b0cc34372d84706f18afdea4add447262f4bcf92 Mon Sep 17 00:00:00 2001 From: waleed Date: Wed, 18 Mar 2026 10:26:56 -0700 Subject: [PATCH] fix(hubspot): add missing tickets and oauth scopes to OAuth config --- 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 38c6472cfd0..84430b805d3 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 5ca42639195..2db01dc12c1 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',