Skip to content

The open alternative to Salesforce, designed for AI.

[1/3] Let apps declare user-scoped application variables (#26868)

nitinc5426474a90f
diff --git a/packages/twenty-agent-skills/references/develop-app/layout.md b/packages/twenty-agent-skills/references/develop-app/layout.md
index 6f4c7b8374e..df902447be7 100644
--- a/packages/twenty-agent-skills/references/develop-app/layout.md
+++ b/packages/twenty-agent-skills/references/develop-app/layout.md
@@ -60,7 +60,7 @@ To add an entry to an app's settings menu, declare it with `defineSettingsMenuIt
The menu item points at the component, not the reverse, so one component can back several items. Declare as many as the app needs. Each renders as a tab on the app's page under Settings > Apps, after the built-in General tab, in `position` order.
-`scope` is `WORKSPACE` (configured once for the whole workspace, the default) or `USER` (configured by each member for themselves). Only `WORKSPACE` items render today — a `USER` item is persisted and synced but nothing displays it until its placement under the member's own settings lands, so say so rather than declaring one for a settings entry an app needs visible now. Note that application variables are workspace-wide, so a `USER` item storing something per person must persist it through the app's own objects.
+`scope` is `WORKSPACE` (configured once for the whole workspace, the default) or `USER` (configured by each member for themselves). Only `WORKSPACE` items render today — a `USER` item is persisted and synced but nothing displays it until its placement under the member's own settings lands, so say so rather than declaring one for a settings entry an app needs visible now. Members cannot save their own value of an application variable yet, even one declared with `scope: 'USER'`, so a `USER` item storing something per person must persist it through the app's own objects.
Items sort by ascending `position`, which is a decimal so an item can be slotted between two existing ones. Two items of one app cannot share a position in the same scope, and `General` is reserved for the built-in item.
diff --git a/packages/twenty-agent-skills/references/develop-app/logic.md b/packages/twenty-agent-skills/references/develop-app/logic.md
index a017f3e6be4..010225bda13 100644
--- a/packages/twenty-agent-skills/references/develop-app/logic.md
+++ b/packages/twenty-agent-skills/references/develop-app/logic.md
@@ -21,6 +21,7 @@ Other rules:
- Return a bulk summary with per-record results for multi-record actions, including counts for success, no match, and failed records.
- Prefer idempotent behavior for jobs and repeated invocations.
- Read secrets through the application-config helper, not raw `process.env`.
+- Application variables declared with `scope: 'USER'` are never injected into `process.env`: the member who triggers a run is not always the member the run is about.
- Twenty injects `TWENTY_API_URL`, `TWENTY_APP_ACCESS_TOKEN`, `TWENTY_APP_APPLICATION_ACCESS_TOKEN`, `TWENTY_API_KEY`, `TWENTY_FUNCTIONS_URL` and `APPLICATION_ID` into every run. Never declare an application or server variable with one of these names: the manifest is rejected on sync and publish.
- Do not hide customer-impacting side effects behind UI-only actions.
diff --git a/packages/twenty-agent-skills/references/develop-app/standalone-pages.md b/packages/twenty-agent-skills/references/develop-app/standalone-pages.md
index e63709fd701..4bd9247f419 100644
--- a/packages/twenty-agent-skills/references/develop-app/standalone-pages.md
+++ b/packages/twenty-agent-skills/references/develop-app/standalone-pages.md
@@ -219,7 +219,7 @@ This section only calls out the fields that matter for standalone pages. Use `la
- Set a clear `name`, `icon`, `color`, and `position`.
- Use `folderUniversalIdentifier` only when the page belongs under an existing app folder.
-Public assets and non-secret application variables make standalone pages richer without hardcoding environment data:
+Public assets and non-secret workspace application variables make standalone pages richer without hardcoding environment data:
```tsx
import { defineFrontComponent, getPublicAssetUrl } from 'twenty-sdk/define';
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index 3c6bf5ca8a1..d09043a516b 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -48,6 +48,7 @@ type ApplicationVariable {
isRequired: Boolean!
type: String!
options: JSON
+ scope: ApplicationVariableScope!
}
"""
@@ -55,6 +56,11 @@ The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://
"""
scalar JSON
+enum ApplicationVariableScope {
+ WORKSPACE
+ USER
+}
+
type Agent {
id: UUID!
name: String!
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 42411ec5d20..dd0c5bdff87 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -48,9 +48,12 @@ export interface ApplicationVariable {
isRequired: Scalars['Boolean']
type: Scalars['String']
options?: Scalars['JSON']
+ scope: ApplicationVariableScope
__typename: 'ApplicationVariable'
}
+export type ApplicationVariableScope = 'WORKSPACE' | 'USER'
+
export interface Agent {
id: Scalars['UUID']
name: Scalars['String']
@@ -3873,6 +3876,7 @@ export interface ApplicationVariableGenqlSelection{
isRequired?: boolean | number
type?: boolean | number
options?: boolean | number
+ scope?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
@@ -10831,6 +10835,11 @@ export const enumApplicationRegistrationSourceType = {
OAUTH_ONLY: 'OAUTH_ONLY' as const
}
+export const enumApplicationVariableScope = {
+ WORKSPACE: 'WORKSPACE' as const,
+ USER: 'USER' as const
+}
+
export const enumEngineComponentKey = {
NAVIGATE_TO_NEXT_RECORD: 'NAVIGATE_TO_NEXT_RECORD' as const,
NAVIGATE_TO_PREVIOUS_RECORD: 'NAVIGATE_TO_PREVIOUS_RECORD' 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 19acaefe295..763ec1a3130 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -6,114 +6,115 @@ export default {
6,
8,
9,
- 15,
+ 10,
16,
17,
- 22,
- 24,
- 26,
+ 18,
+ 23,
+ 25,
27,
28,
29,
- 31,
+ 30,
32,
- 39,
+ 33,
40,
41,
42,
- 45,
- 47,
- 55,
- 57,
- 59,
- 61,
- 64,
- 67,
+ 43,
+ 46,
+ 48,
+ 56,
+ 58,
+ 60,
+ 62,
+ 65,
68,
69,
70,
71,
- 73,
+ 72,
74,
75,
- 77,
+ 76,
78,
- 83,
+ 79,
84,
85,
- 87,
- 95,
- 104,
- 107,
- 109,
- 113,
+ 86,
+ 88,
+ 96,
+ 105,
+ 108,
+ 110,
114,
- 117,
+ 115,
118,
- 120,
- 123,
+ 119,
+ 121,
124,
- 136,
- 151,
- 155,
- 168,
+ 125,
+ 137,
+ 152,
+ 156,
169,
- 171,
- 174,
- 181,
- 184,
+ 170,
+ 172,
+ 175,
+ 182,
185,
186,
187,
- 190,
- 193,
- 196,
- 198,
- 208,
- 213,
- 220,
+ 188,
+ 191,
+ 194,
+ 197,
+ 199,
+ 209,
+ 214,
221,
- 228,
- 233,
- 236,
- 259,
- 269,
+ 222,
+ 229,
+ 234,
+ 237,
+ 260,
270,
- 272,
- 277,
- 280,
- 289,
- 322,
- 329,
- 335,
+ 271,
+ 273,
+ 278,
+ 281,
+ 290,
+ 323,
+ 330,
336,
337,
- 339,
+ 338,
340,
341,
342,
343,
344,
345,
- 355,
+ 346,
356,
- 359,
- 394,
- 402,
- 407,
- 409,
+ 357,
+ 360,
+ 395,
+ 403,
+ 408,
410,
411,
412,
- 414,
- 416,
- 423,
- 441,
- 445,
- 456,
- 576,
- 583,
- 611
+ 413,
+ 415,
+ 417,
+ 424,
+ 442,
+ 446,
+ 457,
+ 577,
+ 584,
+ 612
],
"types": {
"BillingProductDTO": {
@@ -127,13 +128,13 @@ export default {
1
],
"metadata": [
- 82
+ 83
],
"on_BillingLicensedProduct": [
- 91
+ 92
],
"on_BillingMeteredProduct": [
- 92
+ 93
],
"__typename": [
1
@@ -160,7 +161,7 @@ export default {
4
],
"role": [
- 51
+ 52
],
"__typename": [
1
@@ -217,12 +218,16 @@ export default {
"options": [
9
],
+ "scope": [
+ 10
+ ],
"__typename": [
1
]
},
"Boolean": {},
"JSON": {},
+ "ApplicationVariableScope": {},
"Agent": {
"id": [
3
@@ -289,10 +294,10 @@ export default {
},
"ApplicationTokenPair": {
"applicationAccessToken": [
- 11
+ 12
],
"applicationRefreshToken": [
- 11
+ 12
],
"__typename": [
1
@@ -339,7 +344,7 @@ export default {
8
],
"applicationTokenPair": [
- 12
+ 13
],
"applicationVariables": [
9
@@ -371,10 +376,10 @@ export default {
3
],
"frontComponent": [
- 13
+ 14
],
"engineComponentKey": [
- 16
+ 17
],
"label": [
1
@@ -386,16 +391,16 @@ export default {
1
],
"position": [
- 15
+ 16
],
"isPinned": [
8
],
"availabilityType": [
- 17
+ 18
],
"payload": [
- 18
+ 19
],
"hotKeys": [
1
@@ -439,10 +444,10 @@ export default {
"CommandMenuItemAvailabilityType": {},
"CommandMenuItemPayload": {
"on_PathCommandMenuItemPayload": [
- 19
+ 20
],
"on_ObjectMetadataCommandMenuItemPayload": [
- 20
+ 21
],
"__typename": [
1
@@ -478,10 +483,10 @@ export default {
1
],
"position": [
- 15
+ 16
],
"scope": [
- 22
+ 23
],
"universalIdentifier": [
3
@@ -514,10 +519,10 @@ export default {
1
],
"timeoutSeconds": [
- 15
+ 16
],
"executionMode": [
- 24
+ 25
],
"sourceHandlerPath": [
1
@@ -613,19 +618,19 @@ export default {
8
],
"openRecordIn": [
- 26
+ 27
],
"readability": [
- 27
+ 28
],
"readabilityParentFieldUniversalIdentifiers": [
3
],
"sharingReach": [
- 28
+ 29
],
"writability": [
- 29
+ 30
],
"applicationId": [
3
@@ -649,39 +654,39 @@ export default {
1
],
"fields": [
- 284,
+ 285,
{
"paging": [
- 30,
+ 31,
"CursorPaging!"
],
"filter": [
- 33,
+ 34,
"FieldFilter!"
]
}
],
"indexMetadatas": [
- 285,
+ 286,
{
"paging": [
- 30,
+ 31,
"CursorPaging!"
],
"filter": [
- 36,
+ 37,
"IndexFilter!"
]
}
],
"fieldsList": [
- 271
+ 272
],
"indexMetadataList": [
- 279
+ 280
],
"searchFieldMetadataList": [
- 287
+ 288
],
"__typename": [
1
@@ -693,16 +698,16 @@ export default {
"MetadataWritability": {},
"CursorPaging": {
"before": [
- 32
+ 33
],
"after": [
- 32
+ 33
],
"first": [
- 31
+ 32
],
"last": [
- 31
+ 32
],
"__typename": [
1
@@ -712,28 +717,28 @@ export default {
"ConnectionCursor": {},
"FieldFilter": {
"and": [
- 33
+ 34
],
"or": [
- 33
+ 34
],
"id": [
- 34
+ 35
],
"isActive": [
- 35
+ 36
],
"isSystem": [
- 35
+ 36
],
"isUIEditable": [
- 35
+ 36
],
"isUIReadOnly": [
- 35
+ 36
],
"objectMetadataId": [
- 34
+ 35
],
"__typename": [
1
@@ -799,16 +804,16 @@ export default {
},
"IndexFilter": {
"and": [
- 36
+ 37
],
"or": [
- 36
+ 37
],
"id": [
- 34
+ 35
],
"isCustom": [
- 35
+ 36
],
"__typename": [
1
@@ -830,7 +835,7 @@ export default {
3
],
"name": [
- 37
+ 38
],
"userEmail": [
1
@@ -842,7 +847,7 @@ export default {
1
],
"openRecordIn": [
- 39
+ 40
],
"avatarUrl": [
1
@@ -851,19 +856,19 @@ export default {
1
],
"calendarStartDay": [
- 31
+ 32
],
"timeZone": [
1
],
"dateFormat": [
- 40
+ 41
],
"timeFormat": [
- 41
+ 42
],
"roles": [
- 51
+ 52
],
"userId": [
3
@@ -872,7 +877,7 @@ export default {
3
],
"numberFormat": [
- 42
+ 43
],
"__typename": [
1
@@ -913,10 +918,10 @@ export default {
1
],
"logicalOperator": [
- 45
+ 46
],
"positionInRowLevelPermissionPredicateGroup": [
- 15
+ 16
],
"roleId": [
1
@@ -940,7 +945,7 @@ export default {
1
],
"operand": [
- 47
+ 48
],
"subFieldName": [
1
@@ -955,7 +960,7 @@ export default {
1
],
"positionInRowLevelPermissionPredicateGroup": [
- 15
+ 16
],
"roleId": [
1
@@ -988,10 +993,10 @@ export default {
9
],
"rowLevelPermissionPredicates": [
- 46
+ 47
],
"rowLevelPermissionPredicateGroups": [
- 44
+ 45
],
"__typename": [
1
@@ -1057,13 +1062,13 @@ export default {
8
],
"workspaceMembers": [
- 38
+ 39
],
"agents": [
- 10
+ 11
],
"apiKeys": [
- 50
+ 51
],
"canUpdateAllSettings": [
8
@@ -1084,19 +1089,19 @@ export default {
8
],
"permissionFlags": [
- 49
+ 50
],
"objectPermissions": [
- 48
+ 49
],
"fieldPermissions": [
- 43
+ 44
],
"rowLevelPermissionPredicates": [
- 46
+ 47
],
"rowLevelPermissionPredicateGroups": [
- 44
+ 45
],
"__typename": [
1
@@ -1155,25 +1160,25 @@ export default {
3
],
"defaultLogicFunctionRole": [
- 51
+ 52
],
"agents": [
- 10
+ 11
],
"frontComponents": [
- 13
+ 14
],
"commandMenuItems": [
- 14
+ 15
],
"settingsMenuItems": [
- 21
+ 22
],
"logicFunctions": [
- 23
+ 24
],
"objects": [
- 25
+ 26
],
"applicationVariables": [
7
@@ -1207,7 +1212,7 @@ export default {
3
],
"user": [
- 76
+ 77
],
"userId": [
3
@@ -1225,16 +1230,16 @@ export default {
4
],
"permissionFlags": [
- 55
+ 56
],
"objectPermissions": [
- 48
+ 49
],
"objectsPermissions": [
- 48
+ 49
],
"twoFactorAuthenticationMethodSummary": [
- 53
+ 54
],
"isImpersonating": [
8
@@ -1264,13 +1269,13 @@ export default {
8
],
"size": [
- 15
+ 16
],
"position": [
- 15
+ 16
],
"aggregateOperation": [
- 57
+ 58
],
"viewId": [
3
@@ -1309,10 +1314,10 @@ export default {
3
],
"logicalOperator": [
- 59
+ 60
],
"positionInViewFilterGroup": [
- 15
+ 16
],
"viewId": [
3
@@ -1342,7 +1347,7 @@ export default {
3
],
"operand": [
- 61
+ 62
],
"value": [
9
@@ -1351,7 +1356,7 @@ export default {
3
],
"positionInViewFilterGroup": [
- 15
+ 16
],
"subFieldName": [
1
@@ -1390,7 +1395,7 @@ export default {
1
],
"position": [
- 15
+ 16
],
"viewId": [
3
@@ -1419,7 +1424,7 @@ export default {
3
],
"direction": [
- 64
+ 65
],
"subFieldName": [
1
@@ -1452,7 +1457,7 @@ export default {
1
],
"position": [
- 15
+ 16
],
"isVisible": [
8
@@ -1476,7 +1481,7 @@ export default {
4
],
"viewFields": [
- 56
+ 57
],
"isOverridden": [
8
@@ -1505,16 +1510,16 @@ export default {
3
],
"type": [
- 67
+ 68
],
"key": [
- 68
+ 69
],
"icon": [
1
],
"position": [
- 15
+ 16
],
"isCompact": [
8
@@ -1523,10 +1528,10 @@ export default {
8
],
"openRecordIn": [
- 69
+ 70
],
"kanbanAggregateOperation": [
- 57
+ 58
],
"kanbanAggregateOperationFieldMetadataId": [
3
@@ -1538,10 +1543,10 @@ export default {
8
],
"kanbanColumnWidth": [
- 31
+ 32
],
"groupLoadLimit": [
- 31
+ 32
],
"calendarFieldMetadataId": [
3
@@ -1556,7 +1561,7 @@ export default {
1
],
"calendarLayout": [
- 70
+ 71
],
"createdAt": [
4
@@ -1568,25 +1573,25 @@ export default {
4
],
"viewFields": [
- 56
+ 57
],
"viewFilters": [
- 60
+ 61
],
"viewFilterGroups": [
- 58
+ 59
],
"viewSorts": [
- 63
+ 64
],
"viewGroups": [
- 62
+ 63
],
"viewFieldGroups": [
- 65
+ 66
],
"visibility": [
- 71
+ 72
],
"createdByUserWorkspaceId": [
3
@@ -1641,40 +1646,40 @@ export default {
8
],
"workspaceDiscoverability": [
- 73
+ 74
],
"trashRetentionDays": [
- 15
+ 16
],
"eventLogRetentionDays": [
- 15
+ 16
],
"workspaceMembersCount": [
- 15
+ 16
],
"activationStatus": [
- 74
+ 75
],
"views": [
- 66
+ 67
],
"viewFields": [
- 56
+ 57
],
"viewFilters": [
- 60
+ 61
],
"viewFilterGroups": [
- 58
+ 59
],
"viewGroups": [
- 62
+ 63
],
"viewSorts": [
- 63
+ 64
],
"metadataVersion": [
- 15
+ 16
],
"databaseSchema": [
1
@@ -1719,13 +1724,13 @@ export default {
1
],
"defaultRole": [
- 51
+ 52
],
"aiChatModelTier": [
- 75
+ 76
],
"aiAgentModelTier": [
- 75
+ 76
],
"isAutoModelSelectionEnabled": [
8
@@ -1740,25 +1745,25 @@ export default {
1
],
"workspaceCustomApplication": [
- 52
+ 53
],
"featureFlags": [
- 212
+ 213
],
"billingSubscriptions": [
- 94
+ 95
],
"installedApplications": [
- 52
+ 53
],
"currentBillingSubscription": [
- 94
+ 95
],
"billingCustomer": [
- 96
+ 97
],
"billingEntitlements": [
- 288
+ 289
],
"hasValidSignedEnterpriseKey": [
8
@@ -1767,7 +1772,7 @@ export default {
8
],
"workspaceUrls": [
- 214
+ 215
],
"workspaceCustomApplicationId": [
1
@@ -1817,31 +1822,31 @@ export default {
1
],
"workspaceMember": [
- 38
+ 39
],
"userWorkspaces": [
- 54
+ 55
],
"onboardingStatus": [
- 77
+ 78
],
"previousOnboardingStatus": [
- 77
+ 78
],
"currentWorkspace": [
- 72
+ 73
],
"currentUserWorkspace": [
- 54
+ 55
],
"userVars": [
- 78
+ 79
],
"workspaceMembers": [
- 38
+ 39
],
"deletedWorkspaceMembers": [
- 256
+ 257
],
"hasPassword": [
8
@@ -1853,10 +1858,10 @@ export default {
8
],
"workspaces": [
- 54
+ 55
],
"availableWorkspaces": [
- 255
+ 256
],
"__typename": [
1
@@ -1928,7 +1933,7 @@ export default {
1
],
"quantity": [
- 15
+ 16
],
"__typename": [
1
@@ -1936,13 +1941,13 @@ export default {
},
"BillingSubscriptionSchedulePhase": {
"start_date": [
- 15
+ 16
],
"end_date": [
- 15
+ 16
],
"items": [
- 80
+ 81
],
"__typename": [
1
@@ -1950,13 +1955,13 @@ export default {
},
"BillingProductMetadata": {
"planKey": [
- 83
+ 84
],
"priceUsageBased": [
- 84
+ 85
],
"productKey": [
- 85
+ 86
],
"isLegacy": [
1
@@ -1970,19 +1975,19 @@ export default {
"BillingProductKey": {},
"BillingPriceLicensed": {
"recurringInterval": [
- 87
+ 88
],
"unitAmount": [
- 15
+ 16
],
"stripePriceId": [
1
],
"priceUsageType": [
- 84
+ 85
],
"creditAmount": [
- 15
+ 16
],
"isSellable": [
8
@@ -1994,13 +1999,13 @@ export default {
"SubscriptionInterval": {},
"BillingPriceTier": {
"upTo": [
- 15
+ 16
],
"flatAmount": [
- 15
+ 16
],
"unitAmount": [
- 15
+ 16
],
"__typename": [
1
@@ -2008,16 +2013,16 @@ export default {
},
"BillingPriceMetered": {
"tiers": [
- 88
+ 89
],
"recurringInterval": [
- 87
+ 88
],
"stripePriceId": [
1
],
"priceUsageType": [
- 84
+ 85
],
"__typename": [
1
@@ -2034,7 +2039,7 @@ export default {
1
],
"metadata": [
- 82
+ 83
],
"__typename": [
1
@@ -2051,10 +2056,10 @@ export default {
1
],
"metadata": [
- 82
+ 83
],
"prices": [
- 86
+ 87
],
"__typename": [
1
@@ -2071,10 +2076,10 @@ export default {
1
],
"metadata": [
- 82
+ 83
],
"prices": [
- 89
+ 90
],
"__typename": [
1
@@ -2088,16 +2093,16 @@ export default {
8
],
"quantity": [
- 15
+ 16
],
"stripePriceId": [
1
],
"unitAmount": [
- 15
+ 16
],
"creditAmount": [
- 15
+ 16
],
"billingProduct": [
0
@@ -2111,13 +2116,13 @@ export default {
3
],
"status": [
- 95
+ 96
],
"interval": [
- 87
+ 88
],
"billingSubscriptionItems": [
- 93
+ 94
],
"currentPeriodEnd": [
4
@@ -2126,7 +2131,7 @@ export default {
9
],
"phases": [
- 81
+ 82
],
"cancelAt": [
4
@@ -2222,16 +2227,16 @@ export default {
},
"GridPosition": {
"row": [
- 15
+ 16
],
"column": [
- 15
+ 16
],
"rowSpan": [
- 15
+ 16
],
"columnSpan": [
- 15
+ 16
],
"__typename": [
1
@@ -2257,19 +2262,19 @@ export default {
1
],
"type": [
- 104
+ 105
],
"objectMetadataId": [
3
],
"gridPosition": [
- 102
+ 103
],
"position": [
- 105
+ 106
],
"configuration": [
- 111
+ 112
],
"conditionalDisplay": [
9
@@ -2299,13 +2304,13 @@ export default {
"WidgetType": {},
"PageLayoutWidgetPosition": {
"on_PageLayoutWidgetGridPosition": [
- 106
+ 107
],
"on_PageLayoutWidgetVerticalListPosition": [
- 108
+ 109
],
"on_PageLayoutWidgetCanvasPosition": [
- 110
+ 111
],
"__typename": [
1
@@ -2313,19 +2318,19 @@ export default {
},
"PageLayoutWidgetGridPosition": {
"layoutMode": [
- 107
+ 108
],
"row": [
- 31
+ 32
],
"column": [
- 31
+ 32
],
"rowSpan": [
- 31
+ 32
],
"columnSpan": [
- 31
+ 32
],
"__typename": [
1
@@ -2334,13 +2339,13 @@ export default {
"PageLayoutTabLayoutMode": {},
"PageLayoutWidgetVerticalListPosition": {
"layoutMode": [
- 107
+ 108
],
"index": [
- 31
+ 32
],
"heightBehavior": [
- 109
+ 110
],
"__typename": [
1
@@ -2349,7 +2354,7 @@ export default {
"PageLayoutWidgetVerticalListHeightBehavior": {},
"PageLayoutWidgetCanvasPosition": {
"layoutMode": [
- 107
+ 108
],
"__typename": [
1
@@ -2357,91 +2362,91 @@ export default {
},
"WidgetConfiguration": {
"on_AggregateChartConfiguration": [
- 112
+ 113
],
"on_StandaloneRichTextConfiguration": [
- 115
+ 116
],
"on_PieChartConfiguration": [
- 116
+ 117
],
"on_LineChartConfiguration": [
- 119
+ 120
],
"on_IframeConfiguration": [
- 121
+ 122
],
"on_BarChartConfiguration": [
- 122
+ 123
],
"on_CalendarConfiguration": [
- 125
+ 126
],
"on_FrontComponentConfiguration": [
- 126
+ 127
],
"on_EmailsConfiguration": [
- 127
+ 128
],
"on_EmailThreadConfiguration": [
- 128
+ 129
],
"on_CallRecordingSummaryConfiguration": [
- 129
+ 130
],
"on_CallRecordingTranscriptConfiguration": [
- 130
+ 131
],
"on_ChatThreadsConfiguration": [
- 131
+ 132
],
"on_ChatConfiguration": [
- 132
+ 133
],
"on_MessageCampaignBodyConfiguration": [
- 133
+ 134
],
"on_MessageCampaignDetailsConfiguration": [
- 134
+ 135
],
"on_FieldConfiguration": [
- 135
+ 136
],
"on_FieldRichTextConfiguration": [
- 137
+ 138
],
"on_FieldsConfiguration": [
- 138
+ 139
],
"on_FormFieldConfiguration": [
- 139
+ 140
],
"on_FilesConfiguration": [
- 140
+ 141
],
"on_NotesConfiguration": [
- 141
+ 142
],
"on_TasksConfiguration": [
- 142
+ 143
],
"on_TimelineConfiguration": [
- 143
+ 144
],
"on_ViewConfiguration": [
- 144
+ 145
],
"on_RecordTableConfiguration": [
- 145
+ 146
],
"on_WorkflowConfiguration": [
- 146
+ 147
],
"on_WorkflowRunConfiguration": [
- 147
+ 148
],
"on_WorkflowVersionConfiguration": [
- 148
+ 149
],
"__typename": [
1
@@ -2449,13 +2454,13 @@ export default {
},
"AggregateChartConfiguration": {
"configurationType": [
- 113
+ 114
],
"aggregateFieldMetadataId": [
3
],
"aggregateOperation": [
- 57
+ 58
],
"label": [
1
@@ -2464,7 +2469,7 @@ export default {
8
],
"numberFormat": [
- 114
+ 115
],
"description": [
1
@@ -2476,7 +2481,7 @@ export default {
1
],
"firstDayOfTheWeek": [
- 31
+ 32
],
"prefix": [
1
@@ -2485,7 +2490,7 @@ export default {
1
],
"ratioAggregateConfig": [
- 100
+ 101
],
"__typename": [
1
@@ -2495,10 +2500,10 @@ export default {
"ChartNumberFormat": {},
"StandaloneRichTextConfiguration": {
"configurationType": [
- 113
+ 114
],
"body": [
- 101
+ 102
],
"__typename": [
1
@@ -2506,13 +2511,13 @@ export default {
},
"PieChartConfiguration": {
"configurationType": [
- 113
+ 114
],
"aggregateFieldMetadataId": [
3
],
"aggregateOperation": [
- 57
+ 58
],
"groupByFieldMetadataId": [
3
@@ -2521,10 +2526,10 @@ export default {
1
],
"dateGranularity": [
- 117
+ 118
],
"orderBy": [
- 118
+ 119
],
"manualSortOrder": [
1
@@ -2542,7 +2547,7 @@ export default {
8
],
"numberFormat": [
- 114
+ 115
],
"splitMultiValueFields": [
8
@@ -2560,7 +2565,7 @@ export default {
1
],
"firstDayOfTheWeek": [
- 31
+ 32
],
"__typename": [
1
@@ -2570,13 +2575,13 @@ export default {
"GraphOrderBy": {},
"LineChartConfiguration": {
"configurationType": [
- 113
+ 114
],
"aggregateFieldMetadataId": [
3
],
"aggregateOperation": [
- 57
+ 58
],
"primaryAxisGroupByFieldMetadataId": [
3
@@ -2585,10 +2590,10 @@ export default {
1
],
"primaryAxisDateGranularity": [
- 117
+ 118
],
"primaryAxisOrderBy": [
- 118
+ 119
],
"primaryAxisManualSortOrder": [
1
@@ -2600,10 +2605,10 @@ export default {
1
],
"secondaryAxisGroupByDateGranularity": [
- 117
+ 118
],
"secondaryAxisOrderBy": [
- 118
+ 119
],
"secondaryAxisManualSortOrder": [
1
@@ -2615,7 +2620,7 @@ export default {
8
],
"axisNameDisplay": [
- 120
+ 121
],
"displayDataLabel": [
8
@@ -2624,13 +2629,13 @@ export default {
8
],
"numberFormat": [
- 114
+ 115
],
"rangeMin": [
- 15
+ 16
],
"rangeMax": [
- 15
+ 16
],
"description": [
1
@@ -2651,7 +2656,7 @@ export default {
1
],
"firstDayOfTheWeek": [
- 31
+ 32
],
"__typename": [
1
@@ -2660,7 +2665,7 @@ export default {
"AxisNameDisplay": {},
"IframeConfiguration": {
"configurationType": [
- 113
+ 114
],
"url": [
1
@@ -2671,13 +2676,13 @@ export default {
},
"BarChartConfiguration": {
"configurationType": [
- 113
+ 114
],
"aggregateFieldMetadataId": [
3
],
"aggregateOperation": [
- 57
+ 58
],
"primaryAxisGroupByFieldMetadataId": [
3
@@ -2686,10 +2691,10 @@ export default {
1
],
"primaryAxisDateGranularity": [
- 117
+ 118
],
"primaryAxisOrderBy": [
- 118
+ 119
],
"primaryAxisManualSortOrder": [
1
@@ -2701,10 +2706,10 @@ export default {
1
],
"secondaryAxisGroupByDateGranularity": [
- 117
+ 118
],
"secondaryAxisOrderBy": [
- 118
+ 119
],
"secondaryAxisManualSortOrder": [
1
@@ -2716,7 +2721,7 @@ export default {
8
],
"axisNameDisplay": [
- 120
+ 121
],
"displayDataLabel": [
8
@@ -2725,13 +2730,13 @@ export default {
8
],
"numberFormat": [
- 114
+ 115
],
"rangeMin": [
- 15
+ 16
],
"rangeMax": [
- 15
+ 16
],
"description": [
1
@@ -2743,10 +2748,10 @@ export default {
9
],
"groupMode": [
- 123
+ 124
],
"layout": [
- 124
+ 125
],
"isCumulative": [
8
@@ -2755,7 +2760,7 @@ export default {
1
],
"firstDayOfTheWeek": [
- 31
+ 32
],
"__typename": [
1
@@ -2765,7 +2770,7 @@ export default {
"BarChartLayout": {},
"CalendarConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2773,7 +2778,7 @@ export default {
},
"FrontComponentConfiguration": {
"configurationType": [
- 113
+ 114
],
"frontComponentId": [
3
@@ -2787,7 +2792,7 @@ export default {
},
"EmailsConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2795,7 +2800,7 @@ export default {
},
"EmailThreadConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2803,7 +2808,7 @@ export default {
},
"CallRecordingSummaryConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2811,7 +2816,7 @@ export default {
},
"CallRecordingTranscriptConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2819,7 +2824,7 @@ export default {
},
"ChatThreadsConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2827,7 +2832,7 @@ export default {
},
"ChatConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2835,7 +2840,7 @@ export default {
},
"MessageCampaignBodyConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2843,7 +2848,7 @@ export default {
},
"MessageCampaignDetailsConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2851,13 +2856,13 @@ export default {
},
"FieldConfiguration": {
"configurationType": [
- 113
+ 114
],
"fieldMetadataId": [
1
],
"fieldDisplayMode": [
- 136
+ 137
],
"viewId": [
1
@@ -2875,7 +2880,7 @@ export default {
"FieldDisplayMode": {},
"FieldRichTextConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2883,7 +2888,7 @@ export default {
},
"FieldsConfiguration": {
"configurationType": [
- 113
+ 114
],
"viewId": [
1
@@ -2900,7 +2905,7 @@ export default {
},
"FormFieldConfiguration": {
"configurationType": [
- 113
+ 114
],
"fieldMetadataId": [
1
@@ -2911,7 +2916,7 @@ export default {
},
"FilesConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2919,7 +2924,7 @@ export default {
},
"NotesConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2927,7 +2932,7 @@ export default {
},
"TasksConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2935,7 +2940,7 @@ export default {
},
"TimelineConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2943,7 +2948,7 @@ export default {
},
"ViewConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2951,13 +2956,13 @@ export default {
},
"RecordTableConfiguration": {
"configurationType": [
- 113
+ 114
],
"viewId": [
1
],
"recordLimit": [
- 31
+ 32
],
"isUIEditable": [
8
@@ -2968,7 +2973,7 @@ export default {
},
"WorkflowConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2976,7 +2981,7 @@ export default {
},
"WorkflowRunConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -2984,7 +2989,7 @@ export default {
},
"WorkflowVersionConfiguration": {
"configurationType": [
- 113
+ 114
],
"__typename": [
1
@@ -3007,19 +3012,19 @@ export default {
1
],
"position": [
- 15
+ 16
],
"pageLayoutId": [
3
],
"widgets": [
- 103
+ 104
],
"icon": [
1
],
"layoutMode": [
- 107
+ 108
],
"createdAt": [
4
@@ -3048,13 +3053,13 @@ export default {
1
],
"type": [
- 151
+ 152
],
"objectMetadataId": [
3
],
"tabs": [
- 149
+ 150
],
"defaultTabToFocusOnMobileAndSidePanelId": [
3
@@ -3113,7 +3118,7 @@ export default {
1
],
"oauth": [
- 152
+ 153
],
"logoUrl": [
1
@@ -3130,10 +3135,10 @@ export default {
1
],
"duration": [
- 15
+ 16
],
"status": [
- 155
+ 156
],
"error": [
9
@@ -3180,7 +3185,7 @@ export default {
},
"BillingEndTrialPeriod": {
"status": [
- 95
+ 96
],
"hasPaymentMethod": [
8
@@ -3189,10 +3194,10 @@ export default {
1
],
"currentBillingSubscription": [
- 94
+ 95
],
"billingSubscriptions": [
- 94
+ 95
],
"__typename": [
1
@@ -3200,7 +3205,7 @@ export default {
},
"BillingResourceCreditUsage": {
"productKey": [
- 85
+ 86
],
"periodStart": [
4
@@ -3209,19 +3214,19 @@ export default {
4
],
"usedCredits": [
- 15
+ 16
],
"grantedCredits": [
- 15
+ 16
],
"rolloverCredits": [
- 15
+ 16
],
"totalGrantedCredits": [
- 15
+ 16
],
"unitPriceCents": [
- 15
+ 16
],
"__typename": [
1
@@ -3229,16 +3234,16 @@ export default {
},
"BillingPlan": {
"planKey": [
- 83
+ 84
],
"baseProducts": [
- 91
+ 92
],
"resourceCreditProducts": [
- 91
+ 92
],
"meteredProducts": [
- 92
+ 93
],
"__typename": [
1
@@ -3265,10 +3270,10 @@ export default {
},
"BillingUpdate": {
"currentBillingSubscription": [
- 94
+ 95
],
"billingSubscriptions": [
- 94
+ 95
],
"__typename": [
1
@@ -3282,7 +3287,7 @@ export default {
1
],
"creditsUsed": [
- 15
+ 16
],
"__typename": [
1
@@ -3293,7 +3298,7 @@ export default {
1
],
"creditsUsed": [
- 15
+ 16
],
"__typename": [
1
@@ -3304,7 +3309,7 @@ export default {
1
],
"dailyUsage": [
- 164
+ 165
],
"__typename": [
1
@@ -3312,19 +3317,19 @@ export default {
},
"UsageAnalytics": {
"usageByUser": [
- 163
+ 164
],
"usageByOperationType": [
- 163
+ 164
],
"usageByApplication": [
- 163
+ 164
],
"usageByModel": [
- 163
+ 164
],
"timeSeries": [
- 164
+ 165
],
"periodStart": [
4
@@ -3333,7 +3338,7 @@ export default {
4
],
"userDailyUsage": [
- 165
+ 166
],
"__typename": [
1
@@ -3341,10 +3346,10 @@ export default {
},
"UsageLimitOperationDefinition": {
"operationType": [
- 168
+ 169
],
"allowedUnits": [
- 169
+ 170
],
"__typename": [
1
@@ -3354,13 +3359,13 @@ export default {
"UsageUnit": {},
"UsageQuotaDefinition": {
"resourceType": [
- 171
+ 172
],
"limitKind": [
1
],
"allowedOperations": [
- 167
+ 168
],
"allowedSpenderTypes": [
1
@@ -3372,7 +3377,7 @@ export default {
"UsageResourceType": {},
"UsageQuotaDefinitions": {
"definitions": [
- 170
+ 171
],
"isIntraWorkspaceLimitEntitled": [
8
@@ -3389,10 +3394,10 @@ export default {
3
],
"resourceType": [
- 171
+ 172
],
"operationType": [
- 168
+ 169
],
"spenderType": [
1
@@ -3407,19 +3412,19 @@ export default {
1
],
"unit": [
- 169
+ 170
],
"limitValue": [
- 174
+ 175
],
"isEnforced": [
8
],
"consumedValue": [
- 174
+ 175
],
"remainingValue": [
- 174
+ 175
],
"periodStart": [
4
@@ -3434,7 +3439,7 @@ export default {
"BigInt": {},
"UsageQuotaScopeConsumption": {
"consumedValue": [
- 174
+ 175
],
"periodStart": [
4
@@ -3451,10 +3456,10 @@ export default {
3
],
"resourceType": [
- 171
+ 172
],
"operationType": [
- 168
+ 169
],
"spenderType": [
1
@@ -3466,19 +3471,19 @@ export default {
1
],
"periodCount": [
- 31
+ 32
],
"periodUnit": [
1
],
"unit": [
- 169
+ 170
],
"limitValue": [
- 174
+ 175
],
"burstValue": [
- 174
+ 175
],
"createdAt": [
4
@@ -3498,7 +3503,7 @@ export default {
1
],
"size": [
- 15
+ 16
],
"createdAt": [
4
@@ -3558,7 +3563,7 @@ export default {
3
],
"type": [
- 181
+ 182
],
"name": [
1
@@ -3579,7 +3584,7 @@ export default {
3
],
"position": [
- 15
+ 16
],
"applicationId": [
3
@@ -3591,7 +3596,7 @@ export default {
4
],
"targetRecordIdentifier": [
- 179
+ 180
],
"__typename": [
1
@@ -3617,10 +3622,10 @@ export default {
},
"RecordSharingGrantDTO": {
"id": [
- 184
+ 185
],
"principalType": [
- 185
+ 186
],
"principalId": [
3
@@ -3629,10 +3634,10 @@ export default {
3
],
"accessLevel": [
- 186
+ 187
],
"rowCause": [
- 187
+ 188
],
"__typename": [
1
@@ -3661,28 +3666,28 @@ export default {
},
"RecordSharingDTO": {
"sharingMode": [
- 190
+ 191
],
"canManageSharing": [
8
],
"permissions": [
- 182
+ 183
],
"generalAccessLevel": [
- 186
+ 187
],
"defaultGeneralAccessLevel": [
- 186
+ 187
],
"hasManagedGeneralAccess": [
8
],
"roles": [
- 188
+ 189
],
"shares": [
- 183
+ 184
],
"__typename": [
1
@@ -3697,7 +3702,7 @@ export default {
3
],
"permissions": [
- 182
+ 183
],
"__typename": [
1
@@ -3708,22 +3713,22 @@ export default {
1
],
"state": [
- 193
+ 194
],
"attemptsMade": [
- 31
+ 32
],
"failedReason": [
1
],
"enqueuedAt": [
- 15
+ 16
],
"startedAt": [
- 15
+ 16
],
"finishedAt": [
- 15
+ 16
],
"__typename": [
1
@@ -3749,7 +3754,7 @@ export default {
},
"MetadataEvent": {
"type": [
- 196
+ 197
],
"metadataName": [
1
@@ -3758,7 +3763,7 @@ export default {
1
],
"properties": [
- 194
+ 195
],
"updatedCollectionHash": [
1
@@ -3770,7 +3775,7 @@ export default {
"MetadataEventAction": {},
"ObjectRecordEvent": {
"action": [
- 198
+ 199
],
"objectNameSingular": [
1
@@ -3785,7 +3790,7 @@ export default {
1
],
"properties": [
- 194
+ 195
],
"__typename": [
1
@@ -3797,7 +3802,7 @@ export default {
1
],
"objectRecordEvent": [
- 197
+ 198
],
"__typename": [
1
@@ -3808,13 +3813,13 @@ export default {
1
],
"objectRecordEventsWithQueryIds": [
- 199
+ 200
],
"metadataEvents": [
- 195
+ 196
],
"queueJobEvents": [
- 192
+ 193
],
"__typename": [
1
@@ -3850,10 +3855,10 @@ export default {
},
"OnboardingStepNavigation": {
"onboardingStatus": [
- 77
+ 78
],
"previousOnboardingStatus": [
- 77
+ 78
],
"__typename": [
1
@@ -3892,7 +3897,7 @@ export default {
1
],
"result": [
- 205
+ 206
],
"__typename": [
1
@@ -3903,13 +3908,13 @@ export default {
1
],
"port": [
- 15
+ 16
],
"username": [
1
],
"connectionSecurity": [
- 208
+ 209
],
"__typename": [
1
@@ -3918,13 +3923,13 @@ export default {
"EmailConnectionSecurity": {},
"PublicImapSmtpCaldavConnectionParameters": {
"IMAP": [
- 207
+ 208
],
"SMTP": [
- 207
+ 208
],
"CALDAV": [
- 207
+ 208
],
"__typename": [
1
@@ -3983,7 +3988,7 @@ export default {
4
],
"connectionParameters": [
- 209
+ 210
],
"__typename": [
1
@@ -4042,7 +4047,7 @@ export default {
4
],
"connectionParameters": [
- 209
+ 210
],
"isOwnedByCurrentUser": [
8
@@ -4053,7 +4058,7 @@ export default {
},
"FeatureFlag": {
"key": [
- 213
+ 214
],
"value": [
8
@@ -4120,7 +4125,7 @@ export default {
1
],
"count": [
- 31
+ 32
],
"__typename": [
1
@@ -4128,16 +4133,16 @@ export default {
},
"ApplicationRegistrationStats": {
"activeInstalls": [
- 31
+ 32
],
"suspendedInstalls": [
- 31
+ 32
],
"mostInstalledVersion": [
1
],
"versionDistribution": [
- 216
+ 217
],
"__typename": [
1
@@ -4145,7 +4150,7 @@ export default {
},
"BillingTrialPeriod": {
"duration": [
- 15
+ 16
],
"isCreditCardRequired": [
8
@@ -4162,10 +4167,10 @@ export default {
1
],
"type": [
- 220
+ 221
],
"status": [
- 221
+ 222
],
"issuer": [
1
@@ -4178,7 +4183,7 @@ export default {
"SSOIdentityProviderStatus": {},
"AuthProviders": {
"sso": [
- 219
+ 220
],
"google": [
8
@@ -4215,10 +4220,10 @@ export default {
3
],
"authProviders": [
- 222
+ 223
],
"authBypassProviders": [
- 223
+ 224
],
"logo": [
1
@@ -4227,7 +4232,7 @@ export default {
1
],
"workspaceUrls": [
- 214
+ 215
],
"__typename": [
1
@@ -4266,7 +4271,7 @@ export default {
1
],
"modelFamily": [
- 228
+ 229
],
"modelFamilyLabel": [
1
@@ -4275,13 +4280,13 @@ export default {
1
],
"inputCostPerMillionTokens": [
- 15
+ 16
],
"outputCostPerMillionTokens": [
- 15
+ 16
],
"nativeCapabilities": [
- 226
+ 227
],
"isDeprecated": [
8
@@ -4293,22 +4298,22 @@ export default {
1
],
"contextWindowTokens": [
- 15
+ 16
],
"maxOutputTokens": [
- 15
+ 16
],
"dataResidency": [
1
],
"intelligenceIndex": [
- 15
+ 16
],
"outputTokensPerSecond": [
- 15
+ 16
],
"costPerTask": [
- 15
+ 16
],
"efforts": [
1
@@ -4344,19 +4349,19 @@ export default {
1
],
"maxCriteriaPerQuestion": [
- 15
+ 16
],
"maxScoreLevels": [
- 15
+ 16
],
"medianLatencyMs": [
- 15
+ 16
],
"inputCostPerMillionTokens": [
- 15
+ 16
],
"outputCostPerMillionTokens": [
- 15
+ 16
],
"isDeprecated": [
8
@@ -4367,7 +4372,7 @@ export default {
},
"ClientAiModelTierConfig": {
"tier": [
- 75
+ 76
],
"modelId": [
1
@@ -4387,7 +4392,7 @@ export default {
1
],
"trialPeriods": [
- 218
+ 219
],
"__typename": [
1
@@ -4395,7 +4400,7 @@ export default {
},
"Support": {
"supportDriver": [
- 233
+ 234
],
"supportFrontChatId": [
1
@@ -4416,7 +4421,7 @@ export default {
1
],
"tracesSampleRate": [
- 15
+ 16
],
"__typename": [
1
@@ -4424,7 +4429,7 @@ export default {
},
"Captcha": {
"provider": [
- 236
+ 237
],
"siteKey": [
1
@@ -4436,7 +4441,7 @@ export default {
"CaptchaDriverType": {},
"ApiConfig": {
"mutationMaximumAffectedRecords": [
- 15
+ 16
],
"__typename": [
1
@@ -4461,10 +4466,10 @@ export default {
},
"PublicFeatureFlag": {
"key": [
- 213
+ 214
],
"metadata": [
- 238
+ 239
],
"__typename": [
1
@@ -4489,19 +4494,19 @@ export default {
1
],
"authProviders": [
- 222
+ 223
],
"billing": [
- 231
+ 232
],
"aiModels": [
- 227
+ 228
],
"aiEvaluationModels": [
- 229
+ 230
],
"aiModelTiers": [
- 230
+ 231
],
"signInPrefilled": [
8
@@ -4525,25 +4530,25 @@ export default {
8
],
"support": [
- 232
+ 233
],
"isAttachmentPreviewEnabled": [
8
],
"sentry": [
- 234
+ 235
],
"captcha": [
- 235
+ 236
],
"api": [
- 237
+ 238
],
"canManageFeatureFlags": [
8
],
"publicFeatureFlags": [
- 239
+ 240
],
"isCookieSessionEnabled": [
8
@@ -4597,7 +4602,7 @@ export default {
1
],
"maintenance": [
- 240
+ 241
],
"__typename": [
1
@@ -4634,7 +4639,7 @@ export default {
},
"CreateApplicationRegistration": {
"applicationRegistration": [
- 79
+ 80
],
"clientSecret": [
1
@@ -4673,7 +4678,7 @@ export default {
},
"AppConnection": {
"id": [
- 184
+ 185
],
"providerName": [
1
@@ -4730,7 +4735,7 @@ export default {
3
],
"type": [
- 220
+ 221
],
"issuer": [
1
@@ -4739,7 +4744,7 @@ export default {
1
],
"status": [
- 221
+ 222
],
"__typename": [
1
@@ -4758,7 +4763,7 @@ export default {
},
"FindAvailableSSOIDP": {
"type": [
- 220
+ 221
],
"id": [
3
@@ -4770,10 +4775,10 @@ export default {
1
],
"status": [
- 221
+ 222
],
"workspace": [
- 250
+ 251
],
"__typename": [
1
@@ -4784,7 +4789,7 @@ export default {
3
],
"type": [
- 220
+ 221
],
"issuer": [
1
@@ -4793,7 +4798,7 @@ export default {
1
],
"status": [
- 221
+ 222
],
"__typename": [
1
@@ -4801,7 +4806,7 @@ export default {
},
"SSOConnection": {
"type": [
- 220
+ 221
],
"id": [
3
@@ -4813,7 +4818,7 @@ export default {
1
],
"status": [
- 221
+ 222
],
"__typename": [
1
@@ -4836,13 +4841,13 @@ export default {
1
],
"workspaceUrls": [
- 214
+ 215
],
"logo": [
1
],
"sso": [
- 253
+ 254
],
"__typename": [
1
@@ -4850,10 +4855,10 @@ export default {
},
"AvailableWorkspaces": {
"availableWorkspacesForSignIn": [
- 254
+ 255
],
"availableWorkspacesForSignUp": [
- 254
+ 255
],
"__typename": [
1
@@ -4864,7 +4869,7 @@ export default {
3
],
"name": [
- 37
+ 38
],
"userEmail": [
1
@@ -4892,7 +4897,7 @@ export default {
},
"ApplicationHealthCheckResult": {
"status": [
- 259
+ 260
],
"title": [
1
@@ -4901,7 +4906,7 @@ export default {
1
],
"action": [
- 257
+ 258
],
"__typename": [
1
@@ -5015,10 +5020,10 @@ export default {
1
],
"objectPermissions": [
- 261
+ 262
],
"fieldPermissions": [
- 262
+ 263
],
"__typename": [
1
@@ -5086,13 +5091,13 @@ export default {
1
],
"installCount": [
- 31
+ 32
],
"defaultRoleUniversalIdentifier": [
1
],
"roles": [
- 263
+ 264
],
"requestedCapabilities": [
1
@@ -5133,13 +5138,13 @@ export default {
},
"WorkspaceCompanyEnrichmentResult": {
"outcome": [
- 269
+ 270
],
"enrichment": [
9
],
"personOutcome": [
- 270
+ 271
],
"personEnrichment": [
9
@@ -5161,7 +5166,7 @@ export default {
1
],
"type": [
- 272
+ 273
],
"name": [
1
@@ -5185,7 +5190,7 @@ export default {
8
],
"writability": [
- 29
+ 30
],
"isUIReadOnly": [
8
@@ -5230,13 +5235,13 @@ export default {
3
],
"object": [
- 25
+ 26
],
"relation": [
- 276
+ 277
],
"morphRelations": [
- 276
+ 277
],
"__typename": [
1
@@ -5251,10 +5256,10 @@ export default {
8
],
"startCursor": [
- 32
+ 33
],
"endCursor": [
- 32
+ 33
],
"__typename": [
1
@@ -5262,10 +5267,10 @@ export default {
},
"FieldEdge": {
"node": [
- 271
+ 272
],
"cursor": [
- 32
+ 33
],
"__typename": [
1
@@ -5273,10 +5278,10 @@ export default {
},
"FieldConnection": {
"pageInfo": [
- 273
+ 274
],
"edges": [
- 274
+ 275
],
"__typename": [
1
@@ -5284,19 +5289,19 @@ export default {
},
"Relation": {
"type": [
- 277
+ 278
],
"sourceObjectMetadata": [
- 25
+ 26
],
"targetObjectMetadata": [
- 25
+ 26
],
"sourceFieldMetadata": [
- 271
+ 272
],
"targetFieldMetadata": [
- 271
+ 272
],
"__typename": [
1
@@ -5311,7 +5316,7 @@ export default {
3
],
"order": [
- 15
+ 16
],
"subFieldName": [
1
@@ -5343,7 +5348,7 @@ export default {
1
],
"indexType": [
- 280
+ 281
],
"createdAt": [
4
@@ -5352,7 +5357,7 @@ export default {
4
],
"indexFieldMetadataList": [
- 278
+ 279
],
"__typename": [
1
@@ -5361,10 +5366,10 @@ export default {
"IndexType": {},
"IndexEdge": {
"node": [
- 279
+ 280
],
"cursor": [
- 32
+ 33
],
"__typename": [
1
@@ -5372,10 +5377,10 @@ export default {
},
"ObjectEdge": {
"node": [
- 25
+ 26
],
"cursor": [
- 32
+ 33
],
"__typename": [
1
@@ -5383,10 +5388,10 @@ export default {
},
"ObjectConnection": {
"pageInfo": [
- 273
+ 274
],
"edges": [
- 282
+ 283
],
"__typename": [
1
@@ -5394,10 +5399,10 @@ export default {
},
"ObjectFieldsConnection": {
"pageInfo": [
- 273
+ 274
],
"edges": [
- 274
+ 275
],
"__typename": [
1
@@ -5405,10 +5410,10 @@ export default {
},
"ObjectIndexMetadatasConnection": {
"pageInfo": [
- 273
+ 274
],
"edges": [
- 281
+ 282
],
"__typename": [
1
@@ -5419,7 +5424,7 @@ export default {
1
],
"totalCount": [
- 31
+ 32
],
"__typename": [
1
@@ -5436,7 +5441,7 @@ export default {
3
],
"position": [
- 15
+ 16
],
"createdAt": [
4
@@ -5450,7 +5455,7 @@ export default {
},
"BillingEntitlement": {
"key": [
- 289
+ 290
],
"value": [
8
@@ -5488,7 +5493,7 @@ export default {
1
],
"records": [
- 290
+ 291
],
"isCustomDomainEnabled": [
8
@@ -5499,10 +5504,10 @@ export default {
},
"UpsertRowLevelPermissionPredicatesResult": {
"predicates": [
- 46
+ 47
],
"predicateGroups": [
- 44
+ 45
],
"__typename": [
1
@@ -5556,10 +5561,10 @@ export default {
},
"AuthTokenPair": {
"accessOrWorkspaceAgnosticToken": [
- 11
+ 12
],
"refreshToken": [
- 11
+ 12
],
"__typename": [
1
@@ -5567,10 +5572,10 @@ export default {
},
"AvailableWorkspacesAndAccessTokens": {
"tokens": [
- 298
+ 299
],
"availableWorkspaces": [
- 255
+ 256
],
"__typename": [
1
@@ -5608,7 +5613,7 @@ export default {
},
"WorkspaceUrlsAndId": {
"workspaceUrls": [
- 214
+ 215
],
"id": [
3
@@ -5619,10 +5624,10 @@ export default {
},
"SignUp": {
"loginToken": [
- 11
+ 12
],
"workspace": [
- 303
+ 304
],
"__typename": [
1
@@ -5630,7 +5635,7 @@ export default {
},
"TransientToken": {
"transientToken": [
- 11
+ 12
],
"__typename": [
1
@@ -5652,10 +5657,10 @@ export default {
},
"VerifyEmailAndGetLoginToken": {
"loginToken": [
- 11
+ 12
],
"workspaceUrls": [
- 214
+ 215
],
"__typename": [
1
@@ -5699,7 +5704,7 @@ export default {
},
"AuthTokens": {
"tokens": [
- 298
+ 299
],
"__typename": [
1
@@ -5707,7 +5712,7 @@ export default {
},
"LoginToken": {
"loginToken": [
- 11
+ 12
],
"__typename": [
1
@@ -5718,7 +5723,7 @@ export default {
8
],
"availableWorkspacesCount": [
- 15
+ 16
],
"isEmailVerified": [
8
@@ -5737,10 +5742,10 @@ export default {
},
"Impersonate": {
"loginToken": [
- 11
+ 12
],
"workspace": [
- 303
+ 304
],
"__typename": [
1
@@ -5794,7 +5799,7 @@ export default {
1
],
"size": [
- 15
+ 16
],
"createdAt": [
4
@@ -5816,10 +5821,10 @@ export default {
},
"CompleteApplicationFileUploadsResult": {
"files": [
- 318
+ 319
],
"errors": [
- 319
+ 320
],
"__typename": [
1
@@ -5830,7 +5835,7 @@ export default {
3
],
"fileFolder": [
- 322
+ 323
],
"filePath": [
1
@@ -5851,7 +5856,7 @@ export default {
"FileFolder": {},
"ApplicationFileUploadError": {
"fileFolder": [
- 322
+ 323
],
"filePath": [
1
@@ -5865,10 +5870,10 @@ export default {
},
"CreateApplicationFileUploadsResult": {
"targets": [
- 321
+ 322
],
"errors": [
- 323
+ 324
],
"__typename": [
1
@@ -5918,7 +5923,7 @@ export default {
1
],
"status": [
- 329
+ 330
],
"reason": [
1
@@ -5944,16 +5949,16 @@ export default {
},
"ApplicationExport": {
"application": [
- 327
+ 328
],
"manifest": [
9
],
"coverage": [
- 328
+ 329
],
"files": [
- 330
+ 331
],
"__typename": [
1
@@ -5990,7 +5995,7 @@ export default {
1
],
"priority": [
- 15
+ 16
],
"status": [
1
@@ -6013,16 +6018,16 @@ export default {
1
],
"status": [
- 335
+ 336
],
"tenantStatus": [
- 336
+ 337
],
"unsubscribeHostnameStatus": [
- 337
+ 338
],
"verificationRecords": [
- 333
+ 334
],
"verifiedAt": [
4
@@ -6039,7 +6044,7 @@ export default {
3
],
"visibility": [
- 339
+ 340
],
"handle": [
1
@@ -6048,16 +6053,16 @@ export default {
1
],
"type": [
- 340
+ 341
],
"isContactAutoCreationEnabled": [
8
],
"contactAutoCreationPolicy": [
- 341
+ 342
],
"messageFolderImportPolicy": [
- 342
+ 343
],
"excludeNonProfessionalEmails": [
8
@@ -6066,7 +6071,7 @@ export default {
8
],
"pendingGroupEmailsAction": [
- 343
+ 344
],
"isSyncEnabled": [
8
@@ -6075,16 +6080,16 @@ export default {
4
],
"syncStatus": [
- 344
+ 345
],
"syncStage": [
- 345
+ 346
],
"syncStageStartedAt": [
4
],
"throttleFailureCount": [
- 15
+ 16
],
"throttleRetryAfter": [
4
@@ -6099,7 +6104,7 @@ export default {
4
],
"connectedAccount": [
- 210
+ 211
],
"__typename": [
1
@@ -6128,7 +6133,7 @@ export default {
},
"IngestAppMessagesOutput": {
"messages": [
- 346
+ 347
],
"__typename": [
1
@@ -6136,7 +6141,7 @@ export default {
},
"CreateEmailGroupChannelOutput": {
"messageChannel": [
- 338
+ 339
],
"forwardingAddress": [
1
@@ -6147,28 +6152,28 @@ export default {
},
"CampaignAudiencePreviewDTO": {
"totalMembers": [
- 31
+ 32
],
"withoutEmail": [
- 31
+ 32
],
"duplicateEmails": [
- 31
+ 32
],
"hardSuppressed": [
- 31
+ 32
],
"globallyUnsubscribed": [
- 31
+ 32
],
"topicUnsubscribed": [
- 31
+ 32
],
"trackingRefused": [
- 31
+ 32
],
"sendable": [
- 31
+ 32
],
"__typename": [
1
@@ -6179,7 +6184,7 @@ export default {
1
],
"canceledMessageCount": [
- 31
+ 32
],
"__typename": [
1
@@ -6198,10 +6203,10 @@ export default {
1
],
"queuedCount": [
- 31
+ 32
],
"audience": [
- 349
+ 350
],
"__typename": [
1
@@ -6218,10 +6223,10 @@ export default {
1
],
"position": [
- 15
+ 16
],
"memberCount": [
- 15
+ 16
],
"createdAt": [
1
@@ -6244,10 +6249,10 @@ export default {
1
],
"reason": [
- 355
+ 356
],
"source": [
- 356
+ 357
],
"unsubscribeTopicId": [
3
@@ -6260,10 +6265,10 @@ export default {
"MessageSuppressionSource": {},
"MessageSuppressionList": {
"records": [
- 354
+ 355
],
"totalCount": [
- 31
+ 32
],
"__typename": [
1
@@ -6286,7 +6291,7 @@ export default {
1
],
"visibility": [
- 359
+ 360
],
"__typename": [
1
@@ -6306,10 +6311,10 @@ export default {
},
"Location": {
"lat": [
- 15
+ 16
],
"lng": [
- 15
+ 16
],
"__typename": [
1
@@ -6332,7 +6337,7 @@ export default {
1
],
"location": [
- 361
+ 362
],
"__typename": [
1
@@ -6343,13 +6348,13 @@ export default {
1
],
"port": [
- 15
+ 16
],
"username": [
1
],
"connectionSecurity": [
- 208
+ 209
],
"__typename": [
1
@@ -6360,13 +6365,13 @@ export default {
1
],
"IMAP": [
- 363
+ 364
],
"SMTP": [
- 363
+ 364
],
"CALDAV": [
- 363
+ 364
],
"__typename": [
1
@@ -6386,7 +6391,7 @@ export default {
3
],
"connectionParameters": [
- 364
+ 365
],
"__typename": [
1
@@ -6475,7 +6480,7 @@ export default {
3
],
"orderIndex": [
- 31
+ 32
],
"type": [
1
@@ -6573,7 +6578,7 @@ export default {
1
],
"parts": [
- 369
+ 370
],
"processedAt": [
4
@@ -6652,7 +6657,7 @@ export default {
1
],
"series": [
- 374
+ 375
],
"xAxisLabel": [
1
@@ -6667,10 +6672,10 @@ export default {
8
],
"layout": [
- 124
+ 125
],
"groupMode": [
- 123
+ 124
],
"hasTooManyGroups": [
8
@@ -6687,7 +6692,7 @@ export default {
1
],
"y": [
- 15
+ 16
],
"__typename": [
1
@@ -6701,7 +6706,7 @@ export default {
1
],
"data": [
- 376
+ 377
],
"__typename": [
1
@@ -6709,7 +6714,7 @@ export default {
},
"LineChartData": {
"series": [
- 377
+ 378
],
"xAxisLabel": [
1
@@ -6738,7 +6743,7 @@ export default {
1
],
"value": [
- 15
+ 16
],
"__typename": [
1
@@ -6746,7 +6751,7 @@ export default {
},
"PieChartData": {
"data": [
- 379
+ 380
],
"showLegend": [
8
@@ -6778,7 +6783,7 @@ export default {
3
],
"position": [
- 15
+ 16
],
"createdAt": [
1
@@ -6792,10 +6797,10 @@ export default {
},
"AiChatUsage": {
"limitValue": [
- 174
+ 175
],
"consumedValue": [
- 174
+ 175
],
"periodEnd": [
4
@@ -6850,31 +6855,31 @@ export default {
},
"AgentChatThread": {
"id": [
- 184
+ 185
],
"title": [
1
],
"totalCacheReadTokens": [
- 31
+ 32
],
"totalInputTokens": [
- 31
+ 32
],
"totalOutputTokens": [
- 31
+ 32
],
"contextWindowTokens": [
- 31
+ 32
],
"conversationSize": [
- 31
+ 32
],
"totalInputCredits": [
- 15
+ 16
],
"totalOutputCredits": [
- 15
+ 16
],
"createdAt": [
4
@@ -6897,7 +6902,7 @@ export default {
1
],
"estimatedTokenCount": [
- 31
+ 32
],
"__typename": [
1
@@ -6905,10 +6910,10 @@ export default {
},
"AiSystemPromptPreview": {
"sections": [
- 385
+ 386
],
"estimatedTokenCount": [
- 31
+ 32
],
"__typename": [
1
@@ -6930,10 +6935,10 @@ export default {
9
],
"maxSeq": [
- 31
+ 32
],
"error": [
- 387
+ 388
],
"__typename": [
1
@@ -6997,10 +7002,10 @@ export default {
},
"StartWorkspaceSetupChatResult": {
"outcome": [
- 394
+ 395
],
"thread": [
- 384
+ 385
],
"__typename": [
1
@@ -7068,13 +7073,13 @@ export default {
},
"EventLogQueryResult": {
"records": [
- 397
+ 398
],
"totalCount": [
- 31
+ 32
],
"pageInfo": [
- 398
+ 399
],
"__typename": [
1
@@ -7088,7 +7093,7 @@ export default {
1
],
"progress": [
- 31
+ 32
],
"errorMessage": [
1
@@ -7111,7 +7116,7 @@ export default {
1
],
"status": [
- 402
+ 403
],
"errorMessage": [
1
@@ -7129,13 +7134,13 @@ export default {
1
],
"inputTokens": [
- 31
+ 32
],
"outputTokens": [
- 31
+ 32
],
"credits": [
- 15
+ 16
],
"creatorSource": [
1
@@ -7159,13 +7164,13 @@ export default {
"AgentTurnStatus": {},
"WorkspaceAiStats": {
"conversationsCount": [
- 31
+ 32
],
"skillsCount": [
- 31
+ 32
],
"toolsCount": [
- 31
+ 32
],
"__typename": [
1
@@ -7193,7 +7198,7 @@ export default {
1
],
"enqueuedJobsCount": [
- 31
+ 32
],
"jobIds": [
1
@@ -7210,7 +7215,7 @@ export default {
9
],
"scope": [
- 407
+ 408
],
"__typename": [
1
@@ -7225,19 +7230,19 @@ export default {
1
],
"syncStatus": [
- 409
+ 410
],
"syncStage": [
- 410
+ 411
],
"visibility": [
- 411
+ 412
],
"isContactAutoCreationEnabled": [
8
],
"contactAutoCreationPolicy": [
- 412
+ 413
],
"isSyncEnabled": [
8
@@ -7249,7 +7254,7 @@ export default {
4
],
"throttleFailureCount": [
- 15
+ 16
],
"connectedAccountId": [
3
@@ -7288,7 +7293,7 @@ export default {
1
],
"pendingSyncAction": [
- 414
+ 415
],
"messageChannelId": [
3
@@ -7330,7 +7335,7 @@ export default {
1
],
"provenance": [
- 416
+ 417
],
"__typename": [
1
@@ -7359,7 +7364,7 @@ export default {
3
],
"through": [
- 417
+ 418
],
"__typename": [
1
@@ -7379,7 +7384,7 @@ export default {
1
],
"emit": [
- 418
+ 419
],
"action": [
1
@@ -7481,7 +7486,7 @@ export default {
},
"CollectionHash": {
"collectionName": [
- 423
+ 424
],
"hash": [
1
@@ -7531,10 +7536,10 @@ export default {
3
],
"type": [
- 67
+ 68
],
"key": [
- 68
+ 69
],
"objectMetadataId": [
3
@@ -7545,13 +7550,13 @@ export default {
},
"MinimalMetadata": {
"objectMetadataItems": [
- 424
+ 425
],
"views": [
- 425
+ 426
],
"collectionHashes": [
- 422
+ 423
],
"__typename": [
1
@@ -7559,28 +7564,28 @@ export default {
},
"Query": {
"recordSharing": [
- 189,
+ 190,
{
"target": [
- 428,
+ 429,
"RecordTargetInput!"
]
}
],
"recordPermissions": [
- 191,
+ 192,
{
"targets": [
- 428,
+ 429,
"[RecordTargetInput!]!"
]
}
],
"navigationMenuItems": [
- 180
+ 181
],
"navigationMenuItem": [
- 180,
+ 181,
{
"id": [
3,
@@ -7605,10 +7610,10 @@ export default {
}
],
"enterpriseSubscriptionStatus": [
- 98
+ 99
],
"applicationSdkClientChecksums": [
- 99,
+ 100,
{
"applicationId": [
3,
@@ -7626,33 +7631,33 @@ export default {
}
],
"usageLimits": [
- 176
+ 177
],
"usageQuotasWithConsumption": [
- 173
+ 174
],
"usageQuotaDefinitions": [
- 172
+ 173
],
"usageQuotaScopeConsumption": [
- 175,
+ 176,
{
"input": [
- 429,
+ 430,
"UsageQuotaScopeInput!"
]
}
],
"getUsageAnalytics": [
- 166,
+ 167,
{
"input": [
- 430
+ 431
]
}
],
"getPageLayoutWidgets": [
- 103,
+ 104,
{
"pageLayoutTabId": [
1,
@@ -7661,7 +7666,7 @@ export default {
}
],
"getPageLayoutWidget": [
- 103,
+ 104,
{
"id": [
1,
@@ -7670,7 +7675,7 @@ export default {
}
],
"getPageLayoutTabs": [
- 149,
+ 150,
{
"pageLayoutId": [
1,
@@ -7679,7 +7684,7 @@ export default {
}
],
"getPageLayoutTab": [
- 149,
+ 150,
{
"id": [
1,
@@ -7688,18 +7693,18 @@ export default {
}
],
"getPageLayouts": [
- 150,
+ 151,
{
"objectMetadataId": [
1
],
"pageLayoutType": [
- 151
+ 152
]
}
],
"getPageLayout": [
- 150,
+ 151,
{
"id": [
1,
@@ -7708,19 +7713,19 @@ export default {
}
],
"getViews": [
- 66,
+ 67,
{
"objectMetadataId": [
1
],
"viewTypes": [
- 67,
+ 68,
"[ViewType!]"
]
}
],
"getView": [
- 66,
+ 67,
{
"id": [
1,
@@ -7729,7 +7734,7 @@ export default {
}
],
"getViewSorts": [
- 63,
+ 64,
{
"viewId": [
1
@@ -7737,7 +7742,7 @@ export default {
}
],
"getViewSort": [
- 63,
+ 64,
{
"id": [
1,
@@ -7746,7 +7751,7 @@ export default {
}
],
"getViewFilters": [
- 60,
+ 61,
{
"viewId": [
1
@@ -7754,7 +7759,7 @@ export default {
}
],
"getViewFilter": [
- 60,
+ 61,
{
"id": [
1,
@@ -7763,7 +7768,7 @@ export default {
}
],
"getViewFields": [
- 56,
+ 57,
{
"viewId": [
1,
@@ -7772,7 +7777,7 @@ export default {
}
],
"getViewField": [
- 56,
+ 57,
{
"id": [
1,
@@ -7781,7 +7786,7 @@ export default {
}
],
"getViewFieldGroups": [
- 65,
+ 66,
{
"viewId": [
1,
@@ -7790,7 +7795,7 @@ export default {
}
],
"getViewFieldGroup": [
- 65,
+ 66,
{
"id": [
1,
@@ -7799,34 +7804,34 @@ export default {
}
],
"findManyAgents": [
- 10
+ 11
],
"findOneAgent": [
- 10,
+ 11,
{
"input": [
- 431,
+ 432,
"AgentIdInput!"
]
}
],
"findOneLogicFunction": [
- 23,
+ 24,
{
"input": [
- 432,
+ 433,
"LogicFunctionIdInput!"
]
}
],
"findManyLogicFunctions": [
- 23
+ 24
],
"getAvailablePackages": [
9,
{
"input": [
- 432,
+ 433,
"LogicFunctionIdInput!"
]
}
@@ -7835,19 +7840,19 @@ export default {
1,
{
"input": [
- 432,
+ 433,
"LogicFunctionIdInput!"
]
}
],
"currentUserSessions": [
- 156
+ 157
],
"commandMenuItems": [
- 14
+ 15
],
"commandMenuItem": [
- 14,
+ 15,
{
"id": [
3,
@@ -7856,10 +7861,10 @@ export default {
}
],
"frontComponents": [
- 13
+ 14
],
"frontComponent": [
- 13,
+ 14,
{
"id": [
3,
@@ -7868,20 +7873,20 @@ export default {
}
],
"objects": [
- 283,
+ 284,
{
"paging": [
- 30,
+ 31,
"CursorPaging!"
],
"filter": [
- 433,
+ 434,
"ObjectFilter!"
]
}
],
"object": [
- 25,
+ 26,
{
"id": [
3,
@@ -7890,7 +7895,7 @@ export default {
}
],
"objectRecordCounts": [
- 286
+ 287
],
"mostlyEmptyFieldMetadataIds": [
3,
@@ -7902,10 +7907,10 @@ export default {
}
],
"getInviteSuggestions": [
- 202
+ 203
],
"applicationConnectionProviders": [
- 153,
+ 154,
{
"applicationId": [
3,
@@ -7914,7 +7919,7 @@ export default {
}
],
"billingPortalSession": [
- 161,
+ 162,
{
"returnUrlPath": [
1
@@ -7925,22 +7930,22 @@ export default {
}
],
"listPlans": [
- 159
+ 160
],
"getResourceCreditUsage": [
- 158
+ 159
],
"findWorkspaceInvitations": [
- 205
+ 206
],
"getApprovedAccessDomains": [
- 201
+ 202
],
"getRoles": [
- 51
+ 52
],
"getRole": [
- 51,
+ 52,
{
"id": [
3,
@@ -7952,19 +7957,19 @@ export default {
2
],
"getApiKeyRoles": [
- 51
+ 52
],
"apiKey": [
2,
{
"input": [
- 434,
+ 435,
"GetApiKeyInput!"
]
}
],
"getViewFilterGroups": [
- 58,
+ 59,
{
"viewId": [
1
@@ -7972,7 +7977,7 @@ export default {
}
],
"getViewFilterGroup": [
- 58,
+ 59,
{
"id": [
1,
@@ -7981,10 +7986,10 @@ export default {
}
],
"myConnectedAccounts": [
- 210
+ 211
],
"applicationConnectedAccounts": [
- 211,
+ 212,
{
"applicationId": [
3,
@@ -7993,10 +7998,10 @@ export default {
}
],
"currentWorkspace": [
- 72
+ 73
],
"getPublicWorkspaceDataByDomain": [
- 224,
+ 225,
{
"origin": [
1
@@ -8004,7 +8009,7 @@ export default {
}
],
"getPublicWorkspaceDataById": [
- 225,
+ 226,
{
"id": [
3,
@@ -8013,7 +8018,7 @@ export default {
}
],
"findApplicationRegistrationByClientId": [
- 244,
+ 245,
{
"clientId": [
1,
@@ -8022,7 +8027,7 @@ export default {
}
],
"findApplicationRegistrationByUniversalIdentifier": [
- 79,
+ 80,
{
"universalIdentifier": [
1,
@@ -8031,10 +8036,10 @@ export default {
}
],
"findManyApplicationRegistrations": [
- 79
+ 80
],
"findOneApplicationRegistration": [
- 79,
+ 80,
{
"id": [
1,
@@ -8043,7 +8048,7 @@ export default {
}
],
"findApplicationRegistrationStats": [
- 217,
+ 218,
{
"id": [
1,
@@ -8052,7 +8057,7 @@ export default {
}
],
"findApplicationRegistrationVariables": [
- 215,
+ 216,
{
"applicationRegistrationId": [
1,
@@ -8070,7 +8075,7 @@ export default {
}
],
"findClaimableApplicationRegistration": [
- 242,
+ 243,
{
"sourcePackage": [
1
@@ -8090,10 +8095,10 @@ export default {
}
],
"findManyApplications": [
- 52
+ 53
],
"findOneApplication": [
- 52,
+ 53,
{
"id": [
3
@@ -8104,7 +8109,7 @@ export default {
}
],
"findInstallApplicationJobStatus": [
- 192,
+ 193,
{
"universalIdentifier": [
1,
@@ -8113,7 +8118,7 @@ export default {
}
],
"findUninstallApplicationJobStatus": [
- 192,
+ 193,
{
"universalIdentifier": [
1,
@@ -8122,7 +8127,7 @@ export default {
}
],
"findManyMarketplaceApps": [
- 260,
+ 261,
{
"universalIdentifiers": [
1,
@@ -8131,7 +8136,7 @@ export default {
}
],
"findMarketplaceAppDetail": [
- 264,
+ 265,
{
"universalIdentifier": [
1,
@@ -8140,7 +8145,7 @@ export default {
}
],
"publicMarketplaceApps": [
- 260,
+ 261,
{
"isVetted": [
8,
@@ -8149,7 +8154,7 @@ export default {
}
],
"publicMarketplaceAppDetail": [
- 264,
+ 265,
{
"universalIdentifier": [
1,
@@ -8158,20 +8163,20 @@ export default {
}
],
"fields": [
- 275,
+ 276,
{
"paging": [
- 30,
+ 31,
"CursorPaging!"
],
"filter": [
- 33,
+ 34,
"FieldFilter!"
]
}
],
"field": [
- 271,
+ 272,
{
"id": [
3,
@@ -8180,7 +8185,7 @@ export default {
}
],
"getViewGroups": [
- 62,
+ 63,
{
"viewId": [
1
@@ -8188,7 +8193,7 @@ export default {
}
],
"getViewGroup": [
- 62,
+ 63,
{
"id": [
1,
@@ -8197,28 +8202,28 @@ export default {
}
],
"previewMessageCampaignAudience": [
- 349,
+ 350,
{
"input": [
- 435,
+ 436,
"PreviewMessageCampaignAudienceInput!"
]
}
],
"messageSuppressions": [
- 357,
+ 358,
{
"input": [
- 436,
+ 437,
"FindMessageSuppressionsInput!"
]
}
],
"unsubscribeTopics": [
- 358
+ 359
],
"myMessageChannels": [
- 338,
+ 339,
{
"connectedAccountId": [
3
@@ -8226,18 +8231,18 @@ export default {
}
],
"appMessageChannels": [
- 338,
+ 339,
{
"filter": [
- 437
+ 438
]
}
],
"getEmailingDomains": [
- 334
+ 335
],
"getToolIndex": [
- 368
+ 369
],
"getToolInputSchema": [
9,
@@ -8249,10 +8254,10 @@ export default {
}
],
"webhooks": [
- 367
+ 368
],
"webhook": [
- 367,
+ 368,
{
"id": [
3,
@@ -8261,7 +8266,7 @@ export default {
}
],
"myMessageFolders": [
- 413,
+ 414,
{
"messageChannelId": [
3
@@ -8269,7 +8274,7 @@ export default {
}
],
"myCalendarChannels": [
- 408,
+ 409,
{
"connectedAccountId": [
3
@@ -8277,25 +8282,25 @@ export default {
}
],
"getPermissionFlags": [
- 421
+ 422
],
"minimalMetadata": [
- 426
+ 427
],
"appKeyValue": [
- 406,
+ 407,
{
"key": [
1,
"String!"
],
"scope": [
- 407
+ 408
]
}
],
"getJobs": [
- 192,
+ 193,
{
"jobIds": [
1,
@@ -8304,30 +8309,30 @@ export default {
}
],
"appConnections": [
- 246,
+ 247,
{
"filter": [
- 438
+ 439
]
}
],
"appConnection": [
- 246,
+ 247,
{
"id": [
- 184,
+ 185,
"ID!"
]
}
],
"findWorkspaceAiStats": [
- 403
+ 404
],
"aiChatUsage": [
- 382
+ 383
],
"chatThread": [
- 384,
+ 385,
{
"id": [
3,
@@ -8336,7 +8341,7 @@ export default {
}
],
"chatMessages": [
- 370,
+ 371,
{
"threadId": [
3,
@@ -8345,7 +8350,7 @@ export default {
}
],
"chatStreamCatchupChunks": [
- 388,
+ 389,
{
"threadId": [
3,
@@ -8354,13 +8359,13 @@ export default {
}
],
"getAiSystemPromptPreview": [
- 386
+ 387
],
"skills": [
- 383
+ 384
],
"skill": [
- 383,
+ 384,
{
"id": [
3,
@@ -8369,20 +8374,20 @@ export default {
}
],
"agentRuns": [
- 401,
+ 402,
{
"agentId": [
3,
"UUID!"
],
"limit": [
- 31,
+ 32,
"Int!"
]
}
],
"validationRules": [
- 420,
+ 421,
{
"objectMetadataId": [
3,
@@ -8391,19 +8396,19 @@ export default {
}
],
"timelineActivityTypes": [
- 419
+ 420
],
"metadataTranslations": [
- 415,
+ 416,
{
"input": [
- 439,
+ 440,
"MetadataTranslationsInput!"
]
}
],
"checkUserExists": [
- 313,
+ 314,
{
"email": [
1,
@@ -8415,7 +8420,7 @@ export default {
}
],
"checkWorkspaceInviteHashIsValid": [
- 314,
+ 315,
{
"inviteHash": [
1,
@@ -8424,7 +8429,7 @@ export default {
}
],
"findWorkspaceFromInviteHash": [
- 72,
+ 73,
{
"inviteHash": [
1,
@@ -8433,7 +8438,7 @@ export default {
}
],
"checkWorkspaceSubdomainAvailability": [
- 308,
+ 309,
{
"subdomain": [
1,
@@ -8442,10 +8447,10 @@ export default {
}
],
"getWorkspaceCreationDefaults": [
- 309
+ 310
],
"validatePasswordResetToken": [
- 306,
+ 307,
{
"passwordResetToken": [
1,
@@ -8454,43 +8459,43 @@ export default {
}
],
"currentUser": [
- 76
+ 77
],
"getSSOIdentityProviders": [
- 251
+ 252
],
"eventLogs": [
- 399,
+ 400,
{
"input": [
- 440,
+ 441,
"EventLogQueryInput!"
]
}
],
"pieChartData": [
- 380,
+ 381,
{
"input": [
- 446,
+ 447,
"PieChartDataInput!"
]
}
],
"lineChartData": [
- 378,
+ 379,
{
"input": [
- 447,
+ 448,
"LineChartDataInput!"
]
}
],
"barChartData": [
- 375,
+ 376,
{
"input": [
- 448,
+ 449,
"BarChartDataInput!"
]
}
@@ -8505,7 +8510,7 @@ export default {
}
],
"getConnectedImapSmtpCaldavAccount": [
- 365,
+ 366,
{
"id": [
3,
@@ -8514,7 +8519,7 @@ export default {
}
],
"getAutoCompleteAddress": [
- 360,
+ 361,
{
"address": [
1,
@@ -8533,7 +8538,7 @@ export default {
}
],
"getAddressDetails": [
- 362,
+ 363,
{
"placeId": [
1,
@@ -8546,10 +8551,10 @@ export default {
}
],
"findManyPublicDomains": [
- 332
+ 333
],
"exportApplication": [
- 331,
+ 332,
{
"universalIdentifier": [
3,
@@ -8567,7 +8572,7 @@ export default {
}
],
"currentUserApplicationAuthorizations": [
- 317
+ 318
],
"__typename": [
1
@@ -8586,10 +8591,10 @@ export default {
},
"UsageQuotaScopeInput": {
"resourceType": [
- 171
+ 172
],
"operationType": [
- 168
+ 169
],
"spenderType": [
1
@@ -8601,7 +8606,7 @@ export default {
1
],
"unit": [
- 169
+ 170
],
"__typename": [
1
@@ -8618,7 +8623,7 @@ export default {
1
],
"operationTypes": [
- 168
+ 169
],
"__typename": [
1
@@ -8634,7 +8639,7 @@ export default {
},
"LogicFunctionIdInput": {
"id": [
- 184
+ 185
],
"__typename": [
1
@@ -8642,37 +8647,37 @@ export default {
},
"ObjectFilter": {
"and": [
- 433
+ 434
],
"or": [
- 433
+ 434
],
"id": [
- 34
+ 35
],
"universalIdentifier": [
- 34
+ 35
],
"isActive": [
- 35
+ 36
],
"isRemote": [
- 35
+ 36
],
"isSearchable": [
- 35
+ 36
],
"isSystem": [
- 35
+ 36
],
"isUICreatable": [
- 35
+ 36
],
"isUIEditable": [
- 35
+ 36
],
"isUIReadOnly": [
- 35
+ 36
],
"__typename": [
1
@@ -8699,7 +8704,7 @@ export default {
},
"FindMessageSuppressionsInput": {
"reason": [
- 355
+ 356
],
"searchTerm": [
1
@@ -8708,10 +8713,10 @@ export default {
3
],
"limit": [
- 31
+ 32
],
"offset": [
- 31
+ 32
],
"__typename": [
1
@@ -8755,13 +8760,13 @@ export default {
},
"EventLogQueryInput": {
"table": [
- 441
+ 442
],
"filters": [
- 442
+ 443
],
"first": [
- 31
+ 32
],
"after": [
1
@@ -8779,7 +8784,7 @@ export default {
1
],
"dateRange": [
- 443
+ 444
],
"recordId": [
1
@@ -8788,7 +8793,7 @@ export default {
1
],
"fieldFilters": [
- 444
+ 445
],
"__typename": [
1
@@ -8810,7 +8815,7 @@ export default {
1
],
"operand": [
- 445
+ 446
],
"values": [
1
@@ -8858,7 +8863,7 @@ export default {
8,
{
"input": [
- 450,
+ 451,
"AddQuerySubscriptionInput!"
]
}
@@ -8867,92 +8872,92 @@ export default {
8,
{
"input": [
- 451,
+ 452,
"RemoveQueryFromEventStreamInput!"
]
}
],
"setRecordGeneralAccess": [
- 189,
+ 190,
{
"target": [
- 428,
+ 429,
"RecordTargetInput!"
],
"accessLevel": [
- 186,
+ 187,
"RecordShareAccessLevel!"
]
}
],
"setRecordShare": [
- 189,
+ 190,
{
"target": [
- 428,
+ 429,
"RecordTargetInput!"
],
"principal": [
- 452,
+ 453,
"RecordSharePrincipalInput!"
],
"accessLevel": [
- 186,
+ 187,
"RecordShareAccessLevel!"
]
}
],
"removeRecordShare": [
- 189,
+ 190,
{
"target": [
- 428,
+ 429,
"RecordTargetInput!"
],
"principal": [
- 452,
+ 453,
"RecordSharePrincipalInput!"
]
}
],
"createManyNavigationMenuItems": [
- 180,
+ 181,
{
"inputs": [
- 453,
+ 454,
"[CreateNavigationMenuItemInput!]!"
]
}
],
"createNavigationMenuItem": [
- 180,
+ 181,
{
"input": [
- 453,
+ 454,
"CreateNavigationMenuItemInput!"
]
}
],
"updateManyNavigationMenuItems": [
- 180,
+ 181,
{
"inputs": [
- 454,
+ 455,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
],
"updateNavigationMenuItem": [
- 180,
+ 181,
{
"input": [
- 454,
+ 455,
"UpdateOneNavigationMenuItemInput!"
]
}
],
"deleteManyNavigationMenuItems": [
- 180,
+ 181,
{
"ids": [
3,
@@ -8961,7 +8966,7 @@ export default {
}
],
"deleteNavigationMenuItem": [
- 180,
+ 181,
{
"id": [
3,
@@ -8970,18 +8975,18 @@ export default {
}
],
"createFileUpload": [
- 178,
+ 179,
{
"filename": [
1,
"String!"
],
"size": [
- 15,
+ 16,
"Float!"
],
"fileFolder": [
- 322,
+ 323,
"FileFolder!"
],
"fieldMetadataId": [
@@ -8993,7 +8998,7 @@ export default {
}
],
"completeFileUpload": [
- 177,
+ 178,
{
"fileId": [
1,
@@ -9005,10 +9010,10 @@ export default {
8
],
"releaseEnterpriseServerBinding": [
- 97
+ 98
],
"setEnterpriseKey": [
- 97,
+ 98,
{
"enterpriseKey": [
1,
@@ -9017,25 +9022,25 @@ export default {
}
],
"uploadWorkspaceLogo": [
- 177,
+ 178,
{
"file": [
- 456,
+ 457,
"Upload!"
]
}
],
"uploadWorkspaceMemberProfilePicture": [
- 177,
+ 178,
{
"file": [
- 456,
+ 457,
"Upload!"
]
}
],
"completeWorkspaceLogoUpload": [
- 177,
+ 178,
{
"fileId": [
1,
@@ -9044,7 +9049,7 @@ export default {
}
],
"completeWorkspaceMemberProfilePictureUpload": [
- 177,
+ 178,
{
"fileId": [
1,
@@ -9053,10 +9058,10 @@ export default {
}
],
"uploadFilesFieldFileByUniversalIdentifier": [
- 177,
+ 178,
{
"file": [
- 456,
+ 457,
"Upload!"
],
"fieldMetadataUniversalIdentifier": [
@@ -9066,19 +9071,19 @@ export default {
}
],
"createUsageLimit": [
- 176,
+ 177,
{
"input": [
- 457,
+ 458,
"CreateUsageLimitInput!"
]
}
],
"updateUsageLimit": [
- 176,
+ 177,
{
"input": [
- 458,
+ 459,
"UpdateUsageLimitInput!"
]
}
@@ -9093,23 +9098,23 @@ export default {
}
],
"createPageLayoutWidget": [
- 103,
+ 104,
{
"input": [
- 459,
+ 460,
"CreatePageLayoutWidgetInput!"
]
}
],
"updatePageLayoutWidget": [
- 103,
+ 104,
{
"id": [
1,
"String!"
],
"input": [
- 460,
+ 461,
"UpdatePageLayoutWidgetInput!"
]
}
@@ -9124,23 +9129,23 @@ export default {
}
],
"createPageLayoutTab": [
- 149,
+ 150,
{
"input": [
- 461,
+ 462,
"CreatePageLayoutTabInput!"
]
}
],
"updatePageLayoutTab": [
- 149,
+ 150,
{
"id": [
1,
"String!"
],
"input": [
- 462,
+ 463,
"UpdatePageLayoutTabInput!"
]
}
@@ -9155,23 +9160,23 @@ export default {
}
],
"createPageLayout": [
- 150,
+ 151,
{
"input": [
- 463,
+ 464,
"CreatePageLayoutInput!"
]
}
],
"updatePageLayout": [
- 150,
+ 151,
{
"id": [
1,
"String!"
],
"input": [
- 464,
+ 465,
"UpdatePageLayoutInput!"
]
}
@@ -9186,20 +9191,20 @@ export default {
}
],
"updatePageLayoutWithTabsAndWidgets": [
- 150,
+ 151,
{
"id": [
1,
"String!"
],
"input": [
- 465,
+ 466,
"UpdatePageLayoutWithTabsInput!"
]
}
],
"resetPageLayoutToDefault": [
- 150,
+ 151,
{
"id": [
1,
@@ -9208,7 +9213,7 @@ export default {
}
],
"resetPageLayoutWidgetToDefault": [
- 103,
+ 104,
{
"id": [
1,
@@ -9217,7 +9222,7 @@ export default {
}
],
"resetPageLayoutTabToDefault": [
- 149,
+ 150,
{
"id": [
1,
@@ -9226,23 +9231,23 @@ export default {
}
],
"createView": [
- 66,
+ 67,
{
"input": [
- 468,
+ 469,
"CreateViewInput!"
]
}
],
"updateView": [
- 66,
+ 67,
{
"id": [
1,
"String!"
],
"input": [
- 469,
+ 470,
"UpdateViewInput!"
]
}
@@ -9266,28 +9271,28 @@ export default {
}
],
"upsertViewWidget": [
- 66,
+ 67,
{
"input": [
- 470,
+ 471,
"UpsertViewWidgetInput!"
]
}
],
"createViewSort": [
- 63,
+ 64,
{
"input": [
- 476,
+ 477,
"CreateViewSortInput!"
]
}
],
"updateViewSort": [
- 63,
+ 64,
{
"input": [
- 477,
+ 478,
"UpdateViewSortInput!"
]
}
@@ -9296,7 +9301,7 @@ export default {
8,
{
"input": [
- 479,
+ 480,
"DeleteViewSortInput!"
]
}
@@ -9305,196 +9310,196 @@ export default {
8,
{
"input": [
- 480,
+ 481,
"DestroyViewSortInput!"
]
}
],
"createViewFilter": [
- 60,
+ 61,
{
"input": [
- 481,
+ 482,
"CreateViewFilterInput!"
]
}
],
"updateViewFilter": [
- 60,
+ 61,
{
"input": [
- 482,
+ 483,
"UpdateViewFilterInput!"
]
}
],
"deleteViewFilter": [
- 60,
+ 61,
{
"input": [
- 484,
+ 485,
"DeleteViewFilterInput!"
]
}
],
"destroyViewFilter": [
- 60,
+ 61,
{
"input": [
- 485,
+ 486,
"DestroyViewFilterInput!"
]
}
],
"updateViewField": [
- 56,
+ 57,
{
"input": [
- 486,
+ 487,
"UpdateViewFieldInput!"
]
}
],
"createViewField": [
- 56,
+ 57,
{
"input": [
- 488,
+ 489,
"CreateViewFieldInput!"
]
}
],
"createManyViewFields": [
- 56,
+ 57,
{
"inputs": [
- 488,
+ 489,
"[CreateViewFieldInput!]!"
]
}
],
"deleteViewField": [
- 56,
+ 57,
{
"input": [
- 489,
+ 490,
"DeleteViewFieldInput!"
]
}
],
"destroyViewField": [
- 56,
+ 57,
{
"input": [
- 490,
+ 491,
"DestroyViewFieldInput!"
]
}
],
"updateViewFieldGroup": [
- 65,
+ 66,
{
"input": [
- 491,
+ 492,
"UpdateViewFieldGroupInput!"
]
}
],
"createViewFieldGroup": [
- 65,
+ 66,
{
"input": [
- 493,
+ 494,
"CreateViewFieldGroupInput!"
]
}
],
"createManyViewFieldGroups": [
- 65,
+ 66,
{
"inputs": [
- 493,
+ 494,
"[CreateViewFieldGroupInput!]!"
]
}
],
"deleteViewFieldGroup": [
- 65,
+ 66,
{
"input": [
- 494,
+ 495,
"DeleteViewFieldGroupInput!"
]
}
],
"destroyViewFieldGroup": [
- 65,
+ 66,
{
"input": [
- 495,
+ 496,
"DestroyViewFieldGroupInput!"
]
}
],
"upsertFieldsWidget": [
- 66,
+ 67,
{
"input": [
- 496,
+ 497,
"UpsertFieldsWidgetInput!"
]
}
],
"createOneAgent": [
- 10,
+ 11,
{
"input": [
- 499,
+ 500,
"CreateAgentInput!"
]
}
],
"updateOneAgent": [
- 10,
+ 11,
{
"input": [
- 500,
+ 501,
"UpdateAgentInput!"
]
}
],
"deleteOneAgent": [
- 10,
+ 11,
{
"input": [
- 431,
+ 432,
"AgentIdInput!"
]
}
],
"deleteOneLogicFunction": [
- 23,
+ 24,
{
"input": [
- 432,
+ 433,
"LogicFunctionIdInput!"
]
}
],
"createOneLogicFunction": [
- 23,
+ 24,
{
"input": [
- 501,
+ 502,
"CreateLogicFunctionFromSourceInput!"
]
}
],
"executeOneLogicFunction": [
- 154,
+ 155,
{
"input": [
- 502,
+ 503,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -9503,7 +9508,7 @@ export default {
8,
{
"input": [
- 503,
+ 504,
"UpdateLogicFunctionFromSourceInput!"
]
}
@@ -9518,28 +9523,28 @@ export default {
}
],
"revokeAllOtherUserSessions": [
- 31
+ 32
],
"createCommandMenuItem": [
- 14,
+ 15,
{
"input": [
- 505,
+ 506,
"CreateCommandMenuItemInput!"
]
}
],
"updateCommandMenuItem": [
- 14,
+ 15,
{
"input": [
- 506,
+ 507,
"UpdateCommandMenuItemInput!"
]
}
],
"resetCommandMenuItem": [
- 14,
+ 15,
{
"id": [
3,
@@ -9548,7 +9553,7 @@ export default {
}
],
"deleteCommandMenuItem": [
- 14,
+ 15,
{
"id": [
3,
@@ -9557,7 +9562,7 @@ export default {
}
],
"generateFrontComponentApplicationTokenPair": [
- 12,
+ 13,
{
"applicationId": [
3,
@@ -9566,25 +9571,25 @@ export default {
}
],
"createFrontComponent": [
- 13,
+ 14,
{
"input": [
- 507,
+ 508,
"CreateFrontComponentInput!"
]
}
],
"updateFrontComponent": [
- 13,
+ 14,
{
"input": [
- 508,
+ 509,
"UpdateFrontComponentInput!"
]
}
],
"deleteFrontComponent": [
- 13,
+ 14,
{
"id": [
3,
@@ -9609,61 +9614,61 @@ export default {
}
],
"createOneObject": [
- 25,
+ 26,
{
"input": [
- 510,
+ 511,
"CreateOneObjectInput!"
]
}
],
"deleteOneObject": [
- 25,
+ 26,
{
"input": [
- 512,
+ 513,
"DeleteOneObjectInput!"
]
}
],
"updateOneObject": [
- 25,
+ 26,
{
"input": [
- 513,
+ 514,
"UpdateOneObjectInput!"
]
}
],
"updateManyObjects": [
- 25,
+ 26,
{
"inputs": [
- 513,
+ 514,
"[UpdateOneObjectInput!]!"
]
}
],
"createOneIndex": [
- 279,
+ 280,
{
"input": [
- 516,
+ 517,
"CreateOneIndexInput!"
]
}
],
"deleteOneIndex": [
- 279,
+ 280,
{
"input": [
- 519,
+ 520,
"DeleteOneIndexInput!"
]
}
],
"skipSyncEmailOnboardingStep": [
- 204,
+ 205,
{
"isAutoSkipped": [
8,
@@ -9672,7 +9677,7 @@ export default {
}
],
"completeBookCallOnboardingStep": [
- 204,
+ 205,
{
"hasBookedCall": [
8,
@@ -9685,7 +9690,7 @@ export default {
}
],
"triggerInstallAppsOnboardingStep": [
- 204,
+ 205,
{
"universalIdentifiers": [
1,
@@ -9698,17 +9703,17 @@ export default {
}
],
"goBackToPreviousOnboardingStep": [
- 203
+ 204
],
"checkoutSession": [
- 161,
+ 162,
{
"recurringInterval": [
- 87,
+ 88,
"SubscriptionInterval!"
],
"plan": [
- 83,
+ 84,
"BillingPlanKey!"
],
"requirePaymentMethod": [
@@ -9721,14 +9726,14 @@ export default {
}
],
"createSubscriptionPaymentIntent": [
- 160,
+ 161,
{
"recurringInterval": [
- 87,
+ 88,
"SubscriptionInterval!"
],
"plan": [
- 83,
+ 84,
"BillingPlanKey!"
],
"requirePaymentMethod": [
@@ -9745,22 +9750,22 @@ export default {
}
],
"createBillingPaymentMethodSetupIntent": [
- 160
+ 161
],
"switchSubscriptionInterval": [
- 162
+ 163
],
"switchBillingPlan": [
- 162
+ 163
],
"cancelSwitchBillingPlan": [
- 162
+ 163
],
"cancelSwitchBillingInterval": [
- 162
+ 163
],
"setResourceCreditSubscriptionPrice": [
- 162,
+ 163,
{
"priceId": [
1,
@@ -9769,10 +9774,10 @@ export default {
}
],
"endSubscriptionTrialPeriod": [
- 157
+ 158
],
"cancelSwitchResourceCreditPrice": [
- 162
+ 163
],
"deleteWorkspaceInvitation": [
1,
@@ -9784,7 +9789,7 @@ export default {
}
],
"resendWorkspaceInvitation": [
- 206,
+ 207,
{
"appTokenId": [
1,
@@ -9793,7 +9798,7 @@ export default {
}
],
"sendInvitations": [
- 206,
+ 207,
{
"emails": [
1,
@@ -9805,10 +9810,10 @@ export default {
}
],
"createApprovedAccessDomain": [
- 201,
+ 202,
{
"input": [
- 520,
+ 521,
"CreateApprovedAccessDomainInput!"
]
}
@@ -9817,22 +9822,22 @@ export default {
8,
{
"input": [
- 521,
+ 522,
"DeleteApprovedAccessDomainInput!"
]
}
],
"validateApprovedAccessDomain": [
- 201,
+ 202,
{
"input": [
- 522,
+ 523,
"ValidateApprovedAccessDomainInput!"
]
}
],
"updateWorkspaceMemberRole": [
- 38,
+ 39,
{
"workspaceMemberId": [
3,
@@ -9845,19 +9850,19 @@ export default {
}
],
"createOneRole": [
- 51,
+ 52,
{
"createRoleInput": [
- 523,
+ 524,
"CreateRoleInput!"
]
}
],
"updateOneRole": [
- 51,
+ 52,
{
"updateRoleInput": [
- 524,
+ 525,
"UpdateRoleInput!"
]
}
@@ -9872,37 +9877,37 @@ export default {
}
],
"upsertObjectPermissions": [
- 48,
+ 49,
{
"upsertObjectPermissionsInput": [
- 526,
+ 527,
"UpsertObjectPermissionsInput!"
]
}
],
"upsertPermissionFlags": [
- 49,
+ 50,
{
"upsertPermissionFlagsInput": [
- 528,
+ 529,
"UpsertPermissionFlagsInput!"
]
}
],
"upsertFieldPermissions": [
- 43,
+ 44,
{
"upsertFieldPermissionsInput": [
- 529,
+ 530,
"UpsertFieldPermissionsInput!"
]
}
],
"upsertRowLevelPermissionPredicates": [
- 292,
+ 293,
{
"input": [
- 531,
+ 532,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
@@ -9933,7 +9938,7 @@ export default {
2,
{
"input": [
- 534,
+ 535,
"CreateApiKeyInput!"
]
}
@@ -9942,7 +9947,7 @@ export default {
2,
{
"input": [
- 535,
+ 536,
"UpdateApiKeyInput!"
]
}
@@ -9951,7 +9956,7 @@ export default {
2,
{
"input": [
- 536,
+ 537,
"RevokeApiKeyInput!"
]
}
@@ -9970,23 +9975,23 @@ export default {
}
],
"createViewFilterGroup": [
- 58,
+ 59,
{
"input": [
- 537,
+ 538,
"CreateViewFilterGroupInput!"
]
}
],
"updateViewFilterGroup": [
- 58,
+ 59,
{
"id": [
1,
"String!"
],
"input": [
- 538,
+ 539,
"UpdateViewFilterGroupInput!"
]
}
@@ -10010,7 +10015,7 @@ export default {
}
],
"deleteConnectedAccount": [
- 210,
+ 211,
{
"id": [
3,
@@ -10019,7 +10024,7 @@ export default {
}
],
"disconnectConnectedAccount": [
- 210,
+ 211,
{
"id": [
3,
@@ -10028,40 +10033,40 @@ export default {
}
],
"activateWorkspace": [
- 72,
+ 73,
{
"data": [
- 539,
+ 540,
"ActivateWorkspaceInput!"
]
}
],
"updateWorkspace": [
- 72,
+ 73,
{
"data": [
- 540,
+ 541,
"UpdateWorkspaceInput!"
]
}
],
"updateWorkspaceAllowedIframeOrigins": [
- 72,
+ 73,
{
"data": [
- 541,
+ 542,
"UpdateWorkspaceAllowedIframeOriginsInput!"
]
}
],
"deleteCurrentWorkspace": [
- 72
+ 73
],
"checkCustomDomainValidRecords": [
- 291
+ 292
],
"enrichWorkspaceCompany": [
- 268
+ 269
],
"upgradeApplication": [
8,
@@ -10077,19 +10082,19 @@ export default {
}
],
"createApplicationRegistration": [
- 243,
+ 244,
{
"input": [
- 542,
+ 543,
"CreateApplicationRegistrationInput!"
]
}
],
"updateApplicationRegistration": [
- 79,
+ 80,
{
"input": [
- 543,
+ 544,
"UpdateApplicationRegistrationInput!"
]
}
@@ -10104,7 +10109,7 @@ export default {
}
],
"rotateApplicationRegistrationClientSecret": [
- 245,
+ 246,
{
"id": [
1,
@@ -10113,16 +10118,16 @@ export default {
}
],
"updateApplicationRegistrationVariable": [
- 215,
+ 216,
{
"input": [
- 545,
+ 546,
"UpdateApplicationRegistrationVariableInput!"
]
}
],
"completeAppTarballUpload": [
- 79,
+ 80,
{
"fileId": [
3,
@@ -10131,10 +10136,10 @@ export default {
}
],
"uploadAppTarball": [
- 79,
+ 80,
{
"file": [
- 456,
+ 457,
"Upload!"
],
"universalIdentifier": [
@@ -10143,7 +10148,7 @@ export default {
}
],
"claimApplicationRegistrationOwnership": [
- 79,
+ 80,
{
"applicationRegistrationId": [
1,
@@ -10152,7 +10157,7 @@ export default {
}
],
"transferApplicationRegistrationOwnership": [
- 79,
+ 80,
{
"applicationRegistrationId": [
1,
@@ -10165,10 +10170,10 @@ export default {
}
],
"grantApplicationCapabilities": [
- 267,
+ 268,
{
"input": [
- 547,
+ 548,
"GrantApplicationCapabilitiesInput!"
]
}
@@ -10186,7 +10191,7 @@ export default {
}
],
"installApplication": [
- 52,
+ 53,
{
"universalIdentifier": [
1,
@@ -10198,32 +10203,32 @@ export default {
}
],
"triggerInstallApplicationJob": [
- 265,
+ 266,
{
"input": [
- 548,
+ 549,
"TriggerInstallApplicationJobInput!"
]
}
],
"triggerUninstallApplicationJob": [
- 266,
+ 267,
{
"input": [
- 549,
+ 550,
"TriggerUninstallApplicationJobInput!"
]
}
],
"updateApplication": [
- 52,
+ 53,
{
"id": [
3,
"UUID!"
],
"input": [
- 550,
+ 551,
"UpdateApplicationInput!"
]
}
@@ -10241,7 +10246,7 @@ export default {
8
],
"runApplicationHealthCheck": [
- 258,
+ 259,
{
"applicationId": [
3,
@@ -10250,115 +10255,115 @@ export default {
}
],
"createOneField": [
- 271,
+ 272,
{
"input": [
- 551,
+ 552,
"CreateOneFieldMetadataInput!"
]
}
],
"updateOneField": [
- 271,
+ 272,
{
"input": [
- 553,
+ 554,
"UpdateOneFieldMetadataInput!"
]
}
],
"deleteOneField": [
- 271,
+ 272,
{
"input": [
- 555,
+ 556,
"DeleteOneFieldInput!"
]
}
],
"createViewGroup": [
- 62,
+ 63,
{
"input": [
- 556,
+ 557,
"CreateViewGroupInput!"
]
}
],
"createManyViewGroups": [
- 62,
+ 63,
{
"inputs": [
- 556,
+ 557,
"[CreateViewGroupInput!]!"
]
}
],
"updateViewGroup": [
- 62,
+ 63,
{
"input": [
- 557,
+ 558,
"UpdateViewGroupInput!"
]
}
],
"updateManyViewGroups": [
- 62,
+ 63,
{
"inputs": [
- 557,
+ 558,
"[UpdateViewGroupInput!]!"
]
}
],
"deleteViewGroup": [
- 62,
+ 63,
{
"input": [
- 559,
+ 560,
"DeleteViewGroupInput!"
]
}
],
"destroyViewGroup": [
- 62,
+ 63,
{
"input": [
- 560,
+ 561,
"DestroyViewGroupInput!"
]
}
],
"sendMessageCampaign": [
- 352,
+ 353,
{
"input": [
- 561,
+ 562,
"SendMessageCampaignInput!"
]
}
],
"cancelMessageCampaign": [
- 350,
+ 351,
{
"input": [
- 562,
+ 563,
"CancelMessageCampaignInput!"
]
}
],
"sendMessageCampaignTest": [
- 351,
+ 352,
{
"input": [
- 563,
+ 564,
"SendMessageCampaignTestInput!"
]
}
],
"duplicateMessageList": [
- 353,
+ 354,
{
"id": [
3,
@@ -10367,10 +10372,10 @@ export default {
}
],
"createMessageSuppression": [
- 354,
+ 355,
{
"input": [
- 564,
+ 565,
"CreateMessageSuppressionInput!"
]
}
@@ -10385,19 +10390,19 @@ export default {
}
],
"createUnsubscribeTopic": [
- 358,
+ 359,
{
"input": [
- 565,
+ 566,
"CreateUnsubscribeTopicInput!"
]
}
],
"updateUnsubscribeTopic": [
- 358,
+ 359,
{
"input": [
- 566,
+ 567,
"UpdateUnsubscribeTopicInput!"
]
}
@@ -10412,34 +10417,34 @@ export default {
}
],
"updateMessageChannel": [
- 338,
+ 339,
{
"input": [
- 567,
+ 568,
"UpdateMessageChannelInput!"
]
}
],
"createEmailGroupChannel": [
- 348,
+ 349,
{
"input": [
- 569,
+ 570,
"CreateEmailGroupChannelInput!"
]
}
],
"updateEmailGroupChannel": [
- 338,
+ 339,
{
"input": [
- 570,
+ 571,
"UpdateEmailGroupChannelInput!"
]
}
],
"deleteEmailGroupChannel": [
- 338,
+ 339,
{
"id": [
3,
@@ -10448,25 +10453,25 @@ export default {
}
],
"createAppMessageChannel": [
- 338,
+ 339,
{
"input": [
- 571,
+ 572,
"CreateAppMessageChannelInput!"
]
}
],
"updateAppMessageChannel": [
- 338,
+ 339,
{
"input": [
- 572,
+ 573,
"UpdateAppMessageChannelInput!"
]
}
],
"deleteAppMessageChannel": [
- 338,
+ 339,
{
"id": [
3,
@@ -10475,19 +10480,19 @@ export default {
}
],
"ingestAppMessages": [
- 347,
+ 348,
{
"input": [
- 573,
+ 574,
"IngestAppMessagesInput!"
]
}
],
"createEmailingDomain": [
- 334,
+ 335,
{
"input": [
- 577,
+ 578,
"CreateEmailingDomainInput!"
]
}
@@ -10502,7 +10507,7 @@ export default {
}
],
"verifyEmailingDomain": [
- 334,
+ 335,
{
"id": [
1,
@@ -10511,25 +10516,25 @@ export default {
}
],
"createWebhook": [
- 367,
+ 368,
{
"input": [
- 578,
+ 579,
"CreateWebhookInput!"
]
}
],
"updateWebhook": [
- 367,
+ 368,
{
"input": [
- 579,
+ 580,
"UpdateWebhookInput!"
]
}
],
"deleteWebhook": [
- 367,
+ 368,
{
"id": [
3,
@@ -10538,46 +10543,46 @@ export default {
}
],
"runAgent": [
- 371,
+ 372,
{
"input": [
- 581,
+ 582,
"RunAgentInput!"
]
}
],
"updateMessageFolder": [
- 413,
+ 414,
{
"input": [
- 586,
+ 587,
"UpdateMessageFolderInput!"
]
}
],
"updateMessageFolders": [
- 413,
+ 414,
{
"input": [
- 588,
+ 589,
"UpdateMessageFoldersInput!"
]
}
],
"updateCalendarChannel": [
- 408,
+ 409,
{
"input": [
- 589,
+ 590,
"UpdateCalendarChannelInput!"
]
}
],
"setAppKeyValue": [
- 406,
+ 407,
{
"input": [
- 591,
+ 592,
"SetAppKeyValueInput!"
]
}
@@ -10590,24 +10595,24 @@ export default {
"String!"
],
"scope": [
- 407
+ 408
]
}
],
"enqueueJob": [
- 404,
+ 405,
{
"input": [
- 592,
+ 593,
"EnqueueJobInput!"
]
}
],
"enqueueJobs": [
- 405,
+ 406,
{
"input": [
- 593,
+ 594,
"EnqueueJobsInput!"
]
}
@@ -10616,16 +10621,16 @@ export default {
8,
{
"input": [
- 595,
+ 596,
"ReportAppConnectionAuthFailureInput!"
]
}
],
"createChatThread": [
- 384
+ 385
],
"sendChatMessage": [
- 389,
+ 390,
{
"threadId": [
3,
@@ -10646,13 +10651,13 @@ export default {
1
],
"fileAttachments": [
- 596,
+ 597,
"[FileAttachmentInput!]"
]
}
],
"retryChatMessage": [
- 389,
+ 390,
{
"threadId": [
3,
@@ -10682,7 +10687,7 @@ export default {
}
],
"markAgentChatThreadAsRead": [
- 390,
+ 391,
{
"threadId": [
3,
@@ -10691,7 +10696,7 @@ export default {
}
],
"markAgentChatThreadAsUnread": [
- 390,
+ 391,
{
"threadId": [
3,
@@ -10700,7 +10705,7 @@ export default {
}
],
"archiveAgentChatThread": [
- 390,
+ 391,
{
"threadId": [
3,
@@ -10709,7 +10714,7 @@ export default {
}
],
"snoozeAgentChatThread": [
- 390,
+ 391,
{
"threadId": [
3,
@@ -10722,7 +10727,7 @@ export default {
}
],
"moveAgentChatThreadToInbox": [
- 390,
+ 391,
{
"threadId": [
3,
@@ -10744,7 +10749,7 @@ export default {
}
],
"startWorkspaceSetupChat": [
- 393,
+ 394,
{
"companyContext": [
9
@@ -10755,34 +10760,34 @@ export default {
}
],
"sendInboxMessage": [
- 392,
+ 393,
{
"input": [
- 597,
+ 598,
"SendInboxMessageInput!"
]
}
],
"createSkill": [
- 383,
+ 384,
{
"input": [
- 598,
+ 599,
"CreateSkillInput!"
]
}
],
"updateSkill": [
- 383,
+ 384,
{
"input": [
- 599,
+ 600,
"UpdateSkillInput!"
]
}
],
"deleteSkill": [
- 383,
+ 384,
{
"id": [
3,
@@ -10791,7 +10796,7 @@ export default {
}
],
"activateSkill": [
- 383,
+ 384,
{
"id": [
3,
@@ -10800,7 +10805,7 @@ export default {
}
],
"deactivateSkill": [
- 383,
+ 384,
{
"id": [
3,
@@ -10809,25 +10814,25 @@ export default {
}
],
"createValidationRule": [
- 420,
+ 421,
{
"input": [
- 600,
+ 601,
"CreateValidationRuleInput!"
]
}
],
"updateValidationRule": [
- 420,
+ 421,
{
"input": [
- 601,
+ 602,
"UpdateValidationRuleInput!"
]
}
],
"deleteValidationRule": [
- 420,
+ 421,
{
"id": [
3,
@@ -10836,16 +10841,16 @@ export default {
}
],
"updateTimelineActivityType": [
- 419,
+ 420,
{
"input": [
- 603,
+ 604,
"UpdateTimelineActivityTypeInput!"
]
}
],
"resetTimelineActivityType": [
- 419,
+ 420,
{
"id": [
3,
@@ -10854,16 +10859,16 @@ export default {
}
],
"getAuthorizationUrlForSSO": [
- 301,
+ 302,
{
"input": [
- 604,
+ 605,
"GetAuthorizationUrlForSSOInput!"
]
}
],
"getLoginTokenFromCredentials": [
- 312,
+ 313,
{
"email": [
1,
@@ -10889,7 +10894,7 @@ export default {
}
],
"signIn": [
- 299,
+ 300,
{
"email": [
1,
@@ -10911,7 +10916,7 @@ export default {
}
],
"verifyEmailAndGetLoginToken": [
- 307,
+ 308,
{
"emailVerificationToken": [
1,
@@ -10931,7 +10936,7 @@ export default {
}
],
"verifyEmailAndGetWorkspaceAgnosticToken": [
- 299,
+ 300,
{
"emailVerificationToken": [
1,
@@ -10947,7 +10952,7 @@ export default {
}
],
"getAuthTokensFromOTP": [
- 311,
+ 312,
{
"otp": [
1,
@@ -10967,7 +10972,7 @@ export default {
}
],
"signUp": [
- 299,
+ 300,
{
"email": [
1,
@@ -10989,7 +10994,7 @@ export default {
}
],
"signUpInWorkspace": [
- 304,
+ 305,
{
"email": [
1,
@@ -11020,28 +11025,28 @@ export default {
}
],
"signUpInNewWorkspace": [
- 304,
+ 305,
{
"input": [
- 605
+ 606
]
}
],
"uploadNewWorkspaceLogo": [
- 177,
+ 178,
{
"workspaceId": [
1,
"String!"
],
"file": [
- 456,
+ 457,
"Upload!"
]
}
],
"createNewWorkspaceLogoUpload": [
- 178,
+ 179,
{
"workspaceId": [
1,
@@ -11052,13 +11057,13 @@ export default {
"String!"
],
"size": [
- 15,
+ 16,
"Float!"
]
}
],
"completeNewWorkspaceLogoUpload": [
- 177,
+ 178,
{
"workspaceId": [
1,
@@ -11071,10 +11076,10 @@ export default {
}
],
"generateTransientToken": [
- 305
+ 306
],
"getAuthTokensFromLoginToken": [
- 311,
+ 312,
{
"loginToken": [
1,
@@ -11087,7 +11092,7 @@ export default {
}
],
"getAuthTokensFromSSOExchangeToken": [
- 311,
+ 312,
{
"ssoExchangeToken": [
1,
@@ -11096,7 +11101,7 @@ export default {
}
],
"authorizeApp": [
- 297,
+ 298,
{
"clientId": [
1,
@@ -11121,7 +11126,7 @@ export default {
}
],
"renewToken": [
- 311,
+ 312,
{
"appToken": [
1,
@@ -11138,7 +11143,7 @@ export default {
}
],
"generateApiKeyToken": [
- 310,
+ 311,
{
"apiKeyId": [
3,
@@ -11151,10 +11156,10 @@ export default {
}
],
"generatePlaygroundToken": [
- 11
+ 12
],
"emailPasswordResetLink": [
- 300,
+ 301,
{
"email": [
1,
@@ -11169,7 +11174,7 @@ export default {
}
],
"updatePasswordViaResetToken": [
- 302,
+ 303,
{
"passwordResetToken": [
1,
@@ -11182,7 +11187,7 @@ export default {
}
],
"initiateOTPProvisioning": [
- 295,
+ 296,
{
"loginToken": [
1,
@@ -11195,10 +11200,10 @@ export default {
}
],
"initiateOTPProvisioningForAuthenticatedUser": [
- 295
+ 296
],
"deleteTwoFactorAuthenticationMethod": [
- 294,
+ 295,
{
"twoFactorAuthenticationMethodId": [
3,
@@ -11207,7 +11212,7 @@ export default {
}
],
"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 296,
+ 297,
{
"otp": [
1,
@@ -11216,10 +11221,10 @@ export default {
}
],
"deleteUser": [
- 76
+ 77
],
"deleteUserFromWorkspace": [
- 54,
+ 55,
{
"workspaceMemberIdToDelete": [
1,
@@ -11231,7 +11236,7 @@ export default {
8,
{
"input": [
- 606,
+ 607,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -11249,7 +11254,7 @@ export default {
}
],
"resendEmailVerificationToken": [
- 247,
+ 248,
{
"email": [
1,
@@ -11262,43 +11267,43 @@ export default {
}
],
"createOIDCIdentityProvider": [
- 252,
+ 253,
{
"input": [
- 607,
+ 608,
"SetupOIDCSsoInput!"
]
}
],
"createSAMLIdentityProvider": [
- 252,
+ 253,
{
"input": [
- 608,
+ 609,
"SetupSAMLSsoInput!"
]
}
],
"deleteSSOIdentityProvider": [
- 248,
+ 249,
{
"input": [
- 609,
+ 610,
"DeleteSsoInput!"
]
}
],
"editSSOIdentityProvider": [
- 249,
+ 250,
{
"input": [
- 610,
+ 611,
"EditSsoInput!"
]
}
],
"createObjectEvent": [
- 396,
+ 397,
{
"event": [
1,
@@ -11318,10 +11323,10 @@ export default {
}
],
"trackAnalytics": [
- 396,
+ 397,
{
"type": [
- 611,
+ 612,
"AnalyticsType!"
],
"name": [
@@ -11336,7 +11341,7 @@ export default {
}
],
"duplicateDashboard": [
- 381,
+ 382,
{
"id": [
3,
@@ -11345,7 +11350,7 @@ export default {
}
],
"impersonate": [
- 315,
+ 316,
{
"userId": [
3,
@@ -11358,28 +11363,28 @@ export default {
}
],
"stopImpersonation": [
- 316
+ 317
],
"createCalendarEvent": [
- 373,
+ 374,
{
"input": [
- 612,
+ 613,
"CreateCalendarEventInput!"
]
}
],
"sendEmail": [
- 395,
+ 396,
{
"input": [
- 613,
+ 614,
"SendEmailInput!"
]
}
],
"startChannelSync": [
- 372,
+ 373,
{
"connectedAccountId": [
3,
@@ -11388,14 +11393,14 @@ export default {
}
],
"saveImapSmtpCaldavAccount": [
- 366,
+ 367,
{
"handle": [
1,
"String!"
],
"connectionParameters": [
- 615,
+ 616,
"EmailAccountConnectionParameters!"
],
"id": [
@@ -11404,16 +11409,16 @@ export default {
}
],
"updateLabPublicFeatureFlag": [
- 212,
+ 213,
{
"input": [
- 617,
+ 618,
"UpdateLabPublicFeatureFlagInput!"
]
}
],
"createPublicDomain": [
- 332,
+ 333,
{
"domain": [
1,
@@ -11435,7 +11440,7 @@ export default {
}
],
"checkPublicDomainValidRecords": [
- 291,
+ 292,
{
"domain": [
1,
@@ -11444,7 +11449,7 @@ export default {
}
],
"createDevelopmentApplication": [
- 325,
+ 326,
{
"universalIdentifier": [
1,
@@ -11457,7 +11462,7 @@ export default {
}
],
"syncApplication": [
- 326,
+ 327,
{
"manifest": [
9,
@@ -11472,10 +11477,10 @@ export default {
}
],
"uploadApplicationFile": [
- 318,
+ 319,
{
"file": [
- 456,
+ 457,
"Upload!"
],
"applicationUniversalIdentifier": [
@@ -11483,7 +11488,7 @@ export default {
"String!"
],
"fileFolder": [
- 322,
+ 323,
"FileFolder!"
],
"filePath": [
@@ -11493,20 +11498,20 @@ export default {
}
],
"createApplicationFileUploads": [
- 324,
+ 325,
{
"applicationUniversalIdentifier": [
1,
"String!"
],
"files": [
- 618,
+ 619,
"[ApplicationFileUploadRequestInput!]!"
]
}
],
"completeApplicationFileUploads": [
- 320,
+ 321,
{
"applicationUniversalIdentifier": [
1,
@@ -11528,7 +11533,7 @@ export default {
}
],
"renewApplicationToken": [
- 12,
+ 13,
{
"applicationRefreshToken": [
1,
@@ -11593,7 +11598,7 @@ export default {
3
],
"type": [
- 181
+ 182
],
"name": [
1
@@ -11614,7 +11619,7 @@ export default {
3
],
"position": [
- 15
+ 16
],
"__typename": [
1
@@ -11625,7 +11630,7 @@ export default {
3
],
"update": [
- 455
+ 456
],
"__typename": [
1
@@ -11636,7 +11641,7 @@ export default {
3
],
"position": [
- 15
+ 16
],
"name": [
1
@@ -11660,10 +11665,10 @@ export default {
"Upload": {},
"CreateUsageLimitInput": {
"resourceType": [
- 171
+ 172
],
"operationType": [
- 168
+ 169
],
"spenderType": [
1
@@ -11675,19 +11680,19 @@ export default {
1
],
"periodCount": [
- 31
+ 32
],
"periodUnit": [
1
],
"unit": [
- 169
+ 170
],
"limitValue": [
- 174
+ 175
],
"burstValue": [
- 174
+ 175
],
"__typename": [
1
@@ -11698,7 +11703,7 @@ export default {
3
],
"payload": [
- 457
+ 458
],
"__typename": [
1
@@ -11712,7 +11717,7 @@ export default {
1
],
"type": [
- 104
+ 105
],
"objectMetadataId": [
3
@@ -11735,7 +11740,7 @@ export default {
1
],
"type": [
- 104
+ 105
],
"objectMetadataId": [
3
@@ -11761,13 +11766,13 @@ export default {
1
],
"position": [
- 15
+ 16
],
"pageLayoutId": [
3
],
"layoutMode": [
- 107
+ 108
],
"__typename": [
1
@@ -11778,13 +11783,13 @@ export default {
1
],
"position": [
- 15
+ 16
],
"icon": [
1
],
"layoutMode": [
- 107
+ 108
],
"__typename": [
1
@@ -11795,7 +11800,7 @@ export default {
1
],
"type": [
- 151
+ 152
],
"objectMetadataId": [
3
@@ -11809,7 +11814,7 @@ export default {
1
],
"type": [
- 151
+ 152
],
"objectMetadataId": [
3
@@ -11823,7 +11828,7 @@ export default {
1
],
"type": [
- 151
+ 152
],
"objectMetadataId": [
3
@@ -11832,7 +11837,7 @@ export default {
8
],
"tabs": [
- 466
+ 467
],
"__typename": [
1
@@ -11846,16 +11851,16 @@ export default {
1
],
"position": [
- 15
+ 16
],
"icon": [
1
],
"layoutMode": [
- 107
+ 108
],
"widgets": [
- 467
+ 468
],
"__typename": [
1
@@ -11872,7 +11877,7 @@ export default {
1
],
"type": [
- 104
+ 105
],
"objectMetadataId": [
3
@@ -11904,16 +11909,16 @@ export default {
3
],
"type": [
- 67
+ 68
],
"key": [
- 68
+ 69
],
"icon": [
1
],
"position": [
- 15
+ 16
],
"isCompact": [
8
@@ -11922,16 +11927,16 @@ export default {
8
],
"kanbanColumnWidth": [
- 31
+ 32
],
"groupLoadLimit": [
- 31
+ 32
],
"openRecordIn": [
- 69
+ 70
],
"kanbanAggregateOperation": [
- 57
+ 58
],
"kanbanAggregateOperationFieldMetadataId": [
3
@@ -11940,7 +11945,7 @@ export default {
1
],
"calendarLayout": [
- 70
+ 71
],
"calendarFieldMetadataId": [
3
@@ -11952,7 +11957,7 @@ export default {
3
],
"visibility": [
- 71
+ 72
],
"__typename": [
1
@@ -11966,22 +11971,22 @@ export default {
1
],
"type": [
- 67
+ 68
],
"icon": [
1
],
"position": [
- 15
+ 16
],
"isCompact": [
8
],
"openRecordIn": [
- 69
+ 70
],
"kanbanAggregateOperation": [
- 57
+ 58
],
"kanbanAggregateOperationFieldMetadataId": [
3
@@ -11990,7 +11995,7 @@ export default {
1
],
"calendarLayout": [
- 70
+ 71
],
"calendarFieldMetadataId": [
3
@@ -11999,7 +12004,7 @@ export default {
3
],
"visibility": [
- 71
+ 72
],
"mainGroupByFieldMetadataId": [
3
@@ -12008,10 +12013,10 @@ export default {
8
],
"kanbanColumnWidth": [
- 31
+ 32
],
"groupLoadLimit": [
- 31
+ 32
],
"__typename": [
1
@@ -12022,19 +12027,19 @@ export default {
3
],
"view": [
- 471
+ 472
],
"viewFields": [
- 472
+ 473
],
"viewFilters": [
- 473
+ 474
],
"viewFilterGroups": [
- 474
+ 475
],
"viewSorts": [
- 475
+ 476
],
"__typename": [
1
@@ -12042,7 +12047,7 @@ export default {
},
"UpsertViewWidgetViewSettingsInput": {
"type": [
- 67
+ 68
],
"mainGroupByFieldMetadataId": [
3
@@ -12051,19 +12056,19 @@ export default {
8
],
"openRecordIn": [
- 69
+ 70
],
"kanbanAggregateOperation": [
- 57
+ 58
],
"kanbanAggregateOperationFieldMetadataId": [
3
],
"kanbanColumnWidth": [
- 31
+ 32
],
"calendarLayout": [
- 70
+ 71
],
"calendarFieldMetadataId": [
3
@@ -12086,13 +12091,13 @@ export default {
8
],
"position": [
- 15
+ 16
],
"size": [
- 15
+ 16
],
"aggregateOperation": [
- 57
+ 58
],
"__typename": [
1
@@ -12106,7 +12111,7 @@ export default {
3
],
"operand": [
- 61
+ 62
],
"value": [
9
@@ -12115,7 +12120,7 @@ export default {
3
],
"positionInViewFilterGroup": [
- 15
+ 16
],
"subFieldName": [
1
@@ -12135,10 +12140,10 @@ export default {
3
],
"logicalOperator": [
- 59
+ 60
],
"positionInViewFilterGroup": [
- 15
+ 16
],
"__typename": [
1
@@ -12152,7 +12157,7 @@ export default {
3
],
"direction": [
- 64
+ 65
],
"__typename": [
1
@@ -12166,7 +12171,7 @@ export default {
3
],
"direction": [
- 64
+ 65
],
"subFieldName": [
1
@@ -12183,7 +12188,7 @@ export default {
3
],
"update": [
- 478
+ 479
],
"__typename": [
1
@@ -12191,7 +12196,7 @@ export default {
},
"UpdateViewSortInputUpdates": {
"direction": [
- 64
+ 65
],
"subFieldName": [
1
@@ -12224,7 +12229,7 @@ export default {
3
],
"operand": [
- 61
+ 62
],
"value": [
9
@@ -12233,7 +12238,7 @@ export default {
3
],
"positionInViewFilterGroup": [
- 15
+ 16
],
"subFieldName": [
1
@@ -12253,7 +12258,7 @@ export default {
3
],
"update": [
- 483
+ 484
],
"__typename": [
1
@@ -12264,7 +12269,7 @@ export default {
3
],
"operand": [
- 61
+ 62
],
"value": [
9
@@ -12273,7 +12278,7 @@ export default {
3
],
"positionInViewFilterGroup": [
- 15
+ 16
],
"subFieldName": [
1
@@ -12306,7 +12311,7 @@ export default {
3
],
"update": [
- 487
+ 488
],
"__typename": [
1
@@ -12317,13 +12322,13 @@ export default {
8
],
"size": [
- 15
+ 16
],
"position": [
- 15
+ 16
],
"aggregateOperation": [
- 57
+ 58
],
"viewFieldGroupId": [
3
@@ -12346,13 +12351,13 @@ export default {
8
],
"size": [
- 15
+ 16
],
"position": [
- 15
+ 16
],
"aggregateOperation": [
- 57
+ 58
],
"viewFieldGroupId": [
3
@@ -12382,7 +12387,7 @@ export default {
3
],
"update": [
- 492
+ 493
],
"__typename": [
1
@@ -12393,7 +12398,7 @@ export default {
1
],
"position": [
- 15
+ 16
],
"isVisible": [
8
@@ -12416,7 +12421,7 @@ export default {
3
],
"position": [
- 15
+ 16
],
"isVisible": [
8
@@ -12446,10 +12451,10 @@ export default {
3
],
"groups": [
- 497
+ 498
],
"fields": [
- 498
+ 499
],
"__typename": [
1
@@ -12463,13 +12468,13 @@ export default {
1
],
"position": [
- 15
+ 16
],
"isVisible": [
8
],
"fields": [
- 498
+ 499
],
"__typename": [
1
@@ -12486,7 +12491,7 @@ export default {
8
],
"position": [
- 15
+ 16
],
"__typename": [
1
@@ -12579,7 +12584,7 @@ export default {
1
],
"timeoutSeconds": [
- 15
+ 16
],
"source": [
9
@@ -12622,7 +12627,7 @@ export default {
3
],
"update": [
- 504
+ 505
],
"__typename": [
1
@@ -12636,7 +12641,7 @@ export default {
1
],
"timeoutSeconds": [
- 15
+ 16
],
"sourceHandlerCode": [
1
@@ -12677,7 +12682,7 @@ export default {
3
],
"engineComponentKey": [
- 16
+ 17
],
"label": [
1
@@ -12689,13 +12694,13 @@ export default {
1
],
"position": [
- 15
+ 16
],
"isPinned": [
8
],
"availabilityType": [
- 17
+ 18
],
"hotKeys": [
1
@@ -12736,19 +12741,19 @@ export default {
1
],
"position": [
- 15
+ 16
],
"isPinned": [
8
],
"availabilityType": [
- 17
+ 18
],
"availabilityObjectMetadataId": [
3
],
"engineComponentKey": [
- 16
+ 17
],
"hotKeys": [
1
@@ -12791,7 +12796,7 @@ export default {
3
],
"update": [
- 509
+ 510
],
"__typename": [
1
@@ -12810,7 +12815,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 511
+ 512
],
"__typename": [
1
@@ -12870,7 +12875,7 @@ export default {
},
"UpdateOneObjectInput": {
"update": [
- 514
+ 515
],
"id": [
3
@@ -12920,16 +12925,16 @@ export default {
8
],
"openRecordIn": [
- 26
+ 27
],
"readability": [
- 27
+ 28
],
"sharingReach": [
- 28
+ 29
],
"translations": [
- 515
+ 516
],
"__typename": [
1
@@ -12951,7 +12956,7 @@ export default {
},
"CreateOneIndexInput": {
"index": [
- 517
+ 518
],
"__typename": [
1
@@ -12962,10 +12967,10 @@ export default {
3
],
"fields": [
- 518
+ 519
],
"indexType": [
- 280
+ 281
],
"__typename": [
1
@@ -13066,7 +13071,7 @@ export default {
},
"UpdateRoleInput": {
"update": [
- 525
+ 526
],
"id": [
3
@@ -13121,7 +13126,7 @@ export default {
3
],
"objectPermissions": [
- 527
+ 528
],
"__typename": [
1
@@ -13163,7 +13168,7 @@ export default {
3
],
"fieldPermissions": [
- 530
+ 531
],
"__typename": [
1
@@ -13194,10 +13199,10 @@ export default {
3
],
"predicates": [
- 532
+ 533
],
"predicateGroups": [
- 533
+ 534
],
"__typename": [
1
@@ -13211,7 +13216,7 @@ export default {
3
],
"operand": [
- 47
+ 48
],
"value": [
9
@@ -13229,7 +13234,7 @@ export default {
3
],
"positionInRowLevelPermissionPredicateGroup": [
- 15
+ 16
],
"__typename": [
1
@@ -13246,10 +13251,10 @@ export default {
3
],
"logicalOperator": [
- 45
+ 46
],
"positionInRowLevelPermissionPredicateGroup": [
- 15
+ 16
],
"__typename": [
1
@@ -13305,10 +13310,10 @@ export default {
3
],
"logicalOperator": [
- 59
+ 60
],
"positionInViewFilterGroup": [
- 15
+ 16
],
"viewId": [
3
@@ -13325,10 +13330,10 @@ export default {
3
],
"logicalOperator": [
- 59
+ 60
],
"positionInViewFilterGroup": [
- 15
+ 16
],
"viewId": [
3
@@ -13368,7 +13373,7 @@ export default {
8
],
"workspaceDiscoverability": [
- 73
+ 74
],
"allowImpersonation": [
8
@@ -13398,16 +13403,16 @@ export default {
8
],
"trashRetentionDays": [
- 15
+ 16
],
"eventLogRetentionDays": [
- 15
+ 16
],
"aiChatModelTier": [
- 75
+ 76
],
"aiAgentModelTier": [
- 75
+ 76
],
"isAutoModelSelectionEnabled": [
8
@@ -13464,7 +13469,7 @@ export default {
1
],
"update": [
- 544
+ 545
],
"__typename": [
1
@@ -13489,7 +13494,7 @@ export default {
1
],
"update": [
- 546
+ 547
],
"__typename": [
1
@@ -13546,7 +13551,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 552
+ 553
],
"__typename": [
1
@@ -13554,7 +13559,7 @@ export default {
},
"CreateFieldInput": {
"type": [
- 272
+ 273
],
"name": [
1
@@ -13625,7 +13630,7 @@ export default {
3
],
"update": [
- 554
+ 555
],
"__typename": [
1
@@ -13690,7 +13695,7 @@ export default {
9
],
"translations": [
- 515
+ 516
],
"__typename": [
1
@@ -13715,7 +13720,7 @@ export default {
1
],
"position": [
- 15
+ 16
],
"viewId": [
3
@@ -13729,7 +13734,7 @@ export default {
3
],
"update": [
- 558
+ 559
],
"__typename": [
1
@@ -13746,7 +13751,7 @@ export default {
1
],
"position": [
- 15
+ 16
],
"__typename": [
1
@@ -13826,7 +13831,7 @@ export default {
1
],
"visibility": [
- 359
+ 360
],
"__typename": [
1
@@ -13843,7 +13848,7 @@ export default {
1
],
"visibility": [
- 359
+ 360
],
"__typename": [
1
@@ -13854,7 +13859,7 @@ export default {
3
],
"update": [
- 568
+ 569
],
"__typename": [
1
@@ -13862,16 +13867,16 @@ export default {
},
"UpdateMessageChannelInputUpdates": {
"visibility": [
- 339
+ 340
],
"isContactAutoCreationEnabled": [
8
],
"contactAutoCreationPolicy": [
- 341
+ 342
],
"messageFolderImportPolicy": [
- 342
+ 343
],
"isSyncEnabled": [
8
@@ -13919,7 +13924,7 @@ export default {
1
],
"visibility": [
- 339
+ 340
],
"__typename": [
1
@@ -13933,7 +13938,7 @@ export default {
1
],
"visibility": [
- 339
+ 340
],
"isSyncEnabled": [
8
@@ -13947,7 +13952,7 @@ export default {
3
],
"messages": [
- 574
+ 575
],
"__typename": [
1
@@ -13970,7 +13975,7 @@ export default {
4
],
"participants": [
- 575
+ 576
],
"__typename": [
1
@@ -13978,7 +13983,7 @@ export default {
},
"AppMessageParticipantInput": {
"role": [
- 576
+ 577
],
"handle": [
1
@@ -14030,7 +14035,7 @@ export default {
3
],
"update": [
- 580
+ 581
],
"__typename": [
1
@@ -14064,16 +14069,16 @@ export default {
3
],
"messages": [
- 582
+ 583
],
"input": [
- 582
+ 583
],
"additionalInstructions": [
1
],
"thread": [
- 585
+ 586
],
"__typename": [
1
@@ -14081,13 +14086,13 @@ export default {
},
"RunAgentMessageInput": {
"role": [
- 583
+ 584
],
"content": [
1
],
"attachments": [
- 584
+ 585
],
"__typename": [
1
@@ -14121,7 +14126,7 @@ export default {
3
],
"update": [
- 587
+ 588
],
"__typename": [
1
@@ -14140,7 +14145,7 @@ export default {
3
],
"update": [
- 587
+ 588
],
"__typename": [
1
@@ -14151,7 +14156,7 @@ export default {
3
],
"update": [
- 590
+ 591
],
"__typename": [
1
@@ -14159,13 +14164,13 @@ export default {
},
"UpdateCalendarChannelInputUpdates": {
"visibility": [
- 411
+ 412
],
"isContactAutoCreationEnabled": [
8
],
"contactAutoCreationPolicy": [
- 412
+ 413
],
"isSyncEnabled": [
8
@@ -14182,7 +14187,7 @@ export default {
9
],
"scope": [
- 407
+ 408
],
"__typename": [
1
@@ -14199,10 +14204,10 @@ export default {
1
],
"retryLimit": [
- 31
+ 32
],
"delayMs": [
- 31
+ 32
],
"__typename": [
1
@@ -14216,13 +14221,13 @@ export default {
9
],
"jobs": [
- 594
+ 595
],
"retryLimit": [
- 31
+ 32
],
"delayMs": [
- 31
+ 32
],
"__typename": [
1
@@ -14241,7 +14246,7 @@ export default {
},
"ReportAppConnectionAuthFailureInput": {
"id": [
- 184
+ 185
],
"reason": [
1
@@ -14367,7 +14372,7 @@ export default {
3
],
"update": [
- 602
+ 603
],
"__typename": [
1
@@ -14413,7 +14418,7 @@ export default {
8
],
"translations": [
- 515
+ 516
],
"__typename": [
1
@@ -14505,7 +14510,7 @@ export default {
3
],
"status": [
- 221
+ 222
],
"__typename": [
1
@@ -14579,7 +14584,7 @@ export default {
1
],
"files": [
- 614
+ 615
],
"__typename": [
1
@@ -14601,13 +14606,13 @@ export default {
1
],
"IMAP": [
- 616
+ 617
],
"SMTP": [
- 616
+ 617
],
"CALDAV": [
- 616
+ 617
],
"__typename": [
1
@@ -14618,7 +14623,7 @@ export default {
1
],
"port": [
- 15
+ 16
],
"username": [
1
@@ -14627,7 +14632,7 @@ export default {
1
],
"connectionSecurity": [
- 208
+ 209
],
"__typename": [
1
@@ -14646,13 +14651,13 @@ export default {
},
"ApplicationFileUploadRequestInput": {
"fileFolder": [
- 322
+ 323
],
"filePath": [
1
],
"size": [
- 31
+ 32
],
"__typename": [
1
@@ -14660,7 +14665,7 @@ export default {
},
"Subscription": {
"onEventSubscription": [
- 200,
+ 201,
{
"eventStreamId": [
1,
@@ -14669,16 +14674,16 @@ export default {
}
],
"logicFunctionLogs": [
- 293,
+ 294,
{
"input": [
- 620,
+ 621,
"LogicFunctionLogsInput!"
]
}
],
"onAgentChatEvent": [
- 391,
+ 392,
{
"threadId": [
3,
@@ -14687,23 +14692,23 @@ export default {
}
],
"eventLogsLive": [
- 397,
+ 398,
{
"table": [
- 441,
+ 442,
"EventLogTable!"
],
"fieldFilters": [
- 444,
+ 445,
"[EventLogFieldFilterInput!]"
]
}
],
"exportRecords": [
- 400,
+ 401,
{
"input": [
- 621,
+ 622,
"CreateRecordExportInput!"
]
}
diff --git a/packages/twenty-docs/developers/extend/apps/config/application.mdx b/packages/twenty-docs/developers/extend/apps/config/application.mdx
index 9db5410769c..03e3f5ee9c3 100644
--- a/packages/twenty-docs/developers/extend/apps/config/application.mdx
+++ b/packages/twenty-docs/developers/extend/apps/config/application.mdx
@@ -42,7 +42,7 @@ export default defineApplication({
Notes:
- `universalIdentifier` fields are UUIDs you generate once and own. Keep them stable across syncs. The application's own `universalIdentifier` must be a valid UUID: the server rejects a manifest whose identifier is not one. It is unique across the whole instance and is bound to the workspace that owns its registration, so only that workspace can sync the app — see [Registration ownership](/developers/extend/apps/operations/publishing#registration-ownership).
- `applicationVariables` accept an optional `label` — a user-friendly name displayed in the app's settings page instead of the raw variable key.
-- `applicationVariables` become environment variables for your functions and front components. In logic functions (server-side), they are available as `process.env.VARIABLE_NAME`. In front components, use `getApplicationVariable('VARIABLE_NAME')` from `twenty-sdk/front-component`. Variables marked with `isSecret: true` are only injected into logic functions. Front components receive only non-secret variables.
+- `applicationVariables` become environment variables for your functions and front components. In logic functions (server-side), they are available as `process.env.VARIABLE_NAME`. In front components, use `getApplicationVariable('VARIABLE_NAME')` from `twenty-sdk/front-component`. Variables marked with `isSecret: true` are only injected into logic functions. Front components receive only non-secret variables. Variables with `scope: 'USER'` are not injected at all: see [Workspace and user variables](#workspace-and-user-variables).
- Your app can also read and update its own variable values at runtime, which is how a custom settings component saves what the user typed: see [Reading and updating variables at runtime](/developers/extend/apps/layout/front-components#reading-and-updating-variables-at-runtime). An application only ever reaches its own variables, in its own workspace.
- The default role is detected automatically from the role file marked with [`defineApplicationRole()`](/developers/extend/apps/config/roles) — you do not need to reference it from `defineApplication()`.
- Pre-install, post-install, and uninstall functions, and the health check, are detected automatically during the manifest build — you do not need to reference them in `defineApplication()`.
@@ -128,6 +128,46 @@ const config = JSON.parse(process.env.PROVIDER_CONFIG ?? '{}'); // '{"retries":3
The same applies to front components reading values via `getApplicationVariable('VARIABLE_NAME')` — the returned value is a string; parse it as needed.
+## Workspace and user variables
+
+Each application variable has a `scope`:
+
+- **`WORKSPACE`** (default): one value for the whole workspace, set by a member who can manage apps.
+- **`USER`**: each member keeps their own value.
+
+<Note>
+Members cannot save or read their own value of a user variable yet. Until per-member values land, a user variable is declared and synced, but nothing reads it.
+</Note>
+
+```ts src/application-config.ts
+import { defineApplication, FieldType } from 'twenty-sdk/define';
+
+export default defineApplication({
+ // ...identity, role...
+ applicationVariables: {
+ RECORD_MY_MEETINGS: {
+ universalIdentifier: '0b6f3c1e-8a2d-4f57-9c1b-7e4d2a9f6c30',
+ label: 'Record my meetings',
+ type: FieldType.BOOLEAN,
+ value: true,
+ scope: 'USER',
+ },
+ },
+});
+```
+
+A user variable's `value` is its default: a member who has not set their own gets it, and a new version of your app can change it. A secret variable cannot have a default. Without one, a member who has not set theirs has no value, so your app decides what an unset value means.
+
+A workspace admin cannot set a value for a user variable: its values belong to each member.
+
+A variable's scope is set when it is created and cannot change. To change it, declare the variable with a new `universalIdentifier`: the sync deletes the old variable and creates the new one.
+
+User variables can be `isSecret`, `isRequired`, or both. For example, a personal API key can declare `scope: 'USER', isSecret: true, isRequired: true`.
+
+For user variables, `isRequired` describes a per-member requirement. It does not affect the workspace configuration warning. Personal configuration warnings and enforcement are not available yet.
+
+User variables are never injected into `process.env` or returned by `getApplicationVariable`, because the person who triggered a run is not always the person the run is about.
+
## Default function role
The role declared with [`defineApplicationRole()`](/developers/extend/apps/config/roles) controls what the app's logic functions and front components can access:
diff --git a/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx b/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx
index 29719486edc..6cc70732b6c 100644
--- a/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx
+++ b/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx
@@ -131,7 +131,7 @@ Declare as many as you need. Twenty's own **General** item — auto-upgrade, App
`USER` items are not displayed yet. Their placement under the user's own settings lands with per-member variable values; until then a `USER` item is persisted and synced but nothing renders it.
</Note>
-A `USER` item runs as the member viewing it. Note that `applicationVariables` are workspace-wide: one value shared by everyone. An item that stores something per person should persist it through the app's own objects rather than a variable, otherwise one member's value overwrites another's.
+A `USER` item runs as the member viewing it. Members cannot save their own value of an application variable yet, even one declared with `scope: 'USER'` (see [Workspace and user variables](/developers/extend/apps/config/application#workspace-and-user-variables)). Until they can, an item that stores something per person should persist it through the app's own objects: a workspace variable holds one value shared by everyone, so one member's save would overwrite another's.
<Note>
`defineSettingsFrontComponent()` is deprecated in favor of `defineSettingsMenuItem()`. An app still using it keeps working — its component is treated as a single **Settings** menu item — but it can only ever declare one, which is what `defineSettingsMenuItem()` exists to lift.
@@ -482,7 +482,7 @@ Object metadata can be available even when no records are selected. It belongs t
## Application variables
-Application variables defined in [`defineApplication()`](/developers/extend/apps/config/application) with `isSecret: false` are available inside front components via the `getApplicationVariable` utility:
+Workspace application variables defined in [`defineApplication()`](/developers/extend/apps/config/application) with `isSecret: false` are available inside front components via the `getApplicationVariable` utility:
```tsx src/front-components/greeting.tsx
import { defineFrontComponent } from 'twenty-sdk/define';
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 3a37cebc299..fd951897ed4 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -607,10 +607,16 @@ export type ApplicationVariable = {
key: Scalars['String']['output'];
label: Scalars['String']['output'];
options?: Maybe<Scalars['JSON']['output']>;
+ scope: ApplicationVariableScope;
type: Scalars['String']['output'];
value: Scalars['String']['output'];
};
+export enum ApplicationVariableScope {
+ USER = 'USER',
+ WORKSPACE = 'WORKSPACE'
+}
+
export type ApprovedAccessDomain = {
__typename?: 'ApprovedAccessDomain';
createdAt: Scalars['DateTime']['output'];
@@ -8261,7 +8267,7 @@ export type TrackAnalyticsMutationVariables = Exact<{
export type TrackAnalyticsMutation = { __typename?: 'Mutation', trackAnalytics: { __typename?: 'Analytics', success: boolean } };
-export type ApplicationFieldsFragment = { __typename?: 'Application', id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isUIEditable: boolean, isUICreatable: boolean, writability: MetadataWritability, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, applicationId: string, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: ObjectOpenRecordIn, sharingReach: ObjectSharingReach, readability: MetadataReadability, duplicateCriteria?: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename?: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename?: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, isCustom?: boolean | null, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: string, universalIdentifier: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isActive?: boolean | null, isSystem?: boolean | null, isUIEditable?: boolean | null, writability?: MetadataWritability | null, isNullable?: boolean | null, isUnique?: boolean | null, isSearchable?: boolean | null, createdAt: string, updatedAt: string, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, morphId?: string | null, applicationId: string, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } } | null, morphRelations?: Array<{ __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename?: 'LogicFunction', id: string, name: string, description?: string | null, runtime: string, timeoutSeconds: number, executionMode: LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings?: any | null, databaseEventTriggerSettings?: any | null, httpRouteTriggerSettings?: any | null, toolTriggerSettings?: any | null, workflowActionTriggerSettings?: any | null, applicationId?: string | null, universalIdentifier?: string | null, createdAt: string, updatedAt: string }> };
+export type ApplicationFieldsFragment = { __typename?: 'Application', id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null, scope: ApplicationVariableScope }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isUIEditable: boolean, isUICreatable: boolean, writability: MetadataWritability, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, applicationId: string, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: ObjectOpenRecordIn, sharingReach: ObjectSharingReach, readability: MetadataReadability, duplicateCriteria?: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename?: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename?: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, isCustom?: boolean | null, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: string, universalIdentifier: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isActive?: boolean | null, isSystem?: boolean | null, isUIEditable?: boolean | null, writability?: MetadataWritability | null, isNullable?: boolean | null, isUnique?: boolean | null, isSearchable?: boolean | null, createdAt: string, updatedAt: string, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, morphId?: string | null, applicationId: string, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } } | null, morphRelations?: Array<{ __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename?: 'LogicFunction', id: string, name: string, description?: string | null, runtime: string, timeoutSeconds: number, executionMode: LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings?: any | null, databaseEventTriggerSettings?: any | null, httpRouteTriggerSettings?: any | null, toolTriggerSettings?: any | null, workflowActionTriggerSettings?: any | null, applicationId?: string | null, universalIdentifier?: string | null, createdAt: string, updatedAt: string }> };
export type RunApplicationHealthCheckMutationVariables = Exact<{
applicationId: Scalars['UUID']['input'];
@@ -8280,7 +8286,7 @@ export type FindOneApplicationQueryVariables = Exact<{
}>;
-export type FindOneApplicationQuery = { __typename?: 'Query', findOneApplication: { __typename?: 'Application', id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isUIEditable: boolean, isUICreatable: boolean, writability: MetadataWritability, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, applicationId: string, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: ObjectOpenRecordIn, sharingReach: ObjectSharingReach, readability: MetadataReadability, duplicateCriteria?: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename?: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename?: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, isCustom?: boolean | null, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: string, universalIdentifier: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isActive?: boolean | null, isSystem?: boolean | null, isUIEditable?: boolean | null, writability?: MetadataWritability | null, isNullable?: boolean | null, isUnique?: boolean | null, isSearchable?: boolean | null, createdAt: string, updatedAt: string, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, morphId?: string | null, applicationId: string, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } } | null, morphRelations?: Array<{ __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename?: 'LogicFunction', id: string, name: string, description?: string | null, runtime: string, timeoutSeconds: number, executionMode: LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings?: any | null, databaseEventTriggerSettings?: any | null, httpRouteTriggerSettings?: any | null, toolTriggerSettings?: any | null, workflowActionTriggerSettings?: any | null, applicationId?: string | null, universalIdentifier?: string | null, createdAt: string, updatedAt: string }> } };
+export type FindOneApplicationQuery = { __typename?: 'Query', findOneApplication: { __typename?: 'Application', id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null, scope: ApplicationVariableScope }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isUIEditable: boolean, isUICreatable: boolean, writability: MetadataWritability, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, applicationId: string, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: ObjectOpenRecordIn, sharingReach: ObjectSharingReach, readability: MetadataReadability, duplicateCriteria?: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename?: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename?: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, isCustom?: boolean | null, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: string, universalIdentifier: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isActive?: boolean | null, isSystem?: boolean | null, isUIEditable?: boolean | null, writability?: MetadataWritability | null, isNullable?: boolean | null, isUnique?: boolean | null, isSearchable?: boolean | null, createdAt: string, updatedAt: string, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, morphId?: string | null, applicationId: string, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } } | null, morphRelations?: Array<{ __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename?: 'LogicFunction', id: string, name: string, description?: string | null, runtime: string, timeoutSeconds: number, executionMode: LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings?: any | null, databaseEventTriggerSettings?: any | null, httpRouteTriggerSettings?: any | null, toolTriggerSettings?: any | null, workflowActionTriggerSettings?: any | null, applicationId?: string | null, universalIdentifier?: string | null, createdAt: string, updatedAt: string }> } };
export type FindOneApplicationByUniversalIdentifierQueryVariables = Exact<{
universalIdentifier: Scalars['UUID']['input'];
@@ -10644,7 +10650,7 @@ export const SkillFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":
export const AgentFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<AgentFieldsFragment, unknown>;
export const ObjectMetadataFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode<ObjectMetadataFieldsFragment, unknown>;
export const LogicFunctionFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<LogicFunctionFieldsFragment, unknown>;
-export const ApplicationFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ApplicationFieldsFragment, unknown>;
+export const ApplicationFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ApplicationFieldsFragment, unknown>;
export const AuthTokenFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthToken"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]} as unknown as DocumentNode<AuthTokenFragmentFragment, unknown>;
export const AuthTokenPairFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenPairFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthTokenPair"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessOrWorkspaceAgnosticToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"refreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthToken"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]} as unknown as DocumentNode<AuthTokenPairFragmentFragment, unknown>;
export const AvailableSsoIdentityProvidersFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableSSOIdentityProvidersFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FindAvailableSSOIDP"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"workspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}}]}}]}}]} as unknown as DocumentNode<AvailableSsoIdentityProvidersFragmentFragment, unknown>;
@@ -10734,7 +10740,7 @@ export const OnAgentChatEventDocument = {"kind":"Document","definitions":[{"kind
export const TrackAnalyticsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"TrackAnalytics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"type"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnalyticsType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"event"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"properties"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"trackAnalytics"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"type"}}},{"kind":"Argument","name":{"kind":"Name","value":"event"},"value":{"kind":"Variable","name":{"kind":"Name","value":"event"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"properties"},"value":{"kind":"Variable","name":{"kind":"Name","value":"properties"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>;
export const RunApplicationHealthCheckDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RunApplicationHealthCheck"},"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":"runApplicationHealthCheck"},"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":"status"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"location"}}]}}]}}]}}]} as unknown as DocumentNode<RunApplicationHealthCheckMutation, RunApplicationHealthCheckMutationVariables>;
export const FindManyApplicationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}}]}}]}}]}}]} as unknown as DocumentNode<FindManyApplicationsQuery, FindManyApplicationsQueryVariables>;
-export const FindOneApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplication"},"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":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationQuery, FindOneApplicationQueryVariables>;
+export const FindOneApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplication"},"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":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationQuery, FindOneApplicationQueryVariables>;
export const FindOneApplicationByUniversalIdentifierDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationByUniversalIdentifier"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationByUniversalIdentifierQuery, FindOneApplicationByUniversalIdentifierQueryVariables>;
export const FindOneApplicationNameDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationName"},"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":"findOneApplication"},"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":"name"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationNameQuery, FindOneApplicationNameQueryVariables>;
export const FindOneApplicationSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationSummary"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationSummaryQuery, FindOneApplicationSummaryQueryVariables>;
diff --git a/packages/twenty-front/src/modules/applications/graphql/fragments/applicationFragment.ts b/packages/twenty-front/src/modules/applications/graphql/fragments/applicationFragment.ts
index 6679aa1d4bb..135d25952e7 100644
--- a/packages/twenty-front/src/modules/applications/graphql/fragments/applicationFragment.ts
+++ b/packages/twenty-front/src/modules/applications/graphql/fragments/applicationFragment.ts
@@ -38,6 +38,7 @@ export const APPLICATION_FRAGMENT = gql`
isRequired
type
options
+ scope
}
agents {
...AgentFields
diff --git a/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx b/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx
index 526ed00ec04..b4f5ac9f86b 100644
--- a/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx
@@ -7,6 +7,7 @@ import { ToastProvider } from 'twenty-ui/components';
import {
type Application,
type ApplicationVariable,
+ ApplicationVariableScope,
FindOneApplicationDocument,
UpdateOneApplicationVariableDocument,
} from '~/generated-metadata/graphql';
@@ -39,6 +40,7 @@ const buildApplicationVariable = (value: string): ApplicationVariable => ({
isDeprecated: false,
isRequired: false,
type: 'TEXT',
+ scope: ApplicationVariableScope.WORKSPACE,
});
const buildApplication = (
diff --git a/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts b/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts
index 6e9d2d021f7..807ad2160fc 100644
--- a/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts
+++ b/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts
@@ -1,13 +1,43 @@
+import { ApplicationVariableScope } from '~/generated-metadata/graphql';
import { getDisplayedApplicationVariables } from '~/pages/settings/applications/utils/getDisplayedApplicationVariables';
+const buildApplicationVariable = ({
+ key,
+ value = '',
+ isDeprecated = false,
+ scope = ApplicationVariableScope.WORKSPACE,
+}: {
+ key: string;
+ value?: string;
+ isDeprecated?: boolean;
+ scope?: ApplicationVariableScope;
+}) => ({ key, value, isDeprecated, scope });
+
describe('getDisplayedApplicationVariables', () => {
it('should hide deprecated variables with no value and sort the rest by key', () => {
const result = getDisplayedApplicationVariables([
- { key: 'ZONE', value: '', isDeprecated: false },
- { key: 'API_KEY', value: '', isDeprecated: true },
- { key: 'LEGACY_KEY', value: 'legacy-value', isDeprecated: true },
+ buildApplicationVariable({ key: 'ZONE' }),
+ buildApplicationVariable({ key: 'API_KEY', isDeprecated: true }),
+ buildApplicationVariable({
+ key: 'LEGACY_KEY',
+ value: 'legacy-value',
+ isDeprecated: true,
+ }),
]);
expect(result.map(({ key }) => key)).toEqual(['LEGACY_KEY', 'ZONE']);
});
+
+ it('should leave out user-scoped variables', () => {
+ const result = getDisplayedApplicationVariables([
+ buildApplicationVariable({
+ key: 'PERSONAL_API_KEY',
+ value: 'workspace-default',
+ scope: ApplicationVariableScope.USER,
+ }),
+ buildApplicationVariable({ key: 'WORKSPACE_API_KEY' }),
+ ]);
+
+ expect(result.map(({ key }) => key)).toEqual(['WORKSPACE_API_KEY']);
+ });
});
diff --git a/packages/twenty-front/src/pages/settings/applications/utils/getDisplayedApplicationVariables.ts b/packages/twenty-front/src/pages/settings/applications/utils/getDisplayedApplicationVariables.ts
index ce4884c3d3e..338388e8559 100644
--- a/packages/twenty-front/src/pages/settings/applications/utils/getDisplayedApplicationVariables.ts
+++ b/packages/twenty-front/src/pages/settings/applications/utils/getDisplayedApplicationVariables.ts
@@ -1,21 +1,26 @@
import { isNonEmptyString } from '@sniptt/guards';
-import { type ApplicationVariable } from '~/generated-metadata/graphql';
+import {
+ type ApplicationVariable,
+ ApplicationVariableScope,
+} from '~/generated-metadata/graphql';
import { shouldDisplayVariable } from '~/pages/settings/applications/utils/shouldDisplayVariable';
export const getDisplayedApplicationVariables = <
DisplayableApplicationVariable extends Pick<
ApplicationVariable,
- 'key' | 'value' | 'isDeprecated'
+ 'key' | 'value' | 'isDeprecated' | 'scope'
>,
>(
applicationVariables: DisplayableApplicationVariable[],
): DisplayableApplicationVariable[] =>
applicationVariables
- .filter((applicationVariable) =>
- shouldDisplayVariable({
- isDeprecated: applicationVariable.isDeprecated,
- hasValue: isNonEmptyString(applicationVariable.value),
- }),
+ .filter(
+ (applicationVariable) =>
+ applicationVariable.scope === ApplicationVariableScope.WORKSPACE &&
+ shouldDisplayVariable({
+ isDeprecated: applicationVariable.isDeprecated,
+ hasValue: isNonEmptyString(applicationVariable.value),
+ }),
)
.sort((a, b) => a.key.localeCompare(b.key));
diff --git a/packages/twenty-sdk/src/sdk/define/application/__tests__/define-app.spec.ts b/packages/twenty-sdk/src/sdk/define/application/__tests__/define-app.spec.ts
index 547dd195309..2b61ad08529 100644
--- a/packages/twenty-sdk/src/sdk/define/application/__tests__/define-app.spec.ts
+++ b/packages/twenty-sdk/src/sdk/define/application/__tests__/define-app.spec.ts
@@ -1,4 +1,5 @@
import { MAX_RECURRING_CHARGE_MICRO_CREDITS_PER_UNIT } from 'twenty-shared/application';
+import { FieldMetadataType } from 'twenty-shared/types';
import { defineApplication } from '@/sdk/define';
@@ -164,6 +165,81 @@ describe('defineApplication', () => {
expect(result.warnings ?? []).toEqual([]);
});
+ it('should accept a user application variable', () => {
+ const result = defineApplication({
+ universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',
+ displayName: 'My App',
+ description: 'My app description',
+ applicationVariables: {
+ RECORD_MY_MEETINGS: {
+ universalIdentifier: 'c2d4e6f8-1a3b-4c5d-8e7f-9a0b1c2d3e4f',
+ type: FieldMetadataType.BOOLEAN,
+ scope: 'USER',
+ },
+ },
+ });
+
+ expect(result.success).toBe(true);
+ expect(result.errors).toEqual([]);
+ });
+
+ it('should accept a user application variable with a default value', () => {
+ const result = defineApplication({
+ universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',
+ displayName: 'My App',
+ description: 'My app description',
+ applicationVariables: {
+ RECORD_MY_MEETINGS: {
+ universalIdentifier: 'c2d4e6f8-1a3b-4c5d-8e7f-9a0b1c2d3e4f',
+ type: FieldMetadataType.BOOLEAN,
+ value: true,
+ scope: 'USER',
+ },
+ },
+ });
+
+ expect(result.success).toBe(true);
+ expect(result.errors).toEqual([]);
+ });
+
+ it('should accept a secret and required user application variable', () => {
+ const result = defineApplication({
+ universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',
+ displayName: 'My App',
+ description: 'My app description',
+ applicationVariables: {
+ API_KEY: {
+ universalIdentifier: 'c2d4e6f8-1a3b-4c5d-8e7f-9a0b1c2d3e4f',
+ isSecret: true,
+ isRequired: true,
+ scope: 'USER',
+ },
+ },
+ });
+
+ expect(result.success).toBe(true);
+ expect(result.errors).toEqual([]);
+ });
+
+ it('should return error when an application variable scope is unknown', () => {
+ const result = defineApplication({
+ universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',
+ displayName: 'My App',
+ description: 'My app description',
+ applicationVariables: {
+ RECORD_MY_MEETINGS: {
+ universalIdentifier: 'c2d4e6f8-1a3b-4c5d-8e7f-9a0b1c2d3e4f',
+ scope: 'TEAM' as never,
+ },
+ },
+ });
+
+ expect(result.success).toBe(false);
+ expect(result.errors).toEqual([
+ 'Application variable "RECORD_MY_MEETINGS" must have a known scope (WORKSPACE, USER)',
+ ]);
+ });
+
it('should accept a billable operation mapped to a known operationType', () => {
const result = defineApplication({
universalIdentifier: 'a9faf5f8-cf7e-4f24-9d37-fd523c30febe',
diff --git a/packages/twenty-sdk/src/sdk/define/application/define-application.ts b/packages/twenty-sdk/src/sdk/define/application/define-application.ts
index e1017913ddc..52f41bf67f6 100644
--- a/packages/twenty-sdk/src/sdk/define/application/define-application.ts
+++ b/packages/twenty-sdk/src/sdk/define/application/define-application.ts
@@ -1,6 +1,8 @@
import { isNonEmptyString } from '@sniptt/guards';
import {
APPLICATION_CATEGORIES,
+ APPLICATION_VARIABLE_SCOPES,
+ isApplicationVariableScope,
isKnownApplicationCategory,
isRecurringChargePeriod,
isRecurringChargeUnit,
@@ -48,6 +50,17 @@ export const defineApplication: DefineEntity<ApplicationConfig> = (config) => {
`Application variable "${variableName}" is both required and deprecated. \`isDeprecated\` wins: the variable is excluded from the application configuration check.`,
);
}
+
+ if (
+ isDefined(variable.scope) &&
+ !isApplicationVariableScope(variable.scope)
+ ) {
+ errors.push(
+ `Application variable "${variableName}" must have a known scope (${APPLICATION_VARIABLE_SCOPES.join(
+ ', ',
+ )})`,
+ );
+ }
}
const billableOperations = config.billing?.operations ?? {};
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791274238040-add-scope-and-default-value-to-application-variables.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791274238040-add-scope-and-default-value-to-application-variables.ts
new file mode 100644
index 00000000000..87045ee517d
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791274238040-add-scope-and-default-value-to-application-variables.ts
@@ -0,0 +1,54 @@
+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.46.0', 1791274238040)
+export class AddScopeAndDefaultValueToApplicationVariablesFastInstanceCommand
+ implements FastInstanceCommand
+{
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `CREATE TYPE "core"."applicationVariable_scope_enum" AS ENUM('WORKSPACE', 'USER')`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" ADD "scope" "core"."applicationVariable_scope_enum" NOT NULL DEFAULT 'WORKSPACE'`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" ADD "defaultValue" text`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" ALTER COLUMN "value" DROP NOT NULL`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" ADD CONSTRAINT "CHK_applicationVariable_value_null_only_for_user_scope" CHECK (("scope" = 'USER') = ("value" IS NULL))`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" ADD CONSTRAINT "CHK_applicationVariable_default_value_not_secret" CHECK (NOT ("isSecret" AND "defaultValue" IS NOT NULL))`,
+ );
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `DELETE FROM "core"."applicationVariable" WHERE "scope" = 'USER'`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" DROP CONSTRAINT "CHK_applicationVariable_default_value_not_secret"`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" DROP CONSTRAINT "CHK_applicationVariable_value_null_only_for_user_scope"`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" ALTER COLUMN "value" SET NOT NULL`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" DROP COLUMN "defaultValue"`,
+ );
+ await queryRunner.query(
+ `ALTER TABLE "core"."applicationVariable" DROP COLUMN "scope"`,
+ );
+ await queryRunner.query(
+ `DROP TYPE "core"."applicationVariable_scope_enum"`,
+ );
+ }
+}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/add-scope-and-default-value-to-application-variables-upgrade-command-name.constant.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/add-scope-and-default-value-to-application-variables-upgrade-command-name.constant.ts
new file mode 100644
index 00000000000..ee64fee3e4b
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/add-scope-and-default-value-to-application-variables-upgrade-command-name.constant.ts
@@ -0,0 +1,2 @@
+export const ADD_SCOPE_AND_DEFAULT_VALUE_TO_APPLICATION_VARIABLES_UPGRADE_COMMAND_NAME =
+ '2.46.0_AddScopeAndDefaultValueToApplicationVariablesFastInstanceCommand_1791274238040';
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 9845d20162f..6cc26dfc2bf 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
@@ -226,6 +226,7 @@ import { RenameUsageLimitMeterToUnitFastInstanceCommand } from 'src/database/com
import { AddUpgradeMigrationWorkspaceIdCreatedAtIndexFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791215192958-add-upgrade-migration-workspace-id-created-at-index';
import { DropAgentEvaluationInputsFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791216099453-drop-agent-evaluation-inputs';
import { AddTriggersToAgentFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791219100450-add-triggers-to-agent';
+import { AddScopeAndDefaultValueToApplicationVariablesFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791274238040-add-scope-and-default-value-to-application-variables';
export const INSTANCE_COMMANDS = [
AddViewFieldGroupIdIndexOnViewFieldFastInstanceCommand,
@@ -454,4 +455,5 @@ export const INSTANCE_COMMANDS = [
AddUpgradeMigrationWorkspaceIdCreatedAtIndexFastInstanceCommand,
DropAgentEvaluationInputsFastInstanceCommand,
AddTriggersToAgentFastInstanceCommand,
+ AddScopeAndDefaultValueToApplicationVariablesFastInstanceCommand,
];
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-application-variable-manifest-to-universal-flat-application-variable.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-application-variable-manifest-to-universal-flat-application-variable.util.ts
index 2d87db723c6..2c6c7bc0142 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-application-variable-manifest-to-universal-flat-application-variable.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-application-variable-manifest-to-universal-flat-application-variable.util.ts
@@ -1,6 +1,8 @@
import { FieldMetadataType } from 'twenty-shared/types';
import {
+ DEFAULT_APPLICATION_VARIABLE_SCOPE,
type ApplicationVariableOption,
+ type ApplicationVariableScope,
type ApplicationVariableType,
} from 'twenty-shared/application';
@@ -14,11 +16,13 @@ export const fromApplicationVariableManifestToUniversalFlatApplicationVariable =
description,
label,
encryptedValue,
+ defaultValue,
isSecret,
isDeprecated,
isRequired,
type,
options,
+ scope,
applicationUniversalIdentifier,
now,
}: {
@@ -26,12 +30,14 @@ export const fromApplicationVariableManifestToUniversalFlatApplicationVariable =
universalIdentifier: string;
description?: string;
label?: string;
- encryptedValue: EncryptedString;
+ encryptedValue: EncryptedString | null;
+ defaultValue: string | null;
isSecret?: boolean;
isDeprecated?: boolean;
isRequired?: boolean;
type?: ApplicationVariableType;
options?: ApplicationVariableOption[];
+ scope?: ApplicationVariableScope;
applicationUniversalIdentifier: string;
now: string;
}): UniversalFlatApplicationVariable => {
@@ -47,6 +53,8 @@ export const fromApplicationVariableManifestToUniversalFlatApplicationVariable =
isRequired: (isDeprecated ?? false) ? false : (isRequired ?? false),
type: type ?? FieldMetadataType.TEXT,
options: options ?? null,
+ scope: scope ?? DEFAULT_APPLICATION_VARIABLE_SCOPE,
+ defaultValue,
createdAt: now,
updatedAt: now,
};
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/services/compute-application-manifest-all-universal-flat-entity-maps.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/services/compute-application-manifest-all-universal-flat-entity-maps.service.ts
index 8d999a4d1c4..d644c0706bb 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/services/compute-application-manifest-all-universal-flat-entity-maps.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/services/compute-application-manifest-all-universal-flat-entity-maps.service.ts
@@ -595,17 +595,27 @@ export class ComputeApplicationManifestAllUniversalFlatEntityMapsService {
manifest.application.applicationVariables ?? {},
)) {
const type = applicationVariableManifest.type ?? FieldMetadataType.TEXT;
+ const isSecret = applicationVariableManifest.isSecret;
- const plaintextValue =
- 'value' in applicationVariableManifest
+ const defaultValue =
+ !isSecret &&
+ 'value' in applicationVariableManifest &&
+ isDefined(applicationVariableManifest.value)
? serializeApplicationVariableValue(
applicationVariableManifest.value,
type,
)
- : '';
-
- const isSecret = applicationVariableManifest.isSecret;
- const rawValue = isSecret ? '' : plaintextValue;
+ : null;
+
+ // A user variable's values belong to each member, so it has no
+ // workspace value: the manifest value is only its default.
+ const encryptedValue =
+ applicationVariableManifest.scope === 'USER'
+ ? null
+ : this.secretEncryptionService.encryptVersioned(
+ (defaultValue ?? '') as PlaintextString,
+ { workspaceId },
+ );
addUniversalFlatEntityToUniversalFlatEntityMapsThroughMutationOrThrow({
universalFlatEntity:
@@ -613,10 +623,8 @@ export class ComputeApplicationManifestAllUniversalFlatEntityMapsService {
key,
universalIdentifier:
applicationVariableManifest.universalIdentifier,
- encryptedValue: this.secretEncryptionService.encryptVersioned(
- rawValue as PlaintextString,
- { workspaceId },
- ),
+ encryptedValue,
+ defaultValue,
description: applicationVariableManifest.description,
label: applicationVariableManifest.label,
isSecret,
@@ -624,6 +632,7 @@ export class ComputeApplicationManifestAllUniversalFlatEntityMapsService {
isRequired: applicationVariableManifest.isRequired,
type,
options: applicationVariableManifest.options,
+ scope: applicationVariableManifest.scope,
applicationUniversalIdentifier,
now,
}),
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-variable/application-variable.entity.ts b/packages/twenty-server/src/engine/core-modules/application/application-variable/application-variable.entity.ts
index 8b41b24dc93..ac81101e2bc 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-variable/application-variable.entity.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-variable/application-variable.entity.ts
@@ -10,7 +10,10 @@ import {
import { FieldMetadataType } from 'twenty-shared/types';
import {
+ APPLICATION_VARIABLE_SCOPES,
+ DEFAULT_APPLICATION_VARIABLE_SCOPE,
type ApplicationVariableOption,
+ type ApplicationVariableScope,
type ApplicationVariableType,
} from 'twenty-shared/application';
@@ -18,6 +21,7 @@ import { ADD_TYPE_AND_OPTIONS_TO_APPLICATION_VARIABLES_UPGRADE_COMMAND_NAME } fr
import { ADD_IS_DEPRECATED_TO_APPLICATION_VARIABLES_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-31/add-is-deprecated-to-application-variables-upgrade-command-name.constant';
import { ADD_LABEL_TO_APPLICATION_VARIABLE_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-36/add-label-to-application-variable-upgrade-command-name.constant';
import { ADD_IS_REQUIRED_TO_APPLICATION_VARIABLES_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-42/add-is-required-to-application-variables-upgrade-command-name.constant';
+import { ADD_SCOPE_AND_DEFAULT_VALUE_TO_APPLICATION_VARIABLES_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-46/add-scope-and-default-value-to-application-variables-upgrade-command-name.constant';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
import { type EncryptedString } from 'src/engine/core-modules/secret-encryption/branded-strings/encrypted-string.type';
import { WasIntroducedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-introduced-in-upgrade.decorator';
@@ -35,6 +39,14 @@ import { SyncableEntity } from 'src/engine/workspace-manager/types/syncable-enti
'CHK_applicationVariable_deprecated_not_required',
`NOT ("isRequired" AND "isDeprecated")`,
)
+@Check(
+ 'CHK_applicationVariable_value_null_only_for_user_scope',
+ `("scope" = 'USER') = ("value" IS NULL)`,
+)
+@Check(
+ 'CHK_applicationVariable_default_value_not_secret',
+ `NOT ("isSecret" AND "defaultValue" IS NOT NULL)`,
+)
export class ApplicationVariableEntity extends SyncableEntity {
@Field(() => UUIDScalarType)
@PrimaryGeneratedColumn('uuid')
@@ -43,8 +55,8 @@ export class ApplicationVariableEntity extends SyncableEntity {
@Column({ nullable: false, type: 'text' })
key: string;
- @Column({ nullable: false, type: 'text' })
- value: EncryptedString;
+ @Column({ nullable: true, type: 'text' })
+ value: EncryptedString | null;
@Column({ nullable: false, type: 'text', default: '' })
description: string;
@@ -86,6 +98,27 @@ export class ApplicationVariableEntity extends SyncableEntity {
@Column({ nullable: true, type: 'jsonb', default: null })
options: ApplicationVariableOption[] | null;
+ @WasIntroducedInUpgrade({
+ upgradeCommandName:
+ ADD_SCOPE_AND_DEFAULT_VALUE_TO_APPLICATION_VARIABLES_UPGRADE_COMMAND_NAME,
+ })
+ @Column({
+ nullable: false,
+ type: 'enum',
+ enum: APPLICATION_VARIABLE_SCOPES,
+ default: DEFAULT_APPLICATION_VARIABLE_SCOPE,
+ })
+ scope: ApplicationVariableScope;
+
+ // Metadata from the manifest, never written by a member or an admin, so a
+ // sync can update it. It is plaintext because secrets cannot have one.
+ @WasIntroducedInUpgrade({
+ upgradeCommandName:
+ ADD_SCOPE_AND_DEFAULT_VALUE_TO_APPLICATION_VARIABLES_UPGRADE_COMMAND_NAME,
+ })
+ @Column({ nullable: true, type: 'text' })
+ defaultValue: string | null;
+
@CreateDateColumn({ type: 'timestamptz' })
createdAt: Date;
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-variable/application-variable.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-variable/application-variable.service.ts
index b82d7f3deb5..188aec155ec 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-variable/application-variable.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-variable/application-variable.service.ts
@@ -32,10 +32,7 @@ export class ApplicationVariableEntityService {
) {}
getDisplayValue(applicationVariable: ApplicationVariableEntity): string {
- const plaintextValue = this.secretEncryptionService.decryptVersionedOrThrow(
- applicationVariable.value,
- { workspaceId: applicationVariable.workspaceId },
- );
+ const plaintextValue = this.decryptValue(applicationVariable);
if (plaintextValue === '') {
return '';
@@ -102,22 +99,25 @@ export class ApplicationVariableEntityService {
private toEnvVariables(
flatApplicationVariables: FlatApplicationVariable[],
): Record<string, string> {
- return flatApplicationVariables.reduce<Record<string, string>>(
- (acc, flatApplicationVariable) => {
+ return flatApplicationVariables
+ .filter(({ scope }) => scope !== 'USER')
+ .reduce<Record<string, string>>((acc, flatApplicationVariable) => {
acc[flatApplicationVariable.key] = this.decryptValue(
flatApplicationVariable,
);
return acc;
- },
- {},
- );
+ }, {});
}
private decryptValue({
value,
workspaceId,
- }: FlatApplicationVariable): string {
+ }: Pick<FlatApplicationVariable, 'value' | 'workspaceId'>): string {
+ if (!isDefined(value)) {
+ return '';
+ }
+
return this.secretEncryptionService.decryptVersionedOrThrow(value, {
workspaceId,
});
@@ -145,6 +145,13 @@ export class ApplicationVariableEntityService {
);
}
+ if (existingVariable.scope === 'USER') {
+ throw new ApplicationVariableEntityException(
+ `Application variable with key ${key} is a user variable`,
+ ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ );
+ }
+
await this.applicationVariableRepository.update(
workspaceId,
{ key, applicationId },
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-variable/dtos/application-variable.dto.ts b/packages/twenty-server/src/engine/core-modules/application/application-variable/dtos/application-variable.dto.ts
index 44fd56dcf6e..1d99d82a42f 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-variable/dtos/application-variable.dto.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-variable/dtos/application-variable.dto.ts
@@ -1,11 +1,24 @@
-import { Field, ObjectType } from '@nestjs/graphql';
+import { Field, ObjectType, registerEnumType } from '@nestjs/graphql';
-import { IsBoolean, IsOptional, IsString } from 'class-validator';
+import { IsBoolean, IsIn, IsOptional, IsString } from 'class-validator';
import { GraphQLJSON } from 'graphql-type-json';
-import { type ApplicationVariableOption } from 'twenty-shared/application';
+import {
+ APPLICATION_VARIABLE_SCOPES,
+ type ApplicationVariableOption,
+ type ApplicationVariableScope,
+} from 'twenty-shared/application';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
+const ApplicationVariableScopeEnum = {
+ WORKSPACE: 'WORKSPACE',
+ USER: 'USER',
+} as const satisfies { [P in ApplicationVariableScope]: P };
+
+registerEnumType(ApplicationVariableScopeEnum, {
+ name: 'ApplicationVariableScope',
+});
+
@ObjectType('ApplicationVariable')
export class ApplicationVariableEntityDTO {
@Field(() => UUIDScalarType)
@@ -46,4 +59,8 @@ export class ApplicationVariableEntityDTO {
@IsOptional()
@Field(() => GraphQLJSON, { nullable: true })
options?: ApplicationVariableOption[] | null;
+
+ @IsIn(APPLICATION_VARIABLE_SCOPES)
+ @Field(() => ApplicationVariableScopeEnum)
+ scope: ApplicationVariableScope;
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
index cb15b23b76c..41199b2cd96 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
@@ -31,6 +31,8 @@ exports[`ALL_UNIVERSAL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY should ma
"isRequired",
"type",
"options",
+ "scope",
+ "defaultValue",
],
"propertiesToStringify": [
"options",
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
index 872bcaa3fbb..476d7b5243a 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
@@ -1875,6 +1875,16 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toStringify: true,
universalProperty: undefined,
},
+ scope: {
+ toCompare: true,
+ toStringify: false,
+ universalProperty: undefined,
+ },
+ defaultValue: {
+ toCompare: true,
+ toStringify: false,
+ universalProperty: undefined,
+ },
createdAt: {
toCompare: false,
toStringify: false,
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-application-variable-validator.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-application-variable-validator.service.ts
index 9e24146ce2f..5e657b96006 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-application-variable-validator.service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-application-variable-validator.service.ts
@@ -12,6 +12,8 @@ import { type FailedFlatEntityValidation } from 'src/engine/workspace-manager/wo
import { getEmptyFlatEntityValidationError } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/utils/get-flat-entity-validation-error.util';
import { type FlatEntityUpdateValidationArgs } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/types/universal-flat-entity-update-validation-args.type';
import { type UniversalFlatEntityValidationArgs } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/types/universal-flat-entity-validation-args.type';
+import { validateApplicationVariableDefaultValue } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-default-value.util';
+import { validateApplicationVariableScope } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-scope.util';
@Injectable()
export class FlatApplicationVariableValidatorService {
@@ -68,6 +70,11 @@ export class FlatApplicationVariableValidatorService {
});
}
+ validationResult.errors.push(
+ ...validateApplicationVariableScope(flatApplicationVariable),
+ ...validateApplicationVariableDefaultValue(flatApplicationVariable),
+ );
+
return validationResult;
}
@@ -132,6 +139,8 @@ export class FlatApplicationVariableValidatorService {
message: t`Application variable not found`,
userFriendlyMessage: msg`Application variable not found`,
});
+
+ return validationResult;
}
const keyUpdate = flatEntityUpdate.key;
@@ -147,6 +156,24 @@ export class FlatApplicationVariableValidatorService {
});
}
+ if (
+ isDefined(flatEntityUpdate.scope) &&
+ flatEntityUpdate.scope !== fromFlatApplicationVariable.scope
+ ) {
+ validationResult.errors.push({
+ code: ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ message: t`Application variable scope cannot be changed after creation`,
+ userFriendlyMessage: msg`Application variable scope cannot be changed`,
+ });
+ }
+
+ validationResult.errors.push(
+ ...validateApplicationVariableDefaultValue({
+ ...fromFlatApplicationVariable,
+ ...flatEntityUpdate,
+ }),
+ );
+
return validationResult;
}
}
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/__tests__/validate-application-variable-default-value.util.spec.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/__tests__/validate-application-variable-default-value.util.spec.ts
new file mode 100644
index 00000000000..af40e087c8f
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/__tests__/validate-application-variable-default-value.util.spec.ts
@@ -0,0 +1,34 @@
+import { ApplicationVariableEntityExceptionCode } from 'src/engine/core-modules/application/application-variable/application-variable.exception';
+import { validateApplicationVariableDefaultValue } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-default-value.util';
+
+describe('validateApplicationVariableDefaultValue', () => {
+ it('should return no error for a non-secret variable with a default value', () => {
+ const errors = validateApplicationVariableDefaultValue({
+ isSecret: false,
+ defaultValue: 'true',
+ });
+
+ expect(errors).toEqual([]);
+ });
+
+ it('should return no error for a secret variable without a default value', () => {
+ const errors = validateApplicationVariableDefaultValue({
+ isSecret: true,
+ defaultValue: null,
+ });
+
+ expect(errors).toEqual([]);
+ });
+
+ it('should return an error for a secret variable with a default value', () => {
+ const errors = validateApplicationVariableDefaultValue({
+ isSecret: true,
+ defaultValue: 'personal-api-key',
+ });
+
+ expect(errors).toHaveLength(1);
+ expect(errors[0].code).toBe(
+ ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ );
+ });
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/__tests__/validate-application-variable-scope.util.spec.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/__tests__/validate-application-variable-scope.util.spec.ts
new file mode 100644
index 00000000000..735e831273b
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/__tests__/validate-application-variable-scope.util.spec.ts
@@ -0,0 +1,59 @@
+import { ApplicationVariableEntityExceptionCode } from 'src/engine/core-modules/application/application-variable/application-variable.exception';
+import { validateApplicationVariableScope } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-scope.util';
+
+describe('validateApplicationVariableScope', () => {
+ it('should return no error for a workspace variable with a value', () => {
+ const errors = validateApplicationVariableScope({
+ scope: 'WORKSPACE',
+ value: 'enc:v2:value',
+ });
+
+ expect(errors).toEqual([]);
+ });
+
+ it('should return no error for a user variable without a value', () => {
+ const errors = validateApplicationVariableScope({
+ scope: 'USER',
+ value: null,
+ });
+
+ expect(errors).toEqual([]);
+ });
+
+ it('should return an error for an unknown scope', () => {
+ const errors = validateApplicationVariableScope({
+ scope: 'TEAM',
+ value: 'enc:v2:value',
+ });
+
+ expect(errors).toHaveLength(1);
+ expect(errors[0].code).toBe(
+ ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ );
+ expect(errors[0].message).toContain('TEAM');
+ });
+
+ it('should return an error for a workspace variable without a value', () => {
+ const errors = validateApplicationVariableScope({
+ scope: 'WORKSPACE',
+ value: null,
+ });
+
+ expect(errors).toHaveLength(1);
+ expect(errors[0].code).toBe(
+ ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ );
+ });
+
+ it('should return an error for a user variable with a value', () => {
+ const errors = validateApplicationVariableScope({
+ scope: 'USER',
+ value: 'enc:v2:value',
+ });
+
+ expect(errors).toHaveLength(1);
+ expect(errors[0].code).toBe(
+ ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ );
+ });
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-default-value.util.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-default-value.util.ts
new file mode 100644
index 00000000000..c9bba5e7394
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-default-value.util.ts
@@ -0,0 +1,25 @@
+import { msg, t } from '@lingui/core/macro';
+import { isDefined } from 'twenty-shared/utils';
+
+import { ApplicationVariableEntityExceptionCode } from 'src/engine/core-modules/application/application-variable/application-variable.exception';
+import { type FlatEntityValidationError } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/types/failed-flat-entity-validation.type';
+
+export const validateApplicationVariableDefaultValue = ({
+ isSecret,
+ defaultValue,
+}: {
+ isSecret: boolean;
+ defaultValue: string | null;
+}): FlatEntityValidationError<ApplicationVariableEntityExceptionCode>[] => {
+ if (!isSecret || !isDefined(defaultValue)) {
+ return [];
+ }
+
+ return [
+ {
+ code: ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ message: t`Secret application variable cannot have a default value`,
+ userFriendlyMessage: msg`A secret variable cannot have a default value.`,
+ },
+ ];
+};
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-scope.util.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-scope.util.ts
new file mode 100644
index 00000000000..2c0637e2655
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/utils/validate-application-variable-scope.util.ts
@@ -0,0 +1,43 @@
+import { msg, t } from '@lingui/core/macro';
+import { isApplicationVariableScope } from 'twenty-shared/application';
+import { isDefined } from 'twenty-shared/utils';
+
+import { ApplicationVariableEntityExceptionCode } from 'src/engine/core-modules/application/application-variable/application-variable.exception';
+import { type FlatEntityValidationError } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/types/failed-flat-entity-validation.type';
+
+export const validateApplicationVariableScope = ({
+ scope,
+ value,
+}: {
+ scope: string;
+ value: string | null;
+}): FlatEntityValidationError<ApplicationVariableEntityExceptionCode>[] => {
+ const errors: FlatEntityValidationError<ApplicationVariableEntityExceptionCode>[] =
+ [];
+
+ if (!isApplicationVariableScope(scope)) {
+ errors.push({
+ code: ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ message: t`Application variable scope "${scope}" is invalid`,
+ userFriendlyMessage: msg`This application variable scope is not supported.`,
+ });
+ }
+
+ if (scope === 'USER' && isDefined(value)) {
+ errors.push({
+ code: ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ message: t`User application variable cannot have a value`,
+ userFriendlyMessage: msg`A user variable cannot have a value: each member sets their own.`,
+ });
+ }
+
+ if (scope === 'WORKSPACE' && !isDefined(value)) {
+ errors.push({
+ code: ApplicationVariableEntityExceptionCode.INVALID_APPLICATION_VARIABLE_INPUT,
+ message: t`Workspace application variable must have a value`,
+ userFriendlyMessage: msg`A workspace variable must have a value.`,
+ });
+ }
+
+ return errors;
+};
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-sync-application-variable-scope-validation.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-sync-application-variable-scope-validation.integration-spec.ts.snap
new file mode 100644
index 00000000000..310e00eedaa
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-sync-application-variable-scope-validation.integration-spec.ts.snap
@@ -0,0 +1,72 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Sync application should fail on invalid application variable scopes when changing the scope of an existing variable 1`] = `
+{
+ "extensions": {
+ "code": "METADATA_VALIDATION_FAILED",
+ "errors": {
+ "applicationVariable": [
+ {
+ "errors": [
+ {
+ "code": "INVALID_APPLICATION_VARIABLE_INPUT",
+ "message": "Application variable scope cannot be changed after creation",
+ "userFriendlyMessage": "Application variable scope cannot be changed",
+ },
+ ],
+ "flatEntityMinimalInformation": {
+ "universalIdentifier": Any<String>,
+ },
+ "metadataName": "applicationVariable",
+ "status": "fail",
+ "type": "update",
+ },
+ ],
+ },
+ "message": "Validation failed for 1 applicationVariable",
+ "summary": {
+ "applicationVariable": 1,
+ "totalErrors": 1,
+ },
+ "userFriendlyMessage": "Application variable scope cannot be changed",
+ },
+ "message": "Validation errors occurred while syncing application manifest metadata",
+ "name": "GraphQLError",
+}
+`;
+
+exports[`Sync application should fail on invalid application variable scopes when syncing a variable with an unknown scope 1`] = `
+{
+ "extensions": {
+ "code": "METADATA_VALIDATION_FAILED",
+ "errors": {
+ "applicationVariable": [
+ {
+ "errors": [
+ {
+ "code": "INVALID_APPLICATION_VARIABLE_INPUT",
+ "message": "Application variable scope "TEAM" is invalid",
+ "userFriendlyMessage": "This application variable scope is not supported.",
+ },
+ ],
+ "flatEntityMinimalInformation": {
+ "key": "RECORD_MY_MEETINGS",
+ "universalIdentifier": Any<String>,
+ },
+ "metadataName": "applicationVariable",
+ "status": "fail",
+ "type": "create",
+ },
+ ],
+ },
+ "message": "Validation failed for 1 applicationVariable",
+ "summary": {
+ "applicationVariable": 1,
+ "totalErrors": 1,
+ },
+ "userFriendlyMessage": "This application variable scope is not supported.",
+ },
+ "message": "Validation errors occurred while syncing application manifest metadata",
+ "name": "GraphQLError",
+}
+`;
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-update-user-application-variable.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-update-user-application-variable.integration-spec.ts.snap
new file mode 100644
index 00000000000..2cf0e9728d1
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-update-user-application-variable.integration-spec.ts.snap
@@ -0,0 +1,13 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Updating the workspace value of a user application variable should fail should refuse to set a workspace value on a user variable 1`] = `
+{
+ "extensions": {
+ "code": "BAD_USER_INPUT",
+ "subCode": "INVALID_APPLICATION_VARIABLE_INPUT",
+ "userFriendlyMessage": "Invalid application variable input.",
+ },
+ "message": "Application variable with key API_KEY is a user variable",
+ "name": "UserInputError",
+}
+`;
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/failing-sync-application-variable-scope-validation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/failing-sync-application-variable-scope-validation.integration-spec.ts
new file mode 100644
index 00000000000..6ec44fbbcfa
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/failing-sync-application-variable-scope-validation.integration-spec.ts
@@ -0,0 +1,101 @@
+import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
+import { buildBaseManifest } from 'test/integration/metadata/suites/application/utils/build-base-manifest.util';
+import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';
+import { setupApplicationForSync } from 'test/integration/metadata/suites/application/utils/setup-application-for-sync.util';
+import { syncApplication } from 'test/integration/metadata/suites/application/utils/sync-application.util';
+import { type ApplicationVariables } from 'twenty-shared/application';
+import {
+ type EachTestingContext,
+ eachTestingContextFilter,
+} from 'twenty-shared/testing';
+
+const TEST_APP_ID = 'e1b2c3d4-0001-4000-a000-000000000001';
+const TEST_ROLE_ID = 'e1b2c3d4-0002-4000-a000-000000000002';
+const USER_VARIABLE_ID = 'e1b2c3d4-0003-4000-a000-000000000003';
+const NEW_VARIABLE_ID = 'e1b2c3d4-0004-4000-a000-000000000004';
+
+const buildManifestWithVariables = (
+ applicationVariables: ApplicationVariables,
+) => {
+ const baseManifest = buildBaseManifest({
+ appId: TEST_APP_ID,
+ roleId: TEST_ROLE_ID,
+ });
+
+ return {
+ ...baseManifest,
+ application: { ...baseManifest.application, applicationVariables },
+ };
+};
+
+type TestContext = {
+ applicationVariables: ApplicationVariables;
+};
+
+const failingApplicationVariableScopeSyncTestCases: EachTestingContext<TestContext>[] =
+ [
+ {
+ title: 'when syncing a variable with an unknown scope',
+ context: {
+ applicationVariables: {
+ RECORD_MY_MEETINGS: {
+ universalIdentifier: NEW_VARIABLE_ID,
+ scope: 'TEAM' as never,
+ },
+ },
+ },
+ },
+ {
+ title: 'when changing the scope of an existing variable',
+ context: {
+ applicationVariables: {
+ API_KEY: {
+ universalIdentifier: USER_VARIABLE_ID,
+ scope: 'WORKSPACE',
+ },
+ },
+ },
+ },
+ ];
+
+describe('Sync application should fail on invalid application variable scopes', () => {
+ beforeAll(async () => {
+ await setupApplicationForSync({
+ applicationUniversalIdentifier: TEST_APP_ID,
+ name: 'Test Application Variable Scope App',
+ description: 'App for testing application variable scope validation',
+ sourcePath: 'test-application-variable-scope',
+ });
+
+ await syncApplication({
+ manifest: buildManifestWithVariables({
+ API_KEY: {
+ universalIdentifier: USER_VARIABLE_ID,
+ scope: 'USER',
+ },
+ }),
+ expectToFail: false,
+ });
+ }, 120000);
+
+ afterAll(async () => {
+ await cleanupApplicationAndAppRegistration({
+ applicationUniversalIdentifier: TEST_APP_ID,
+ });
+ });
+
+ it.each(
+ eachTestingContextFilter(failingApplicationVariableScopeSyncTestCases),
+ )(
+ '$title',
+ async ({ context }) => {
+ const { errors } = await syncApplication({
+ manifest: buildManifestWithVariables(context.applicationVariables),
+ expectToFail: true,
+ });
+
+ expectOneNotInternalServerErrorSnapshot({ errors });
+ },
+ 60000,
+ );
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/failing-update-user-application-variable.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/failing-update-user-application-variable.integration-spec.ts
new file mode 100644
index 00000000000..7e37dfe71b5
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/failing-update-user-application-variable.integration-spec.ts
@@ -0,0 +1,73 @@
+import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
+import { buildBaseManifest } from 'test/integration/metadata/suites/application/utils/build-base-manifest.util';
+import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';
+import { findOneApplication } from 'test/integration/metadata/suites/application/utils/find-one-application.util';
+import { setupApplicationForSync } from 'test/integration/metadata/suites/application/utils/setup-application-for-sync.util';
+import { syncApplication } from 'test/integration/metadata/suites/application/utils/sync-application.util';
+import { updateOneApplicationVariable } from 'test/integration/metadata/suites/application/utils/update-one-application-variable.util';
+
+const TEST_APP_ID = 'e3b2c3d4-0001-4000-a000-000000000001';
+const TEST_ROLE_ID = 'e3b2c3d4-0002-4000-a000-000000000002';
+const USER_VARIABLE_ID = 'e3b2c3d4-0003-4000-a000-000000000003';
+const USER_VARIABLE_KEY = 'API_KEY';
+
+describe('Updating the workspace value of a user application variable should fail', () => {
+ let applicationId: string;
+
+ beforeAll(async () => {
+ await setupApplicationForSync({
+ applicationUniversalIdentifier: TEST_APP_ID,
+ name: 'Test User Application Variable Update App',
+ description: 'App for testing user application variable updates',
+ sourcePath: 'test-user-application-variable-update',
+ });
+
+ const baseManifest = buildBaseManifest({
+ appId: TEST_APP_ID,
+ roleId: TEST_ROLE_ID,
+ });
+
+ await syncApplication({
+ manifest: {
+ ...baseManifest,
+ application: {
+ ...baseManifest.application,
+ applicationVariables: {
+ [USER_VARIABLE_KEY]: {
+ universalIdentifier: USER_VARIABLE_ID,
+ scope: 'USER',
+ },
+ },
+ },
+ },
+ expectToFail: false,
+ });
+
+ const { data } = await findOneApplication({
+ input: { universalIdentifier: TEST_APP_ID },
+ gqlFields: 'id',
+ expectToFail: false,
+ });
+
+ applicationId = data.findOneApplication.id;
+ }, 120000);
+
+ afterAll(async () => {
+ await cleanupApplicationAndAppRegistration({
+ applicationUniversalIdentifier: TEST_APP_ID,
+ });
+ });
+
+ it('should refuse to set a workspace value on a user variable', async () => {
+ const { errors } = await updateOneApplicationVariable({
+ input: {
+ key: USER_VARIABLE_KEY,
+ value: 'workspace-value',
+ applicationId,
+ },
+ expectToFail: true,
+ });
+
+ expectOneNotInternalServerErrorSnapshot({ errors });
+ });
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/successful-sync-application-variable-scope.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/successful-sync-application-variable-scope.integration-spec.ts
new file mode 100644
index 00000000000..295207cd8ef
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/successful-sync-application-variable-scope.integration-spec.ts
@@ -0,0 +1,164 @@
+import { buildBaseManifest } from 'test/integration/metadata/suites/application/utils/build-base-manifest.util';
+import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';
+import { findOneApplication } from 'test/integration/metadata/suites/application/utils/find-one-application.util';
+import { setupApplicationForSync } from 'test/integration/metadata/suites/application/utils/setup-application-for-sync.util';
+import { syncApplication } from 'test/integration/metadata/suites/application/utils/sync-application.util';
+import { type ApplicationVariableScope } from 'twenty-shared/application';
+import { FieldMetadataType } from 'twenty-shared/types';
+import { isDefined } from 'twenty-shared/utils';
+
+const TEST_APP_ID = 'e2b2c3d4-0001-4000-a000-000000000001';
+const TEST_ROLE_ID = 'e2b2c3d4-0002-4000-a000-000000000002';
+
+const VARIABLE_ID_BY_SCOPE: Record<ApplicationVariableScope, string> = {
+ WORKSPACE: 'e2b2c3d4-0003-4000-a000-000000000003',
+ USER: 'e2b2c3d4-0004-4000-a000-000000000004',
+};
+
+const syncRecordMyMeetingsVariable = async ({
+ scope,
+ value,
+}: {
+ scope: ApplicationVariableScope;
+ value: boolean;
+}) => {
+ const baseManifest = buildBaseManifest({
+ appId: TEST_APP_ID,
+ roleId: TEST_ROLE_ID,
+ });
+
+ await syncApplication({
+ manifest: {
+ ...baseManifest,
+ application: {
+ ...baseManifest.application,
+ applicationVariables: {
+ RECORD_MY_MEETINGS: {
+ universalIdentifier: VARIABLE_ID_BY_SCOPE[scope],
+ type: FieldMetadataType.BOOLEAN,
+ value,
+ scope,
+ },
+ },
+ },
+ },
+ expectToFail: false,
+ });
+};
+
+const findStoredApplicationVariable = async (
+ universalIdentifier: string,
+): Promise<{ value: string | null; defaultValue: string | null }> => {
+ const [applicationVariable] = await globalThis.testDataSource.query(
+ `SELECT "value", "defaultValue" FROM "core"."applicationVariable" WHERE "universalIdentifier" = $1`,
+ [universalIdentifier],
+ );
+
+ if (!isDefined(applicationVariable)) {
+ throw new Error(
+ `No application variable with universalIdentifier ${universalIdentifier}`,
+ );
+ }
+
+ return applicationVariable;
+};
+
+describe('Sync application should create application variables of every scope', () => {
+ beforeAll(async () => {
+ await setupApplicationForSync({
+ applicationUniversalIdentifier: TEST_APP_ID,
+ name: 'Test Application Variable Scopes App',
+ description: 'App for testing application variable scopes',
+ sourcePath: 'test-application-variable-scopes',
+ });
+ }, 120000);
+
+ afterAll(async () => {
+ await cleanupApplicationAndAppRegistration({
+ applicationUniversalIdentifier: TEST_APP_ID,
+ });
+ });
+
+ it.each<ApplicationVariableScope>(['WORKSPACE', 'USER'])(
+ 'should create a secret and required %s variable',
+ async (scope) => {
+ const baseManifest = buildBaseManifest({
+ appId: TEST_APP_ID,
+ roleId: TEST_ROLE_ID,
+ });
+
+ await syncApplication({
+ manifest: {
+ ...baseManifest,
+ application: {
+ ...baseManifest.application,
+ applicationVariables: {
+ [`${scope}_API_KEY`]: {
+ universalIdentifier: VARIABLE_ID_BY_SCOPE[scope],
+ isSecret: true,
+ isRequired: true,
+ scope,
+ },
+ },
+ },
+ },
+ expectToFail: false,
+ });
+
+ const { data } = await findOneApplication({
+ input: { universalIdentifier: TEST_APP_ID },
+ gqlFields: 'applicationVariables { key scope isSecret isRequired }',
+ expectToFail: false,
+ });
+
+ expect(data.findOneApplication.applicationVariables).toEqual([
+ {
+ key: `${scope}_API_KEY`,
+ scope,
+ isSecret: true,
+ isRequired: true,
+ },
+ ]);
+ },
+ 60000,
+ );
+
+ it.each<ApplicationVariableScope>(['WORKSPACE', 'USER'])(
+ 'should store the manifest value of a %s variable as its default',
+ async (scope) => {
+ await syncRecordMyMeetingsVariable({ scope, value: true });
+
+ const { value, defaultValue } = await findStoredApplicationVariable(
+ VARIABLE_ID_BY_SCOPE[scope],
+ );
+
+ const { data } = await findOneApplication({
+ input: { universalIdentifier: TEST_APP_ID },
+ gqlFields: 'applicationVariables { key value }',
+ expectToFail: false,
+ });
+
+ expect(defaultValue).toBe('true');
+ expect(isDefined(value)).toBe(scope === 'WORKSPACE');
+ expect(data.findOneApplication.applicationVariables).toEqual([
+ {
+ key: 'RECORD_MY_MEETINGS',
+ value: scope === 'WORKSPACE' ? 'true' : '',
+ },
+ ]);
+ },
+ 60000,
+ );
+
+ it('should update the default of a user variable when the manifest value changes', async () => {
+ await syncRecordMyMeetingsVariable({ scope: 'USER', value: true });
+ await syncRecordMyMeetingsVariable({ scope: 'USER', value: false });
+
+ const { value, defaultValue } = await findStoredApplicationVariable(
+ VARIABLE_ID_BY_SCOPE.USER,
+ );
+
+ expect(defaultValue).toBe('false');
+ expect(value).toBeNull();
+ }, 60000);
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/front-component/successful-front-component-application-variables.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/front-component/successful-front-component-application-variables.integration-spec.ts
index f296c6f12c2..5f0d83b1829 100644
--- a/packages/twenty-server/test/integration/metadata/suites/front-component/successful-front-component-application-variables.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/front-component/successful-front-component-application-variables.integration-spec.ts
@@ -14,6 +14,7 @@ const TEST_ROLE_ID = uuidv4();
const FRONT_COMPONENT_ID = uuidv4();
const PUBLIC_VARIABLE_ID = uuidv4();
const SECRET_VARIABLE_ID = uuidv4();
+const USER_VARIABLE_ID = uuidv4();
const BUILT_COMPONENT_PATH = 'src/front-components/variables.mjs';
const PUBLIC_VARIABLE_VALUE = 'pk.public-access-token';
@@ -37,6 +38,10 @@ const buildManifest = (): Manifest => {
universalIdentifier: SECRET_VARIABLE_ID,
isSecret: true,
},
+ RECORD_MY_MEETINGS: {
+ universalIdentifier: USER_VARIABLE_ID,
+ scope: 'USER',
+ },
},
},
frontComponents: [
@@ -118,7 +123,7 @@ describe('Front component application variables', () => {
expect(publicVariable.value).not.toContain(PUBLIC_VARIABLE_VALUE);
});
- it('should expose non-secret application variables decrypted and exclude secret ones', async () => {
+ it('should expose non-secret workspace variables decrypted and exclude secret and user ones', async () => {
const { data } = await findFrontComponent({
input: { id: frontComponentId },
gqlFields: `
diff --git a/packages/twenty-shared/src/application/applicationVariablesType.ts b/packages/twenty-shared/src/application/applicationVariablesType.ts
index 85a662f9e35..a9281b3bc08 100644
--- a/packages/twenty-shared/src/application/applicationVariablesType.ts
+++ b/packages/twenty-shared/src/application/applicationVariablesType.ts
@@ -23,6 +23,19 @@ export type ApplicationVariableOption = {
value: string;
};
+export const APPLICATION_VARIABLE_SCOPES = ['WORKSPACE', 'USER'] as const;
+
+export type ApplicationVariableScope =
+ (typeof APPLICATION_VARIABLE_SCOPES)[number];
+
+export const isApplicationVariableScope = (
+ scope: string,
+): scope is ApplicationVariableScope =>
+ (APPLICATION_VARIABLE_SCOPES as readonly string[]).includes(scope);
+
+export const DEFAULT_APPLICATION_VARIABLE_SCOPE: ApplicationVariableScope =
+ 'WORKSPACE';
+
export type ApplicationVariableValue =
| string
| number
@@ -37,6 +50,7 @@ type TypedApplicationVariable = {
options?: ApplicationVariableOption[];
isRequired?: boolean;
isDeprecated?: boolean;
+ scope?: ApplicationVariableScope;
};
type SecretApplicationVariable = SyncableEntityOptions &
diff --git a/packages/twenty-shared/src/application/index.ts b/packages/twenty-shared/src/application/index.ts
index bbe846f9db5..3d31fce23e7 100644
--- a/packages/twenty-shared/src/application/index.ts
+++ b/packages/twenty-shared/src/application/index.ts
@@ -60,11 +60,17 @@ export type { ApplicationManifest } from './applicationType';
export type {
ApplicationVariableType,
ApplicationVariableOption,
+ ApplicationVariableScope,
ApplicationVariableValue,
ApplicationVariable,
ApplicationVariables,
} from './applicationVariablesType';
-export { APPLICATION_VARIABLE_FIELD_METADATA_TYPES } from './applicationVariablesType';
+export {
+ APPLICATION_VARIABLE_FIELD_METADATA_TYPES,
+ APPLICATION_VARIABLE_SCOPES,
+ isApplicationVariableScope,
+ DEFAULT_APPLICATION_VARIABLE_SCOPE,
+} from './applicationVariablesType';
export type { AppMessageChannel } from './appMessageChannelType';
export type { AssetManifest } from './assetManifestType';
export type {