* Fix HubSpot optional scopes for workspace OAuth * chore: rerun flaky cloud E2E * Honor integration-declared HubSpot optional scopes * Test queue timeout with a controlled clock * Verify optional OAuth scopes through consent and tool execution ---------
Showing the changes to apps/cloud/src/engine (1 of 9 files). Show all
Unified · Split
| @@ -6,6 +6,7 @@ import { · 5 unmodified lines | ||
| 6 | 6 | } from "@executor-js/plugin-openapi/providers/microsoft"; |
| 7 | 7 | import { slackMcpUserScopes } from "@executor-js/react/lib/slack-mcp-oauth"; |
| 8 | 8 | import { IntegrationSlug, type FirstPartyOAuthClientConfig } from "@executor-js/sdk"; |
| 9 | +import { HUBSPOT_OPTIONAL_SCOPES } from "@executor-js/sdk/host-internal"; | |
| 9 | 10 | |
| 10 | 11 | import { makeGoogleOAuthListing } from "../analytics/google-oauth-listing"; |
| 11 | 12 | import { POSTHOG_INGEST_HOST } from "../edge/passthrough"; |
| @@ -152,12 +153,6 @@ const HUBSPOT_REQUIRED_SCOPES = [ · 140 unmodified lines | ||
| 152 | 153 | "timeline", |
| 153 | 154 | ] as const; |
| 154 | 155 | |
| 155 | −const HUBSPOT_OPTIONAL_SCOPES = [ | |
| 156 | − "content", | |
| 157 | − "crm.objects.custom.read", | |
| 158 | − "crm.schemas.custom.read", | |
| 159 | −] as const; | |
| 160 | − | |
| 161 | 156 | const MICROSOFT_SCOPES = [ |
| 162 | 157 | "User.Read", |
| 163 | 158 | "Calendars.ReadWrite", |