The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Let connection providers declare a USER or WORKSPACE scope (#27796)
nitinb41d60a22ff2
diff --git a/packages/twenty-agent-skills/references/develop-app/logic.md b/packages/twenty-agent-skills/references/develop-app/logic.mdindex 980b2544c18..b3c367de188 100644--- a/packages/twenty-agent-skills/references/develop-app/logic.md+++ b/packages/twenty-agent-skills/references/develop-app/logic.md@@ -100,6 +100,7 @@ For third-party connections:- Document required OAuth or API setup in the app README or listing.- Verify failure states for expired or missing credentials.- When the provider can say which account a token belongs to (team, organization, user), declare `identifyAccountLogicFunction` so a reconnect that authorizes a different account is refused instead of overwriting the connection. Write the handler as one request to the provider's "who am I" endpoint, return the id as a string, and return `{ externalAccountId: null }` when there is no stable id.+- Set `scope` on `defineConnectionProvider`: `'WORKSPACE'` (default) when the app uses one connection shared with the workspace, `'USER'` when each member connects their own account. One scope per provider; declare two providers when the app needs both. Members cannot add `USER` connections from settings yet (they will from App preferences). Requires `"engines": { "twenty": ">=2.49.0" }`.## Post-Install Hooksdiff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphqlindex 2bb2686ae5f..0ad34ef37cb 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql@@ -416,6 +416,7 @@ type ApplicationConnectionProvider {logoUrl: Stringname: String!oauth: ApplicationConnectionProviderOAuthConfig+ scope: ConnectionProviderScope!type: String!}@@ -1260,6 +1261,11 @@ input ConnectionParametersInput {username: String}+enum ConnectionProviderScope {+ USER+ WORKSPACE+}+input CreateAgentInput {description: Stringicon: Stringdiff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.tsindex 989b6b11fed..9dc53abba1b 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts@@ -345,6 +345,7 @@ export interface ApplicationConnectionProvider {logoUrl?: Scalars['String']name: Scalars['String']oauth?: ApplicationConnectionProviderOAuthConfig+ scope: ConnectionProviderScopetype: Scalars['String']__typename: 'ApplicationConnectionProvider'}@@ -1134,6 +1135,8 @@ export interface ConnectedImapSmtpCaldavAccount {__typename: 'ConnectedImapSmtpCaldavAccount'}+export type ConnectionProviderScope = 'USER' | 'WORKSPACE'+export interface CreateApplicationFileUploadsResult {errors: ApplicationFileUploadError[]targets: ApplicationFileUploadTarget[]@@ -4326,6 +4329,7 @@ export interface ApplicationConnectionProviderGenqlSelection{logoUrl?: boolean | numbername?: boolean | numberoauth?: ApplicationConnectionProviderOAuthConfigGenqlSelection+ scope?: boolean | numbertype?: boolean | number__typename?: boolean | number__scalar?: boolean | number@@ -11453,6 +11457,11 @@ export const enumCommandMenuItemAvailabilityType = {RECORD_SELECTION: 'RECORD_SELECTION' as const}+export const enumConnectionProviderScope = {+ USER: 'USER' as const,+ WORKSPACE: 'WORKSPACE' as const+}+export const enumDatabaseEventAction = {CREATED: 'CREATED' as const,DELETED: 'DELETED' as const,diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.tsindex 33cc57eda96..bc2d6bbca39 100644--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts@@ -33,91 +33,92 @@ export default {124,138,143,- 187,+ 145,188,- 215,- 219,+ 189,+ 216,220,- 222,- 232,- 238,- 242,- 246,- 249,- 256,- 271,- 273,- 283,- 290,+ 221,+ 223,+ 233,+ 239,+ 243,+ 247,+ 250,+ 257,+ 272,+ 274,+ 284,291,292,- 303,- 305,- 319,+ 293,+ 304,+ 306,320,321,322,323,324,- 326,+ 325,327,328,- 331,+ 329,332,- 334,+ 333,335,- 338,- 340,- 344,- 348,- 357,- 364,+ 336,+ 339,+ 341,+ 345,+ 349,+ 358,365,366,- 369,- 373,+ 367,+ 370,374,- 379,- 383,- 404,- 406,+ 375,+ 380,+ 384,+ 405,407,- 410,- 415,- 427,- 429,- 433,- 438,- 455,- 467,+ 408,+ 411,+ 416,+ 428,+ 430,+ 434,+ 439,+ 456,468,- 470,- 494,- 496,- 498,- 558,- 578,- 585,- 587,- 591,- 602,- 608,+ 469,+ 471,+ 495,+ 497,+ 499,+ 559,+ 579,+ 586,+ 588,+ 592,+ 603,609,- 611,+ 610,612,- 614,+ 613,615,616,- 619,+ 617,620,- 625,- 627,- 630,- 635,+ 621,+ 626,+ 628,+ 631,636,637,- 640,- 641+ 638,+ 641,+ 642],"types": {"ActivateWorkspaceInput": {@@ -134,7 +135,7 @@ export default {1],"operationSignature": [- 290+ 291],"queryId": [1@@ -145,10 +146,10 @@ export default {},"Agent": {"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"description": [1@@ -157,7 +158,7 @@ export default {1],"id": [- 494+ 495],"isCustom": [4@@ -169,7 +170,7 @@ export default {1],"modelConfiguration": [- 290+ 291],"modelId": [1@@ -181,16 +182,16 @@ export default {1],"responseFormat": [- 290+ 291],"roleId": [- 494+ 495],"triggers": [- 290+ 291],"updatedAt": [- 188+ 189],"__typename": [1@@ -199,7 +200,7 @@ export default {"Boolean": {},"AgentChatEvent": {"event": [- 290+ 291],"threadId": [1@@ -238,10 +239,10 @@ export default {8],"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"id": [10@@ -265,7 +266,7 @@ export default {8],"updatedAt": [- 188+ 189],"__typename": [1@@ -275,28 +276,28 @@ export default {"Float": {},"AgentChatThreadParticipant": {"archivedAt": [- 188+ 189],"id": [- 494+ 495],"isSubscribed": [4],"lastMentionedAt": [- 188+ 189],"lastReadAt": [- 188+ 189],"snoozedUntil": [- 188+ 189],"threadId": [- 494+ 495],"updatedAt": [- 188+ 189],"__typename": [1@@ -304,7 +305,7 @@ export default {},"AgentIdInput": {"id": [- 494+ 495],"__typename": [1@@ -312,19 +313,19 @@ export default {},"AgentMessage": {"agentId": [- 494+ 495],"createdAt": [- 188+ 189],"id": [- 494+ 495],"parts": [15],"processedAt": [- 188+ 189],"reactions": [16@@ -333,19 +334,19 @@ export default {1],"senderUserWorkspaceId": [- 494+ 495],"senderWorkspaceMemberId": [- 494+ 495],"status": [1],"threadId": [- 494+ 495],"turnId": [- 494+ 495],"__typename": [1@@ -353,7 +354,7 @@ export default {},"AgentMessagePart": {"createdAt": [- 188+ 189],"errorMessage": [1@@ -362,7 +363,7 @@ export default {1],"fileId": [- 494+ 495],"fileMediaType": [1@@ -371,10 +372,10 @@ export default {1],"id": [- 494+ 495],"messageId": [- 494+ 495],"orderIndex": [8@@ -383,7 +384,7 @@ export default {4],"providerMetadata": [- 290+ 291],"reasoningContent": [1@@ -419,13 +420,13 @@ export default {1],"toolInput": [- 290+ 291],"toolName": [1],"toolOutput": [- 290+ 291],"type": [1@@ -439,7 +440,7 @@ export default {1],"workspaceMemberIds": [- 494+ 495],"__typename": [1@@ -447,7 +448,7 @@ export default {},"AgentRun": {"createdAt": [- 188+ 189],"creatorName": [1@@ -459,13 +460,13 @@ export default {11],"endedAt": [- 188+ 189],"errorMessage": [1],"id": [- 494+ 495],"input": [1@@ -483,13 +484,13 @@ export default {1],"startedAt": [- 188+ 189],"status": [18],"threadId": [- 494+ 495],"threadTitle": [1@@ -504,13 +505,13 @@ export default {"AgentTurnStatus": {},"AggregateChartConfiguration": {"aggregateFieldMetadataId": [- 494+ 495],"aggregateOperation": [20],"configurationType": [- 619+ 620],"description": [1@@ -519,7 +520,7 @@ export default {4],"filter": [- 290+ 291],"firstDayOfTheWeek": [8@@ -534,7 +535,7 @@ export default {1],"ratioAggregateConfig": [- 399+ 400],"suffix": [1@@ -558,7 +559,7 @@ export default {81],"periodEnd": [- 188+ 189],"__typename": [1@@ -610,25 +611,25 @@ export default {},"ApiKey": {"createdAt": [- 188+ 189],"expiresAt": [- 188+ 189],"id": [- 494+ 495],"name": [1],"revokedAt": [- 188+ 189],"role": [- 421+ 422],"updatedAt": [- 188+ 189],"__typename": [1@@ -636,16 +637,16 @@ export default {},"ApiKeyForRole": {"expiresAt": [- 188+ 189],"id": [- 494+ 495],"name": [1],"revokedAt": [- 188+ 189],"__typename": [1@@ -708,7 +709,7 @@ export default {34],"value": [- 290+ 291],"__typename": [1@@ -723,7 +724,7 @@ export default {36],"receivedAt": [- 188+ 189],"subject": [1@@ -746,13 +747,13 @@ export default {1],"personId": [- 494+ 495],"role": [- 328+ 329],"workspaceMemberId": [- 494+ 495],"__typename": [1@@ -766,7 +767,7 @@ export default {58],"applicationRegistrationId": [- 494+ 495],"applicationVariables": [61@@ -775,7 +776,7 @@ export default {4],"availablePackages": [- 290+ 291],"canBeUninstalled": [4@@ -784,10 +785,10 @@ export default {137],"createdAt": [- 188+ 189],"defaultLogicFunctionRole": [- 421+ 422],"defaultRoleId": [1@@ -796,22 +797,22 @@ export default {1],"frontComponents": [- 263+ 264],"healthCheckLogicFunctionId": [- 494+ 495],"id": [- 494+ 495],"isUninstallBlockedByOtherWorkspaceInstallations": [4],"logicFunctions": [- 302+ 303],"logoFileId": [- 494+ 495],"logoUrl": [1@@ -820,19 +821,19 @@ export default {1],"objects": [- 350+ 351],"packageJsonChecksum": [1],"packageJsonFileId": [- 494+ 495],"settingsCustomTabFrontComponentId": [- 494+ 495],"settingsMenuItems": [- 454+ 455],"universalIdentifier": [1@@ -844,7 +845,7 @@ export default {1],"yarnLockFileId": [- 494+ 495],"__typename": [1@@ -852,7 +853,7 @@ export default {},"ApplicationAuthorization": {"applicationId": [- 494+ 495],"applicationName": [1@@ -861,22 +862,22 @@ export default {1],"createdAt": [- 188+ 189],"id": [- 494+ 495],"lastAuthorizedAt": [- 188+ 189],"lastUsedAt": [- 188+ 189],"scopes": [1],"workspaceId": [- 494+ 495],"__typename": [1@@ -887,7 +888,7 @@ export default {1],"id": [- 494+ 495],"__typename": [1@@ -895,25 +896,25 @@ export default {},"ApplicationConnectedAccountDTO": {"applicationId": [- 494+ 495],"archivedAt": [- 188+ 189],"authFailedAt": [- 188+ 189],"authFailedReason": [1],"connectionParameters": [- 395+ 396],"connectionProviderId": [- 494+ 495],"createdAt": [- 188+ 189],"handle": [1@@ -922,16 +923,16 @@ export default {1],"id": [- 494+ 495],"isOwnedByCurrentUser": [4],"lastCredentialsRefreshedAt": [- 188+ 189],"lastSignedInAt": [- 188+ 189],"name": [1@@ -943,10 +944,10 @@ export default {1],"updatedAt": [- 188+ 189],"userWorkspaceId": [- 494+ 495],"visibility": [1@@ -963,7 +964,7 @@ export default {1],"id": [- 494+ 495],"logoUrl": [1@@ -974,6 +975,9 @@ export default {"oauth": [42],+ "scope": [+ 145+ ],"type": [1],@@ -1003,7 +1007,7 @@ export default {47],"manifest": [- 290+ 291],"__typename": [1@@ -1057,7 +1061,7 @@ export default {},"ApplicationFileCompletionError": {"fileId": [- 494+ 495],"message": [1@@ -1068,7 +1072,7 @@ export default {},"ApplicationFileUploadError": {"fileFolder": [- 256+ 257],"filePath": [1@@ -1082,7 +1086,7 @@ export default {},"ApplicationFileUploadRequestInput": {"fileFolder": [- 256+ 257],"filePath": [1@@ -1099,13 +1103,13 @@ export default {1],"expiresAt": [- 188+ 189],"fileFolder": [- 256+ 257],"fileId": [- 494+ 495],"filePath": [1@@ -1148,13 +1152,13 @@ export default {"ApplicationHealthStatus": {},"ApplicationRegistration": {"createdAt": [- 188+ 189],"galleryImagesUrls": [1],"id": [- 494+ 495],"isConfigured": [4@@ -1187,7 +1191,7 @@ export default {1],"ownerWorkspaceId": [- 494+ 495],"sourcePackage": [1@@ -1199,7 +1203,7 @@ export default {1],"updatedAt": [- 188+ 189],"__typename": [1@@ -1220,7 +1224,7 @@ export default {8],"versionDistribution": [- 600+ 601],"__typename": [1@@ -1228,7 +1232,7 @@ export default {},"ApplicationRegistrationSummary": {"id": [- 494+ 495],"latestAvailableVersion": [1@@ -1245,13 +1249,13 @@ export default {},"ApplicationRegistrationVariable": {"createdAt": [- 188+ 189],"description": [1],"id": [- 494+ 495],"isDeprecated": [4@@ -1269,13 +1273,13 @@ export default {1],"options": [- 290+ 291],"type": [1],"updatedAt": [- 188+ 189],"value": [1@@ -1300,7 +1304,7 @@ export default {1],"id": [- 494+ 495],"isDeprecated": [4@@ -1318,7 +1322,7 @@ export default {1],"options": [- 290+ 291],"scope": [62@@ -1336,13 +1340,13 @@ export default {"ApplicationVariableScope": {},"ApprovedAccessDomain": {"createdAt": [- 188+ 189],"domain": [1],"id": [- 494+ 495],"isValidated": [4@@ -1379,7 +1383,7 @@ export default {4],"sso": [- 437+ 438],"__typename": [1@@ -1387,7 +1391,7 @@ export default {},"AuthToken": {"expiresAt": [- 188+ 189],"token": [1@@ -1439,7 +1443,7 @@ export default {1],"id": [- 494+ 495],"inviteHash": [1@@ -1454,10 +1458,10 @@ export default {1],"sso": [- 436+ 437],"workspaceUrls": [- 642+ 643],"__typename": [1@@ -1488,7 +1492,7 @@ export default {"AxisNameDisplay": {},"BarChartConfiguration": {"aggregateFieldMetadataId": [- 494+ 495],"aggregateOperation": [20@@ -1500,7 +1504,7 @@ export default {1],"configurationType": [- 619+ 620],"description": [1@@ -1512,7 +1516,7 @@ export default {4],"filter": [- 290+ 291],"firstDayOfTheWeek": [8@@ -1533,10 +1537,10 @@ export default {4],"primaryAxisDateGranularity": [- 364+ 365],"primaryAxisGroupByFieldMetadataId": [- 494+ 495],"primaryAxisGroupBySubFieldName": [1@@ -1545,7 +1549,7 @@ export default {1],"primaryAxisOrderBy": [- 271+ 272],"rangeMax": [11@@ -1554,10 +1558,10 @@ export default {11],"secondaryAxisGroupByDateGranularity": [- 364+ 365],"secondaryAxisGroupByFieldMetadataId": [- 494+ 495],"secondaryAxisGroupBySubFieldName": [1@@ -1566,7 +1570,7 @@ export default {1],"secondaryAxisOrderBy": [- 271+ 272],"splitMultiValueFields": [4@@ -1580,10 +1584,10 @@ export default {},"BarChartData": {"data": [- 290+ 291],"formattedToRawLookup": [- 290+ 291],"groupMode": [78@@ -1621,10 +1625,10 @@ export default {},"BarChartDataInput": {"configuration": [- 290+ 291],"objectMetadataId": [- 494+ 495],"__typename": [1@@ -1666,10 +1670,10 @@ export default {4],"id": [- 494+ 495],"userCreditsFallback": [- 591+ 592],"__typename": [1@@ -1689,7 +1693,7 @@ export default {4],"status": [- 468+ 469],"__typename": [1@@ -1796,7 +1800,7 @@ export default {108],"recurringInterval": [- 467+ 468],"stripePriceId": [1@@ -1813,7 +1817,7 @@ export default {108],"recurringInterval": [- 467+ 468],"stripePriceId": [1@@ -1899,10 +1903,10 @@ export default {},"BillingResourceCreditUsage": {"periodEnd": [- 188+ 189],"periodStart": [- 188+ 189],"productKey": [97@@ -1942,28 +1946,28 @@ export default {103],"cancelAt": [- 188+ 189],"collectionMethod": [102],"currentPeriodEnd": [- 188+ 189],"id": [- 494+ 495],"interval": [- 467+ 468],"metadata": [- 290+ 291],"phases": [104],"status": [- 468+ 469],"__typename": [1@@ -1981,7 +1985,7 @@ export default {4],"id": [- 494+ 495],"quantity": [11@@ -2057,19 +2061,19 @@ export default {},"CalendarChannel": {"connectedAccountId": [- 494+ 495],"contactAutoCreationPolicy": [111],"createdAt": [- 188+ 189],"handle": [1],"id": [- 494+ 495],"isContactAutoCreationEnabled": [4@@ -2081,19 +2085,19 @@ export default {112],"syncStageStartedAt": [- 188+ 189],"syncStatus": [113],"syncedAt": [- 188+ 189],"throttleFailureCount": [11],"updatedAt": [- 188+ 189],"visibility": [114@@ -2108,7 +2112,7 @@ export default {"CalendarChannelVisibility": {},"CalendarConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -2116,7 +2120,7 @@ export default {},"CallRecordingSummaryConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -2124,7 +2128,7 @@ export default {},"CallRecordingTranscriptConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -2201,7 +2205,7 @@ export default {"ChartNumberFormat": {},"ChatConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -2209,7 +2213,7 @@ export default {},"ChatStreamCatchupChunks": {"chunks": [- 290+ 291],"error": [127@@ -2234,7 +2238,7 @@ export default {},"ChatThreadsConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -2359,7 +2363,7 @@ export default {11],"modelFamily": [- 344+ 345],"modelFamilyLabel": [1@@ -2368,7 +2372,7 @@ export default {1],"nativeCapabilities": [- 346+ 347],"outputCostPerMillionTokens": [11@@ -2501,13 +2505,13 @@ export default {135],"publicFeatureFlags": [- 393+ 394],"publicFunctionDomain": [1],"sentry": [- 452+ 453],"serverUrl": [1@@ -2516,7 +2520,7 @@ export default {4],"support": [- 469+ 470],"__typename": [1@@ -2524,13 +2528,13 @@ export default {},"ClientConfigMaintenanceMode": {"endAt": [- 188+ 189],"link": [1],"startAt": [- 188+ 189],"__typename": [1@@ -2549,10 +2553,10 @@ export default {},"CommandMenuItem": {"applicationId": [- 494+ 495],"availabilityObjectMetadataId": [- 494+ 495],"availabilityType": [138@@ -2564,19 +2568,19 @@ export default {1],"coreWorkflowVersionId": [- 494+ 495],"createdAt": [- 188+ 189],"engineComponentKey": [- 222+ 223],"frontComponent": [- 263+ 264],"frontComponentId": [- 494+ 495],"hotKeys": [1@@ -2585,7 +2589,7 @@ export default {1],"id": [- 494+ 495],"isActive": [4@@ -2597,10 +2601,10 @@ export default {1],"navigationTargetObjectMetadataId": [- 494+ 495],"pageLayoutId": [- 494+ 495],"payload": [139@@ -2612,13 +2616,13 @@ export default {1],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"workflowVersionId": [- 494+ 495],"__typename": [1@@ -2627,10 +2631,10 @@ export default {"CommandMenuItemAvailabilityType": {},"CommandMenuItemPayload": {"on_ObjectMetadataCommandMenuItemPayload": [- 356+ 357],"on_PathCommandMenuItemPayload": [- 381+ 382],"__typename": [1@@ -2641,7 +2645,7 @@ export default {48],"files": [- 254+ 255],"__typename": [1@@ -2649,25 +2653,25 @@ export default {},"ConnectedAccountPublicDTO": {"applicationId": [- 494+ 495],"archivedAt": [- 188+ 189],"authFailedAt": [- 188+ 189],"authFailedReason": [1],"connectionParameters": [- 395+ 396],"connectionProviderId": [- 494+ 495],"createdAt": [- 188+ 189],"handle": [1@@ -2676,13 +2680,13 @@ export default {1],"id": [- 494+ 495],"lastCredentialsRefreshedAt": [- 188+ 189],"lastSignedInAt": [- 188+ 189],"name": [1@@ -2694,10 +2698,10 @@ export default {1],"updatedAt": [- 188+ 189],"userWorkspaceId": [- 494+ 495],"visibility": [1@@ -2708,19 +2712,19 @@ export default {},"ConnectedImapSmtpCaldavAccount": {"connectionParameters": [- 276+ 277],"handle": [1],"id": [- 494+ 495],"provider": [1],"userWorkspaceId": [- 494+ 495],"__typename": [1@@ -2729,7 +2733,7 @@ export default {"ConnectionCursor": {},"ConnectionParametersInput": {"connectionSecurity": [- 215+ 216],"host": [1@@ -2747,6 +2751,7 @@ export default {1]},+ "ConnectionProviderScope": {},"CreateAgentInput": {"description": [1@@ -2758,7 +2763,7 @@ export default {1],"modelConfiguration": [- 290+ 291],"modelId": [1@@ -2770,13 +2775,13 @@ export default {1],"responseFormat": [- 290+ 291],"roleId": [- 494+ 495],"triggers": [- 290+ 291],"__typename": [1@@ -2793,7 +2798,7 @@ export default {1],"roleId": [- 494+ 495],"__typename": [1@@ -2801,7 +2806,7 @@ export default {},"CreateAppMessageChannelInput": {"connectedAccountId": [- 494+ 495],"displayName": [1@@ -2810,7 +2815,7 @@ export default {1],"visibility": [- 324+ 325],"__typename": [1@@ -2926,7 +2931,7 @@ export default {},"CreateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 494+ 495],"availabilityType": [138@@ -2938,13 +2943,13 @@ export default {1],"coreWorkflowVersionId": [- 494+ 495],"engineComponentKey": [- 222+ 223],"frontComponentId": [- 494+ 495],"hotKeys": [1@@ -2959,13 +2964,13 @@ export default {1],"navigationTargetObjectMetadataId": [- 494+ 495],"pageLayoutId": [- 494+ 495],"payload": [- 290+ 291],"position": [11@@ -2974,7 +2979,7 @@ export default {1],"workflowVersionId": [- 494+ 495],"__typename": [1@@ -2996,7 +3001,7 @@ export default {1],"messageChannel": [- 318+ 319],"__typename": [1@@ -3012,7 +3017,7 @@ export default {},"CreateFieldInput": {"defaultValue": [- 290+ 291],"description": [1@@ -3054,25 +3059,25 @@ export default {1],"morphRelationsCreationPayload": [- 290+ 291],"name": [1],"objectMetadataId": [- 494+ 495],"options": [- 290+ 291],"relationCreationPayload": [- 290+ 291],"settings": [- 290+ 291],"type": [- 249+ 250],"__typename": [1@@ -3092,7 +3097,7 @@ export default {1],"id": [- 494+ 495],"name": [1@@ -3106,7 +3111,7 @@ export default {},"CreateIndexFieldInput": {"fieldMetadataId": [- 494+ 495],"subFieldName": [1@@ -3117,13 +3122,13 @@ export default {},"CreateIndexInput": {"fields": [- 160+ 161],"indexType": [- 283+ 284],"objectMetadataId": [- 494+ 495],"__typename": [1@@ -3131,40 +3136,40 @@ export default {},"CreateLogicFunctionFromSourceInput": {"cronTriggerSettings": [- 290+ 291],"databaseEventTriggerSettings": [- 290+ 291],"description": [1],"httpRouteTriggerSettings": [- 290+ 291],"id": [- 494+ 495],"name": [1],"serverRouteTriggerSettings": [- 290+ 291],"source": [- 290+ 291],"timeoutSeconds": [11],"toolTriggerSettings": [- 290+ 291],"universalIdentifier": [- 494+ 495],"workflowActionTriggerSettings": [- 290+ 291],"__typename": [1@@ -3175,7 +3180,7 @@ export default {1],"unsubscribeTopicId": [- 494+ 495],"__typename": [1@@ -3186,13 +3191,13 @@ export default {1],"folderId": [- 494+ 495],"icon": [1],"id": [- 494+ 495],"link": [1@@ -3201,25 +3206,25 @@ export default {1],"pageLayoutId": [- 494+ 495],"position": [11],"targetObjectMetadataId": [- 494+ 495],"targetRecordId": [- 494+ 495],"type": [- 348+ 349],"userWorkspaceId": [- 494+ 495],"viewId": [- 494+ 495],"__typename": [1@@ -3257,7 +3262,7 @@ export default {1],"primaryKeyFieldMetadataSettings": [- 290+ 291],"shortcut": [1@@ -3271,7 +3276,7 @@ export default {},"CreateOneFieldMetadataInput": {"field": [- 158+ 159],"__typename": [1@@ -3279,7 +3284,7 @@ export default {},"CreateOneIndexInput": {"index": [- 161+ 162],"__typename": [1@@ -3287,7 +3292,7 @@ export default {},"CreateOneObjectInput": {"object": [- 165+ 166],"__typename": [1@@ -3298,10 +3303,10 @@ export default {1],"objectMetadataId": [- 494+ 495],"type": [- 374+ 375],"__typename": [1@@ -3309,10 +3314,10 @@ export default {},"CreatePageLayoutTabInput": {"layoutMode": [- 373+ 374],"pageLayoutId": [- 494+ 495],"position": [11@@ -3326,22 +3331,22 @@ export default {},"CreatePageLayoutWidgetInput": {"configuration": [- 290+ 291],"objectMetadataId": [- 494+ 495],"pageLayoutTabId": [- 494+ 495],"position": [- 290+ 291],"title": [1],"type": [- 620+ 621],"__typename": [1@@ -3349,16 +3354,16 @@ export default {},"CreateRecordExportInput": {"fieldMetadataIds": [- 494+ 495],"filter": [- 290+ 291],"objectMetadataId": [- 494+ 495],"orderBy": [- 290+ 291],"__typename": [1@@ -3419,7 +3424,7 @@ export default {1],"id": [- 494+ 495],"label": [1@@ -3439,7 +3444,7 @@ export default {1],"visibility": [- 498+ 499],"__typename": [1@@ -3456,7 +3461,7 @@ export default {81],"operationType": [- 578+ 579],"periodCount": [8@@ -3465,7 +3470,7 @@ export default {1],"resourceType": [- 585+ 586],"spenderId": [1@@ -3474,7 +3479,7 @@ export default {1],"unit": [- 587+ 588],"__typename": [1@@ -3485,7 +3490,7 @@ export default {1],"errorFieldMetadataId": [- 494+ 495],"expression": [1@@ -3503,7 +3508,7 @@ export default {1],"objectMetadataId": [- 494+ 495],"__typename": [1@@ -3511,7 +3516,7 @@ export default {},"CreateViewFieldGroupInput": {"id": [- 494+ 495],"isVisible": [4@@ -3523,7 +3528,7 @@ export default {11],"viewId": [- 494+ 495],"__typename": [1@@ -3534,10 +3539,10 @@ export default {20],"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"isVisible": [4@@ -3549,10 +3554,10 @@ export default {11],"viewFieldGroupId": [- 494+ 495],"viewId": [- 494+ 495],"__typename": [1@@ -3560,19 +3565,19 @@ export default {},"CreateViewFilterGroupInput": {"id": [- 494+ 495],"logicalOperator": [- 608+ 609],"parentViewFilterGroupId": [- 494+ 495],"positionInViewFilterGroup": [11],"viewId": [- 494+ 495],"__typename": [1@@ -3580,31 +3585,31 @@ export default {},"CreateViewFilterInput": {"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"operand": [- 609+ 610],"positionInViewFilterGroup": [11],"relationTargetFieldMetadataId": [- 494+ 495],"subFieldName": [1],"value": [- 290+ 291],"viewFilterGroupId": [- 494+ 495],"viewId": [- 494+ 495],"__typename": [1@@ -3615,7 +3620,7 @@ export default {1],"id": [- 494+ 495],"isVisible": [4@@ -3624,7 +3629,7 @@ export default {11],"viewId": [- 494+ 495],"__typename": [1@@ -3635,13 +3640,13 @@ export default {1],"calendarEndFieldMetadataId": [- 494+ 495],"calendarFieldMetadataId": [- 494+ 495],"calendarLayout": [- 602+ 603],"groupLoadLimit": [8@@ -3650,7 +3655,7 @@ export default {1],"id": [- 494+ 495],"isCompact": [4@@ -3659,25 +3664,25 @@ export default {20],"kanbanAggregateOperationFieldMetadataId": [- 494+ 495],"kanbanColumnWidth": [8],"key": [- 611+ 612],"mainGroupByFieldMetadataId": [- 494+ 495],"name": [1],"objectMetadataId": [- 494+ 495],"openRecordIn": [- 612+ 613],"position": [11@@ -3686,10 +3691,10 @@ export default {4],"type": [- 615+ 616],"visibility": [- 616+ 617],"__typename": [1@@ -3697,19 +3702,19 @@ export default {},"CreateViewSortInput": {"direction": [- 614+ 615],"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"subFieldName": [1],"viewId": [- 494+ 495],"__typename": [1@@ -3720,7 +3725,7 @@ export default {1],"id": [- 494+ 495],"operations": [1@@ -3756,7 +3761,7 @@ export default {"DateTime": {},"DeleteApprovedAccessDomainInput": {"id": [- 494+ 495],"__typename": [1@@ -3764,7 +3769,7 @@ export default {},"DeleteOneFieldInput": {"id": [- 494+ 495],"__typename": [1@@ -3772,7 +3777,7 @@ export default {},"DeleteOneIndexInput": {"id": [- 494+ 495],"__typename": [1@@ -3780,7 +3785,7 @@ export default {},"DeleteOneObjectInput": {"id": [- 494+ 495],"__typename": [1@@ -3788,7 +3793,7 @@ export default {},"DeleteSso": {"identityProviderId": [- 494+ 495],"__typename": [1@@ -3796,7 +3801,7 @@ export default {},"DeleteSsoInput": {"identityProviderId": [- 494+ 495],"__typename": [1@@ -3812,7 +3817,7 @@ export default {},"DeleteViewFieldGroupInput": {"id": [- 494+ 495],"__typename": [1@@ -3820,7 +3825,7 @@ export default {},"DeleteViewFieldInput": {"id": [- 494+ 495],"__typename": [1@@ -3828,7 +3833,7 @@ export default {},"DeleteViewFilterInput": {"id": [- 494+ 495],"__typename": [1@@ -3836,7 +3841,7 @@ export default {},"DeleteViewGroupInput": {"id": [- 494+ 495],"__typename": [1@@ -3844,7 +3849,7 @@ export default {},"DeleteViewSortInput": {"id": [- 494+ 495],"__typename": [1@@ -3855,16 +3860,16 @@ export default {1],"id": [- 494+ 495],"name": [- 266+ 267],"userEmail": [1],"userWorkspaceId": [- 494+ 495],"__typename": [1@@ -3872,7 +3877,7 @@ export default {},"DestroyViewFieldGroupInput": {"id": [- 494+ 495],"__typename": [1@@ -3880,7 +3885,7 @@ export default {},"DestroyViewFieldInput": {"id": [- 494+ 495],"__typename": [1@@ -3888,7 +3893,7 @@ export default {},"DestroyViewFilterInput": {"id": [- 494+ 495],"__typename": [1@@ -3896,7 +3901,7 @@ export default {},"DestroyViewGroupInput": {"id": [- 494+ 495],"__typename": [1@@ -3904,7 +3909,7 @@ export default {},"DestroyViewSortInput": {"id": [- 494+ 495],"__typename": [1@@ -3946,13 +3951,13 @@ export default {1],"id": [- 494+ 495],"isCustomDomainEnabled": [4],"records": [- 208+ 209],"__typename": [1@@ -3963,10 +3968,10 @@ export default {1],"id": [- 494+ 495],"pageLayoutId": [- 494+ 495],"position": [11@@ -3989,7 +3994,7 @@ export default {1],"id": [- 494+ 495],"memberCount": [11@@ -4009,7 +4014,7 @@ export default {},"EditSso": {"id": [- 494+ 495],"issuer": [1@@ -4018,10 +4023,10 @@ export default {1],"status": [- 438+ 439],"type": [- 273+ 274],"__typename": [1@@ -4029,10 +4034,10 @@ export default {},"EditSsoInput": {"id": [- 494+ 495],"status": [- 438+ 439],"__typename": [1@@ -4066,7 +4071,7 @@ export default {},"EmailThreadConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -4074,31 +4079,31 @@ export default {},"EmailingDomain": {"createdAt": [- 188+ 189],"domain": [1],"id": [- 494+ 495],"status": [- 219+ 220],"tenantStatus": [- 220+ 221],"unsubscribeHostnameStatus": [- 496+ 497],"updatedAt": [- 188+ 189],"verificationRecords": [- 597+ 598],"verifiedAt": [- 188+ 189],"__typename": [1@@ -4108,7 +4113,7 @@ export default {"EmailingDomainTenantStatus": {},"EmailsConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -4126,7 +4131,7 @@ export default {1],"payload": [- 290+ 291],"retryLimit": [8@@ -4140,7 +4145,7 @@ export default {1],"payload": [- 290+ 291],"__typename": [1@@ -4165,13 +4170,13 @@ export default {8],"jobs": [- 224+ 225],"logicFunctionUniversalIdentifier": [1],"payloads": [- 290+ 291],"retryLimit": [8@@ -4199,7 +4204,7 @@ export default {},"EnterpriseLicenseInfoDTO": {"expiresAt": [- 188+ 189],"isValid": [4@@ -4216,13 +4221,13 @@ export default {},"EnterpriseSubscriptionStatusDTO": {"cancelAt": [- 188+ 189],"currentPeriodEnd": [- 188+ 189],"expiresAt": [- 188+ 189],"isCancellationScheduled": [4@@ -4239,10 +4244,10 @@ export default {},"EventLogDateRangeInput": {"end": [- 188+ 189],"start": [- 188+ 189],"__typename": [1@@ -4253,7 +4258,7 @@ export default {1],"operand": [- 232+ 233],"values": [1@@ -4265,13 +4270,13 @@ export default {"EventLogFilterOperand": {},"EventLogFiltersInput": {"dateRange": [- 230+ 231],"eventType": [1],"fieldFilters": [- 231+ 232],"objectMetadataId": [1@@ -4302,13 +4307,13 @@ export default {1],"filters": [- 233+ 234],"first": [8],"table": [- 238+ 239],"__typename": [1@@ -4316,10 +4321,10 @@ export default {},"EventLogQueryResult": {"pageInfo": [- 234+ 235],"records": [- 237+ 238],"totalCount": [8@@ -4339,13 +4344,13 @@ export default {1],"properties": [- 290+ 291],"recordId": [1],"timestamp": [- 188+ 189],"userId": [1@@ -4360,13 +4365,13 @@ export default {1],"metadataEvents": [- 333+ 334],"objectRecordEventsWithQueryIds": [- 363+ 364],"queueJobEvents": [- 293+ 294],"__typename": [1@@ -4374,10 +4379,10 @@ export default {},"ExecuteOneLogicFunctionInput": {"id": [- 494+ 495],"payload": [- 290+ 291],"__typename": [1@@ -4385,7 +4390,7 @@ export default {},"FeatureFlag": {"key": [- 242+ 243],"value": [4@@ -4397,13 +4402,13 @@ export default {"FeatureFlagKey": {},"Field": {"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"defaultValue": [- 290+ 291],"description": [1@@ -4412,7 +4417,7 @@ export default {1],"id": [- 494+ 495],"isActive": [4@@ -4445,40 +4450,40 @@ export default {1],"morphId": [- 494+ 495],"morphRelations": [- 414+ 415],"name": [1],"object": [- 350+ 351],"objectMetadataId": [- 494+ 495],"options": [- 290+ 291],"relation": [- 414+ 415],"settings": [- 290+ 291],"type": [- 249+ 250],"universalIdentifier": [1],"updatedAt": [- 188+ 189],"writability": [- 340+ 341],"__typename": [1@@ -4486,10 +4491,10 @@ export default {},"FieldConfiguration": {"configurationType": [- 619+ 620],"fieldDisplayMode": [- 246+ 247],"fieldMetadataId": [1@@ -4509,10 +4514,10 @@ export default {},"FieldConnection": {"edges": [- 247+ 248],"pageInfo": [- 370+ 371],"__typename": [1@@ -4524,7 +4529,7 @@ export default {143],"node": [- 243+ 244],"__typename": [1@@ -4532,10 +4537,10 @@ export default {},"FieldFilter": {"and": [- 248+ 249],"id": [- 495+ 496],"isActive": [109@@ -4550,10 +4555,10 @@ export default {109],"objectMetadataId": [- 495+ 496],"or": [- 248+ 249],"__typename": [1@@ -4568,16 +4573,16 @@ export default {4],"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"objectMetadataId": [- 494+ 495],"roleId": [- 494+ 495],"__typename": [1@@ -4591,10 +4596,10 @@ export default {4],"fieldMetadataId": [- 494+ 495],"objectMetadataId": [- 494+ 495],"__typename": [1@@ -4602,7 +4607,7 @@ export default {},"FieldRichTextConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -4610,7 +4615,7 @@ export default {},"FieldsConfiguration": {"configurationType": [- 619+ 620],"newFieldDefaultVisibility": [4@@ -4627,10 +4632,10 @@ export default {},"File": {"createdAt": [- 188+ 189],"id": [- 494+ 495],"path": [1@@ -4647,7 +4652,7 @@ export default {1],"id": [- 494+ 495],"__typename": [1@@ -4659,10 +4664,10 @@ export default {1],"expiresAt": [- 188+ 189],"fileId": [- 494+ 495],"uploadUrl": [1@@ -4673,10 +4678,10 @@ export default {},"FileWithSignedUrl": {"createdAt": [- 188+ 189],"id": [- 494+ 495],"path": [1@@ -4693,7 +4698,7 @@ export default {},"FilesConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -4701,7 +4706,7 @@ export default {},"FindAvailableSSOIDP": {"id": [- 494+ 495],"issuer": [1@@ -4710,13 +4715,13 @@ export default {1],"status": [- 438+ 439],"type": [- 273+ 274],"workspace": [- 639+ 640],"__typename": [1@@ -4730,13 +4735,13 @@ export default {8],"reason": [- 331+ 332],"searchTerm": [1],"unsubscribeTopicId": [- 494+ 495],"__typename": [1@@ -4744,7 +4749,7 @@ export default {},"FormFieldConfiguration": {"configurationType": [- 619+ 620],"fieldMetadataId": [1@@ -4758,7 +4763,7 @@ export default {1],"applicationId": [- 494+ 495],"applicationName": [1@@ -4767,7 +4772,7 @@ export default {60],"applicationVariables": [- 290+ 291],"builtComponentChecksum": [1@@ -4779,7 +4784,7 @@ export default {1],"createdAt": [- 188+ 189],"description": [1@@ -4788,7 +4793,7 @@ export default {1],"id": [- 494+ 495],"isHeadless": [4@@ -4800,16 +4805,16 @@ export default {1],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"usesSdkClient": [4],"widgetAvailability": [- 265+ 266],"__typename": [1@@ -4817,13 +4822,13 @@ export default {},"FrontComponentConfiguration": {"configurationType": [- 619+ 620],"frontComponentId": [- 494+ 495],"headerCommandMenuItemUniversalIdentifiers": [- 494+ 495],"__typename": [1@@ -4831,10 +4836,10 @@ export default {},"FrontComponentWidgetAvailability": {"objectMetadataId": [- 494+ 495],"pageLayoutType": [- 374+ 375],"__typename": [1@@ -4853,7 +4858,7 @@ export default {},"GetApiKeyInput": {"id": [- 494+ 495],"__typename": [1@@ -4864,7 +4869,7 @@ export default {1],"id": [- 494+ 495],"type": [1@@ -4875,7 +4880,7 @@ export default {},"GetAuthorizationUrlForSSOInput": {"identityProviderId": [- 494+ 495],"workspaceInviteHash": [1@@ -4886,7 +4891,7 @@ export default {},"GrantApplicationCapabilitiesInput": {"applicationId": [- 494+ 495],"capabilities": [1@@ -4916,7 +4921,7 @@ export default {"IdentityProviderType": {},"IframeConfiguration": {"configurationType": [- 619+ 620],"url": [1@@ -4938,13 +4943,13 @@ export default {},"ImapSmtpCaldavPublicConnectionParameters": {"CALDAV": [- 277+ 278],"IMAP": [- 277+ 278],"SMTP": [- 277+ 278],"name": [1@@ -4955,7 +4960,7 @@ export default {},"ImapSmtpCaldavPublicConnectionParams": {"connectionSecurity": [- 215+ 216],"host": [1@@ -4975,7 +4980,7 @@ export default {66],"workspace": [- 643+ 644],"__typename": [1@@ -4983,16 +4988,16 @@ export default {},"Index": {"createdAt": [- 188+ 189],"id": [- 494+ 495],"indexFieldMetadataList": [- 281+ 282],"indexType": [- 283+ 284],"indexWhereClause": [1@@ -5007,7 +5012,7 @@ export default {1],"updatedAt": [- 188+ 189],"__typename": [1@@ -5018,7 +5023,7 @@ export default {143],"node": [- 279+ 280],"__typename": [1@@ -5026,13 +5031,13 @@ export default {},"IndexField": {"createdAt": [- 188+ 189],"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"order": [11@@ -5041,7 +5046,7 @@ export default {1],"updatedAt": [- 188+ 189],"__typename": [1@@ -5049,16 +5054,16 @@ export default {},"IndexFilter": {"and": [- 282+ 283],"id": [- 495+ 496],"isCustom": [109],"or": [- 282+ 283],"__typename": [1@@ -5067,7 +5072,7 @@ export default {"IndexType": {},"IngestAppMessagesInput": {"messageChannelId": [- 494+ 495],"messages": [35@@ -5078,7 +5083,7 @@ export default {},"IngestAppMessagesOutput": {"messages": [- 286+ 287],"__typename": [1@@ -5089,10 +5094,10 @@ export default {1],"messageId": [- 494+ 495],"messageThreadId": [- 494+ 495],"__typename": [1@@ -5151,7 +5156,7 @@ export default {11],"state": [- 292+ 293],"__typename": [1@@ -5159,7 +5164,7 @@ export default {},"LineChartConfiguration": {"aggregateFieldMetadataId": [- 494+ 495],"aggregateOperation": [20@@ -5171,7 +5176,7 @@ export default {1],"configurationType": [- 619+ 620],"description": [1@@ -5183,7 +5188,7 @@ export default {4],"filter": [- 290+ 291],"firstDayOfTheWeek": [8@@ -5201,10 +5206,10 @@ export default {4],"primaryAxisDateGranularity": [- 364+ 365],"primaryAxisGroupByFieldMetadataId": [- 494+ 495],"primaryAxisGroupBySubFieldName": [1@@ -5213,7 +5218,7 @@ export default {1],"primaryAxisOrderBy": [- 271+ 272],"rangeMax": [11@@ -5222,10 +5227,10 @@ export default {11],"secondaryAxisGroupByDateGranularity": [- 364+ 365],"secondaryAxisGroupByFieldMetadataId": [- 494+ 495],"secondaryAxisGroupBySubFieldName": [1@@ -5234,7 +5239,7 @@ export default {1],"secondaryAxisOrderBy": [- 271+ 272],"splitMultiValueFields": [4@@ -5248,13 +5253,13 @@ export default {},"LineChartData": {"formattedToRawLookup": [- 290+ 291],"hasTooManyGroups": [4],"series": [- 298+ 299],"showDataLabels": [4@@ -5274,10 +5279,10 @@ export default {},"LineChartDataInput": {"configuration": [- 290+ 291],"objectMetadataId": [- 494+ 495],"__typename": [1@@ -5296,7 +5301,7 @@ export default {},"LineChartSeries": {"data": [- 297+ 298],"key": [1@@ -5324,7 +5329,7 @@ export default {},"ListAppMessageChannelsInput": {"connectedAccountId": [- 494+ 495],"__typename": [1@@ -5343,34 +5348,34 @@ export default {},"LogicFunction": {"applicationId": [- 494+ 495],"canRunOnDemand": [4],"createdAt": [- 188+ 189],"cronTriggerSettings": [- 290+ 291],"databaseEventTriggerSettings": [- 290+ 291],"description": [1],"executionMode": [- 303+ 304],"handlerName": [1],"httpRouteTriggerSettings": [- 290+ 291],"id": [- 494+ 495],"name": [1@@ -5385,16 +5390,16 @@ export default {11],"toolTriggerSettings": [- 290+ 291],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"workflowActionTriggerSettings": [- 290+ 291],"__typename": [1@@ -5403,19 +5408,19 @@ export default {"LogicFunctionExecutionMode": {},"LogicFunctionExecutionResult": {"data": [- 290+ 291],"duration": [11],"error": [- 290+ 291],"logs": [1],"status": [- 305+ 306],"__typename": [1@@ -5438,7 +5443,7 @@ export default {1],"universalIdentifier": [- 494+ 495],"__typename": [1@@ -5446,19 +5451,19 @@ export default {},"LogicFunctionLogsInput": {"applicationId": [- 494+ 495],"applicationUniversalIdentifier": [- 494+ 495],"id": [- 494+ 495],"name": [1],"universalIdentifier": [- 494+ 495],"__typename": [1@@ -5548,13 +5553,13 @@ export default {1],"manifest": [- 290+ 291],"name": [1],"objects": [- 312+ 313],"pricingDescription": [1@@ -5563,7 +5568,7 @@ export default {1],"roles": [- 313+ 314],"screenshots": [1@@ -5624,7 +5629,7 @@ export default {1],"fieldPermissions": [- 314+ 315],"icon": [1@@ -5633,7 +5638,7 @@ export default {1],"objectPermissions": [- 315+ 316],"permissionFlagUniversalIdentifiers": [1@@ -5690,7 +5695,7 @@ export default {},"MessageCampaignBodyConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -5698,7 +5703,7 @@ export default {},"MessageCampaignDetailsConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -5709,13 +5714,13 @@ export default {141],"connectedAccountId": [- 494+ 495],"contactAutoCreationPolicy": [- 319+ 320],"createdAt": [- 188+ 189],"displayName": [1@@ -5730,7 +5735,7 @@ export default {1],"id": [- 494+ 495],"importProgress": [8@@ -5742,37 +5747,37 @@ export default {4],"messageFolderImportPolicy": [- 326+ 327],"pendingGroupEmailsAction": [- 320+ 321],"syncStage": [- 321+ 322],"syncStageStartedAt": [- 188+ 189],"syncStatus": [- 322+ 323],"syncedAt": [- 188+ 189],"throttleFailureCount": [11],"throttleRetryAfter": [- 188+ 189],"type": [- 323+ 324],"updatedAt": [- 188+ 189],"visibility": [- 324+ 325],"__typename": [1@@ -5786,13 +5791,13 @@ export default {"MessageChannelVisibility": {},"MessageFolder": {"createdAt": [- 188+ 189],"externalId": [1],"id": [- 494+ 495],"isSentFolder": [4@@ -5801,7 +5806,7 @@ export default {4],"messageChannelId": [- 494+ 495],"name": [1@@ -5810,10 +5815,10 @@ export default {1],"pendingSyncAction": [- 327+ 328],"updatedAt": [- 188+ 189],"__typename": [1@@ -5824,22 +5829,22 @@ export default {"MessageParticipantRole": {},"MessageSuppression": {"createdAt": [- 188+ 189],"emailAddress": [1],"id": [- 494+ 495],"reason": [- 331+ 332],"source": [- 332+ 333],"unsubscribeTopicId": [- 494+ 495],"__typename": [1@@ -5847,7 +5852,7 @@ export default {},"MessageSuppressionList": {"records": [- 329+ 330],"totalCount": [8@@ -5863,13 +5868,13 @@ export default {1],"properties": [- 362+ 363],"recordId": [1],"type": [- 334+ 335],"updatedCollectionHash": [1@@ -5891,16 +5896,16 @@ export default {1],"objectMetadataId": [- 494+ 495],"property": [1],"provenance": [- 338+ 339],"recordId": [- 494+ 495],"sourceValue": [1@@ -5929,13 +5934,13 @@ export default {"MetadataTranslationProvenance": {},"MetadataTranslationsInput": {"fieldMetadataId": [- 494+ 495],"locale": [1],"objectMetadataId": [- 494+ 495],"__typename": [1@@ -5947,10 +5952,10 @@ export default {136],"objectMetadataItems": [- 342+ 343],"views": [- 343+ 344],"__typename": [1@@ -5964,7 +5969,7 @@ export default {1],"id": [- 494+ 495],"isActive": [4@@ -5993,16 +5998,16 @@ export default {},"MinimalView": {"id": [- 494+ 495],"key": [- 611+ 612],"objectMetadataId": [- 494+ 495],"type": [- 615+ 616],"__typename": [1@@ -6011,16 +6016,16 @@ export default {"ModelFamily": {},"Mutation": {"activateSkill": [- 461,+ 462,{"id": [- 494,+ 495,"UUID!"]}],"activateWorkspace": [- 624,+ 625,{"data": [0,@@ -6036,7 +6041,7 @@ export default {"String!"],"messageId": [- 494,+ 495,"UUID!"]}@@ -6054,10 +6059,10 @@ export default {4,{"assigneeWorkspaceMemberId": [- 494+ 495],"threadId": [- 494,+ 495,"UUID!"]}@@ -6066,11 +6071,11 @@ export default {4,{"agentId": [- 494,+ 495,"UUID!"],"roleId": [- 494,+ 495,"UUID!"]}@@ -6079,11 +6084,11 @@ export default {4,{"apiKeyId": [- 494,+ 495,"UUID!"],"roleId": [- 494,+ 495,"UUID!"]}@@ -6132,10 +6137,10 @@ export default {107],"checkCustomDomainValidRecords": [- 209+ 210],"checkPublicDomainValidRecords": [- 209,+ 210,{"domain": [1,@@ -6151,7 +6156,7 @@ export default {"BillingPlanKey!"],"recurringInterval": [- 467,+ 468,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -6176,7 +6181,7 @@ export default {55,{"fileId": [- 494,+ 495,"UUID!"]}@@ -6189,13 +6194,13 @@ export default {"String!"],"fileIds": [- 494,+ 495,"[UUID!]!"]}],"completeBookCallOnboardingStep": [- 368,+ 369,{"hasBookedCall": [4,@@ -6208,7 +6213,7 @@ export default {}],"completeFileUpload": [- 258,+ 259,{"fileId": [1,@@ -6217,7 +6222,7 @@ export default {}],"completeNewWorkspaceLogoUpload": [- 258,+ 259,{"fileId": [1,@@ -6230,7 +6235,7 @@ export default {}],"completeWorkspaceLogoUpload": [- 258,+ 259,{"fileId": [1,@@ -6239,7 +6244,7 @@ export default {}],"completeWorkspaceMemberProfilePictureUpload": [- 258,+ 259,{"fileId": [1,@@ -6251,22 +6256,22 @@ export default {29,{"input": [- 146,+ 147,"CreateApiKeyInput!"]}],"createAppMessageChannel": [- 318,+ 319,{"input": [- 147,+ 148,"CreateAppMessageChannelInput!"]}],"createApplicationFileUploads": [- 148,+ 149,{"applicationUniversalIdentifier": [1,@@ -6279,10 +6284,10 @@ export default {}],"createApplicationRegistration": [- 149,+ 150,{"input": [- 150,+ 151,"CreateApplicationRegistrationInput!"]}@@ -6291,7 +6296,7 @@ export default {63,{"input": [- 151,+ 152,"CreateApprovedAccessDomainInput!"]}@@ -6300,10 +6305,10 @@ export default {89],"createCalendarEvent": [- 153,+ 154,{"input": [- 152,+ 153,"CreateCalendarEventInput!"]}@@ -6315,13 +6320,13 @@ export default {137,{"input": [- 154,+ 155,"CreateCommandMenuItemInput!"]}],"createDevelopmentApplication": [- 207,+ 208,{"name": [1,@@ -6334,25 +6339,25 @@ export default {}],"createEmailGroupChannel": [- 156,+ 157,{"input": [- 155,+ 156,"CreateEmailGroupChannelInput!"]}],"createEmailingDomain": [- 218,+ 219,{"input": [- 157,+ 158,"CreateEmailingDomainInput!"]}],"createFileUpload": [- 257,+ 258,{"fieldMetadataId": [1@@ -6361,7 +6366,7 @@ export default {1],"fileFolder": [- 256,+ 257,"FileFolder!"],"filename": [@@ -6375,70 +6380,70 @@ export default {}],"createFrontComponent": [- 263,+ 264,{"input": [- 159,+ 160,"CreateFrontComponentInput!"]}],"createManyNavigationMenuItems": [- 347,+ 348,{"inputs": [- 164,+ 165,"[CreateNavigationMenuItemInput!]!"]}],"createManyViewFieldGroups": [- 605,+ 606,{"inputs": [- 178,+ 179,"[CreateViewFieldGroupInput!]!"]}],"createManyViewFields": [- 604,+ 605,{"inputs": [- 179,+ 180,"[CreateViewFieldInput!]!"]}],"createManyViewGroups": [- 610,+ 611,{"inputs": [- 182,+ 183,"[CreateViewGroupInput!]!"]}],"createMessageSuppression": [- 329,+ 330,{"input": [- 163,+ 164,"CreateMessageSuppressionInput!"]}],"createNavigationMenuItem": [- 347,+ 348,{"input": [- 164,+ 165,"CreateNavigationMenuItemInput!"]}],"createNewWorkspaceLogoUpload": [- 257,+ 258,{"filename": [1,@@ -6455,10 +6460,10 @@ export default {}],"createOIDCIdentityProvider": [- 458,+ 459,{"input": [- 456,+ 457,"SetupOIDCSsoInput!"]}@@ -6471,14 +6476,14 @@ export default {"String!"],"objectMetadataId": [- 494,+ 495,"UUID!"],"properties": [- 290+ 291],"recordId": [- 494,+ 495,"UUID!"]}@@ -6487,85 +6492,85 @@ export default {3,{"input": [- 145,+ 146,"CreateAgentInput!"]}],"createOneField": [- 243,+ 244,{"input": [- 166,+ 167,"CreateOneFieldMetadataInput!"]}],"createOneIndex": [- 279,+ 280,{"input": [- 167,+ 168,"CreateOneIndexInput!"]}],"createOneLogicFunction": [- 302,+ 303,{"input": [- 162,+ 163,"CreateLogicFunctionFromSourceInput!"]}],"createOneObject": [- 350,+ 351,{"input": [- 168,+ 169,"CreateOneObjectInput!"]}],"createOneRole": [- 421,+ 422,{"createRoleInput": [- 173,+ 174,"CreateRoleInput!"]}],"createPageLayout": [- 371,+ 372,{"input": [- 169,+ 170,"CreatePageLayoutInput!"]}],"createPageLayoutTab": [- 372,+ 373,{"input": [- 170,+ 171,"CreatePageLayoutTabInput!"]}],"createPageLayoutWidget": [- 375,+ 376,{"input": [- 171,+ 172,"CreatePageLayoutWidgetInput!"]}],"createPublicDomain": [- 392,+ 393,{"applicationId": [1,@@ -6578,19 +6583,19 @@ export default {}],"createSAMLIdentityProvider": [- 458,+ 459,{"input": [- 457,+ 458,"SetupSAMLSsoInput!"]}],"createSkill": [- 461,+ 462,{"input": [- 174,+ 175,"CreateSkillInput!"]}@@ -6607,7 +6612,7 @@ export default {"BillingPlanKey!"],"recurringInterval": [- 467,+ 468,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -6620,109 +6625,109 @@ export default {}],"createUnsubscribeTopic": [- 497,+ 498,{"input": [- 175,+ 176,"CreateUnsubscribeTopicInput!"]}],"createUsageLimit": [- 576,+ 577,{"input": [- 176,+ 177,"CreateUsageLimitInput!"]}],"createValidationRule": [- 596,+ 597,{"input": [- 177,+ 178,"CreateValidationRuleInput!"]}],"createView": [- 601,+ 602,{"input": [- 183,+ 184,"CreateViewInput!"]}],"createViewField": [- 604,+ 605,{"input": [- 179,+ 180,"CreateViewFieldInput!"]}],"createViewFieldGroup": [- 605,+ 606,{"input": [- 178,+ 179,"CreateViewFieldGroupInput!"]}],"createViewFilter": [- 606,+ 607,{"input": [- 181,+ 182,"CreateViewFilterInput!"]}],"createViewFilterGroup": [- 607,+ 608,{"input": [- 180,+ 181,"CreateViewFilterGroupInput!"]}],"createViewGroup": [- 610,+ 611,{"input": [- 182,+ 183,"CreateViewGroupInput!"]}],"createViewSort": [- 613,+ 614,{"input": [- 184,+ 185,"CreateViewSortInput!"]}],"createWebhook": [- 617,+ 618,{"input": [- 185,+ 186,"CreateWebhookInput!"]}],"deactivateSkill": [- 461,+ 462,{"id": [- 494,+ 495,"UUID!"]}@@ -6740,10 +6745,10 @@ export default {}],"deleteAppMessageChannel": [- 318,+ 319,{"id": [- 494,+ 495,"UUID!"]}@@ -6761,7 +6766,7 @@ export default {4,{"input": [- 189,+ 190,"DeleteApprovedAccessDomainInput!"]}@@ -6770,7 +6775,7 @@ export default {137,{"id": [- 494,+ 495,"UUID!"]}@@ -6779,19 +6784,19 @@ export default {141,{"id": [- 494,+ 495,"UUID!"]}],"deleteCurrentWorkspace": [- 624+ 625],"deleteEmailGroupChannel": [- 318,+ 319,{"id": [- 494,+ 495,"UUID!"]}@@ -6806,19 +6811,19 @@ export default {}],"deleteFrontComponent": [- 263,+ 264,{"id": [- 494,+ 495,"UUID!"]}],"deleteManyNavigationMenuItems": [- 347,+ 348,{"ids": [- 494,+ 495,"[UUID!]!"]}@@ -6827,16 +6832,16 @@ export default {4,{"id": [- 494,+ 495,"UUID!"]}],"deleteNavigationMenuItem": [- 347,+ 348,{"id": [- 494,+ 495,"UUID!"]}@@ -6851,37 +6856,37 @@ export default {}],"deleteOneField": [- 243,+ 244,{"input": [- 190,+ 191,"DeleteOneFieldInput!"]}],"deleteOneIndex": [- 279,+ 280,{"input": [- 191,+ 192,"DeleteOneIndexInput!"]}],"deleteOneLogicFunction": [- 302,+ 303,{"input": [- 306,+ 307,"LogicFunctionIdInput!"]}],"deleteOneObject": [- 350,+ 351,{"input": [- 192,+ 193,"DeleteOneObjectInput!"]}@@ -6890,7 +6895,7 @@ export default {1,{"roleId": [- 494,+ 495,"UUID!"]}@@ -6908,34 +6913,34 @@ export default {4,{"messageId": [- 494,+ 495,"UUID!"]}],"deleteSSOIdentityProvider": [- 193,+ 194,{"input": [- 194,+ 195,"DeleteSsoInput!"]}],"deleteSkill": [- 461,+ 462,{"id": [- 494,+ 495,"UUID!"]}],"deleteTwoFactorAuthenticationMethod": [- 195,+ 196,{"twoFactorAuthenticationMethodId": [- 494,+ 495,"UUID!"]}@@ -6953,16 +6958,16 @@ export default {4,{"usageLimitId": [- 494,+ 495,"UUID!"]}],"deleteUser": [- 589+ 590],"deleteUserFromWorkspace": [- 593,+ 594,{"workspaceMemberIdToDelete": [1,@@ -6971,10 +6976,10 @@ export default {}],"deleteValidationRule": [- 596,+ 597,{"id": [- 494,+ 495,"UUID!"]}@@ -6989,28 +6994,28 @@ export default {}],"deleteViewField": [- 604,+ 605,{"input": [- 197,+ 198,"DeleteViewFieldInput!"]}],"deleteViewFieldGroup": [- 605,+ 606,{"input": [- 196,+ 197,"DeleteViewFieldGroupInput!"]}],"deleteViewFilter": [- 606,+ 607,{"input": [- 198,+ 199,"DeleteViewFilterInput!"]}@@ -7025,10 +7030,10 @@ export default {}],"deleteViewGroup": [- 610,+ 611,{"input": [- 199,+ 200,"DeleteViewGroupInput!"]}@@ -7037,16 +7042,16 @@ export default {4,{"input": [- 200,+ 201,"DeleteViewSortInput!"]}],"deleteWebhook": [- 617,+ 618,{"id": [- 494,+ 495,"UUID!"]}@@ -7097,28 +7102,28 @@ export default {}],"destroyViewField": [- 604,+ 605,{"input": [- 203,+ 204,"DestroyViewFieldInput!"]}],"destroyViewFieldGroup": [- 605,+ 606,{"input": [- 202,+ 203,"DestroyViewFieldGroupInput!"]}],"destroyViewFilter": [- 606,+ 607,{"input": [- 204,+ 205,"DestroyViewFilterInput!"]}@@ -7133,10 +7138,10 @@ export default {}],"destroyViewGroup": [- 610,+ 611,{"input": [- 205,+ 206,"DestroyViewGroupInput!"]}@@ -7145,7 +7150,7 @@ export default {4,{"input": [- 206,+ 207,"DestroyViewSortInput!"]}@@ -7154,40 +7159,40 @@ export default {141,{"id": [- 494,+ 495,"UUID!"]}],"duplicateDashboard": [- 210,+ 211,{"id": [- 494,+ 495,"UUID!"]}],"duplicateMessageList": [- 211,+ 212,{"id": [- 494,+ 495,"UUID!"]}],"editSSOIdentityProvider": [- 212,+ 213,{"input": [- 213,+ 214,"EditSsoInput!"]}],"emailPasswordResetLink": [- 216,+ 217,{"captchaToken": [1@@ -7197,7 +7202,7 @@ export default {"String!"],"workspaceId": [- 494+ 495]}],@@ -7205,31 +7210,31 @@ export default {84],"enqueueJob": [- 225,+ 226,{"input": [- 223,+ 224,"EnqueueJobInput!"]}],"enqueueJobs": [- 227,+ 228,{"input": [- 226,+ 227,"EnqueueJobsInput!"]}],"enrichWorkspaceCompany": [- 628+ 629],"executeOneLogicFunction": [- 304,+ 305,{"input": [- 240,+ 241,"ExecuteOneLogicFunctionInput!"]}@@ -7238,7 +7243,7 @@ export default {31,{"apiKeyId": [- 494,+ 495,"UUID!"],"expiresAt": [@@ -7251,7 +7256,7 @@ export default {60,{"applicationId": [- 494,+ 495,"UUID!"]}@@ -7260,16 +7265,16 @@ export default {66],"generateTransientToken": [- 477+ 478],"generateTwoFactorAuthenticationRecoveryCode": [- 491,+ 492,{"otp": [1],"userId": [- 494,+ 495,"UUID!"]}@@ -7317,7 +7322,7 @@ export default {}],"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [- 492,+ 493,{"captchaToken": [1@@ -7337,16 +7342,16 @@ export default {}],"getAuthorizationUrlForSSO": [- 268,+ 269,{"input": [- 269,+ 270,"GetAuthorizationUrlForSSOInput!"]}],"getLoginTokenFromCredentials": [- 309,+ 310,{"captchaToken": [1@@ -7372,41 +7377,41 @@ export default {}],"goBackToPreviousOnboardingStep": [- 367+ 368],"grantApplicationCapabilities": [39,{"input": [- 270,+ 271,"GrantApplicationCapabilitiesInput!"]}],"impersonate": [- 278,+ 279,{"userId": [- 494,+ 495,"UUID!"],"workspaceId": [- 494,+ 495,"UUID!"]}],"ingestAppMessages": [- 285,+ 286,{"input": [- 284,+ 285,"IngestAppMessagesInput!"]}],"initiateOTPProvisioning": [- 287,+ 288,{"loginToken": [1,@@ -7419,7 +7424,7 @@ export default {}],"initiateOTPProvisioningForAuthenticatedUser": [- 287+ 288],"installApplication": [37,@@ -7449,7 +7454,7 @@ export default {4],"releaseEnterpriseServerBinding": [- 228+ 229],"removeAgentChatMessageReaction": [16,@@ -7459,7 +7464,7 @@ export default {"String!"],"messageId": [- 494,+ 495,"UUID!"]}@@ -7468,20 +7473,20 @@ export default {4,{"input": [- 416,+ 417,"RemoveQueryFromEventStreamInput!"]}],"removeRecordShare": [- 408,+ 409,{"principal": [- 405,+ 406,"RecordSharePrincipalInput!"],"target": [- 413,+ 414,"RecordTargetInput!"]}@@ -7490,7 +7495,7 @@ export default {4,{"agentId": [- 494,+ 495,"UUID!"]}@@ -7517,13 +7522,13 @@ export default {4,{"input": [- 417,+ 418,"ReportAppConnectionAuthFailureInput!"]}],"resendEmailVerificationToken": [- 418,+ 419,{"email": [1,@@ -7536,7 +7541,7 @@ export default {}],"resendWorkspaceInvitation": [- 448,+ 449,{"appTokenId": [1,@@ -7548,13 +7553,13 @@ export default {137,{"id": [- 494,+ 495,"UUID!"]}],"resetPageLayoutTabToDefault": [- 372,+ 373,{"id": [1,@@ -7563,7 +7568,7 @@ export default {}],"resetPageLayoutToDefault": [- 371,+ 372,{"id": [1,@@ -7572,7 +7577,7 @@ export default {}],"resetPageLayoutWidgetToDefault": [- 375,+ 376,{"id": [1,@@ -7581,22 +7586,22 @@ export default {}],"resetTimelineActivityType": [- 472,+ 473,{"id": [- 494,+ 495,"UUID!"]}],"retryChatMessage": [- 441,+ 442,{"modelId": [1],"threadId": [- 494,+ 495,"UUID!"]}@@ -7608,7 +7613,7 @@ export default {29,{"input": [- 419,+ 420,"RevokeApiKeyInput!"]}@@ -7617,7 +7622,7 @@ export default {4,{"applicationAuthorizationId": [- 494,+ 495,"UUID!"]}@@ -7626,7 +7631,7 @@ export default {4,{"userId": [- 494,+ 495,"UUID!"]}@@ -7635,13 +7640,13 @@ export default {4,{"userSessionId": [- 494,+ 495,"UUID!"]}],"rotateApplicationRegistrationClientSecret": [- 423,+ 424,{"id": [1,@@ -7650,10 +7655,10 @@ export default {}],"runAgent": [- 434,+ 435,{"input": [- 430,+ 431,"RunAgentInput!"]}@@ -7662,16 +7667,16 @@ export default {53,{"applicationId": [- 494,+ 495,"UUID!"]}],"saveImapSmtpCaldavAccount": [- 275,+ 276,{"connectionParameters": [- 214,+ 215,"EmailAccountConnectionParameters!"],"handle": [@@ -7679,26 +7684,26 @@ export default {"String!"],"id": [- 494+ 495]}],"sendChatMessage": [- 441,+ 442,{"browsingContext": [- 290+ 291],"fileAttachments": [- 255,+ 256,"[FileAttachmentInput!]"],"mentionedWorkspaceMemberIds": [- 494,+ 495,"[UUID!]"],"messageId": [- 494,+ 495,"UUID!"],"modelId": [@@ -7712,55 +7717,55 @@ export default {"String!"],"threadId": [- 494,+ 495,"UUID!"]}],"sendEmail": [- 444,+ 445,{"input": [- 443,+ 444,"SendEmailInput!"]}],"sendInboxMessage": [- 447,+ 448,{"input": [- 446,+ 447,"SendInboxMessageInput!"]}],"sendInvitations": [- 448,+ 449,{"emails": [1,"[String!]!"],"roleId": [- 494+ 495]}],"sendMessageCampaign": [- 450,+ 451,{"input": [- 449,+ 450,"SendMessageCampaignInput!"]}],"sendMessageCampaignTest": [- 445,+ 446,{"input": [- 451,+ 452,"SendMessageCampaignTestInput!"]}@@ -7769,13 +7774,13 @@ export default {33,{"input": [- 453,+ 454,"SetAppKeyValueInput!"]}],"setEnterpriseKey": [- 228,+ 229,{"enterpriseKey": [1,@@ -7784,31 +7789,31 @@ export default {}],"setRecordGeneralAccess": [- 408,+ 409,{"accessLevel": [- 404,+ 405,"RecordShareAccessLevel!"],"target": [- 413,+ 414,"RecordTargetInput!"]}],"setRecordShare": [- 408,+ 409,{"accessLevel": [- 404,+ 405,"RecordShareAccessLevel!"],"principal": [- 405,+ 406,"RecordSharePrincipalInput!"],"target": [- 413,+ 414,"RecordTargetInput!"]}@@ -7875,15 +7880,15 @@ export default {}],"signUpInNewWorkspace": [- 459,+ 460,{"input": [- 460+ 461]}],"signUpInWorkspace": [- 459,+ 460,{"captchaToken": [1@@ -7903,7 +7908,7 @@ export default {1],"workspaceId": [- 494+ 495],"workspaceInviteHash": [1@@ -7914,7 +7919,7 @@ export default {}],"skipSyncEmailOnboardingStep": [- 368,+ 369,{"isAutoSkipped": [4,@@ -7926,19 +7931,19 @@ export default {123,{"connectedAccountId": [- 494,+ 495,"UUID!"]}],"startWorkspaceSetupChat": [- 463,+ 464,{"companyContext": [- 290+ 291],"personContext": [- 290+ 291]}],@@ -7946,13 +7951,13 @@ export default {4,{"threadId": [- 494,+ 495,"UUID!"]}],"stopImpersonation": [- 464+ 465],"switchBillingPlan": [107,@@ -7966,7 +7971,7 @@ export default {107],"syncApplication": [- 638,+ 639,{"dryRun": [4@@ -7975,7 +7980,7 @@ export default {4],"manifest": [- 290,+ 291,"JSON!"]}@@ -7993,7 +7998,7 @@ export default {1],"properties": [- 290+ 291],"type": [27,@@ -8015,55 +8020,55 @@ export default {}],"triggerAddPeopleToMessageListJob": [- 479,+ 480,{"input": [- 478,+ 479,"TriggerAddPeopleToMessageListJobInput!"]}],"triggerInstallApplication": [- 483,+ 484,{"input": [- 480,+ 481,"TriggerInstallApplicationInput!"]}],"triggerInstallApplicationJob": [- 482,+ 483,{"input": [- 481,+ 482,"TriggerInstallApplicationJobInput!"]}],"triggerUninstallApplication": [- 487,+ 488,{"input": [- 484,+ 485,"TriggerUninstallApplicationInput!"]}],"triggerUninstallApplicationJob": [- 486,+ 487,{"input": [- 485,+ 486,"TriggerUninstallApplicationJobInput!"]}],"triggerUpgradeApplication": [- 489,+ 490,{"input": [- 488,+ 489,"TriggerUpgradeApplicationInput!"]}@@ -8085,10 +8090,10 @@ export default {"AgentChatInboxAction!"],"snoozedUntil": [- 188+ 189],"threadIds": [- 494,+ 495,"[UUID!]!"]}@@ -8097,16 +8102,16 @@ export default {29,{"input": [- 500,+ 501,"UpdateApiKeyInput!"]}],"updateAppMessageChannel": [- 318,+ 319,{"input": [- 501,+ 502,"UpdateAppMessageChannelInput!"]}@@ -8115,11 +8120,11 @@ export default {37,{"id": [- 494,+ 495,"UUID!"],"input": [- 502,+ 503,"UpdateApplicationInput!"]}@@ -8128,7 +8133,7 @@ export default {55,{"input": [- 503,+ 504,"UpdateApplicationRegistrationInput!"]}@@ -8137,7 +8142,7 @@ export default {59,{"input": [- 505,+ 506,"UpdateApplicationRegistrationVariableInput!"]}@@ -8146,7 +8151,7 @@ export default {110,{"input": [- 507,+ 508,"UpdateCalendarChannelInput!"]}@@ -8155,88 +8160,88 @@ export default {137,{"input": [- 509,+ 510,"UpdateCommandMenuItemInput!"]}],"updateEmailGroupChannel": [- 318,+ 319,{"input": [- 510,+ 511,"UpdateEmailGroupChannelInput!"]}],"updateFrontComponent": [- 263,+ 264,{"input": [- 512,+ 513,"UpdateFrontComponentInput!"]}],"updateLabPublicFeatureFlag": [- 241,+ 242,{"input": [- 514,+ 515,"UpdateLabPublicFeatureFlagInput!"]}],"updateManyNavigationMenuItems": [- 347,+ 348,{"inputs": [- 525,+ 526,"[UpdateOneNavigationMenuItemInput!]!"]}],"updateManyObjects": [- 350,+ 351,{"inputs": [- 526,+ 527,"[UpdateOneObjectInput!]!"]}],"updateManyViewGroups": [- 610,+ 611,{"inputs": [- 548,+ 549,"[UpdateViewGroupInput!]!"]}],"updateMessageChannel": [- 318,+ 319,{"input": [- 517,+ 518,"UpdateMessageChannelInput!"]}],"updateMessageFolder": [- 325,+ 326,{"input": [- 519,+ 520,"UpdateMessageFolderInput!"]}],"updateMessageFolders": [- 325,+ 326,{"input": [- 521,+ 522,"UpdateMessageFoldersInput!"]}@@ -8259,10 +8264,10 @@ export default {}],"updateNavigationMenuItem": [- 347,+ 348,{"input": [- 525,+ 526,"UpdateOneNavigationMenuItemInput!"]}@@ -8271,7 +8276,7 @@ export default {3,{"input": [- 499,+ 500,"UpdateAgentInput!"]}@@ -8280,7 +8285,7 @@ export default {4,{"applicationId": [- 494+ 495],"key": [1,@@ -8293,10 +8298,10 @@ export default {}],"updateOneField": [- 243,+ 244,{"input": [- 524,+ 525,"UpdateOneFieldMetadataInput!"]}@@ -8305,83 +8310,83 @@ export default {4,{"input": [- 515,+ 516,"UpdateLogicFunctionFromSourceInput!"]}],"updateOneObject": [- 350,+ 351,{"input": [- 526,+ 527,"UpdateOneObjectInput!"]}],"updateOneRole": [- 421,+ 422,{"updateRoleInput": [- 533,+ 534,"UpdateRoleInput!"]}],"updatePageLayout": [- 371,+ 372,{"id": [1,"String!"],"input": [- 527,+ 528,"UpdatePageLayoutInput!"]}],"updatePageLayoutTab": [- 372,+ 373,{"id": [1,"String!"],"input": [- 528,+ 529,"UpdatePageLayoutTabInput!"]}],"updatePageLayoutWidget": [- 375,+ 376,{"id": [1,"String!"],"input": [- 530,+ 531,"UpdatePageLayoutWidgetInput!"]}],"updatePageLayoutWithTabsAndWidgets": [- 371,+ 372,{"id": [1,"String!"],"input": [- 532,+ 533,"UpdatePageLayoutWithTabsInput!"]}],"updatePasswordViaResetToken": [- 288,+ 289,{"newPassword": [1,@@ -8394,37 +8399,37 @@ export default {}],"updateSkill": [- 461,+ 462,{"input": [- 535,+ 536,"UpdateSkillInput!"]}],"updateTimelineActivityType": [- 472,+ 473,{"input": [- 536,+ 537,"UpdateTimelineActivityTypeInput!"]}],"updateUnsubscribeTopic": [- 497,+ 498,{"input": [- 537,+ 538,"UpdateUnsubscribeTopicInput!"]}],"updateUsageLimit": [- 576,+ 577,{"input": [- 538,+ 539,"UpdateUsageLimitInput!"]}@@ -8433,7 +8438,7 @@ export default {83,{"userCreditsFallback": [- 591,+ 592,"UserCreditsFallback!"]}@@ -8451,121 +8456,121 @@ export default {}],"updateValidationRule": [- 596,+ 597,{"input": [- 539,+ 540,"UpdateValidationRuleInput!"]}],"updateView": [- 601,+ 602,{"id": [1,"String!"],"input": [- 550,+ 551,"UpdateViewInput!"]}],"updateViewField": [- 604,+ 605,{"input": [- 543,+ 544,"UpdateViewFieldInput!"]}],"updateViewFieldGroup": [- 605,+ 606,{"input": [- 541,+ 542,"UpdateViewFieldGroupInput!"]}],"updateViewFilter": [- 606,+ 607,{"input": [- 546,+ 547,"UpdateViewFilterInput!"]}],"updateViewFilterGroup": [- 607,+ 608,{"id": [1,"String!"],"input": [- 545,+ 546,"UpdateViewFilterGroupInput!"]}],"updateViewGroup": [- 610,+ 611,{"input": [- 548,+ 549,"UpdateViewGroupInput!"]}],"updateViewSort": [- 613,+ 614,{"input": [- 551,+ 552,"UpdateViewSortInput!"]}],"updateWebhook": [- 617,+ 618,{"input": [- 553,+ 554,"UpdateWebhookInput!"]}],"updateWorkspace": [- 624,+ 625,{"data": [- 556,+ 557,"UpdateWorkspaceInput!"]}],"updateWorkspaceAllowedIframeOrigins": [- 624,+ 625,{"data": [- 555,+ 556,"UpdateWorkspaceAllowedIframeOriginsInput!"]}],"updateWorkspaceMemberRole": [- 633,+ 634,{"roleId": [- 494,+ 495,"UUID!"],"workspaceMemberId": [- 494,+ 495,"UUID!"]}@@ -8574,7 +8579,7 @@ export default {4,{"input": [- 557,+ 558,"UpdateWorkspaceMemberSettingsInput!"]}@@ -8596,7 +8601,7 @@ export default {55,{"file": [- 558,+ 559,"Upload!"],"universalIdentifier": [@@ -8605,18 +8610,18 @@ export default {}],"uploadApplicationFile": [- 254,+ 255,{"applicationUniversalIdentifier": [1,"String!"],"file": [- 558,+ 559,"Upload!"],"fileFolder": [- 256,+ 257,"FileFolder!"],"filePath": [@@ -8626,23 +8631,23 @@ export default {}],"uploadFilesFieldFileByUniversalIdentifier": [- 258,+ 259,{"fieldMetadataUniversalIdentifier": [1,"String!"],"file": [- 558,+ 559,"Upload!"]}],"uploadNewWorkspaceLogo": [- 258,+ 259,{"file": [- 558,+ 559,"Upload!"],"workspaceId": [@@ -8652,73 +8657,73 @@ export default {}],"uploadWorkspaceLogo": [- 258,+ 259,{"file": [- 558,+ 559,"Upload!"]}],"uploadWorkspaceMemberProfilePicture": [- 258,+ 259,{"file": [- 558,+ 559,"Upload!"]}],"upsertFieldPermissions": [- 250,+ 251,{"upsertFieldPermissionsInput": [- 559,+ 560,"UpsertFieldPermissionsInput!"]}],"upsertFieldsWidget": [- 601,+ 602,{"input": [- 562,+ 563,"UpsertFieldsWidgetInput!"]}],"upsertObjectPermissions": [- 358,+ 359,{"upsertObjectPermissionsInput": [- 563,+ 564,"UpsertObjectPermissionsInput!"]}],"upsertPermissionFlags": [- 422,+ 423,{"upsertPermissionFlagsInput": [- 564,+ 565,"UpsertPermissionFlagsInput!"]}],"upsertRowLevelPermissionPredicates": [- 566,+ 567,{"input": [- 565,+ 566,"UpsertRowLevelPermissionPredicatesInput!"]}],"upsertViewWidget": [- 601,+ 602,{"input": [- 567,+ 568,"UpsertViewWidgetInput!"]}@@ -8727,13 +8732,13 @@ export default {63,{"input": [- 594,+ 595,"ValidateApprovedAccessDomainInput!"]}],"verifyEmailAndGetLoginToken": [- 598,+ 599,{"captchaToken": [1@@ -8769,7 +8774,7 @@ export default {}],"verifyEmailingDomain": [- 218,+ 219,{"id": [1,@@ -8778,7 +8783,7 @@ export default {}],"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [- 599,+ 600,{"otp": [1,@@ -8803,22 +8808,22 @@ export default {},"NavigationMenuItem": {"applicationId": [- 494+ 495],"color": [1],"createdAt": [- 188+ 189],"folderId": [- 494+ 495],"icon": [1],"id": [- 494+ 495],"link": [1@@ -8827,31 +8832,31 @@ export default {1],"pageLayoutId": [- 494+ 495],"position": [11],"targetObjectMetadataId": [- 494+ 495],"targetRecordId": [- 494+ 495],"targetRecordIdentifier": [- 401+ 402],"type": [- 348+ 349],"updatedAt": [- 188+ 189],"userWorkspaceId": [- 494+ 495],"viewId": [- 494+ 495],"__typename": [1@@ -8860,7 +8865,7 @@ export default {"NavigationMenuItemType": {},"NotesConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -8868,13 +8873,13 @@ export default {},"Object": {"applicationId": [- 494+ 495],"color": [1],"createdAt": [- 188+ 189],"description": [1@@ -8883,42 +8888,42 @@ export default {1],"fields": [- 353,+ 354,{"filter": [- 248,+ 249,"FieldFilter!"],"paging": [- 186,+ 187,"CursorPaging!"]}],"fieldsList": [- 243+ 244],"icon": [1],"id": [- 494+ 495],"imageIdentifierFieldMetadataId": [- 494+ 495],"indexMetadataList": [- 279+ 280],"indexMetadatas": [- 355,+ 356,{"filter": [- 282,+ 283,"IndexFilter!"],"paging": [- 186,+ 187,"CursorPaging!"]}@@ -8948,7 +8953,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 494+ 495],"labelPlural": [1@@ -8963,19 +8968,19 @@ export default {1],"openRecordIn": [- 357+ 358],"readability": [- 335+ 336],"readabilityParentFieldUniversalIdentifiers": [- 494+ 495],"searchFieldMetadataList": [- 440+ 441],"sharingReach": [- 365+ 366],"shortcut": [1@@ -8984,10 +8989,10 @@ export default {1],"updatedAt": [- 188+ 189],"writability": [- 340+ 341],"__typename": [1@@ -8995,10 +9000,10 @@ export default {},"ObjectConnection": {"edges": [- 352+ 353],"pageInfo": [- 370+ 371],"__typename": [1@@ -9009,7 +9014,7 @@ export default {143],"node": [- 350+ 351],"__typename": [1@@ -9017,10 +9022,10 @@ export default {},"ObjectFieldsConnection": {"edges": [- 247+ 248],"pageInfo": [- 370+ 371],"__typename": [1@@ -9028,10 +9033,10 @@ export default {},"ObjectFilter": {"and": [- 354+ 355],"id": [- 495+ 496],"isActive": [109@@ -9055,10 +9060,10 @@ export default {109],"or": [- 354+ 355],"universalIdentifier": [- 495+ 496],"__typename": [1@@ -9066,10 +9071,10 @@ export default {},"ObjectIndexMetadatasConnection": {"edges": [- 280+ 281],"pageInfo": [- 370+ 371],"__typename": [1@@ -9077,7 +9082,7 @@ export default {},"ObjectMetadataCommandMenuItemPayload": {"objectMetadataItemId": [- 494+ 495],"__typename": [1@@ -9098,16 +9103,16 @@ export default {4],"objectMetadataId": [- 494+ 495],"restrictedFields": [- 290+ 291],"rowLevelPermissionPredicateGroups": [- 425+ 426],"rowLevelPermissionPredicates": [- 424+ 425],"__typename": [1@@ -9127,7 +9132,7 @@ export default {4],"objectMetadataId": [- 494+ 495],"__typename": [1@@ -9146,13 +9151,13 @@ export default {},"ObjectRecordEvent": {"action": [- 187+ 188],"objectNameSingular": [1],"properties": [- 362+ 363],"recordId": [1@@ -9169,13 +9174,13 @@ export default {},"ObjectRecordEventProperties": {"after": [- 290+ 291],"before": [- 290+ 291],"diff": [- 290+ 291],"updatedFields": [1@@ -9186,7 +9191,7 @@ export default {},"ObjectRecordEventWithQueryIds": {"objectRecordEvent": [- 361+ 362],"queryIds": [1@@ -9200,10 +9205,10 @@ export default {"OnboardingStatus": {},"OnboardingStepNavigation": {"onboardingStatus": [- 366+ 367],"previousOnboardingStatus": [- 366+ 367],"__typename": [1@@ -9237,19 +9242,19 @@ export default {},"PageLayout": {"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"defaultTabToFocusOnMobileAndSidePanelId": [- 494+ 495],"deletedAt": [- 188+ 189],"id": [- 494+ 495],"isFirstTabPinned": [4@@ -9261,19 +9266,19 @@ export default {1],"objectMetadataId": [- 494+ 495],"tabs": [- 372+ 373],"type": [- 374+ 375],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"__typename": [1@@ -9281,19 +9286,19 @@ export default {},"PageLayoutTab": {"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"icon": [1],"id": [- 494+ 495],"isActive": [4@@ -9305,10 +9310,10 @@ export default {4],"layoutMode": [- 373+ 374],"pageLayoutId": [- 494+ 495],"position": [11@@ -9317,13 +9322,13 @@ export default {1],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"widgets": [- 375+ 376],"__typename": [1@@ -9333,28 +9338,28 @@ export default {"PageLayoutType": {},"PageLayoutWidget": {"applicationId": [- 494+ 495],"conditionalAvailabilityExpression": [1],"conditionalDisplay": [- 290+ 291],"configuration": [- 618+ 619],"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"gridPosition": [- 272+ 273],"id": [- 494+ 495],"isActive": [4@@ -9366,25 +9371,25 @@ export default {4],"objectMetadataId": [- 494+ 495],"pageLayoutTabId": [- 494+ 495],"position": [- 378+ 379],"title": [1],"type": [- 620+ 621],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"__typename": [1@@ -9392,7 +9397,7 @@ export default {},"PageLayoutWidgetCanvasPosition": {"layoutMode": [- 373+ 374],"__typename": [1@@ -9406,7 +9411,7 @@ export default {8],"layoutMode": [- 373+ 374],"row": [8@@ -9420,13 +9425,13 @@ export default {},"PageLayoutWidgetPosition": {"on_PageLayoutWidgetCanvasPosition": [- 376+ 377],"on_PageLayoutWidgetGridPosition": [- 377+ 378],"on_PageLayoutWidgetVerticalListPosition": [- 380+ 381],"__typename": [1@@ -9435,13 +9440,13 @@ export default {"PageLayoutWidgetVerticalListHeightBehavior": {},"PageLayoutWidgetVerticalListPosition": {"heightBehavior": [- 379+ 380],"index": [8],"layoutMode": [- 373+ 374],"__typename": [1@@ -9457,10 +9462,10 @@ export default {},"PermissionFlag": {"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"description": [1@@ -9469,7 +9474,7 @@ export default {1],"id": [- 494+ 495],"key": [1@@ -9481,10 +9486,10 @@ export default {1],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"__typename": [1@@ -9493,7 +9498,7 @@ export default {"PermissionFlagType": {},"PieChartConfiguration": {"aggregateFieldMetadataId": [- 494+ 495],"aggregateOperation": [20@@ -9502,10 +9507,10 @@ export default {1],"configurationType": [- 619+ 620],"dateGranularity": [- 364+ 365],"description": [1@@ -9517,13 +9522,13 @@ export default {4],"filter": [- 290+ 291],"firstDayOfTheWeek": [8],"groupByFieldMetadataId": [- 494+ 495],"groupBySubFieldName": [1@@ -9538,7 +9543,7 @@ export default {124],"orderBy": [- 271+ 272],"showCenterMetric": [4@@ -9555,10 +9560,10 @@ export default {},"PieChartData": {"data": [- 387+ 388],"formattedToRawLookup": [- 290+ 291],"hasTooManyGroups": [4@@ -9578,10 +9583,10 @@ export default {},"PieChartDataInput": {"configuration": [- 290+ 291],"objectMetadataId": [- 494+ 495],"__typename": [1@@ -9606,7 +9611,7 @@ export default {1],"location": [- 301+ 302],"postcode": [1@@ -9634,7 +9639,7 @@ export default {},"PublicApplicationRegistration": {"id": [- 494+ 495],"logoUrl": [1@@ -9654,7 +9659,7 @@ export default {},"PublicConnectionParametersOutput": {"connectionSecurity": [- 215+ 216],"host": [1@@ -9671,16 +9676,16 @@ export default {},"PublicDomain": {"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"domain": [1],"id": [- 494+ 495],"isValidated": [4@@ -9691,10 +9696,10 @@ export default {},"PublicFeatureFlag": {"key": [- 242+ 243],"metadata": [- 394+ 395],"__typename": [1@@ -9719,13 +9724,13 @@ export default {},"PublicImapSmtpCaldavConnectionParameters": {"CALDAV": [- 391+ 392],"IMAP": [- 391+ 392],"SMTP": [- 391+ 392],"__typename": [1@@ -9742,13 +9747,13 @@ export default {1],"id": [- 494+ 495],"logo": [1],"workspaceUrls": [- 642+ 643],"__typename": [1@@ -9759,7 +9764,7 @@ export default {1],"id": [- 494+ 495],"logo": [1@@ -9776,7 +9781,7 @@ export default {17,{"agentId": [- 494,+ 495,"UUID!"],"limit": [@@ -9792,7 +9797,7 @@ export default {29,{"input": [- 267,+ 268,"GetApiKeyInput!"]}@@ -9813,7 +9818,7 @@ export default {32,{"filter": [- 299+ 300]}],@@ -9830,10 +9835,10 @@ export default {}],"appMessageChannels": [- 318,+ 319,{"filter": [- 300+ 301]}],@@ -9841,7 +9846,7 @@ export default {40,{"applicationId": [- 494,+ 495,"UUID!"]}@@ -9850,7 +9855,7 @@ export default {41,{"applicationId": [- 494,+ 495,"UUID!"]}@@ -9874,10 +9879,10 @@ export default {}],"applicationSdkClientChecksums": [- 439,+ 440,{"applicationId": [- 494,+ 495,"UUID!"]}@@ -9903,10 +9908,10 @@ export default {}],"callRecordingIdForCalendarEvent": [- 494,+ 495,{"calendarEventId": [- 494,+ 495,"UUID!"]}@@ -9915,7 +9920,7 @@ export default {14,{"threadId": [- 494,+ 495,"UUID!"]}@@ -9924,7 +9929,7 @@ export default {126,{"threadId": [- 494,+ 495,"UUID!"]}@@ -9933,7 +9938,7 @@ export default {9,{"id": [- 494,+ 495,"UUID!"]}@@ -9951,7 +9956,7 @@ export default {}],"checkWorkspaceInviteHashIsValid": [- 632,+ 633,{"inviteHash": [1,@@ -9960,7 +9965,7 @@ export default {}],"checkWorkspaceSubdomainAvailability": [- 465,+ 466,{"subdomain": [1,@@ -9972,7 +9977,7 @@ export default {137,{"id": [- 494,+ 495,"UUID!"]}@@ -9981,16 +9986,16 @@ export default {137],"currentUser": [- 589+ 590],"currentUserApplicationAuthorizations": [38],"currentUserSessions": [- 592+ 593],"currentWorkspace": [- 624+ 625],"enterpriseCheckoutSession": [1,@@ -10009,13 +10014,13 @@ export default {}],"enterpriseSubscriptionStatus": [- 229+ 230],"eventLogs": [- 236,+ 237,{"input": [- 235,+ 236,"EventLogQueryInput!"]}@@ -10024,35 +10029,35 @@ export default {43,{"universalIdentifier": [- 494,+ 495,"UUID!"]}],"field": [- 243,+ 244,{"id": [- 494,+ 495,"UUID!"]}],"fields": [- 245,+ 246,{"filter": [- 248,+ 249,"FieldFilter!"],"paging": [- 186,+ 187,"CursorPaging!"]}],"findApplicationRegistrationByClientId": [- 390,+ 391,{"clientId": [1,@@ -10099,7 +10104,7 @@ export default {}],"findInstallApplicationJobStatus": [- 293,+ 294,{"jobId": [1@@ -10120,10 +10125,10 @@ export default {37],"findManyLogicFunctions": [- 302+ 303],"findManyMarketplaceApps": [- 310,+ 311,{"universalIdentifiers": [1,@@ -10132,10 +10137,10 @@ export default {}],"findManyPublicDomains": [- 392+ 393],"findMarketplaceAppDetail": [- 311,+ 312,{"universalIdentifier": [1,@@ -10156,10 +10161,10 @@ export default {37,{"id": [- 494+ 495],"universalIdentifier": [- 494+ 495]}],@@ -10173,16 +10178,16 @@ export default {}],"findOneLogicFunction": [- 302,+ 303,{"input": [- 306,+ 307,"LogicFunctionIdInput!"]}],"findUninstallApplicationJobStatus": [- 293,+ 294,{"jobId": [1@@ -10194,7 +10199,7 @@ export default {}],"findUpgradeApplicationJobStatus": [- 293,+ 294,{"jobId": [1@@ -10206,10 +10211,10 @@ export default {}],"findWorkspaceAiStats": [- 626+ 627],"findWorkspaceFromInviteHash": [- 624,+ 625,{"inviteHash": [1,@@ -10218,22 +10223,22 @@ export default {}],"findWorkspaceInvitations": [- 631+ 632],"frontComponent": [- 263,+ 264,{"id": [- 494,+ 495,"UUID!"]}],"frontComponents": [- 263+ 264],"getAddressDetails": [- 388,+ 389,{"placeId": [1,@@ -10249,7 +10254,7 @@ export default {23],"getApiKeyRoles": [- 421+ 422],"getApprovedAccessDomains": [63@@ -10274,10 +10279,10 @@ export default {}],"getAvailablePackages": [- 290,+ 291,{"input": [- 306,+ 307,"LogicFunctionIdInput!"]}@@ -10286,19 +10291,19 @@ export default {142,{"id": [- 494,+ 495,"UUID!"]}],"getEmailingDomains": [- 218+ 219],"getInviteSuggestions": [- 289+ 290],"getJobs": [- 293,+ 294,{"jobIds": [1,@@ -10310,13 +10315,13 @@ export default {1,{"input": [- 306,+ 307,"LogicFunctionIdInput!"]}],"getPageLayout": [- 371,+ 372,{"id": [1,@@ -10325,7 +10330,7 @@ export default {}],"getPageLayoutTab": [- 372,+ 373,{"id": [1,@@ -10334,7 +10339,7 @@ export default {}],"getPageLayoutTabs": [- 372,+ 373,{"pageLayoutId": [1,@@ -10343,7 +10348,7 @@ export default {}],"getPageLayoutWidget": [- 375,+ 376,{"id": [1,@@ -10352,7 +10357,7 @@ export default {}],"getPageLayoutWidgets": [- 375,+ 376,{"pageLayoutTabId": [1,@@ -10361,21 +10366,21 @@ export default {}],"getPageLayouts": [- 371,+ 372,{"objectMetadataId": [1],"pageLayoutType": [- 374+ 375]}],"getPermissionFlags": [- 382+ 383],"getPublicWorkspaceDataByDomain": [- 396,+ 397,{"origin": [1@@ -10383,10 +10388,10 @@ export default {}],"getPublicWorkspaceDataById": [- 397,+ 398,{"id": [- 494,+ 495,"UUID!"]}@@ -10395,25 +10400,25 @@ export default {99],"getRole": [- 421,+ 422,{"id": [- 494,+ 495,"UUID!"]}],"getRoles": [- 421+ 422],"getSSOIdentityProviders": [- 260+ 261],"getToolIndex": [- 476+ 477],"getToolInputSchema": [- 290,+ 291,{"toolName": [1,@@ -10422,15 +10427,15 @@ export default {}],"getUsageAnalytics": [- 573,+ 574,{"input": [- 574+ 575]}],"getView": [- 601,+ 602,{"id": [1,@@ -10439,7 +10444,7 @@ export default {}],"getViewField": [- 604,+ 605,{"id": [1,@@ -10448,7 +10453,7 @@ export default {}],"getViewFieldGroup": [- 605,+ 606,{"id": [1,@@ -10457,7 +10462,7 @@ export default {}],"getViewFieldGroups": [- 605,+ 606,{"viewId": [1,@@ -10466,7 +10471,7 @@ export default {}],"getViewFields": [- 604,+ 605,{"viewId": [1,@@ -10475,7 +10480,7 @@ export default {}],"getViewFilter": [- 606,+ 607,{"id": [1,@@ -10484,7 +10489,7 @@ export default {}],"getViewFilterGroup": [- 607,+ 608,{"id": [1,@@ -10493,7 +10498,7 @@ export default {}],"getViewFilterGroups": [- 607,+ 608,{"viewId": [1@@ -10501,7 +10506,7 @@ export default {}],"getViewFilters": [- 606,+ 607,{"viewId": [1@@ -10509,7 +10514,7 @@ export default {}],"getViewGroup": [- 610,+ 611,{"id": [1,@@ -10518,7 +10523,7 @@ export default {}],"getViewGroups": [- 610,+ 611,{"viewId": [1@@ -10526,7 +10531,7 @@ export default {}],"getViewSort": [- 613,+ 614,{"id": [1,@@ -10535,7 +10540,7 @@ export default {}],"getViewSorts": [- 613,+ 614,{"viewId": [1@@ -10543,19 +10548,19 @@ export default {}],"getViews": [- 601,+ 602,{"objectMetadataId": [1],"viewTypes": [- 615,+ 616,"[ViewType!]"]}],"getWorkspaceCreationDefaults": [- 629+ 630],"githubClaimAuthorizationUrl": [1,@@ -10576,10 +10581,10 @@ export default {}],"lineChartData": [- 295,+ 296,{"input": [- 296,+ 297,"LineChartDataInput!"]}@@ -10588,31 +10593,31 @@ export default {90],"messageSuppressions": [- 330,+ 331,{"input": [- 261,+ 262,"FindMessageSuppressionsInput!"]}],"metadataTranslations": [- 336,+ 337,{"input": [- 339,+ 340,"MetadataTranslationsInput!"]}],"minimalMetadata": [- 341+ 342],"mostlyEmptyFieldMetadataIds": [- 494,+ 495,{"objectMetadataId": [- 494,+ 495,"UUID!"]}@@ -10621,7 +10626,7 @@ export default {110,{"connectedAccountId": [- 494+ 495]}],@@ -10629,66 +10634,66 @@ export default {141],"myMessageChannels": [- 318,+ 319,{"connectedAccountId": [- 494+ 495]}],"myMessageFolders": [- 325,+ 326,{"messageChannelId": [- 494+ 495]}],"myUserApplicationVariables": [- 634+ 635],"navigationMenuItem": [- 347,+ 348,{"id": [- 494,+ 495,"UUID!"]}],"navigationMenuItems": [- 347+ 348],"object": [- 350,+ 351,{"id": [- 494,+ 495,"UUID!"]}],"objectRecordCounts": [- 360+ 361],"objects": [- 351,+ 352,{"filter": [- 354,+ 355,"ObjectFilter!"],"paging": [- 186,+ 187,"CursorPaging!"]}],"pieChartData": [- 385,+ 386,{"input": [- 386,+ 387,"PieChartDataInput!"]}@@ -10697,13 +10702,13 @@ export default {118,{"input": [- 389,+ 390,"PreviewMessageCampaignAudienceInput!"]}],"publicMarketplaceAppDetail": [- 311,+ 312,{"universalIdentifier": [1,@@ -10712,7 +10717,7 @@ export default {}],"publicMarketplaceApps": [- 310,+ 311,{"isVetted": [4,@@ -10721,70 +10726,70 @@ export default {}],"recordPermissions": [- 403,+ 404,{"targets": [- 413,+ 414,"[RecordTargetInput!]!"]}],"recordSharing": [- 408,+ 409,{"target": [- 413,+ 414,"RecordTargetInput!"]}],"skill": [- 461,+ 462,{"id": [- 494,+ 495,"UUID!"]}],"skills": [- 461+ 462],"timelineActivityTypes": [- 472+ 473],"twoFactorAuthenticationRecoveryStatus": [- 493,+ 494,{"userId": [- 494,+ 495,"UUID!"]}],"unsubscribeTopics": [- 497+ 498],"usageLimits": [- 576+ 577],"usageQuotaDefinitions": [- 580+ 581],"usageQuotaScopeConsumption": [- 582,+ 583,{"input": [- 583,+ 584,"UsageQuotaScopeInput!"]}],"usageQuotasWithConsumption": [- 584+ 585],"validatePasswordResetToken": [- 595,+ 596,{"passwordResetToken": [1,@@ -10793,25 +10798,25 @@ export default {}],"validationRules": [- 596,+ 597,{"objectMetadataId": [- 494,+ 495,"UUID!"]}],"webhook": [- 617,+ 618,{"id": [- 494,+ 495,"UUID!"]}],"webhooks": [- 617+ 618],"__typename": [1@@ -10819,7 +10824,7 @@ export default {},"RatioAggregateConfig": {"fieldMetadataId": [- 494+ 495],"optionValue": [1@@ -10839,7 +10844,7 @@ export default {1],"id": [- 494+ 495],"progress": [8@@ -10850,7 +10855,7 @@ export default {},"RecordIdentifier": {"id": [- 494+ 495],"imageIdentifier": [1@@ -10881,13 +10886,13 @@ export default {},"RecordPermissionsResult": {"objectMetadataId": [- 494+ 495],"permissions": [- 402+ 403],"recordId": [- 494+ 495],"__typename": [1@@ -10896,10 +10901,10 @@ export default {"RecordShareAccessLevel": {},"RecordSharePrincipalInput": {"roleId": [- 494+ 495],"workspaceMemberId": [- 494+ 495],"__typename": [1@@ -10912,25 +10917,25 @@ export default {4],"defaultGeneralAccessLevel": [- 404+ 405],"generalAccessLevel": [- 404+ 405],"hasManagedGeneralAccess": [4],"permissions": [- 402+ 403],"roles": [- 411+ 412],"shares": [- 409+ 410],"sharingMode": [- 410+ 411],"__typename": [1@@ -10938,22 +10943,22 @@ export default {},"RecordSharingGrantDTO": {"accessLevel": [- 404+ 405],"id": [10],"principalId": [- 494+ 495],"principalRoleId": [- 494+ 495],"principalType": [- 406+ 407],"rowCause": [- 407+ 408],"__typename": [1@@ -10968,7 +10973,7 @@ export default {4],"id": [- 494+ 495],"label": [1@@ -10979,7 +10984,7 @@ export default {},"RecordTableConfiguration": {"configurationType": [- 619+ 620],"isUIEditable": [4@@ -10996,10 +11001,10 @@ export default {},"RecordTargetInput": {"objectMetadataId": [- 494+ 495],"recordId": [- 494+ 495],"__typename": [1@@ -11007,19 +11012,19 @@ export default {},"Relation": {"sourceFieldMetadata": [- 243+ 244],"sourceObjectMetadata": [- 350+ 351],"targetFieldMetadata": [- 243+ 244],"targetObjectMetadata": [- 350+ 351],"type": [- 415+ 416],"__typename": [1@@ -11058,7 +11063,7 @@ export default {},"RevokeApiKeyInput": {"id": [- 494+ 495],"__typename": [1@@ -11083,7 +11088,7 @@ export default {30],"applicationId": [- 494+ 495],"canAccessAllTools": [4@@ -11116,13 +11121,13 @@ export default {1],"fieldPermissions": [- 250+ 251],"icon": [1],"id": [- 494+ 495],"isEditable": [4@@ -11131,22 +11136,22 @@ export default {1],"objectPermissions": [- 358+ 359],"permissionFlags": [- 422+ 423],"rowLevelPermissionPredicateGroups": [- 425+ 426],"rowLevelPermissionPredicates": [- 424+ 425],"universalIdentifier": [- 494+ 495],"workspaceMembers": [- 633+ 634],"__typename": [1@@ -11157,10 +11162,10 @@ export default {1],"id": [- 494+ 495],"roleId": [- 494+ 495],"__typename": [1@@ -11185,7 +11190,7 @@ export default {1],"operand": [- 429+ 430],"positionInRowLevelPermissionPredicateGroup": [11@@ -11200,7 +11205,7 @@ export default {1],"value": [- 290+ 291],"workspaceMemberFieldMetadataId": [1@@ -11217,7 +11222,7 @@ export default {1],"logicalOperator": [- 427+ 428],"objectMetadataId": [1@@ -11237,16 +11242,16 @@ export default {},"RowLevelPermissionPredicateGroupInput": {"id": [- 494+ 495],"logicalOperator": [- 427+ 428],"objectMetadataId": [- 494+ 495],"parentRowLevelPermissionPredicateGroupId": [- 494+ 495],"positionInRowLevelPermissionPredicateGroup": [11@@ -11258,25 +11263,25 @@ export default {"RowLevelPermissionPredicateGroupLogicalOperator": {},"RowLevelPermissionPredicateInput": {"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"operand": [- 429+ 430],"positionInRowLevelPermissionPredicateGroup": [11],"rowLevelPermissionPredicateGroupId": [- 494+ 495],"subFieldName": [1],"value": [- 290+ 291],"workspaceMemberFieldMetadataId": [1@@ -11297,22 +11302,22 @@ export default {1],"input": [- 432+ 433],"messages": [- 432+ 433],"prompt": [1],"responseFormat": [- 290+ 291],"runAsWorkspaceMemberId": [- 494+ 495],"thread": [- 435+ 436],"__typename": [1@@ -11320,7 +11325,7 @@ export default {},"RunAgentMessageAttachmentInput": {"fileId": [- 494+ 495],"filename": [1@@ -11331,13 +11336,13 @@ export default {},"RunAgentMessageInput": {"attachments": [- 431+ 432],"content": [1],"role": [- 433+ 434],"__typename": [1@@ -11349,7 +11354,7 @@ export default {1],"result": [- 290+ 291],"status": [1@@ -11358,7 +11363,7 @@ export default {4],"threadId": [- 494+ 495],"__typename": [1@@ -11377,7 +11382,7 @@ export default {},"SSOConnection": {"id": [- 494+ 495],"issuer": [1@@ -11386,10 +11391,10 @@ export default {1],"status": [- 438+ 439],"type": [- 273+ 274],"__typename": [1@@ -11397,7 +11402,7 @@ export default {},"SSOIdentityProvider": {"id": [- 494+ 495],"issuer": [1@@ -11406,10 +11411,10 @@ export default {1],"status": [- 438+ 439],"type": [- 273+ 274],"__typename": [1@@ -11429,22 +11434,22 @@ export default {},"SearchField": {"createdAt": [- 188+ 189],"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"position": [11],"tsVectorFieldMetadataId": [- 494+ 495],"updatedAt": [- 188+ 189],"__typename": [1@@ -11452,7 +11457,7 @@ export default {},"SendChatMessageResult": {"mentionedParticipantWorkspaceMemberIds": [- 494+ 495],"messageId": [1@@ -11495,7 +11500,7 @@ export default {1],"files": [- 442+ 443],"fromHandle": [1@@ -11549,10 +11554,10 @@ export default {1],"toolCall": [- 290+ 291],"workspaceMemberIds": [- 494+ 495],"__typename": [1@@ -11560,7 +11565,7 @@ export default {},"SendInboxMessageResult": {"threadId": [- 494+ 495],"__typename": [1@@ -11571,7 +11576,7 @@ export default {1],"result": [- 631+ 632],"success": [4@@ -11585,7 +11590,7 @@ export default {1],"scheduledAt": [- 188+ 189],"__typename": [1@@ -11650,7 +11655,7 @@ export default {34],"value": [- 290+ 291],"__typename": [1@@ -11658,34 +11663,34 @@ export default {},"SettingsMenuItem": {"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"frontComponentId": [- 494+ 495],"icon": [1],"id": [- 494+ 495],"position": [11],"scope": [- 455+ 456],"title": [1],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"__typename": [1@@ -11717,7 +11722,7 @@ export default {1],"id": [- 494+ 495],"issuer": [1@@ -11734,7 +11739,7 @@ export default {},"SetupSso": {"id": [- 494+ 495],"issuer": [1@@ -11743,10 +11748,10 @@ export default {1],"status": [- 438+ 439],"type": [- 273+ 274],"__typename": [1@@ -11757,7 +11762,7 @@ export default {66],"workspace": [- 643+ 644],"__typename": [1@@ -11779,13 +11784,13 @@ export default {},"Skill": {"applicationId": [- 494+ 495],"content": [1],"createdAt": [- 188+ 189],"description": [1@@ -11794,7 +11799,7 @@ export default {1],"id": [- 494+ 495],"isActive": [4@@ -11812,7 +11817,7 @@ export default {1],"updatedAt": [- 188+ 189],"__typename": [1@@ -11820,10 +11825,10 @@ export default {},"StandaloneRichTextConfiguration": {"body": [- 420+ 421],"configurationType": [- 619+ 620],"__typename": [1@@ -11831,7 +11836,7 @@ export default {},"StartWorkspaceSetupChatResult": {"outcome": [- 641+ 642],"thread": [9@@ -11867,32 +11872,32 @@ export default {},"Subscription": {"eventLogsLive": [- 237,+ 238,{"fieldFilters": [- 231,+ 232,"[EventLogFieldFilterInput!]"],"table": [- 238,+ 239,"EventLogTable!"]}],"exportRecords": [- 400,+ 401,{"input": [- 172,+ 173,"CreateRecordExportInput!"]}],"logicFunctionLogs": [- 307,+ 308,{"input": [- 308,+ 309,"LogicFunctionLogsInput!"]}@@ -11901,13 +11906,13 @@ export default {5,{"threadId": [- 494,+ 495,"UUID!"]}],"onEventSubscription": [- 239,+ 240,{"eventStreamId": [1,@@ -11923,7 +11928,7 @@ export default {"SubscriptionStatus": {},"Support": {"supportDriver": [- 470+ 471],"supportFrontChatId": [1@@ -11935,7 +11940,7 @@ export default {"SupportDriver": {},"TasksConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -11946,22 +11951,22 @@ export default {1],"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"emit": [- 473+ 474],"frontComponentUniversalIdentifier": [- 494+ 495],"icon": [1],"id": [- 494+ 495],"isActive": [4@@ -11973,16 +11978,16 @@ export default {1],"objectUniversalIdentifier": [- 494+ 495],"replacesTimelineActivityTypeUniversalIdentifier": [- 494+ 495],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"__typename": [1@@ -11990,13 +11995,13 @@ export default {},"TimelineActivityTypeEmit": {"objectUniversalIdentifier": [- 494+ 495],"on": [1],"through": [- 474+ 475],"__typename": [1@@ -12004,13 +12009,13 @@ export default {},"TimelineActivityTypeEmitThrough": {"happensAtFieldUniversalIdentifier": [- 494+ 495],"relationFieldUniversalIdentifier": [- 494+ 495],"triggerFieldUniversalIdentifiers": [- 494+ 495],"__typename": [1@@ -12018,7 +12023,7 @@ export default {},"TimelineConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -12038,7 +12043,7 @@ export default {1],"inputSchema": [- 290+ 291],"label": [1@@ -12066,10 +12071,10 @@ export default {},"TriggerAddPeopleToMessageListJobInput": {"messageListId": [- 494+ 495],"personFilter": [- 290+ 291],"__typename": [1@@ -12174,7 +12179,7 @@ export default {1],"twoFactorAuthenticationMethodId": [- 494+ 495],"__typename": [1@@ -12182,7 +12187,7 @@ export default {},"TwoFactorAuthenticationRecoveryCode": {"expiresAt": [- 188+ 189],"recoveryCode": [1@@ -12210,7 +12215,7 @@ export default {4],"pendingRecoveryCodeExpiresAt": [- 188+ 189],"__typename": [1@@ -12219,19 +12224,19 @@ export default {"UUID": {},"UUIDFilterComparison": {"eq": [- 494+ 495],"gt": [- 494+ 495],"gte": [- 494+ 495],"iLike": [- 494+ 495],"in": [- 494+ 495],"is": [4@@ -12240,25 +12245,25 @@ export default {4],"like": [- 494+ 495],"lt": [- 494+ 495],"lte": [- 494+ 495],"neq": [- 494+ 495],"notILike": [- 494+ 495],"notIn": [- 494+ 495],"notLike": [- 494+ 495],"__typename": [1@@ -12267,22 +12272,22 @@ export default {"UnsubscribeHostnameStatus": {},"UnsubscribeTopic": {"createdAt": [- 188+ 189],"description": [1],"id": [- 494+ 495],"name": [1],"updatedAt": [- 188+ 189],"visibility": [- 498+ 499],"__typename": [1@@ -12297,13 +12302,13 @@ export default {1],"id": [- 494+ 495],"label": [1],"modelConfiguration": [- 290+ 291],"modelId": [1@@ -12315,13 +12320,13 @@ export default {1],"responseFormat": [- 290+ 291],"roleId": [- 494+ 495],"triggers": [- 290+ 291],"__typename": [1@@ -12332,7 +12337,7 @@ export default {1],"id": [- 494+ 495],"name": [1@@ -12349,13 +12354,13 @@ export default {1],"id": [- 494+ 495],"isSyncEnabled": [4],"visibility": [- 324+ 325],"__typename": [1@@ -12374,7 +12379,7 @@ export default {1],"update": [- 504+ 505],"__typename": [1@@ -12399,7 +12404,7 @@ export default {1],"update": [- 506+ 507],"__typename": [1@@ -12421,10 +12426,10 @@ export default {},"UpdateCalendarChannelInput": {"id": [- 494+ 495],"update": [- 508+ 509],"__typename": [1@@ -12449,13 +12454,13 @@ export default {},"UpdateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 494+ 495],"availabilityType": [138],"engineComponentKey": [- 222+ 223],"hotKeys": [1@@ -12464,7 +12469,7 @@ export default {1],"id": [- 494+ 495],"isPinned": [4@@ -12473,7 +12478,7 @@ export default {1],"pageLayoutId": [- 494+ 495],"position": [11@@ -12490,7 +12495,7 @@ export default {1],"id": [- 494+ 495],"__typename": [1@@ -12498,7 +12503,7 @@ export default {},"UpdateFieldInput": {"defaultValue": [- 290+ 291],"description": [1@@ -12537,22 +12542,22 @@ export default {1],"morphRelationsUpdatePayload": [- 290+ 291],"name": [1],"objectMetadataId": [- 494+ 495],"options": [- 290+ 291],"settings": [- 290+ 291],"translations": [- 337+ 338],"universalIdentifier": [1@@ -12563,10 +12568,10 @@ export default {},"UpdateFrontComponentInput": {"id": [- 494+ 495],"update": [- 513+ 514],"__typename": [1@@ -12596,10 +12601,10 @@ export default {},"UpdateLogicFunctionFromSourceInput": {"id": [- 494+ 495],"update": [- 516+ 517],"__typename": [1@@ -12607,10 +12612,10 @@ export default {},"UpdateLogicFunctionFromSourceInputUpdates": {"cronTriggerSettings": [- 290+ 291],"databaseEventTriggerSettings": [- 290+ 291],"description": [1@@ -12619,7 +12624,7 @@ export default {1],"httpRouteTriggerSettings": [- 290+ 291],"name": [1@@ -12634,10 +12639,10 @@ export default {11],"toolTriggerSettings": [- 290+ 291],"workflowActionTriggerSettings": [- 290+ 291],"__typename": [1@@ -12645,10 +12650,10 @@ export default {},"UpdateMessageChannelInput": {"id": [- 494+ 495],"update": [- 518+ 519],"__typename": [1@@ -12656,7 +12661,7 @@ export default {},"UpdateMessageChannelInputUpdates": {"contactAutoCreationPolicy": [- 319+ 320],"excludeGroupEmails": [4@@ -12671,10 +12676,10 @@ export default {4],"messageFolderImportPolicy": [- 326+ 327],"visibility": [- 324+ 325],"__typename": [1@@ -12682,10 +12687,10 @@ export default {},"UpdateMessageFolderInput": {"id": [- 494+ 495],"update": [- 520+ 521],"__typename": [1@@ -12701,10 +12706,10 @@ export default {},"UpdateMessageFoldersInput": {"ids": [- 494+ 495],"update": [- 520+ 521],"__typename": [1@@ -12715,7 +12720,7 @@ export default {1],"folderId": [- 494+ 495],"icon": [1@@ -12727,7 +12732,7 @@ export default {1],"pageLayoutId": [- 494+ 495],"position": [11@@ -12747,7 +12752,7 @@ export default {1],"imageIdentifierFieldMetadataId": [- 494+ 495],"isActive": [4@@ -12759,7 +12764,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 494+ 495],"labelPlural": [1@@ -12774,19 +12779,19 @@ export default {1],"openRecordIn": [- 357+ 358],"readability": [- 335+ 336],"sharingReach": [- 365+ 366],"shortcut": [1],"translations": [- 337+ 338],"__typename": [1@@ -12794,10 +12799,10 @@ export default {},"UpdateOneFieldMetadataInput": {"id": [- 494+ 495],"update": [- 511+ 512],"__typename": [1@@ -12805,10 +12810,10 @@ export default {},"UpdateOneNavigationMenuItemInput": {"id": [- 494+ 495],"update": [- 522+ 523],"__typename": [1@@ -12816,10 +12821,10 @@ export default {},"UpdateOneObjectInput": {"id": [- 494+ 495],"update": [- 523+ 524],"__typename": [1@@ -12830,10 +12835,10 @@ export default {1],"objectMetadataId": [- 494+ 495],"type": [- 374+ 375],"__typename": [1@@ -12844,7 +12849,7 @@ export default {1],"layoutMode": [- 373+ 374],"position": [11@@ -12861,10 +12866,10 @@ export default {1],"id": [- 494+ 495],"layoutMode": [- 373+ 374],"position": [11@@ -12873,7 +12878,7 @@ export default {1],"widgets": [- 531+ 532],"__typename": [1@@ -12884,28 +12889,28 @@ export default {1],"conditionalDisplay": [- 290+ 291],"configuration": [- 290+ 291],"isActive": [4],"objectMetadataId": [- 494+ 495],"pageLayoutTabId": [- 494+ 495],"position": [- 290+ 291],"title": [1],"type": [- 620+ 621],"__typename": [1@@ -12916,28 +12921,28 @@ export default {1],"conditionalDisplay": [- 290+ 291],"configuration": [- 290+ 291],"id": [- 494+ 495],"objectMetadataId": [- 494+ 495],"pageLayoutTabId": [- 494+ 495],"position": [- 290+ 291],"title": [1],"type": [- 620+ 621],"__typename": [1@@ -12951,13 +12956,13 @@ export default {1],"objectMetadataId": [- 494+ 495],"tabs": [- 529+ 530],"type": [- 374+ 375],"__typename": [1@@ -12965,10 +12970,10 @@ export default {},"UpdateRoleInput": {"id": [- 494+ 495],"update": [- 534+ 535],"__typename": [1@@ -13026,7 +13031,7 @@ export default {1],"id": [- 494+ 495],"isActive": [4@@ -13046,7 +13051,7 @@ export default {1],"id": [- 494+ 495],"isActive": [4@@ -13055,7 +13060,7 @@ export default {1],"translations": [- 337+ 338],"__typename": [1@@ -13072,7 +13077,7 @@ export default {1],"visibility": [- 498+ 499],"__typename": [1@@ -13080,10 +13085,10 @@ export default {},"UpdateUsageLimitInput": {"id": [- 494+ 495],"payload": [- 176+ 177],"__typename": [1@@ -13091,10 +13096,10 @@ export default {},"UpdateValidationRuleInput": {"id": [- 494+ 495],"update": [- 540+ 541],"__typename": [1@@ -13105,7 +13110,7 @@ export default {1],"errorFieldMetadataId": [- 494+ 495],"expression": [1@@ -13128,10 +13133,10 @@ export default {},"UpdateViewFieldGroupInput": {"id": [- 494+ 495],"update": [- 542+ 543],"__typename": [1@@ -13156,10 +13161,10 @@ export default {},"UpdateViewFieldInput": {"id": [- 494+ 495],"update": [- 544+ 545],"__typename": [1@@ -13179,7 +13184,7 @@ export default {11],"viewFieldGroupId": [- 494+ 495],"__typename": [1@@ -13187,19 +13192,19 @@ export default {},"UpdateViewFilterGroupInput": {"id": [- 494+ 495],"logicalOperator": [- 608+ 609],"parentViewFilterGroupId": [- 494+ 495],"positionInViewFilterGroup": [11],"viewId": [- 494+ 495],"__typename": [1@@ -13207,10 +13212,10 @@ export default {},"UpdateViewFilterInput": {"id": [- 494+ 495],"update": [- 547+ 548],"__typename": [1@@ -13218,25 +13223,25 @@ export default {},"UpdateViewFilterInputUpdates": {"fieldMetadataId": [- 494+ 495],"operand": [- 609+ 610],"positionInViewFilterGroup": [11],"relationTargetFieldMetadataId": [- 494+ 495],"subFieldName": [1],"value": [- 290+ 291],"viewFilterGroupId": [- 494+ 495],"__typename": [1@@ -13244,10 +13249,10 @@ export default {},"UpdateViewGroupInput": {"id": [- 494+ 495],"update": [- 549+ 550],"__typename": [1@@ -13255,7 +13260,7 @@ export default {},"UpdateViewGroupInputUpdates": {"fieldMetadataId": [- 494+ 495],"fieldValue": [1@@ -13275,13 +13280,13 @@ export default {1],"calendarEndFieldMetadataId": [- 494+ 495],"calendarFieldMetadataId": [- 494+ 495],"calendarLayout": [- 602+ 603],"groupLoadLimit": [8@@ -13290,7 +13295,7 @@ export default {1],"id": [- 494+ 495],"isCompact": [4@@ -13299,19 +13304,19 @@ export default {20],"kanbanAggregateOperationFieldMetadataId": [- 494+ 495],"kanbanColumnWidth": [8],"mainGroupByFieldMetadataId": [- 494+ 495],"name": [1],"openRecordIn": [- 612+ 613],"position": [11@@ -13320,10 +13325,10 @@ export default {4],"type": [- 615+ 616],"visibility": [- 616+ 617],"__typename": [1@@ -13331,10 +13336,10 @@ export default {},"UpdateViewSortInput": {"id": [- 494+ 495],"update": [- 552+ 553],"__typename": [1@@ -13342,7 +13347,7 @@ export default {},"UpdateViewSortInputUpdates": {"direction": [- 614+ 615],"subFieldName": [1@@ -13353,10 +13358,10 @@ export default {},"UpdateWebhookInput": {"id": [- 494+ 495],"update": [- 554+ 555],"__typename": [1@@ -13404,7 +13409,7 @@ export default {1],"aiModelIdByTier": [- 290+ 291],"allowImpersonation": [4@@ -13413,7 +13418,7 @@ export default {1],"defaultRoleId": [- 494+ 495],"displayName": [1@@ -13473,7 +13478,7 @@ export default {11],"workspaceDiscoverability": [- 630+ 631],"__typename": [1@@ -13481,10 +13486,10 @@ export default {},"UpdateWorkspaceMemberSettingsInput": {"update": [- 290+ 291],"workspaceMemberId": [- 494+ 495],"__typename": [1@@ -13493,10 +13498,10 @@ export default {"Upload": {},"UpsertFieldPermissionsInput": {"fieldPermissions": [- 251+ 252],"roleId": [- 494+ 495],"__typename": [1@@ -13504,7 +13509,7 @@ export default {},"UpsertFieldsWidgetFieldInput": {"fieldMetadataId": [- 494+ 495],"isVisible": [4@@ -13513,7 +13518,7 @@ export default {11],"viewFieldId": [- 494+ 495],"__typename": [1@@ -13521,10 +13526,10 @@ export default {},"UpsertFieldsWidgetGroupInput": {"fields": [- 560+ 561],"id": [- 494+ 495],"isVisible": [4@@ -13541,13 +13546,13 @@ export default {},"UpsertFieldsWidgetInput": {"fields": [- 560+ 561],"groups": [- 561+ 562],"widgetId": [- 494+ 495],"__typename": [1@@ -13555,10 +13560,10 @@ export default {},"UpsertObjectPermissionsInput": {"objectPermissions": [- 359+ 360],"roleId": [- 494+ 495],"__typename": [1@@ -13569,7 +13574,7 @@ export default {1],"roleId": [- 494+ 495],"__typename": [1@@ -13577,16 +13582,16 @@ export default {},"UpsertRowLevelPermissionPredicatesInput": {"objectMetadataId": [- 494+ 495],"predicateGroups": [- 426+ 427],"predicates": [- 428+ 429],"roleId": [- 494+ 495],"__typename": [1@@ -13594,10 +13599,10 @@ export default {},"UpsertRowLevelPermissionPredicatesResult": {"predicateGroups": [- 425+ 426],"predicates": [- 424+ 425],"__typename": [1@@ -13605,22 +13610,22 @@ export default {},"UpsertViewWidgetInput": {"view": [- 571+ 572],"viewFields": [- 568+ 569],"viewFilterGroups": [- 569+ 570],"viewFilters": [- 570+ 571],"viewSorts": [- 572+ 573],"widgetId": [- 494+ 495],"__typename": [1@@ -13631,7 +13636,7 @@ export default {20],"fieldMetadataId": [- 494+ 495],"isVisible": [4@@ -13643,7 +13648,7 @@ export default {11],"viewFieldId": [- 494+ 495],"__typename": [1@@ -13651,13 +13656,13 @@ export default {},"UpsertViewWidgetViewFilterGroupInput": {"id": [- 494+ 495],"logicalOperator": [- 608+ 609],"parentViewFilterGroupId": [- 494+ 495],"positionInViewFilterGroup": [11@@ -13668,28 +13673,28 @@ export default {},"UpsertViewWidgetViewFilterInput": {"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"operand": [- 609+ 610],"positionInViewFilterGroup": [11],"relationTargetFieldMetadataId": [- 494+ 495],"subFieldName": [1],"value": [- 290+ 291],"viewFilterGroupId": [- 494+ 495],"__typename": [1@@ -13697,34 +13702,34 @@ export default {},"UpsertViewWidgetViewSettingsInput": {"calendarEndFieldMetadataId": [- 494+ 495],"calendarFieldMetadataId": [- 494+ 495],"calendarLayout": [- 602+ 603],"kanbanAggregateOperation": [20],"kanbanAggregateOperationFieldMetadataId": [- 494+ 495],"kanbanColumnWidth": [8],"mainGroupByFieldMetadataId": [- 494+ 495],"openRecordIn": [- 612+ 613],"shouldHideEmptyGroups": [4],"type": [- 615+ 616],"__typename": [1@@ -13732,13 +13737,13 @@ export default {},"UpsertViewWidgetViewSortInput": {"direction": [- 614+ 615],"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"__typename": [1@@ -13746,28 +13751,28 @@ export default {},"UsageAnalytics": {"periodEnd": [- 188+ 189],"periodStart": [- 188+ 189],"timeSeries": [- 586+ 587],"usageByApplication": [- 575+ 576],"usageByModel": [- 575+ 576],"usageByOperationType": [- 575+ 576],"usageByUser": [- 575+ 576],"userDailyUsage": [- 588+ 589],"__typename": [1@@ -13775,13 +13780,13 @@ export default {},"UsageAnalyticsInput": {"operationTypes": [- 578+ 579],"periodEnd": [- 188+ 189],"periodStart": [- 188+ 189],"userWorkspaceId": [1@@ -13815,10 +13820,10 @@ export default {81],"createdAt": [- 188+ 189],"id": [- 494+ 495],"limitKind": [1@@ -13827,7 +13832,7 @@ export default {81],"operationType": [- 578+ 579],"periodCount": [8@@ -13836,7 +13841,7 @@ export default {1],"resourceType": [- 585+ 586],"spenderId": [1@@ -13845,10 +13850,10 @@ export default {1],"unit": [- 587+ 588],"updatedAt": [- 188+ 189],"__typename": [1@@ -13856,10 +13861,10 @@ export default {},"UsageLimitOperationDefinition": {"allowedUnits": [- 587+ 588],"operationType": [- 578+ 579],"__typename": [1@@ -13868,7 +13873,7 @@ export default {"UsageOperationType": {},"UsageQuotaDefinition": {"allowedOperations": [- 577+ 578],"allowedSpenderTypes": [1@@ -13877,10 +13882,10 @@ export default {1],"operatorOnlyScopes": [- 581+ 582],"resourceType": [- 585+ 586],"__typename": [1@@ -13888,7 +13893,7 @@ export default {},"UsageQuotaDefinitions": {"definitions": [- 579+ 580],"hasAllowancePeriod": [4@@ -13902,7 +13907,7 @@ export default {},"UsageQuotaOperatorOnlyScope": {"operationType": [- 578+ 579],"periodUnit": [1@@ -13911,7 +13916,7 @@ export default {1],"unit": [- 587+ 588],"__typename": [1@@ -13922,10 +13927,10 @@ export default {81],"periodEnd": [- 188+ 189],"periodStart": [- 188+ 189],"__typename": [1@@ -13933,13 +13938,13 @@ export default {},"UsageQuotaScopeInput": {"operationType": [- 578+ 579],"periodUnit": [1],"resourceType": [- 585+ 586],"spenderId": [1@@ -13948,7 +13953,7 @@ export default {1],"unit": [- 587+ 588],"__typename": [1@@ -13959,7 +13964,7 @@ export default {81],"id": [- 494+ 495],"isEnforced": [4@@ -13968,13 +13973,13 @@ export default {81],"operationType": [- 578+ 579],"periodEnd": [- 188+ 189],"periodStart": [- 188+ 189],"periodUnit": [1@@ -13983,7 +13988,7 @@ export default {81],"resourceType": [- 585+ 586],"spenderId": [1@@ -13995,7 +14000,7 @@ export default {1],"unit": [- 587+ 588],"__typename": [1@@ -14019,7 +14024,7 @@ export default {"UsageUnit": {},"UsageUserDaily": {"dailyUsage": [- 586+ 587],"userWorkspaceId": [1@@ -14039,19 +14044,19 @@ export default {4],"createdAt": [- 188+ 189],"currentUserWorkspace": [- 593+ 594],"currentWorkspace": [- 624+ 625],"deletedAt": [- 188+ 189],"deletedWorkspaceMembers": [- 201+ 202],"disabled": [4@@ -14066,7 +14071,7 @@ export default {4],"id": [- 494+ 495],"isEmailVerified": [4@@ -14081,31 +14086,31 @@ export default {1],"onboardingStatus": [- 366+ 367],"previousOnboardingStatus": [- 366+ 367],"supportUserHash": [1],"updatedAt": [- 188+ 189],"userVars": [- 291+ 292],"userWorkspaces": [- 593+ 594],"workspaceMember": [- 633+ 634],"workspaceMembers": [- 633+ 634],"workspaces": [- 593+ 594],"__typename": [1@@ -14131,7 +14136,7 @@ export default {1],"options": [- 290+ 291],"type": [1@@ -14149,13 +14154,13 @@ export default {1],"createdAt": [- 188+ 189],"expiresAt": [- 188+ 189],"id": [- 494+ 495],"ipAddress": [1@@ -14167,13 +14172,13 @@ export default {4],"lastActiveAt": [- 188+ 189],"userAgent": [1],"workspaceId": [- 494+ 495],"__typename": [1@@ -14181,13 +14186,13 @@ export default {},"UserWorkspace": {"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"id": [- 494+ 495],"isImpersonating": [4@@ -14196,25 +14201,25 @@ export default {1],"objectPermissions": [- 358+ 359],"objectsPermissions": [- 358+ 359],"permissionFlags": [- 383+ 384],"twoFactorAuthenticationMethodSummary": [- 490+ 491],"updatedAt": [- 188+ 189],"user": [- 589+ 590],"userId": [- 494+ 495],"__typename": [1@@ -14222,7 +14227,7 @@ export default {},"ValidateApprovedAccessDomainInput": {"approvedAccessDomainId": [- 494+ 495],"validationToken": [1@@ -14239,7 +14244,7 @@ export default {4],"id": [- 494+ 495],"__typename": [1@@ -14250,7 +14255,7 @@ export default {1],"errorFieldMetadataId": [- 494+ 495],"expression": [1@@ -14259,7 +14264,7 @@ export default {1],"id": [- 494+ 495],"isActive": [4@@ -14271,7 +14276,7 @@ export default {1],"objectMetadataId": [- 494+ 495],"__typename": [1@@ -14302,7 +14307,7 @@ export default {66],"workspaceUrls": [- 642+ 643],"__typename": [1@@ -14332,25 +14337,25 @@ export default {1],"applicationId": [- 494+ 495],"calendarEndFieldMetadataId": [- 494+ 495],"calendarFieldMetadataId": [- 494+ 495],"calendarLayout": [- 602+ 603],"createdAt": [- 188+ 189],"createdByUserWorkspaceId": [- 494+ 495],"deletedAt": [- 188+ 189],"groupLoadLimit": [8@@ -14359,7 +14364,7 @@ export default {1],"id": [- 494+ 495],"isActive": [4@@ -14377,25 +14382,25 @@ export default {20],"kanbanAggregateOperationFieldMetadataId": [- 494+ 495],"kanbanColumnWidth": [8],"key": [- 611+ 612],"mainGroupByFieldMetadataId": [- 494+ 495],"name": [1],"objectMetadataId": [- 494+ 495],"openRecordIn": [- 612+ 613],"position": [11@@ -14404,37 +14409,37 @@ export default {4],"type": [- 615+ 616],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"viewFieldGroups": [- 605+ 606],"viewFields": [- 604+ 605],"viewFilterGroups": [- 607+ 608],"viewFilters": [- 606+ 607],"viewGroups": [- 610+ 611],"viewSorts": [- 613+ 614],"visibility": [- 616+ 617],"workspaceId": [- 494+ 495],"__typename": [1@@ -14443,7 +14448,7 @@ export default {"ViewCalendarLayout": {},"ViewConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -14454,19 +14459,19 @@ export default {20],"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"isActive": [4@@ -14487,19 +14492,19 @@ export default {11],"universalIdentifier": [- 494+ 495],"updatedAt": [- 188+ 189],"viewFieldGroupId": [- 494+ 495],"viewId": [- 494+ 495],"workspaceId": [- 494+ 495],"__typename": [1@@ -14507,13 +14512,13 @@ export default {},"ViewFieldGroup": {"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"id": [- 494+ 495],"isActive": [4@@ -14531,16 +14536,16 @@ export default {11],"updatedAt": [- 188+ 189],"viewFields": [- 604+ 605],"viewId": [- 494+ 495],"workspaceId": [- 494+ 495],"__typename": [1@@ -14548,43 +14553,43 @@ export default {},"ViewFilter": {"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"operand": [- 609+ 610],"positionInViewFilterGroup": [11],"relationTargetFieldMetadataId": [- 494+ 495],"subFieldName": [1],"updatedAt": [- 188+ 189],"value": [- 290+ 291],"viewFilterGroupId": [- 494+ 495],"viewId": [- 494+ 495],"workspaceId": [- 494+ 495],"__typename": [1@@ -14592,31 +14597,31 @@ export default {},"ViewFilterGroup": {"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"id": [- 494+ 495],"logicalOperator": [- 608+ 609],"parentViewFilterGroupId": [- 494+ 495],"positionInViewFilterGroup": [11],"updatedAt": [- 188+ 189],"viewId": [- 494+ 495],"workspaceId": [- 494+ 495],"__typename": [1@@ -14626,16 +14631,16 @@ export default {"ViewFilterOperand": {},"ViewGroup": {"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"fieldValue": [1],"id": [- 494+ 495],"isVisible": [4@@ -14644,13 +14649,13 @@ export default {11],"updatedAt": [- 188+ 189],"viewId": [- 494+ 495],"workspaceId": [- 494+ 495],"__typename": [1@@ -14660,31 +14665,31 @@ export default {"ViewOpenRecordIn": {},"ViewSort": {"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"direction": [- 614+ 615],"fieldMetadataId": [- 494+ 495],"id": [- 494+ 495],"subFieldName": [1],"updatedAt": [- 188+ 189],"viewId": [- 494+ 495],"workspaceId": [- 494+ 495],"__typename": [1@@ -14695,19 +14700,19 @@ export default {"ViewVisibility": {},"Webhook": {"applicationId": [- 494+ 495],"createdAt": [- 188+ 189],"deletedAt": [- 188+ 189],"description": [1],"id": [- 494+ 495],"operations": [1@@ -14719,7 +14724,7 @@ export default {1],"updatedAt": [- 188+ 189],"__typename": [1@@ -14748,70 +14753,70 @@ export default {128],"on_EmailThreadConfiguration": [- 217+ 218],"on_EmailsConfiguration": [- 221+ 222],"on_FieldConfiguration": [- 244+ 245],"on_FieldRichTextConfiguration": [- 252+ 253],"on_FieldsConfiguration": [- 253+ 254],"on_FilesConfiguration": [- 259+ 260],"on_FormFieldConfiguration": [- 262+ 263],"on_FrontComponentConfiguration": [- 264+ 265],"on_IframeConfiguration": [- 274+ 275],"on_LineChartConfiguration": [- 294+ 295],"on_MessageCampaignBodyConfiguration": [- 316+ 317],"on_MessageCampaignDetailsConfiguration": [- 317+ 318],"on_NotesConfiguration": [- 349+ 350],"on_PieChartConfiguration": [- 384+ 385],"on_RecordTableConfiguration": [- 412+ 413],"on_StandaloneRichTextConfiguration": [- 462+ 463],"on_TasksConfiguration": [- 471+ 472],"on_TimelineConfiguration": [- 475+ 476],"on_ViewConfiguration": [- 603+ 604],"on_WorkflowConfiguration": [- 621+ 622],"on_WorkflowRunConfiguration": [- 622+ 623],"on_WorkflowVersionConfiguration": [- 623+ 624],"__typename": [1@@ -14821,7 +14826,7 @@ export default {"WidgetType": {},"WorkflowConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -14829,7 +14834,7 @@ export default {},"WorkflowRunConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -14837,7 +14842,7 @@ export default {},"WorkflowVersionConfiguration": {"configurationType": [- 619+ 620],"__typename": [1@@ -14845,7 +14850,7 @@ export default {},"Workspace": {"activationStatus": [- 625+ 626],"aiAdditionalInstructions": [1@@ -14860,7 +14865,7 @@ export default {1],"aiModelIdByTier": [- 290+ 291],"allowImpersonation": [4@@ -14878,7 +14883,7 @@ export default {101],"createdAt": [- 188+ 189],"currentBillingSubscription": [101@@ -14890,10 +14895,10 @@ export default {1],"defaultRole": [- 421+ 422],"deletedAt": [- 188+ 189],"displayName": [1@@ -14905,7 +14910,7 @@ export default {11],"featureFlags": [- 241+ 242],"hasValidEnterpriseValidityToken": [4@@ -14914,7 +14919,7 @@ export default {4],"id": [- 494+ 495],"installedApplications": [37@@ -14965,7 +14970,7 @@ export default {1],"logoFileId": [- 494+ 495],"metadataVersion": [11@@ -14977,25 +14982,25 @@ export default {11],"updatedAt": [- 188+ 189],"viewFields": [- 604+ 605],"viewFilterGroups": [- 607+ 608],"viewFilters": [- 606+ 607],"viewGroups": [- 610+ 611],"viewSorts": [- 613+ 614],"views": [- 601+ 602],"workspaceCustomApplication": [37@@ -15004,13 +15009,13 @@ export default {1],"workspaceDiscoverability": [- 630+ 631],"workspaceMembersCount": [11],"workspaceUrls": [- 642+ 643],"__typename": [1@@ -15034,19 +15039,19 @@ export default {"WorkspaceCompanyEnrichmentOutcome": {},"WorkspaceCompanyEnrichmentResult": {"enrichment": [- 290+ 291],"isBookCallOnboardingStepPending": [4],"outcome": [- 627+ 628],"personEnrichment": [- 290+ 291],"personOutcome": [- 640+ 641],"__typename": [1@@ -15069,13 +15074,13 @@ export default {1],"expiresAt": [- 188+ 189],"id": [- 494+ 495],"roleId": [- 494+ 495],"__typename": [1@@ -15100,28 +15105,28 @@ export default {1],"dateFormat": [- 635+ 636],"id": [- 494+ 495],"locale": [1],"name": [- 266+ 267],"numberFormat": [- 636+ 637],"openRecordIn": [- 369+ 370],"roles": [- 421+ 422],"timeFormat": [- 637+ 638],"timeZone": [1@@ -15133,10 +15138,10 @@ export default {1],"userId": [- 494+ 495],"userWorkspaceId": [- 494+ 495],"__typename": [1@@ -15144,13 +15149,13 @@ export default {},"WorkspaceMemberApplicationVariables": {"userWorkspaceId": [- 494+ 495],"variables": [- 590+ 591],"workspaceMemberId": [- 494+ 495],"__typename": [1@@ -15161,7 +15166,7 @@ export default {"WorkspaceMemberTimeFormatEnum": {},"WorkspaceMigration": {"actions": [- 290+ 291],"applicationUniversalIdentifier": [1@@ -15175,7 +15180,7 @@ export default {1],"id": [- 494+ 495],"__typename": [1@@ -15196,10 +15201,10 @@ export default {},"WorkspaceUrlsAndId": {"id": [- 494+ 495],"workspaceUrls": [- 642+ 643],"__typename": [1diff --git a/packages/twenty-docs/developers/extend/apps/logic/connections.mdx b/packages/twenty-docs/developers/extend/apps/logic/connections.mdxindex 93ff377cdc1..fa9d2ce4a8c 100644--- a/packages/twenty-docs/developers/extend/apps/logic/connections.mdx+++ b/packages/twenty-docs/developers/extend/apps/logic/connections.mdx@@ -12,7 +12,7 @@ Today only OAuth 2.0 is supported. Future credential types (personal access toke<Accordion title="defineConnectionProvider" description="Declare how your app's connections are obtained">-A connection provider describes the OAuth handshake your app needs. The user clicks "Add connection" in your app's settings, completes the provider's consent screen, and a `ConnectedAccount` row is created in their workspace.+A connection provider describes the OAuth handshake your app needs. For a `WORKSPACE` provider (the default), a member clicks "Add connection" in your app's settings, completes the provider's consent screen, and a `ConnectedAccount` row is created in their workspace. See "Workspace or personal connections" for `USER` providers.A working setup needs **two files** — the connection provider, and a matching `serverVariables` declaration on `defineApplication` that holds the OAuth client credentials.@@ -28,6 +28,7 @@ export default defineConnectionProvider({// provider in the app's General tab.logo: 'public/linear-logomark.svg',type: 'oauth',+ scope: 'WORKSPACE',oauth: {authorizationEndpoint: 'https://linear.app/oauth/authorize',tokenEndpoint: 'https://api.linear.app/oauth/token',@@ -87,6 +88,7 @@ Key points:- `name` is the unique identifier string used in `listConnections({ providerName })` (kebab-case, must match `^[a-z][a-z0-9-]*$`).- `displayName` shows in the app's General tab and in the AI tool list.+- `scope` decides who connects: `'WORKSPACE'` (the default) for connections shared with the whole workspace, `'USER'` for connections each member makes for themselves. See "Workspace or personal connections" below.- `logo` is a path to an asset bundled in your app's `public/` folder, served through the app's public assets. When omitted, the General tab falls back to a placeholder built from `displayName`.- `clientIdVariable` / `clientSecretVariable` are **names**, not values — they must match keys declared in `defineApplication.serverVariables`. The actual `client_id` and `client_secret` are entered by the server admin through the app registration UI, never committed to your repo.- Use `serverVariables` (not `applicationVariables`) — OAuth credentials are server-wide and one OAuth app per Twenty server.@@ -358,14 +360,23 @@ The mutation behind this helper ships with Twenty 2.40.0, so calling it against</Accordion>-<Accordion title="Per-user vs workspace-shared visibility" description="How users choose between private and shared credentials">+<Accordion title="Workspace or personal connections" description="Choose who connects with the provider scope">-When a user clicks "Add connection," they're prompted to pick a visibility:+Each connection has one of two visibilities:-- **Just for me** — the credential is private to the connecting user. Any logic function called on their behalf (HTTP-route trigger with `isAuthRequired: true`) sees it; cron triggers and database events do not.-- **Workspace shared** — any workspace member can use the credential. Cron / database triggers also see it, since they have no request user.+- **Workspace shared** (`'workspace'`) — any workspace member can use the credential. Cron / database triggers also see it, since they have no request user.+- **Just for me** (`'user'`) — the credential is private to the connecting member. Any logic function called on their behalf (HTTP-route trigger with `isAuthRequired: true`) sees it; cron triggers and database events do not.-Use the right one for each handler:+The provider's `scope` decides which one its connections get:++- `scope: 'WORKSPACE'` (the default) — the app works with connections shared with the workspace. **Add connection** in the app's settings creates a workspace-shared connection, and a member can turn a personal connection made earlier (before Twenty 2.49.0, or while the provider was `USER`) into a shared one with **Share with workspace**.+- `scope: 'USER'` — each member connects their own account, creating personal connections. Members will connect from their **App preferences**, which is not available yet: until then a `USER` provider has no **Add connection** button, and the app's settings only list the connections a member can already see.++A provider has exactly one scope. If your app needs both a shared credential and one per member for the same service (a bot token and each member's own account, say), declare two providers.++Twenty refuses a new connection whose visibility does not match the scope, including when your app changes its scope while a member is on the provider's consent screen. Changing `scope` in a later version does not move or delete existing connections: they keep their visibility and can still be disconnected or reconnected.++Use the right connection for each handler:```ts// HTTP-route trigger — prefer the request user's own connection.@@ -379,6 +390,8 @@ const conn = connections.find((c) => c.visibility === 'workspace');Multiple connections per (user, provider) are allowed, so the same user can hold "Personal Linear" and "Work Linear" side by side.+Provider scope ships with Twenty 2.49.0. If your app declares `scope`, declare `"engines": { "twenty": ">=2.49.0" }` in its `package.json`.+</Accordion><Accordion title="One-time provider setup" description="Register your OAuth app with the third-party service">@@ -389,7 +402,7 @@ For each connection provider, the server admin needs to register an OAuth app at2. Set the **Redirect URI** to `<SERVER_URL>/auth/apps/callback`.3. Copy the generated **Client ID** and **Client Secret**.4. Open the installed app in Twenty as a server admin → set the values on the corresponding `serverVariables`.-5. Workspace members can then add connections from the per-app **Connections** section.+5. Workspace members can then add connections to `WORKSPACE` providers from the per-app **Connections** section.</Accordion>diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.tsindex 7d1b57e77d0..54d4a5060ac 100644--- a/packages/twenty-front/src/generated-metadata/graphql.ts+++ b/packages/twenty-front/src/generated-metadata/graphql.ts@@ -462,6 +462,7 @@ export type ApplicationConnectionProvider = {logoUrl?: Maybe<Scalars['String']['output']>;name: Scalars['String']['output'];oauth?: Maybe<ApplicationConnectionProviderOAuthConfig>;+ scope: ConnectionProviderScope;type: Scalars['String']['output'];};@@ -1366,6 +1367,11 @@ export type ConnectionParametersInput = {username?: InputMaybe<Scalars['String']['input']>;};+export enum ConnectionProviderScope {+ USER = 'USER',+ WORKSPACE = 'WORKSPACE'+}+export type CreateAgentInput = {description?: InputMaybe<Scalars['String']['input']>;icon?: InputMaybe<Scalars['String']['input']>;@@ -9980,7 +9986,7 @@ export type ApplicationConnectionProvidersQueryVariables = Exact<{}>;-export type ApplicationConnectionProvidersQuery = { __typename?: 'Query', applicationConnectionProviders: Array<{ __typename?: 'ApplicationConnectionProvider', id: string, applicationId: string, type: string, name: string, displayName: string, logoUrl?: string | null, oauth?: { __typename?: 'ApplicationConnectionProviderOAuthConfig', scopes: Array<string>, isClientCredentialsConfigured: boolean } | null }> };+export type ApplicationConnectionProvidersQuery = { __typename?: 'Query', applicationConnectionProviders: Array<{ __typename?: 'ApplicationConnectionProvider', id: string, applicationId: string, type: string, name: string, displayName: string, scope: ConnectionProviderScope, logoUrl?: string | null, oauth?: { __typename?: 'ApplicationConnectionProviderOAuthConfig', scopes: Array<string>, isClientCredentialsConfigured: boolean } | null }> };export type FindUninstallApplicationJobStatusQueryVariables = Exact<{universalIdentifier: Scalars['String']['input'];@@ -11166,7 +11172,7 @@ export const UninstallApplicationDocument = {"kind":"Document","definitions":[{"export const UpdateApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateApplicationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}}]}}]}}]} as unknown as DocumentNode<UpdateApplicationMutation, UpdateApplicationMutationVariables>;export const UpdateOneApplicationVariableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneApplicationVariable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"key"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"value"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneApplicationVariable"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"key"},"value":{"kind":"Variable","name":{"kind":"Name","value":"key"}}},{"kind":"Argument","name":{"kind":"Name","value":"value"},"value":{"kind":"Variable","name":{"kind":"Name","value":"value"}}},{"kind":"Argument","name":{"kind":"Name","value":"applicationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}}}]}]}}]} as unknown as DocumentNode<UpdateOneApplicationVariableMutation, UpdateOneApplicationVariableMutationVariables>;export const ApplicationConnectedAccountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ApplicationConnectedAccounts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationConnectedAccounts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"authFailedAt"}},{"kind":"Field","name":{"kind":"Name","value":"authFailedReason"}},{"kind":"Field","name":{"kind":"Name","value":"scopes"}},{"kind":"Field","name":{"kind":"Name","value":"lastSignedInAt"}},{"kind":"Field","name":{"kind":"Name","value":"connectionProviderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"lastCredentialsRefreshedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<ApplicationConnectedAccountsQuery, ApplicationConnectedAccountsQueryVariables>;-export const ApplicationConnectionProvidersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ApplicationConnectionProviders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationConnectionProviders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"oauth"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"scopes"}},{"kind":"Field","name":{"kind":"Name","value":"isClientCredentialsConfigured"}}]}}]}}]}}]} as unknown as DocumentNode<ApplicationConnectionProvidersQuery, ApplicationConnectionProvidersQueryVariables>;+export const ApplicationConnectionProvidersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ApplicationConnectionProviders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationConnectionProviders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"oauth"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"scopes"}},{"kind":"Field","name":{"kind":"Name","value":"isClientCredentialsConfigured"}}]}}]}}]}}]} as unknown as DocumentNode<ApplicationConnectionProvidersQuery, ApplicationConnectionProvidersQueryVariables>;export const FindUninstallApplicationJobStatusDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindUninstallApplicationJobStatus"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"jobId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findUninstallApplicationJobStatus"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}},{"kind":"Argument","name":{"kind":"Name","value":"jobId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"jobId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jobId"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"failedReason"}},{"kind":"Field","name":{"kind":"Name","value":"progress"}}]}}]}}]} as unknown as DocumentNode<FindUninstallApplicationJobStatusQuery, FindUninstallApplicationJobStatusQueryVariables>;export const CancelSwitchBillingIntervalDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CancelSwitchBillingInterval"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cancelSwitchBillingInterval"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"collectionMethod"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"unitAmount"}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}},{"kind":"Field","name":{"kind":"Name","value":"isLegacy"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}}]} as unknown as DocumentNode<CancelSwitchBillingIntervalMutation, CancelSwitchBillingIntervalMutationVariables>;export const CancelSwitchBillingPlanDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CancelSwitchBillingPlan"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cancelSwitchBillingPlan"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentBillingSubscription"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhase"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start_date"}},{"kind":"Field","name":{"kind":"Name","value":"end_date"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseItemFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CurrentBillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"interval"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"currentPeriodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"collectionMethod"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingSubscriptionItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasReachedCurrentPeriodCap"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"stripePriceId"}},{"kind":"Field","name":{"kind":"Name","value":"unitAmount"}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount"}},{"kind":"Field","name":{"kind":"Name","value":"billingProduct"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"images"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"productKey"}},{"kind":"Field","name":{"kind":"Name","value":"planKey"}},{"kind":"Field","name":{"kind":"Name","value":"priceUsageBased"}},{"kind":"Field","name":{"kind":"Name","value":"isLegacy"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BillingSubscriptionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BillingSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"}},{"kind":"Field","name":{"kind":"Name","value":"cancelAt"}},{"kind":"Field","name":{"kind":"Name","value":"phases"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BillingSubscriptionSchedulePhaseFragment"}}]}}]}}]} as unknown as DocumentNode<CancelSwitchBillingPlanMutation, CancelSwitchBillingPlanMutationVariables>;diff --git a/packages/twenty-front/src/modules/settings/applications/graphql/queries/findApplicationConnectionProviders.ts b/packages/twenty-front/src/modules/settings/applications/graphql/queries/findApplicationConnectionProviders.tsindex cc5408110d4..ac47e8f47de 100644--- a/packages/twenty-front/src/modules/settings/applications/graphql/queries/findApplicationConnectionProviders.ts+++ b/packages/twenty-front/src/modules/settings/applications/graphql/queries/findApplicationConnectionProviders.ts@@ -8,6 +8,7 @@ export const FIND_APPLICATION_CONNECTION_PROVIDERS = gql`typenamedisplayName+ scopelogoUrloauth {scopesdiff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsxindex 7bd92fd187c..60de7bc4ce8 100644--- a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx+++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx@@ -336,13 +336,14 @@ export const SettingsApplicationConnectionDetail = () => {color="accent">{t`Reconnect`}</Button>)}- {connection.visibility !== 'workspace' && (- <Button- startIcon={<IconUsers />}- onClick={() => openDialog(shareWithWorkspaceModalId)}- variant="outline"- >{t`Share with workspace`}</Button>- )}+ {connection.visibility !== 'workspace' &&+ provider.scope === 'WORKSPACE' && (+ <Button+ startIcon={<IconUsers />}+ onClick={() => openDialog(shareWithWorkspaceModalId)}+ variant="outline"+ >{t`Share with workspace`}</Button>+ )}<ButtonstartIcon={<IconTrash />}onClick={() => openDialog(deleteModalId)}diff --git a/packages/twenty-front/src/pages/settings/applications/__tests__/SettingsApplicationConnectionDetail.test.tsx b/packages/twenty-front/src/pages/settings/applications/__tests__/SettingsApplicationConnectionDetail.test.tsxindex 73a03e5a216..f3c5441aaa5 100644--- a/packages/twenty-front/src/pages/settings/applications/__tests__/SettingsApplicationConnectionDetail.test.tsx+++ b/packages/twenty-front/src/pages/settings/applications/__tests__/SettingsApplicationConnectionDetail.test.tsx@@ -125,6 +125,7 @@ describe('SettingsApplicationConnectionDetail', () => {type: 'oauth',name: 'google-calendar',displayName: 'Google Calendar',+ scope: 'WORKSPACE',logoUrl: null,oauth: {scopes: ['calendar.readonly'],@@ -185,6 +186,38 @@ describe('SettingsApplicationConnectionDetail', () => {});});+ it('does not offer to share a connection of a provider scoped to each member', () => {+ mockedUseFindApplicationConnectionProviders.mockReturnValue({+ connectionProviders: [+ {+ id: 'provider-1',+ applicationId: 'app-1',+ type: 'oauth',+ name: 'google-calendar',+ displayName: 'Google Calendar',+ scope: 'USER',+ logoUrl: null,+ oauth: {+ scopes: ['calendar.readonly'],+ isClientCredentialsConfigured: true,+ },+ },+ ],+ loading: false,+ refetch: jest.fn(),+ });++ renderDetailPage();++ expect(screen.getByText('Just for me')).toBeVisible();+ expect(+ screen.queryByRole('button', { name: /Share with workspace/ }),+ ).not.toBeInTheDocument();+ expect(+ screen.getAllByRole('button', { name: 'Disconnect' }).length,+ ).toBeGreaterThan(0);+ });+it('offers reconnect and disconnect on a failed workspace shared connection', () => {mockedUseApplicationConnectedAccounts.mockReturnValue({accounts: [diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsxindex 5c6a2a3cdfd..fc7b494f8d3 100644--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx@@ -56,11 +56,16 @@ export const SettingsApplicationConnectionsSection = ({const isOAuth = provider.type === 'oauth';const isClientCredentialsConfigured =provider.oauth?.isClientCredentialsConfigured ?? false;+ const canAddConnection = provider.scope === 'WORKSPACE';const providerConnections = connectedAccounts.filter((account) => account.connectionProviderId === provider.id,);+ if (!canAddConnection && providerConnections.length === 0) {+ return null;+ }+return (<Section.Root key={provider.id}><Section.Header@@ -77,7 +82,7 @@ export const SettingsApplicationConnectionsSection = ({) : undefined}/>- {isOAuth && !isClientCredentialsConfigured && (+ {canAddConnection && isOAuth && !isClientCredentialsConfigured && (<InlineBannerlayout="compact"status="error"@@ -156,7 +161,7 @@ export const SettingsApplicationConnectionsSection = ({</StyledTableRowsContainer></Table>)}- {isClientCredentialsConfigured && (+ {canAddConnection && isClientCredentialsConfigured && (<StyledFooter><ButtonstartIcon={<IconPlus />}diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationConnectionsSection.test.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationConnectionsSection.test.tsxindex 2bde9ee6375..3b04194e61a 100644--- a/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationConnectionsSection.test.tsx+++ b/packages/twenty-front/src/pages/settings/applications/tabs/__tests__/SettingsApplicationConnectionsSection.test.tsx@@ -54,6 +54,7 @@ describe('SettingsApplicationConnectionsSection', () => {type: 'oauth',name: 'google-calendar',displayName: 'Google Calendar',+ scope: 'WORKSPACE',logoUrl: null,oauth: {scopes: ['calendar.readonly'],@@ -119,6 +120,7 @@ describe('SettingsApplicationConnectionsSection', () => {type: 'oauth',name: 'google-calendar',displayName: 'Google Calendar',+ scope: 'WORKSPACE',logoUrl: null,oauth: {scopes: ['calendar.readonly'],@@ -156,4 +158,105 @@ describe('SettingsApplicationConnectionsSection', () => {visibility: 'workspace',});});++ it('hides a provider scoped to each member when the caller sees none of its connections', () => {+ mockedUseFindApplicationConnectionProviders.mockReturnValue({+ connectionProviders: [+ {+ id: 'provider-1',+ applicationId: 'app-1',+ type: 'oauth',+ name: 'google-calendar',+ displayName: 'Google Calendar',+ scope: 'USER',+ logoUrl: null,+ oauth: {+ scopes: ['calendar.readonly'],+ isClientCredentialsConfigured: false,+ },+ },+ ],+ loading: false,+ refetch: jest.fn(),+ });++ mockedUseApplicationConnectedAccounts.mockReturnValue({+ accounts: [],+ loading: false,+ refetch: jest.fn(),+ });++ render(+ <I18nProvider i18n={i18n}>+ <MemoryRouter>+ <SettingsApplicationConnectionsSection applicationId="app-1" />+ </MemoryRouter>+ </I18nProvider>,+ );++ expect(screen.queryByText('Google Calendar')).not.toBeInTheDocument();+ expect(+ screen.queryByRole('button', { name: /Add connection/i }),+ ).not.toBeInTheDocument();+ });++ it('lists the connections of a provider scoped to each member without offering to add one', () => {+ mockedUseFindApplicationConnectionProviders.mockReturnValue({+ connectionProviders: [+ {+ id: 'provider-1',+ applicationId: 'app-1',+ type: 'oauth',+ name: 'google-calendar',+ displayName: 'Google Calendar',+ scope: 'USER',+ logoUrl: null,+ oauth: {+ scopes: ['calendar.readonly'],+ isClientCredentialsConfigured: false,+ },+ },+ ],+ loading: false,+ refetch: jest.fn(),+ });++ mockedUseApplicationConnectedAccounts.mockReturnValue({+ accounts: [+ {+ __typename: 'ApplicationConnectedAccountDTO',+ id: 'account-1',+ handle: '[email protected]',+ authFailedAt: null,+ scopes: ['calendar.readonly'],+ lastSignedInAt: null,+ connectionProviderId: 'provider-1',+ name: 'My calendar',+ visibility: 'user',+ lastCredentialsRefreshedAt: null,+ createdAt: '2026-05-01T00:00:00.000Z',+ updatedAt: '2026-05-01T00:00:00.000Z',+ },+ ],+ loading: false,+ refetch: jest.fn(),+ });++ render(+ <I18nProvider i18n={i18n}>+ <MemoryRouter>+ <SettingsApplicationConnectionsSection applicationId="app-1" />+ </MemoryRouter>+ </I18nProvider>,+ );++ expect(screen.getByRole('link', { name: /My calendar/i })).toBeVisible();+ expect(screen.getByText('Just for me')).toBeVisible();+ expect(+ screen.queryByRole('button', { name: /Add connection/i }),+ ).not.toBeInTheDocument();+ expect(+ screen.queryByText(/OAuth is not yet set up/),+ ).not.toBeInTheDocument();+ });});diff --git a/packages/twenty-front/src/pages/settings/applications/types/FrontendApplicationConnectionProvider.ts b/packages/twenty-front/src/pages/settings/applications/types/FrontendApplicationConnectionProvider.tsindex 0c52eef643c..df728d6035b 100644--- a/packages/twenty-front/src/pages/settings/applications/types/FrontendApplicationConnectionProvider.ts+++ b/packages/twenty-front/src/pages/settings/applications/types/FrontendApplicationConnectionProvider.ts@@ -1,4 +1,7 @@-import { type ConnectionProviderType } from 'twenty-shared/application';+import {+ type ConnectionProviderScope,+ type ConnectionProviderType,+} from 'twenty-shared/application';export type FrontendApplicationConnectionProviderOAuthConfig = {scopes: string[];@@ -14,6 +17,7 @@ export type FrontendApplicationConnectionProvider = {type: ConnectionProviderType;name: string;displayName: string;+ scope: ConnectionProviderScope;logoUrl: string | null;oauth: FrontendApplicationConnectionProviderOAuthConfig | null;};diff --git a/packages/twenty-sdk/src/sdk/define/connection-providers/__tests__/define-connection-provider.spec.ts b/packages/twenty-sdk/src/sdk/define/connection-providers/__tests__/define-connection-provider.spec.tsindex 2bb6933880b..a2574de727f 100644--- a/packages/twenty-sdk/src/sdk/define/connection-providers/__tests__/define-connection-provider.spec.ts+++ b/packages/twenty-sdk/src/sdk/define/connection-providers/__tests__/define-connection-provider.spec.ts@@ -83,6 +83,25 @@ describe('defineConnectionProvider', () => {expect(result.success).toBe(false);});+ it.each(['WORKSPACE', 'USER'] as const)('accepts the %s scope', (scope) => {+ const result = defineConnectionProvider({ ...baseValidConfig, scope });++ expect(result.success).toBe(true);+ expect(result.config.scope).toBe(scope);+ });++ it('rejects an unknown scope', () => {+ const result = defineConnectionProvider({+ ...baseValidConfig,+ scope: 'WORKSPACE_MEMBER' as never,+ });++ expect(result.success).toBe(false);+ expect(result.errors).toContain(+ 'Connection provider scope must be one of WORKSPACE, USER',+ );+ });+const lifecycleHookKeys = ['identifyAccountLogicFunction','onConnectLogicFunction',diff --git a/packages/twenty-sdk/src/sdk/define/connection-providers/define-connection-provider.ts b/packages/twenty-sdk/src/sdk/define/connection-providers/define-connection-provider.tsindex aa3eb697120..89cb30fc37a 100644--- a/packages/twenty-sdk/src/sdk/define/connection-providers/define-connection-provider.ts+++ b/packages/twenty-sdk/src/sdk/define/connection-providers/define-connection-provider.ts@@ -1,7 +1,10 @@import { type DefineEntity } from '@/sdk/define/common/types/define-entity.type';import { createValidationResult } from '@/sdk/define/common/utils/create-validation-result';import { isValidPostgresUuid } from '@/sdk/define/common/utils/is-valid-postgres-uuid';-import { type ConnectionProviderManifest } from 'twenty-shared/application';+import {+ CONNECTION_PROVIDER_SCOPES,+ type ConnectionProviderManifest,+} from 'twenty-shared/application';import { isDefined } from 'twenty-shared/utils';const PROVIDER_NAME_PATTERN = /^[a-z][a-z0-9-]*$/;@@ -64,6 +67,15 @@ export const defineConnectionProvider: DefineEntity<);}+ if (+ isDefined(config.scope) &&+ !CONNECTION_PROVIDER_SCOPES.includes(config.scope)+ ) {+ errors.push(+ `Connection provider scope must be one of ${CONNECTION_PROVIDER_SCOPES.join(', ')}`,+ );+ }+if (config.type === 'oauth') {const oauth = config.oauth;diff --git a/packages/twenty-sdk/src/sdk/define/index.ts b/packages/twenty-sdk/src/sdk/define/index.tsindex d69374f36a7..19ddf7908fe 100644--- a/packages/twenty-sdk/src/sdk/define/index.ts+++ b/packages/twenty-sdk/src/sdk/define/index.ts@@ -142,6 +142,7 @@ export type { RoutePayload } from '@/sdk/define/logic-functions/triggers/route-pexport type { InputJsonSchema } from 'twenty-shared/logic-function';export { defineConnectionProvider } from '@/sdk/define/connection-providers/define-connection-provider';+export type { ConnectionProviderScope } from 'twenty-shared/application';export { defineNavigationMenuItem } from '@/sdk/define/navigation-menu-items/define-navigation-menu-item';diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792162723868-add-connection-provider-scope.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792162723868-add-connection-provider-scope.tsnew file mode 100644index 00000000000..07ef1a996d7--- /dev/null+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792162723868-add-connection-provider-scope.ts@@ -0,0 +1,23 @@+import { QueryRunner } from 'typeorm';++import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-instance-command.decorator';+import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';++@RegisteredInstanceCommand('2.49.0', 1792162723868)+export class AddConnectionProviderScopeFastInstanceCommand implements FastInstanceCommand {+ public async up(queryRunner: QueryRunner): Promise<void> {+ await queryRunner.query(+ 'CREATE TYPE "core"."connectionProvider_scope_enum" AS ENUM(\'WORKSPACE\', \'USER\')',+ );+ await queryRunner.query(+ 'ALTER TABLE "core"."connectionProvider" ADD "scope" "core"."connectionProvider_scope_enum" NOT NULL DEFAULT \'WORKSPACE\'',+ );+ }++ public async down(queryRunner: QueryRunner): Promise<void> {+ await queryRunner.query(+ 'ALTER TABLE "core"."connectionProvider" DROP COLUMN "scope"',+ );+ await queryRunner.query('DROP TYPE "core"."connectionProvider_scope_enum"');+ }+}diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.tsindex 2b113fee973..e717a671cfe 100644--- a/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts@@ -245,6 +245,7 @@ import { AddIdentifyAccountLogicFunctionAndExternalAccountIdFastInstanceCommandimport { AddApplicationRegistrationVersionsFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-48/2-48-instance-command-fast-1792077317736-add-application-registration-versions';import { BackfillApplicationRegistrationVersionsSlowInstanceCommand } from 'src/database/commands/upgrade-version-command/2-48/2-48-instance-command-slow-1792077361238-backfill-application-registration-versions';import { AddUserCreditsFallbackToBillingCustomerFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792154197828-add-user-credits-fallback-to-billing-customer';+import { AddConnectionProviderScopeFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792162723868-add-connection-provider-scope';export const INSTANCE_COMMANDS = [AddViewFieldGroupIdIndexOnViewFieldFastInstanceCommand,@@ -492,4 +493,5 @@ export const INSTANCE_COMMANDS = [AddApplicationRegistrationVersionsFastInstanceCommand,BackfillApplicationRegistrationVersionsSlowInstanceCommand,AddUserCreditsFallbackToBillingCustomerFastInstanceCommand,+ AddConnectionProviderScopeFastInstanceCommand,];diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-connection-provider-manifest-to-universal-flat-connection-provider.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-connection-provider-manifest-to-universal-flat-connection-provider.util.spec.tsindex 6f5e48078d8..55fe43b79f2 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-connection-provider-manifest-to-universal-flat-connection-provider.util.spec.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-connection-provider-manifest-to-universal-flat-connection-provider.util.spec.ts@@ -40,6 +40,7 @@ describe('fromConnectionProviderManifestToUniversalFlatConnectionProvider', () =displayName: 'Linear',logo: null,type: 'oauth',+ scope: 'WORKSPACE',oauthConfig: {authorizationEndpoint: 'https://linear.app/oauth/authorize',tokenEndpoint: 'https://api.linear.app/oauth/token',@@ -59,6 +60,17 @@ describe('fromConnectionProviderManifestToUniversalFlatConnectionProvider', () =});});+ it('passes through a declared USER scope', () => {+ const result =+ fromConnectionProviderManifestToUniversalFlatConnectionProvider({+ connectionProviderManifest: buildManifest({ scope: 'USER' }),+ applicationUniversalIdentifier: APP_UID,+ now: NOW,+ });++ expect(result.scope).toBe('USER');+ });+it('passes through the logo path when provided', () => {const result =fromConnectionProviderManifestToUniversalFlatConnectionProvider({diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-connection-provider-manifest-to-universal-flat-connection-provider.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-connection-provider-manifest-to-universal-flat-connection-provider.util.tsindex fa3fc9e411c..1f82a9c6c48 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-connection-provider-manifest-to-universal-flat-connection-provider.util.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-connection-provider-manifest-to-universal-flat-connection-provider.util.ts@@ -1,5 +1,6 @@import {type ConnectionProviderManifest,+ DEFAULT_CONNECTION_PROVIDER_SCOPE,type StoredOAuthConnectionProviderConfig,} from 'twenty-shared/application';@@ -43,6 +44,8 @@ export const fromConnectionProviderManifestToUniversalFlatConnectionProvider =displayName: connectionProviderManifest.displayName,logo: connectionProviderManifest.logo ?? null,type: connectionProviderManifest.type,+ scope:+ connectionProviderManifest.scope ?? DEFAULT_CONNECTION_PROVIDER_SCOPE,oauthConfig,identifyAccountLogicFunctionUniversalIdentifier:connectionProviderManifest.identifyAccountLogicFunctiondiff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/application-connection-provider.resolver.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/application-connection-provider.resolver.tsindex f23388576e6..a5b7ab6143a 100644--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/application-connection-provider.resolver.ts+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/application-connection-provider.resolver.ts@@ -64,6 +64,7 @@ export class ApplicationConnectionProviderResolver {type: provider.type,name: provider.name,displayName: provider.displayName,+ scope: provider.scope,logo: provider.logo,oauth:provider.type === 'oauth' && provider.oauthConfigdiff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-exception-code.enum.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-exception-code.enum.tsindex 5c73924bd8f..f4d160fc927 100644--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-exception-code.enum.ts+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-exception-code.enum.ts@@ -16,4 +16,5 @@ export enum ConnectionProviderExceptionCode {IDENTIFY_ACCOUNT_LOGIC_FUNCTION_NOT_FOUND = 'IDENTIFY_ACCOUNT_LOGIC_FUNCTION_NOT_FOUND',IDENTIFY_ACCOUNT_LOGIC_FUNCTION_FAILED = 'IDENTIFY_ACCOUNT_LOGIC_FUNCTION_FAILED',RECONNECT_ACCOUNT_MISMATCH = 'RECONNECT_ACCOUNT_MISMATCH',+ CONNECTION_VISIBILITY_NOT_ALLOWED = 'CONNECTION_VISIBILITY_NOT_ALLOWED',}diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth-flow.service.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth-flow.service.tsindex 683495354a3..2112d9e2147 100644--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth-flow.service.ts+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth-flow.service.ts@@ -13,11 +13,13 @@ import { ConnectionProviderLifecycleHookService } from 'src/engine/core-modules/import { type ConnectionProviderEntity } from 'src/engine/core-modules/application/connection-provider/connection-provider.entity';import { ConnectionProviderException } from 'src/engine/core-modules/application/connection-provider/connection-provider.exception';import { ConnectionProviderService } from 'src/engine/core-modules/application/connection-provider/connection-provider.service';+import { CONNECTION_VISIBILITY_BY_PROVIDER_SCOPE } from 'src/engine/core-modules/application/connection-provider/constants/connection-visibility-by-provider-scope.constant';import { type TokenExchangeResponse } from 'src/engine/core-modules/application/connection-provider/types/token-exchange-response.type';import {assertOAuthProvider,type OAuthConnectionProvider,} from 'src/engine/core-modules/application/connection-provider/utils/assert-oauth-provider.util';+import { assertConnectionVisibilityWithinProviderScopeOrThrow } from 'src/engine/core-modules/application/connection-provider/utils/assert-connection-visibility-within-provider-scope-or-throw.util';import { buildAppOAuthCallbackUrl } from 'src/engine/core-modules/application/connection-provider/utils/build-callback-url.util';import { computePkceChallenge } from 'src/engine/core-modules/application/connection-provider/utils/compute-pkce-challenge.util';import { exchangeCodeForToken } from 'src/engine/core-modules/application/connection-provider/utils/exchange-code-for-token.util';@@ -29,7 +31,10 @@ import { JwtWrapperService } from 'src/engine/core-modules/jwt/services/jwt-wrapimport { SecureHttpClientService } from 'src/engine/core-modules/secure-http-client/secure-http-client.service';import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';import { UserEntity } from 'src/engine/core-modules/user/user.entity';-import { ConnectedAccountEntity } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';+import {+ ConnectedAccountEntity,+ type ConnectedAccountVisibility,+} from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';import { ConnectedAccountTokenEncryptionService } from 'src/engine/metadata-modules/connected-account/services/connected-account-token-encryption.service';import { buildConnectedAccountUsableByCallerWhere } from 'src/engine/metadata-modules/connected-account/utils/build-connected-account-usable-by-caller-where.util';@@ -40,7 +45,7 @@ type AuthorizeArgs = {workspaceId: string;userId: string;userWorkspaceId: string;- visibility: 'user' | 'workspace';+ visibility: ConnectedAccountVisibility | null;reconnectingConnectedAccountId: string | null;redirectLocation: string | null;};@@ -82,31 +87,27 @@ export class ConnectionProviderOAuthFlowService {assertOAuthProvider(connectionProvider);- let reconnectTarget: ConnectedAccountEntity | null = null;-- if (isDefined(args.reconnectingConnectedAccountId)) {- reconnectTarget = await this.connectedAccountRepository.findOne({- where: buildConnectedAccountUsableByCallerWhere({- baseWhere: {- id: args.reconnectingConnectedAccountId,- workspaceId,- connectionProviderId: connectionProvider.id,- },- userWorkspaceId,- }),- });+ const reconnectTarget = await this.findReconnectTargetOrThrow({+ connectionProviderId: connectionProvider.id,+ workspaceId,+ userWorkspaceId,+ reconnectingConnectedAccountId: args.reconnectingConnectedAccountId,+ });- if (!isDefined(reconnectTarget)) {- throw new ConnectionProviderException(- `Cannot reconnect connectedAccount ${args.reconnectingConnectedAccountId}: not found in this workspace for the requested provider, or not usable by this member.`,- ConnectionProviderExceptionCode.FORBIDDEN,- );- }- }+ const visibility =+ args.visibility ??+ reconnectTarget?.visibility ??+ CONNECTION_VISIBILITY_BY_PROVIDER_SCOPE[connectionProvider.scope];++ assertConnectionVisibilityWithinProviderScopeOrThrow({+ connectionProvider,+ visibility,+ reconnectTarget,+ });await this.appConnectionAccessService.validateCallerCanManageConnection({isWorkspaceShared:- args.visibility === 'workspace' ||+ visibility === 'workspace' ||reconnectTarget?.visibility === 'workspace',workspaceId,userWorkspaceId,@@ -127,7 +128,7 @@ export class ConnectionProviderOAuthFlowService {workspaceId,userId,userWorkspaceId,- visibility: args.visibility,+ visibility,reconnectingConnectedAccountId: args.reconnectingConnectedAccountId,redirectLocation: args.redirectLocation,codeVerifier,@@ -168,6 +169,21 @@ export class ConnectionProviderOAuthFlowService {assertOAuthProvider(provider);+ const reconnectTarget = await this.findReconnectTargetOrThrow({+ connectionProviderId: provider.id,+ workspaceId: statePayload.workspaceId,+ userWorkspaceId: statePayload.userWorkspaceId,+ reconnectingConnectedAccountId:+ statePayload.reconnectingConnectedAccountId,+ });++ // The app may have changed its scope while the member was on the consent screen.+ assertConnectionVisibilityWithinProviderScopeOrThrow({+ connectionProvider: provider,+ visibility: statePayload.visibility,+ reconnectTarget,+ });+const { clientId, clientSecret } =await this.oauthProviderService.getClientCredentials(provider);@@ -230,6 +246,42 @@ export class ConnectionProviderOAuthFlowService {};}+ private async findReconnectTargetOrThrow({+ connectionProviderId,+ workspaceId,+ userWorkspaceId,+ reconnectingConnectedAccountId,+ }: {+ connectionProviderId: string;+ workspaceId: string;+ userWorkspaceId: string;+ reconnectingConnectedAccountId: string | null;+ }): Promise<ConnectedAccountEntity | null> {+ if (!isDefined(reconnectingConnectedAccountId)) {+ return null;+ }++ const reconnectTarget = await this.connectedAccountRepository.findOne({+ where: buildConnectedAccountUsableByCallerWhere({+ baseWhere: {+ id: reconnectingConnectedAccountId,+ workspaceId,+ connectionProviderId,+ },+ userWorkspaceId,+ }),+ });++ if (!isDefined(reconnectTarget)) {+ throw new ConnectionProviderException(+ `Cannot reconnect connectedAccount ${reconnectingConnectedAccountId}: not found in this workspace for the requested provider, or not usable by this member.`,+ ConnectionProviderExceptionCode.FORBIDDEN,+ );+ }++ return reconnectTarget;+ }+private async signState(payload: AppOAuthStateJwtPayload): Promise<string> {return this.jwtWrapperService.signAsyncOrThrow(payload, {expiresIn: STATE_JWT_EXPIRES_IN,diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth.controller.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth.controller.tsindex c80f1a10bf6..7adfad358a1 100644--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth.controller.ts+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider-oauth.controller.ts@@ -128,8 +128,7 @@ export class ConnectionProviderOAuthController {workspaceId,userId,userWorkspaceId: userWorkspace.id,- visibility:- (visibility as 'user' | 'workspace' | undefined) ?? 'user',+ visibility: (visibility as 'user' | 'workspace' | undefined) ?? null,reconnectingConnectedAccountId:reconnectingConnectedAccountId ?? null,redirectLocation: redirectLocation ?? null,diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider.entity.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider.entity.tsindex 5306eeddfca..063e89a5217 100644--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider.entity.ts+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider.entity.ts@@ -1,5 +1,8 @@import {+ CONNECTION_PROVIDER_SCOPES,+ type ConnectionProviderScope,type ConnectionProviderType,+ DEFAULT_CONNECTION_PROVIDER_SCOPE,type StoredOAuthConnectionProviderConfig,} from 'twenty-shared/application';import {@@ -44,6 +47,18 @@ export class ConnectionProviderEntity@Column({ nullable: false, type: 'varchar' })type: ConnectionProviderType;+ @Column({+ nullable: false,+ type: 'enum',+ enum: CONNECTION_PROVIDER_SCOPES,+ default: DEFAULT_CONNECTION_PROVIDER_SCOPE,+ })+ @WasIntroducedInUpgrade({+ upgradeCommandName:+ '2.49.0_AddConnectionProviderScopeFastInstanceCommand_1792162723868',+ })+ scope: ConnectionProviderScope;+@Column({ nullable: true, type: 'jsonb' })oauthConfig: StoredOAuthConnectionProviderConfig | null;diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider.exception.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider.exception.tsindex 5de4e49f566..abff61b1cb7 100644--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider.exception.ts+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connection-provider.exception.ts@@ -43,6 +43,8 @@ const getConnectionProviderExceptionUserFriendlyMessage = (return msg`We could not identify the account you authorized. Please try again.`;case ConnectionProviderExceptionCode.RECONNECT_ACCOUNT_MISMATCH:return msg`You authorized a different account than the one this connection belongs to.`;+ case ConnectionProviderExceptionCode.CONNECTION_VISIBILITY_NOT_ALLOWED:+ return msg`This connection provider does not support this kind of connection.`;default:assertUnreachable(code);}diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/constants/connection-visibility-by-provider-scope.constant.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/constants/connection-visibility-by-provider-scope.constant.tsnew file mode 100644index 00000000000..448b135d92a--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/constants/connection-visibility-by-provider-scope.constant.ts@@ -0,0 +1,11 @@+import { type ConnectionProviderScope } from 'twenty-shared/application';++import { type ConnectedAccountVisibility } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';++export const CONNECTION_VISIBILITY_BY_PROVIDER_SCOPE: Record<+ ConnectionProviderScope,+ ConnectedAccountVisibility+> = {+ WORKSPACE: 'workspace',+ USER: 'user',+};diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/dtos/application-connection-provider.dto.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/dtos/application-connection-provider.dto.tsindex 7eea91d088f..6994824d3af 100644--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/dtos/application-connection-provider.dto.ts+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/dtos/application-connection-provider.dto.ts@@ -1,9 +1,21 @@-import { Field, ObjectType } from '@nestjs/graphql';+import { Field, ObjectType, registerEnumType } from '@nestjs/graphql';-import { type ConnectionProviderType } from 'twenty-shared/application';+import {+ type ConnectionProviderScope,+ type ConnectionProviderType,+} from 'twenty-shared/application';import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';+const ConnectionProviderScopeEnum = {+ WORKSPACE: 'WORKSPACE',+ USER: 'USER',+} as const satisfies { [P in ConnectionProviderScope]: P };++registerEnumType(ConnectionProviderScopeEnum, {+ name: 'ConnectionProviderScope',+});+@ObjectType('ApplicationConnectionProviderOAuthConfig')export class ApplicationConnectionProviderOAuthConfigDTO {@Field(() => [String])@@ -35,6 +47,9 @@ export class ApplicationConnectionProviderDTO {@Field()displayName: string;+ @Field(() => ConnectionProviderScopeEnum)+ scope: ConnectionProviderScope;+logo: string | null;@Field(() => ApplicationConnectionProviderOAuthConfigDTO, { nullable: true })diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/filters/connection-provider-rest-api-exception.filter.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/filters/connection-provider-rest-api-exception.filter.tsindex a66df97b568..39f2f547e28 100644--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/filters/connection-provider-rest-api-exception.filter.ts+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/filters/connection-provider-rest-api-exception.filter.ts@@ -31,6 +31,7 @@ const connectionProviderExceptionCodeToHttpStatus = (case ConnectionProviderExceptionCode.INVALID_CONNECTION_PROVIDER_INPUT:case ConnectionProviderExceptionCode.CONNECTION_PROVIDER_NAME_ALREADY_EXISTS:case ConnectionProviderExceptionCode.RECONNECT_ACCOUNT_MISMATCH:+ case ConnectionProviderExceptionCode.CONNECTION_VISIBILITY_NOT_ALLOWED:return 400;case ConnectionProviderExceptionCode.CLIENT_CREDENTIALS_NOT_CONFIGURED:case ConnectionProviderExceptionCode.TOKEN_EXCHANGE_FAILED:diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/assert-connection-visibility-within-provider-scope-or-throw.util.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/assert-connection-visibility-within-provider-scope-or-throw.util.tsnew file mode 100644index 00000000000..76dcf347f29--- /dev/null+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/assert-connection-visibility-within-provider-scope-or-throw.util.ts@@ -0,0 +1,48 @@+import { msg } from '@lingui/core/macro';+import { isDefined } from 'twenty-shared/utils';++import { ConnectionProviderExceptionCode } from 'src/engine/core-modules/application/connection-provider/connection-provider-exception-code.enum';+import { type ConnectionProviderEntity } from 'src/engine/core-modules/application/connection-provider/connection-provider.entity';+import { ConnectionProviderException } from 'src/engine/core-modules/application/connection-provider/connection-provider.exception';+import { CONNECTION_VISIBILITY_BY_PROVIDER_SCOPE } from 'src/engine/core-modules/application/connection-provider/constants/connection-visibility-by-provider-scope.constant';+import {+ type ConnectedAccountEntity,+ type ConnectedAccountVisibility,+} from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';++export const assertConnectionVisibilityWithinProviderScopeOrThrow = ({+ connectionProvider,+ visibility,+ reconnectTarget,+}: {+ connectionProvider: Pick<+ ConnectionProviderEntity,+ 'name' | 'displayName' | 'scope'+ >;+ visibility: ConnectedAccountVisibility;+ reconnectTarget: Pick<ConnectedAccountEntity, 'visibility'> | null;+}): void => {+ const isKeepingExistingVisibility =+ isDefined(reconnectTarget) && reconnectTarget.visibility === visibility;++ if (+ isKeepingExistingVisibility ||+ CONNECTION_VISIBILITY_BY_PROVIDER_SCOPE[connectionProvider.scope] ===+ visibility+ ) {+ return;+ }++ const providerDisplayName = connectionProvider.displayName;++ throw new ConnectionProviderException(+ `Connection provider "${connectionProvider.name}" has scope ${connectionProvider.scope} and does not accept ${visibility} connections`,+ ConnectionProviderExceptionCode.CONNECTION_VISIBILITY_NOT_ALLOWED,+ {+ userFriendlyMessage:+ connectionProvider.scope === 'USER'+ ? msg`${providerDisplayName} only supports personal connections.`+ : msg`${providerDisplayName} only supports connections shared with the workspace.`,+ },+ );+};diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/connection-provider-graphql-api-exception-handler.util.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/connection-provider-graphql-api-exception-handler.util.tsindex ddc5be95088..3db72d3e421 100644--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/connection-provider-graphql-api-exception-handler.util.ts+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/connection-provider-graphql-api-exception-handler.util.ts@@ -26,6 +26,7 @@ export const connectionProviderGraphqlApiExceptionHandler = (error: Error) => {case ConnectionProviderExceptionCode.INVALID_CONNECTION_PROVIDER_INPUT:case ConnectionProviderExceptionCode.CONNECTION_PROVIDER_NAME_ALREADY_EXISTS:case ConnectionProviderExceptionCode.RECONNECT_ACCOUNT_MISMATCH:+ case ConnectionProviderExceptionCode.CONNECTION_VISIBILITY_NOT_ALLOWED:throw new UserInputError(error);case ConnectionProviderExceptionCode.CLIENT_CREDENTIALS_NOT_CONFIGURED:case ConnectionProviderExceptionCode.TOKEN_EXCHANGE_FAILED:diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snapindex 7076c598cce..cca00257cc2 100644--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap@@ -68,6 +68,7 @@ exports[`ALL_UNIVERSAL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY should ma"displayName","logo","type",+ "scope","oauthConfig","identifyAccountLogicFunctionUniversalIdentifier","onConnectLogicFunctionUniversalIdentifier",diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.tsindex 1e68108bf52..e1baed0a5e6 100644--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts@@ -1912,6 +1912,11 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {},logo: { toCompare: true, toStringify: false, universalProperty: undefined },type: { toCompare: true, toStringify: false, universalProperty: undefined },+ scope: {+ toCompare: true,+ toStringify: false,+ universalProperty: undefined,+ },oauthConfig: {toCompare: true,toStringify: true,diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-connection-provider-validator.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-connection-provider-validator.service.tsindex 3c081bd5b3c..e213de225dd 100644--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-connection-provider-validator.service.ts+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-connection-provider-validator.service.ts@@ -11,6 +11,7 @@ import { type FailedFlatEntityValidation } from 'src/engine/workspace-manager/woimport { getEmptyFlatEntityValidationError } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/utils/get-flat-entity-validation-error.util';import { type FlatEntityUpdateValidationArgs } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/types/universal-flat-entity-update-validation-args.type';import { type UniversalFlatEntityValidationArgs } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/types/universal-flat-entity-validation-args.type';+import { validateConnectionProviderScope } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-connection-provider-scope.util';@Injectable()export class FlatConnectionProviderValidatorService {@@ -47,6 +48,10 @@ export class FlatConnectionProviderValidatorService {});}+ validationResult.errors.push(+ ...validateConnectionProviderScope(flatConnectionProvider.scope),+ );+if (flatConnectionProvider.type === 'oauth') {const oauthConfig = flatConnectionProvider.oauthConfig;@@ -139,6 +144,7 @@ export class FlatConnectionProviderValidatorService {public validateFlatConnectionProviderUpdate({universalIdentifier,+ flatEntityUpdate,optimisticFlatEntityMapsAndRelatedFlatEntityMaps: {flatConnectionProviderMaps: optimisticFlatConnectionProviderMaps,},@@ -168,6 +174,12 @@ export class FlatConnectionProviderValidatorService {return validationResult;}+ validationResult.errors.push(+ ...validateConnectionProviderScope(+ flatEntityUpdate.scope ?? fromFlatConnectionProvider.scope,+ ),+ );+return validationResult;}}diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-connection-provider-scope.util.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-connection-provider-scope.util.tsnew file mode 100644index 00000000000..028cb74d42f--- /dev/null+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-connection-provider-scope.util.ts@@ -0,0 +1,21 @@+import { msg, t } from '@lingui/core/macro';+import { isConnectionProviderScope } from 'twenty-shared/application';++import { ConnectionProviderExceptionCode } from 'src/engine/core-modules/application/connection-provider/connection-provider-exception-code.enum';+import { type FlatEntityValidationError } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/types/failed-flat-entity-validation.type';++export const validateConnectionProviderScope = (+ scope: string,+): FlatEntityValidationError<ConnectionProviderExceptionCode>[] => {+ if (isConnectionProviderScope(scope)) {+ return [];+ }++ return [+ {+ code: ConnectionProviderExceptionCode.INVALID_CONNECTION_PROVIDER_INPUT,+ message: t`Connection provider scope "${scope}" is invalid`,+ userFriendlyMessage: msg`This connection provider scope is not supported.`,+ },+ ];+};diff --git a/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-provider-scope.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-provider-scope.integration-spec.tsnew file mode 100644index 00000000000..014d45ad276--- /dev/null+++ b/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-provider-scope.integration-spec.ts@@ -0,0 +1,372 @@+import { http, HttpResponse } from 'msw';+import request from 'supertest';+import { buildBaseManifest } from 'test/integration/metadata/suites/application/utils/build-base-manifest.util';+import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';+import { setupApplicationForSync } from 'test/integration/metadata/suites/application/utils/setup-application-for-sync.util';+import { syncApplication } from 'test/integration/metadata/suites/application/utils/sync-application.util';+import { findConnectionProvidersByApplication } from 'test/integration/metadata/suites/connection-provider/utils/find-connection-providers-by-application.util';+import { generateTransientToken } from 'test/integration/utils/generate-transient-token.util';+import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';+import { setupHttpMock } from 'test/integration/utils/http-mock.util';+import { waitForAllJobsToFinish } from 'test/integration/utils/wait-for-all-jobs-to-finish.util';+import {+ type ConnectionProviderManifest,+ type ConnectionProviderScope,+} from 'twenty-shared/application';+import { ConnectedAccountProvider } from 'twenty-shared/types';+import { assertIsDefinedOrThrow, isDefined } from 'twenty-shared/utils';+import { v4 } from 'uuid';+import { z } from 'zod';++import { plaintextStringSchema } from 'src/engine/core-modules/secret-encryption/branded-strings/plaintext-string.type';+import { type SecretEncryptionService } from 'src/engine/core-modules/secret-encryption/secret-encryption.service';+import {+ type ConnectedAccountEntity,+ type ConnectedAccountVisibility,+} from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';+import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';+import { USER_WORKSPACE_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/utils/seed-user-workspaces.util';++const APPLICATION_IDENTIFIER = v4();+const ROLE_IDENTIFIER = v4();+const WORKSPACE_PROVIDER_IDENTIFIER = v4();+const USER_PROVIDER_IDENTIFIER = v4();+const TOKEN_ENDPOINT = 'https://scoped-provider.example.com/token';++const buildProvider = ({+ universalIdentifier,+ name,+ scope,+}: {+ universalIdentifier: string;+ name: string;+ scope?: ConnectionProviderScope;+}): ConnectionProviderManifest => ({+ universalIdentifier,+ name,+ displayName: name,+ type: 'oauth',+ ...(isDefined(scope) ? { scope } : {}),+ oauth: {+ authorizationEndpoint: 'https://scoped-provider.example.com/authorize',+ tokenEndpoint: TOKEN_ENDPOINT,+ scopes: ['read'],+ clientIdVariable: 'CLIENT_ID',+ clientSecretVariable: 'CLIENT_SECRET',+ },+});++const syncProviders = async (+ workspaceProviderScope?: ConnectionProviderScope,+) => {+ const { errors } = await syncApplication({+ manifest: buildBaseManifest({+ appId: APPLICATION_IDENTIFIER,+ roleId: ROLE_IDENTIFIER,+ overrides: {+ connectionProviders: [+ buildProvider({+ universalIdentifier: WORKSPACE_PROVIDER_IDENTIFIER,+ name: 'workspace-provider',+ scope: workspaceProviderScope,+ }),+ buildProvider({+ universalIdentifier: USER_PROVIDER_IDENTIFIER,+ name: 'user-provider',+ scope: 'USER',+ }),+ ],+ },+ }),+ });++ expect(errors).toBeUndefined();+ jest.useRealTimers();+};++describe('app connections outside the provider scope', () => {+ let applicationId: string;+ let providerIdByName: Record<string, string>;+ let tokenExchanges: string[];++ setupHttpMock(+ http.post(TOKEN_ENDPOINT, async ({ request: tokenRequest }) => {+ const { code } = z+ .object({ code: z.string().min(1) })+ .parse(await tokenRequest.json());++ tokenExchanges.push(code);++ return HttpResponse.json({+ access_token: code,+ refresh_token: `refresh-${code}`,+ token_type: 'Bearer',+ scope: 'read',+ });+ }),+ );++ const readAccounts = (): Promise<ConnectedAccountEntity[]> =>+ globalThis.testDataSource.query(+ 'SELECT * FROM core."connectedAccount" WHERE "applicationId" = $1 ORDER BY "createdAt", id',+ [applicationId],+ );++ const insertConnection = async ({+ providerName,+ visibility,+ }: {+ providerName: string;+ visibility: ConnectedAccountVisibility;+ }): Promise<string> => {+ const id = v4();++ await globalThis.testDataSource.query(+ `INSERT INTO core."connectedAccount"+ (id, handle, provider, visibility, "workspaceId", "userWorkspaceId",+ "applicationId", "connectionProviderId")+ VALUES ($1, $2, $3, $4, $5, $6, $7, $8)`,+ [+ id,+ `${providerName}@example.com`,+ ConnectedAccountProvider.APP,+ visibility,+ SEED_APPLE_WORKSPACE_ID,+ USER_WORKSPACE_DATA_SEED_IDS.JANE,+ applicationId,+ providerIdByName[providerName],+ ],+ );++ return id;+ };++ const authorize = async ({+ providerName,+ visibility,+ reconnectingConnectedAccountId,+ }: {+ providerName: string;+ visibility?: ConnectedAccountVisibility;+ reconnectingConnectedAccountId?: string;+ }): Promise<{ state: string | null; errorMessage: string | null }> => {+ const response = await request(`http://localhost:${APP_PORT}`)+ .get('/auth/apps/authorize')+ .query({+ applicationId,+ providerName,+ transientToken: await generateTransientToken(),+ ...(isDefined(visibility) ? { visibility } : {}),+ ...(isDefined(reconnectingConnectedAccountId)+ ? { reconnectingConnectedAccountId }+ : {}),+ });++ expect(response.status).toBe(302);+ const location = new URL(response.headers.location);++ return {+ state: location.searchParams.get('state'),+ errorMessage: location.searchParams.get('errorMessage'),+ };+ };++ const authorizeOrThrow = async (+ args: Parameters<typeof authorize>[0],+ ): Promise<string> => {+ const { state, errorMessage } = await authorize(args);++ expect(errorMessage).toBeNull();+ assertIsDefinedOrThrow(state);++ return state;+ };++ const callback = async (state: string, code: string) => {+ const response = await request(`http://localhost:${APP_PORT}`)+ .get('/auth/apps/callback')+ .query({ state, code });++ expect(response.status).toBe(302);+ await waitForAllJobsToFinish();++ return new URL(response.headers.location).searchParams.get('errorMessage');+ };++ beforeAll(async () => {+ await setupApplicationForSync({+ applicationUniversalIdentifier: APPLICATION_IDENTIFIER,+ name: 'Connection provider scope',+ description: 'Connections outside the provider scope',+ sourcePath: 'connection-provider-scope',+ });+ jest.useRealTimers();++ await syncProviders();++ const providers = await findConnectionProvidersByApplication(+ APPLICATION_IDENTIFIER,+ );++ applicationId = providers[0].applicationId;+ providerIdByName = Object.fromEntries(+ providers.map((provider) => [provider.name, provider.id]),+ );++ const encryption = getAppProviderByClassName<SecretEncryptionService>(+ 'SecretEncryptionService',+ );++ for (const key of ['CLIENT_ID', 'CLIENT_SECRET']) {+ await globalThis.testDataSource.query(+ `INSERT INTO core."applicationRegistrationVariable" (key, "encryptedValue", "applicationRegistrationId")+ SELECT $1, $2, "applicationRegistrationId" FROM core.application WHERE id = $3`,+ [+ key,+ encryption.encryptVersioned(+ plaintextStringSchema.parse(`test-${key}`),+ ),+ applicationId,+ ],+ );+ }+ }, 120000);++ beforeEach(() => {+ tokenExchanges = [];+ });++ afterEach(async () => {+ await globalThis.testDataSource.query(+ 'DELETE FROM core."connectedAccount" WHERE "applicationId" = $1',+ [applicationId],+ );+ });++ afterAll(async () => {+ await cleanupApplicationAndAppRegistration({+ applicationUniversalIdentifier: APPLICATION_IDENTIFIER,+ });+ });++ it('refuses a new personal connection on a WORKSPACE provider', async () => {+ const { errorMessage } = await authorize({+ providerName: 'workspace-provider',+ visibility: 'user',+ });++ expect(errorMessage).toContain('does not accept user connections');+ });++ it('creates a workspace connection on a WORKSPACE provider when no visibility is given', async () => {+ const errorMessage = await callback(+ await authorizeOrThrow({ providerName: 'workspace-provider' }),+ 'workspace-code',+ );++ expect(errorMessage).toBeNull();+ expect(await readAccounts()).toMatchObject([{ visibility: 'workspace' }]);+ });++ it('refuses a new workspace connection on a USER provider', async () => {+ const { errorMessage } = await authorize({+ providerName: 'user-provider',+ visibility: 'workspace',+ });++ expect(errorMessage).toContain('does not accept workspace connections');+ });++ it('creates a personal connection on a USER provider when no visibility is given', async () => {+ const errorMessage = await callback(+ await authorizeOrThrow({ providerName: 'user-provider' }),+ 'user-code',+ );++ expect(errorMessage).toBeNull();+ expect(await readAccounts()).toMatchObject([+ {+ visibility: 'user',+ userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JANE,+ },+ ]);+ });++ it('reconnects an existing connection whose visibility no longer matches the scope', async () => {+ const connectedAccountId = await insertConnection({+ providerName: 'user-provider',+ visibility: 'workspace',+ });++ const errorMessage = await callback(+ await authorizeOrThrow({+ providerName: 'user-provider',+ reconnectingConnectedAccountId: connectedAccountId,+ }),+ 'reconnect-code',+ );++ expect(errorMessage).toBeNull();+ expect(await readAccounts()).toMatchObject([+ { id: connectedAccountId, visibility: 'workspace' },+ ]);+ expect(tokenExchanges).toEqual(['reconnect-code']);+ });++ it('reconnects an existing personal connection on a WORKSPACE provider', async () => {+ const connectedAccountId = await insertConnection({+ providerName: 'workspace-provider',+ visibility: 'user',+ });++ const errorMessage = await callback(+ await authorizeOrThrow({+ providerName: 'workspace-provider',+ reconnectingConnectedAccountId: connectedAccountId,+ }),+ 'personal-reconnect-code',+ );++ expect(errorMessage).toBeNull();+ expect(await readAccounts()).toMatchObject([+ { id: connectedAccountId, visibility: 'user' },+ ]);+ expect(tokenExchanges).toEqual(['personal-reconnect-code']);+ });++ it('refuses to share a personal connection of a USER provider with the workspace', async () => {+ const connectedAccountId = await insertConnection({+ providerName: 'user-provider',+ visibility: 'user',+ });++ const { errorMessage } = await authorize({+ providerName: 'user-provider',+ visibility: 'workspace',+ reconnectingConnectedAccountId: connectedAccountId,+ });++ expect(errorMessage).toContain('does not accept workspace connections');+ expect(await readAccounts()).toMatchObject([+ { id: connectedAccountId, visibility: 'user' },+ ]);+ });++ it('refuses at the callback when the app changed the provider scope after authorize', async () => {+ const state = await authorizeOrThrow({+ providerName: 'workspace-provider',+ });++ await syncProviders('USER');++ try {+ const errorMessage = await callback(state, 'late-code');++ expect(errorMessage).toContain('does not accept workspace connections');+ expect(tokenExchanges).toEqual([]);+ expect(await readAccounts()).toEqual([]);+ } finally {+ await syncProviders();+ }+ }, 60000);+});diff --git a/packages/twenty-server/test/integration/metadata/suites/connection-provider/connection-provider-resolver.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/connection-provider/connection-provider-resolver.integration-spec.tsindex e86b515c2d5..7297a59e1ca 100644--- a/packages/twenty-server/test/integration/metadata/suites/connection-provider/connection-provider-resolver.integration-spec.ts+++ b/packages/twenty-server/test/integration/metadata/suites/connection-provider/connection-provider-resolver.integration-spec.ts@@ -78,6 +78,7 @@ describe('applicationConnectionProviders resolver (e2e)', () => {typenamedisplayName+ scopelogoUrloauth {scopes@@ -100,6 +101,7 @@ describe('applicationConnectionProviders resolver (e2e)', () => {type: 'oauth',name: 'linear',displayName: 'Linear',+ scope: 'WORKSPACE',logoUrl: null,oauth: {scopes: ['read', 'write'],diff --git a/packages/twenty-server/test/integration/metadata/suites/connection-provider/connection-provider-scope-manifest-sync.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/connection-provider/connection-provider-scope-manifest-sync.integration-spec.tsnew file mode 100644index 00000000000..7af398689c1--- /dev/null+++ b/packages/twenty-server/test/integration/metadata/suites/connection-provider/connection-provider-scope-manifest-sync.integration-spec.ts@@ -0,0 +1,108 @@+import { buildBaseManifest } from 'test/integration/metadata/suites/application/utils/build-base-manifest.util';+import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';+import { setupApplicationForSync } from 'test/integration/metadata/suites/application/utils/setup-application-for-sync.util';+import { syncApplication } from 'test/integration/metadata/suites/application/utils/sync-application.util';+import { findConnectionProvidersByApplication } from 'test/integration/metadata/suites/connection-provider/utils/find-connection-providers-by-application.util';+import { type ConnectionProviderManifest } from 'twenty-shared/application';+import { v4 as uuidv4 } from 'uuid';++const TEST_APP_ID = uuidv4();+const TEST_ROLE_ID = uuidv4();+const TEST_PROVIDER_ID = uuidv4();++const buildProvider = (+ scope?: ConnectionProviderManifest['scope'],+): ConnectionProviderManifest => ({+ universalIdentifier: TEST_PROVIDER_ID,+ name: 'linear',+ displayName: 'Linear',+ type: 'oauth',+ ...(scope === undefined ? {} : { scope }),+ oauth: {+ authorizationEndpoint: 'https://linear.app/oauth/authorize',+ tokenEndpoint: 'https://api.linear.app/oauth/token',+ scopes: ['read'],+ clientIdVariable: 'LINEAR_CLIENT_ID',+ clientSecretVariable: 'LINEAR_CLIENT_SECRET',+ },+});++const syncProvider = (+ provider: ConnectionProviderManifest,+ { expectToFail = false }: { expectToFail?: boolean } = {},+) =>+ syncApplication({+ manifest: buildBaseManifest({+ appId: TEST_APP_ID,+ roleId: TEST_ROLE_ID,+ overrides: { connectionProviders: [provider] },+ }),+ expectToFail,+ });++const findProviderScopes = async () =>+ (await findConnectionProvidersByApplication(TEST_APP_ID)).map(+ (provider) => provider.scope,+ );++describe('connection provider scope manifest sync', () => {+ beforeEach(async () => {+ await setupApplicationForSync({+ applicationUniversalIdentifier: TEST_APP_ID,+ name: 'Test Application',+ description: 'App for testing connection provider scopes',+ sourcePath: 'test-connection-provider-scope-sync',+ });+ }, 60000);++ afterEach(async () => {+ await cleanupApplicationAndAppRegistration({+ applicationUniversalIdentifier: TEST_APP_ID,+ });+ });++ it('stores WORKSPACE when the manifest omits the scope', async () => {+ await syncProvider(buildProvider());++ expect(await findProviderScopes()).toEqual(['WORKSPACE']);+ }, 60000);++ it('stores the declared scope', async () => {+ await syncProvider(buildProvider('USER'));++ expect(await findProviderScopes()).toEqual(['USER']);+ }, 60000);++ it('applies a scope change on a later sync', async () => {+ await syncProvider(buildProvider('WORKSPACE'));+ await syncProvider(buildProvider('USER'));++ expect(await findProviderScopes()).toEqual(['USER']);+ }, 60000);++ it('rejects an unknown scope on create', async () => {+ const { errors } = await syncProvider(+ buildProvider('WORKSPACE_MEMBER' as never),+ { expectToFail: true },+ );++ expect(JSON.stringify(errors)).toContain(+ 'Connection provider scope \\"WORKSPACE_MEMBER\\" is invalid',+ );+ expect(await findProviderScopes()).toEqual([]);+ }, 60000);++ it('rejects an unknown scope on update and keeps the stored one', async () => {+ await syncProvider(buildProvider('USER'));++ const { errors } = await syncProvider(+ buildProvider('WORKSPACE_MEMBER' as never),+ { expectToFail: true },+ );++ expect(JSON.stringify(errors)).toContain(+ 'Connection provider scope \\"WORKSPACE_MEMBER\\" is invalid',+ );+ expect(await findProviderScopes()).toEqual(['USER']);+ }, 60000);+});diff --git a/packages/twenty-server/test/integration/metadata/suites/connection-provider/utils/find-connection-providers-by-application.util.ts b/packages/twenty-server/test/integration/metadata/suites/connection-provider/utils/find-connection-providers-by-application.util.tsindex 79eb642f644..d062b0d8eca 100644--- a/packages/twenty-server/test/integration/metadata/suites/connection-provider/utils/find-connection-providers-by-application.util.ts+++ b/packages/twenty-server/test/integration/metadata/suites/connection-provider/utils/find-connection-providers-by-application.util.ts@@ -1,4 +1,7 @@-import { type StoredOAuthConnectionProviderConfig } from 'twenty-shared/application';+import {+ type ConnectionProviderScope,+ type StoredOAuthConnectionProviderConfig,+} from 'twenty-shared/application';type ConnectionProviderRow = {id: string;@@ -8,6 +11,7 @@ type ConnectionProviderRow = {name: string;displayName: string;type: string;+ scope: ConnectionProviderScope;oauthConfig: StoredOAuthConnectionProviderConfig | null;identifyAccountLogicFunctionUniversalIdentifier: string | null;onConnectLogicFunctionUniversalIdentifier: string | null;@@ -19,7 +23,7 @@ export const findConnectionProvidersByApplication = async (): Promise<ConnectionProviderRow[]> => {return globalThis.testDataSource.query(`SELECT cp.id, cp."universalIdentifier", cp."applicationId",- cp."workspaceId", cp.name, cp."displayName", cp.type,+ cp."workspaceId", cp.name, cp."displayName", cp.type, cp.scope,cp."oauthConfig", cp."identifyAccountLogicFunctionUniversalIdentifier",cp."onConnectLogicFunctionUniversalIdentifier",cp."onDisconnectLogicFunctionUniversalIdentifier"diff --git a/packages/twenty-shared/src/application/connectionProviderManifestType.ts b/packages/twenty-shared/src/application/connectionProviderManifestType.tsindex 0f77a9088a6..2042bad9deb 100644--- a/packages/twenty-shared/src/application/connectionProviderManifestType.ts+++ b/packages/twenty-shared/src/application/connectionProviderManifestType.ts@@ -1,3 +1,4 @@+import { type ConnectionProviderScope } from '@/application/connectionProviderScopeType';import { type OAuthConnectionProviderConfig } from '@/application/oauthConnectionProviderConfigType';import { type SyncableEntityOptions } from '@/application/syncableEntityOptionsType';@@ -6,6 +7,7 @@ export type ConnectionProviderManifest = SyncableEntityOptions & {displayName: string;logo?: string;type: 'oauth';+ scope?: ConnectionProviderScope;oauth: OAuthConnectionProviderConfig;identifyAccountLogicFunction?: SyncableEntityOptions;onConnectLogicFunction?: SyncableEntityOptions;diff --git a/packages/twenty-shared/src/application/connectionProviderScopeType.ts b/packages/twenty-shared/src/application/connectionProviderScopeType.tsnew file mode 100644index 00000000000..df02c82797d--- /dev/null+++ b/packages/twenty-shared/src/application/connectionProviderScopeType.ts@@ -0,0 +1,4 @@+import { type CONNECTION_PROVIDER_SCOPES } from '@/application/constants/ConnectionProviderScopes';++export type ConnectionProviderScope =+ (typeof CONNECTION_PROVIDER_SCOPES)[number];diff --git a/packages/twenty-shared/src/application/constants/ConnectionProviderScopes.ts b/packages/twenty-shared/src/application/constants/ConnectionProviderScopes.tsnew file mode 100644index 00000000000..069107f2783--- /dev/null+++ b/packages/twenty-shared/src/application/constants/ConnectionProviderScopes.ts@@ -0,0 +1 @@+export const CONNECTION_PROVIDER_SCOPES = ['WORKSPACE', 'USER'] as const;diff --git a/packages/twenty-shared/src/application/constants/DefaultConnectionProviderScope.ts b/packages/twenty-shared/src/application/constants/DefaultConnectionProviderScope.tsnew file mode 100644index 00000000000..a588e01e3d6--- /dev/null+++ b/packages/twenty-shared/src/application/constants/DefaultConnectionProviderScope.ts@@ -0,0 +1,4 @@+import { type ConnectionProviderScope } from '@/application/connectionProviderScopeType';++export const DEFAULT_CONNECTION_PROVIDER_SCOPE: ConnectionProviderScope =+ 'WORKSPACE';diff --git a/packages/twenty-shared/src/application/index.ts b/packages/twenty-shared/src/application/index.tsindex a841d23e0a2..f1556940469 100644--- a/packages/twenty-shared/src/application/index.ts+++ b/packages/twenty-shared/src/application/index.ts@@ -78,6 +78,7 @@ export type {BillableOperations,} from './billableOperationsType';export type { ConnectionProviderManifest } from './connectionProviderManifestType';+export type { ConnectionProviderScope } from './connectionProviderScopeType';export type { ConnectionProviderType } from './connectionProviderType';export { AGENT_TRIGGER_EVENT_NAME_PATTERN } from './constants/AgentTriggerEventNamePattern';export { AGENT_TRIGGER_LIMITS } from './constants/AgentTriggerLimits';@@ -85,10 +86,12 @@ export { AGENT_TRIGGER_TYPES } from './constants/AgentTriggerTypes';export { APPLICATION_FILE_UPLOAD_BATCH_SIZE } from './constants/ApplicationFileUploadBatchSize';export { APPLICATION_WORKFLOW_UNAVAILABLE_STEP_TYPES } from './constants/ApplicationWorkflowUnavailableStepTypes';export { ASSETS_DIR } from './constants/AssetDirectory';+export { CONNECTION_PROVIDER_SCOPES } from './constants/ConnectionProviderScopes';export { DEFAULT_API_KEY_NAME } from './constants/DefaultApiKeyName';export { DEFAULT_API_URL_NAME } from './constants/DefaultApiUrlName';export { DEFAULT_APP_ACCESS_TOKEN_NAME } from './constants/DefaultAppAccessTokenName';export { DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME } from './constants/DefaultAppApplicationAccessTokenName';+export { DEFAULT_CONNECTION_PROVIDER_SCOPE } from './constants/DefaultConnectionProviderScope';export { DEFAULT_FUNCTIONS_URL_NAME } from './constants/DefaultFunctionsUrlName';export { DEFAULT_SETTINGS_MENU_ITEM_POSITION } from './constants/DefaultSettingsMenuItemPosition';export { FRONT_COMPONENT_SHARED_DEPENDENCIES_BUILT_PATH } from './constants/FrontComponentSharedDependenciesBuiltPath';@@ -275,6 +278,7 @@ export {} from './utils/getEffectiveObjectPermissionsFromRoleManifest';export { getRoleManifestGrantsNotCoveredBy } from './utils/getRoleManifestGrantsNotCoveredBy';export { getRowLevelRestrictionSignature } from './utils/getRowLevelRestrictionSignature';+export { isConnectionProviderScope } from './utils/isConnectionProviderScope';export { isFrontComponentWidgetPageLayoutType } from './utils/isFrontComponentWidgetPageLayoutType';export {RESERVED_SETTINGS_MENU_ITEM_TITLES,diff --git a/packages/twenty-shared/src/application/utils/isConnectionProviderScope.ts b/packages/twenty-shared/src/application/utils/isConnectionProviderScope.tsnew file mode 100644index 00000000000..e7c3d063512--- /dev/null+++ b/packages/twenty-shared/src/application/utils/isConnectionProviderScope.ts@@ -0,0 +1,7 @@+import { CONNECTION_PROVIDER_SCOPES } from '@/application/constants/ConnectionProviderScopes';+import { type ConnectionProviderScope } from '@/application/connectionProviderScopeType';++export const isConnectionProviderScope = (+ scope: string,+): scope is ConnectionProviderScope =>+ (CONNECTION_PROVIDER_SCOPES as readonly string[]).includes(scope);