Skip to content

The open alternative to Salesforce, designed for AI.

Rename connected account visibility to scope (#28172)

nitin9f7bae7c3f20
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index 0ad34ef37cb..ad32fde51ac 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -301,9 +301,10 @@ type AppConnection {
id: ID!
name: String!
providerName: String!
+ scope: ConnectedAccountScope!
scopes: [String!]!
userWorkspaceId: String!
- visibility: String!
+ visibility: String! @deprecated(reason: "Use scope instead.")
workspaceMemberId: String
}
@@ -403,10 +404,11 @@ type ApplicationConnectedAccountDTO {
lastSignedInAt: DateTime
name: String
provider: String!
+ scope: ConnectedAccountScope!
scopes: [String!]
updatedAt: DateTime!
userWorkspaceId: UUID!
- visibility: String!
+ visibility: String! @deprecated(reason: "Use scope instead.")
}
type ApplicationConnectionProvider {
@@ -1236,10 +1238,16 @@ type ConnectedAccountPublicDTO {
lastSignedInAt: DateTime
name: String
provider: String!
+ scope: ConnectedAccountScope!
scopes: [String!]
updatedAt: DateTime!
userWorkspaceId: UUID!
- visibility: String!
+ visibility: String! @deprecated(reason: "Use scope instead.")
+}
+
+enum ConnectedAccountScope {
+ USER
+ WORKSPACE
}
type ConnectedImapSmtpCaldavAccount {
@@ -2593,8 +2601,9 @@ type LineChartSeries {
input ListAppConnectionsInput {
providerName: String
+ scope: ConnectedAccountScope
userWorkspaceId: String
- visibility: String
+ visibility: String @deprecated(reason: "Use scope instead.")
}
input ListAppMessageChannelsInput {
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 9dc53abba1b..4c034c4c6a0 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -244,8 +244,10 @@ export interface AppConnection {
id: Scalars['ID']
name: Scalars['String']
providerName: Scalars['String']
+ scope: ConnectedAccountScope
scopes: Scalars['String'][]
userWorkspaceId: Scalars['String']
+ /** @deprecated Use scope instead. */
visibility: Scalars['String']
workspaceMemberId?: Scalars['String']
__typename: 'AppConnection'
@@ -331,9 +333,11 @@ export interface ApplicationConnectedAccountDTO {
lastSignedInAt?: Scalars['DateTime']
name?: Scalars['String']
provider: Scalars['String']
+ scope: ConnectedAccountScope
scopes?: Scalars['String'][]
updatedAt: Scalars['DateTime']
userWorkspaceId: Scalars['UUID']
+ /** @deprecated Use scope instead. */
visibility: Scalars['String']
__typename: 'ApplicationConnectedAccountDTO'
}
@@ -1119,13 +1123,17 @@ export interface ConnectedAccountPublicDTO {
lastSignedInAt?: Scalars['DateTime']
name?: Scalars['String']
provider: Scalars['String']
+ scope: ConnectedAccountScope
scopes?: Scalars['String'][]
updatedAt: Scalars['DateTime']
userWorkspaceId: Scalars['UUID']
+ /** @deprecated Use scope instead. */
visibility: Scalars['String']
__typename: 'ConnectedAccountPublicDTO'
}
+export type ConnectedAccountScope = 'USER' | 'WORKSPACE'
+
export interface ConnectedImapSmtpCaldavAccount {
connectionParameters?: ImapSmtpCaldavPublicConnectionParameters
handle: Scalars['String']
@@ -4222,8 +4230,10 @@ export interface AppConnectionGenqlSelection{
id?: boolean | number
name?: boolean | number
providerName?: boolean | number
+ scope?: boolean | number
scopes?: boolean | number
userWorkspaceId?: boolean | number
+ /** @deprecated Use scope instead. */
visibility?: boolean | number
workspaceMemberId?: boolean | number
__typename?: boolean | number
@@ -4314,9 +4324,11 @@ export interface ApplicationConnectedAccountDTOGenqlSelection{
lastSignedInAt?: boolean | number
name?: boolean | number
provider?: boolean | number
+ scope?: boolean | number
scopes?: boolean | number
updatedAt?: boolean | number
userWorkspaceId?: boolean | number
+ /** @deprecated Use scope instead. */
visibility?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
@@ -5148,9 +5160,11 @@ export interface ConnectedAccountPublicDTOGenqlSelection{
lastSignedInAt?: boolean | number
name?: boolean | number
provider?: boolean | number
+ scope?: boolean | number
scopes?: boolean | number
updatedAt?: boolean | number
userWorkspaceId?: boolean | number
+ /** @deprecated Use scope instead. */
visibility?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
@@ -5971,7 +5985,7 @@ export interface LineChartSeriesGenqlSelection{
__scalar?: boolean | number
}
-export interface ListAppConnectionsInput {providerName?: (Scalars['String'] | null),userWorkspaceId?: (Scalars['String'] | null),visibility?: (Scalars['String'] | null)}
+export interface ListAppConnectionsInput {providerName?: (Scalars['String'] | null),scope?: (ConnectedAccountScope | null),userWorkspaceId?: (Scalars['String'] | null),visibility?: (Scalars['String'] | null)}
export interface ListAppMessageChannelsInput {connectedAccountId?: (Scalars['UUID'] | null)}
@@ -11457,6 +11471,11 @@ export const enumCommandMenuItemAvailabilityType = {
RECORD_SELECTION: 'RECORD_SELECTION' as const
}
+export const enumConnectedAccountScope = {
+ USER: 'USER' as const,
+ WORKSPACE: 'WORKSPACE' as const
+}
+
export const enumConnectionProviderScope = {
USER: 'USER' as const,
WORKSPACE: 'WORKSPACE' as const
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index bc2d6bbca39..8dbca20e1b7 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -32,93 +32,94 @@ export default {
122,
124,
138,
- 143,
- 145,
- 188,
+ 142,
+ 144,
+ 146,
189,
- 216,
- 220,
+ 190,
+ 217,
221,
- 223,
- 233,
- 239,
- 243,
- 247,
- 250,
- 257,
- 272,
- 274,
- 284,
- 291,
+ 222,
+ 224,
+ 234,
+ 240,
+ 244,
+ 248,
+ 251,
+ 258,
+ 273,
+ 275,
+ 285,
292,
293,
- 304,
- 306,
- 320,
+ 294,
+ 305,
+ 307,
321,
322,
323,
324,
325,
- 327,
+ 326,
328,
329,
- 332,
+ 330,
333,
- 335,
+ 334,
336,
- 339,
- 341,
- 345,
- 349,
- 358,
- 365,
+ 337,
+ 340,
+ 342,
+ 346,
+ 350,
+ 359,
366,
367,
- 370,
- 374,
+ 368,
+ 371,
375,
- 380,
- 384,
- 405,
- 407,
+ 376,
+ 381,
+ 385,
+ 406,
408,
- 411,
- 416,
- 428,
- 430,
- 434,
- 439,
- 456,
- 468,
+ 409,
+ 412,
+ 417,
+ 429,
+ 431,
+ 435,
+ 440,
+ 457,
469,
- 471,
- 495,
- 497,
- 499,
- 559,
- 579,
- 586,
- 588,
- 592,
- 603,
- 609,
+ 470,
+ 472,
+ 496,
+ 498,
+ 500,
+ 560,
+ 580,
+ 587,
+ 589,
+ 593,
+ 604,
610,
- 612,
+ 611,
613,
- 615,
+ 614,
616,
617,
- 620,
+ 618,
621,
- 626,
- 628,
- 631,
- 636,
+ 622,
+ 627,
+ 629,
+ 632,
637,
638,
- 641,
- 642
+ 639,
+ 642,
+ 643
],
"types": {
"ActivateWorkspaceInput": {
@@ -135,7 +136,7 @@ export default {
1
],
"operationSignature": [
- 291
+ 292
],
"queryId": [
1
@@ -146,10 +147,10 @@ export default {
},
"Agent": {
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"description": [
1
@@ -158,7 +159,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isCustom": [
4
@@ -170,7 +171,7 @@ export default {
1
],
"modelConfiguration": [
- 291
+ 292
],
"modelId": [
1
@@ -182,16 +183,16 @@ export default {
1
],
"responseFormat": [
- 291
+ 292
],
"roleId": [
- 495
+ 496
],
"triggers": [
- 291
+ 292
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -200,7 +201,7 @@ export default {
"Boolean": {},
"AgentChatEvent": {
"event": [
- 291
+ 292
],
"threadId": [
1
@@ -239,10 +240,10 @@ export default {
8
],
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"id": [
10
@@ -266,7 +267,7 @@ export default {
8
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -276,28 +277,28 @@ export default {
"Float": {},
"AgentChatThreadParticipant": {
"archivedAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"isSubscribed": [
4
],
"lastMentionedAt": [
- 189
+ 190
],
"lastReadAt": [
- 189
+ 190
],
"snoozedUntil": [
- 189
+ 190
],
"threadId": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -305,7 +306,7 @@ export default {
},
"AgentIdInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -313,19 +314,19 @@ export default {
},
"AgentMessage": {
"agentId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"parts": [
15
],
"processedAt": [
- 189
+ 190
],
"reactions": [
16
@@ -334,19 +335,19 @@ export default {
1
],
"senderUserWorkspaceId": [
- 495
+ 496
],
"senderWorkspaceMemberId": [
- 495
+ 496
],
"status": [
1
],
"threadId": [
- 495
+ 496
],
"turnId": [
- 495
+ 496
],
"__typename": [
1
@@ -354,7 +355,7 @@ export default {
},
"AgentMessagePart": {
"createdAt": [
- 189
+ 190
],
"errorMessage": [
1
@@ -363,7 +364,7 @@ export default {
1
],
"fileId": [
- 495
+ 496
],
"fileMediaType": [
1
@@ -372,10 +373,10 @@ export default {
1
],
"id": [
- 495
+ 496
],
"messageId": [
- 495
+ 496
],
"orderIndex": [
8
@@ -384,7 +385,7 @@ export default {
4
],
"providerMetadata": [
- 291
+ 292
],
"reasoningContent": [
1
@@ -420,13 +421,13 @@ export default {
1
],
"toolInput": [
- 291
+ 292
],
"toolName": [
1
],
"toolOutput": [
- 291
+ 292
],
"type": [
1
@@ -440,7 +441,7 @@ export default {
1
],
"workspaceMemberIds": [
- 495
+ 496
],
"__typename": [
1
@@ -448,7 +449,7 @@ export default {
},
"AgentRun": {
"createdAt": [
- 189
+ 190
],
"creatorName": [
1
@@ -460,13 +461,13 @@ export default {
11
],
"endedAt": [
- 189
+ 190
],
"errorMessage": [
1
],
"id": [
- 495
+ 496
],
"input": [
1
@@ -484,13 +485,13 @@ export default {
1
],
"startedAt": [
- 189
+ 190
],
"status": [
18
],
"threadId": [
- 495
+ 496
],
"threadTitle": [
1
@@ -505,13 +506,13 @@ export default {
"AgentTurnStatus": {},
"AggregateChartConfiguration": {
"aggregateFieldMetadataId": [
- 495
+ 496
],
"aggregateOperation": [
20
],
"configurationType": [
- 620
+ 621
],
"description": [
1
@@ -520,7 +521,7 @@ export default {
4
],
"filter": [
- 291
+ 292
],
"firstDayOfTheWeek": [
8
@@ -535,7 +536,7 @@ export default {
1
],
"ratioAggregateConfig": [
- 400
+ 401
],
"suffix": [
1
@@ -559,7 +560,7 @@ export default {
81
],
"periodEnd": [
- 189
+ 190
],
"__typename": [
1
@@ -611,25 +612,25 @@ export default {
},
"ApiKey": {
"createdAt": [
- 189
+ 190
],
"expiresAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"name": [
1
],
"revokedAt": [
- 189
+ 190
],
"role": [
- 422
+ 423
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -637,16 +638,16 @@ export default {
},
"ApiKeyForRole": {
"expiresAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"name": [
1
],
"revokedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -685,6 +686,9 @@ export default {
"providerName": [
1
],
+ "scope": [
+ 142
+ ],
"scopes": [
1
],
@@ -709,7 +713,7 @@ export default {
34
],
"value": [
- 291
+ 292
],
"__typename": [
1
@@ -724,7 +728,7 @@ export default {
36
],
"receivedAt": [
- 189
+ 190
],
"subject": [
1
@@ -747,13 +751,13 @@ export default {
1
],
"personId": [
- 495
+ 496
],
"role": [
- 329
+ 330
],
"workspaceMemberId": [
- 495
+ 496
],
"__typename": [
1
@@ -767,7 +771,7 @@ export default {
58
],
"applicationRegistrationId": [
- 495
+ 496
],
"applicationVariables": [
61
@@ -776,7 +780,7 @@ export default {
4
],
"availablePackages": [
- 291
+ 292
],
"canBeUninstalled": [
4
@@ -785,10 +789,10 @@ export default {
137
],
"createdAt": [
- 189
+ 190
],
"defaultLogicFunctionRole": [
- 422
+ 423
],
"defaultRoleId": [
1
@@ -797,22 +801,22 @@ export default {
1
],
"frontComponents": [
- 264
+ 265
],
"healthCheckLogicFunctionId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"isUninstallBlockedByOtherWorkspaceInstallations": [
4
],
"logicFunctions": [
- 303
+ 304
],
"logoFileId": [
- 495
+ 496
],
"logoUrl": [
1
@@ -821,19 +825,19 @@ export default {
1
],
"objects": [
- 351
+ 352
],
"packageJsonChecksum": [
1
],
"packageJsonFileId": [
- 495
+ 496
],
"settingsCustomTabFrontComponentId": [
- 495
+ 496
],
"settingsMenuItems": [
- 455
+ 456
],
"universalIdentifier": [
1
@@ -845,7 +849,7 @@ export default {
1
],
"yarnLockFileId": [
- 495
+ 496
],
"__typename": [
1
@@ -853,7 +857,7 @@ export default {
},
"ApplicationAuthorization": {
"applicationId": [
- 495
+ 496
],
"applicationName": [
1
@@ -862,22 +866,22 @@ export default {
1
],
"createdAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"lastAuthorizedAt": [
- 189
+ 190
],
"lastUsedAt": [
- 189
+ 190
],
"scopes": [
1
],
"workspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -888,7 +892,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -896,25 +900,25 @@ export default {
},
"ApplicationConnectedAccountDTO": {
"applicationId": [
- 495
+ 496
],
"archivedAt": [
- 189
+ 190
],
"authFailedAt": [
- 189
+ 190
],
"authFailedReason": [
1
],
"connectionParameters": [
- 396
+ 397
],
"connectionProviderId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"handle": [
1
@@ -923,16 +927,16 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isOwnedByCurrentUser": [
4
],
"lastCredentialsRefreshedAt": [
- 189
+ 190
],
"lastSignedInAt": [
- 189
+ 190
],
"name": [
1
@@ -940,14 +944,17 @@ export default {
"provider": [
1
],
+ "scope": [
+ 142
+ ],
"scopes": [
1
],
"updatedAt": [
- 189
+ 190
],
"userWorkspaceId": [
- 495
+ 496
],
"visibility": [
1
@@ -964,7 +971,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"logoUrl": [
1
@@ -976,7 +983,7 @@ export default {
42
],
"scope": [
- 145
+ 146
],
"type": [
1
@@ -1007,7 +1014,7 @@ export default {
47
],
"manifest": [
- 291
+ 292
],
"__typename": [
1
@@ -1061,7 +1068,7 @@ export default {
},
"ApplicationFileCompletionError": {
"fileId": [
- 495
+ 496
],
"message": [
1
@@ -1072,7 +1079,7 @@ export default {
},
"ApplicationFileUploadError": {
"fileFolder": [
- 257
+ 258
],
"filePath": [
1
@@ -1086,7 +1093,7 @@ export default {
},
"ApplicationFileUploadRequestInput": {
"fileFolder": [
- 257
+ 258
],
"filePath": [
1
@@ -1103,13 +1110,13 @@ export default {
1
],
"expiresAt": [
- 189
+ 190
],
"fileFolder": [
- 257
+ 258
],
"fileId": [
- 495
+ 496
],
"filePath": [
1
@@ -1152,13 +1159,13 @@ export default {
"ApplicationHealthStatus": {},
"ApplicationRegistration": {
"createdAt": [
- 189
+ 190
],
"galleryImagesUrls": [
1
],
"id": [
- 495
+ 496
],
"isConfigured": [
4
@@ -1191,7 +1198,7 @@ export default {
1
],
"ownerWorkspaceId": [
- 495
+ 496
],
"sourcePackage": [
1
@@ -1203,7 +1210,7 @@ export default {
1
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -1224,7 +1231,7 @@ export default {
8
],
"versionDistribution": [
- 601
+ 602
],
"__typename": [
1
@@ -1232,7 +1239,7 @@ export default {
},
"ApplicationRegistrationSummary": {
"id": [
- 495
+ 496
],
"latestAvailableVersion": [
1
@@ -1249,13 +1256,13 @@ export default {
},
"ApplicationRegistrationVariable": {
"createdAt": [
- 189
+ 190
],
"description": [
1
],
"id": [
- 495
+ 496
],
"isDeprecated": [
4
@@ -1273,13 +1280,13 @@ export default {
1
],
"options": [
- 291
+ 292
],
"type": [
1
],
"updatedAt": [
- 189
+ 190
],
"value": [
1
@@ -1304,7 +1311,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isDeprecated": [
4
@@ -1322,7 +1329,7 @@ export default {
1
],
"options": [
- 291
+ 292
],
"scope": [
62
@@ -1340,13 +1347,13 @@ export default {
"ApplicationVariableScope": {},
"ApprovedAccessDomain": {
"createdAt": [
- 189
+ 190
],
"domain": [
1
],
"id": [
- 495
+ 496
],
"isValidated": [
4
@@ -1383,7 +1390,7 @@ export default {
4
],
"sso": [
- 438
+ 439
],
"__typename": [
1
@@ -1391,7 +1398,7 @@ export default {
},
"AuthToken": {
"expiresAt": [
- 189
+ 190
],
"token": [
1
@@ -1443,7 +1450,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"inviteHash": [
1
@@ -1458,10 +1465,10 @@ export default {
1
],
"sso": [
- 437
+ 438
],
"workspaceUrls": [
- 643
+ 644
],
"__typename": [
1
@@ -1492,7 +1499,7 @@ export default {
"AxisNameDisplay": {},
"BarChartConfiguration": {
"aggregateFieldMetadataId": [
- 495
+ 496
],
"aggregateOperation": [
20
@@ -1504,7 +1511,7 @@ export default {
1
],
"configurationType": [
- 620
+ 621
],
"description": [
1
@@ -1516,7 +1523,7 @@ export default {
4
],
"filter": [
- 291
+ 292
],
"firstDayOfTheWeek": [
8
@@ -1537,10 +1544,10 @@ export default {
4
],
"primaryAxisDateGranularity": [
- 365
+ 366
],
"primaryAxisGroupByFieldMetadataId": [
- 495
+ 496
],
"primaryAxisGroupBySubFieldName": [
1
@@ -1549,7 +1556,7 @@ export default {
1
],
"primaryAxisOrderBy": [
- 272
+ 273
],
"rangeMax": [
11
@@ -1558,10 +1565,10 @@ export default {
11
],
"secondaryAxisGroupByDateGranularity": [
- 365
+ 366
],
"secondaryAxisGroupByFieldMetadataId": [
- 495
+ 496
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -1570,7 +1577,7 @@ export default {
1
],
"secondaryAxisOrderBy": [
- 272
+ 273
],
"splitMultiValueFields": [
4
@@ -1584,10 +1591,10 @@ export default {
},
"BarChartData": {
"data": [
- 291
+ 292
],
"formattedToRawLookup": [
- 291
+ 292
],
"groupMode": [
78
@@ -1625,10 +1632,10 @@ export default {
},
"BarChartDataInput": {
"configuration": [
- 291
+ 292
],
"objectMetadataId": [
- 495
+ 496
],
"__typename": [
1
@@ -1670,10 +1677,10 @@ export default {
4
],
"id": [
- 495
+ 496
],
"userCreditsFallback": [
- 592
+ 593
],
"__typename": [
1
@@ -1693,7 +1700,7 @@ export default {
4
],
"status": [
- 469
+ 470
],
"__typename": [
1
@@ -1800,7 +1807,7 @@ export default {
108
],
"recurringInterval": [
- 468
+ 469
],
"stripePriceId": [
1
@@ -1817,7 +1824,7 @@ export default {
108
],
"recurringInterval": [
- 468
+ 469
],
"stripePriceId": [
1
@@ -1903,10 +1910,10 @@ export default {
},
"BillingResourceCreditUsage": {
"periodEnd": [
- 189
+ 190
],
"periodStart": [
- 189
+ 190
],
"productKey": [
97
@@ -1946,28 +1953,28 @@ export default {
103
],
"cancelAt": [
- 189
+ 190
],
"collectionMethod": [
102
],
"currentPeriodEnd": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"interval": [
- 468
+ 469
],
"metadata": [
- 291
+ 292
],
"phases": [
104
],
"status": [
- 469
+ 470
],
"__typename": [
1
@@ -1985,7 +1992,7 @@ export default {
4
],
"id": [
- 495
+ 496
],
"quantity": [
11
@@ -2061,19 +2068,19 @@ export default {
},
"CalendarChannel": {
"connectedAccountId": [
- 495
+ 496
],
"contactAutoCreationPolicy": [
111
],
"createdAt": [
- 189
+ 190
],
"handle": [
1
],
"id": [
- 495
+ 496
],
"isContactAutoCreationEnabled": [
4
@@ -2085,19 +2092,19 @@ export default {
112
],
"syncStageStartedAt": [
- 189
+ 190
],
"syncStatus": [
113
],
"syncedAt": [
- 189
+ 190
],
"throttleFailureCount": [
11
],
"updatedAt": [
- 189
+ 190
],
"visibility": [
114
@@ -2112,7 +2119,7 @@ export default {
"CalendarChannelVisibility": {},
"CalendarConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -2120,7 +2127,7 @@ export default {
},
"CallRecordingSummaryConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -2128,7 +2135,7 @@ export default {
},
"CallRecordingTranscriptConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -2205,7 +2212,7 @@ export default {
"ChartNumberFormat": {},
"ChatConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -2213,7 +2220,7 @@ export default {
},
"ChatStreamCatchupChunks": {
"chunks": [
- 291
+ 292
],
"error": [
127
@@ -2238,7 +2245,7 @@ export default {
},
"ChatThreadsConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -2363,7 +2370,7 @@ export default {
11
],
"modelFamily": [
- 345
+ 346
],
"modelFamilyLabel": [
1
@@ -2372,7 +2379,7 @@ export default {
1
],
"nativeCapabilities": [
- 347
+ 348
],
"outputCostPerMillionTokens": [
11
@@ -2505,13 +2512,13 @@ export default {
135
],
"publicFeatureFlags": [
- 394
+ 395
],
"publicFunctionDomain": [
1
],
"sentry": [
- 453
+ 454
],
"serverUrl": [
1
@@ -2520,7 +2527,7 @@ export default {
4
],
"support": [
- 470
+ 471
],
"__typename": [
1
@@ -2528,13 +2535,13 @@ export default {
},
"ClientConfigMaintenanceMode": {
"endAt": [
- 189
+ 190
],
"link": [
1
],
"startAt": [
- 189
+ 190
],
"__typename": [
1
@@ -2553,10 +2560,10 @@ export default {
},
"CommandMenuItem": {
"applicationId": [
- 495
+ 496
],
"availabilityObjectMetadataId": [
- 495
+ 496
],
"availabilityType": [
138
@@ -2568,19 +2575,19 @@ export default {
1
],
"coreWorkflowVersionId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"engineComponentKey": [
- 223
+ 224
],
"frontComponent": [
- 264
+ 265
],
"frontComponentId": [
- 495
+ 496
],
"hotKeys": [
1
@@ -2589,7 +2596,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -2601,10 +2608,10 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 495
+ 496
],
"pageLayoutId": [
- 495
+ 496
],
"payload": [
139
@@ -2616,13 +2623,13 @@ export default {
1
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"workflowVersionId": [
- 495
+ 496
],
"__typename": [
1
@@ -2631,10 +2638,10 @@ export default {
"CommandMenuItemAvailabilityType": {},
"CommandMenuItemPayload": {
"on_ObjectMetadataCommandMenuItemPayload": [
- 357
+ 358
],
"on_PathCommandMenuItemPayload": [
- 382
+ 383
],
"__typename": [
1
@@ -2645,7 +2652,7 @@ export default {
48
],
"files": [
- 255
+ 256
],
"__typename": [
1
@@ -2653,25 +2660,25 @@ export default {
},
"ConnectedAccountPublicDTO": {
"applicationId": [
- 495
+ 496
],
"archivedAt": [
- 189
+ 190
],
"authFailedAt": [
- 189
+ 190
],
"authFailedReason": [
1
],
"connectionParameters": [
- 396
+ 397
],
"connectionProviderId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"handle": [
1
@@ -2680,13 +2687,13 @@ export default {
1
],
"id": [
- 495
+ 496
],
"lastCredentialsRefreshedAt": [
- 189
+ 190
],
"lastSignedInAt": [
- 189
+ 190
],
"name": [
1
@@ -2694,14 +2701,17 @@ export default {
"provider": [
1
],
+ "scope": [
+ 142
+ ],
"scopes": [
1
],
"updatedAt": [
- 189
+ 190
],
"userWorkspaceId": [
- 495
+ 496
],
"visibility": [
1
@@ -2710,21 +2720,22 @@ export default {
1
]
},
+ "ConnectedAccountScope": {},
"ConnectedImapSmtpCaldavAccount": {
"connectionParameters": [
- 277
+ 278
],
"handle": [
1
],
"id": [
- 495
+ 496
],
"provider": [
1
],
"userWorkspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -2733,7 +2744,7 @@ export default {
"ConnectionCursor": {},
"ConnectionParametersInput": {
"connectionSecurity": [
- 216
+ 217
],
"host": [
1
@@ -2763,7 +2774,7 @@ export default {
1
],
"modelConfiguration": [
- 291
+ 292
],
"modelId": [
1
@@ -2775,13 +2786,13 @@ export default {
1
],
"responseFormat": [
- 291
+ 292
],
"roleId": [
- 495
+ 496
],
"triggers": [
- 291
+ 292
],
"__typename": [
1
@@ -2798,7 +2809,7 @@ export default {
1
],
"roleId": [
- 495
+ 496
],
"__typename": [
1
@@ -2806,7 +2817,7 @@ export default {
},
"CreateAppMessageChannelInput": {
"connectedAccountId": [
- 495
+ 496
],
"displayName": [
1
@@ -2815,7 +2826,7 @@ export default {
1
],
"visibility": [
- 325
+ 326
],
"__typename": [
1
@@ -2931,7 +2942,7 @@ export default {
},
"CreateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 495
+ 496
],
"availabilityType": [
138
@@ -2943,13 +2954,13 @@ export default {
1
],
"coreWorkflowVersionId": [
- 495
+ 496
],
"engineComponentKey": [
- 223
+ 224
],
"frontComponentId": [
- 495
+ 496
],
"hotKeys": [
1
@@ -2964,13 +2975,13 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 495
+ 496
],
"pageLayoutId": [
- 495
+ 496
],
"payload": [
- 291
+ 292
],
"position": [
11
@@ -2979,7 +2990,7 @@ export default {
1
],
"workflowVersionId": [
- 495
+ 496
],
"__typename": [
1
@@ -3001,7 +3012,7 @@ export default {
1
],
"messageChannel": [
- 319
+ 320
],
"__typename": [
1
@@ -3017,7 +3028,7 @@ export default {
},
"CreateFieldInput": {
"defaultValue": [
- 291
+ 292
],
"description": [
1
@@ -3059,25 +3070,25 @@ export default {
1
],
"morphRelationsCreationPayload": [
- 291
+ 292
],
"name": [
1
],
"objectMetadataId": [
- 495
+ 496
],
"options": [
- 291
+ 292
],
"relationCreationPayload": [
- 291
+ 292
],
"settings": [
- 291
+ 292
],
"type": [
- 250
+ 251
],
"__typename": [
1
@@ -3097,7 +3108,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"name": [
1
@@ -3111,7 +3122,7 @@ export default {
},
"CreateIndexFieldInput": {
"fieldMetadataId": [
- 495
+ 496
],
"subFieldName": [
1
@@ -3122,13 +3133,13 @@ export default {
},
"CreateIndexInput": {
"fields": [
- 161
+ 162
],
"indexType": [
- 284
+ 285
],
"objectMetadataId": [
- 495
+ 496
],
"__typename": [
1
@@ -3136,40 +3147,40 @@ export default {
},
"CreateLogicFunctionFromSourceInput": {
"cronTriggerSettings": [
- 291
+ 292
],
"databaseEventTriggerSettings": [
- 291
+ 292
],
"description": [
1
],
"httpRouteTriggerSettings": [
- 291
+ 292
],
"id": [
- 495
+ 496
],
"name": [
1
],
"serverRouteTriggerSettings": [
- 291
+ 292
],
"source": [
- 291
+ 292
],
"timeoutSeconds": [
11
],
"toolTriggerSettings": [
- 291
+ 292
],
"universalIdentifier": [
- 495
+ 496
],
"workflowActionTriggerSettings": [
- 291
+ 292
],
"__typename": [
1
@@ -3180,7 +3191,7 @@ export default {
1
],
"unsubscribeTopicId": [
- 495
+ 496
],
"__typename": [
1
@@ -3191,13 +3202,13 @@ export default {
1
],
"folderId": [
- 495
+ 496
],
"icon": [
1
],
"id": [
- 495
+ 496
],
"link": [
1
@@ -3206,25 +3217,25 @@ export default {
1
],
"pageLayoutId": [
- 495
+ 496
],
"position": [
11
],
"targetObjectMetadataId": [
- 495
+ 496
],
"targetRecordId": [
- 495
+ 496
],
"type": [
- 349
+ 350
],
"userWorkspaceId": [
- 495
+ 496
],
"viewId": [
- 495
+ 496
],
"__typename": [
1
@@ -3262,7 +3273,7 @@ export default {
1
],
"primaryKeyFieldMetadataSettings": [
- 291
+ 292
],
"shortcut": [
1
@@ -3276,7 +3287,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 159
+ 160
],
"__typename": [
1
@@ -3284,7 +3295,7 @@ export default {
},
"CreateOneIndexInput": {
"index": [
- 162
+ 163
],
"__typename": [
1
@@ -3292,7 +3303,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 166
+ 167
],
"__typename": [
1
@@ -3303,10 +3314,10 @@ export default {
1
],
"objectMetadataId": [
- 495
+ 496
],
"type": [
- 375
+ 376
],
"__typename": [
1
@@ -3314,10 +3325,10 @@ export default {
},
"CreatePageLayoutTabInput": {
"layoutMode": [
- 374
+ 375
],
"pageLayoutId": [
- 495
+ 496
],
"position": [
11
@@ -3331,22 +3342,22 @@ export default {
},
"CreatePageLayoutWidgetInput": {
"configuration": [
- 291
+ 292
],
"objectMetadataId": [
- 495
+ 496
],
"pageLayoutTabId": [
- 495
+ 496
],
"position": [
- 291
+ 292
],
"title": [
1
],
"type": [
- 621
+ 622
],
"__typename": [
1
@@ -3354,16 +3365,16 @@ export default {
},
"CreateRecordExportInput": {
"fieldMetadataIds": [
- 495
+ 496
],
"filter": [
- 291
+ 292
],
"objectMetadataId": [
- 495
+ 496
],
"orderBy": [
- 291
+ 292
],
"__typename": [
1
@@ -3424,7 +3435,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"label": [
1
@@ -3444,7 +3455,7 @@ export default {
1
],
"visibility": [
- 499
+ 500
],
"__typename": [
1
@@ -3461,7 +3472,7 @@ export default {
81
],
"operationType": [
- 579
+ 580
],
"periodCount": [
8
@@ -3470,7 +3481,7 @@ export default {
1
],
"resourceType": [
- 586
+ 587
],
"spenderId": [
1
@@ -3479,7 +3490,7 @@ export default {
1
],
"unit": [
- 588
+ 589
],
"__typename": [
1
@@ -3490,7 +3501,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 495
+ 496
],
"expression": [
1
@@ -3508,7 +3519,7 @@ export default {
1
],
"objectMetadataId": [
- 495
+ 496
],
"__typename": [
1
@@ -3516,7 +3527,7 @@ export default {
},
"CreateViewFieldGroupInput": {
"id": [
- 495
+ 496
],
"isVisible": [
4
@@ -3528,7 +3539,7 @@ export default {
11
],
"viewId": [
- 495
+ 496
],
"__typename": [
1
@@ -3539,10 +3550,10 @@ export default {
20
],
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"isVisible": [
4
@@ -3554,10 +3565,10 @@ export default {
11
],
"viewFieldGroupId": [
- 495
+ 496
],
"viewId": [
- 495
+ 496
],
"__typename": [
1
@@ -3565,19 +3576,19 @@ export default {
},
"CreateViewFilterGroupInput": {
"id": [
- 495
+ 496
],
"logicalOperator": [
- 609
+ 610
],
"parentViewFilterGroupId": [
- 495
+ 496
],
"positionInViewFilterGroup": [
11
],
"viewId": [
- 495
+ 496
],
"__typename": [
1
@@ -3585,31 +3596,31 @@ export default {
},
"CreateViewFilterInput": {
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"operand": [
- 610
+ 611
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 495
+ 496
],
"subFieldName": [
1
],
"value": [
- 291
+ 292
],
"viewFilterGroupId": [
- 495
+ 496
],
"viewId": [
- 495
+ 496
],
"__typename": [
1
@@ -3620,7 +3631,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isVisible": [
4
@@ -3629,7 +3640,7 @@ export default {
11
],
"viewId": [
- 495
+ 496
],
"__typename": [
1
@@ -3640,13 +3651,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 495
+ 496
],
"calendarFieldMetadataId": [
- 495
+ 496
],
"calendarLayout": [
- 603
+ 604
],
"groupLoadLimit": [
8
@@ -3655,7 +3666,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isCompact": [
4
@@ -3664,25 +3675,25 @@ export default {
20
],
"kanbanAggregateOperationFieldMetadataId": [
- 495
+ 496
],
"kanbanColumnWidth": [
8
],
"key": [
- 612
+ 613
],
"mainGroupByFieldMetadataId": [
- 495
+ 496
],
"name": [
1
],
"objectMetadataId": [
- 495
+ 496
],
"openRecordIn": [
- 613
+ 614
],
"position": [
11
@@ -3691,10 +3702,10 @@ export default {
4
],
"type": [
- 616
+ 617
],
"visibility": [
- 617
+ 618
],
"__typename": [
1
@@ -3702,19 +3713,19 @@ export default {
},
"CreateViewSortInput": {
"direction": [
- 615
+ 616
],
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"subFieldName": [
1
],
"viewId": [
- 495
+ 496
],
"__typename": [
1
@@ -3725,7 +3736,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"operations": [
1
@@ -3742,10 +3753,10 @@ export default {
},
"CursorPaging": {
"after": [
- 143
+ 144
],
"before": [
- 143
+ 144
],
"first": [
8
@@ -3761,7 +3772,7 @@ export default {
"DateTime": {},
"DeleteApprovedAccessDomainInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3769,7 +3780,7 @@ export default {
},
"DeleteOneFieldInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3777,7 +3788,7 @@ export default {
},
"DeleteOneIndexInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3785,7 +3796,7 @@ export default {
},
"DeleteOneObjectInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3793,7 +3804,7 @@ export default {
},
"DeleteSso": {
"identityProviderId": [
- 495
+ 496
],
"__typename": [
1
@@ -3801,7 +3812,7 @@ export default {
},
"DeleteSsoInput": {
"identityProviderId": [
- 495
+ 496
],
"__typename": [
1
@@ -3817,7 +3828,7 @@ export default {
},
"DeleteViewFieldGroupInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3825,7 +3836,7 @@ export default {
},
"DeleteViewFieldInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3833,7 +3844,7 @@ export default {
},
"DeleteViewFilterInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3841,7 +3852,7 @@ export default {
},
"DeleteViewGroupInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3849,7 +3860,7 @@ export default {
},
"DeleteViewSortInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3860,16 +3871,16 @@ export default {
1
],
"id": [
- 495
+ 496
],
"name": [
- 267
+ 268
],
"userEmail": [
1
],
"userWorkspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -3877,7 +3888,7 @@ export default {
},
"DestroyViewFieldGroupInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3885,7 +3896,7 @@ export default {
},
"DestroyViewFieldInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3893,7 +3904,7 @@ export default {
},
"DestroyViewFilterInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3901,7 +3912,7 @@ export default {
},
"DestroyViewGroupInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3909,7 +3920,7 @@ export default {
},
"DestroyViewSortInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -3951,13 +3962,13 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isCustomDomainEnabled": [
4
],
"records": [
- 209
+ 210
],
"__typename": [
1
@@ -3968,10 +3979,10 @@ export default {
1
],
"id": [
- 495
+ 496
],
"pageLayoutId": [
- 495
+ 496
],
"position": [
11
@@ -3994,7 +4005,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"memberCount": [
11
@@ -4014,7 +4025,7 @@ export default {
},
"EditSso": {
"id": [
- 495
+ 496
],
"issuer": [
1
@@ -4023,10 +4034,10 @@ export default {
1
],
"status": [
- 439
+ 440
],
"type": [
- 274
+ 275
],
"__typename": [
1
@@ -4034,10 +4045,10 @@ export default {
},
"EditSsoInput": {
"id": [
- 495
+ 496
],
"status": [
- 439
+ 440
],
"__typename": [
1
@@ -4045,13 +4056,13 @@ export default {
},
"EmailAccountConnectionParameters": {
"CALDAV": [
- 144
+ 145
],
"IMAP": [
- 144
+ 145
],
"SMTP": [
- 144
+ 145
],
"name": [
1
@@ -4071,7 +4082,7 @@ export default {
},
"EmailThreadConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -4079,31 +4090,31 @@ export default {
},
"EmailingDomain": {
"createdAt": [
- 189
+ 190
],
"domain": [
1
],
"id": [
- 495
+ 496
],
"status": [
- 220
+ 221
],
"tenantStatus": [
- 221
+ 222
],
"unsubscribeHostnameStatus": [
- 497
+ 498
],
"updatedAt": [
- 189
+ 190
],
"verificationRecords": [
- 598
+ 599
],
"verifiedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -4113,7 +4124,7 @@ export default {
"EmailingDomainTenantStatus": {},
"EmailsConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -4131,7 +4142,7 @@ export default {
1
],
"payload": [
- 291
+ 292
],
"retryLimit": [
8
@@ -4145,7 +4156,7 @@ export default {
1
],
"payload": [
- 291
+ 292
],
"__typename": [
1
@@ -4170,13 +4181,13 @@ export default {
8
],
"jobs": [
- 225
+ 226
],
"logicFunctionUniversalIdentifier": [
1
],
"payloads": [
- 291
+ 292
],
"retryLimit": [
8
@@ -4204,7 +4215,7 @@ export default {
},
"EnterpriseLicenseInfoDTO": {
"expiresAt": [
- 189
+ 190
],
"isValid": [
4
@@ -4221,13 +4232,13 @@ export default {
},
"EnterpriseSubscriptionStatusDTO": {
"cancelAt": [
- 189
+ 190
],
"currentPeriodEnd": [
- 189
+ 190
],
"expiresAt": [
- 189
+ 190
],
"isCancellationScheduled": [
4
@@ -4244,10 +4255,10 @@ export default {
},
"EventLogDateRangeInput": {
"end": [
- 189
+ 190
],
"start": [
- 189
+ 190
],
"__typename": [
1
@@ -4258,7 +4269,7 @@ export default {
1
],
"operand": [
- 233
+ 234
],
"values": [
1
@@ -4270,13 +4281,13 @@ export default {
"EventLogFilterOperand": {},
"EventLogFiltersInput": {
"dateRange": [
- 231
+ 232
],
"eventType": [
1
],
"fieldFilters": [
- 232
+ 233
],
"objectMetadataId": [
1
@@ -4307,13 +4318,13 @@ export default {
1
],
"filters": [
- 234
+ 235
],
"first": [
8
],
"table": [
- 239
+ 240
],
"__typename": [
1
@@ -4321,10 +4332,10 @@ export default {
},
"EventLogQueryResult": {
"pageInfo": [
- 235
+ 236
],
"records": [
- 238
+ 239
],
"totalCount": [
8
@@ -4344,13 +4355,13 @@ export default {
1
],
"properties": [
- 291
+ 292
],
"recordId": [
1
],
"timestamp": [
- 189
+ 190
],
"userId": [
1
@@ -4365,13 +4376,13 @@ export default {
1
],
"metadataEvents": [
- 334
+ 335
],
"objectRecordEventsWithQueryIds": [
- 364
+ 365
],
"queueJobEvents": [
- 294
+ 295
],
"__typename": [
1
@@ -4379,10 +4390,10 @@ export default {
},
"ExecuteOneLogicFunctionInput": {
"id": [
- 495
+ 496
],
"payload": [
- 291
+ 292
],
"__typename": [
1
@@ -4390,7 +4401,7 @@ export default {
},
"FeatureFlag": {
"key": [
- 243
+ 244
],
"value": [
4
@@ -4402,13 +4413,13 @@ export default {
"FeatureFlagKey": {},
"Field": {
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"defaultValue": [
- 291
+ 292
],
"description": [
1
@@ -4417,7 +4428,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -4450,40 +4461,40 @@ export default {
1
],
"morphId": [
- 495
+ 496
],
"morphRelations": [
- 415
+ 416
],
"name": [
1
],
"object": [
- 351
+ 352
],
"objectMetadataId": [
- 495
+ 496
],
"options": [
- 291
+ 292
],
"relation": [
- 415
+ 416
],
"settings": [
- 291
+ 292
],
"type": [
- 250
+ 251
],
"universalIdentifier": [
1
],
"updatedAt": [
- 189
+ 190
],
"writability": [
- 341
+ 342
],
"__typename": [
1
@@ -4491,10 +4502,10 @@ export default {
},
"FieldConfiguration": {
"configurationType": [
- 620
+ 621
],
"fieldDisplayMode": [
- 247
+ 248
],
"fieldMetadataId": [
1
@@ -4514,10 +4525,10 @@ export default {
},
"FieldConnection": {
"edges": [
- 248
+ 249
],
"pageInfo": [
- 371
+ 372
],
"__typename": [
1
@@ -4526,10 +4537,10 @@ export default {
"FieldDisplayMode": {},
"FieldEdge": {
"cursor": [
- 143
+ 144
],
"node": [
- 244
+ 245
],
"__typename": [
1
@@ -4537,10 +4548,10 @@ export default {
},
"FieldFilter": {
"and": [
- 249
+ 250
],
"id": [
- 496
+ 497
],
"isActive": [
109
@@ -4555,10 +4566,10 @@ export default {
109
],
"objectMetadataId": [
- 496
+ 497
],
"or": [
- 249
+ 250
],
"__typename": [
1
@@ -4573,16 +4584,16 @@ export default {
4
],
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"objectMetadataId": [
- 495
+ 496
],
"roleId": [
- 495
+ 496
],
"__typename": [
1
@@ -4596,10 +4607,10 @@ export default {
4
],
"fieldMetadataId": [
- 495
+ 496
],
"objectMetadataId": [
- 495
+ 496
],
"__typename": [
1
@@ -4607,7 +4618,7 @@ export default {
},
"FieldRichTextConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -4615,7 +4626,7 @@ export default {
},
"FieldsConfiguration": {
"configurationType": [
- 620
+ 621
],
"newFieldDefaultVisibility": [
4
@@ -4632,10 +4643,10 @@ export default {
},
"File": {
"createdAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"path": [
1
@@ -4652,7 +4663,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -4664,10 +4675,10 @@ export default {
1
],
"expiresAt": [
- 189
+ 190
],
"fileId": [
- 495
+ 496
],
"uploadUrl": [
1
@@ -4678,10 +4689,10 @@ export default {
},
"FileWithSignedUrl": {
"createdAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"path": [
1
@@ -4698,7 +4709,7 @@ export default {
},
"FilesConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -4706,7 +4717,7 @@ export default {
},
"FindAvailableSSOIDP": {
"id": [
- 495
+ 496
],
"issuer": [
1
@@ -4715,13 +4726,13 @@ export default {
1
],
"status": [
- 439
+ 440
],
"type": [
- 274
+ 275
],
"workspace": [
- 640
+ 641
],
"__typename": [
1
@@ -4735,13 +4746,13 @@ export default {
8
],
"reason": [
- 332
+ 333
],
"searchTerm": [
1
],
"unsubscribeTopicId": [
- 495
+ 496
],
"__typename": [
1
@@ -4749,7 +4760,7 @@ export default {
},
"FormFieldConfiguration": {
"configurationType": [
- 620
+ 621
],
"fieldMetadataId": [
1
@@ -4763,7 +4774,7 @@ export default {
1
],
"applicationId": [
- 495
+ 496
],
"applicationName": [
1
@@ -4772,7 +4783,7 @@ export default {
60
],
"applicationVariables": [
- 291
+ 292
],
"builtComponentChecksum": [
1
@@ -4784,7 +4795,7 @@ export default {
1
],
"createdAt": [
- 189
+ 190
],
"description": [
1
@@ -4793,7 +4804,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isHeadless": [
4
@@ -4805,16 +4816,16 @@ export default {
1
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"usesSdkClient": [
4
],
"widgetAvailability": [
- 266
+ 267
],
"__typename": [
1
@@ -4822,13 +4833,13 @@ export default {
},
"FrontComponentConfiguration": {
"configurationType": [
- 620
+ 621
],
"frontComponentId": [
- 495
+ 496
],
"headerCommandMenuItemUniversalIdentifiers": [
- 495
+ 496
],
"__typename": [
1
@@ -4836,10 +4847,10 @@ export default {
},
"FrontComponentWidgetAvailability": {
"objectMetadataId": [
- 495
+ 496
],
"pageLayoutType": [
- 375
+ 376
],
"__typename": [
1
@@ -4858,7 +4869,7 @@ export default {
},
"GetApiKeyInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -4869,7 +4880,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"type": [
1
@@ -4880,7 +4891,7 @@ export default {
},
"GetAuthorizationUrlForSSOInput": {
"identityProviderId": [
- 495
+ 496
],
"workspaceInviteHash": [
1
@@ -4891,7 +4902,7 @@ export default {
},
"GrantApplicationCapabilitiesInput": {
"applicationId": [
- 495
+ 496
],
"capabilities": [
1
@@ -4921,7 +4932,7 @@ export default {
"IdentityProviderType": {},
"IframeConfiguration": {
"configurationType": [
- 620
+ 621
],
"url": [
1
@@ -4943,13 +4954,13 @@ export default {
},
"ImapSmtpCaldavPublicConnectionParameters": {
"CALDAV": [
- 278
+ 279
],
"IMAP": [
- 278
+ 279
],
"SMTP": [
- 278
+ 279
],
"name": [
1
@@ -4960,7 +4971,7 @@ export default {
},
"ImapSmtpCaldavPublicConnectionParams": {
"connectionSecurity": [
- 216
+ 217
],
"host": [
1
@@ -4980,7 +4991,7 @@ export default {
66
],
"workspace": [
- 644
+ 645
],
"__typename": [
1
@@ -4988,16 +4999,16 @@ export default {
},
"Index": {
"createdAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"indexFieldMetadataList": [
- 282
+ 283
],
"indexType": [
- 284
+ 285
],
"indexWhereClause": [
1
@@ -5012,7 +5023,7 @@ export default {
1
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -5020,10 +5031,10 @@ export default {
},
"IndexEdge": {
"cursor": [
- 143
+ 144
],
"node": [
- 280
+ 281
],
"__typename": [
1
@@ -5031,13 +5042,13 @@ export default {
},
"IndexField": {
"createdAt": [
- 189
+ 190
],
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"order": [
11
@@ -5046,7 +5057,7 @@ export default {
1
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -5054,16 +5065,16 @@ export default {
},
"IndexFilter": {
"and": [
- 283
+ 284
],
"id": [
- 496
+ 497
],
"isCustom": [
109
],
"or": [
- 283
+ 284
],
"__typename": [
1
@@ -5072,7 +5083,7 @@ export default {
"IndexType": {},
"IngestAppMessagesInput": {
"messageChannelId": [
- 495
+ 496
],
"messages": [
35
@@ -5083,7 +5094,7 @@ export default {
},
"IngestAppMessagesOutput": {
"messages": [
- 287
+ 288
],
"__typename": [
1
@@ -5094,10 +5105,10 @@ export default {
1
],
"messageId": [
- 495
+ 496
],
"messageThreadId": [
- 495
+ 496
],
"__typename": [
1
@@ -5156,7 +5167,7 @@ export default {
11
],
"state": [
- 293
+ 294
],
"__typename": [
1
@@ -5164,7 +5175,7 @@ export default {
},
"LineChartConfiguration": {
"aggregateFieldMetadataId": [
- 495
+ 496
],
"aggregateOperation": [
20
@@ -5176,7 +5187,7 @@ export default {
1
],
"configurationType": [
- 620
+ 621
],
"description": [
1
@@ -5188,7 +5199,7 @@ export default {
4
],
"filter": [
- 291
+ 292
],
"firstDayOfTheWeek": [
8
@@ -5206,10 +5217,10 @@ export default {
4
],
"primaryAxisDateGranularity": [
- 365
+ 366
],
"primaryAxisGroupByFieldMetadataId": [
- 495
+ 496
],
"primaryAxisGroupBySubFieldName": [
1
@@ -5218,7 +5229,7 @@ export default {
1
],
"primaryAxisOrderBy": [
- 272
+ 273
],
"rangeMax": [
11
@@ -5227,10 +5238,10 @@ export default {
11
],
"secondaryAxisGroupByDateGranularity": [
- 365
+ 366
],
"secondaryAxisGroupByFieldMetadataId": [
- 495
+ 496
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -5239,7 +5250,7 @@ export default {
1
],
"secondaryAxisOrderBy": [
- 272
+ 273
],
"splitMultiValueFields": [
4
@@ -5253,13 +5264,13 @@ export default {
},
"LineChartData": {
"formattedToRawLookup": [
- 291
+ 292
],
"hasTooManyGroups": [
4
],
"series": [
- 299
+ 300
],
"showDataLabels": [
4
@@ -5279,10 +5290,10 @@ export default {
},
"LineChartDataInput": {
"configuration": [
- 291
+ 292
],
"objectMetadataId": [
- 495
+ 496
],
"__typename": [
1
@@ -5301,7 +5312,7 @@ export default {
},
"LineChartSeries": {
"data": [
- 298
+ 299
],
"key": [
1
@@ -5317,6 +5328,9 @@ export default {
"providerName": [
1
],
+ "scope": [
+ 142
+ ],
"userWorkspaceId": [
1
],
@@ -5329,7 +5343,7 @@ export default {
},
"ListAppMessageChannelsInput": {
"connectedAccountId": [
- 495
+ 496
],
"__typename": [
1
@@ -5348,34 +5362,34 @@ export default {
},
"LogicFunction": {
"applicationId": [
- 495
+ 496
],
"canRunOnDemand": [
4
],
"createdAt": [
- 189
+ 190
],
"cronTriggerSettings": [
- 291
+ 292
],
"databaseEventTriggerSettings": [
- 291
+ 292
],
"description": [
1
],
"executionMode": [
- 304
+ 305
],
"handlerName": [
1
],
"httpRouteTriggerSettings": [
- 291
+ 292
],
"id": [
- 495
+ 496
],
"name": [
1
@@ -5390,16 +5404,16 @@ export default {
11
],
"toolTriggerSettings": [
- 291
+ 292
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"workflowActionTriggerSettings": [
- 291
+ 292
],
"__typename": [
1
@@ -5408,19 +5422,19 @@ export default {
"LogicFunctionExecutionMode": {},
"LogicFunctionExecutionResult": {
"data": [
- 291
+ 292
],
"duration": [
11
],
"error": [
- 291
+ 292
],
"logs": [
1
],
"status": [
- 306
+ 307
],
"__typename": [
1
@@ -5443,7 +5457,7 @@ export default {
1
],
"universalIdentifier": [
- 495
+ 496
],
"__typename": [
1
@@ -5451,19 +5465,19 @@ export default {
},
"LogicFunctionLogsInput": {
"applicationId": [
- 495
+ 496
],
"applicationUniversalIdentifier": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"name": [
1
],
"universalIdentifier": [
- 495
+ 496
],
"__typename": [
1
@@ -5553,13 +5567,13 @@ export default {
1
],
"manifest": [
- 291
+ 292
],
"name": [
1
],
"objects": [
- 313
+ 314
],
"pricingDescription": [
1
@@ -5568,7 +5582,7 @@ export default {
1
],
"roles": [
- 314
+ 315
],
"screenshots": [
1
@@ -5629,7 +5643,7 @@ export default {
1
],
"fieldPermissions": [
- 315
+ 316
],
"icon": [
1
@@ -5638,7 +5652,7 @@ export default {
1
],
"objectPermissions": [
- 316
+ 317
],
"permissionFlagUniversalIdentifiers": [
1
@@ -5695,7 +5709,7 @@ export default {
},
"MessageCampaignBodyConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -5703,7 +5717,7 @@ export default {
},
"MessageCampaignDetailsConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -5714,13 +5728,13 @@ export default {
141
],
"connectedAccountId": [
- 495
+ 496
],
"contactAutoCreationPolicy": [
- 320
+ 321
],
"createdAt": [
- 189
+ 190
],
"displayName": [
1
@@ -5735,7 +5749,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"importProgress": [
8
@@ -5747,37 +5761,37 @@ export default {
4
],
"messageFolderImportPolicy": [
- 327
+ 328
],
"pendingGroupEmailsAction": [
- 321
+ 322
],
"syncStage": [
- 322
+ 323
],
"syncStageStartedAt": [
- 189
+ 190
],
"syncStatus": [
- 323
+ 324
],
"syncedAt": [
- 189
+ 190
],
"throttleFailureCount": [
11
],
"throttleRetryAfter": [
- 189
+ 190
],
"type": [
- 324
+ 325
],
"updatedAt": [
- 189
+ 190
],
"visibility": [
- 325
+ 326
],
"__typename": [
1
@@ -5791,13 +5805,13 @@ export default {
"MessageChannelVisibility": {},
"MessageFolder": {
"createdAt": [
- 189
+ 190
],
"externalId": [
1
],
"id": [
- 495
+ 496
],
"isSentFolder": [
4
@@ -5806,7 +5820,7 @@ export default {
4
],
"messageChannelId": [
- 495
+ 496
],
"name": [
1
@@ -5815,10 +5829,10 @@ export default {
1
],
"pendingSyncAction": [
- 328
+ 329
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -5829,22 +5843,22 @@ export default {
"MessageParticipantRole": {},
"MessageSuppression": {
"createdAt": [
- 189
+ 190
],
"emailAddress": [
1
],
"id": [
- 495
+ 496
],
"reason": [
- 332
+ 333
],
"source": [
- 333
+ 334
],
"unsubscribeTopicId": [
- 495
+ 496
],
"__typename": [
1
@@ -5852,7 +5866,7 @@ export default {
},
"MessageSuppressionList": {
"records": [
- 330
+ 331
],
"totalCount": [
8
@@ -5868,13 +5882,13 @@ export default {
1
],
"properties": [
- 363
+ 364
],
"recordId": [
1
],
"type": [
- 335
+ 336
],
"updatedCollectionHash": [
1
@@ -5896,16 +5910,16 @@ export default {
1
],
"objectMetadataId": [
- 495
+ 496
],
"property": [
1
],
"provenance": [
- 339
+ 340
],
"recordId": [
- 495
+ 496
],
"sourceValue": [
1
@@ -5934,13 +5948,13 @@ export default {
"MetadataTranslationProvenance": {},
"MetadataTranslationsInput": {
"fieldMetadataId": [
- 495
+ 496
],
"locale": [
1
],
"objectMetadataId": [
- 495
+ 496
],
"__typename": [
1
@@ -5952,10 +5966,10 @@ export default {
136
],
"objectMetadataItems": [
- 343
+ 344
],
"views": [
- 344
+ 345
],
"__typename": [
1
@@ -5969,7 +5983,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -5998,16 +6012,16 @@ export default {
},
"MinimalView": {
"id": [
- 495
+ 496
],
"key": [
- 612
+ 613
],
"objectMetadataId": [
- 495
+ 496
],
"type": [
- 616
+ 617
],
"__typename": [
1
@@ -6016,16 +6030,16 @@ export default {
"ModelFamily": {},
"Mutation": {
"activateSkill": [
- 462,
+ 463,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"activateWorkspace": [
- 625,
+ 626,
{
"data": [
0,
@@ -6041,7 +6055,7 @@ export default {
"String!"
],
"messageId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6059,10 +6073,10 @@ export default {
4,
{
"assigneeWorkspaceMemberId": [
- 495
+ 496
],
"threadId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6071,11 +6085,11 @@ export default {
4,
{
"agentId": [
- 495,
+ 496,
"UUID!"
],
"roleId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6084,11 +6098,11 @@ export default {
4,
{
"apiKeyId": [
- 495,
+ 496,
"UUID!"
],
"roleId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6137,10 +6151,10 @@ export default {
107
],
"checkCustomDomainValidRecords": [
- 210
+ 211
],
"checkPublicDomainValidRecords": [
- 210,
+ 211,
{
"domain": [
1,
@@ -6156,7 +6170,7 @@ export default {
"BillingPlanKey!"
],
"recurringInterval": [
- 468,
+ 469,
"SubscriptionInterval!"
],
"requirePaymentMethod": [
@@ -6181,7 +6195,7 @@ export default {
55,
{
"fileId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6194,13 +6208,13 @@ export default {
"String!"
],
"fileIds": [
- 495,
+ 496,
"[UUID!]!"
]
}
],
"completeBookCallOnboardingStep": [
- 369,
+ 370,
{
"hasBookedCall": [
4,
@@ -6213,7 +6227,7 @@ export default {
}
],
"completeFileUpload": [
- 259,
+ 260,
{
"fileId": [
1,
@@ -6222,7 +6236,7 @@ export default {
}
],
"completeNewWorkspaceLogoUpload": [
- 259,
+ 260,
{
"fileId": [
1,
@@ -6235,7 +6249,7 @@ export default {
}
],
"completeWorkspaceLogoUpload": [
- 259,
+ 260,
{
"fileId": [
1,
@@ -6244,7 +6258,7 @@ export default {
}
],
"completeWorkspaceMemberProfilePictureUpload": [
- 259,
+ 260,
{
"fileId": [
1,
@@ -6256,22 +6270,22 @@ export default {
29,
{
"input": [
- 147,
+ 148,
"CreateApiKeyInput!"
]
}
],
"createAppMessageChannel": [
- 319,
+ 320,
{
"input": [
- 148,
+ 149,
"CreateAppMessageChannelInput!"
]
}
],
"createApplicationFileUploads": [
- 149,
+ 150,
{
"applicationUniversalIdentifier": [
1,
@@ -6284,10 +6298,10 @@ export default {
}
],
"createApplicationRegistration": [
- 150,
+ 151,
{
"input": [
- 151,
+ 152,
"CreateApplicationRegistrationInput!"
]
}
@@ -6296,7 +6310,7 @@ export default {
63,
{
"input": [
- 152,
+ 153,
"CreateApprovedAccessDomainInput!"
]
}
@@ -6305,10 +6319,10 @@ export default {
89
],
"createCalendarEvent": [
- 154,
+ 155,
{
"input": [
- 153,
+ 154,
"CreateCalendarEventInput!"
]
}
@@ -6320,13 +6334,13 @@ export default {
137,
{
"input": [
- 155,
+ 156,
"CreateCommandMenuItemInput!"
]
}
],
"createDevelopmentApplication": [
- 208,
+ 209,
{
"name": [
1,
@@ -6339,25 +6353,25 @@ export default {
}
],
"createEmailGroupChannel": [
- 157,
+ 158,
{
"input": [
- 156,
+ 157,
"CreateEmailGroupChannelInput!"
]
}
],
"createEmailingDomain": [
- 219,
+ 220,
{
"input": [
- 158,
+ 159,
"CreateEmailingDomainInput!"
]
}
],
"createFileUpload": [
- 258,
+ 259,
{
"fieldMetadataId": [
1
@@ -6366,7 +6380,7 @@ export default {
1
],
"fileFolder": [
- 257,
+ 258,
"FileFolder!"
],
"filename": [
@@ -6380,70 +6394,70 @@ export default {
}
],
"createFrontComponent": [
- 264,
+ 265,
{
"input": [
- 160,
+ 161,
"CreateFrontComponentInput!"
]
}
],
"createManyNavigationMenuItems": [
- 348,
+ 349,
{
"inputs": [
- 165,
+ 166,
"[CreateNavigationMenuItemInput!]!"
]
}
],
"createManyViewFieldGroups": [
- 606,
+ 607,
{
"inputs": [
- 179,
+ 180,
"[CreateViewFieldGroupInput!]!"
]
}
],
"createManyViewFields": [
- 605,
+ 606,
{
"inputs": [
- 180,
+ 181,
"[CreateViewFieldInput!]!"
]
}
],
"createManyViewGroups": [
- 611,
+ 612,
{
"inputs": [
- 183,
+ 184,
"[CreateViewGroupInput!]!"
]
}
],
"createMessageSuppression": [
- 330,
+ 331,
{
"input": [
- 164,
+ 165,
"CreateMessageSuppressionInput!"
]
}
],
"createNavigationMenuItem": [
- 348,
+ 349,
{
"input": [
- 165,
+ 166,
"CreateNavigationMenuItemInput!"
]
}
],
"createNewWorkspaceLogoUpload": [
- 258,
+ 259,
{
"filename": [
1,
@@ -6460,10 +6474,10 @@ export default {
}
],
"createOIDCIdentityProvider": [
- 459,
+ 460,
{
"input": [
- 457,
+ 458,
"SetupOIDCSsoInput!"
]
}
@@ -6476,14 +6490,14 @@ export default {
"String!"
],
"objectMetadataId": [
- 495,
+ 496,
"UUID!"
],
"properties": [
- 291
+ 292
],
"recordId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6492,85 +6506,85 @@ export default {
3,
{
"input": [
- 146,
+ 147,
"CreateAgentInput!"
]
}
],
"createOneField": [
- 244,
+ 245,
{
"input": [
- 167,
+ 168,
"CreateOneFieldMetadataInput!"
]
}
],
"createOneIndex": [
- 280,
+ 281,
{
"input": [
- 168,
+ 169,
"CreateOneIndexInput!"
]
}
],
"createOneLogicFunction": [
- 303,
+ 304,
{
"input": [
- 163,
+ 164,
"CreateLogicFunctionFromSourceInput!"
]
}
],
"createOneObject": [
- 351,
+ 352,
{
"input": [
- 169,
+ 170,
"CreateOneObjectInput!"
]
}
],
"createOneRole": [
- 422,
+ 423,
{
"createRoleInput": [
- 174,
+ 175,
"CreateRoleInput!"
]
}
],
"createPageLayout": [
- 372,
+ 373,
{
"input": [
- 170,
+ 171,
"CreatePageLayoutInput!"
]
}
],
"createPageLayoutTab": [
- 373,
+ 374,
{
"input": [
- 171,
+ 172,
"CreatePageLayoutTabInput!"
]
}
],
"createPageLayoutWidget": [
- 376,
+ 377,
{
"input": [
- 172,
+ 173,
"CreatePageLayoutWidgetInput!"
]
}
],
"createPublicDomain": [
- 393,
+ 394,
{
"applicationId": [
1,
@@ -6583,19 +6597,19 @@ export default {
}
],
"createSAMLIdentityProvider": [
- 459,
+ 460,
{
"input": [
- 458,
+ 459,
"SetupSAMLSsoInput!"
]
}
],
"createSkill": [
- 462,
+ 463,
{
"input": [
- 175,
+ 176,
"CreateSkillInput!"
]
}
@@ -6612,7 +6626,7 @@ export default {
"BillingPlanKey!"
],
"recurringInterval": [
- 468,
+ 469,
"SubscriptionInterval!"
],
"requirePaymentMethod": [
@@ -6625,109 +6639,109 @@ export default {
}
],
"createUnsubscribeTopic": [
- 498,
+ 499,
{
"input": [
- 176,
+ 177,
"CreateUnsubscribeTopicInput!"
]
}
],
"createUsageLimit": [
- 577,
+ 578,
{
"input": [
- 177,
+ 178,
"CreateUsageLimitInput!"
]
}
],
"createValidationRule": [
- 597,
+ 598,
{
"input": [
- 178,
+ 179,
"CreateValidationRuleInput!"
]
}
],
"createView": [
- 602,
+ 603,
{
"input": [
- 184,
+ 185,
"CreateViewInput!"
]
}
],
"createViewField": [
- 605,
+ 606,
{
"input": [
- 180,
+ 181,
"CreateViewFieldInput!"
]
}
],
"createViewFieldGroup": [
- 606,
+ 607,
{
"input": [
- 179,
+ 180,
"CreateViewFieldGroupInput!"
]
}
],
"createViewFilter": [
- 607,
+ 608,
{
"input": [
- 182,
+ 183,
"CreateViewFilterInput!"
]
}
],
"createViewFilterGroup": [
- 608,
+ 609,
{
"input": [
- 181,
+ 182,
"CreateViewFilterGroupInput!"
]
}
],
"createViewGroup": [
- 611,
+ 612,
{
"input": [
- 183,
+ 184,
"CreateViewGroupInput!"
]
}
],
"createViewSort": [
- 614,
+ 615,
{
"input": [
- 185,
+ 186,
"CreateViewSortInput!"
]
}
],
"createWebhook": [
- 618,
+ 619,
{
"input": [
- 186,
+ 187,
"CreateWebhookInput!"
]
}
],
"deactivateSkill": [
- 462,
+ 463,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6745,10 +6759,10 @@ export default {
}
],
"deleteAppMessageChannel": [
- 319,
+ 320,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6766,7 +6780,7 @@ export default {
4,
{
"input": [
- 190,
+ 191,
"DeleteApprovedAccessDomainInput!"
]
}
@@ -6775,7 +6789,7 @@ export default {
137,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6784,19 +6798,19 @@ export default {
141,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"deleteCurrentWorkspace": [
- 625
+ 626
],
"deleteEmailGroupChannel": [
- 319,
+ 320,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6811,19 +6825,19 @@ export default {
}
],
"deleteFrontComponent": [
- 264,
+ 265,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"deleteManyNavigationMenuItems": [
- 348,
+ 349,
{
"ids": [
- 495,
+ 496,
"[UUID!]!"
]
}
@@ -6832,16 +6846,16 @@ export default {
4,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"deleteNavigationMenuItem": [
- 348,
+ 349,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6856,37 +6870,37 @@ export default {
}
],
"deleteOneField": [
- 244,
+ 245,
{
"input": [
- 191,
+ 192,
"DeleteOneFieldInput!"
]
}
],
"deleteOneIndex": [
- 280,
+ 281,
{
"input": [
- 192,
+ 193,
"DeleteOneIndexInput!"
]
}
],
"deleteOneLogicFunction": [
- 303,
+ 304,
{
"input": [
- 307,
+ 308,
"LogicFunctionIdInput!"
]
}
],
"deleteOneObject": [
- 351,
+ 352,
{
"input": [
- 193,
+ 194,
"DeleteOneObjectInput!"
]
}
@@ -6895,7 +6909,7 @@ export default {
1,
{
"roleId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6913,34 +6927,34 @@ export default {
4,
{
"messageId": [
- 495,
+ 496,
"UUID!"
]
}
],
"deleteSSOIdentityProvider": [
- 194,
+ 195,
{
"input": [
- 195,
+ 196,
"DeleteSsoInput!"
]
}
],
"deleteSkill": [
- 462,
+ 463,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"deleteTwoFactorAuthenticationMethod": [
- 196,
+ 197,
{
"twoFactorAuthenticationMethodId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6958,16 +6972,16 @@ export default {
4,
{
"usageLimitId": [
- 495,
+ 496,
"UUID!"
]
}
],
"deleteUser": [
- 590
+ 591
],
"deleteUserFromWorkspace": [
- 594,
+ 595,
{
"workspaceMemberIdToDelete": [
1,
@@ -6976,10 +6990,10 @@ export default {
}
],
"deleteValidationRule": [
- 597,
+ 598,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -6994,28 +7008,28 @@ export default {
}
],
"deleteViewField": [
- 605,
+ 606,
{
"input": [
- 198,
+ 199,
"DeleteViewFieldInput!"
]
}
],
"deleteViewFieldGroup": [
- 606,
+ 607,
{
"input": [
- 197,
+ 198,
"DeleteViewFieldGroupInput!"
]
}
],
"deleteViewFilter": [
- 607,
+ 608,
{
"input": [
- 199,
+ 200,
"DeleteViewFilterInput!"
]
}
@@ -7030,10 +7044,10 @@ export default {
}
],
"deleteViewGroup": [
- 611,
+ 612,
{
"input": [
- 200,
+ 201,
"DeleteViewGroupInput!"
]
}
@@ -7042,16 +7056,16 @@ export default {
4,
{
"input": [
- 201,
+ 202,
"DeleteViewSortInput!"
]
}
],
"deleteWebhook": [
- 618,
+ 619,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -7102,28 +7116,28 @@ export default {
}
],
"destroyViewField": [
- 605,
+ 606,
{
"input": [
- 204,
+ 205,
"DestroyViewFieldInput!"
]
}
],
"destroyViewFieldGroup": [
- 606,
+ 607,
{
"input": [
- 203,
+ 204,
"DestroyViewFieldGroupInput!"
]
}
],
"destroyViewFilter": [
- 607,
+ 608,
{
"input": [
- 205,
+ 206,
"DestroyViewFilterInput!"
]
}
@@ -7138,10 +7152,10 @@ export default {
}
],
"destroyViewGroup": [
- 611,
+ 612,
{
"input": [
- 206,
+ 207,
"DestroyViewGroupInput!"
]
}
@@ -7150,7 +7164,7 @@ export default {
4,
{
"input": [
- 207,
+ 208,
"DestroyViewSortInput!"
]
}
@@ -7159,40 +7173,40 @@ export default {
141,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"duplicateDashboard": [
- 211,
+ 212,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"duplicateMessageList": [
- 212,
+ 213,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"editSSOIdentityProvider": [
- 213,
+ 214,
{
"input": [
- 214,
+ 215,
"EditSsoInput!"
]
}
],
"emailPasswordResetLink": [
- 217,
+ 218,
{
"captchaToken": [
1
@@ -7202,7 +7216,7 @@ export default {
"String!"
],
"workspaceId": [
- 495
+ 496
]
}
],
@@ -7210,31 +7224,31 @@ export default {
84
],
"enqueueJob": [
- 226,
+ 227,
{
"input": [
- 224,
+ 225,
"EnqueueJobInput!"
]
}
],
"enqueueJobs": [
- 228,
+ 229,
{
"input": [
- 227,
+ 228,
"EnqueueJobsInput!"
]
}
],
"enrichWorkspaceCompany": [
- 629
+ 630
],
"executeOneLogicFunction": [
- 305,
+ 306,
{
"input": [
- 241,
+ 242,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -7243,7 +7257,7 @@ export default {
31,
{
"apiKeyId": [
- 495,
+ 496,
"UUID!"
],
"expiresAt": [
@@ -7256,7 +7270,7 @@ export default {
60,
{
"applicationId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -7265,16 +7279,16 @@ export default {
66
],
"generateTransientToken": [
- 478
+ 479
],
"generateTwoFactorAuthenticationRecoveryCode": [
- 492,
+ 493,
{
"otp": [
1
],
"userId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -7322,7 +7336,7 @@ export default {
}
],
"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [
- 493,
+ 494,
{
"captchaToken": [
1
@@ -7342,16 +7356,16 @@ export default {
}
],
"getAuthorizationUrlForSSO": [
- 269,
+ 270,
{
"input": [
- 270,
+ 271,
"GetAuthorizationUrlForSSOInput!"
]
}
],
"getLoginTokenFromCredentials": [
- 310,
+ 311,
{
"captchaToken": [
1
@@ -7377,41 +7391,41 @@ export default {
}
],
"goBackToPreviousOnboardingStep": [
- 368
+ 369
],
"grantApplicationCapabilities": [
39,
{
"input": [
- 271,
+ 272,
"GrantApplicationCapabilitiesInput!"
]
}
],
"impersonate": [
- 279,
+ 280,
{
"userId": [
- 495,
+ 496,
"UUID!"
],
"workspaceId": [
- 495,
+ 496,
"UUID!"
]
}
],
"ingestAppMessages": [
- 286,
+ 287,
{
"input": [
- 285,
+ 286,
"IngestAppMessagesInput!"
]
}
],
"initiateOTPProvisioning": [
- 288,
+ 289,
{
"loginToken": [
1,
@@ -7424,7 +7438,7 @@ export default {
}
],
"initiateOTPProvisioningForAuthenticatedUser": [
- 288
+ 289
],
"installApplication": [
37,
@@ -7454,7 +7468,7 @@ export default {
4
],
"releaseEnterpriseServerBinding": [
- 229
+ 230
],
"removeAgentChatMessageReaction": [
16,
@@ -7464,7 +7478,7 @@ export default {
"String!"
],
"messageId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -7473,20 +7487,20 @@ export default {
4,
{
"input": [
- 417,
+ 418,
"RemoveQueryFromEventStreamInput!"
]
}
],
"removeRecordShare": [
- 409,
+ 410,
{
"principal": [
- 406,
+ 407,
"RecordSharePrincipalInput!"
],
"target": [
- 414,
+ 415,
"RecordTargetInput!"
]
}
@@ -7495,7 +7509,7 @@ export default {
4,
{
"agentId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -7522,13 +7536,13 @@ export default {
4,
{
"input": [
- 418,
+ 419,
"ReportAppConnectionAuthFailureInput!"
]
}
],
"resendEmailVerificationToken": [
- 419,
+ 420,
{
"email": [
1,
@@ -7541,7 +7555,7 @@ export default {
}
],
"resendWorkspaceInvitation": [
- 449,
+ 450,
{
"appTokenId": [
1,
@@ -7553,13 +7567,13 @@ export default {
137,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"resetPageLayoutTabToDefault": [
- 373,
+ 374,
{
"id": [
1,
@@ -7568,7 +7582,7 @@ export default {
}
],
"resetPageLayoutToDefault": [
- 372,
+ 373,
{
"id": [
1,
@@ -7577,7 +7591,7 @@ export default {
}
],
"resetPageLayoutWidgetToDefault": [
- 376,
+ 377,
{
"id": [
1,
@@ -7586,22 +7600,22 @@ export default {
}
],
"resetTimelineActivityType": [
- 473,
+ 474,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"retryChatMessage": [
- 442,
+ 443,
{
"modelId": [
1
],
"threadId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -7613,7 +7627,7 @@ export default {
29,
{
"input": [
- 420,
+ 421,
"RevokeApiKeyInput!"
]
}
@@ -7622,7 +7636,7 @@ export default {
4,
{
"applicationAuthorizationId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -7631,7 +7645,7 @@ export default {
4,
{
"userId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -7640,13 +7654,13 @@ export default {
4,
{
"userSessionId": [
- 495,
+ 496,
"UUID!"
]
}
],
"rotateApplicationRegistrationClientSecret": [
- 424,
+ 425,
{
"id": [
1,
@@ -7655,10 +7669,10 @@ export default {
}
],
"runAgent": [
- 435,
+ 436,
{
"input": [
- 431,
+ 432,
"RunAgentInput!"
]
}
@@ -7667,16 +7681,16 @@ export default {
53,
{
"applicationId": [
- 495,
+ 496,
"UUID!"
]
}
],
"saveImapSmtpCaldavAccount": [
- 276,
+ 277,
{
"connectionParameters": [
- 215,
+ 216,
"EmailAccountConnectionParameters!"
],
"handle": [
@@ -7684,26 +7698,26 @@ export default {
"String!"
],
"id": [
- 495
+ 496
]
}
],
"sendChatMessage": [
- 442,
+ 443,
{
"browsingContext": [
- 291
+ 292
],
"fileAttachments": [
- 256,
+ 257,
"[FileAttachmentInput!]"
],
"mentionedWorkspaceMemberIds": [
- 495,
+ 496,
"[UUID!]"
],
"messageId": [
- 495,
+ 496,
"UUID!"
],
"modelId": [
@@ -7717,55 +7731,55 @@ export default {
"String!"
],
"threadId": [
- 495,
+ 496,
"UUID!"
]
}
],
"sendEmail": [
- 445,
+ 446,
{
"input": [
- 444,
+ 445,
"SendEmailInput!"
]
}
],
"sendInboxMessage": [
- 448,
+ 449,
{
"input": [
- 447,
+ 448,
"SendInboxMessageInput!"
]
}
],
"sendInvitations": [
- 449,
+ 450,
{
"emails": [
1,
"[String!]!"
],
"roleId": [
- 495
+ 496
]
}
],
"sendMessageCampaign": [
- 451,
+ 452,
{
"input": [
- 450,
+ 451,
"SendMessageCampaignInput!"
]
}
],
"sendMessageCampaignTest": [
- 446,
+ 447,
{
"input": [
- 452,
+ 453,
"SendMessageCampaignTestInput!"
]
}
@@ -7774,13 +7788,13 @@ export default {
33,
{
"input": [
- 454,
+ 455,
"SetAppKeyValueInput!"
]
}
],
"setEnterpriseKey": [
- 229,
+ 230,
{
"enterpriseKey": [
1,
@@ -7789,31 +7803,31 @@ export default {
}
],
"setRecordGeneralAccess": [
- 409,
+ 410,
{
"accessLevel": [
- 405,
+ 406,
"RecordShareAccessLevel!"
],
"target": [
- 414,
+ 415,
"RecordTargetInput!"
]
}
],
"setRecordShare": [
- 409,
+ 410,
{
"accessLevel": [
- 405,
+ 406,
"RecordShareAccessLevel!"
],
"principal": [
- 406,
+ 407,
"RecordSharePrincipalInput!"
],
"target": [
- 414,
+ 415,
"RecordTargetInput!"
]
}
@@ -7880,15 +7894,15 @@ export default {
}
],
"signUpInNewWorkspace": [
- 460,
+ 461,
{
"input": [
- 461
+ 462
]
}
],
"signUpInWorkspace": [
- 460,
+ 461,
{
"captchaToken": [
1
@@ -7908,7 +7922,7 @@ export default {
1
],
"workspaceId": [
- 495
+ 496
],
"workspaceInviteHash": [
1
@@ -7919,7 +7933,7 @@ export default {
}
],
"skipSyncEmailOnboardingStep": [
- 369,
+ 370,
{
"isAutoSkipped": [
4,
@@ -7931,19 +7945,19 @@ export default {
123,
{
"connectedAccountId": [
- 495,
+ 496,
"UUID!"
]
}
],
"startWorkspaceSetupChat": [
- 464,
+ 465,
{
"companyContext": [
- 291
+ 292
],
"personContext": [
- 291
+ 292
]
}
],
@@ -7951,13 +7965,13 @@ export default {
4,
{
"threadId": [
- 495,
+ 496,
"UUID!"
]
}
],
"stopImpersonation": [
- 465
+ 466
],
"switchBillingPlan": [
107,
@@ -7971,7 +7985,7 @@ export default {
107
],
"syncApplication": [
- 639,
+ 640,
{
"dryRun": [
4
@@ -7980,7 +7994,7 @@ export default {
4
],
"manifest": [
- 291,
+ 292,
"JSON!"
]
}
@@ -7998,7 +8012,7 @@ export default {
1
],
"properties": [
- 291
+ 292
],
"type": [
27,
@@ -8020,55 +8034,55 @@ export default {
}
],
"triggerAddPeopleToMessageListJob": [
- 480,
+ 481,
{
"input": [
- 479,
+ 480,
"TriggerAddPeopleToMessageListJobInput!"
]
}
],
"triggerInstallApplication": [
- 484,
+ 485,
{
"input": [
- 481,
+ 482,
"TriggerInstallApplicationInput!"
]
}
],
"triggerInstallApplicationJob": [
- 483,
+ 484,
{
"input": [
- 482,
+ 483,
"TriggerInstallApplicationJobInput!"
]
}
],
"triggerUninstallApplication": [
- 488,
+ 489,
{
"input": [
- 485,
+ 486,
"TriggerUninstallApplicationInput!"
]
}
],
"triggerUninstallApplicationJob": [
- 487,
+ 488,
{
"input": [
- 486,
+ 487,
"TriggerUninstallApplicationJobInput!"
]
}
],
"triggerUpgradeApplication": [
- 490,
+ 491,
{
"input": [
- 489,
+ 490,
"TriggerUpgradeApplicationInput!"
]
}
@@ -8090,10 +8104,10 @@ export default {
"AgentChatInboxAction!"
],
"snoozedUntil": [
- 189
+ 190
],
"threadIds": [
- 495,
+ 496,
"[UUID!]!"
]
}
@@ -8102,16 +8116,16 @@ export default {
29,
{
"input": [
- 501,
+ 502,
"UpdateApiKeyInput!"
]
}
],
"updateAppMessageChannel": [
- 319,
+ 320,
{
"input": [
- 502,
+ 503,
"UpdateAppMessageChannelInput!"
]
}
@@ -8120,11 +8134,11 @@ export default {
37,
{
"id": [
- 495,
+ 496,
"UUID!"
],
"input": [
- 503,
+ 504,
"UpdateApplicationInput!"
]
}
@@ -8133,7 +8147,7 @@ export default {
55,
{
"input": [
- 504,
+ 505,
"UpdateApplicationRegistrationInput!"
]
}
@@ -8142,7 +8156,7 @@ export default {
59,
{
"input": [
- 506,
+ 507,
"UpdateApplicationRegistrationVariableInput!"
]
}
@@ -8151,7 +8165,7 @@ export default {
110,
{
"input": [
- 508,
+ 509,
"UpdateCalendarChannelInput!"
]
}
@@ -8160,88 +8174,88 @@ export default {
137,
{
"input": [
- 510,
+ 511,
"UpdateCommandMenuItemInput!"
]
}
],
"updateEmailGroupChannel": [
- 319,
+ 320,
{
"input": [
- 511,
+ 512,
"UpdateEmailGroupChannelInput!"
]
}
],
"updateFrontComponent": [
- 264,
+ 265,
{
"input": [
- 513,
+ 514,
"UpdateFrontComponentInput!"
]
}
],
"updateLabPublicFeatureFlag": [
- 242,
+ 243,
{
"input": [
- 515,
+ 516,
"UpdateLabPublicFeatureFlagInput!"
]
}
],
"updateManyNavigationMenuItems": [
- 348,
+ 349,
{
"inputs": [
- 526,
+ 527,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
],
"updateManyObjects": [
- 351,
+ 352,
{
"inputs": [
- 527,
+ 528,
"[UpdateOneObjectInput!]!"
]
}
],
"updateManyViewGroups": [
- 611,
+ 612,
{
"inputs": [
- 549,
+ 550,
"[UpdateViewGroupInput!]!"
]
}
],
"updateMessageChannel": [
- 319,
+ 320,
{
"input": [
- 518,
+ 519,
"UpdateMessageChannelInput!"
]
}
],
"updateMessageFolder": [
- 326,
+ 327,
{
"input": [
- 520,
+ 521,
"UpdateMessageFolderInput!"
]
}
],
"updateMessageFolders": [
- 326,
+ 327,
{
"input": [
- 522,
+ 523,
"UpdateMessageFoldersInput!"
]
}
@@ -8264,10 +8278,10 @@ export default {
}
],
"updateNavigationMenuItem": [
- 348,
+ 349,
{
"input": [
- 526,
+ 527,
"UpdateOneNavigationMenuItemInput!"
]
}
@@ -8276,7 +8290,7 @@ export default {
3,
{
"input": [
- 500,
+ 501,
"UpdateAgentInput!"
]
}
@@ -8285,7 +8299,7 @@ export default {
4,
{
"applicationId": [
- 495
+ 496
],
"key": [
1,
@@ -8298,10 +8312,10 @@ export default {
}
],
"updateOneField": [
- 244,
+ 245,
{
"input": [
- 525,
+ 526,
"UpdateOneFieldMetadataInput!"
]
}
@@ -8310,83 +8324,83 @@ export default {
4,
{
"input": [
- 516,
+ 517,
"UpdateLogicFunctionFromSourceInput!"
]
}
],
"updateOneObject": [
- 351,
+ 352,
{
"input": [
- 527,
+ 528,
"UpdateOneObjectInput!"
]
}
],
"updateOneRole": [
- 422,
+ 423,
{
"updateRoleInput": [
- 534,
+ 535,
"UpdateRoleInput!"
]
}
],
"updatePageLayout": [
- 372,
+ 373,
{
"id": [
1,
"String!"
],
"input": [
- 528,
+ 529,
"UpdatePageLayoutInput!"
]
}
],
"updatePageLayoutTab": [
- 373,
+ 374,
{
"id": [
1,
"String!"
],
"input": [
- 529,
+ 530,
"UpdatePageLayoutTabInput!"
]
}
],
"updatePageLayoutWidget": [
- 376,
+ 377,
{
"id": [
1,
"String!"
],
"input": [
- 531,
+ 532,
"UpdatePageLayoutWidgetInput!"
]
}
],
"updatePageLayoutWithTabsAndWidgets": [
- 372,
+ 373,
{
"id": [
1,
"String!"
],
"input": [
- 533,
+ 534,
"UpdatePageLayoutWithTabsInput!"
]
}
],
"updatePasswordViaResetToken": [
- 289,
+ 290,
{
"newPassword": [
1,
@@ -8399,37 +8413,37 @@ export default {
}
],
"updateSkill": [
- 462,
+ 463,
{
"input": [
- 536,
+ 537,
"UpdateSkillInput!"
]
}
],
"updateTimelineActivityType": [
- 473,
+ 474,
{
"input": [
- 537,
+ 538,
"UpdateTimelineActivityTypeInput!"
]
}
],
"updateUnsubscribeTopic": [
- 498,
+ 499,
{
"input": [
- 538,
+ 539,
"UpdateUnsubscribeTopicInput!"
]
}
],
"updateUsageLimit": [
- 577,
+ 578,
{
"input": [
- 539,
+ 540,
"UpdateUsageLimitInput!"
]
}
@@ -8438,7 +8452,7 @@ export default {
83,
{
"userCreditsFallback": [
- 592,
+ 593,
"UserCreditsFallback!"
]
}
@@ -8456,121 +8470,121 @@ export default {
}
],
"updateValidationRule": [
- 597,
+ 598,
{
"input": [
- 540,
+ 541,
"UpdateValidationRuleInput!"
]
}
],
"updateView": [
- 602,
+ 603,
{
"id": [
1,
"String!"
],
"input": [
- 551,
+ 552,
"UpdateViewInput!"
]
}
],
"updateViewField": [
- 605,
+ 606,
{
"input": [
- 544,
+ 545,
"UpdateViewFieldInput!"
]
}
],
"updateViewFieldGroup": [
- 606,
+ 607,
{
"input": [
- 542,
+ 543,
"UpdateViewFieldGroupInput!"
]
}
],
"updateViewFilter": [
- 607,
+ 608,
{
"input": [
- 547,
+ 548,
"UpdateViewFilterInput!"
]
}
],
"updateViewFilterGroup": [
- 608,
+ 609,
{
"id": [
1,
"String!"
],
"input": [
- 546,
+ 547,
"UpdateViewFilterGroupInput!"
]
}
],
"updateViewGroup": [
- 611,
+ 612,
{
"input": [
- 549,
+ 550,
"UpdateViewGroupInput!"
]
}
],
"updateViewSort": [
- 614,
+ 615,
{
"input": [
- 552,
+ 553,
"UpdateViewSortInput!"
]
}
],
"updateWebhook": [
- 618,
+ 619,
{
"input": [
- 554,
+ 555,
"UpdateWebhookInput!"
]
}
],
"updateWorkspace": [
- 625,
+ 626,
{
"data": [
- 557,
+ 558,
"UpdateWorkspaceInput!"
]
}
],
"updateWorkspaceAllowedIframeOrigins": [
- 625,
+ 626,
{
"data": [
- 556,
+ 557,
"UpdateWorkspaceAllowedIframeOriginsInput!"
]
}
],
"updateWorkspaceMemberRole": [
- 634,
+ 635,
{
"roleId": [
- 495,
+ 496,
"UUID!"
],
"workspaceMemberId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -8579,7 +8593,7 @@ export default {
4,
{
"input": [
- 558,
+ 559,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -8601,7 +8615,7 @@ export default {
55,
{
"file": [
- 559,
+ 560,
"Upload!"
],
"universalIdentifier": [
@@ -8610,18 +8624,18 @@ export default {
}
],
"uploadApplicationFile": [
- 255,
+ 256,
{
"applicationUniversalIdentifier": [
1,
"String!"
],
"file": [
- 559,
+ 560,
"Upload!"
],
"fileFolder": [
- 257,
+ 258,
"FileFolder!"
],
"filePath": [
@@ -8631,23 +8645,23 @@ export default {
}
],
"uploadFilesFieldFileByUniversalIdentifier": [
- 259,
+ 260,
{
"fieldMetadataUniversalIdentifier": [
1,
"String!"
],
"file": [
- 559,
+ 560,
"Upload!"
]
}
],
"uploadNewWorkspaceLogo": [
- 259,
+ 260,
{
"file": [
- 559,
+ 560,
"Upload!"
],
"workspaceId": [
@@ -8657,73 +8671,73 @@ export default {
}
],
"uploadWorkspaceLogo": [
- 259,
+ 260,
{
"file": [
- 559,
+ 560,
"Upload!"
]
}
],
"uploadWorkspaceMemberProfilePicture": [
- 259,
+ 260,
{
"file": [
- 559,
+ 560,
"Upload!"
]
}
],
"upsertFieldPermissions": [
- 251,
+ 252,
{
"upsertFieldPermissionsInput": [
- 560,
+ 561,
"UpsertFieldPermissionsInput!"
]
}
],
"upsertFieldsWidget": [
- 602,
+ 603,
{
"input": [
- 563,
+ 564,
"UpsertFieldsWidgetInput!"
]
}
],
"upsertObjectPermissions": [
- 359,
+ 360,
{
"upsertObjectPermissionsInput": [
- 564,
+ 565,
"UpsertObjectPermissionsInput!"
]
}
],
"upsertPermissionFlags": [
- 423,
+ 424,
{
"upsertPermissionFlagsInput": [
- 565,
+ 566,
"UpsertPermissionFlagsInput!"
]
}
],
"upsertRowLevelPermissionPredicates": [
- 567,
+ 568,
{
"input": [
- 566,
+ 567,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
],
"upsertViewWidget": [
- 602,
+ 603,
{
"input": [
- 568,
+ 569,
"UpsertViewWidgetInput!"
]
}
@@ -8732,13 +8746,13 @@ export default {
63,
{
"input": [
- 595,
+ 596,
"ValidateApprovedAccessDomainInput!"
]
}
],
"verifyEmailAndGetLoginToken": [
- 599,
+ 600,
{
"captchaToken": [
1
@@ -8774,7 +8788,7 @@ export default {
}
],
"verifyEmailingDomain": [
- 219,
+ 220,
{
"id": [
1,
@@ -8783,7 +8797,7 @@ export default {
}
],
"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 600,
+ 601,
{
"otp": [
1,
@@ -8808,22 +8822,22 @@ export default {
},
"NavigationMenuItem": {
"applicationId": [
- 495
+ 496
],
"color": [
1
],
"createdAt": [
- 189
+ 190
],
"folderId": [
- 495
+ 496
],
"icon": [
1
],
"id": [
- 495
+ 496
],
"link": [
1
@@ -8832,31 +8846,31 @@ export default {
1
],
"pageLayoutId": [
- 495
+ 496
],
"position": [
11
],
"targetObjectMetadataId": [
- 495
+ 496
],
"targetRecordId": [
- 495
+ 496
],
"targetRecordIdentifier": [
- 402
+ 403
],
"type": [
- 349
+ 350
],
"updatedAt": [
- 189
+ 190
],
"userWorkspaceId": [
- 495
+ 496
],
"viewId": [
- 495
+ 496
],
"__typename": [
1
@@ -8865,7 +8879,7 @@ export default {
"NavigationMenuItemType": {},
"NotesConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -8873,13 +8887,13 @@ export default {
},
"Object": {
"applicationId": [
- 495
+ 496
],
"color": [
1
],
"createdAt": [
- 189
+ 190
],
"description": [
1
@@ -8888,42 +8902,42 @@ export default {
1
],
"fields": [
- 354,
+ 355,
{
"filter": [
- 249,
+ 250,
"FieldFilter!"
],
"paging": [
- 187,
+ 188,
"CursorPaging!"
]
}
],
"fieldsList": [
- 244
+ 245
],
"icon": [
1
],
"id": [
- 495
+ 496
],
"imageIdentifierFieldMetadataId": [
- 495
+ 496
],
"indexMetadataList": [
- 280
+ 281
],
"indexMetadatas": [
- 356,
+ 357,
{
"filter": [
- 283,
+ 284,
"IndexFilter!"
],
"paging": [
- 187,
+ 188,
"CursorPaging!"
]
}
@@ -8953,7 +8967,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 495
+ 496
],
"labelPlural": [
1
@@ -8968,19 +8982,19 @@ export default {
1
],
"openRecordIn": [
- 358
+ 359
],
"readability": [
- 336
+ 337
],
"readabilityParentFieldUniversalIdentifiers": [
- 495
+ 496
],
"searchFieldMetadataList": [
- 441
+ 442
],
"sharingReach": [
- 366
+ 367
],
"shortcut": [
1
@@ -8989,10 +9003,10 @@ export default {
1
],
"updatedAt": [
- 189
+ 190
],
"writability": [
- 341
+ 342
],
"__typename": [
1
@@ -9000,10 +9014,10 @@ export default {
},
"ObjectConnection": {
"edges": [
- 353
+ 354
],
"pageInfo": [
- 371
+ 372
],
"__typename": [
1
@@ -9011,10 +9025,10 @@ export default {
},
"ObjectEdge": {
"cursor": [
- 143
+ 144
],
"node": [
- 351
+ 352
],
"__typename": [
1
@@ -9022,10 +9036,10 @@ export default {
},
"ObjectFieldsConnection": {
"edges": [
- 248
+ 249
],
"pageInfo": [
- 371
+ 372
],
"__typename": [
1
@@ -9033,10 +9047,10 @@ export default {
},
"ObjectFilter": {
"and": [
- 355
+ 356
],
"id": [
- 496
+ 497
],
"isActive": [
109
@@ -9060,10 +9074,10 @@ export default {
109
],
"or": [
- 355
+ 356
],
"universalIdentifier": [
- 496
+ 497
],
"__typename": [
1
@@ -9071,10 +9085,10 @@ export default {
},
"ObjectIndexMetadatasConnection": {
"edges": [
- 281
+ 282
],
"pageInfo": [
- 371
+ 372
],
"__typename": [
1
@@ -9082,7 +9096,7 @@ export default {
},
"ObjectMetadataCommandMenuItemPayload": {
"objectMetadataItemId": [
- 495
+ 496
],
"__typename": [
1
@@ -9103,16 +9117,16 @@ export default {
4
],
"objectMetadataId": [
- 495
+ 496
],
"restrictedFields": [
- 291
+ 292
],
"rowLevelPermissionPredicateGroups": [
- 426
+ 427
],
"rowLevelPermissionPredicates": [
- 425
+ 426
],
"__typename": [
1
@@ -9132,7 +9146,7 @@ export default {
4
],
"objectMetadataId": [
- 495
+ 496
],
"__typename": [
1
@@ -9151,13 +9165,13 @@ export default {
},
"ObjectRecordEvent": {
"action": [
- 188
+ 189
],
"objectNameSingular": [
1
],
"properties": [
- 363
+ 364
],
"recordId": [
1
@@ -9174,13 +9188,13 @@ export default {
},
"ObjectRecordEventProperties": {
"after": [
- 291
+ 292
],
"before": [
- 291
+ 292
],
"diff": [
- 291
+ 292
],
"updatedFields": [
1
@@ -9191,7 +9205,7 @@ export default {
},
"ObjectRecordEventWithQueryIds": {
"objectRecordEvent": [
- 362
+ 363
],
"queryIds": [
1
@@ -9205,10 +9219,10 @@ export default {
"OnboardingStatus": {},
"OnboardingStepNavigation": {
"onboardingStatus": [
- 367
+ 368
],
"previousOnboardingStatus": [
- 367
+ 368
],
"__typename": [
1
@@ -9225,7 +9239,7 @@ export default {
"OpenRecordIn": {},
"PageInfo": {
"endCursor": [
- 143
+ 144
],
"hasNextPage": [
4
@@ -9234,7 +9248,7 @@ export default {
4
],
"startCursor": [
- 143
+ 144
],
"__typename": [
1
@@ -9242,19 +9256,19 @@ export default {
},
"PageLayout": {
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"defaultTabToFocusOnMobileAndSidePanelId": [
- 495
+ 496
],
"deletedAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"isFirstTabPinned": [
4
@@ -9266,19 +9280,19 @@ export default {
1
],
"objectMetadataId": [
- 495
+ 496
],
"tabs": [
- 373
+ 374
],
"type": [
- 375
+ 376
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -9286,19 +9300,19 @@ export default {
},
"PageLayoutTab": {
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"icon": [
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -9310,10 +9324,10 @@ export default {
4
],
"layoutMode": [
- 374
+ 375
],
"pageLayoutId": [
- 495
+ 496
],
"position": [
11
@@ -9322,13 +9336,13 @@ export default {
1
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"widgets": [
- 376
+ 377
],
"__typename": [
1
@@ -9338,28 +9352,28 @@ export default {
"PageLayoutType": {},
"PageLayoutWidget": {
"applicationId": [
- 495
+ 496
],
"conditionalAvailabilityExpression": [
1
],
"conditionalDisplay": [
- 291
+ 292
],
"configuration": [
- 619
+ 620
],
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"gridPosition": [
- 273
+ 274
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -9371,25 +9385,25 @@ export default {
4
],
"objectMetadataId": [
- 495
+ 496
],
"pageLayoutTabId": [
- 495
+ 496
],
"position": [
- 379
+ 380
],
"title": [
1
],
"type": [
- 621
+ 622
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -9397,7 +9411,7 @@ export default {
},
"PageLayoutWidgetCanvasPosition": {
"layoutMode": [
- 374
+ 375
],
"__typename": [
1
@@ -9411,7 +9425,7 @@ export default {
8
],
"layoutMode": [
- 374
+ 375
],
"row": [
8
@@ -9425,13 +9439,13 @@ export default {
},
"PageLayoutWidgetPosition": {
"on_PageLayoutWidgetCanvasPosition": [
- 377
+ 378
],
"on_PageLayoutWidgetGridPosition": [
- 378
+ 379
],
"on_PageLayoutWidgetVerticalListPosition": [
- 381
+ 382
],
"__typename": [
1
@@ -9440,13 +9454,13 @@ export default {
"PageLayoutWidgetVerticalListHeightBehavior": {},
"PageLayoutWidgetVerticalListPosition": {
"heightBehavior": [
- 380
+ 381
],
"index": [
8
],
"layoutMode": [
- 374
+ 375
],
"__typename": [
1
@@ -9462,10 +9476,10 @@ export default {
},
"PermissionFlag": {
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"description": [
1
@@ -9474,7 +9488,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"key": [
1
@@ -9486,10 +9500,10 @@ export default {
1
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -9498,7 +9512,7 @@ export default {
"PermissionFlagType": {},
"PieChartConfiguration": {
"aggregateFieldMetadataId": [
- 495
+ 496
],
"aggregateOperation": [
20
@@ -9507,10 +9521,10 @@ export default {
1
],
"configurationType": [
- 620
+ 621
],
"dateGranularity": [
- 365
+ 366
],
"description": [
1
@@ -9522,13 +9536,13 @@ export default {
4
],
"filter": [
- 291
+ 292
],
"firstDayOfTheWeek": [
8
],
"groupByFieldMetadataId": [
- 495
+ 496
],
"groupBySubFieldName": [
1
@@ -9543,7 +9557,7 @@ export default {
124
],
"orderBy": [
- 272
+ 273
],
"showCenterMetric": [
4
@@ -9560,10 +9574,10 @@ export default {
},
"PieChartData": {
"data": [
- 388
+ 389
],
"formattedToRawLookup": [
- 291
+ 292
],
"hasTooManyGroups": [
4
@@ -9583,10 +9597,10 @@ export default {
},
"PieChartDataInput": {
"configuration": [
- 291
+ 292
],
"objectMetadataId": [
- 495
+ 496
],
"__typename": [
1
@@ -9611,7 +9625,7 @@ export default {
1
],
"location": [
- 302
+ 303
],
"postcode": [
1
@@ -9639,7 +9653,7 @@ export default {
},
"PublicApplicationRegistration": {
"id": [
- 495
+ 496
],
"logoUrl": [
1
@@ -9659,7 +9673,7 @@ export default {
},
"PublicConnectionParametersOutput": {
"connectionSecurity": [
- 216
+ 217
],
"host": [
1
@@ -9676,16 +9690,16 @@ export default {
},
"PublicDomain": {
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"domain": [
1
],
"id": [
- 495
+ 496
],
"isValidated": [
4
@@ -9696,10 +9710,10 @@ export default {
},
"PublicFeatureFlag": {
"key": [
- 243
+ 244
],
"metadata": [
- 395
+ 396
],
"__typename": [
1
@@ -9724,13 +9738,13 @@ export default {
},
"PublicImapSmtpCaldavConnectionParameters": {
"CALDAV": [
- 392
+ 393
],
"IMAP": [
- 392
+ 393
],
"SMTP": [
- 392
+ 393
],
"__typename": [
1
@@ -9747,13 +9761,13 @@ export default {
1
],
"id": [
- 495
+ 496
],
"logo": [
1
],
"workspaceUrls": [
- 643
+ 644
],
"__typename": [
1
@@ -9764,7 +9778,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"logo": [
1
@@ -9781,7 +9795,7 @@ export default {
17,
{
"agentId": [
- 495,
+ 496,
"UUID!"
],
"limit": [
@@ -9797,7 +9811,7 @@ export default {
29,
{
"input": [
- 268,
+ 269,
"GetApiKeyInput!"
]
}
@@ -9818,7 +9832,7 @@ export default {
32,
{
"filter": [
- 300
+ 301
]
}
],
@@ -9835,10 +9849,10 @@ export default {
}
],
"appMessageChannels": [
- 319,
+ 320,
{
"filter": [
- 301
+ 302
]
}
],
@@ -9846,7 +9860,7 @@ export default {
40,
{
"applicationId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -9855,7 +9869,7 @@ export default {
41,
{
"applicationId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -9879,10 +9893,10 @@ export default {
}
],
"applicationSdkClientChecksums": [
- 440,
+ 441,
{
"applicationId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -9908,10 +9922,10 @@ export default {
}
],
"callRecordingIdForCalendarEvent": [
- 495,
+ 496,
{
"calendarEventId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -9920,7 +9934,7 @@ export default {
14,
{
"threadId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -9929,7 +9943,7 @@ export default {
126,
{
"threadId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -9938,7 +9952,7 @@ export default {
9,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -9956,7 +9970,7 @@ export default {
}
],
"checkWorkspaceInviteHashIsValid": [
- 633,
+ 634,
{
"inviteHash": [
1,
@@ -9965,7 +9979,7 @@ export default {
}
],
"checkWorkspaceSubdomainAvailability": [
- 466,
+ 467,
{
"subdomain": [
1,
@@ -9977,7 +9991,7 @@ export default {
137,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -9986,16 +10000,16 @@ export default {
137
],
"currentUser": [
- 590
+ 591
],
"currentUserApplicationAuthorizations": [
38
],
"currentUserSessions": [
- 593
+ 594
],
"currentWorkspace": [
- 625
+ 626
],
"enterpriseCheckoutSession": [
1,
@@ -10014,13 +10028,13 @@ export default {
}
],
"enterpriseSubscriptionStatus": [
- 230
+ 231
],
"eventLogs": [
- 237,
+ 238,
{
"input": [
- 236,
+ 237,
"EventLogQueryInput!"
]
}
@@ -10029,35 +10043,35 @@ export default {
43,
{
"universalIdentifier": [
- 495,
+ 496,
"UUID!"
]
}
],
"field": [
- 244,
+ 245,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"fields": [
- 246,
+ 247,
{
"filter": [
- 249,
+ 250,
"FieldFilter!"
],
"paging": [
- 187,
+ 188,
"CursorPaging!"
]
}
],
"findApplicationRegistrationByClientId": [
- 391,
+ 392,
{
"clientId": [
1,
@@ -10104,7 +10118,7 @@ export default {
}
],
"findInstallApplicationJobStatus": [
- 294,
+ 295,
{
"jobId": [
1
@@ -10125,10 +10139,10 @@ export default {
37
],
"findManyLogicFunctions": [
- 303
+ 304
],
"findManyMarketplaceApps": [
- 311,
+ 312,
{
"universalIdentifiers": [
1,
@@ -10137,10 +10151,10 @@ export default {
}
],
"findManyPublicDomains": [
- 393
+ 394
],
"findMarketplaceAppDetail": [
- 312,
+ 313,
{
"universalIdentifier": [
1,
@@ -10161,10 +10175,10 @@ export default {
37,
{
"id": [
- 495
+ 496
],
"universalIdentifier": [
- 495
+ 496
]
}
],
@@ -10178,16 +10192,16 @@ export default {
}
],
"findOneLogicFunction": [
- 303,
+ 304,
{
"input": [
- 307,
+ 308,
"LogicFunctionIdInput!"
]
}
],
"findUninstallApplicationJobStatus": [
- 294,
+ 295,
{
"jobId": [
1
@@ -10199,7 +10213,7 @@ export default {
}
],
"findUpgradeApplicationJobStatus": [
- 294,
+ 295,
{
"jobId": [
1
@@ -10211,10 +10225,10 @@ export default {
}
],
"findWorkspaceAiStats": [
- 627
+ 628
],
"findWorkspaceFromInviteHash": [
- 625,
+ 626,
{
"inviteHash": [
1,
@@ -10223,22 +10237,22 @@ export default {
}
],
"findWorkspaceInvitations": [
- 632
+ 633
],
"frontComponent": [
- 264,
+ 265,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"frontComponents": [
- 264
+ 265
],
"getAddressDetails": [
- 389,
+ 390,
{
"placeId": [
1,
@@ -10254,7 +10268,7 @@ export default {
23
],
"getApiKeyRoles": [
- 422
+ 423
],
"getApprovedAccessDomains": [
63
@@ -10279,31 +10293,31 @@ export default {
}
],
"getAvailablePackages": [
- 291,
+ 292,
{
"input": [
- 307,
+ 308,
"LogicFunctionIdInput!"
]
}
],
"getConnectedImapSmtpCaldavAccount": [
- 142,
+ 143,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"getEmailingDomains": [
- 219
+ 220
],
"getInviteSuggestions": [
- 290
+ 291
],
"getJobs": [
- 294,
+ 295,
{
"jobIds": [
1,
@@ -10315,13 +10329,13 @@ export default {
1,
{
"input": [
- 307,
+ 308,
"LogicFunctionIdInput!"
]
}
],
"getPageLayout": [
- 372,
+ 373,
{
"id": [
1,
@@ -10330,7 +10344,7 @@ export default {
}
],
"getPageLayoutTab": [
- 373,
+ 374,
{
"id": [
1,
@@ -10339,7 +10353,7 @@ export default {
}
],
"getPageLayoutTabs": [
- 373,
+ 374,
{
"pageLayoutId": [
1,
@@ -10348,7 +10362,7 @@ export default {
}
],
"getPageLayoutWidget": [
- 376,
+ 377,
{
"id": [
1,
@@ -10357,7 +10371,7 @@ export default {
}
],
"getPageLayoutWidgets": [
- 376,
+ 377,
{
"pageLayoutTabId": [
1,
@@ -10366,21 +10380,21 @@ export default {
}
],
"getPageLayouts": [
- 372,
+ 373,
{
"objectMetadataId": [
1
],
"pageLayoutType": [
- 375
+ 376
]
}
],
"getPermissionFlags": [
- 383
+ 384
],
"getPublicWorkspaceDataByDomain": [
- 397,
+ 398,
{
"origin": [
1
@@ -10388,10 +10402,10 @@ export default {
}
],
"getPublicWorkspaceDataById": [
- 398,
+ 399,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
@@ -10400,25 +10414,25 @@ export default {
99
],
"getRole": [
- 422,
+ 423,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"getRoles": [
- 422
+ 423
],
"getSSOIdentityProviders": [
- 261
+ 262
],
"getToolIndex": [
- 477
+ 478
],
"getToolInputSchema": [
- 291,
+ 292,
{
"toolName": [
1,
@@ -10427,15 +10441,15 @@ export default {
}
],
"getUsageAnalytics": [
- 574,
+ 575,
{
"input": [
- 575
+ 576
]
}
],
"getView": [
- 602,
+ 603,
{
"id": [
1,
@@ -10444,7 +10458,7 @@ export default {
}
],
"getViewField": [
- 605,
+ 606,
{
"id": [
1,
@@ -10453,7 +10467,7 @@ export default {
}
],
"getViewFieldGroup": [
- 606,
+ 607,
{
"id": [
1,
@@ -10462,7 +10476,7 @@ export default {
}
],
"getViewFieldGroups": [
- 606,
+ 607,
{
"viewId": [
1,
@@ -10471,7 +10485,7 @@ export default {
}
],
"getViewFields": [
- 605,
+ 606,
{
"viewId": [
1,
@@ -10480,7 +10494,7 @@ export default {
}
],
"getViewFilter": [
- 607,
+ 608,
{
"id": [
1,
@@ -10489,7 +10503,7 @@ export default {
}
],
"getViewFilterGroup": [
- 608,
+ 609,
{
"id": [
1,
@@ -10498,7 +10512,7 @@ export default {
}
],
"getViewFilterGroups": [
- 608,
+ 609,
{
"viewId": [
1
@@ -10506,7 +10520,7 @@ export default {
}
],
"getViewFilters": [
- 607,
+ 608,
{
"viewId": [
1
@@ -10514,7 +10528,7 @@ export default {
}
],
"getViewGroup": [
- 611,
+ 612,
{
"id": [
1,
@@ -10523,7 +10537,7 @@ export default {
}
],
"getViewGroups": [
- 611,
+ 612,
{
"viewId": [
1
@@ -10531,7 +10545,7 @@ export default {
}
],
"getViewSort": [
- 614,
+ 615,
{
"id": [
1,
@@ -10540,7 +10554,7 @@ export default {
}
],
"getViewSorts": [
- 614,
+ 615,
{
"viewId": [
1
@@ -10548,19 +10562,19 @@ export default {
}
],
"getViews": [
- 602,
+ 603,
{
"objectMetadataId": [
1
],
"viewTypes": [
- 616,
+ 617,
"[ViewType!]"
]
}
],
"getWorkspaceCreationDefaults": [
- 630
+ 631
],
"githubClaimAuthorizationUrl": [
1,
@@ -10581,10 +10595,10 @@ export default {
}
],
"lineChartData": [
- 296,
+ 297,
{
"input": [
- 297,
+ 298,
"LineChartDataInput!"
]
}
@@ -10593,31 +10607,31 @@ export default {
90
],
"messageSuppressions": [
- 331,
+ 332,
{
"input": [
- 262,
+ 263,
"FindMessageSuppressionsInput!"
]
}
],
"metadataTranslations": [
- 337,
+ 338,
{
"input": [
- 340,
+ 341,
"MetadataTranslationsInput!"
]
}
],
"minimalMetadata": [
- 342
+ 343
],
"mostlyEmptyFieldMetadataIds": [
- 495,
+ 496,
{
"objectMetadataId": [
- 495,
+ 496,
"UUID!"
]
}
@@ -10626,7 +10640,7 @@ export default {
110,
{
"connectedAccountId": [
- 495
+ 496
]
}
],
@@ -10634,66 +10648,66 @@ export default {
141
],
"myMessageChannels": [
- 319,
+ 320,
{
"connectedAccountId": [
- 495
+ 496
]
}
],
"myMessageFolders": [
- 326,
+ 327,
{
"messageChannelId": [
- 495
+ 496
]
}
],
"myUserApplicationVariables": [
- 635
+ 636
],
"navigationMenuItem": [
- 348,
+ 349,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"navigationMenuItems": [
- 348
+ 349
],
"object": [
- 351,
+ 352,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"objectRecordCounts": [
- 361
+ 362
],
"objects": [
- 352,
+ 353,
{
"filter": [
- 355,
+ 356,
"ObjectFilter!"
],
"paging": [
- 187,
+ 188,
"CursorPaging!"
]
}
],
"pieChartData": [
- 386,
+ 387,
{
"input": [
- 387,
+ 388,
"PieChartDataInput!"
]
}
@@ -10702,13 +10716,13 @@ export default {
118,
{
"input": [
- 390,
+ 391,
"PreviewMessageCampaignAudienceInput!"
]
}
],
"publicMarketplaceAppDetail": [
- 312,
+ 313,
{
"universalIdentifier": [
1,
@@ -10717,7 +10731,7 @@ export default {
}
],
"publicMarketplaceApps": [
- 311,
+ 312,
{
"isVetted": [
4,
@@ -10726,70 +10740,70 @@ export default {
}
],
"recordPermissions": [
- 404,
+ 405,
{
"targets": [
- 414,
+ 415,
"[RecordTargetInput!]!"
]
}
],
"recordSharing": [
- 409,
+ 410,
{
"target": [
- 414,
+ 415,
"RecordTargetInput!"
]
}
],
"skill": [
- 462,
+ 463,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"skills": [
- 462
+ 463
],
"timelineActivityTypes": [
- 473
+ 474
],
"twoFactorAuthenticationRecoveryStatus": [
- 494,
+ 495,
{
"userId": [
- 495,
+ 496,
"UUID!"
]
}
],
"unsubscribeTopics": [
- 498
+ 499
],
"usageLimits": [
- 577
+ 578
],
"usageQuotaDefinitions": [
- 581
+ 582
],
"usageQuotaScopeConsumption": [
- 583,
+ 584,
{
"input": [
- 584,
+ 585,
"UsageQuotaScopeInput!"
]
}
],
"usageQuotasWithConsumption": [
- 585
+ 586
],
"validatePasswordResetToken": [
- 596,
+ 597,
{
"passwordResetToken": [
1,
@@ -10798,25 +10812,25 @@ export default {
}
],
"validationRules": [
- 597,
+ 598,
{
"objectMetadataId": [
- 495,
+ 496,
"UUID!"
]
}
],
"webhook": [
- 618,
+ 619,
{
"id": [
- 495,
+ 496,
"UUID!"
]
}
],
"webhooks": [
- 618
+ 619
],
"__typename": [
1
@@ -10824,7 +10838,7 @@ export default {
},
"RatioAggregateConfig": {
"fieldMetadataId": [
- 495
+ 496
],
"optionValue": [
1
@@ -10844,7 +10858,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"progress": [
8
@@ -10855,7 +10869,7 @@ export default {
},
"RecordIdentifier": {
"id": [
- 495
+ 496
],
"imageIdentifier": [
1
@@ -10886,13 +10900,13 @@ export default {
},
"RecordPermissionsResult": {
"objectMetadataId": [
- 495
+ 496
],
"permissions": [
- 403
+ 404
],
"recordId": [
- 495
+ 496
],
"__typename": [
1
@@ -10901,10 +10915,10 @@ export default {
"RecordShareAccessLevel": {},
"RecordSharePrincipalInput": {
"roleId": [
- 495
+ 496
],
"workspaceMemberId": [
- 495
+ 496
],
"__typename": [
1
@@ -10917,25 +10931,25 @@ export default {
4
],
"defaultGeneralAccessLevel": [
- 405
+ 406
],
"generalAccessLevel": [
- 405
+ 406
],
"hasManagedGeneralAccess": [
4
],
"permissions": [
- 403
+ 404
],
"roles": [
- 412
+ 413
],
"shares": [
- 410
+ 411
],
"sharingMode": [
- 411
+ 412
],
"__typename": [
1
@@ -10943,22 +10957,22 @@ export default {
},
"RecordSharingGrantDTO": {
"accessLevel": [
- 405
+ 406
],
"id": [
10
],
"principalId": [
- 495
+ 496
],
"principalRoleId": [
- 495
+ 496
],
"principalType": [
- 407
+ 408
],
"rowCause": [
- 408
+ 409
],
"__typename": [
1
@@ -10973,7 +10987,7 @@ export default {
4
],
"id": [
- 495
+ 496
],
"label": [
1
@@ -10984,7 +10998,7 @@ export default {
},
"RecordTableConfiguration": {
"configurationType": [
- 620
+ 621
],
"isUIEditable": [
4
@@ -11001,10 +11015,10 @@ export default {
},
"RecordTargetInput": {
"objectMetadataId": [
- 495
+ 496
],
"recordId": [
- 495
+ 496
],
"__typename": [
1
@@ -11012,19 +11026,19 @@ export default {
},
"Relation": {
"sourceFieldMetadata": [
- 244
+ 245
],
"sourceObjectMetadata": [
- 351
+ 352
],
"targetFieldMetadata": [
- 244
+ 245
],
"targetObjectMetadata": [
- 351
+ 352
],
"type": [
- 416
+ 417
],
"__typename": [
1
@@ -11063,7 +11077,7 @@ export default {
},
"RevokeApiKeyInput": {
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -11088,7 +11102,7 @@ export default {
30
],
"applicationId": [
- 495
+ 496
],
"canAccessAllTools": [
4
@@ -11121,13 +11135,13 @@ export default {
1
],
"fieldPermissions": [
- 251
+ 252
],
"icon": [
1
],
"id": [
- 495
+ 496
],
"isEditable": [
4
@@ -11136,22 +11150,22 @@ export default {
1
],
"objectPermissions": [
- 359
+ 360
],
"permissionFlags": [
- 423
+ 424
],
"rowLevelPermissionPredicateGroups": [
- 426
+ 427
],
"rowLevelPermissionPredicates": [
- 425
+ 426
],
"universalIdentifier": [
- 495
+ 496
],
"workspaceMembers": [
- 634
+ 635
],
"__typename": [
1
@@ -11162,10 +11176,10 @@ export default {
1
],
"id": [
- 495
+ 496
],
"roleId": [
- 495
+ 496
],
"__typename": [
1
@@ -11190,7 +11204,7 @@ export default {
1
],
"operand": [
- 430
+ 431
],
"positionInRowLevelPermissionPredicateGroup": [
11
@@ -11205,7 +11219,7 @@ export default {
1
],
"value": [
- 291
+ 292
],
"workspaceMemberFieldMetadataId": [
1
@@ -11222,7 +11236,7 @@ export default {
1
],
"logicalOperator": [
- 428
+ 429
],
"objectMetadataId": [
1
@@ -11242,16 +11256,16 @@ export default {
},
"RowLevelPermissionPredicateGroupInput": {
"id": [
- 495
+ 496
],
"logicalOperator": [
- 428
+ 429
],
"objectMetadataId": [
- 495
+ 496
],
"parentRowLevelPermissionPredicateGroupId": [
- 495
+ 496
],
"positionInRowLevelPermissionPredicateGroup": [
11
@@ -11263,25 +11277,25 @@ export default {
"RowLevelPermissionPredicateGroupLogicalOperator": {},
"RowLevelPermissionPredicateInput": {
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"operand": [
- 430
+ 431
],
"positionInRowLevelPermissionPredicateGroup": [
11
],
"rowLevelPermissionPredicateGroupId": [
- 495
+ 496
],
"subFieldName": [
1
],
"value": [
- 291
+ 292
],
"workspaceMemberFieldMetadataId": [
1
@@ -11302,22 +11316,22 @@ export default {
1
],
"input": [
- 433
+ 434
],
"messages": [
- 433
+ 434
],
"prompt": [
1
],
"responseFormat": [
- 291
+ 292
],
"runAsWorkspaceMemberId": [
- 495
+ 496
],
"thread": [
- 436
+ 437
],
"__typename": [
1
@@ -11325,7 +11339,7 @@ export default {
},
"RunAgentMessageAttachmentInput": {
"fileId": [
- 495
+ 496
],
"filename": [
1
@@ -11336,13 +11350,13 @@ export default {
},
"RunAgentMessageInput": {
"attachments": [
- 432
+ 433
],
"content": [
1
],
"role": [
- 434
+ 435
],
"__typename": [
1
@@ -11354,7 +11368,7 @@ export default {
1
],
"result": [
- 291
+ 292
],
"status": [
1
@@ -11363,7 +11377,7 @@ export default {
4
],
"threadId": [
- 495
+ 496
],
"__typename": [
1
@@ -11382,7 +11396,7 @@ export default {
},
"SSOConnection": {
"id": [
- 495
+ 496
],
"issuer": [
1
@@ -11391,10 +11405,10 @@ export default {
1
],
"status": [
- 439
+ 440
],
"type": [
- 274
+ 275
],
"__typename": [
1
@@ -11402,7 +11416,7 @@ export default {
},
"SSOIdentityProvider": {
"id": [
- 495
+ 496
],
"issuer": [
1
@@ -11411,10 +11425,10 @@ export default {
1
],
"status": [
- 439
+ 440
],
"type": [
- 274
+ 275
],
"__typename": [
1
@@ -11434,22 +11448,22 @@ export default {
},
"SearchField": {
"createdAt": [
- 189
+ 190
],
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"position": [
11
],
"tsVectorFieldMetadataId": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -11457,7 +11471,7 @@ export default {
},
"SendChatMessageResult": {
"mentionedParticipantWorkspaceMemberIds": [
- 495
+ 496
],
"messageId": [
1
@@ -11500,7 +11514,7 @@ export default {
1
],
"files": [
- 443
+ 444
],
"fromHandle": [
1
@@ -11554,10 +11568,10 @@ export default {
1
],
"toolCall": [
- 291
+ 292
],
"workspaceMemberIds": [
- 495
+ 496
],
"__typename": [
1
@@ -11565,7 +11579,7 @@ export default {
},
"SendInboxMessageResult": {
"threadId": [
- 495
+ 496
],
"__typename": [
1
@@ -11576,7 +11590,7 @@ export default {
1
],
"result": [
- 632
+ 633
],
"success": [
4
@@ -11590,7 +11604,7 @@ export default {
1
],
"scheduledAt": [
- 189
+ 190
],
"__typename": [
1
@@ -11655,7 +11669,7 @@ export default {
34
],
"value": [
- 291
+ 292
],
"__typename": [
1
@@ -11663,34 +11677,34 @@ export default {
},
"SettingsMenuItem": {
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"frontComponentId": [
- 495
+ 496
],
"icon": [
1
],
"id": [
- 495
+ 496
],
"position": [
11
],
"scope": [
- 456
+ 457
],
"title": [
1
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -11722,7 +11736,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"issuer": [
1
@@ -11739,7 +11753,7 @@ export default {
},
"SetupSso": {
"id": [
- 495
+ 496
],
"issuer": [
1
@@ -11748,10 +11762,10 @@ export default {
1
],
"status": [
- 439
+ 440
],
"type": [
- 274
+ 275
],
"__typename": [
1
@@ -11762,7 +11776,7 @@ export default {
66
],
"workspace": [
- 644
+ 645
],
"__typename": [
1
@@ -11784,13 +11798,13 @@ export default {
},
"Skill": {
"applicationId": [
- 495
+ 496
],
"content": [
1
],
"createdAt": [
- 189
+ 190
],
"description": [
1
@@ -11799,7 +11813,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -11817,7 +11831,7 @@ export default {
1
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -11825,10 +11839,10 @@ export default {
},
"StandaloneRichTextConfiguration": {
"body": [
- 421
+ 422
],
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -11836,7 +11850,7 @@ export default {
},
"StartWorkspaceSetupChatResult": {
"outcome": [
- 642
+ 643
],
"thread": [
9
@@ -11872,32 +11886,32 @@ export default {
},
"Subscription": {
"eventLogsLive": [
- 238,
+ 239,
{
"fieldFilters": [
- 232,
+ 233,
"[EventLogFieldFilterInput!]"
],
"table": [
- 239,
+ 240,
"EventLogTable!"
]
}
],
"exportRecords": [
- 401,
+ 402,
{
"input": [
- 173,
+ 174,
"CreateRecordExportInput!"
]
}
],
"logicFunctionLogs": [
- 308,
+ 309,
{
"input": [
- 309,
+ 310,
"LogicFunctionLogsInput!"
]
}
@@ -11906,13 +11920,13 @@ export default {
5,
{
"threadId": [
- 495,
+ 496,
"UUID!"
]
}
],
"onEventSubscription": [
- 240,
+ 241,
{
"eventStreamId": [
1,
@@ -11928,7 +11942,7 @@ export default {
"SubscriptionStatus": {},
"Support": {
"supportDriver": [
- 471
+ 472
],
"supportFrontChatId": [
1
@@ -11940,7 +11954,7 @@ export default {
"SupportDriver": {},
"TasksConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -11951,22 +11965,22 @@ export default {
1
],
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"emit": [
- 474
+ 475
],
"frontComponentUniversalIdentifier": [
- 495
+ 496
],
"icon": [
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -11978,16 +11992,16 @@ export default {
1
],
"objectUniversalIdentifier": [
- 495
+ 496
],
"replacesTimelineActivityTypeUniversalIdentifier": [
- 495
+ 496
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -11995,13 +12009,13 @@ export default {
},
"TimelineActivityTypeEmit": {
"objectUniversalIdentifier": [
- 495
+ 496
],
"on": [
1
],
"through": [
- 475
+ 476
],
"__typename": [
1
@@ -12009,13 +12023,13 @@ export default {
},
"TimelineActivityTypeEmitThrough": {
"happensAtFieldUniversalIdentifier": [
- 495
+ 496
],
"relationFieldUniversalIdentifier": [
- 495
+ 496
],
"triggerFieldUniversalIdentifiers": [
- 495
+ 496
],
"__typename": [
1
@@ -12023,7 +12037,7 @@ export default {
},
"TimelineConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -12043,7 +12057,7 @@ export default {
1
],
"inputSchema": [
- 291
+ 292
],
"label": [
1
@@ -12071,10 +12085,10 @@ export default {
},
"TriggerAddPeopleToMessageListJobInput": {
"messageListId": [
- 495
+ 496
],
"personFilter": [
- 291
+ 292
],
"__typename": [
1
@@ -12179,7 +12193,7 @@ export default {
1
],
"twoFactorAuthenticationMethodId": [
- 495
+ 496
],
"__typename": [
1
@@ -12187,7 +12201,7 @@ export default {
},
"TwoFactorAuthenticationRecoveryCode": {
"expiresAt": [
- 189
+ 190
],
"recoveryCode": [
1
@@ -12215,7 +12229,7 @@ export default {
4
],
"pendingRecoveryCodeExpiresAt": [
- 189
+ 190
],
"__typename": [
1
@@ -12224,19 +12238,19 @@ export default {
"UUID": {},
"UUIDFilterComparison": {
"eq": [
- 495
+ 496
],
"gt": [
- 495
+ 496
],
"gte": [
- 495
+ 496
],
"iLike": [
- 495
+ 496
],
"in": [
- 495
+ 496
],
"is": [
4
@@ -12245,25 +12259,25 @@ export default {
4
],
"like": [
- 495
+ 496
],
"lt": [
- 495
+ 496
],
"lte": [
- 495
+ 496
],
"neq": [
- 495
+ 496
],
"notILike": [
- 495
+ 496
],
"notIn": [
- 495
+ 496
],
"notLike": [
- 495
+ 496
],
"__typename": [
1
@@ -12272,22 +12286,22 @@ export default {
"UnsubscribeHostnameStatus": {},
"UnsubscribeTopic": {
"createdAt": [
- 189
+ 190
],
"description": [
1
],
"id": [
- 495
+ 496
],
"name": [
1
],
"updatedAt": [
- 189
+ 190
],
"visibility": [
- 499
+ 500
],
"__typename": [
1
@@ -12302,13 +12316,13 @@ export default {
1
],
"id": [
- 495
+ 496
],
"label": [
1
],
"modelConfiguration": [
- 291
+ 292
],
"modelId": [
1
@@ -12320,13 +12334,13 @@ export default {
1
],
"responseFormat": [
- 291
+ 292
],
"roleId": [
- 495
+ 496
],
"triggers": [
- 291
+ 292
],
"__typename": [
1
@@ -12337,7 +12351,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"name": [
1
@@ -12354,13 +12368,13 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isSyncEnabled": [
4
],
"visibility": [
- 325
+ 326
],
"__typename": [
1
@@ -12379,7 +12393,7 @@ export default {
1
],
"update": [
- 505
+ 506
],
"__typename": [
1
@@ -12404,7 +12418,7 @@ export default {
1
],
"update": [
- 507
+ 508
],
"__typename": [
1
@@ -12426,10 +12440,10 @@ export default {
},
"UpdateCalendarChannelInput": {
"id": [
- 495
+ 496
],
"update": [
- 509
+ 510
],
"__typename": [
1
@@ -12454,13 +12468,13 @@ export default {
},
"UpdateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 495
+ 496
],
"availabilityType": [
138
],
"engineComponentKey": [
- 223
+ 224
],
"hotKeys": [
1
@@ -12469,7 +12483,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isPinned": [
4
@@ -12478,7 +12492,7 @@ export default {
1
],
"pageLayoutId": [
- 495
+ 496
],
"position": [
11
@@ -12495,7 +12509,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -12503,7 +12517,7 @@ export default {
},
"UpdateFieldInput": {
"defaultValue": [
- 291
+ 292
],
"description": [
1
@@ -12542,22 +12556,22 @@ export default {
1
],
"morphRelationsUpdatePayload": [
- 291
+ 292
],
"name": [
1
],
"objectMetadataId": [
- 495
+ 496
],
"options": [
- 291
+ 292
],
"settings": [
- 291
+ 292
],
"translations": [
- 338
+ 339
],
"universalIdentifier": [
1
@@ -12568,10 +12582,10 @@ export default {
},
"UpdateFrontComponentInput": {
"id": [
- 495
+ 496
],
"update": [
- 514
+ 515
],
"__typename": [
1
@@ -12601,10 +12615,10 @@ export default {
},
"UpdateLogicFunctionFromSourceInput": {
"id": [
- 495
+ 496
],
"update": [
- 517
+ 518
],
"__typename": [
1
@@ -12612,10 +12626,10 @@ export default {
},
"UpdateLogicFunctionFromSourceInputUpdates": {
"cronTriggerSettings": [
- 291
+ 292
],
"databaseEventTriggerSettings": [
- 291
+ 292
],
"description": [
1
@@ -12624,7 +12638,7 @@ export default {
1
],
"httpRouteTriggerSettings": [
- 291
+ 292
],
"name": [
1
@@ -12639,10 +12653,10 @@ export default {
11
],
"toolTriggerSettings": [
- 291
+ 292
],
"workflowActionTriggerSettings": [
- 291
+ 292
],
"__typename": [
1
@@ -12650,10 +12664,10 @@ export default {
},
"UpdateMessageChannelInput": {
"id": [
- 495
+ 496
],
"update": [
- 519
+ 520
],
"__typename": [
1
@@ -12661,7 +12675,7 @@ export default {
},
"UpdateMessageChannelInputUpdates": {
"contactAutoCreationPolicy": [
- 320
+ 321
],
"excludeGroupEmails": [
4
@@ -12676,10 +12690,10 @@ export default {
4
],
"messageFolderImportPolicy": [
- 327
+ 328
],
"visibility": [
- 325
+ 326
],
"__typename": [
1
@@ -12687,10 +12701,10 @@ export default {
},
"UpdateMessageFolderInput": {
"id": [
- 495
+ 496
],
"update": [
- 521
+ 522
],
"__typename": [
1
@@ -12706,10 +12720,10 @@ export default {
},
"UpdateMessageFoldersInput": {
"ids": [
- 495
+ 496
],
"update": [
- 521
+ 522
],
"__typename": [
1
@@ -12720,7 +12734,7 @@ export default {
1
],
"folderId": [
- 495
+ 496
],
"icon": [
1
@@ -12732,7 +12746,7 @@ export default {
1
],
"pageLayoutId": [
- 495
+ 496
],
"position": [
11
@@ -12752,7 +12766,7 @@ export default {
1
],
"imageIdentifierFieldMetadataId": [
- 495
+ 496
],
"isActive": [
4
@@ -12764,7 +12778,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 495
+ 496
],
"labelPlural": [
1
@@ -12779,19 +12793,19 @@ export default {
1
],
"openRecordIn": [
- 358
+ 359
],
"readability": [
- 336
+ 337
],
"sharingReach": [
- 366
+ 367
],
"shortcut": [
1
],
"translations": [
- 338
+ 339
],
"__typename": [
1
@@ -12799,10 +12813,10 @@ export default {
},
"UpdateOneFieldMetadataInput": {
"id": [
- 495
+ 496
],
"update": [
- 512
+ 513
],
"__typename": [
1
@@ -12810,10 +12824,10 @@ export default {
},
"UpdateOneNavigationMenuItemInput": {
"id": [
- 495
+ 496
],
"update": [
- 523
+ 524
],
"__typename": [
1
@@ -12821,10 +12835,10 @@ export default {
},
"UpdateOneObjectInput": {
"id": [
- 495
+ 496
],
"update": [
- 524
+ 525
],
"__typename": [
1
@@ -12835,10 +12849,10 @@ export default {
1
],
"objectMetadataId": [
- 495
+ 496
],
"type": [
- 375
+ 376
],
"__typename": [
1
@@ -12849,7 +12863,7 @@ export default {
1
],
"layoutMode": [
- 374
+ 375
],
"position": [
11
@@ -12866,10 +12880,10 @@ export default {
1
],
"id": [
- 495
+ 496
],
"layoutMode": [
- 374
+ 375
],
"position": [
11
@@ -12878,7 +12892,7 @@ export default {
1
],
"widgets": [
- 532
+ 533
],
"__typename": [
1
@@ -12889,28 +12903,28 @@ export default {
1
],
"conditionalDisplay": [
- 291
+ 292
],
"configuration": [
- 291
+ 292
],
"isActive": [
4
],
"objectMetadataId": [
- 495
+ 496
],
"pageLayoutTabId": [
- 495
+ 496
],
"position": [
- 291
+ 292
],
"title": [
1
],
"type": [
- 621
+ 622
],
"__typename": [
1
@@ -12921,28 +12935,28 @@ export default {
1
],
"conditionalDisplay": [
- 291
+ 292
],
"configuration": [
- 291
+ 292
],
"id": [
- 495
+ 496
],
"objectMetadataId": [
- 495
+ 496
],
"pageLayoutTabId": [
- 495
+ 496
],
"position": [
- 291
+ 292
],
"title": [
1
],
"type": [
- 621
+ 622
],
"__typename": [
1
@@ -12956,13 +12970,13 @@ export default {
1
],
"objectMetadataId": [
- 495
+ 496
],
"tabs": [
- 530
+ 531
],
"type": [
- 375
+ 376
],
"__typename": [
1
@@ -12970,10 +12984,10 @@ export default {
},
"UpdateRoleInput": {
"id": [
- 495
+ 496
],
"update": [
- 535
+ 536
],
"__typename": [
1
@@ -13031,7 +13045,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -13051,7 +13065,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -13060,7 +13074,7 @@ export default {
1
],
"translations": [
- 338
+ 339
],
"__typename": [
1
@@ -13077,7 +13091,7 @@ export default {
1
],
"visibility": [
- 499
+ 500
],
"__typename": [
1
@@ -13085,10 +13099,10 @@ export default {
},
"UpdateUsageLimitInput": {
"id": [
- 495
+ 496
],
"payload": [
- 177
+ 178
],
"__typename": [
1
@@ -13096,10 +13110,10 @@ export default {
},
"UpdateValidationRuleInput": {
"id": [
- 495
+ 496
],
"update": [
- 541
+ 542
],
"__typename": [
1
@@ -13110,7 +13124,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 495
+ 496
],
"expression": [
1
@@ -13133,10 +13147,10 @@ export default {
},
"UpdateViewFieldGroupInput": {
"id": [
- 495
+ 496
],
"update": [
- 543
+ 544
],
"__typename": [
1
@@ -13161,10 +13175,10 @@ export default {
},
"UpdateViewFieldInput": {
"id": [
- 495
+ 496
],
"update": [
- 545
+ 546
],
"__typename": [
1
@@ -13184,7 +13198,7 @@ export default {
11
],
"viewFieldGroupId": [
- 495
+ 496
],
"__typename": [
1
@@ -13192,19 +13206,19 @@ export default {
},
"UpdateViewFilterGroupInput": {
"id": [
- 495
+ 496
],
"logicalOperator": [
- 609
+ 610
],
"parentViewFilterGroupId": [
- 495
+ 496
],
"positionInViewFilterGroup": [
11
],
"viewId": [
- 495
+ 496
],
"__typename": [
1
@@ -13212,10 +13226,10 @@ export default {
},
"UpdateViewFilterInput": {
"id": [
- 495
+ 496
],
"update": [
- 548
+ 549
],
"__typename": [
1
@@ -13223,25 +13237,25 @@ export default {
},
"UpdateViewFilterInputUpdates": {
"fieldMetadataId": [
- 495
+ 496
],
"operand": [
- 610
+ 611
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 495
+ 496
],
"subFieldName": [
1
],
"value": [
- 291
+ 292
],
"viewFilterGroupId": [
- 495
+ 496
],
"__typename": [
1
@@ -13249,10 +13263,10 @@ export default {
},
"UpdateViewGroupInput": {
"id": [
- 495
+ 496
],
"update": [
- 550
+ 551
],
"__typename": [
1
@@ -13260,7 +13274,7 @@ export default {
},
"UpdateViewGroupInputUpdates": {
"fieldMetadataId": [
- 495
+ 496
],
"fieldValue": [
1
@@ -13280,13 +13294,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 495
+ 496
],
"calendarFieldMetadataId": [
- 495
+ 496
],
"calendarLayout": [
- 603
+ 604
],
"groupLoadLimit": [
8
@@ -13295,7 +13309,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isCompact": [
4
@@ -13304,19 +13318,19 @@ export default {
20
],
"kanbanAggregateOperationFieldMetadataId": [
- 495
+ 496
],
"kanbanColumnWidth": [
8
],
"mainGroupByFieldMetadataId": [
- 495
+ 496
],
"name": [
1
],
"openRecordIn": [
- 613
+ 614
],
"position": [
11
@@ -13325,10 +13339,10 @@ export default {
4
],
"type": [
- 616
+ 617
],
"visibility": [
- 617
+ 618
],
"__typename": [
1
@@ -13336,10 +13350,10 @@ export default {
},
"UpdateViewSortInput": {
"id": [
- 495
+ 496
],
"update": [
- 553
+ 554
],
"__typename": [
1
@@ -13347,7 +13361,7 @@ export default {
},
"UpdateViewSortInputUpdates": {
"direction": [
- 615
+ 616
],
"subFieldName": [
1
@@ -13358,10 +13372,10 @@ export default {
},
"UpdateWebhookInput": {
"id": [
- 495
+ 496
],
"update": [
- 555
+ 556
],
"__typename": [
1
@@ -13409,7 +13423,7 @@ export default {
1
],
"aiModelIdByTier": [
- 291
+ 292
],
"allowImpersonation": [
4
@@ -13418,7 +13432,7 @@ export default {
1
],
"defaultRoleId": [
- 495
+ 496
],
"displayName": [
1
@@ -13478,7 +13492,7 @@ export default {
11
],
"workspaceDiscoverability": [
- 631
+ 632
],
"__typename": [
1
@@ -13486,10 +13500,10 @@ export default {
},
"UpdateWorkspaceMemberSettingsInput": {
"update": [
- 291
+ 292
],
"workspaceMemberId": [
- 495
+ 496
],
"__typename": [
1
@@ -13498,10 +13512,10 @@ export default {
"Upload": {},
"UpsertFieldPermissionsInput": {
"fieldPermissions": [
- 252
+ 253
],
"roleId": [
- 495
+ 496
],
"__typename": [
1
@@ -13509,7 +13523,7 @@ export default {
},
"UpsertFieldsWidgetFieldInput": {
"fieldMetadataId": [
- 495
+ 496
],
"isVisible": [
4
@@ -13518,7 +13532,7 @@ export default {
11
],
"viewFieldId": [
- 495
+ 496
],
"__typename": [
1
@@ -13526,10 +13540,10 @@ export default {
},
"UpsertFieldsWidgetGroupInput": {
"fields": [
- 561
+ 562
],
"id": [
- 495
+ 496
],
"isVisible": [
4
@@ -13546,13 +13560,13 @@ export default {
},
"UpsertFieldsWidgetInput": {
"fields": [
- 561
+ 562
],
"groups": [
- 562
+ 563
],
"widgetId": [
- 495
+ 496
],
"__typename": [
1
@@ -13560,10 +13574,10 @@ export default {
},
"UpsertObjectPermissionsInput": {
"objectPermissions": [
- 360
+ 361
],
"roleId": [
- 495
+ 496
],
"__typename": [
1
@@ -13574,7 +13588,7 @@ export default {
1
],
"roleId": [
- 495
+ 496
],
"__typename": [
1
@@ -13582,16 +13596,16 @@ export default {
},
"UpsertRowLevelPermissionPredicatesInput": {
"objectMetadataId": [
- 495
+ 496
],
"predicateGroups": [
- 427
+ 428
],
"predicates": [
- 429
+ 430
],
"roleId": [
- 495
+ 496
],
"__typename": [
1
@@ -13599,10 +13613,10 @@ export default {
},
"UpsertRowLevelPermissionPredicatesResult": {
"predicateGroups": [
- 426
+ 427
],
"predicates": [
- 425
+ 426
],
"__typename": [
1
@@ -13610,22 +13624,22 @@ export default {
},
"UpsertViewWidgetInput": {
"view": [
- 572
+ 573
],
"viewFields": [
- 569
+ 570
],
"viewFilterGroups": [
- 570
+ 571
],
"viewFilters": [
- 571
+ 572
],
"viewSorts": [
- 573
+ 574
],
"widgetId": [
- 495
+ 496
],
"__typename": [
1
@@ -13636,7 +13650,7 @@ export default {
20
],
"fieldMetadataId": [
- 495
+ 496
],
"isVisible": [
4
@@ -13648,7 +13662,7 @@ export default {
11
],
"viewFieldId": [
- 495
+ 496
],
"__typename": [
1
@@ -13656,13 +13670,13 @@ export default {
},
"UpsertViewWidgetViewFilterGroupInput": {
"id": [
- 495
+ 496
],
"logicalOperator": [
- 609
+ 610
],
"parentViewFilterGroupId": [
- 495
+ 496
],
"positionInViewFilterGroup": [
11
@@ -13673,28 +13687,28 @@ export default {
},
"UpsertViewWidgetViewFilterInput": {
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"operand": [
- 610
+ 611
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 495
+ 496
],
"subFieldName": [
1
],
"value": [
- 291
+ 292
],
"viewFilterGroupId": [
- 495
+ 496
],
"__typename": [
1
@@ -13702,34 +13716,34 @@ export default {
},
"UpsertViewWidgetViewSettingsInput": {
"calendarEndFieldMetadataId": [
- 495
+ 496
],
"calendarFieldMetadataId": [
- 495
+ 496
],
"calendarLayout": [
- 603
+ 604
],
"kanbanAggregateOperation": [
20
],
"kanbanAggregateOperationFieldMetadataId": [
- 495
+ 496
],
"kanbanColumnWidth": [
8
],
"mainGroupByFieldMetadataId": [
- 495
+ 496
],
"openRecordIn": [
- 613
+ 614
],
"shouldHideEmptyGroups": [
4
],
"type": [
- 616
+ 617
],
"__typename": [
1
@@ -13737,13 +13751,13 @@ export default {
},
"UpsertViewWidgetViewSortInput": {
"direction": [
- 615
+ 616
],
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -13751,28 +13765,28 @@ export default {
},
"UsageAnalytics": {
"periodEnd": [
- 189
+ 190
],
"periodStart": [
- 189
+ 190
],
"timeSeries": [
- 587
+ 588
],
"usageByApplication": [
- 576
+ 577
],
"usageByModel": [
- 576
+ 577
],
"usageByOperationType": [
- 576
+ 577
],
"usageByUser": [
- 576
+ 577
],
"userDailyUsage": [
- 589
+ 590
],
"__typename": [
1
@@ -13780,13 +13794,13 @@ export default {
},
"UsageAnalyticsInput": {
"operationTypes": [
- 579
+ 580
],
"periodEnd": [
- 189
+ 190
],
"periodStart": [
- 189
+ 190
],
"userWorkspaceId": [
1
@@ -13820,10 +13834,10 @@ export default {
81
],
"createdAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"limitKind": [
1
@@ -13832,7 +13846,7 @@ export default {
81
],
"operationType": [
- 579
+ 580
],
"periodCount": [
8
@@ -13841,7 +13855,7 @@ export default {
1
],
"resourceType": [
- 586
+ 587
],
"spenderId": [
1
@@ -13850,10 +13864,10 @@ export default {
1
],
"unit": [
- 588
+ 589
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -13861,10 +13875,10 @@ export default {
},
"UsageLimitOperationDefinition": {
"allowedUnits": [
- 588
+ 589
],
"operationType": [
- 579
+ 580
],
"__typename": [
1
@@ -13873,7 +13887,7 @@ export default {
"UsageOperationType": {},
"UsageQuotaDefinition": {
"allowedOperations": [
- 578
+ 579
],
"allowedSpenderTypes": [
1
@@ -13882,10 +13896,10 @@ export default {
1
],
"operatorOnlyScopes": [
- 582
+ 583
],
"resourceType": [
- 586
+ 587
],
"__typename": [
1
@@ -13893,7 +13907,7 @@ export default {
},
"UsageQuotaDefinitions": {
"definitions": [
- 580
+ 581
],
"hasAllowancePeriod": [
4
@@ -13907,7 +13921,7 @@ export default {
},
"UsageQuotaOperatorOnlyScope": {
"operationType": [
- 579
+ 580
],
"periodUnit": [
1
@@ -13916,7 +13930,7 @@ export default {
1
],
"unit": [
- 588
+ 589
],
"__typename": [
1
@@ -13927,10 +13941,10 @@ export default {
81
],
"periodEnd": [
- 189
+ 190
],
"periodStart": [
- 189
+ 190
],
"__typename": [
1
@@ -13938,13 +13952,13 @@ export default {
},
"UsageQuotaScopeInput": {
"operationType": [
- 579
+ 580
],
"periodUnit": [
1
],
"resourceType": [
- 586
+ 587
],
"spenderId": [
1
@@ -13953,7 +13967,7 @@ export default {
1
],
"unit": [
- 588
+ 589
],
"__typename": [
1
@@ -13964,7 +13978,7 @@ export default {
81
],
"id": [
- 495
+ 496
],
"isEnforced": [
4
@@ -13973,13 +13987,13 @@ export default {
81
],
"operationType": [
- 579
+ 580
],
"periodEnd": [
- 189
+ 190
],
"periodStart": [
- 189
+ 190
],
"periodUnit": [
1
@@ -13988,7 +14002,7 @@ export default {
81
],
"resourceType": [
- 586
+ 587
],
"spenderId": [
1
@@ -14000,7 +14014,7 @@ export default {
1
],
"unit": [
- 588
+ 589
],
"__typename": [
1
@@ -14024,7 +14038,7 @@ export default {
"UsageUnit": {},
"UsageUserDaily": {
"dailyUsage": [
- 587
+ 588
],
"userWorkspaceId": [
1
@@ -14044,19 +14058,19 @@ export default {
4
],
"createdAt": [
- 189
+ 190
],
"currentUserWorkspace": [
- 594
+ 595
],
"currentWorkspace": [
- 625
+ 626
],
"deletedAt": [
- 189
+ 190
],
"deletedWorkspaceMembers": [
- 202
+ 203
],
"disabled": [
4
@@ -14071,7 +14085,7 @@ export default {
4
],
"id": [
- 495
+ 496
],
"isEmailVerified": [
4
@@ -14086,31 +14100,31 @@ export default {
1
],
"onboardingStatus": [
- 367
+ 368
],
"previousOnboardingStatus": [
- 367
+ 368
],
"supportUserHash": [
1
],
"updatedAt": [
- 189
+ 190
],
"userVars": [
- 292
+ 293
],
"userWorkspaces": [
- 594
+ 595
],
"workspaceMember": [
- 634
+ 635
],
"workspaceMembers": [
- 634
+ 635
],
"workspaces": [
- 594
+ 595
],
"__typename": [
1
@@ -14136,7 +14150,7 @@ export default {
1
],
"options": [
- 291
+ 292
],
"type": [
1
@@ -14154,13 +14168,13 @@ export default {
1
],
"createdAt": [
- 189
+ 190
],
"expiresAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"ipAddress": [
1
@@ -14172,13 +14186,13 @@ export default {
4
],
"lastActiveAt": [
- 189
+ 190
],
"userAgent": [
1
],
"workspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -14186,13 +14200,13 @@ export default {
},
"UserWorkspace": {
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"isImpersonating": [
4
@@ -14201,25 +14215,25 @@ export default {
1
],
"objectPermissions": [
- 359
+ 360
],
"objectsPermissions": [
- 359
+ 360
],
"permissionFlags": [
- 384
+ 385
],
"twoFactorAuthenticationMethodSummary": [
- 491
+ 492
],
"updatedAt": [
- 189
+ 190
],
"user": [
- 590
+ 591
],
"userId": [
- 495
+ 496
],
"__typename": [
1
@@ -14227,7 +14241,7 @@ export default {
},
"ValidateApprovedAccessDomainInput": {
"approvedAccessDomainId": [
- 495
+ 496
],
"validationToken": [
1
@@ -14244,7 +14258,7 @@ export default {
4
],
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -14255,7 +14269,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 495
+ 496
],
"expression": [
1
@@ -14264,7 +14278,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -14276,7 +14290,7 @@ export default {
1
],
"objectMetadataId": [
- 495
+ 496
],
"__typename": [
1
@@ -14307,7 +14321,7 @@ export default {
66
],
"workspaceUrls": [
- 643
+ 644
],
"__typename": [
1
@@ -14337,25 +14351,25 @@ export default {
1
],
"applicationId": [
- 495
+ 496
],
"calendarEndFieldMetadataId": [
- 495
+ 496
],
"calendarFieldMetadataId": [
- 495
+ 496
],
"calendarLayout": [
- 603
+ 604
],
"createdAt": [
- 189
+ 190
],
"createdByUserWorkspaceId": [
- 495
+ 496
],
"deletedAt": [
- 189
+ 190
],
"groupLoadLimit": [
8
@@ -14364,7 +14378,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -14382,25 +14396,25 @@ export default {
20
],
"kanbanAggregateOperationFieldMetadataId": [
- 495
+ 496
],
"kanbanColumnWidth": [
8
],
"key": [
- 612
+ 613
],
"mainGroupByFieldMetadataId": [
- 495
+ 496
],
"name": [
1
],
"objectMetadataId": [
- 495
+ 496
],
"openRecordIn": [
- 613
+ 614
],
"position": [
11
@@ -14409,37 +14423,37 @@ export default {
4
],
"type": [
- 616
+ 617
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"viewFieldGroups": [
- 606
+ 607
],
"viewFields": [
- 605
+ 606
],
"viewFilterGroups": [
- 608
+ 609
],
"viewFilters": [
- 607
+ 608
],
"viewGroups": [
- 611
+ 612
],
"viewSorts": [
- 614
+ 615
],
"visibility": [
- 617
+ 618
],
"workspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -14448,7 +14462,7 @@ export default {
"ViewCalendarLayout": {},
"ViewConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -14459,19 +14473,19 @@ export default {
20
],
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -14492,19 +14506,19 @@ export default {
11
],
"universalIdentifier": [
- 495
+ 496
],
"updatedAt": [
- 189
+ 190
],
"viewFieldGroupId": [
- 495
+ 496
],
"viewId": [
- 495
+ 496
],
"workspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -14512,13 +14526,13 @@ export default {
},
"ViewFieldGroup": {
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"isActive": [
4
@@ -14536,16 +14550,16 @@ export default {
11
],
"updatedAt": [
- 189
+ 190
],
"viewFields": [
- 605
+ 606
],
"viewId": [
- 495
+ 496
],
"workspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -14553,43 +14567,43 @@ export default {
},
"ViewFilter": {
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"operand": [
- 610
+ 611
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 495
+ 496
],
"subFieldName": [
1
],
"updatedAt": [
- 189
+ 190
],
"value": [
- 291
+ 292
],
"viewFilterGroupId": [
- 495
+ 496
],
"viewId": [
- 495
+ 496
],
"workspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -14597,31 +14611,31 @@ export default {
},
"ViewFilterGroup": {
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"logicalOperator": [
- 609
+ 610
],
"parentViewFilterGroupId": [
- 495
+ 496
],
"positionInViewFilterGroup": [
11
],
"updatedAt": [
- 189
+ 190
],
"viewId": [
- 495
+ 496
],
"workspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -14631,16 +14645,16 @@ export default {
"ViewFilterOperand": {},
"ViewGroup": {
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"fieldValue": [
1
],
"id": [
- 495
+ 496
],
"isVisible": [
4
@@ -14649,13 +14663,13 @@ export default {
11
],
"updatedAt": [
- 189
+ 190
],
"viewId": [
- 495
+ 496
],
"workspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -14665,31 +14679,31 @@ export default {
"ViewOpenRecordIn": {},
"ViewSort": {
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"direction": [
- 615
+ 616
],
"fieldMetadataId": [
- 495
+ 496
],
"id": [
- 495
+ 496
],
"subFieldName": [
1
],
"updatedAt": [
- 189
+ 190
],
"viewId": [
- 495
+ 496
],
"workspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -14700,19 +14714,19 @@ export default {
"ViewVisibility": {},
"Webhook": {
"applicationId": [
- 495
+ 496
],
"createdAt": [
- 189
+ 190
],
"deletedAt": [
- 189
+ 190
],
"description": [
1
],
"id": [
- 495
+ 496
],
"operations": [
1
@@ -14724,7 +14738,7 @@ export default {
1
],
"updatedAt": [
- 189
+ 190
],
"__typename": [
1
@@ -14753,70 +14767,70 @@ export default {
128
],
"on_EmailThreadConfiguration": [
- 218
+ 219
],
"on_EmailsConfiguration": [
- 222
+ 223
],
"on_FieldConfiguration": [
- 245
+ 246
],
"on_FieldRichTextConfiguration": [
- 253
+ 254
],
"on_FieldsConfiguration": [
- 254
+ 255
],
"on_FilesConfiguration": [
- 260
+ 261
],
"on_FormFieldConfiguration": [
- 263
+ 264
],
"on_FrontComponentConfiguration": [
- 265
+ 266
],
"on_IframeConfiguration": [
- 275
+ 276
],
"on_LineChartConfiguration": [
- 295
+ 296
],
"on_MessageCampaignBodyConfiguration": [
- 317
+ 318
],
"on_MessageCampaignDetailsConfiguration": [
- 318
+ 319
],
"on_NotesConfiguration": [
- 350
+ 351
],
"on_PieChartConfiguration": [
- 385
+ 386
],
"on_RecordTableConfiguration": [
- 413
+ 414
],
"on_StandaloneRichTextConfiguration": [
- 463
+ 464
],
"on_TasksConfiguration": [
- 472
+ 473
],
"on_TimelineConfiguration": [
- 476
+ 477
],
"on_ViewConfiguration": [
- 604
+ 605
],
"on_WorkflowConfiguration": [
- 622
+ 623
],
"on_WorkflowRunConfiguration": [
- 623
+ 624
],
"on_WorkflowVersionConfiguration": [
- 624
+ 625
],
"__typename": [
1
@@ -14826,7 +14840,7 @@ export default {
"WidgetType": {},
"WorkflowConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -14834,7 +14848,7 @@ export default {
},
"WorkflowRunConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -14842,7 +14856,7 @@ export default {
},
"WorkflowVersionConfiguration": {
"configurationType": [
- 620
+ 621
],
"__typename": [
1
@@ -14850,7 +14864,7 @@ export default {
},
"Workspace": {
"activationStatus": [
- 626
+ 627
],
"aiAdditionalInstructions": [
1
@@ -14865,7 +14879,7 @@ export default {
1
],
"aiModelIdByTier": [
- 291
+ 292
],
"allowImpersonation": [
4
@@ -14883,7 +14897,7 @@ export default {
101
],
"createdAt": [
- 189
+ 190
],
"currentBillingSubscription": [
101
@@ -14895,10 +14909,10 @@ export default {
1
],
"defaultRole": [
- 422
+ 423
],
"deletedAt": [
- 189
+ 190
],
"displayName": [
1
@@ -14910,7 +14924,7 @@ export default {
11
],
"featureFlags": [
- 242
+ 243
],
"hasValidEnterpriseValidityToken": [
4
@@ -14919,7 +14933,7 @@ export default {
4
],
"id": [
- 495
+ 496
],
"installedApplications": [
37
@@ -14970,7 +14984,7 @@ export default {
1
],
"logoFileId": [
- 495
+ 496
],
"metadataVersion": [
11
@@ -14982,25 +14996,25 @@ export default {
11
],
"updatedAt": [
- 189
+ 190
],
"viewFields": [
- 605
+ 606
],
"viewFilterGroups": [
- 608
+ 609
],
"viewFilters": [
- 607
+ 608
],
"viewGroups": [
- 611
+ 612
],
"viewSorts": [
- 614
+ 615
],
"views": [
- 602
+ 603
],
"workspaceCustomApplication": [
37
@@ -15009,13 +15023,13 @@ export default {
1
],
"workspaceDiscoverability": [
- 631
+ 632
],
"workspaceMembersCount": [
11
],
"workspaceUrls": [
- 643
+ 644
],
"__typename": [
1
@@ -15039,19 +15053,19 @@ export default {
"WorkspaceCompanyEnrichmentOutcome": {},
"WorkspaceCompanyEnrichmentResult": {
"enrichment": [
- 291
+ 292
],
"isBookCallOnboardingStepPending": [
4
],
"outcome": [
- 628
+ 629
],
"personEnrichment": [
- 291
+ 292
],
"personOutcome": [
- 641
+ 642
],
"__typename": [
1
@@ -15074,13 +15088,13 @@ export default {
1
],
"expiresAt": [
- 189
+ 190
],
"id": [
- 495
+ 496
],
"roleId": [
- 495
+ 496
],
"__typename": [
1
@@ -15105,28 +15119,28 @@ export default {
1
],
"dateFormat": [
- 636
+ 637
],
"id": [
- 495
+ 496
],
"locale": [
1
],
"name": [
- 267
+ 268
],
"numberFormat": [
- 637
+ 638
],
"openRecordIn": [
- 370
+ 371
],
"roles": [
- 422
+ 423
],
"timeFormat": [
- 638
+ 639
],
"timeZone": [
1
@@ -15138,10 +15152,10 @@ export default {
1
],
"userId": [
- 495
+ 496
],
"userWorkspaceId": [
- 495
+ 496
],
"__typename": [
1
@@ -15149,13 +15163,13 @@ export default {
},
"WorkspaceMemberApplicationVariables": {
"userWorkspaceId": [
- 495
+ 496
],
"variables": [
- 591
+ 592
],
"workspaceMemberId": [
- 495
+ 496
],
"__typename": [
1
@@ -15166,7 +15180,7 @@ export default {
"WorkspaceMemberTimeFormatEnum": {},
"WorkspaceMigration": {
"actions": [
- 291
+ 292
],
"applicationUniversalIdentifier": [
1
@@ -15180,7 +15194,7 @@ export default {
1
],
"id": [
- 495
+ 496
],
"__typename": [
1
@@ -15201,10 +15215,10 @@ export default {
},
"WorkspaceUrlsAndId": {
"id": [
- 495
+ 496
],
"workspaceUrls": [
- 643
+ 644
],
"__typename": [
1
diff --git a/packages/twenty-docs/developers/extend/apps/logic/connections.mdx b/packages/twenty-docs/developers/extend/apps/logic/connections.mdx
index fa9d2ce4a8c..f7850a629bf 100644
--- a/packages/twenty-docs/developers/extend/apps/logic/connections.mdx
+++ b/packages/twenty-docs/developers/extend/apps/logic/connections.mdx
@@ -154,7 +154,7 @@ type IdentifyAccountResult = {
- Return `{ externalAccountId: null }` when the provider has no stable id to offer. Twenty then behaves as if no identify function were declared: no id is stored, a reconnect clears any id stored earlier, and reconnects are not checked. A bare `null` or a missing return is treated as an error, so a handler that forgets to return cannot silently disable the check.
- If the function throws, times out, or returns anything else, the connection is **not** saved and the user lands back on the settings page with an error. Throw only when you genuinely cannot identify the account.
-**Reconnect refusal.** On a reconnect, Twenty compares the returned `externalAccountId` with the one stored on the connection. If they differ, the callback is refused before anything is written: the existing tokens, handle and visibility stay as they were, the on-connect hook does not run, and the user sees which account they authorized and which one the connection belongs to. Connections created before your app declared the function have no stored id yet; their next reconnect stores it.
+**Reconnect refusal.** On a reconnect, Twenty compares the returned `externalAccountId` with the one stored on the connection. If they differ, the callback is refused before anything is written: the existing tokens, handle and scope stay as they were, the on-connect hook does not run, and the user sees which account they authorized and which one the connection belongs to. Connections created before your app declared the function have no stored id yet; their next reconnect stores it.
Twenty does not deduplicate on `externalAccountId`: connecting the same upstream account twice through **Add connection** creates two connections. The id is exposed on `listConnections` and `getConnection`, so an app that wants one connection per upstream account can detect duplicates itself (for instance in its on-connect hook).
@@ -285,10 +285,10 @@ export const createLinearIssueHandler = async (input: {
const connections = await listConnections({ providerName: 'linear' });
// Workspace-shared credentials win when present; fall back to the first
- // user-visibility one. For HTTP-route triggers you typically pick the
+ // personal one. For HTTP-route triggers you typically pick the
// request user's connection via event.userWorkspaceId instead.
const connection =
- connections.find((c) => c.visibility === 'workspace') ?? connections[0];
+ connections.find((c) => c.scope === 'WORKSPACE') ?? connections[0];
if (!connection) {
return {
@@ -319,8 +319,9 @@ Each connection has:
| Field | Description |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id` | Unique row id; pass to `getConnection(id)` to refetch a single one |
-| `visibility` | `'user'` (private to one workspace member) or `'workspace'` (shared with all members) |
-| `scopes` | OAuth permissions granted by the upstream provider (distinct from `visibility` — those are unrelated) |
+| `scope` | `'USER'` (private to one workspace member) or `'WORKSPACE'` (shared with all members) |
+| `visibility` | Deprecated: `scope` in lowercase (`'user'` or `'workspace'`). Use `scope` instead |
+| `scopes` | OAuth permissions granted by the upstream provider (distinct from `scope` — those are unrelated) |
| `userWorkspaceId` | The owner's userWorkspace id — useful for picking "the request user's connection" in HTTP-route triggers |
| `workspaceMemberId` | The owner's workspace member id, or `null` if they've since left the workspace |
| `accessToken` | Fresh OAuth access token (refreshed automatically if expired) |
@@ -354,7 +355,7 @@ await reportConnectionAuthFailure({
This sets `authFailedAt` and the optional reason on the connection. The settings row flips to **Reconnect needed** with a Reconnect button, the connection detail page shows the reason, and `getConnection` starts throwing `AppConnectionAuthFailedError` for that row. The flag and reason clear automatically when the user reconnects. A `reason` longer than 1000 characters is rejected, so truncate provider payloads before passing them.
-Only report failures that a reconnect would actually fix (an `invalid_auth`-class rejection from the provider), never transient network errors. An app can only report its own connections, and a request user can only report their own user-visibility credentials.
+Only report failures that a reconnect would actually fix (an `invalid_auth`-class rejection from the provider), never transient network errors. An app can only report its own connections, and a request user can only report their own personal credentials.
The mutation behind this helper ships with Twenty 2.40.0, so calling it against an older server fails. If your app uses it, declare the dependency in your `package.json`: `"engines": { "twenty": ">=2.40.0" }`.
@@ -362,19 +363,19 @@ The mutation behind this helper ships with Twenty 2.40.0, so calling it against
<Accordion title="Workspace or personal connections" description="Choose who connects with the provider scope">
-Each connection has one of two visibilities:
+Each connection has one of two scopes:
-- **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.
+- **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.
-The provider's `scope` decides which one its connections get:
+The provider's `scope` decides which one its new 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.
+Twenty refuses a new connection whose scope does not match the provider's, 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 scope and can still be disconnected or reconnected.
Use the right connection for each handler:
@@ -382,15 +383,15 @@ Use the right connection for each handler:
// HTTP-route trigger — prefer the request user's own connection.
const conn =
connections.find((c) => c.userWorkspaceId === event.userWorkspaceId) ??
- connections.find((c) => c.visibility === 'workspace');
+ connections.find((c) => c.scope === 'WORKSPACE');
// Cron trigger — no request user; only shared credentials are sensible.
-const conn = connections.find((c) => c.visibility === 'workspace');
+const conn = connections.find((c) => c.scope === '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`.
+Provider scope ships with Twenty 2.49.0. If your app declares `scope`, declare `"engines": { "twenty": ">=2.49.0" }` in its `package.json`. In the same version a connection's `scope` replaces its `visibility`, which stays available as a deprecated lowercase alias. `listConnections` and `getConnection` from `twenty-sdk` 2.49.0 read `scope`, so apps built with it need a 2.49.0 server.
</Accordion>
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 54d4a5060ac..73cc258ddb7 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -342,8 +342,10 @@ export type AppConnection = {
id: Scalars['ID']['output'];
name: Scalars['String']['output'];
providerName: Scalars['String']['output'];
+ scope: ConnectedAccountScope;
scopes: Array<Scalars['String']['output']>;
userWorkspaceId: Scalars['String']['output'];
+ /** @deprecated Use scope instead. */
visibility: Scalars['String']['output'];
workspaceMemberId?: Maybe<Scalars['String']['output']>;
};
@@ -448,9 +450,11 @@ export type ApplicationConnectedAccountDto = {
lastSignedInAt?: Maybe<Scalars['DateTime']['output']>;
name?: Maybe<Scalars['String']['output']>;
provider: Scalars['String']['output'];
+ scope: ConnectedAccountScope;
scopes?: Maybe<Array<Scalars['String']['output']>>;
updatedAt: Scalars['DateTime']['output'];
userWorkspaceId: Scalars['UUID']['output'];
+ /** @deprecated Use scope instead. */
visibility: Scalars['String']['output'];
};
@@ -1344,12 +1348,19 @@ export type ConnectedAccountPublicDto = {
lastSignedInAt?: Maybe<Scalars['DateTime']['output']>;
name?: Maybe<Scalars['String']['output']>;
provider: Scalars['String']['output'];
+ scope: ConnectedAccountScope;
scopes?: Maybe<Array<Scalars['String']['output']>>;
updatedAt: Scalars['DateTime']['output'];
userWorkspaceId: Scalars['UUID']['output'];
+ /** @deprecated Use scope instead. */
visibility: Scalars['String']['output'];
};
+export enum ConnectedAccountScope {
+ USER = 'USER',
+ WORKSPACE = 'WORKSPACE'
+}
+
export type ConnectedImapSmtpCaldavAccount = {
__typename?: 'ConnectedImapSmtpCaldavAccount';
connectionParameters?: Maybe<ImapSmtpCaldavPublicConnectionParameters>;
@@ -2738,8 +2749,8 @@ export type LineChartSeries = {
export type ListAppConnectionsInput = {
providerName?: InputMaybe<Scalars['String']['input']>;
+ scope?: InputMaybe<ConnectedAccountScope>;
userWorkspaceId?: InputMaybe<Scalars['String']['input']>;
- visibility?: InputMaybe<Scalars['String']['input']>;
};
export type ListAppMessageChannelsInput = {
@@ -9832,7 +9843,7 @@ export type MyCalendarChannelsQuery = { __typename?: 'Query', myCalendarChannels
export type MyConnectedAccountsQueryVariables = Exact<{ [key: string]: never; }>;
-export type MyConnectedAccountsQuery = { __typename?: 'Query', myConnectedAccounts: Array<{ __typename?: 'ConnectedAccountPublicDTO', id: string, handle: string, provider: string, authFailedAt?: string | null, authFailedReason?: string | null, archivedAt?: string | null, scopes?: Array<string> | null, handleAliases?: Array<string> | null, lastSignedInAt?: string | null, userWorkspaceId: string, connectionProviderId?: string | null, applicationId?: string | null, name?: string | null, visibility: string, lastCredentialsRefreshedAt?: string | null, createdAt: string, updatedAt: string, connectionParameters?: { __typename?: 'PublicImapSmtpCaldavConnectionParameters', IMAP?: { __typename?: 'PublicConnectionParametersOutput', host: string, port: number, connectionSecurity?: EmailConnectionSecurity | null, username?: string | null } | null, SMTP?: { __typename?: 'PublicConnectionParametersOutput', host: string, port: number, connectionSecurity?: EmailConnectionSecurity | null, username?: string | null } | null, CALDAV?: { __typename?: 'PublicConnectionParametersOutput', host: string, username?: string | null } | null } | null }> };
+export type MyConnectedAccountsQuery = { __typename?: 'Query', myConnectedAccounts: Array<{ __typename?: 'ConnectedAccountPublicDTO', id: string, handle: string, provider: string, authFailedAt?: string | null, authFailedReason?: string | null, archivedAt?: string | null, scopes?: Array<string> | null, handleAliases?: Array<string> | null, lastSignedInAt?: string | null, userWorkspaceId: string, connectionProviderId?: string | null, applicationId?: string | null, name?: string | null, scope: ConnectedAccountScope, lastCredentialsRefreshedAt?: string | null, createdAt: string, updatedAt: string, connectionParameters?: { __typename?: 'PublicImapSmtpCaldavConnectionParameters', IMAP?: { __typename?: 'PublicConnectionParametersOutput', host: string, port: number, connectionSecurity?: EmailConnectionSecurity | null, username?: string | null } | null, SMTP?: { __typename?: 'PublicConnectionParametersOutput', host: string, port: number, connectionSecurity?: EmailConnectionSecurity | null, username?: string | null } | null, CALDAV?: { __typename?: 'PublicConnectionParametersOutput', host: string, username?: string | null } | null } | null }> };
export type MyMessageChannelsQueryVariables = Exact<{
connectedAccountId?: InputMaybe<Scalars['UUID']['input']>;
@@ -9979,7 +9990,7 @@ export type ApplicationConnectedAccountsQueryVariables = Exact<{
}>;
-export type ApplicationConnectedAccountsQuery = { __typename?: 'Query', applicationConnectedAccounts: Array<{ __typename?: 'ApplicationConnectedAccountDTO', id: string, handle: string, authFailedAt?: string | null, authFailedReason?: string | null, scopes?: Array<string> | null, lastSignedInAt?: string | null, connectionProviderId?: string | null, name?: string | null, visibility: string, lastCredentialsRefreshedAt?: string | null, createdAt: string, updatedAt: string }> };
+export type ApplicationConnectedAccountsQuery = { __typename?: 'Query', applicationConnectedAccounts: Array<{ __typename?: 'ApplicationConnectedAccountDTO', id: string, handle: string, authFailedAt?: string | null, authFailedReason?: string | null, scopes?: Array<string> | null, lastSignedInAt?: string | null, connectionProviderId?: string | null, name?: string | null, scope: ConnectedAccountScope, lastCredentialsRefreshedAt?: string | null, createdAt: string, updatedAt: string }> };
export type ApplicationConnectionProvidersQueryVariables = Exact<{
applicationId: Scalars['UUID']['input'];
@@ -11151,7 +11162,7 @@ export const UpdateMessageChannelDocument = {"kind":"Document","definitions":[{"
export const UpdateMessageFoldersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateMessageFolders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateMessageFoldersInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateMessageFolders"},"arguments":[{"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":"isSynced"}},{"kind":"Field","name":{"kind":"Name","value":"pendingSyncAction"}}]}}]}}]} as unknown as DocumentNode<UpdateMessageFoldersMutation, UpdateMessageFoldersMutationVariables>;
export const GetConnectedImapSmtpCaldavAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetConnectedImapSmtpCaldavAccount"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getConnectedImapSmtpCaldavAccount"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"provider"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"connectionParameters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"IMAP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"SMTP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}}]}},{"kind":"Field","name":{"kind":"Name","value":"CALDAV"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>;
export const MyCalendarChannelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyCalendarChannels"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myCalendarChannels"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"connectedAccountId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"syncStage"}},{"kind":"Field","name":{"kind":"Name","value":"syncStageStartedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isContactAutoCreationEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"contactAutoCreationPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"isSyncEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccountId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<MyCalendarChannelsQuery, MyCalendarChannelsQueryVariables>;
-export const MyConnectedAccountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyConnectedAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myConnectedAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"provider"}},{"kind":"Field","name":{"kind":"Name","value":"authFailedAt"}},{"kind":"Field","name":{"kind":"Name","value":"authFailedReason"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"scopes"}},{"kind":"Field","name":{"kind":"Name","value":"handleAliases"}},{"kind":"Field","name":{"kind":"Name","value":"lastSignedInAt"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"connectionProviderId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"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":"connectionParameters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"IMAP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"SMTP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"CALDAV"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<MyConnectedAccountsQuery, MyConnectedAccountsQueryVariables>;
+export const MyConnectedAccountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyConnectedAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myConnectedAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"provider"}},{"kind":"Field","name":{"kind":"Name","value":"authFailedAt"}},{"kind":"Field","name":{"kind":"Name","value":"authFailedReason"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"scopes"}},{"kind":"Field","name":{"kind":"Name","value":"handleAliases"}},{"kind":"Field","name":{"kind":"Name","value":"lastSignedInAt"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"connectionProviderId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}},{"kind":"Field","name":{"kind":"Name","value":"lastCredentialsRefreshedAt"}},{"kind":"Field","name":{"kind":"Name","value":"connectionParameters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"IMAP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"SMTP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"CALDAV"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<MyConnectedAccountsQuery, MyConnectedAccountsQueryVariables>;
export const MyMessageChannelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyMessageChannels"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myMessageChannels"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"connectedAccountId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"isContactAutoCreationEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"contactAutoCreationPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"messageFolderImportPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"excludeNonProfessionalEmails"}},{"kind":"Field","name":{"kind":"Name","value":"excludeGroupEmails"}},{"kind":"Field","name":{"kind":"Name","value":"isSyncEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"syncStage"}},{"kind":"Field","name":{"kind":"Name","value":"syncStageStartedAt"}},{"kind":"Field","name":{"kind":"Name","value":"importProgress"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccountId"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<MyMessageChannelsQuery, MyMessageChannelsQueryVariables>;
export const MyMessageFoldersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyMessageFolders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"messageChannelId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myMessageFolders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"messageChannelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageChannelId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isSynced"}},{"kind":"Field","name":{"kind":"Name","value":"isSentFolder"}},{"kind":"Field","name":{"kind":"Name","value":"parentFolderId"}},{"kind":"Field","name":{"kind":"Name","value":"externalId"}},{"kind":"Field","name":{"kind":"Name","value":"pendingSyncAction"}},{"kind":"Field","name":{"kind":"Name","value":"messageChannelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<MyMessageFoldersQuery, MyMessageFoldersQueryVariables>;
export const ClaimApplicationRegistrationOwnershipDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ClaimApplicationRegistrationOwnership"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"claimApplicationRegistrationOwnership"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRegistrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<ClaimApplicationRegistrationOwnershipMutation, ClaimApplicationRegistrationOwnershipMutationVariables>;
@@ -11171,7 +11182,7 @@ export const TriggerUninstallApplicationDocument = {"kind":"Document","definitio
export const UninstallApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UninstallApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uninstallApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}]}]}}]} as unknown as DocumentNode<UninstallApplicationMutation, UninstallApplicationMutationVariables>;
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 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":"scope"}},{"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":"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>;
diff --git a/packages/twenty-front/src/modules/accounts/types/ConnectedAccount.ts b/packages/twenty-front/src/modules/accounts/types/ConnectedAccount.ts
index 8481788a616..ae3d73dedfd 100644
--- a/packages/twenty-front/src/modules/accounts/types/ConnectedAccount.ts
+++ b/packages/twenty-front/src/modules/accounts/types/ConnectedAccount.ts
@@ -19,9 +19,7 @@ export type ConnectedAccount = {
connectionProviderId: string | null;
applicationId: string | null;
name: string | null;
- // Connection-row visibility — distinct from the `scopes` array above
- // (those are upstream-granted OAuth permissions).
- visibility: 'user' | 'workspace';
+ scope: 'USER' | 'WORKSPACE';
lastCredentialsRefreshedAt: string | null;
connectionParameters: ImapSmtpCaldavAccountInput | null;
createdAt: string;
diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/mockedDropdownConnectedAccount.ts b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/mockedDropdownConnectedAccount.ts
index 269182e4198..1c04ad70129 100644
--- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/mockedDropdownConnectedAccount.ts
+++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/mockedDropdownConnectedAccount.ts
@@ -21,7 +21,7 @@ export const mockedDropdownConnectedAccount: ConnectedAccount = {
connectionProviderId: null,
applicationId: null,
name: null,
- visibility: 'user',
+ scope: 'USER',
lastCredentialsRefreshedAt: null,
connectionParameters: null,
createdAt: '2026-09-23T00:00:00.000Z',
diff --git a/packages/twenty-front/src/modules/settings/accounts/graphql/queries/getMyConnectedAccounts.ts b/packages/twenty-front/src/modules/settings/accounts/graphql/queries/getMyConnectedAccounts.ts
index 1b2fe100d60..127062fec00 100644
--- a/packages/twenty-front/src/modules/settings/accounts/graphql/queries/getMyConnectedAccounts.ts
+++ b/packages/twenty-front/src/modules/settings/accounts/graphql/queries/getMyConnectedAccounts.ts
@@ -16,7 +16,7 @@ export const GET_MY_CONNECTED_ACCOUNTS = gql`
connectionProviderId
applicationId
name
- visibility
+ scope
lastCredentialsRefreshedAt
connectionParameters {
IMAP {
diff --git a/packages/twenty-front/src/modules/settings/applications/graphql/queries/findApplicationConnectedAccounts.ts b/packages/twenty-front/src/modules/settings/applications/graphql/queries/findApplicationConnectedAccounts.ts
index c102f9ccf99..33ef25aaed7 100644
--- a/packages/twenty-front/src/modules/settings/applications/graphql/queries/findApplicationConnectedAccounts.ts
+++ b/packages/twenty-front/src/modules/settings/applications/graphql/queries/findApplicationConnectedAccounts.ts
@@ -11,7 +11,7 @@ export const FIND_APPLICATION_CONNECTED_ACCOUNTS = gql`
lastSignedInAt
connectionProviderId
name
- visibility
+ scope
lastCredentialsRefreshedAt
createdAt
updatedAt
diff --git a/packages/twenty-front/src/modules/side-panel/pages/__stories__/SidePanelComposerPages.stories.tsx b/packages/twenty-front/src/modules/side-panel/pages/__stories__/SidePanelComposerPages.stories.tsx
index 64d81309e0c..eb247ce8de0 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/__stories__/SidePanelComposerPages.stories.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/__stories__/SidePanelComposerPages.stories.tsx
@@ -42,7 +42,7 @@ const storyConnectedAccounts = [
connectionProviderId: null,
applicationId: null,
name: 'Tim Apple',
- visibility: 'SHARE_EVERYTHING',
+ scope: 'USER',
lastCredentialsRefreshedAt: '2026-08-24T08:00:00.000Z',
connectionParameters: null,
createdAt: '2026-02-27T01:17:25.392Z',
@@ -62,7 +62,7 @@ const storyConnectedAccounts = [
connectionProviderId: null,
applicationId: null,
name: 'Tim Apple',
- visibility: 'SHARE_EVERYTHING',
+ scope: 'USER',
lastCredentialsRefreshedAt: '2026-08-23T08:00:00.000Z',
connectionParameters: null,
createdAt: '2026-03-12T01:17:25.392Z',
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionEmailBase.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionEmailBase.stories.tsx
index 33442d501aa..e8cae064e53 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionEmailBase.stories.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/__stories__/WorkflowEditActionEmailBase.stories.tsx
@@ -34,7 +34,7 @@ const mockedConnectedAccounts = [
connectionProviderId: null,
applicationId: null,
name: 'Tim Apple',
- visibility: 'SHARE_EVERYTHING',
+ scope: 'USER',
lastCredentialsRefreshedAt: null,
connectionParameters: null,
createdAt: '2026-02-27T01:17:25.392Z',
diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx
index c48c2a3c287..f866901c24e 100644
--- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx
+++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx
@@ -52,7 +52,7 @@ export const TwoConnectedAccounts: Story = {
connectionProviderId: null,
applicationId: null,
name: 'Test User',
- visibility: 'SHARE_EVERYTHING',
+ scope: 'USER',
lastCredentialsRefreshedAt: null,
connectionParameters: null,
createdAt: '2024-07-03T20:03:35.064Z',
diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsEmails.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsEmails.stories.tsx
index e2a6060c9be..b9c7a9ec8bc 100644
--- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsEmails.stories.tsx
+++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsEmails.stories.tsx
@@ -53,7 +53,7 @@ export const TwoConnectedAccounts: Story = {
connectionProviderId: null,
applicationId: null,
name: 'Test User',
- visibility: 'SHARE_EVERYTHING',
+ scope: 'USER',
lastCredentialsRefreshedAt: null,
connectionParameters: null,
createdAt: '2024-07-03T20:03:35.064Z',
diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedAccountGroups.ts b/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedAccountGroups.ts
index 456c36d8dfe..72153735d43 100644
--- a/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedAccountGroups.ts
+++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedAccountGroups.ts
@@ -39,7 +39,7 @@ const buildConnectedAccount = (account: {
provider: string;
userWorkspaceId: string;
applicationId?: string;
- visibility?: string;
+ scope?: string;
scopes?: string[];
}) => ({
__typename: 'ConnectedAccountPublicDTO',
@@ -52,7 +52,7 @@ const buildConnectedAccount = (account: {
connectionProviderId: null,
applicationId: null,
name: null,
- visibility: 'user',
+ scope: 'USER',
lastCredentialsRefreshedAt: null,
connectionParameters: null,
createdAt: CREATED_AT,
@@ -155,7 +155,7 @@ export const CONNECTED_ACCOUNTS = [
provider: 'app',
userWorkspaceId: MY_USER_WORKSPACE_ID,
applicationId: FATHOM_APPLICATION_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
}),
buildConnectedAccount({
id: TEAMMATE_ACCOUNT_ID,
@@ -163,7 +163,7 @@ export const CONNECTED_ACCOUNTS = [
provider: 'app',
userWorkspaceId: TEAMMATE_USER_WORKSPACE_ID,
applicationId: GRANOLA_APPLICATION_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
}),
buildConnectedAccount({
id: SECOND_GOOGLE_ACCOUNT_ID,
@@ -177,7 +177,7 @@ export const CONNECTED_ACCOUNTS = [
handle: '[email protected]',
provider: 'email_group',
userWorkspaceId: MY_USER_WORKSPACE_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
}),
];
diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx
index 60de7bc4ce8..e06e1ac6ede 100644
--- a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationConnectionDetail.tsx
@@ -155,7 +155,7 @@ export const SettingsApplicationConnectionDetail = () => {
triggerAppOAuth({
applicationId,
providerName: provider.name,
- visibility: connection.visibility === 'workspace' ? 'workspace' : 'user',
+ scope: connection.scope === 'WORKSPACE' ? 'WORKSPACE' : 'USER',
reconnectingConnectedAccountId: connection.id,
redirectLocation: detailPath,
});
@@ -169,7 +169,7 @@ export const SettingsApplicationConnectionDetail = () => {
triggerAppOAuth({
applicationId,
providerName: provider.name,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
reconnectingConnectedAccountId: connection.id,
redirectLocation: detailPath,
});
@@ -214,13 +214,11 @@ export const SettingsApplicationConnectionDetail = () => {
value: <StyledMonoText>{connection.handle}</StyledMonoText>,
},
{
- key: 'visibility',
+ key: 'scope',
label: t`Visibility`,
value: (
- <Status
- color={connection.visibility === 'workspace' ? 'blue' : 'gray'}
- >
- {connection.visibility === 'workspace'
+ <Status color={connection.scope === 'WORKSPACE' ? 'blue' : 'gray'}>
+ {connection.scope === 'WORKSPACE'
? t`Workspace shared`
: t`Just for me`}
</Status>
@@ -336,7 +334,7 @@ export const SettingsApplicationConnectionDetail = () => {
color="accent"
>{t`Reconnect`}</Button>
)}
- {connection.visibility !== 'workspace' &&
+ {connection.scope !== 'WORKSPACE' &&
provider.scope === 'WORKSPACE' && (
<Button
startIcon={<IconUsers />}
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.tsx
index f3c5441aaa5..d7f3c1d00b8 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
@@ -5,6 +5,7 @@ import { fireEvent, render, screen } from '@testing-library/react';
import { type ReactNode } from 'react';
import { MemoryRouter, Route, Routes } from 'react-router-dom';
+import { ConnectedAccountScope } from '~/generated-metadata/graphql';
import { SettingsApplicationConnectionDetail } from '~/pages/settings/applications/SettingsApplicationConnectionDetail';
import { useFindApplicationConnectionProviders } from '~/pages/settings/applications/hooks/useFindApplicationConnectionProviders';
import { useApplicationConnectedAccounts } from '~/pages/settings/applications/hooks/useApplicationConnectedAccounts';
@@ -147,7 +148,7 @@ describe('SettingsApplicationConnectionDetail', () => {
lastSignedInAt: null,
connectionProviderId: 'provider-1',
name: 'Original name',
- visibility: 'user',
+ scope: ConnectedAccountScope.USER,
lastCredentialsRefreshedAt: null,
createdAt: '2026-05-01T00:00:00.000Z',
updatedAt: '2026-05-01T00:00:00.000Z',
@@ -158,7 +159,7 @@ describe('SettingsApplicationConnectionDetail', () => {
});
});
- it('changes visibility by reconnecting with the opposite visibility', () => {
+ it('changes scope by reconnecting with the opposite scope', () => {
renderDetailPage();
fireEvent.click(
@@ -180,7 +181,7 @@ describe('SettingsApplicationConnectionDetail', () => {
expect(mockTriggerAppOAuth).toHaveBeenCalledWith({
applicationId: 'app-1',
providerName: 'google-calendar',
- visibility: 'workspace',
+ scope: 'WORKSPACE',
reconnectingConnectedAccountId: 'account-1',
redirectLocation: '/settings/applications/app-1/connections/account-1',
});
@@ -230,7 +231,7 @@ describe('SettingsApplicationConnectionDetail', () => {
lastSignedInAt: null,
connectionProviderId: 'provider-1',
name: 'Shared connection',
- visibility: 'workspace',
+ scope: ConnectedAccountScope.WORKSPACE,
lastCredentialsRefreshedAt: null,
createdAt: '2026-05-01T00:00:00.000Z',
updatedAt: '2026-05-01T00:00:00.000Z',
@@ -251,7 +252,7 @@ describe('SettingsApplicationConnectionDetail', () => {
expect(mockTriggerAppOAuth).toHaveBeenCalledWith({
applicationId: 'app-1',
providerName: 'google-calendar',
- visibility: 'workspace',
+ scope: 'WORKSPACE',
reconnectingConnectedAccountId: 'account-1',
redirectLocation: '/settings/applications/app-1/connections/account-1',
});
diff --git a/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useTriggerAppOAuth.test.tsx b/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useTriggerAppOAuth.test.tsx
new file mode 100644
index 00000000000..61e5bcf91e3
--- /dev/null
+++ b/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useTriggerAppOAuth.test.tsx
@@ -0,0 +1,53 @@
+import { useMutation } from '@apollo/client/react';
+import { act, renderHook } from '@testing-library/react';
+
+import { useTriggerAppOAuth } from '~/pages/settings/applications/hooks/useTriggerAppOAuth';
+
+const mockRedirect = jest.fn();
+
+jest.mock('@apollo/client/react', () => ({
+ ...jest.requireActual('@apollo/client/react'),
+ useMutation: jest.fn(),
+}));
+
+jest.mock('@/domain-manager/hooks/useRedirect', () => ({
+ useRedirect: () => ({ redirect: mockRedirect }),
+}));
+
+describe('useTriggerAppOAuth', () => {
+ beforeEach(() => {
+ mockRedirect.mockClear();
+ jest.mocked(useMutation).mockReturnValue([
+ jest.fn().mockResolvedValue({
+ data: {
+ generateTransientToken: { transientToken: { token: 'transient' } },
+ },
+ }),
+ ] as unknown as ReturnType<typeof useMutation>);
+ });
+
+ it('asks the server for the scope and the visibility previous releases read', async () => {
+ const { result } = renderHook(() => useTriggerAppOAuth());
+
+ await act(() =>
+ result.current.triggerAppOAuth({
+ applicationId: 'app-1',
+ providerName: 'linear',
+ scope: 'WORKSPACE',
+ reconnectingConnectedAccountId: 'account-1',
+ }),
+ );
+
+ const authorizeUrl = new URL(mockRedirect.mock.calls[0][0], 'http://test');
+
+ expect(authorizeUrl.pathname).toMatch(/\/auth\/apps\/authorize$/);
+ expect(Object.fromEntries(authorizeUrl.searchParams)).toEqual({
+ applicationId: 'app-1',
+ providerName: 'linear',
+ transientToken: 'transient',
+ scope: 'WORKSPACE',
+ visibility: 'workspace',
+ reconnectingConnectedAccountId: 'account-1',
+ });
+ });
+});
diff --git a/packages/twenty-front/src/pages/settings/applications/hooks/useTriggerAppOAuth.ts b/packages/twenty-front/src/pages/settings/applications/hooks/useTriggerAppOAuth.ts
index bb79463e2d3..1e00a913799 100644
--- a/packages/twenty-front/src/pages/settings/applications/hooks/useTriggerAppOAuth.ts
+++ b/packages/twenty-front/src/pages/settings/applications/hooks/useTriggerAppOAuth.ts
@@ -1,5 +1,6 @@
import { useMutation } from '@apollo/client/react';
import { useCallback } from 'react';
+import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application';
import { useRedirect } from '@/domain-manager/hooks/useRedirect';
import { REACT_APP_SERVER_BASE_URL } from '~/config';
@@ -16,17 +17,13 @@ export const useTriggerAppOAuth = () => {
async ({
applicationId,
providerName,
- visibility,
+ scope,
reconnectingConnectedAccountId,
redirectLocation,
}: {
applicationId: string;
providerName: string;
- // Connection-row visibility:
- // 'user' = personal credential, only the creator can use it.
- // 'workspace' = shared with all members of the workspace.
- // Distinct from the OAuth `scopes` granted by the upstream provider.
- visibility: 'user' | 'workspace';
+ scope: 'USER' | 'WORKSPACE';
// Set to update an existing connectedAccount row rather than creating
// a new one (the "Reconnect" action on a failed credential).
reconnectingConnectedAccountId?: string;
@@ -43,7 +40,9 @@ export const useTriggerAppOAuth = () => {
applicationId,
providerName,
transientToken: token,
- visibility,
+ scope,
+ // Read by previous-release servers mid rollout
+ visibility: LEGACY_CONNECTION_VISIBILITY_BY_SCOPE[scope],
});
if (reconnectingConnectedAccountId) {
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx
index fc7b494f8d3..b5c5c2d7a11 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationConnectionsSection.tsx
@@ -135,12 +135,10 @@ export const SettingsApplicationConnectionsSection = ({
<TableCell clickable>
<Status
color={
- connection.visibility === 'workspace'
- ? 'blue'
- : 'gray'
+ connection.scope === 'WORKSPACE' ? 'blue' : 'gray'
}
>
- {connection.visibility === 'workspace'
+ {connection.scope === 'WORKSPACE'
? t`Workspace shared`
: t`Just for me`}
</Status>
@@ -170,7 +168,7 @@ export const SettingsApplicationConnectionsSection = ({
triggerAppOAuth({
applicationId,
providerName: provider.name,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
})
}
variant="outline"
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.tsx
index 3b04194e61a..a074eb5058d 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
@@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { MemoryRouter } from 'react-router-dom';
+import { ConnectedAccountScope } from '~/generated-metadata/graphql';
import { SettingsApplicationConnectionsSection } from '~/pages/settings/applications/tabs/SettingsApplicationConnectionsSection';
import { useFindApplicationConnectionProviders } from '~/pages/settings/applications/hooks/useFindApplicationConnectionProviders';
import { useApplicationConnectedAccounts } from '~/pages/settings/applications/hooks/useApplicationConnectedAccounts';
@@ -77,7 +78,7 @@ describe('SettingsApplicationConnectionsSection', () => {
lastSignedInAt: null,
connectionProviderId: 'provider-1',
name: 'Main connection',
- visibility: 'workspace',
+ scope: ConnectedAccountScope.WORKSPACE,
lastCredentialsRefreshedAt: null,
createdAt: '2026-05-01T00:00:00.000Z',
updatedAt: '2026-05-01T00:00:00.000Z',
@@ -111,7 +112,7 @@ describe('SettingsApplicationConnectionsSection', () => {
).not.toBeInTheDocument();
});
- it('adds a workspace shared connection without asking for a visibility', async () => {
+ it('adds a workspace shared connection without asking for a scope', async () => {
mockedUseFindApplicationConnectionProviders.mockReturnValue({
connectionProviders: [
{
@@ -155,7 +156,7 @@ describe('SettingsApplicationConnectionsSection', () => {
expect(mockTriggerAppOAuth).toHaveBeenCalledWith({
applicationId: 'app-1',
providerName: 'google-calendar',
- visibility: 'workspace',
+ scope: 'WORKSPACE',
});
});
@@ -232,7 +233,7 @@ describe('SettingsApplicationConnectionsSection', () => {
lastSignedInAt: null,
connectionProviderId: 'provider-1',
name: 'My calendar',
- visibility: 'user',
+ scope: ConnectedAccountScope.USER,
lastCredentialsRefreshedAt: null,
createdAt: '2026-05-01T00:00:00.000Z',
updatedAt: '2026-05-01T00:00:00.000Z',
diff --git a/packages/twenty-sdk/package.json b/packages/twenty-sdk/package.json
index bebb2be48a5..603909e95d8 100644
--- a/packages/twenty-sdk/package.json
+++ b/packages/twenty-sdk/package.json
@@ -115,7 +115,7 @@
"engines": {
"node": "^24.5.0",
"yarn": "^4.0.2",
- "twenty": ">=2.48.0"
+ "twenty": ">=2.49.0"
},
"typesVersions": {
"*": {
diff --git a/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/find-connection-for-request.spec.ts b/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/find-connection-for-request.spec.ts
index f7f06c6db9e..0f99ff03476 100644
--- a/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/find-connection-for-request.spec.ts
+++ b/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/find-connection-for-request.spec.ts
@@ -2,24 +2,26 @@ import { describe, expect, it } from 'vitest';
import { findConnectionForRequest } from '@/sdk/logic-function/connections/find-connection-for-request';
import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';
+import { withLegacyConnectionVisibility } from '@/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util';
const buildConnection = (
- overrides: Partial<AppConnection> = {},
-): AppConnection => ({
- id: 'c-1',
- providerName: 'linear',
- name: 'Linear #1',
- handle: '[email protected]',
- externalAccountId: null,
- visibility: 'user',
- userWorkspaceId: 'uws-me',
- workspaceMemberId: 'wm-me',
- accessToken: 'token-fresh',
- scopes: ['read'],
- authFailedAt: null,
- authFailedReason: null,
- ...overrides,
-});
+ overrides: Partial<Omit<AppConnection, 'visibility'>> = {},
+): AppConnection =>
+ withLegacyConnectionVisibility({
+ id: 'c-1',
+ providerName: 'linear',
+ name: 'Linear #1',
+ handle: '[email protected]',
+ externalAccountId: null,
+ scope: 'USER',
+ userWorkspaceId: 'uws-me',
+ workspaceMemberId: 'wm-me',
+ accessToken: 'token-fresh',
+ scopes: ['read'],
+ authFailedAt: null,
+ authFailedReason: null,
+ ...overrides,
+ });
describe('findConnectionForRequest', () => {
it('returns the request user’s personal credential when one exists', () => {
@@ -28,7 +30,7 @@ describe('findConnectionForRequest', () => {
id: 'theirs',
userWorkspaceId: 'uws-other',
});
- const shared = buildConnection({ id: 'shared', visibility: 'workspace' });
+ const shared = buildConnection({ id: 'shared', scope: 'WORKSPACE' });
expect(
findConnectionForRequest([someoneElses, shared, personal], {
@@ -42,7 +44,7 @@ describe('findConnectionForRequest', () => {
id: 'theirs',
userWorkspaceId: 'uws-other',
});
- const shared = buildConnection({ id: 'shared', visibility: 'workspace' });
+ const shared = buildConnection({ id: 'shared', scope: 'WORKSPACE' });
expect(
findConnectionForRequest([someoneElses, shared], {
@@ -54,7 +56,7 @@ describe('findConnectionForRequest', () => {
it('returns workspace-shared even when event.userWorkspaceId is null', () => {
// Cron / DB-event triggers carry no user context. The handler should still
// be able to lean on a workspace-shared credential.
- const shared = buildConnection({ id: 'shared', visibility: 'workspace' });
+ const shared = buildConnection({ id: 'shared', scope: 'WORKSPACE' });
expect(findConnectionForRequest([shared], { userWorkspaceId: null })).toBe(
shared,
@@ -82,7 +84,7 @@ describe('findConnectionForRequest', () => {
// Even when the workspace-shared row appears first in the array, the
// personal one wins — we never want a request user to silently fall
// through to a service-account credential.
- const shared = buildConnection({ id: 'shared', visibility: 'workspace' });
+ const shared = buildConnection({ id: 'shared', scope: 'WORKSPACE' });
const personal = buildConnection({ id: 'mine', userWorkspaceId: 'uws-me' });
expect(
diff --git a/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/get-connection.spec.ts b/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/get-connection.spec.ts
index 9e2aa2f762d..5bde416c1ce 100644
--- a/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/get-connection.spec.ts
+++ b/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/get-connection.spec.ts
@@ -13,14 +13,14 @@ import { getConnection } from '@/sdk/logic-function/connections/get-connection';
import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';
const buildConnection = (
- overrides: Partial<AppConnection> = {},
-): AppConnection => ({
+ overrides: Partial<Omit<AppConnection, 'visibility'>> = {},
+): Omit<AppConnection, 'visibility'> => ({
id: 'c-1',
providerName: 'linear',
name: 'Linear #1',
handle: '[email protected]',
externalAccountId: null,
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: 'uws-me',
workspaceMemberId: 'wm-me',
accessToken: 'fresh',
@@ -45,7 +45,7 @@ describe('getConnection', () => {
fetchSpy.mockRestore();
});
- it('queries appConnection by id over GraphQL and returns the response', async () => {
+ it('queries appConnection by id over GraphQL and derives the deprecated visibility', async () => {
const connection = buildConnection({ id: 'persisted' });
fetchSpy.mockResolvedValue(
@@ -56,7 +56,7 @@ describe('getConnection', () => {
const result = await getConnection('persisted');
- expect(result).toEqual(connection);
+ expect(result).toEqual({ ...connection, visibility: 'user' });
const [url, requestInit] = fetchSpy.mock.calls[0];
@@ -73,6 +73,8 @@ describe('getConnection', () => {
const sentBody = JSON.parse(requestInit?.body as string);
expect(sentBody.query).toContain('appConnection(id: $id)');
+ expect(sentBody.query).toMatch(/\bscope\b/);
+ expect(sentBody.query).not.toContain('visibility');
expect(sentBody.variables).toEqual({ id: 'persisted' });
});
diff --git a/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/list-connections.spec.ts b/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/list-connections.spec.ts
new file mode 100644
index 00000000000..3b35c250614
--- /dev/null
+++ b/packages/twenty-sdk/src/sdk/logic-function/connections/__tests__/list-connections.spec.ts
@@ -0,0 +1,72 @@
+import {
+ afterEach,
+ beforeEach,
+ describe,
+ expect,
+ it,
+ vi,
+ type MockInstance,
+} from 'vitest';
+
+import { listConnections } from '@/sdk/logic-function/connections/list-connections';
+import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';
+
+const sharedConnection: Omit<AppConnection, 'visibility'> = {
+ id: 'shared',
+ providerName: 'linear',
+ name: 'Linear #1',
+ handle: '[email protected]',
+ externalAccountId: null,
+ scope: 'WORKSPACE',
+ userWorkspaceId: 'uws-me',
+ workspaceMemberId: 'wm-me',
+ accessToken: 'fresh',
+ scopes: ['read'],
+ authFailedAt: null,
+ authFailedReason: null,
+};
+
+describe('listConnections', () => {
+ let fetchSpy: MockInstance<typeof fetch>;
+
+ const sentFilter = () =>
+ JSON.parse(fetchSpy.mock.calls[0][1]?.body as string).variables.filter;
+
+ beforeEach(() => {
+ process.env.TWENTY_API_URL = 'https://api.test';
+ process.env.TWENTY_APP_ACCESS_TOKEN = 'app-token';
+ fetchSpy = vi.spyOn(globalThis, 'fetch');
+ fetchSpy.mockResolvedValue(
+ new Response(
+ JSON.stringify({ data: { appConnections: [sharedConnection] } }),
+ { status: 200 },
+ ),
+ );
+ });
+
+ afterEach(() => {
+ delete process.env.TWENTY_API_URL;
+ delete process.env.TWENTY_APP_ACCESS_TOKEN;
+ fetchSpy.mockRestore();
+ });
+
+ it('derives the deprecated visibility from scope', async () => {
+ const connections = await listConnections();
+
+ expect(connections).toEqual([
+ { ...sharedConnection, visibility: 'workspace' },
+ ]);
+ });
+
+ it('sends the scope filter as is', async () => {
+ await listConnections({ providerName: 'linear', scope: 'USER' });
+
+ expect(sentFilter()).toEqual({ providerName: 'linear', scope: 'USER' });
+ });
+
+ it('sends the deprecated visibility filter as scope', async () => {
+ await listConnections({ visibility: 'workspace' });
+
+ expect(sentFilter()).toEqual({ scope: 'WORKSPACE' });
+ });
+});
diff --git a/packages/twenty-sdk/src/sdk/logic-function/connections/find-connection-for-request.ts b/packages/twenty-sdk/src/sdk/logic-function/connections/find-connection-for-request.ts
index a4bfed42464..549dfd6ab80 100644
--- a/packages/twenty-sdk/src/sdk/logic-function/connections/find-connection-for-request.ts
+++ b/packages/twenty-sdk/src/sdk/logic-function/connections/find-connection-for-request.ts
@@ -7,7 +7,7 @@ export const findConnectionForRequest = (
if (event.userWorkspaceId !== null) {
const personal = connections.find(
(connection) =>
- connection.visibility === 'user' &&
+ connection.scope === 'USER' &&
connection.userWorkspaceId === event.userWorkspaceId,
);
@@ -17,7 +17,7 @@ export const findConnectionForRequest = (
}
const workspaceShared = connections.find(
- (connection) => connection.visibility === 'workspace',
+ (connection) => connection.scope === 'WORKSPACE',
);
return workspaceShared ?? null;
diff --git a/packages/twenty-sdk/src/sdk/logic-function/connections/get-connection.ts b/packages/twenty-sdk/src/sdk/logic-function/connections/get-connection.ts
index bb5cdd683f3..a4f2fc80824 100644
--- a/packages/twenty-sdk/src/sdk/logic-function/connections/get-connection.ts
+++ b/packages/twenty-sdk/src/sdk/logic-function/connections/get-connection.ts
@@ -1,5 +1,6 @@
import { AppConnectionAuthFailedError } from '@/sdk/logic-function/connections/errors/app-connection-auth-failed.error';
import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';
+import { withLegacyConnectionVisibility } from '@/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util';
import { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';
const GET_APP_CONNECTION_QUERY = `
@@ -10,7 +11,7 @@ const GET_APP_CONNECTION_QUERY = `
name
handle
externalAccountId
- visibility
+ scope
userWorkspaceId
workspaceMemberId
accessToken
@@ -24,7 +25,7 @@ const GET_APP_CONNECTION_QUERY = `
export const getConnection = async (id: string): Promise<AppConnection> => {
const { appConnection } = await postGraphqlRequest<
{ id: string },
- { appConnection: AppConnection }
+ { appConnection: Omit<AppConnection, 'visibility'> }
>({
query: GET_APP_CONNECTION_QUERY,
variables: { id },
@@ -35,5 +36,5 @@ export const getConnection = async (id: string): Promise<AppConnection> => {
throw new AppConnectionAuthFailedError(appConnection.id);
}
- return appConnection;
+ return withLegacyConnectionVisibility(appConnection);
};
diff --git a/packages/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts b/packages/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts
index f2edffd2d86..5f26b298537 100644
--- a/packages/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts
+++ b/packages/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts
@@ -1,4 +1,8 @@
+import { CONNECTION_SCOPE_BY_LEGACY_VISIBILITY } from 'twenty-shared/application';
+import { isDefined } from 'twenty-shared/utils';
+
import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';
+import { withLegacyConnectionVisibility } from '@/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util';
import { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';
const LIST_APP_CONNECTIONS_QUERY = `
@@ -9,7 +13,7 @@ const LIST_APP_CONNECTIONS_QUERY = `
name
handle
externalAccountId
- visibility
+ scope
userWorkspaceId
workspaceMemberId
accessToken
@@ -23,20 +27,32 @@ const LIST_APP_CONNECTIONS_QUERY = `
export type ListConnectionsFilter = {
providerName?: string;
userWorkspaceId?: string;
- visibility?: 'user' | 'workspace';
+ scope?: AppConnection['scope'];
+ /** @deprecated Use `scope` instead. */
+ visibility?: AppConnection['visibility'];
};
-export const listConnections = async (
- filter: ListConnectionsFilter = {},
-): Promise<AppConnection[]> => {
+export const listConnections = async ({
+ visibility,
+ ...filter
+}: ListConnectionsFilter = {}): Promise<AppConnection[]> => {
const { appConnections } = await postGraphqlRequest<
- { filter: ListConnectionsFilter },
- { appConnections: AppConnection[] }
+ { filter: Omit<ListConnectionsFilter, 'visibility'> },
+ { appConnections: Omit<AppConnection, 'visibility'>[] }
>({
query: LIST_APP_CONNECTIONS_QUERY,
- variables: { filter },
+ variables: {
+ filter: {
+ ...filter,
+ scope:
+ filter.scope ??
+ (isDefined(visibility)
+ ? CONNECTION_SCOPE_BY_LEGACY_VISIBILITY[visibility]
+ : undefined),
+ },
+ },
caller: 'listConnections',
});
- return appConnections;
+ return appConnections.map(withLegacyConnectionVisibility);
};
diff --git a/packages/twenty-sdk/src/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util.ts b/packages/twenty-sdk/src/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util.ts
new file mode 100644
index 00000000000..70c37e24953
--- /dev/null
+++ b/packages/twenty-sdk/src/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util.ts
@@ -0,0 +1,10 @@
+import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application';
+
+import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';
+
+export const withLegacyConnectionVisibility = (
+ connection: Omit<AppConnection, 'visibility'>,
+): AppConnection => ({
+ ...connection,
+ visibility: LEGACY_CONNECTION_VISIBILITY_BY_SCOPE[connection.scope],
+});
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792170228100-add-connected-account-scope.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792170228100-add-connected-account-scope.ts
new file mode 100644
index 00000000000..99343fc8db3
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792170228100-add-connected-account-scope.ts
@@ -0,0 +1,63 @@
+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', 1792170228100)
+export class AddConnectedAccountScopeFastInstanceCommand implements FastInstanceCommand {
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ 'ALTER TABLE "core"."connectedAccount" ADD "scope" character varying',
+ );
+ // Servers read scope once this completes; same-type USING fills it without an UPDATE
+ await queryRunner.query(
+ 'ALTER TABLE "core"."connectedAccount" ALTER COLUMN "scope" TYPE character varying USING upper("visibility")',
+ );
+ await queryRunner.query(
+ 'ALTER TABLE "core"."connectedAccount" ALTER COLUMN "scope" SET DEFAULT \'USER\', ALTER COLUMN "scope" SET NOT NULL',
+ );
+ await queryRunner.query(
+ 'ALTER TABLE "core"."connectedAccount" ALTER COLUMN "visibility" DROP DEFAULT',
+ );
+ // Only previous-release servers write visibility, so the trigger trusts it when set
+ await queryRunner.query(`
+ CREATE OR REPLACE FUNCTION "core"."syncConnectedAccountScopeAndVisibility"()
+ RETURNS trigger LANGUAGE plpgsql AS $function$
+ BEGIN
+ IF TG_OP = 'INSERT' THEN
+ IF NEW."visibility" IS NOT NULL THEN
+ NEW."scope" := upper(NEW."visibility");
+ ELSE
+ NEW."visibility" := lower(NEW."scope");
+ END IF;
+ ELSIF NEW."scope" IS DISTINCT FROM OLD."scope" THEN
+ NEW."visibility" := lower(NEW."scope");
+ ELSIF NEW."visibility" IS DISTINCT FROM OLD."visibility" THEN
+ NEW."scope" := upper(NEW."visibility");
+ END IF;
+ RETURN NEW;
+ END;
+ $function$;
+ `);
+ await queryRunner.query(
+ `CREATE TRIGGER "syncConnectedAccountScopeAndVisibility"
+ BEFORE INSERT OR UPDATE ON "core"."connectedAccount"
+ FOR EACH ROW EXECUTE FUNCTION "core"."syncConnectedAccountScopeAndVisibility"()`,
+ );
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ 'DROP TRIGGER "syncConnectedAccountScopeAndVisibility" ON "core"."connectedAccount"',
+ );
+ await queryRunner.query(
+ 'DROP FUNCTION "core"."syncConnectedAccountScopeAndVisibility"()',
+ );
+ await queryRunner.query(
+ 'ALTER TABLE "core"."connectedAccount" ALTER COLUMN "visibility" SET DEFAULT \'user\'',
+ );
+ await queryRunner.query(
+ 'ALTER TABLE "core"."connectedAccount" DROP COLUMN "scope"',
+ );
+ }
+}
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.ts
index e717a671cfe..4bfa9023011 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
@@ -246,6 +246,7 @@ import { AddApplicationRegistrationVersionsFastInstanceCommand } from 'src/datab
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';
+import { AddConnectedAccountScopeFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792170228100-add-connected-account-scope';
export const INSTANCE_COMMANDS = [
AddViewFieldGroupIdIndexOnViewFieldFastInstanceCommand,
@@ -494,4 +495,5 @@ export const INSTANCE_COMMANDS = [
BackfillApplicationRegistrationVersionsSlowInstanceCommand,
AddUserCreditsFallbackToBillingCustomerFastInstanceCommand,
AddConnectionProviderScopeFastInstanceCommand,
+ AddConnectedAccountScopeFastInstanceCommand,
];
diff --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.ts
index f4d160fc927..95a1e4f4496 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,5 +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',
+ CONNECTION_SCOPE_NOT_ALLOWED = 'CONNECTION_SCOPE_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.ts
index 2112d9e2147..76938d3048d 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
@@ -3,7 +3,11 @@ import { InjectRepository } from '@nestjs/typeorm';
import { IsNull, Repository } from 'typeorm';
-import { type IdentifiedAccount } from 'twenty-shared/application';
+import {
+ CONNECTION_SCOPE_BY_LEGACY_VISIBILITY,
+ type IdentifiedAccount,
+ LEGACY_CONNECTION_VISIBILITY_BY_SCOPE,
+} from 'twenty-shared/application';
import { ConnectedAccountProvider } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
@@ -13,19 +17,21 @@ 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 { assertConnectionScopeAllowedByProviderOrThrow } from 'src/engine/core-modules/application/connection-provider/utils/assert-connection-scope-allowed-by-provider-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';
import { extractEmailFromIdTokenClaims } from 'src/engine/core-modules/application/connection-provider/utils/extract-email-from-id-token-claims.util';
import { generatePkceVerifier } from 'src/engine/core-modules/application/connection-provider/utils/generate-pkce-verifier.util';
-import { type AppOAuthStateJwtPayload } from 'src/engine/core-modules/auth/types/app-oauth-state-jwt-payload.type';
+import {
+ type AppOAuthStateJwtPayload,
+ type LegacyAppOAuthStateJwtPayload,
+} from 'src/engine/core-modules/auth/types/app-oauth-state-jwt-payload.type';
import { JwtTokenTypeEnum } from 'src/engine/core-modules/auth/types/jwt-token-type.enum';
import { JwtWrapperService } from 'src/engine/core-modules/jwt/services/jwt-wrapper.service';
import { SecureHttpClientService } from 'src/engine/core-modules/secure-http-client/secure-http-client.service';
@@ -33,7 +39,7 @@ import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twent
import { UserEntity } from 'src/engine/core-modules/user/user.entity';
import {
ConnectedAccountEntity,
- type ConnectedAccountVisibility,
+ type ConnectedAccountScope,
} 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';
@@ -45,7 +51,7 @@ type AuthorizeArgs = {
workspaceId: string;
userId: string;
userWorkspaceId: string;
- visibility: ConnectedAccountVisibility | null;
+ scope: ConnectedAccountScope | null;
reconnectingConnectedAccountId: string | null;
redirectLocation: string | null;
};
@@ -94,21 +100,18 @@ export class ConnectionProviderOAuthFlowService {
reconnectingConnectedAccountId: args.reconnectingConnectedAccountId,
});
- const visibility =
- args.visibility ??
- reconnectTarget?.visibility ??
- CONNECTION_VISIBILITY_BY_PROVIDER_SCOPE[connectionProvider.scope];
+ const scope =
+ args.scope ?? reconnectTarget?.scope ?? connectionProvider.scope;
- assertConnectionVisibilityWithinProviderScopeOrThrow({
+ assertConnectionScopeAllowedByProviderOrThrow({
connectionProvider,
- visibility,
+ scope,
reconnectTarget,
});
await this.appConnectionAccessService.validateCallerCanManageConnection({
isWorkspaceShared:
- visibility === 'workspace' ||
- reconnectTarget?.visibility === 'workspace',
+ scope === 'WORKSPACE' || reconnectTarget?.scope === 'WORKSPACE',
workspaceId,
userWorkspaceId,
});
@@ -128,7 +131,8 @@ export class ConnectionProviderOAuthFlowService {
workspaceId,
userId,
userWorkspaceId,
- visibility,
+ scope,
+ visibility: LEGACY_CONNECTION_VISIBILITY_BY_SCOPE[scope],
reconnectingConnectedAccountId: args.reconnectingConnectedAccountId,
redirectLocation: args.redirectLocation,
codeVerifier,
@@ -178,9 +182,9 @@ export class ConnectionProviderOAuthFlowService {
});
// The app may have changed its scope while the member was on the consent screen.
- assertConnectionVisibilityWithinProviderScopeOrThrow({
+ assertConnectionScopeAllowedByProviderOrThrow({
connectionProvider: provider,
- visibility: statePayload.visibility,
+ scope: statePayload.scope,
reconnectTarget,
});
@@ -227,7 +231,7 @@ export class ConnectionProviderOAuthFlowService {
workspaceId: statePayload.workspaceId,
userId: statePayload.userId,
userWorkspaceId: statePayload.userWorkspaceId,
- visibility: statePayload.visibility,
+ scope: statePayload.scope,
reconnectingConnectedAccountId:
statePayload.reconnectingConnectedAccountId,
});
@@ -290,15 +294,20 @@ export class ConnectionProviderOAuthFlowService {
private async verifyState(state: string): Promise<AppOAuthStateJwtPayload> {
try {
- const verified = (await this.jwtWrapperService.verifyJwtToken(
- state,
- )) as AppOAuthStateJwtPayload;
+ const verified = (await this.jwtWrapperService.verifyJwtToken(state)) as
+ | AppOAuthStateJwtPayload
+ | LegacyAppOAuthStateJwtPayload;
if (verified.type !== JwtTokenTypeEnum.APP_OAUTH_STATE) {
throw new Error('Wrong JWT type for OAuth state');
}
- return verified;
+ return 'scope' in verified
+ ? verified
+ : {
+ ...verified,
+ scope: CONNECTION_SCOPE_BY_LEGACY_VISIBILITY[verified.visibility],
+ };
} catch (error) {
this.logger.warn(
`Rejected OAuth state: ${(error as Error).message ?? 'unknown reason'}`,
@@ -349,7 +358,7 @@ export class ConnectionProviderOAuthFlowService {
workspaceId,
userId,
userWorkspaceId,
- visibility,
+ scope,
reconnectingConnectedAccountId,
}: {
provider: OAuthConnectionProvider;
@@ -358,7 +367,7 @@ export class ConnectionProviderOAuthFlowService {
workspaceId: string;
userId: string;
userWorkspaceId: string;
- visibility: 'user' | 'workspace';
+ scope: ConnectedAccountScope;
reconnectingConnectedAccountId: string | null;
}): Promise<ConnectedAccountEntity> {
const { encryptedAccessToken, encryptedRefreshToken } =
@@ -384,7 +393,7 @@ export class ConnectionProviderOAuthFlowService {
lastCredentialsRefreshedAt: new Date(),
authFailedAt: null,
authFailedReason: null,
- visibility,
+ scope,
handle,
externalAccountId: identifiedAccount?.externalAccountId ?? null,
};
@@ -434,7 +443,7 @@ export class ConnectionProviderOAuthFlowService {
const created = this.connectedAccountRepository.create({
...sharedFields,
name,
- visibility,
+ scope,
provider: ConnectedAccountProvider.APP,
workspaceId,
applicationId: provider.applicationId,
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.ts
index 7adfad358a1..f19898d4ae3 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
@@ -2,6 +2,10 @@ import { Controller, Get, Logger, Query, Res, UseGuards } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { type Response } from 'express';
+import {
+ CONNECTION_SCOPE_BY_LEGACY_VISIBILITY,
+ isConnectionProviderScope,
+} from 'twenty-shared/application';
import { ApiPath, SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
import { Repository } from 'typeorm';
@@ -48,7 +52,8 @@ export class ConnectionProviderOAuthController {
@Query('applicationId') applicationId: string,
@Query('providerName') providerName: string,
@Query('transientToken') transientToken: string,
- @Query('visibility') visibility: string | undefined,
+ @Query('scope') scope: string | undefined,
+ @Query('visibility') legacyVisibility: string | undefined,
@Query('reconnectingConnectedAccountId')
reconnectingConnectedAccountId: string | undefined,
@Query('redirectLocation') redirectLocation: string | undefined,
@@ -65,13 +70,20 @@ export class ConnectionProviderOAuthController {
);
}
+ if (isDefined(scope) && !isConnectionProviderScope(scope)) {
+ throw new ConnectionProviderException(
+ `Invalid scope "${scope}" — must be 'USER' or 'WORKSPACE'`,
+ ConnectionProviderExceptionCode.INVALID_REQUEST,
+ );
+ }
+
if (
- visibility !== undefined &&
- visibility !== 'user' &&
- visibility !== 'workspace'
+ legacyVisibility !== undefined &&
+ legacyVisibility !== 'user' &&
+ legacyVisibility !== 'workspace'
) {
throw new ConnectionProviderException(
- `Invalid visibility "${visibility}" — must be 'user' or 'workspace'`,
+ `Invalid visibility "${legacyVisibility}" — must be 'user' or 'workspace'`,
ConnectionProviderExceptionCode.INVALID_REQUEST,
);
}
@@ -128,7 +140,11 @@ export class ConnectionProviderOAuthController {
workspaceId,
userId,
userWorkspaceId: userWorkspace.id,
- visibility: (visibility as 'user' | 'workspace' | undefined) ?? null,
+ scope:
+ scope ??
+ (isDefined(legacyVisibility)
+ ? CONNECTION_SCOPE_BY_LEGACY_VISIBILITY[legacyVisibility]
+ : null),
reconnectingConnectedAccountId:
reconnectingConnectedAccountId ?? null,
redirectLocation: redirectLocation ?? 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.ts
index abff61b1cb7..1ed6df52da4 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,7 +43,7 @@ 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:
+ case ConnectionProviderExceptionCode.CONNECTION_SCOPE_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/connections/dtos/app-connection.object.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/app-connection.object.ts
index e65d7312aee..f1aa890ca56 100644
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/app-connection.object.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/app-connection.object.ts
@@ -2,6 +2,9 @@ import { Field, ID, ObjectType } from '@nestjs/graphql';
import { type AppConnection } from 'twenty-shared/application';
+import { type ConnectedAccountScope } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
+import { ConnectedAccountScopeEnum } from 'src/engine/metadata-modules/connected-account/enums/connected-account-scope.enum';
+
@ObjectType('AppConnection')
export class AppConnectionObjectDto implements AppConnection {
@Field(() => ID)
@@ -19,7 +22,10 @@ export class AppConnectionObjectDto implements AppConnection {
@Field(() => String, { nullable: true })
externalAccountId: string | null;
- @Field(() => String)
+ @Field(() => ConnectedAccountScopeEnum)
+ scope: ConnectedAccountScope;
+
+ @Field(() => String, { deprecationReason: 'Use scope instead.' })
visibility: 'user' | 'workspace';
@Field()
diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/list-app-connections.dto.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/list-app-connections.dto.ts
index a3276b6212b..b44a12f1430 100644
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/list-app-connections.dto.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/list-app-connections.dto.ts
@@ -1,4 +1,7 @@
-import { IsOptional, IsString, IsUUID } from 'class-validator';
+import { IsEnum, IsIn, IsOptional, IsString, IsUUID } from 'class-validator';
+
+import { type ConnectedAccountScope } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
+import { ConnectedAccountScopeEnum } from 'src/engine/metadata-modules/connected-account/enums/connected-account-scope.enum';
export class ListAppConnectionsDto {
@IsString()
@@ -11,7 +14,11 @@ export class ListAppConnectionsDto {
@IsOptional()
userWorkspaceId?: string;
- @IsString()
+ @IsEnum(ConnectedAccountScopeEnum)
+ @IsOptional()
+ scope?: ConnectedAccountScope;
+
+ @IsIn(['user', 'workspace'])
@IsOptional()
visibility?: 'user' | 'workspace';
}
diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/list-app-connections.input.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/list-app-connections.input.ts
index 10dfd2c9453..b501a3079cb 100644
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/list-app-connections.input.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/dtos/list-app-connections.input.ts
@@ -1,6 +1,9 @@
import { Field, InputType } from '@nestjs/graphql';
-import { IsIn, IsOptional, IsString, IsUUID } from 'class-validator';
+import { IsEnum, IsIn, IsOptional, IsString, IsUUID } from 'class-validator';
+
+import { type ConnectedAccountScope } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
+import { ConnectedAccountScopeEnum } from 'src/engine/metadata-modules/connected-account/enums/connected-account-scope.enum';
@InputType('ListAppConnectionsInput')
export class ListAppConnectionsInput {
@@ -14,8 +17,16 @@ export class ListAppConnectionsInput {
@Field({ nullable: true })
userWorkspaceId?: string;
+ @IsEnum(ConnectedAccountScopeEnum)
+ @IsOptional()
+ @Field(() => ConnectedAccountScopeEnum, { nullable: true })
+ scope?: ConnectedAccountScope;
+
@IsIn(['user', 'workspace'])
@IsOptional()
- @Field(() => String, { nullable: true })
+ @Field(() => String, {
+ nullable: true,
+ deprecationReason: 'Use scope instead.',
+ })
visibility?: 'user' | 'workspace';
}
diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/services/application-connections-list.service.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/services/application-connections-list.service.ts
index a410672db88..170662c9f53 100644
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/services/application-connections-list.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/services/application-connections-list.service.ts
@@ -3,6 +3,10 @@ import { InjectRepository } from '@nestjs/typeorm';
import { type FindOptionsWhere, In, Repository } from 'typeorm';
+import {
+ CONNECTION_SCOPE_BY_LEGACY_VISIBILITY,
+ LEGACY_CONNECTION_VISIBILITY_BY_SCOPE,
+} from 'twenty-shared/application';
import { ConnectedAccountProvider } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
@@ -11,7 +15,10 @@ import { ConnectionProviderEntity } from 'src/engine/core-modules/application/co
import { ConnectionProviderException } from 'src/engine/core-modules/application/connection-provider/connection-provider.exception';
import { type AppConnectionDto } from 'src/engine/core-modules/application/connection-provider/connections/dtos/app-connection.dto';
import { isConnectionHiddenFromRequestUser } from 'src/engine/core-modules/application/connection-provider/connections/utils/is-connection-hidden-from-request-user.util';
-import { ConnectedAccountEntity } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
+import {
+ ConnectedAccountEntity,
+ type ConnectedAccountScope,
+} 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 { InjectWorkspaceScopedRepository } from 'src/engine/twenty-orm/workspace-scoped-repository/inject-workspace-scoped-repository.decorator';
import { WorkspaceScopedRepository } from 'src/engine/twenty-orm/workspace-scoped-repository/workspace-scoped-repository';
@@ -28,6 +35,7 @@ type ListArgs = {
filter: {
providerName?: string;
userWorkspaceId?: string;
+ scope?: ConnectedAccountScope;
visibility?: 'user' | 'workspace';
};
};
@@ -88,11 +96,17 @@ export class ApplicationConnectionsListService {
: {}),
};
+ const scopeFilter =
+ filter.scope ??
+ (isDefined(filter.visibility)
+ ? CONNECTION_SCOPE_BY_LEGACY_VISIBILITY[filter.visibility]
+ : undefined);
+
const accounts = await this.connectedAccountRepository.find({
where: this.buildPrivacyWhere(
baseWhere,
requestUserWorkspaceId,
- filter.visibility,
+ scopeFilter,
),
});
@@ -180,33 +194,33 @@ export class ApplicationConnectionsListService {
private buildPrivacyWhere(
baseWhere: FindOptionsWhere<ConnectedAccountEntity>,
requestUserWorkspaceId: string | null,
- visibilityFilter: 'user' | 'workspace' | undefined,
+ scopeFilter: ConnectedAccountScope | undefined,
):
| FindOptionsWhere<ConnectedAccountEntity>
| FindOptionsWhere<ConnectedAccountEntity>[] {
if (!isDefined(requestUserWorkspaceId)) {
- return isDefined(visibilityFilter)
- ? { ...baseWhere, visibility: visibilityFilter }
+ return isDefined(scopeFilter)
+ ? { ...baseWhere, scope: scopeFilter }
: baseWhere;
}
- if (visibilityFilter === 'user') {
+ if (scopeFilter === 'USER') {
return {
...baseWhere,
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: requestUserWorkspaceId,
};
}
- if (visibilityFilter === 'workspace') {
- return { ...baseWhere, visibility: 'workspace' };
+ if (scopeFilter === 'WORKSPACE') {
+ return { ...baseWhere, scope: 'WORKSPACE' };
}
return [
- { ...baseWhere, visibility: 'workspace' },
+ { ...baseWhere, scope: 'WORKSPACE' },
{
...baseWhere,
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: requestUserWorkspaceId,
},
];
@@ -246,7 +260,8 @@ export class ApplicationConnectionsListService {
name: account.name ?? account.handle,
handle: account.handle,
externalAccountId: account.externalAccountId,
- visibility: account.visibility as 'user' | 'workspace',
+ scope: account.scope,
+ visibility: LEGACY_CONNECTION_VISIBILITY_BY_SCOPE[account.scope],
userWorkspaceId: account.userWorkspaceId,
workspaceMemberId,
accessToken: this.connectedAccountTokenEncryptionService.decrypt({
diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/utils/__tests__/is-connection-hidden-from-request-user.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/utils/__tests__/is-connection-hidden-from-request-user.util.spec.ts
index 1e26d044e5a..1dd19877dbc 100644
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/utils/__tests__/is-connection-hidden-from-request-user.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/utils/__tests__/is-connection-hidden-from-request-user.util.spec.ts
@@ -1,19 +1,19 @@
import { isConnectionHiddenFromRequestUser } from 'src/engine/core-modules/application/connection-provider/connections/utils/is-connection-hidden-from-request-user.util';
describe('isConnectionHiddenFromRequestUser', () => {
- it("hides another user's user-visibility connection from a request user", () => {
+ it("hides another user's USER-scoped connection from a request user", () => {
expect(
isConnectionHiddenFromRequestUser({
- account: { visibility: 'user', userWorkspaceId: 'uw-owner' },
+ account: { scope: 'USER', userWorkspaceId: 'uw-owner' },
requestUserWorkspaceId: 'uw-someone-else',
}),
).toBe(true);
});
- it('shows a request user their own user-visibility connection', () => {
+ it('shows a request user their own USER-scoped connection', () => {
expect(
isConnectionHiddenFromRequestUser({
- account: { visibility: 'user', userWorkspaceId: 'uw-owner' },
+ account: { scope: 'USER', userWorkspaceId: 'uw-owner' },
requestUserWorkspaceId: 'uw-owner',
}),
).toBe(false);
@@ -22,7 +22,7 @@ describe('isConnectionHiddenFromRequestUser', () => {
it('shows workspace-shared connections to any request user', () => {
expect(
isConnectionHiddenFromRequestUser({
- account: { visibility: 'workspace', userWorkspaceId: 'uw-owner' },
+ account: { scope: 'WORKSPACE', userWorkspaceId: 'uw-owner' },
requestUserWorkspaceId: 'uw-someone-else',
}),
).toBe(false);
@@ -31,7 +31,7 @@ describe('isConnectionHiddenFromRequestUser', () => {
it('hides nothing from background executions with no request user', () => {
expect(
isConnectionHiddenFromRequestUser({
- account: { visibility: 'user', userWorkspaceId: 'uw-owner' },
+ account: { scope: 'USER', userWorkspaceId: 'uw-owner' },
requestUserWorkspaceId: null,
}),
).toBe(false);
diff --git a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/utils/is-connection-hidden-from-request-user.util.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/utils/is-connection-hidden-from-request-user.util.ts
index 535c9822e66..cf6d3483224 100644
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/utils/is-connection-hidden-from-request-user.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/connections/utils/is-connection-hidden-from-request-user.util.ts
@@ -7,9 +7,9 @@ export const isConnectionHiddenFromRequestUser = ({
account,
requestUserWorkspaceId,
}: {
- account: Pick<ConnectedAccountEntity, 'visibility' | 'userWorkspaceId'>;
+ account: Pick<ConnectedAccountEntity, 'scope' | 'userWorkspaceId'>;
requestUserWorkspaceId: string | null;
}): boolean =>
isDefined(requestUserWorkspaceId) &&
- account.visibility === 'user' &&
+ account.scope === 'USER' &&
account.userWorkspaceId !== requestUserWorkspaceId;
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.ts
deleted file mode 100644
index 448b135d92a..00000000000
--- a/packages/twenty-server/src/engine/core-modules/application/connection-provider/constants/connection-visibility-by-provider-scope.constant.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-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/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
index 39f2f547e28..aa3a87af3a7 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,7 +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:
+ case ConnectionProviderExceptionCode.CONNECTION_SCOPE_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/__tests__/assert-connection-scope-allowed-by-provider-or-throw.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/__tests__/assert-connection-scope-allowed-by-provider-or-throw.util.spec.ts
new file mode 100644
index 00000000000..7f1ce1a8e2a
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/__tests__/assert-connection-scope-allowed-by-provider-or-throw.util.spec.ts
@@ -0,0 +1,120 @@
+import { i18n } from '@lingui/core';
+
+import { ConnectionProviderExceptionCode } from 'src/engine/core-modules/application/connection-provider/connection-provider-exception-code.enum';
+import { ConnectionProviderException } from 'src/engine/core-modules/application/connection-provider/connection-provider.exception';
+import { assertConnectionScopeAllowedByProviderOrThrow } from 'src/engine/core-modules/application/connection-provider/utils/assert-connection-scope-allowed-by-provider-or-throw.util';
+
+const userProvider = {
+ name: 'linear',
+ displayName: 'Linear',
+ scope: 'USER' as const,
+};
+
+const workspaceProvider = {
+ name: 'slack',
+ displayName: 'Slack',
+ scope: 'WORKSPACE' as const,
+};
+
+const catchException = (assertion: () => void): ConnectionProviderException => {
+ try {
+ assertion();
+ } catch (error) {
+ if (error instanceof ConnectionProviderException) {
+ return error;
+ }
+
+ throw error;
+ }
+
+ throw new Error('Expected a ConnectionProviderException');
+};
+
+describe('assertConnectionScopeAllowedByProviderOrThrow', () => {
+ beforeAll(() => {
+ i18n.loadAndActivate({ locale: 'en', messages: {} });
+ });
+
+ it.each([
+ ['USER', userProvider],
+ ['WORKSPACE', workspaceProvider],
+ ] as const)(
+ 'accepts a new %s connection on a provider with the same scope',
+ (scope, connectionProvider) => {
+ expect(() =>
+ assertConnectionScopeAllowedByProviderOrThrow({
+ connectionProvider,
+ scope,
+ reconnectTarget: null,
+ }),
+ ).not.toThrow();
+ },
+ );
+
+ it.each([
+ ['USER', workspaceProvider],
+ ['WORKSPACE', userProvider],
+ ] as const)(
+ 'accepts a reconnect that keeps an existing %s scope the provider no longer has',
+ (scope, connectionProvider) => {
+ expect(() =>
+ assertConnectionScopeAllowedByProviderOrThrow({
+ connectionProvider,
+ scope,
+ reconnectTarget: { scope },
+ }),
+ ).not.toThrow();
+ },
+ );
+
+ it('refuses a reconnect that moves a connection out of the provider scope', () => {
+ const exception = catchException(() =>
+ assertConnectionScopeAllowedByProviderOrThrow({
+ connectionProvider: userProvider,
+ scope: 'WORKSPACE',
+ reconnectTarget: { scope: 'USER' },
+ }),
+ );
+
+ expect(exception.code).toBe(
+ ConnectionProviderExceptionCode.CONNECTION_SCOPE_NOT_ALLOWED,
+ );
+ });
+
+ it('tells the member that a USER provider only supports personal connections', () => {
+ const exception = catchException(() =>
+ assertConnectionScopeAllowedByProviderOrThrow({
+ connectionProvider: userProvider,
+ scope: 'WORKSPACE',
+ reconnectTarget: null,
+ }),
+ );
+
+ expect(exception.code).toBe(
+ ConnectionProviderExceptionCode.CONNECTION_SCOPE_NOT_ALLOWED,
+ );
+ expect(exception.message).toBe(
+ 'Connection provider "linear" has scope USER and does not accept WORKSPACE connections',
+ );
+ expect(i18n._(exception.userFriendlyMessage)).toBe(
+ 'Linear only supports personal connections.',
+ );
+ });
+
+ it('tells the member that a WORKSPACE provider only supports shared connections', () => {
+ const exception = catchException(() =>
+ assertConnectionScopeAllowedByProviderOrThrow({
+ connectionProvider: workspaceProvider,
+ scope: 'USER',
+ reconnectTarget: null,
+ }),
+ );
+
+ expect(exception.code).toBe(
+ ConnectionProviderExceptionCode.CONNECTION_SCOPE_NOT_ALLOWED,
+ );
+ expect(i18n._(exception.userFriendlyMessage)).toBe(
+ 'Slack only supports connections shared with the workspace.',
+ );
+ });
+});
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-scope-allowed-by-provider-or-throw.util.ts
similarity index 60%
rename from packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/assert-connection-visibility-within-provider-scope-or-throw.util.ts
rename to packages/twenty-server/src/engine/core-modules/application/connection-provider/utils/assert-connection-scope-allowed-by-provider-or-throw.util.ts
index 76dcf347f29..9abdd7149f0 100644
--- 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-scope-allowed-by-provider-or-throw.util.ts
@@ -4,40 +4,35 @@ 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,
+ type ConnectedAccountScope,
} from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
-export const assertConnectionVisibilityWithinProviderScopeOrThrow = ({
+export const assertConnectionScopeAllowedByProviderOrThrow = ({
connectionProvider,
- visibility,
+ scope,
reconnectTarget,
}: {
connectionProvider: Pick<
ConnectionProviderEntity,
'name' | 'displayName' | 'scope'
>;
- visibility: ConnectedAccountVisibility;
- reconnectTarget: Pick<ConnectedAccountEntity, 'visibility'> | null;
+ scope: ConnectedAccountScope;
+ reconnectTarget: Pick<ConnectedAccountEntity, 'scope'> | null;
}): void => {
- const isKeepingExistingVisibility =
- isDefined(reconnectTarget) && reconnectTarget.visibility === visibility;
+ const isKeepingExistingScope =
+ isDefined(reconnectTarget) && reconnectTarget.scope === scope;
- if (
- isKeepingExistingVisibility ||
- CONNECTION_VISIBILITY_BY_PROVIDER_SCOPE[connectionProvider.scope] ===
- visibility
- ) {
+ if (isKeepingExistingScope || connectionProvider.scope === scope) {
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,
+ `Connection provider "${connectionProvider.name}" has scope ${connectionProvider.scope} and does not accept ${scope} connections`,
+ ConnectionProviderExceptionCode.CONNECTION_SCOPE_NOT_ALLOWED,
{
userFriendlyMessage:
connectionProvider.scope === 'USER'
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.ts
index 3db72d3e421..34d47fb1c74 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,7 +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:
+ case ConnectionProviderExceptionCode.CONNECTION_SCOPE_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/core-modules/auth/types/app-oauth-state-jwt-payload.type.ts b/packages/twenty-server/src/engine/core-modules/auth/types/app-oauth-state-jwt-payload.type.ts
index f1f16a06af3..ab260e0f963 100644
--- a/packages/twenty-server/src/engine/core-modules/auth/types/app-oauth-state-jwt-payload.type.ts
+++ b/packages/twenty-server/src/engine/core-modules/auth/types/app-oauth-state-jwt-payload.type.ts
@@ -1,5 +1,6 @@
import { type CommonPropertiesJwtPayload } from 'src/engine/core-modules/auth/types/common-properties-jwt-payload.type';
import { JwtTokenTypeEnum } from 'src/engine/core-modules/auth/types/jwt-token-type.enum';
+import { type ConnectedAccountScope } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
export type AppOAuthStateJwtPayload = CommonPropertiesJwtPayload & {
type: JwtTokenTypeEnum.APP_OAUTH_STATE;
@@ -7,8 +8,8 @@ export type AppOAuthStateJwtPayload = CommonPropertiesJwtPayload & {
connectionProviderId: string;
userId: string;
userWorkspaceId: string;
- // 'user' scopes the credential to userWorkspaceId; 'workspace' makes it
- // visible to anyone in the workspace.
+ scope: ConnectedAccountScope;
+ // Read by previous-release servers that complete the callback mid rollout
visibility: 'user' | 'workspace';
// If set, the callback updates this existing connectedAccount row instead
// of creating a new one (used by the UI's "Reconnect" action).
@@ -16,3 +17,8 @@ export type AppOAuthStateJwtPayload = CommonPropertiesJwtPayload & {
redirectLocation: string | null;
codeVerifier: string | null;
};
+
+export type LegacyAppOAuthStateJwtPayload = Omit<
+ AppOAuthStateJwtPayload,
+ 'scope'
+>;
diff --git a/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/find-connected-accounts-tool.ts b/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/find-connected-accounts-tool.ts
index 4b9466b64e4..921e6e0c5a9 100644
--- a/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/find-connected-accounts-tool.ts
+++ b/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/find-connected-accounts-tool.ts
@@ -14,7 +14,7 @@ import { ConnectedAccountMetadataService } from 'src/engine/metadata-modules/con
@Injectable()
export class FindConnectedAccountsTool implements Tool {
description =
- 'List the mailboxes the caller can use with draft_email and send_email. Returns id, handle, provider, visibility and aliases. Pass a returned id as connectedAccountId. If more than one is returned, ask the user which one to send from rather than guessing. Whether a given mailbox supports drafting also depends on its configuration, which draft_email reports if it does not.';
+ 'List the mailboxes the caller can use with draft_email and send_email. Returns id, handle, provider, scope and aliases. Pass a returned id as connectedAccountId. If more than one is returned, ask the user which one to send from rather than guessing. Whether a given mailbox supports drafting also depends on its configuration, which draft_email reports if it does not.';
inputSchema = FindConnectedAccountsToolInputZodSchema;
constructor(
@@ -45,7 +45,7 @@ export class FindConnectedAccountsTool implements Tool {
handleAliases: connectedAccount.handleAliases,
provider: connectedAccount.provider,
name: connectedAccount.name,
- visibility: connectedAccount.visibility,
+ scope: connectedAccount.scope,
}));
return {
diff --git a/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/utils/__tests__/select-connected-account-id-for-caller.util.spec.ts b/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/utils/__tests__/select-connected-account-id-for-caller.util.spec.ts
index 3fd3d78d6c8..ab655590b11 100644
--- a/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/utils/__tests__/select-connected-account-id-for-caller.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/utils/__tests__/select-connected-account-id-for-caller.util.spec.ts
@@ -6,19 +6,19 @@ const OTHER_USER_WORKSPACE_ID = '20202020-3333-4333-8333-333333333333';
const ownAccount = {
id: 'own-account-id',
userWorkspaceId: USER_WORKSPACE_ID,
- visibility: 'user' as const,
+ scope: 'USER' as const,
};
const colleagueAccount = {
id: 'colleague-account-id',
userWorkspaceId: OTHER_USER_WORKSPACE_ID,
- visibility: 'user' as const,
+ scope: 'USER' as const,
};
const sharedAccount = {
id: 'shared-account-id',
userWorkspaceId: OTHER_USER_WORKSPACE_ID,
- visibility: 'workspace' as const,
+ scope: 'WORKSPACE' as const,
};
describe('selectConnectedAccountIdForCaller', () => {
diff --git a/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/utils/select-connected-account-id-for-caller.util.ts b/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/utils/select-connected-account-id-for-caller.util.ts
index b26c9c8ac64..fecbacdf9e0 100644
--- a/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/utils/select-connected-account-id-for-caller.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/tool/tools/email-tool/utils/select-connected-account-id-for-caller.util.ts
@@ -7,7 +7,7 @@ export const selectConnectedAccountIdForCaller = ({
}: {
connectedAccounts: Pick<
ConnectedAccountEntity,
- 'id' | 'visibility' | 'userWorkspaceId'
+ 'id' | 'scope' | 'userWorkspaceId'
>[];
userWorkspaceId: string;
}): string | undefined => {
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.service.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.service.ts
index dfdb039587a..cbe09112302 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/connected-account-metadata.service.ts
@@ -80,7 +80,7 @@ export class ConnectedAccountMetadataService {
handleAliases: true,
provider: true,
name: true,
- visibility: true,
+ scope: true,
userWorkspaceId: true,
connectionParameters: true,
},
@@ -99,7 +99,7 @@ export class ConnectedAccountMetadataService {
connectedAccount,
userWorkspaceId,
})
- : connectedAccount.visibility === 'workspace',
+ : connectedAccount.scope === 'WORKSPACE',
);
}
@@ -167,7 +167,7 @@ export class ConnectedAccountMetadataService {
applicationId: true,
workspaceId: true,
name: true,
- visibility: true,
+ scope: true,
createdAt: true,
updatedAt: true,
},
@@ -230,7 +230,7 @@ export class ConnectedAccountMetadataService {
}: {
connectedAccount: Pick<
ConnectedAccountEntity,
- 'visibility' | 'userWorkspaceId' | 'provider'
+ 'scope' | 'userWorkspaceId' | 'provider'
>;
userWorkspaceId: string;
workspaceId: string;
@@ -241,8 +241,8 @@ export class ConnectedAccountMetadataService {
return true;
}
- switch (connectedAccount.visibility) {
- case 'workspace':
+ switch (connectedAccount.scope) {
+ case 'WORKSPACE':
return this.permissionsService.userHasWorkspaceSettingPermission({
userWorkspaceId,
workspaceId,
@@ -252,10 +252,10 @@ export class ConnectedAccountMetadataService {
connectedAccount.provider,
),
});
- case 'user':
+ case 'USER':
return false;
default:
- return assertUnreachable(connectedAccount.visibility);
+ return assertUnreachable(connectedAccount.scope);
}
}
@@ -334,7 +334,7 @@ export class ConnectedAccountMetadataService {
workspaceId: string;
}): Promise<string[]> {
const accounts = await this.repository.find({
- where: { workspaceId, visibility: 'workspace', archivedAt: IsNull() },
+ where: { workspaceId, scope: 'WORKSPACE', archivedAt: IsNull() },
select: ['id'],
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/dtos/connected-account.dto.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/dtos/connected-account.dto.ts
index ae73d1d13b5..fcd134483ec 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/dtos/connected-account.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/dtos/connected-account.dto.ts
@@ -3,6 +3,7 @@ import { Field, HideField, ObjectType } from '@nestjs/graphql';
import {
IsArray,
IsDateString,
+ IsEnum,
IsNotEmpty,
IsOptional,
IsString,
@@ -11,6 +12,8 @@ import {
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
import { type ImapSmtpCaldavParams } from 'src/engine/core-modules/imap-smtp-caldav-connection/types/imap-smtp-caldav-connection.type';
+import { type ConnectedAccountScope } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
+import { ConnectedAccountScopeEnum } from 'src/engine/metadata-modules/connected-account/enums/connected-account-scope.enum';
@ObjectType('ConnectedAccountDTO')
export class ConnectedAccountDTO {
@@ -98,12 +101,13 @@ export class ConnectedAccountDTO {
@Field(() => String, { nullable: true })
name: string | null;
- // 'user' = private to the connecting user.
- // 'workspace' = shared with all members.
- // Named `visibility` to disambiguate from the OAuth `scopes` array.
+ @IsEnum(ConnectedAccountScopeEnum)
+ @Field(() => ConnectedAccountScopeEnum)
+ scope: ConnectedAccountScope;
+
@IsString()
- @Field(() => String)
- visibility: string;
+ @Field(() => String, { deprecationReason: 'Use scope instead.' })
+ visibility: 'user' | 'workspace';
@HideField()
workspaceId: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/entities/connected-account.entity.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/entities/connected-account.entity.ts
index 985382ba6cf..cfe94b9e8c5 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/entities/connected-account.entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/entities/connected-account.entity.ts
@@ -24,7 +24,7 @@ import { EXTERNAL_ACCOUNT_ID_MAX_LENGTH } from 'src/engine/metadata-modules/conn
import { type MessageChannelEntity } from 'src/engine/metadata-modules/message-channel/entities/message-channel.entity';
import { WorkspaceRelatedEntity } from 'src/engine/workspace-manager/types/workspace-related-entity.type';
-export type ConnectedAccountVisibility = 'user' | 'workspace';
+export type ConnectedAccountScope = 'USER' | 'WORKSPACE';
@Entity({ name: 'connectedAccount', schema: 'core' })
@Index('IDX_CONNECTED_ACCOUNT_CONNECTION_PROVIDER_ID', ['connectionProviderId'])
@@ -130,8 +130,22 @@ export class ConnectedAccountEntity extends WorkspaceRelatedEntity {
@Column({ type: 'varchar', nullable: true })
name: string | null;
- @Column({ type: 'varchar', nullable: false, default: 'user' })
- visibility: ConnectedAccountVisibility;
+ @Column({ type: 'varchar', nullable: false, default: 'USER' })
+ @WasIntroducedInUpgrade({
+ upgradeCommandName:
+ '2.49.0_AddConnectedAccountScopeFastInstanceCommand_1792170228100',
+ })
+ scope: ConnectedAccountScope;
+
+ // TODO: drop with the sync trigger next release; only previous-release servers use it
+ @Column({
+ type: 'varchar',
+ nullable: false,
+ select: false,
+ insert: false,
+ update: false,
+ })
+ visibility: 'user' | 'workspace';
@OneToMany(
'MessageChannelEntity',
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/enums/connected-account-scope.enum.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/enums/connected-account-scope.enum.ts
new file mode 100644
index 00000000000..acbf93e3f36
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/enums/connected-account-scope.enum.ts
@@ -0,0 +1,10 @@
+import { registerEnumType } from '@nestjs/graphql';
+
+import { type ConnectedAccountScope } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
+
+export const ConnectedAccountScopeEnum = {
+ USER: 'USER',
+ WORKSPACE: 'WORKSPACE',
+} as const satisfies { [P in ConnectedAccountScope]: P };
+
+registerEnumType(ConnectedAccountScopeEnum, { name: 'ConnectedAccountScope' });
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/types/connected-account-without-credentials.type.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/types/connected-account-without-credentials.type.ts
index 19bbce43ac0..e91d50ed238 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/types/connected-account-without-credentials.type.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/types/connected-account-without-credentials.type.ts
@@ -7,6 +7,6 @@ export type ConnectedAccountWithoutCredentials = Pick<
| 'handleAliases'
| 'provider'
| 'name'
- | 'visibility'
+ | 'scope'
| 'userWorkspaceId'
>;
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/__tests__/build-connected-account-usable-by-caller-where.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/__tests__/build-connected-account-usable-by-caller-where.util.spec.ts
index 92c68d33c41..7b26a26071b 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/__tests__/build-connected-account-usable-by-caller-where.util.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/__tests__/build-connected-account-usable-by-caller-where.util.spec.ts
@@ -11,7 +11,7 @@ describe('buildConnectedAccountUsableByCallerWhere', () => {
userWorkspaceId: USER_WORKSPACE_ID,
}),
).toEqual([
- { workspaceId: WORKSPACE_ID, visibility: 'workspace' },
+ { workspaceId: WORKSPACE_ID, scope: 'WORKSPACE' },
{ workspaceId: WORKSPACE_ID, userWorkspaceId: USER_WORKSPACE_ID },
]);
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/__tests__/is-connected-account-usable-by-caller.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/__tests__/is-connected-account-usable-by-caller.util.spec.ts
index 63a0e8ecacb..9f85db3eded 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/__tests__/is-connected-account-usable-by-caller.util.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/__tests__/is-connected-account-usable-by-caller.util.spec.ts
@@ -9,7 +9,7 @@ describe('isConnectedAccountUsableByCaller', () => {
isConnectedAccountUsableByCaller({
connectedAccount: {
userWorkspaceId: USER_WORKSPACE_ID,
- visibility: 'user',
+ scope: 'USER',
},
userWorkspaceId: USER_WORKSPACE_ID,
}),
@@ -21,7 +21,7 @@ describe('isConnectedAccountUsableByCaller', () => {
isConnectedAccountUsableByCaller({
connectedAccount: {
userWorkspaceId: OTHER_USER_WORKSPACE_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
},
userWorkspaceId: USER_WORKSPACE_ID,
}),
@@ -33,7 +33,7 @@ describe('isConnectedAccountUsableByCaller', () => {
isConnectedAccountUsableByCaller({
connectedAccount: {
userWorkspaceId: OTHER_USER_WORKSPACE_ID,
- visibility: 'user',
+ scope: 'USER',
},
userWorkspaceId: USER_WORKSPACE_ID,
}),
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-connected-account-usable-by-caller-where.util.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-connected-account-usable-by-caller-where.util.ts
index 06c411aba3e..a4186573b90 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-connected-account-usable-by-caller-where.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-connected-account-usable-by-caller-where.util.ts
@@ -10,6 +10,6 @@ export const buildConnectedAccountUsableByCallerWhere = ({
baseWhere: FindOptionsWhere<ConnectedAccountEntity>;
userWorkspaceId: string;
}): FindOptionsWhere<ConnectedAccountEntity>[] => [
- { ...baseWhere, visibility: 'workspace' },
+ { ...baseWhere, scope: 'WORKSPACE' },
{ ...baseWhere, userWorkspaceId },
];
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-public-connected-account.util.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-public-connected-account.util.ts
index 9cda958ad28..bd32106a392 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-public-connected-account.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/build-public-connected-account.util.ts
@@ -1,3 +1,5 @@
+import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application';
+
import { buildPublicConnectionParameters } from 'src/engine/core-modules/imap-smtp-caldav-connection/utils/build-public-connection-parameters.util';
import { type ConnectedAccountPublicDTO } from 'src/engine/metadata-modules/connected-account/dtos/connected-account-public.dto';
import { type ConnectedAccountEntity } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
@@ -17,6 +19,7 @@ export function buildPublicConnectedAccount(
return {
...account,
+ visibility: LEGACY_CONNECTION_VISIBILITY_BY_SCOPE[account.scope],
connectionParameters: buildPublicConnectionParameters(
account.connectionParameters,
),
diff --git a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/is-connected-account-usable-by-caller.util.ts b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/is-connected-account-usable-by-caller.util.ts
index dd22510c392..4b45eaa40c6 100644
--- a/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/is-connected-account-usable-by-caller.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/connected-account/utils/is-connected-account-usable-by-caller.util.ts
@@ -4,11 +4,8 @@ export const isConnectedAccountUsableByCaller = ({
connectedAccount,
userWorkspaceId,
}: {
- connectedAccount: Pick<
- ConnectedAccountEntity,
- 'visibility' | 'userWorkspaceId'
- >;
+ connectedAccount: Pick<ConnectedAccountEntity, 'scope' | 'userWorkspaceId'>;
userWorkspaceId: string;
}): boolean =>
- connectedAccount.visibility === 'workspace' ||
+ connectedAccount.scope === 'WORKSPACE' ||
connectedAccount.userWorkspaceId === userWorkspaceId;
diff --git a/packages/twenty-server/src/engine/metadata-modules/message-channel/message-channel-metadata.service.ts b/packages/twenty-server/src/engine/metadata-modules/message-channel/message-channel-metadata.service.ts
index dc2636d1919..15d9dc644e5 100644
--- a/packages/twenty-server/src/engine/metadata-modules/message-channel/message-channel-metadata.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/message-channel/message-channel-metadata.service.ts
@@ -331,7 +331,7 @@ export class MessageChannelMetadataService {
userWorkspaceId,
accessToken: null,
refreshToken: null,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
});
const trimmedDisplayName = displayName?.trim();
diff --git a/packages/twenty-server/src/engine/metadata-modules/message-channel/services/application-message-channels.service.ts b/packages/twenty-server/src/engine/metadata-modules/message-channel/services/application-message-channels.service.ts
index 9a53463cbe7..1ddb91f7d88 100644
--- a/packages/twenty-server/src/engine/metadata-modules/message-channel/services/application-message-channels.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/message-channel/services/application-message-channels.service.ts
@@ -306,7 +306,7 @@ export class ApplicationMessageChannelsService {
workspaceId,
provider: ConnectedAccountProvider.APP,
},
- select: { id: true, visibility: true, userWorkspaceId: true },
+ select: { id: true, scope: true, userWorkspaceId: true },
});
return connectedAccounts
diff --git a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-metadata-entities.util.ts b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-metadata-entities.util.ts
index 47e4dc6b83e..4b755fd81fb 100644
--- a/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-metadata-entities.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/dev-seeder/core/utils/seed-metadata-entities.util.ts
@@ -128,7 +128,7 @@ const seedConnectedAccounts = async ({
handle: '[email protected]',
provider: 'google',
userWorkspaceId: ids.userWorkspaceIds.TIM,
- visibility: 'user',
+ scope: 'USER',
archivedAt: null,
workspaceId,
},
@@ -137,7 +137,7 @@ const seedConnectedAccounts = async ({
handle: '[email protected]',
provider: 'google',
userWorkspaceId: ids.userWorkspaceIds.JONY,
- visibility: 'user',
+ scope: 'USER',
archivedAt: null,
workspaceId,
},
@@ -146,7 +146,7 @@ const seedConnectedAccounts = async ({
handle: '[email protected]',
provider: 'google',
userWorkspaceId: ids.userWorkspaceIds.PHIL,
- visibility: 'user',
+ scope: 'USER',
archivedAt: null,
workspaceId,
},
@@ -155,7 +155,7 @@ const seedConnectedAccounts = async ({
handle: '[email protected]',
provider: 'google',
userWorkspaceId: ids.userWorkspaceIds.JANE,
- visibility: 'user',
+ scope: 'USER',
archivedAt: null,
workspaceId,
},
@@ -164,7 +164,7 @@ const seedConnectedAccounts = async ({
handle: '[email protected]',
provider: 'google',
userWorkspaceId: ids.userWorkspaceIds.JANE,
- visibility: 'user',
+ scope: 'USER',
archivedAt: null,
workspaceId,
},
@@ -173,7 +173,7 @@ const seedConnectedAccounts = async ({
handle: '[email protected]',
provider: 'app',
userWorkspaceId: ids.userWorkspaceIds.JONY,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
archivedAt: null,
workspaceId,
},
@@ -182,7 +182,7 @@ const seedConnectedAccounts = async ({
handle: '[email protected]',
provider: 'app',
userWorkspaceId: ids.userWorkspaceIds.TIM,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
archivedAt: new Date().toISOString(),
workspaceId,
},
@@ -191,7 +191,7 @@ const seedConnectedAccounts = async ({
handle: `support@${emailGroupDomains.verified}`,
provider: 'email_group',
userWorkspaceId: ids.userWorkspaceIds.TIM,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
archivedAt: null,
workspaceId,
},
@@ -200,7 +200,7 @@ const seedConnectedAccounts = async ({
handle: `contact@${emailGroupDomains.pending}`,
provider: 'email_group',
userWorkspaceId: ids.userWorkspaceIds.TIM,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
archivedAt: null,
workspaceId,
},
@@ -214,7 +214,7 @@ const seedConnectedAccounts = async ({
'handle',
'provider',
'userWorkspaceId',
- 'visibility',
+ 'scope',
'archivedAt',
'workspaceId',
])
diff --git a/packages/twenty-server/test/integration/email-tool/suites/email-composer-connected-account.integration-spec.ts b/packages/twenty-server/test/integration/email-tool/suites/email-composer-connected-account.integration-spec.ts
index e4c663d9753..11fbe3a2b1e 100644
--- a/packages/twenty-server/test/integration/email-tool/suites/email-composer-connected-account.integration-spec.ts
+++ b/packages/twenty-server/test/integration/email-tool/suites/email-composer-connected-account.integration-spec.ts
@@ -35,29 +35,26 @@ const getFirstWorkspaceConnectedAccountId = async (): Promise<string> => {
const readConnectedAccountState = async (
connectedAccountId: string,
-): Promise<{ visibility: string; archivedAt: string | null }> => {
+): Promise<{ scope: string; archivedAt: string | null }> => {
const [state] = await global.testDataSource.query(
- `SELECT visibility, "archivedAt" FROM core."connectedAccount" WHERE id = $1`,
+ `SELECT scope, "archivedAt" FROM core."connectedAccount" WHERE id = $1`,
[connectedAccountId],
);
return state;
};
-const setVisibility = async (
- connectedAccountId: string,
- visibility: string,
-) => {
+const setScope = async (connectedAccountId: string, scope: string) => {
await global.testDataSource.query(
- `UPDATE core."connectedAccount" SET visibility = $1 WHERE id = $2`,
- [visibility, connectedAccountId],
+ `UPDATE core."connectedAccount" SET scope = $1 WHERE id = $2`,
+ [scope, connectedAccountId],
);
};
const getWorkspaceSharedConnectedAccountIds = async (): Promise<string[]> => {
const rows = await global.testDataSource.query(
`SELECT id FROM core."connectedAccount"
- WHERE "workspaceId" = $1 AND visibility = 'workspace'`,
+ WHERE "workspaceId" = $1 AND scope = 'WORKSPACE'`,
[WORKSPACE_ID],
);
@@ -68,16 +65,16 @@ const insertConnectedAccount = async ({
id,
provider,
userWorkspaceId,
- visibility = 'user',
+ scope = 'USER',
}: {
id: string;
provider: 'app' | 'oidc' | 'saml' | 'email_group';
userWorkspaceId: string;
- visibility?: 'user' | 'workspace';
+ scope?: 'USER' | 'WORKSPACE';
}) => {
await global.testDataSource.query(
`INSERT INTO core."connectedAccount"
- (id, handle, provider, "userWorkspaceId", "workspaceId", visibility, "createdAt", "updatedAt")
+ (id, handle, provider, "userWorkspaceId", "workspaceId", scope, "createdAt", "updatedAt")
VALUES ($1, $2, $3, $4, $5, $6, '1970-01-01T00:00:00Z', now())`,
[
id,
@@ -85,7 +82,7 @@ const insertConnectedAccount = async ({
provider,
userWorkspaceId,
WORKSPACE_ID,
- visibility,
+ scope,
],
);
};
@@ -264,7 +261,7 @@ describe('EmailComposerService connected account resolution (integration)', () =
id: emailGroupConnectedAccountId,
provider: 'email_group',
userWorkspaceId: PHIL_USER_WORKSPACE_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
});
try {
@@ -361,11 +358,11 @@ describe('EmailComposerService connected account resolution (integration)', () =
});
it('falls back to an account shared with the whole workspace', async () => {
- const { visibility } = await readConnectedAccountState(
+ const { scope } = await readConnectedAccountState(
JONY_CONNECTED_ACCOUNT_ID,
);
- await setVisibility(JONY_CONNECTED_ACCOUNT_ID, 'workspace');
+ await setScope(JONY_CONNECTED_ACCOUNT_ID, 'WORKSPACE');
try {
const result = await service.composeEmail({
@@ -382,7 +379,7 @@ describe('EmailComposerService connected account resolution (integration)', () =
JONY_CONNECTED_ACCOUNT_ID,
);
} finally {
- await setVisibility(JONY_CONNECTED_ACCOUNT_ID, visibility);
+ await setScope(JONY_CONNECTED_ACCOUNT_ID, scope);
}
});
@@ -391,7 +388,7 @@ describe('EmailComposerService connected account resolution (integration)', () =
await getWorkspaceSharedConnectedAccountIds();
for (const connectedAccountId of sharedConnectedAccountIds) {
- await setVisibility(connectedAccountId, 'user');
+ await setScope(connectedAccountId, 'USER');
}
try {
@@ -407,7 +404,7 @@ describe('EmailComposerService connected account resolution (integration)', () =
).rejects.toThrow('available for user workspace');
} finally {
for (const connectedAccountId of sharedConnectedAccountIds) {
- await setVisibility(connectedAccountId, 'workspace');
+ await setScope(connectedAccountId, 'WORKSPACE');
}
}
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/connected-account-deletion-runs-on-disconnect-hook.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/connected-account-deletion-runs-on-disconnect-hook.integration-spec.ts
index 4160dbe40ed..2ceaef52998 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/connected-account-deletion-runs-on-disconnect-hook.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/application/connected-account-deletion-runs-on-disconnect-hook.integration-spec.ts
@@ -121,8 +121,8 @@ describe('Connected account deletion runs the on-disconnect hook', () => {
await globalThis.testDataSource.query(
`INSERT INTO core."connectedAccount"
- (id, handle, provider, visibility, "workspaceId", "userWorkspaceId", "applicationId", "connectionProviderId")
- VALUES ($1, $2, $3, 'workspace', $4, $5, $6, $7)`,
+ (id, handle, provider, scope, "workspaceId", "userWorkspaceId", "applicationId", "connectionProviderId")
+ VALUES ($1, $2, $3, 'WORKSPACE', $4, $5, $6, $7)`,
[
connectedAccountId,
diff --git a/packages/twenty-server/test/integration/metadata/suites/connected-account/application-connected-accounts.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/connected-account/application-connected-accounts.integration-spec.ts
index 3a13e9efd1d..dd79f848432 100644
--- a/packages/twenty-server/test/integration/metadata/suites/connected-account/application-connected-accounts.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/connected-account/application-connected-accounts.integration-spec.ts
@@ -35,25 +35,25 @@ describe('applicationConnectedAccounts resolver (e2e)', () => {
const insertAppConnection = async ({
id,
- visibility,
+ scope,
userWorkspaceId,
archivedAt = null,
}: {
id: string;
- visibility: 'user' | 'workspace';
+ scope: 'USER' | 'WORKSPACE';
userWorkspaceId: string;
archivedAt?: Date | null;
}): Promise<void> => {
await globalThis.testDataSource.query(
`INSERT INTO core."connectedAccount"
- (id, handle, provider, visibility, "workspaceId", "userWorkspaceId",
+ (id, handle, provider, scope, "workspaceId", "userWorkspaceId",
"applicationId", "connectionProviderId", "archivedAt")
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)`,
[
id,
ConnectedAccountProvider.APP,
- visibility,
+ scope,
SEED_APPLE_WORKSPACE_ID,
userWorkspaceId,
applicationDbId,
@@ -105,22 +105,22 @@ describe('applicationConnectedAccounts resolver (e2e)', () => {
await insertAppConnection({
id: SHARED_BY_TIM_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.TIM,
});
await insertAppConnection({
id: PRIVATE_OF_JANE_ID,
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JANE,
});
await insertAppConnection({
id: PRIVATE_OF_TIM_ID,
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.TIM,
});
await insertAppConnection({
id: ARCHIVED_SHARED_BY_TIM_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.TIM,
archivedAt: new Date(),
});
@@ -159,6 +159,51 @@ describe('applicationConnectedAccounts resolver (e2e)', () => {
);
});
+ it('returns the scope alongside the deprecated lowercase visibility', async () => {
+ const response = await makeMetadataApiRequest({
+ query: gql`
+ query ApplicationConnectedAccountsScope($applicationId: UUID!) {
+ applicationConnectedAccounts(applicationId: $applicationId) {
+ id
+ scope
+ visibility
+ }
+ }
+ `,
+ variables: { applicationId: applicationDbId },
+ });
+
+ expect(response.body.errors).toBeUndefined();
+ expect(response.body.data.applicationConnectedAccounts).toEqual(
+ expect.arrayContaining([
+ { id: SHARED_BY_TIM_ID, scope: 'WORKSPACE', visibility: 'workspace' },
+ { id: PRIVATE_OF_JANE_ID, scope: 'USER', visibility: 'user' },
+ ]),
+ );
+ });
+
+ it('returns the scope alongside the deprecated lowercase visibility from myConnectedAccounts', async () => {
+ const response = await makeMetadataApiRequest({
+ query: gql`
+ query MyConnectedAccountsScope {
+ myConnectedAccounts {
+ id
+ scope
+ visibility
+ }
+ }
+ `,
+ });
+
+ expect(response.body.errors).toBeUndefined();
+ expect(response.body.data.myConnectedAccounts).toEqual(
+ expect.arrayContaining([
+ { id: SHARED_BY_TIM_ID, scope: 'WORKSPACE', visibility: 'workspace' },
+ { id: PRIVATE_OF_JANE_ID, scope: 'USER', visibility: 'user' },
+ ]),
+ );
+ });
+
it('denies a member without the applications settings permission', async () => {
const response = await makeMetadataApiRequestWithMemberRole({
query: APPLICATION_CONNECTED_ACCOUNTS_QUERY,
diff --git a/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-management-guards.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-management-guards.integration-spec.ts
index d9b0d98e700..cb7e1d40407 100644
--- a/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-management-guards.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-management-guards.integration-spec.ts
@@ -29,23 +29,23 @@ describe('app connection management guards (e2e)', () => {
const insertAppConnection = async ({
id,
- visibility,
+ scope,
userWorkspaceId,
}: {
id: string;
- visibility: 'user' | 'workspace';
+ scope: 'USER' | 'WORKSPACE';
userWorkspaceId: string;
}): Promise<void> => {
await globalThis.testDataSource.query(
`INSERT INTO core."connectedAccount"
- (id, handle, provider, visibility, "workspaceId", "userWorkspaceId",
+ (id, handle, provider, scope, "workspaceId", "userWorkspaceId",
"applicationId", "connectionProviderId")
VALUES ($1, $2, $3, $4, $5, $6, $7, $8)`,
[
id,
ConnectedAccountProvider.APP,
- visibility,
+ scope,
SEED_APPLE_WORKSPACE_ID,
userWorkspaceId,
applicationDbId,
@@ -76,11 +76,11 @@ describe('app connection management guards (e2e)', () => {
const startAuthorizeAndGetErrorMessage = async ({
reconnectingConnectedAccountId,
- visibility,
+ scope,
asMember = false,
}: {
reconnectingConnectedAccountId?: string;
- visibility?: 'user' | 'workspace';
+ scope?: 'USER' | 'WORKSPACE';
asMember?: boolean;
}): Promise<string> => {
const response = await request(`http://localhost:${APP_PORT}`)
@@ -94,7 +94,7 @@ describe('app connection management guards (e2e)', () => {
...(isDefined(reconnectingConnectedAccountId)
? { reconnectingConnectedAccountId }
: {}),
- ...(isDefined(visibility) ? { visibility } : {}),
+ ...(isDefined(scope) ? { scope } : {}),
});
expect(response.status).toBe(302);
@@ -146,17 +146,17 @@ describe('app connection management guards (e2e)', () => {
await insertAppConnection({
id: SHARED_BY_TIM_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.TIM,
});
await insertAppConnection({
id: PRIVATE_OF_TIM_ID,
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.TIM,
});
await insertAppConnection({
id: PRIVATE_OF_JONY_ID,
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JONY,
});
}, 180000);
@@ -203,7 +203,7 @@ describe('app connection management guards (e2e)', () => {
it('refuses a member without the Applications permission to create a workspace-shared connection', async () => {
const errorMessage = await startAuthorizeAndGetErrorMessage({
- visibility: 'workspace',
+ scope: 'WORKSPACE',
asMember: true,
});
@@ -213,7 +213,7 @@ describe('app connection management guards (e2e)', () => {
it('refuses a member without the Applications permission to share their own private connection', async () => {
const errorMessage = await startAuthorizeAndGetErrorMessage({
reconnectingConnectedAccountId: PRIVATE_OF_JONY_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
asMember: true,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-oauth-callback.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-oauth-callback.integration-spec.ts
index 2e9473bb571..ec5a1692335 100644
--- a/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-oauth-callback.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connection-oauth-callback.integration-spec.ts
@@ -23,11 +23,17 @@ import { v4 } from 'uuid';
import { z } from 'zod';
import { type ConnectionProviderEntity } from 'src/engine/core-modules/application/connection-provider/connection-provider.entity';
+import { type LegacyAppOAuthStateJwtPayload } from 'src/engine/core-modules/auth/types/app-oauth-state-jwt-payload.type';
+import { type JwtPayload } from 'src/engine/core-modules/auth/types/jwt-payload.type';
+import { JwtTokenTypeEnum } from 'src/engine/core-modules/auth/types/jwt-token-type.enum';
+import { type JwtWrapperService } from 'src/engine/core-modules/jwt/services/jwt-wrapper.service';
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 } from 'src/engine/metadata-modules/connected-account/entities/connected-account.entity';
import { type ConnectedAccountTokenEncryptionService } from 'src/engine/metadata-modules/connected-account/services/connected-account-token-encryption.service';
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';
+import { USER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/utils/seed-users.util';
const APPLICATION_IDENTIFIER = v4();
const PROVIDER_IDENTIFIER = v4();
@@ -109,7 +115,7 @@ describe('app connection OAuth callback', () => {
providerName: provider.name,
transientToken:
transient.data.generateTransientToken.transientToken.token,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
reconnectingConnectedAccountId,
});
@@ -398,6 +404,33 @@ export const handler = ({ connectedAccountId }) => {
expect(readExecutions(onConnectExecutionsPath)).toEqual([]);
});
+ it('completes the callback for a state signed before visibility was renamed to scope', async () => {
+ const legacyStatePayload: LegacyAppOAuthStateJwtPayload = {
+ sub: provider.id,
+ type: JwtTokenTypeEnum.APP_OAUTH_STATE,
+ workspaceId: SEED_APPLE_WORKSPACE_ID,
+ connectionProviderId: provider.id,
+ userId: USER_DATA_SEED_IDS.JANE,
+ userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JANE,
+ visibility: 'workspace',
+ reconnectingConnectedAccountId: null,
+ redirectLocation: null,
+ codeVerifier: null,
+ };
+ const legacyState = await getAppProviderByClassName<JwtWrapperService>(
+ 'JwtWrapperService',
+ ).signAsyncOrThrow(legacyStatePayload as unknown as JwtPayload, {
+ expiresIn: 60,
+ });
+
+ const redirect = await callback(legacyState, 'team-a:first');
+
+ expect(redirect.searchParams.get('errorMessage')).toBeNull();
+ expect(await readAccounts()).toMatchObject([
+ { scope: 'WORKSPACE', externalAccountId: 'team-a' },
+ ]);
+ });
+
it('rejects tampered state before exchanging a code or executing the app', async () => {
const state = await authorize();
const redirect = await callback(`${state}invalid`, 'team-a:first');
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.ts
index 014d45ad276..4e36d2dd466 100644
--- 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.ts
@@ -22,7 +22,7 @@ import { plaintextStringSchema } from 'src/engine/core-modules/secret-encryption
import { type SecretEncryptionService } from 'src/engine/core-modules/secret-encryption/secret-encryption.service';
import {
type ConnectedAccountEntity,
- type ConnectedAccountVisibility,
+ type ConnectedAccountScope,
} 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';
@@ -114,23 +114,23 @@ describe('app connections outside the provider scope', () => {
const insertConnection = async ({
providerName,
- visibility,
+ scope,
}: {
providerName: string;
- visibility: ConnectedAccountVisibility;
+ scope: ConnectedAccountScope;
}): Promise<string> => {
const id = v4();
await globalThis.testDataSource.query(
`INSERT INTO core."connectedAccount"
- (id, handle, provider, visibility, "workspaceId", "userWorkspaceId",
+ (id, handle, provider, scope, "workspaceId", "userWorkspaceId",
"applicationId", "connectionProviderId")
VALUES ($1, $2, $3, $4, $5, $6, $7, $8)`,
[
id,
`${providerName}@example.com`,
ConnectedAccountProvider.APP,
- visibility,
+ scope,
SEED_APPLE_WORKSPACE_ID,
USER_WORKSPACE_DATA_SEED_IDS.JANE,
applicationId,
@@ -143,11 +143,13 @@ describe('app connections outside the provider scope', () => {
const authorize = async ({
providerName,
- visibility,
+ scope,
+ legacyVisibility,
reconnectingConnectedAccountId,
}: {
providerName: string;
- visibility?: ConnectedAccountVisibility;
+ scope?: ConnectedAccountScope;
+ legacyVisibility?: 'user' | 'workspace';
reconnectingConnectedAccountId?: string;
}): Promise<{ state: string | null; errorMessage: string | null }> => {
const response = await request(`http://localhost:${APP_PORT}`)
@@ -156,7 +158,10 @@ describe('app connections outside the provider scope', () => {
applicationId,
providerName,
transientToken: await generateTransientToken(),
- ...(isDefined(visibility) ? { visibility } : {}),
+ ...(isDefined(scope) ? { scope } : {}),
+ ...(isDefined(legacyVisibility)
+ ? { visibility: legacyVisibility }
+ : {}),
...(isDefined(reconnectingConnectedAccountId)
? { reconnectingConnectedAccountId }
: {}),
@@ -252,32 +257,32 @@ describe('app connections outside the provider scope', () => {
it('refuses a new personal connection on a WORKSPACE provider', async () => {
const { errorMessage } = await authorize({
providerName: 'workspace-provider',
- visibility: 'user',
+ scope: 'USER',
});
- expect(errorMessage).toContain('does not accept user connections');
+ expect(errorMessage).toContain('does not accept USER connections');
});
- it('creates a workspace connection on a WORKSPACE provider when no visibility is given', async () => {
+ it('creates a workspace connection on a WORKSPACE provider when no scope is given', async () => {
const errorMessage = await callback(
await authorizeOrThrow({ providerName: 'workspace-provider' }),
'workspace-code',
);
expect(errorMessage).toBeNull();
- expect(await readAccounts()).toMatchObject([{ visibility: 'workspace' }]);
+ expect(await readAccounts()).toMatchObject([{ scope: 'WORKSPACE' }]);
});
it('refuses a new workspace connection on a USER provider', async () => {
const { errorMessage } = await authorize({
providerName: 'user-provider',
- visibility: 'workspace',
+ scope: 'WORKSPACE',
});
- expect(errorMessage).toContain('does not accept workspace connections');
+ expect(errorMessage).toContain('does not accept WORKSPACE connections');
});
- it('creates a personal connection on a USER provider when no visibility is given', async () => {
+ it('creates a personal connection on a USER provider when no scope is given', async () => {
const errorMessage = await callback(
await authorizeOrThrow({ providerName: 'user-provider' }),
'user-code',
@@ -286,16 +291,16 @@ describe('app connections outside the provider scope', () => {
expect(errorMessage).toBeNull();
expect(await readAccounts()).toMatchObject([
{
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JANE,
},
]);
});
- it('reconnects an existing connection whose visibility no longer matches the scope', async () => {
+ it('reconnects an existing connection whose scope no longer matches the provider scope', async () => {
const connectedAccountId = await insertConnection({
providerName: 'user-provider',
- visibility: 'workspace',
+ scope: 'WORKSPACE',
});
const errorMessage = await callback(
@@ -308,7 +313,7 @@ describe('app connections outside the provider scope', () => {
expect(errorMessage).toBeNull();
expect(await readAccounts()).toMatchObject([
- { id: connectedAccountId, visibility: 'workspace' },
+ { id: connectedAccountId, scope: 'WORKSPACE' },
]);
expect(tokenExchanges).toEqual(['reconnect-code']);
});
@@ -316,7 +321,7 @@ describe('app connections outside the provider scope', () => {
it('reconnects an existing personal connection on a WORKSPACE provider', async () => {
const connectedAccountId = await insertConnection({
providerName: 'workspace-provider',
- visibility: 'user',
+ scope: 'USER',
});
const errorMessage = await callback(
@@ -329,7 +334,7 @@ describe('app connections outside the provider scope', () => {
expect(errorMessage).toBeNull();
expect(await readAccounts()).toMatchObject([
- { id: connectedAccountId, visibility: 'user' },
+ { id: connectedAccountId, scope: 'USER' },
]);
expect(tokenExchanges).toEqual(['personal-reconnect-code']);
});
@@ -337,21 +342,57 @@ describe('app connections outside the provider scope', () => {
it('refuses to share a personal connection of a USER provider with the workspace', async () => {
const connectedAccountId = await insertConnection({
providerName: 'user-provider',
- visibility: 'user',
+ scope: 'USER',
});
const { errorMessage } = await authorize({
providerName: 'user-provider',
- visibility: 'workspace',
+ scope: 'WORKSPACE',
reconnectingConnectedAccountId: connectedAccountId,
});
- expect(errorMessage).toContain('does not accept workspace connections');
+ expect(errorMessage).toContain('does not accept WORKSPACE connections');
expect(await readAccounts()).toMatchObject([
- { id: connectedAccountId, visibility: 'user' },
+ { id: connectedAccountId, scope: 'USER' },
]);
});
+ it.each([
+ {
+ providerName: 'workspace-provider',
+ legacyVisibility: 'user',
+ scope: 'USER',
+ },
+ {
+ providerName: 'user-provider',
+ legacyVisibility: 'workspace',
+ scope: 'WORKSPACE',
+ },
+ ] as const)(
+ 'maps the legacy visibility=$legacyVisibility param to the $scope scope',
+ async ({ providerName, legacyVisibility, scope }) => {
+ const { errorMessage } = await authorize({
+ providerName,
+ legacyVisibility,
+ });
+
+ expect(errorMessage).toContain(`does not accept ${scope} connections`);
+ },
+ );
+
+ it('creates a connection from the legacy visibility param', async () => {
+ const errorMessage = await callback(
+ await authorizeOrThrow({
+ providerName: 'workspace-provider',
+ legacyVisibility: 'workspace',
+ }),
+ 'legacy-code',
+ );
+
+ expect(errorMessage).toBeNull();
+ expect(await readAccounts()).toMatchObject([{ scope: 'WORKSPACE' }]);
+ });
+
it('refuses at the callback when the app changed the provider scope after authorize', async () => {
const state = await authorizeOrThrow({
providerName: 'workspace-provider',
@@ -362,7 +403,7 @@ describe('app connections outside the provider scope', () => {
try {
const errorMessage = await callback(state, 'late-code');
- expect(errorMessage).toContain('does not accept workspace connections');
+ expect(errorMessage).toContain('does not accept WORKSPACE connections');
expect(tokenExchanges).toEqual([]);
expect(await readAccounts()).toEqual([]);
} finally {
diff --git a/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connections.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connections.integration-spec.ts
index 59e4ff4084a..56b22b6c165 100644
--- a/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connections.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/connection-provider/app-connections.integration-spec.ts
@@ -18,6 +18,7 @@ const APP_CONNECTION_FIELDS = gql`
id
providerName
handle
+ scope
visibility
userWorkspaceId
accessToken
@@ -26,8 +27,8 @@ const APP_CONNECTION_FIELDS = gql`
const LIST_APP_CONNECTIONS_QUERY = gql`
${APP_CONNECTION_FIELDS}
- query AppConnections {
- appConnections {
+ query AppConnections($filter: ListAppConnectionsInput) {
+ appConnections(filter: $filter) {
...AppConnectionFields
}
}
@@ -42,6 +43,30 @@ const GET_APP_CONNECTION_QUERY = gql`
}
`;
+const SCOPE_FILTER_CASES = [
+ {
+ title: 'the matching scope',
+ filter: { scope: 'WORKSPACE' },
+ isListed: true,
+ },
+ { title: 'another scope', filter: { scope: 'USER' }, isListed: false },
+ {
+ title: 'the matching deprecated visibility',
+ filter: { visibility: 'workspace' },
+ isListed: true,
+ },
+ {
+ title: 'another deprecated visibility',
+ filter: { visibility: 'user' },
+ isListed: false,
+ },
+ {
+ title: 'a scope that wins over the deprecated visibility',
+ filter: { scope: 'USER', visibility: 'workspace' },
+ isListed: false,
+ },
+];
+
describe('app connections API (e2e)', () => {
let application: ApplicationWithAppConnection;
@@ -49,6 +74,7 @@ describe('app connections API (e2e)', () => {
id: application.connectedAccountId,
providerName: application.connectionProviderName,
handle: application.connectedAccountHandle,
+ scope: 'WORKSPACE',
visibility: 'workspace',
userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JANE,
accessToken: application.connectedAccountAccessToken,
@@ -76,6 +102,21 @@ describe('app connections API (e2e)', () => {
expect(response.body.data.appConnections).toEqual([expectedConnection()]);
});
+ it.each(SCOPE_FILTER_CASES)(
+ 'filters the connections on $title',
+ async ({ filter, isListed }) => {
+ const response = await makeMetadataApiRequest(
+ { query: LIST_APP_CONNECTIONS_QUERY, variables: { filter } },
+ application.applicationToken,
+ );
+
+ expect(response.body.errors).toBeUndefined();
+ expect(response.body.data.appConnections).toEqual(
+ isListed ? [expectedConnection()] : [],
+ );
+ },
+ );
+
it('returns one connection of the calling application', async () => {
const response = await makeMetadataApiRequest(
{
@@ -101,6 +142,26 @@ describe('app connections API (e2e)', () => {
]);
});
+ it.each(SCOPE_FILTER_CASES)(
+ 'filters the connections on $title over the deprecated REST endpoint',
+ async ({ filter, isListed }) => {
+ const response = await makeApplicationOnlyRestRequest(
+ {
+ ...APPLICATION_ONLY_REST_REQUEST_FACTORIES[
+ 'POST /apps/connections/list'
+ ](),
+ body: filter,
+ },
+ application.applicationToken,
+ );
+
+ expect(response.status).toBe(200);
+ expect(response.body).toEqual(
+ isListed ? [expect.objectContaining(expectedConnection())] : [],
+ );
+ },
+ );
+
it('returns one connection of the calling application over the deprecated REST endpoint', async () => {
const response = await makeApplicationOnlyRestRequest(
APPLICATION_ONLY_REST_REQUEST_FACTORIES['POST /apps/connections/get'](
diff --git a/packages/twenty-server/test/integration/metadata/suites/connection-provider/report-app-connection-auth-failure.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/connection-provider/report-app-connection-auth-failure.integration-spec.ts
index 92e9795b4b5..8745268f5cc 100644
--- a/packages/twenty-server/test/integration/metadata/suites/connection-provider/report-app-connection-auth-failure.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/connection-provider/report-app-connection-auth-failure.integration-spec.ts
@@ -92,27 +92,27 @@ describe('reportAppConnectionAuthFailure resolver (e2e)', () => {
id,
applicationId,
connectionProviderId,
- visibility,
+ scope,
userWorkspaceId,
provider = ConnectedAccountProvider.APP,
}: {
id: string;
applicationId: string;
connectionProviderId: string;
- visibility: 'user' | 'workspace';
+ scope: 'USER' | 'WORKSPACE';
userWorkspaceId: string;
provider?: ConnectedAccountProvider;
}): Promise<void> => {
await globalThis.testDataSource.query(
`INSERT INTO core."connectedAccount"
- (id, handle, provider, visibility, "workspaceId", "userWorkspaceId",
+ (id, handle, provider, scope, "workspaceId", "userWorkspaceId",
"applicationId", "connectionProviderId")
VALUES ($1, $2, $3, $4, $5, $6, $7, $8)`,
[
id,
provider,
- visibility,
+ scope,
SEED_APPLE_WORKSPACE_ID,
userWorkspaceId,
applicationId,
@@ -221,7 +221,7 @@ describe('reportAppConnectionAuthFailure resolver (e2e)', () => {
id: connectedAccountId,
applicationId: owningApplicationDbId,
connectionProviderId: owningProviderDbId,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
userWorkspaceId: adminUserWorkspaceId,
});
@@ -249,7 +249,7 @@ describe('reportAppConnectionAuthFailure resolver (e2e)', () => {
id: connectedAccountId,
applicationId: owningApplicationDbId,
connectionProviderId: owningProviderDbId,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
userWorkspaceId: adminUserWorkspaceId,
});
@@ -271,7 +271,7 @@ describe('reportAppConnectionAuthFailure resolver (e2e)', () => {
id: connectedAccountId,
applicationId: otherApplicationDbId,
connectionProviderId: otherProviderDbId,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
userWorkspaceId: adminUserWorkspaceId,
});
@@ -287,14 +287,14 @@ describe('reportAppConnectionAuthFailure resolver (e2e)', () => {
});
});
- it("refuses another user's user-visibility connection", async () => {
+ it("refuses another user's USER-scoped connection", async () => {
const connectedAccountId = uuidv4();
await insertAppConnection({
id: connectedAccountId,
applicationId: owningApplicationDbId,
connectionProviderId: owningProviderDbId,
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: uuidv4(),
});
@@ -317,7 +317,7 @@ describe('reportAppConnectionAuthFailure resolver (e2e)', () => {
id: connectedAccountId,
applicationId: owningApplicationDbId,
connectionProviderId: owningProviderDbId,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
userWorkspaceId: adminUserWorkspaceId,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/connection-provider/utils/setup-application-with-app-connection.util.ts b/packages/twenty-server/test/integration/metadata/suites/connection-provider/utils/setup-application-with-app-connection.util.ts
index 4723ab12e6e..b91c0435546 100644
--- a/packages/twenty-server/test/integration/metadata/suites/connection-provider/utils/setup-application-with-app-connection.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/connection-provider/utils/setup-application-with-app-connection.util.ts
@@ -106,9 +106,9 @@ export const setupApplicationWithAppConnection = async ({
// Without a refresh token, an APP connection's access token is served as is.
await globalThis.testDataSource.query(
`INSERT INTO core."connectedAccount"
- (id, handle, provider, visibility, "workspaceId", "userWorkspaceId",
+ (id, handle, provider, scope, "workspaceId", "userWorkspaceId",
"applicationId", "connectionProviderId", "accessToken")
- VALUES ($1, $2, $3, 'workspace', $4, $5, $6, $7, $8)`,
+ VALUES ($1, $2, $3, 'WORKSPACE', $4, $5, $6, $7, $8)`,
[
connectedAccountId,
connectedAccountHandle,
diff --git a/packages/twenty-server/test/integration/metadata/suites/message-channel/app-message-channels.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/message-channel/app-message-channels.integration-spec.ts
index 6c0e8be3010..fee3c6e684f 100644
--- a/packages/twenty-server/test/integration/metadata/suites/message-channel/app-message-channels.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/message-channel/app-message-channels.integration-spec.ts
@@ -197,25 +197,25 @@ describe('app message channels API (e2e)', () => {
id,
applicationId,
connectionProviderId,
- visibility,
+ scope,
userWorkspaceId,
}: {
id: string;
applicationId: string;
connectionProviderId: string;
- visibility: 'user' | 'workspace';
+ scope: 'USER' | 'WORKSPACE';
userWorkspaceId: string;
}): Promise<void> => {
await globalThis.testDataSource.query(
`INSERT INTO core."connectedAccount"
- (id, handle, provider, visibility, "workspaceId", "userWorkspaceId",
+ (id, handle, provider, scope, "workspaceId", "userWorkspaceId",
"applicationId", "connectionProviderId")
VALUES ($1, $2, $3, $4, $5, $6, $7, $8)`,
[
id,
CHANNEL_HANDLE,
ConnectedAccountProvider.APP,
- visibility,
+ scope,
SEED_APPLE_WORKSPACE_ID,
userWorkspaceId,
applicationId,
@@ -371,7 +371,7 @@ describe('app message channels API (e2e)', () => {
id: ownConnectionId,
applicationId: owningApplicationDbId,
connectionProviderId: owningProviderDbId,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
userWorkspaceId: adminUserWorkspaceId,
});
@@ -379,7 +379,7 @@ describe('app message channels API (e2e)', () => {
id: otherAppConnectionId,
applicationId: otherApplicationDbId,
connectionProviderId: otherProviderDbId,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
userWorkspaceId: adminUserWorkspaceId,
});
@@ -387,7 +387,7 @@ describe('app message channels API (e2e)', () => {
id: foreignMemberConnectionId,
applicationId: owningApplicationDbId,
connectionProviderId: owningProviderDbId,
- visibility: 'user',
+ scope: 'USER',
userWorkspaceId: uuidv4(),
});
}, 180000);
diff --git a/packages/twenty-server/test/integration/upgrade/suites/2-15-instance-command-slow-1781461753981-backfill-connection-security.integration-spec.ts b/packages/twenty-server/test/integration/upgrade/suites/2-15-instance-command-slow-1781461753981-backfill-connection-security.integration-spec.ts
index 2e748e7c464..2cc43a8ae4a 100644
--- a/packages/twenty-server/test/integration/upgrade/suites/2-15-instance-command-slow-1781461753981-backfill-connection-security.integration-spec.ts
+++ b/packages/twenty-server/test/integration/upgrade/suites/2-15-instance-command-slow-1781461753981-backfill-connection-security.integration-spec.ts
@@ -25,8 +25,8 @@ describe('BackfillConnectionSecuritySlowInstanceCommand (integration)', () => {
): Promise<string> => {
const [row] = await dataSource.query(
`INSERT INTO "core"."connectedAccount"
- ("handle", "provider", "userWorkspaceId", "workspaceId", "visibility", "connectionParameters")
- VALUES ($1, 'imap_smtp_caldav', $2, $3, 'user', $4)
+ ("handle", "provider", "userWorkspaceId", "workspaceId", "scope", "connectionParameters")
+ VALUES ($1, 'imap_smtp_caldav', $2, $3, 'USER', $4)
RETURNING id`,
[
`${TEST_ROW_HANDLE_PREFIX}${seededRowIds.length}`,
diff --git a/packages/twenty-server/test/integration/upgrade/suites/2-49-instance-command-fast-1792170228100-add-connected-account-scope.integration-spec.ts b/packages/twenty-server/test/integration/upgrade/suites/2-49-instance-command-fast-1792170228100-add-connected-account-scope.integration-spec.ts
new file mode 100644
index 00000000000..686b7f10c52
--- /dev/null
+++ b/packages/twenty-server/test/integration/upgrade/suites/2-49-instance-command-fast-1792170228100-add-connected-account-scope.integration-spec.ts
@@ -0,0 +1,144 @@
+import { ConnectedAccountProvider } from 'twenty-shared/types';
+import { type QueryRunner } from 'typeorm';
+import { v4 } from 'uuid';
+
+import { AddConnectedAccountScopeFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-49/2-49-instance-command-fast-1792170228100-add-connected-account-scope';
+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';
+
+jest.useRealTimers();
+
+type ScopeColumns = { scope?: string | null; visibility?: string };
+
+describe('2-49 instance command 1792170228100 - add connected account scope (integration)', () => {
+ const addScopeCommand = new AddConnectedAccountScopeFastInstanceCommand();
+ let queryRunner: QueryRunner;
+
+ const restorePreUpgradeSchema = async () => {
+ await addScopeCommand.down(queryRunner);
+ };
+
+ const insertConnectedAccount = async (
+ columns: ScopeColumns,
+ ): Promise<string> => {
+ const id = v4();
+ const columnNames = Object.keys(columns);
+
+ await queryRunner.query(
+ `INSERT INTO "core"."connectedAccount"
+ ("id", "handle", "provider", "userWorkspaceId", "workspaceId"${columnNames.map((name) => `, "${name}"`).join('')})
+ VALUES ($1, $2, $3, $4, $5${columnNames.map((_, index) => `, $${index + 6}`).join('')})`,
+ [
+ id,
+ `${id}@connected-account-scope.test`,
+ ConnectedAccountProvider.GOOGLE,
+ USER_WORKSPACE_DATA_SEED_IDS.JANE,
+ SEED_APPLE_WORKSPACE_ID,
+ ...Object.values(columns),
+ ],
+ );
+
+ return id;
+ };
+
+ const findScopeColumns = async (id: string): Promise<ScopeColumns> => {
+ const [row] = await queryRunner.query(
+ `SELECT "scope", "visibility" FROM "core"."connectedAccount" WHERE "id" = $1`,
+ [id],
+ );
+
+ return row;
+ };
+
+ beforeEach(async () => {
+ queryRunner = globalThis.testDataSource.createQueryRunner();
+ await queryRunner.connect();
+ await queryRunner.startTransaction();
+ });
+
+ afterEach(async () => {
+ await queryRunner.rollbackTransaction();
+ await queryRunner.release();
+ });
+
+ it('mirrors writes from either release into the other column', async () => {
+ await restorePreUpgradeSchema();
+ await addScopeCommand.up(queryRunner);
+
+ const legacyWriteId = await insertConnectedAccount({
+ visibility: 'workspace',
+ });
+ const scopeWriteId = await insertConnectedAccount({ scope: 'WORKSPACE' });
+ const defaultWriteId = await insertConnectedAccount({});
+
+ expect(await findScopeColumns(legacyWriteId)).toEqual({
+ scope: 'WORKSPACE',
+ visibility: 'workspace',
+ });
+ expect(await findScopeColumns(scopeWriteId)).toEqual({
+ scope: 'WORKSPACE',
+ visibility: 'workspace',
+ });
+ expect(await findScopeColumns(defaultWriteId)).toEqual({
+ scope: 'USER',
+ visibility: 'user',
+ });
+
+ await queryRunner.query(
+ `UPDATE "core"."connectedAccount" SET "visibility" = 'user' WHERE "id" = $1`,
+ [legacyWriteId],
+ );
+ await queryRunner.query(
+ `UPDATE "core"."connectedAccount" SET "scope" = 'USER' WHERE "id" = $1`,
+ [scopeWriteId],
+ );
+
+ expect(await findScopeColumns(legacyWriteId)).toEqual({
+ scope: 'USER',
+ visibility: 'user',
+ });
+ expect(await findScopeColumns(scopeWriteId)).toEqual({
+ scope: 'USER',
+ visibility: 'user',
+ });
+ });
+
+ it('copies the visibility of connections created before the upgrade into scope', async () => {
+ await restorePreUpgradeSchema();
+
+ const userAccountId = await insertConnectedAccount({ visibility: 'user' });
+ const workspaceAccountId = await insertConnectedAccount({
+ visibility: 'workspace',
+ });
+
+ await addScopeCommand.up(queryRunner);
+
+ expect(await findScopeColumns(userAccountId)).toEqual({
+ scope: 'USER',
+ visibility: 'user',
+ });
+ expect(await findScopeColumns(workspaceAccountId)).toEqual({
+ scope: 'WORKSPACE',
+ visibility: 'workspace',
+ });
+ });
+
+ it('restores the previous schema on down', async () => {
+ await restorePreUpgradeSchema();
+
+ const columns = await queryRunner.query(
+ `SELECT column_name AS "columnName", column_default AS "columnDefault"
+ FROM information_schema.columns
+ WHERE table_schema = 'core' AND table_name = 'connectedAccount'
+ AND column_name IN ('scope', 'visibility')`,
+ );
+ const syncTriggers = await queryRunner.query(
+ `SELECT 1 FROM pg_trigger WHERE tgname = 'syncConnectedAccountScopeAndVisibility'`,
+ );
+
+ expect(columns).toEqual([
+ { columnName: 'visibility', columnDefault: "'user'::character varying" },
+ ]);
+ expect(syncTriggers).toEqual([]);
+ });
+});
diff --git a/packages/twenty-server/test/integration/workflow-actions/caller-connected-account.integration-spec.ts b/packages/twenty-server/test/integration/workflow-actions/caller-connected-account.integration-spec.ts
index bdf1cb9ca91..bd315fc7385 100644
--- a/packages/twenty-server/test/integration/workflow-actions/caller-connected-account.integration-spec.ts
+++ b/packages/twenty-server/test/integration/workflow-actions/caller-connected-account.integration-spec.ts
@@ -12,7 +12,7 @@ import { getCoreRepository } from 'test/integration/utils/get-core-repository.ut
import {
ConnectedAccountEntity,
- type ConnectedAccountVisibility,
+ type ConnectedAccountScope,
} 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';
@@ -34,15 +34,15 @@ describe('Email workflow actions with no sender configured (integration)', () =>
const setAccountOwnership = async ({
connectedAccountId,
userWorkspaceId,
- visibility,
+ scope,
}: {
connectedAccountId: string;
userWorkspaceId: string;
- visibility: ConnectedAccountVisibility;
+ scope: ConnectedAccountScope;
}) =>
connectedAccounts().update(
{ id: connectedAccountId },
- { userWorkspaceId, visibility },
+ { userWorkspaceId, scope },
);
let oldestAccount: Awaited<ReturnType<typeof connectMessagingAccount>>;
@@ -80,12 +80,12 @@ describe('Email workflow actions with no sender configured (integration)', () =>
await setAccountOwnership({
connectedAccountId: oldestAccount.connectedAccountId,
userWorkspaceId: OTHER_MEMBER_USER_WORKSPACE_ID,
- visibility: 'user',
+ scope: 'USER',
});
await setAccountOwnership({
connectedAccountId: callerAccount.connectedAccountId,
userWorkspaceId: CALLER_USER_WORKSPACE_ID,
- visibility: 'user',
+ scope: 'USER',
});
});
@@ -93,7 +93,7 @@ describe('Email workflow actions with no sender configured (integration)', () =>
await setAccountOwnership({
connectedAccountId: oldestAccount.connectedAccountId,
userWorkspaceId: CALLER_USER_WORKSPACE_ID,
- visibility: 'user',
+ scope: 'USER',
}).catch(() => undefined);
await callerAccount?.cleanup().catch(() => undefined);
@@ -178,16 +178,16 @@ describe('Email workflow actions with no sender configured (integration)', () =>
});
}, 60000);
- it('falls back to a workspace visible account when the run caller owns none', async () => {
+ it('falls back to a WORKSPACE-scoped account when the run caller owns none', async () => {
await setAccountOwnership({
connectedAccountId: callerAccount.connectedAccountId,
userWorkspaceId: THIRD_MEMBER_USER_WORKSPACE_ID,
- visibility: 'user',
+ scope: 'USER',
});
await setAccountOwnership({
connectedAccountId: oldestAccount.connectedAccountId,
userWorkspaceId: OTHER_MEMBER_USER_WORKSPACE_ID,
- visibility: 'workspace',
+ scope: 'WORKSPACE',
});
const subject = `Workspace visible fallback ${randomUUID()}`;
@@ -219,7 +219,7 @@ describe('Email workflow actions with no sender configured (integration)', () =>
await setAccountOwnership({
connectedAccountId: callerAccount.connectedAccountId,
userWorkspaceId: THIRD_MEMBER_USER_WORKSPACE_ID,
- visibility: 'user',
+ scope: 'USER',
});
const sentMessageCount = google.sentMessages.length;
diff --git a/packages/twenty-shared/src/application/appConnectionType.ts b/packages/twenty-shared/src/application/appConnectionType.ts
index 811e83f7f21..24bae516751 100644
--- a/packages/twenty-shared/src/application/appConnectionType.ts
+++ b/packages/twenty-shared/src/application/appConnectionType.ts
@@ -20,16 +20,10 @@ export type AppConnection = {
handle: string;
// Upstream account id from identifyAccountLogicFunction; not unique, apps dedupe on it themselves.
externalAccountId: string | null;
- // Connection-row visibility:
- // 'user' = visible only to the user who created it.
- // 'workspace' = visible to every user in the workspace.
- // Named `visibility` (not `scope`) to disambiguate from the `scopes`
- // array below, which is the unrelated set of OAuth permissions granted
- // by the upstream provider.
+ scope: 'USER' | 'WORKSPACE';
+ /** @deprecated Use `scope` instead. */
visibility: 'user' | 'workspace';
- // The userWorkspace that originally created the credential (also the owner
- // for `visibility: 'user'` credentials). Match against `event.userWorkspaceId`
- // to resolve the request user's connection.
+ // Match against `event.userWorkspaceId` to find the request user's connection
userWorkspaceId: string;
// The workspace member who created the credential. null when the creating
// user is no longer a member of the workspace.
diff --git a/packages/twenty-shared/src/application/constants/ConnectionScopeByLegacyVisibility.ts b/packages/twenty-shared/src/application/constants/ConnectionScopeByLegacyVisibility.ts
new file mode 100644
index 00000000000..95cf64c91dd
--- /dev/null
+++ b/packages/twenty-shared/src/application/constants/ConnectionScopeByLegacyVisibility.ts
@@ -0,0 +1,9 @@
+import { type AppConnection } from '@/application/appConnectionType';
+
+export const CONNECTION_SCOPE_BY_LEGACY_VISIBILITY = {
+ user: 'USER',
+ workspace: 'WORKSPACE',
+} as const satisfies Record<
+ AppConnection['visibility'],
+ AppConnection['scope']
+>;
diff --git a/packages/twenty-shared/src/application/constants/LegacyConnectionVisibilityByScope.ts b/packages/twenty-shared/src/application/constants/LegacyConnectionVisibilityByScope.ts
new file mode 100644
index 00000000000..e17ea83aa4f
--- /dev/null
+++ b/packages/twenty-shared/src/application/constants/LegacyConnectionVisibilityByScope.ts
@@ -0,0 +1,9 @@
+import { type AppConnection } from '@/application/appConnectionType';
+
+export const LEGACY_CONNECTION_VISIBILITY_BY_SCOPE = {
+ USER: 'user',
+ WORKSPACE: 'workspace',
+} as const satisfies Record<
+ AppConnection['scope'],
+ AppConnection['visibility']
+>;
diff --git a/packages/twenty-shared/src/application/index.ts b/packages/twenty-shared/src/application/index.ts
index f1556940469..06c552bbe7b 100644
--- a/packages/twenty-shared/src/application/index.ts
+++ b/packages/twenty-shared/src/application/index.ts
@@ -87,6 +87,7 @@ export { APPLICATION_FILE_UPLOAD_BATCH_SIZE } from './constants/ApplicationFileU
export { APPLICATION_WORKFLOW_UNAVAILABLE_STEP_TYPES } from './constants/ApplicationWorkflowUnavailableStepTypes';
export { ASSETS_DIR } from './constants/AssetDirectory';
export { CONNECTION_PROVIDER_SCOPES } from './constants/ConnectionProviderScopes';
+export { CONNECTION_SCOPE_BY_LEGACY_VISIBILITY } from './constants/ConnectionScopeByLegacyVisibility';
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';
@@ -98,6 +99,7 @@ export { FRONT_COMPONENT_SHARED_DEPENDENCIES_BUILT_PATH } from './constants/Fron
export { FRONT_COMPONENT_SHARED_DEPENDENCIES_IMPORT_SPECIFIER } from './constants/FrontComponentSharedDependenciesImportSpecifier';
export { FRONT_COMPONENT_WIDGET_PAGE_LAYOUT_TYPES } from './constants/FrontComponentWidgetPageLayoutTypes';
export { GENERATED_DIR } from './constants/GeneratedDirectory';
+export { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from './constants/LegacyConnectionVisibilityByScope';
export { MINIMUM_UNIVERSAL_IDENTIFIER_UUID_VERSION } from './constants/MinimumUniversalIdentifierUuidVersion';
export { NODE_ESM_CJS_BANNER } from './constants/NodeEsmCjsBanner';
export { OUTPUT_DIR } from './constants/OutputDirectory';