The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Move inbox filters into the list header (#29192)
Raphaël Bosie7f8de20dc2e
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphqlindex 8d584ccedc7..acce83ff8e8 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql@@ -45,6 +45,7 @@ type AgentChatChannel {enum AgentChatChannelAssignmentFilter {ANY+ ASSIGNEDASSIGNED_TO_MEUNASSIGNED}@@ -57,13 +58,23 @@ type AgentChatChannelRole {}type AgentChatChannelSummary {+ assignedCount: Int!assignedToMeCount: Int!channelId: UUID!doneCount: Int!hasUnreadAssignedToMe: Boolean!hasUnreadOpen: Boolean!+ mentionedCount: Int!+ needsInputCount: Int!openCount: Int!snoozedCount: Int!+ unassignedCount: Int!+}++enum AgentChatChannelThreadFilter {+ ANY+ MENTIONED+ NEEDS_INPUT}type AgentChatChannelThreadIds {@@ -94,11 +105,15 @@ enum AgentChatInboxAction {}type AgentChatOpenThreadsSummary {+ assignedThreadCount: Int!+ assignedToMeThreadCount: Int!hasUnreadAssignedThread: Boolean!hasUnreadMentionThread: Boolean!hasUnreadOpenThread: Boolean!+ mentionThreadCount: Int!needsInputThreadCount: Int!openThreadCount: Int!+ unassignedThreadCount: Int!unreadOpenThreadCount: Int!}@@ -4024,7 +4039,7 @@ type PublicWorkspaceDataSummary {type Query {agentChatChannelRoles: [AgentChatChannelRole!]!agentChatChannelSummaries: [AgentChatChannelSummary!]!- agentChatChannelThreadIds(after: String, assignment: AgentChatChannelAssignmentFilter, channelId: UUID!, first: Int, status: AgentChatChannelThreadStatus): AgentChatChannelThreadIds!+ agentChatChannelThreadIds(after: String, assignment: AgentChatChannelAssignmentFilter, channelId: UUID!, filter: AgentChatChannelThreadFilter, first: Int, status: AgentChatChannelThreadStatus): AgentChatChannelThreadIds!agentChatChannels: [AgentChatChannel!]!agentChatOpenThreadsSummary: AgentChatOpenThreadsSummary!agentRuns(agentId: UUID!, limit: Int! = 100): [AgentRun!]!diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.tsindex d28a43bd341..ceababc884b 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts@@ -50,7 +50,7 @@ export interface AgentChatChannel {__typename: 'AgentChatChannel'}-export type AgentChatChannelAssignmentFilter = 'ANY' | 'ASSIGNED_TO_ME' | 'UNASSIGNED'+export type AgentChatChannelAssignmentFilter = 'ANY' | 'ASSIGNED' | 'ASSIGNED_TO_ME' | 'UNASSIGNED'export interface AgentChatChannelRole {canAccessAllAgentChatChannels: Scalars['Boolean']@@ -61,16 +61,22 @@ export interface AgentChatChannelRole {}export interface AgentChatChannelSummary {+ assignedCount: Scalars['Int']assignedToMeCount: Scalars['Int']channelId: Scalars['UUID']doneCount: Scalars['Int']hasUnreadAssignedToMe: Scalars['Boolean']hasUnreadOpen: Scalars['Boolean']+ mentionedCount: Scalars['Int']+ needsInputCount: Scalars['Int']openCount: Scalars['Int']snoozedCount: Scalars['Int']+ unassignedCount: Scalars['Int']__typename: 'AgentChatChannelSummary'}+export type AgentChatChannelThreadFilter = 'ANY' | 'MENTIONED' | 'NEEDS_INPUT'+export interface AgentChatChannelThreadIds {endCursor?: Scalars['String']hasNextPage: Scalars['Boolean']@@ -89,11 +95,15 @@ export interface AgentChatEvent {export type AgentChatInboxAction = 'ARCHIVE' | 'MOVE_TO_INBOX' | 'READ' | 'SNOOZE' | 'SUBSCRIBE' | 'UNREAD' | 'UNSUBSCRIBE'export interface AgentChatOpenThreadsSummary {+ assignedThreadCount: Scalars['Int']+ assignedToMeThreadCount: Scalars['Int']hasUnreadAssignedThread: Scalars['Boolean']hasUnreadMentionThread: Scalars['Boolean']hasUnreadOpenThread: Scalars['Boolean']+ mentionThreadCount: Scalars['Int']needsInputThreadCount: Scalars['Int']openThreadCount: Scalars['Int']+ unassignedThreadCount: Scalars['Int']unreadOpenThreadCount: Scalars['Int']__typename: 'AgentChatOpenThreadsSummary'}@@ -4276,13 +4286,17 @@ export interface AgentChatChannelRoleGenqlSelection{}export interface AgentChatChannelSummaryGenqlSelection{+ assignedCount?: boolean | numberassignedToMeCount?: boolean | numberchannelId?: boolean | numberdoneCount?: boolean | numberhasUnreadAssignedToMe?: boolean | numberhasUnreadOpen?: boolean | number+ mentionedCount?: boolean | number+ needsInputCount?: boolean | numberopenCount?: boolean | numbersnoozedCount?: boolean | number+ unassignedCount?: boolean | number__typename?: boolean | number__scalar?: boolean | number}@@ -4303,11 +4317,15 @@ export interface AgentChatEventGenqlSelection{}export interface AgentChatOpenThreadsSummaryGenqlSelection{+ assignedThreadCount?: boolean | number+ assignedToMeThreadCount?: boolean | numberhasUnreadAssignedThread?: boolean | numberhasUnreadMentionThread?: boolean | numberhasUnreadOpenThread?: boolean | number+ mentionThreadCount?: boolean | numberneedsInputThreadCount?: boolean | numberopenThreadCount?: boolean | number+ unassignedThreadCount?: boolean | numberunreadOpenThreadCount?: boolean | number__typename?: boolean | number__scalar?: boolean | number@@ -7491,7 +7509,7 @@ export interface PublicWorkspaceDataSummaryGenqlSelection{export interface QueryGenqlSelection{agentChatChannelRoles?: AgentChatChannelRoleGenqlSelectionagentChatChannelSummaries?: AgentChatChannelSummaryGenqlSelection- agentChatChannelThreadIds?: (AgentChatChannelThreadIdsGenqlSelection & { __args: {after?: (Scalars['String'] | null), assignment?: (AgentChatChannelAssignmentFilter | null), channelId: Scalars['UUID'], first?: (Scalars['Int'] | null), status?: (AgentChatChannelThreadStatus | null)} })+ agentChatChannelThreadIds?: (AgentChatChannelThreadIdsGenqlSelection & { __args: {after?: (Scalars['String'] | null), assignment?: (AgentChatChannelAssignmentFilter | null), channelId: Scalars['UUID'], filter?: (AgentChatChannelThreadFilter | null), first?: (Scalars['Int'] | null), status?: (AgentChatChannelThreadStatus | null)} })agentChatChannels?: AgentChatChannelGenqlSelectionagentChatOpenThreadsSummary?: AgentChatOpenThreadsSummaryGenqlSelectionagentRuns?: (AgentRunGenqlSelection & { __args: {agentId: Scalars['UUID'], limit: Scalars['Int']} })@@ -11925,10 +11943,17 @@ export interface WorkspaceUrlsAndIdGenqlSelection{export const enumAgentChatChannelAssignmentFilter = {ANY: 'ANY' as const,+ ASSIGNED: 'ASSIGNED' as const,ASSIGNED_TO_ME: 'ASSIGNED_TO_ME' as const,UNASSIGNED: 'UNASSIGNED' as const}+export const enumAgentChatChannelThreadFilter = {+ ANY: 'ANY' as const,+ MENTIONED: 'MENTIONED' as const,+ NEEDS_INPUT: 'NEEDS_INPUT' as const+}+export const enumAgentChatChannelThreadStatus = {DONE: 'DONE' as const,OPEN: 'OPEN' as const,diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.tsindex d3f5befea26..9f4d4706f3c 100644--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts@@ -5,123 +5,124 @@ export default {6,7,10,- 12,- 14,- 17,- 24,- 26,- 29,- 32,- 34,- 41,- 54,- 62,- 72,- 78,- 90,- 94,+ 11,+ 13,+ 15,+ 18,+ 25,+ 27,+ 30,+ 33,+ 35,+ 42,+ 55,+ 63,+ 73,+ 79,+ 91,95,- 97,- 102,- 107,- 113,- 118,- 124,- 127,+ 96,+ 98,+ 103,+ 108,+ 114,+ 119,+ 125,128,129,130,- 138,- 140,- 154,- 158,- 160,- 162,- 209,+ 131,+ 139,+ 141,+ 155,+ 159,+ 161,+ 163,210,- 237,- 241,+ 211,+ 238,242,- 244,- 254,- 260,- 264,- 268,- 271,- 278,- 293,- 295,- 306,- 313,+ 243,+ 245,+ 255,+ 261,+ 265,+ 269,+ 272,+ 279,+ 294,+ 296,+ 307,314,315,- 327,- 329,- 345,+ 316,+ 328,+ 330,346,347,348,349,350,- 352,+ 351,353,354,- 357,+ 355,358,- 360,+ 359,361,- 364,- 366,- 370,- 374,- 383,- 390,+ 362,+ 365,+ 367,+ 371,+ 375,+ 384,391,392,- 395,- 399,+ 393,+ 396,400,- 405,- 409,- 432,- 434,+ 401,+ 406,+ 410,+ 433,435,- 438,- 444,- 456,- 458,- 462,- 467,- 487,- 499,+ 436,+ 439,+ 445,+ 457,+ 459,+ 463,+ 468,+ 488,500,- 502,- 527,- 529,- 531,- 594,- 614,- 621,- 623,- 627,- 638,- 644,+ 501,+ 503,+ 528,+ 530,+ 532,+ 595,+ 615,+ 622,+ 624,+ 628,+ 639,645,- 647,+ 646,648,- 650,+ 649,651,652,- 655,+ 653,656,- 661,- 663,- 666,- 671,+ 657,+ 662,+ 664,+ 667,672,673,- 676,- 677+ 674,+ 677,+ 678],"types": {"ActivateWorkspaceInput": {@@ -138,7 +139,7 @@ export default {1],"operationSignature": [- 313+ 314],"queryId": [1@@ -149,10 +150,10 @@ export default {},"Agent": {"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"description": [1@@ -161,7 +162,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -176,7 +177,7 @@ export default {1],"modelConfiguration": [- 313+ 314],"modelId": [1@@ -188,16 +189,16 @@ export default {1],"responseFormat": [- 313+ 314],"roleId": [- 527+ 528],"triggers": [- 313+ 314],"updatedAt": [- 210+ 211],"__typename": [1@@ -206,7 +207,7 @@ export default {"Boolean": {},"AgentChatChannel": {"applicationId": [- 527+ 528],"color": [1@@ -215,7 +216,7 @@ export default {1],"id": [- 527+ 528],"isAccessible": [4@@ -230,7 +231,7 @@ export default {6],"roleIds": [- 527+ 528],"__typename": [1@@ -246,7 +247,7 @@ export default {1],"id": [- 527+ 528],"label": [1@@ -256,11 +257,14 @@ export default {]},"AgentChatChannelSummary": {+ "assignedCount": [+ 10+ ],"assignedToMeCount": [10],"channelId": [- 527+ 528],"doneCount": [10@@ -271,17 +275,27 @@ export default {"hasUnreadOpen": [4],+ "mentionedCount": [+ 10+ ],+ "needsInputCount": [+ 10+ ],"openCount": [10],"snoozedCount": [10],+ "unassignedCount": [+ 10+ ],"__typename": [1]},"Int": {},+ "AgentChatChannelThreadFilter": {},"AgentChatChannelThreadIds": {"endCursor": [1@@ -290,7 +304,7 @@ export default {4],"threadIds": [- 527+ 528],"__typename": [1@@ -299,7 +313,7 @@ export default {"AgentChatChannelThreadStatus": {},"AgentChatEvent": {"event": [- 313+ 314],"threadId": [1@@ -310,6 +324,12 @@ export default {},"AgentChatInboxAction": {},"AgentChatOpenThreadsSummary": {+ "assignedThreadCount": [+ 10+ ],+ "assignedToMeThreadCount": [+ 10+ ],"hasUnreadAssignedThread": [4],@@ -319,12 +339,18 @@ export default {"hasUnreadOpenThread": [4],+ "mentionThreadCount": [+ 10+ ],"needsInputThreadCount": [10],"openThreadCount": [10],+ "unassignedThreadCount": [+ 10+ ],"unreadOpenThreadCount": [10],@@ -340,13 +366,13 @@ export default {10],"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"id": [- 17+ 18],"title": [1@@ -367,7 +393,7 @@ export default {10],"updatedAt": [- 210+ 211],"__typename": [1@@ -376,31 +402,31 @@ export default {"ID": {},"AgentChatThreadParticipant": {"archivedAt": [- 210+ 211],"id": [- 527+ 528],"isSubscribed": [4],"lastMentionedAt": [- 210+ 211],"lastReadAt": [- 210+ 211],"mentionsResolvedAt": [- 210+ 211],"snoozedUntil": [- 210+ 211],"threadId": [- 527+ 528],"updatedAt": [- 210+ 211],"__typename": [1@@ -408,7 +434,7 @@ export default {},"AgentIdInput": {"id": [- 527+ 528],"__typename": [1@@ -416,40 +442,40 @@ export default {},"AgentMessage": {"agentId": [- 527+ 528],"createdAt": [- 210+ 211],"id": [- 527+ 528],"parts": [- 21+ 22],"processedAt": [- 210+ 211],"reactions": [- 22+ 23],"role": [1],"senderUserWorkspaceId": [- 527+ 528],"senderWorkspaceMemberId": [- 527+ 528],"status": [1],"threadId": [- 527+ 528],"turnId": [- 527+ 528],"__typename": [1@@ -457,7 +483,7 @@ export default {},"AgentMessagePart": {"createdAt": [- 210+ 211],"errorMessage": [1@@ -466,7 +492,7 @@ export default {1],"fileId": [- 527+ 528],"fileMediaType": [1@@ -475,10 +501,10 @@ export default {1],"id": [- 527+ 528],"messageId": [- 527+ 528],"orderIndex": [10@@ -487,7 +513,7 @@ export default {4],"providerMetadata": [- 313+ 314],"reasoningContent": [1@@ -523,13 +549,13 @@ export default {1],"toolInput": [- 313+ 314],"toolName": [1],"toolOutput": [- 313+ 314],"type": [1@@ -540,7 +566,7 @@ export default {},"AgentMessageReactionSummary": {"agentIds": [- 527+ 528],"emoji": [1@@ -549,7 +575,7 @@ export default {4],"workspaceMemberIds": [- 527+ 528],"__typename": [1@@ -557,7 +583,7 @@ export default {},"AgentRun": {"createdAt": [- 210+ 211],"creatorName": [1@@ -569,13 +595,13 @@ export default {6],"endedAt": [- 210+ 211],"errorMessage": [1],"id": [- 527+ 528],"input": [1@@ -593,13 +619,13 @@ export default {1],"startedAt": [- 210+ 211],"status": [- 24+ 25],"threadId": [- 527+ 528],"threadTitle": [1@@ -614,13 +640,13 @@ export default {"AgentTurnStatus": {},"AggregateChartConfiguration": {"aggregateFieldMetadataId": [- 527+ 528],"aggregateOperation": [- 26+ 27],"configurationType": [- 655+ 656],"description": [1@@ -629,7 +655,7 @@ export default {4],"filter": [- 313+ 314],"firstDayOfTheWeek": [10@@ -638,13 +664,13 @@ export default {1],"numberFormat": [- 140+ 141],"prefix": [1],"ratioAggregateConfig": [- 427+ 428],"suffix": [1@@ -659,16 +685,16 @@ export default {"AggregateOperations": {},"AiChatUsage": {"consumedValue": [- 97+ 98],"kind": [1],"limitValue": [- 97+ 98],"periodEnd": [- 210+ 211],"__typename": [1@@ -676,13 +702,13 @@ export default {},"AiChatUserCreditsUsage": {"consumedValue": [- 97+ 98],"limitValue": [- 97+ 98],"periodEnd": [- 210+ 211],"__typename": [1@@ -694,7 +720,7 @@ export default {10],"sections": [- 31+ 32],"__typename": [1@@ -734,25 +760,25 @@ export default {},"ApiKey": {"createdAt": [- 210+ 211],"expiresAt": [- 210+ 211],"id": [- 527+ 528],"name": [1],"revokedAt": [- 210+ 211],"role": [- 450+ 451],"updatedAt": [- 210+ 211],"__typename": [1@@ -760,16 +786,16 @@ export default {},"ApiKeyForRole": {"expiresAt": [- 210+ 211],"id": [- 527+ 528],"name": [1],"revokedAt": [- 210+ 211],"__typename": [1@@ -800,7 +826,7 @@ export default {1],"id": [- 17+ 18],"name": [1@@ -812,7 +838,7 @@ export default {1],"scope": [- 158+ 159],"scopes": [1@@ -835,10 +861,10 @@ export default {1],"scope": [- 41+ 42],"value": [- 313+ 314],"__typename": [1@@ -867,10 +893,10 @@ export default {1],"participants": [- 44+ 45],"receivedAt": [- 210+ 211],"subject": [1@@ -893,13 +919,13 @@ export default {1],"personId": [- 527+ 528],"role": [- 354+ 355],"workspaceMemberId": [- 527+ 528],"__typename": [1@@ -910,31 +936,31 @@ export default {3],"applicationRegistration": [- 74+ 75],"applicationRegistrationId": [- 527+ 528],"applicationVariables": [- 77+ 78],"autoUpgrade": [4],"availablePackages": [- 313+ 314],"canBeUninstalled": [4],"commandMenuItems": [- 153+ 154],"createdAt": [- 210+ 211],"defaultLogicFunctionRole": [- 450+ 451],"defaultRoleId": [1@@ -943,22 +969,22 @@ export default {1],"frontComponents": [- 285+ 286],"healthCheckLogicFunctionId": [- 527+ 528],"id": [- 527+ 528],"isUninstallBlockedByOtherWorkspaceInstallations": [4],"logicFunctions": [- 326+ 327],"logoFileId": [- 527+ 528],"logoUrl": [1@@ -967,19 +993,19 @@ export default {1],"objects": [- 376+ 377],"packageJsonChecksum": [1],"packageJsonFileId": [- 527+ 528],"settingsCustomTabFrontComponentId": [- 527+ 528],"settingsMenuItems": [- 486+ 487],"universalIdentifier": [1@@ -991,7 +1017,7 @@ export default {1],"yarnLockFileId": [- 527+ 528],"__typename": [1@@ -999,7 +1025,7 @@ export default {},"ApplicationAuthorization": {"applicationId": [- 527+ 528],"applicationName": [1@@ -1008,22 +1034,22 @@ export default {1],"createdAt": [- 210+ 211],"id": [- 527+ 528],"lastAuthorizedAt": [- 210+ 211],"lastUsedAt": [- 210+ 211],"scopes": [1],"workspaceId": [- 527+ 528],"__typename": [1@@ -1034,7 +1060,7 @@ export default {1],"id": [- 527+ 528],"__typename": [1@@ -1042,25 +1068,25 @@ export default {},"ApplicationConnectedAccountDTO": {"applicationId": [- 527+ 528],"archivedAt": [- 210+ 211],"authFailedAt": [- 210+ 211],"authFailedReason": [1],"connectionParameters": [- 423+ 424],"connectionProviderId": [- 527+ 528],"createdAt": [- 210+ 211],"handle": [1@@ -1069,16 +1095,16 @@ export default {1],"id": [- 527+ 528],"isOwnedByCurrentUser": [4],"lastCredentialsRefreshedAt": [- 210+ 211],"lastSignedInAt": [- 210+ 211],"name": [1@@ -1087,16 +1113,16 @@ export default {1],"scope": [- 158+ 159],"scopes": [1],"updatedAt": [- 210+ 211],"userWorkspaceId": [- 527+ 528],"visibility": [1@@ -1113,7 +1139,7 @@ export default {1],"id": [- 527+ 528],"logoUrl": [1@@ -1122,10 +1148,10 @@ export default {1],"oauth": [- 50+ 51],"scope": [- 162+ 163],"type": [1@@ -1147,16 +1173,16 @@ export default {},"ApplicationExport": {"application": [- 52+ 53],"coverage": [- 53+ 54],"files": [- 55+ 56],"manifest": [- 313+ 314],"__typename": [1@@ -1167,7 +1193,7 @@ export default {1],"sourceType": [- 72+ 73],"universalIdentifier": [1@@ -1184,7 +1210,7 @@ export default {1],"status": [- 54+ 55],"universalIdentifier": [1@@ -1210,7 +1236,7 @@ export default {},"ApplicationFileCompletionError": {"fileId": [- 527+ 528],"message": [1@@ -1221,7 +1247,7 @@ export default {},"ApplicationFileUploadError": {"fileFolder": [- 278+ 279],"filePath": [1@@ -1235,7 +1261,7 @@ export default {},"ApplicationFileUploadRequestInput": {"fileFolder": [- 278+ 279],"filePath": [1@@ -1252,13 +1278,13 @@ export default {1],"expiresAt": [- 210+ 211],"fileFolder": [- 278+ 279],"fileId": [- 527+ 528],"filePath": [1@@ -1283,13 +1309,13 @@ export default {},"ApplicationHealthCheckResult": {"action": [- 60+ 61],"description": [1],"status": [- 62+ 63],"title": [1@@ -1301,13 +1327,13 @@ export default {"ApplicationHealthStatus": {},"ApplicationMonitoring": {"activity": [- 64+ 65],"bucketSizeInSeconds": [10],"creditUsage": [- 65+ 66],"creditsUsed": [6@@ -1316,13 +1342,13 @@ export default {10],"functions": [- 66+ 67],"issues": [- 67+ 68],"lifecycle": [- 68+ 69],"lifecycleFailureCount": [10@@ -1331,10 +1357,10 @@ export default {10],"periodEnd": [- 210+ 211],"periodStart": [- 210+ 211],"rateLimitEventCount": [10@@ -1343,7 +1369,7 @@ export default {10],"versions": [- 69+ 70],"__typename": [1@@ -1351,7 +1377,7 @@ export default {},"ApplicationMonitoringActivityBucket": {"bucketStart": [- 210+ 211],"errorCount": [10@@ -1368,7 +1394,7 @@ export default {},"ApplicationMonitoringCreditBucket": {"bucketStart": [- 210+ 211],"creditsUsed": [6@@ -1408,7 +1434,7 @@ export default {10],"lastSeenAt": [- 210+ 211],"level": [1@@ -1428,7 +1454,7 @@ export default {},"ApplicationMonitoringLifecycleBucket": {"bucketStart": [- 210+ 211],"failedCount": [10@@ -1465,16 +1491,16 @@ export default {},"ApplicationPreferences": {"applicationId": [- 527+ 528],"connectionProviders": [- 49+ 50],"settingsMenuItems": [- 486+ 487],"variables": [- 626+ 627],"__typename": [1@@ -1482,13 +1508,13 @@ export default {},"ApplicationRegistration": {"createdAt": [- 210+ 211],"galleryImagesUrls": [1],"id": [- 527+ 528],"isConfigured": [4@@ -1518,19 +1544,19 @@ export default {1],"ownerWorkspaceId": [- 527+ 528],"sourcePackage": [1],"sourceType": [- 72+ 73],"universalIdentifier": [1],"updatedAt": [- 210+ 211],"__typename": [1@@ -1545,7 +1571,7 @@ export default {10],"creditsUsedBreakdown": [- 207+ 208],"mostInstalledVersion": [1@@ -1557,7 +1583,7 @@ export default {6],"versionDistribution": [- 636+ 637],"__typename": [1@@ -1565,7 +1591,7 @@ export default {},"ApplicationRegistrationSummary": {"id": [- 527+ 528],"latestAvailableVersion": [1@@ -1574,7 +1600,7 @@ export default {1],"sourceType": [- 72+ 73],"__typename": [1@@ -1582,13 +1608,13 @@ export default {},"ApplicationRegistrationVariable": {"createdAt": [- 210+ 211],"description": [1],"id": [- 527+ 528],"isDeprecated": [4@@ -1606,13 +1632,13 @@ export default {1],"options": [- 313+ 314],"type": [1],"updatedAt": [- 210+ 211],"value": [1@@ -1623,10 +1649,10 @@ export default {},"ApplicationTokenPair": {"applicationAccessToken": [- 82+ 83],"applicationRefreshToken": [- 82+ 83],"__typename": [1@@ -1637,7 +1663,7 @@ export default {1],"id": [- 527+ 528],"isDeprecated": [4@@ -1655,10 +1681,10 @@ export default {1],"options": [- 313+ 314],"scope": [- 78+ 79],"type": [1@@ -1673,13 +1699,13 @@ export default {"ApplicationVariableScope": {},"ApprovedAccessDomain": {"createdAt": [- 210+ 211],"domain": [1],"id": [- 527+ 528],"isValidated": [4@@ -1716,7 +1742,7 @@ export default {4],"sso": [- 466+ 467],"__typename": [1@@ -1724,7 +1750,7 @@ export default {},"AuthToken": {"expiresAt": [- 210+ 211],"token": [1@@ -1735,10 +1761,10 @@ export default {},"AuthTokenPair": {"accessOrWorkspaceAgnosticToken": [- 82+ 83],"refreshToken": [- 82+ 83],"__typename": [1@@ -1746,7 +1772,7 @@ export default {},"AuthTokens": {"tokens": [- 83+ 84],"__typename": [1@@ -1776,7 +1802,7 @@ export default {1],"id": [- 527+ 528],"inviteHash": [1@@ -1791,10 +1817,10 @@ export default {1],"sso": [- 465+ 466],"workspaceUrls": [- 678+ 679],"__typename": [1@@ -1802,10 +1828,10 @@ export default {},"AvailableWorkspaces": {"availableWorkspacesForSignIn": [- 87+ 88],"availableWorkspacesForSignUp": [- 87+ 88],"__typename": [1@@ -1813,10 +1839,10 @@ export default {},"AvailableWorkspacesAndAccessTokens": {"availableWorkspaces": [- 88+ 89],"tokens": [- 83+ 84],"__typename": [1@@ -1825,19 +1851,19 @@ export default {"AxisNameDisplay": {},"BarChartConfiguration": {"aggregateFieldMetadataId": [- 527+ 528],"aggregateOperation": [- 26+ 27],"axisNameDisplay": [- 90+ 91],"color": [1],"configurationType": [- 655+ 656],"description": [1@@ -1849,31 +1875,31 @@ export default {4],"filter": [- 313+ 314],"firstDayOfTheWeek": [10],"groupMode": [- 94+ 95],"isCumulative": [4],"layout": [- 95+ 96],"numberFormat": [- 140+ 141],"omitNullValues": [4],"primaryAxisDateGranularity": [- 390+ 391],"primaryAxisGroupByFieldMetadataId": [- 527+ 528],"primaryAxisGroupBySubFieldName": [1@@ -1882,7 +1908,7 @@ export default {1],"primaryAxisOrderBy": [- 293+ 294],"rangeMax": [6@@ -1891,10 +1917,10 @@ export default {6],"secondaryAxisGroupByDateGranularity": [- 390+ 391],"secondaryAxisGroupByFieldMetadataId": [- 527+ 528],"secondaryAxisGroupBySubFieldName": [1@@ -1903,7 +1929,7 @@ export default {1],"secondaryAxisOrderBy": [- 293+ 294],"splitMultiValueFields": [4@@ -1917,13 +1943,13 @@ export default {},"BarChartData": {"data": [- 313+ 314],"formattedToRawLookup": [- 313+ 314],"groupMode": [- 94+ 95],"hasTooManyGroups": [4@@ -1935,10 +1961,10 @@ export default {1],"layout": [- 95+ 96],"series": [- 96+ 97],"showDataLabels": [4@@ -1958,10 +1984,10 @@ export default {},"BarChartDataInput": {"configuration": [- 313+ 314],"objectMetadataId": [- 527+ 528],"__typename": [1@@ -1992,7 +2018,7 @@ export default {1],"trialPeriods": [- 122+ 123],"__typename": [1@@ -2003,10 +2029,10 @@ export default {4],"id": [- 527+ 528],"userCreditsFallback": [- 627+ 628],"__typename": [1@@ -2017,16 +2043,16 @@ export default {1],"billingSubscriptions": [- 117+ 118],"currentBillingSubscription": [- 117+ 118],"hasPaymentMethod": [4],"status": [- 500+ 501],"__typename": [1@@ -2034,7 +2060,7 @@ export default {},"BillingEntitlement": {"key": [- 102+ 103],"value": [4@@ -2052,13 +2078,13 @@ export default {1],"metadata": [- 114+ 115],"name": [1],"prices": [- 108+ 109],"__typename": [1@@ -2072,13 +2098,13 @@ export default {1],"metadata": [- 114+ 115],"name": [1],"prices": [- 109+ 110],"__typename": [1@@ -2097,10 +2123,10 @@ export default {},"BillingPlan": {"baseProducts": [- 103+ 104],"downgradePlanKeys": [- 107+ 108],"isCheckoutDefault": [4@@ -2109,16 +2135,16 @@ export default {4],"meteredProducts": [- 104+ 105],"planKey": [- 107+ 108],"resourceCreditProducts": [- 103+ 104],"upgradePlanKeys": [- 107+ 108],"__typename": [1@@ -2133,10 +2159,10 @@ export default {4],"priceUsageType": [- 124+ 125],"recurringInterval": [- 499+ 500],"stripePriceId": [1@@ -2150,16 +2176,16 @@ export default {},"BillingPriceMetered": {"priceUsageType": [- 124+ 125],"recurringInterval": [- 499+ 500],"stripePriceId": [1],"tiers": [- 110+ 111],"__typename": [1@@ -2187,7 +2213,7 @@ export default {1],"metadata": [- 114+ 115],"name": [1@@ -2204,16 +2230,16 @@ export default {1],"metadata": [- 114+ 115],"name": [1],"on_BillingLicensedProduct": [- 103+ 104],"on_BillingMeteredProduct": [- 104+ 105],"__typename": [1@@ -2225,13 +2251,13 @@ export default {1],"planKey": [- 107+ 108],"priceUsageBased": [- 124+ 125],"productKey": [- 113+ 114],"__typename": [1@@ -2239,13 +2265,13 @@ export default {},"BillingResourceCreditUsage": {"periodEnd": [- 210+ 211],"periodStart": [- 210+ 211],"productKey": [- 113+ 114],"unitPriceCents": [6@@ -2285,34 +2311,34 @@ export default {},"BillingSubscription": {"billingSubscriptionItems": [- 119+ 120],"cancelAt": [- 210+ 211],"collectionMethod": [- 118+ 119],"currentPeriodEnd": [- 210+ 211],"hasUserCredits": [4],"id": [- 527+ 528],"interval": [- 499+ 500],"metadata": [- 313+ 314],"phases": [- 120+ 121],"status": [- 500+ 501],"__typename": [1@@ -2321,7 +2347,7 @@ export default {"BillingSubscriptionCollectionMethod": {},"BillingSubscriptionItem": {"billingProduct": [- 112+ 113],"creditAmount": [6@@ -2330,7 +2356,7 @@ export default {4],"id": [- 527+ 528],"quantity": [6@@ -2350,7 +2376,7 @@ export default {6],"items": [- 121+ 122],"start_date": [6@@ -2383,10 +2409,10 @@ export default {},"BillingUpdate": {"billingSubscriptions": [- 117+ 118],"currentBillingSubscription": [- 117+ 118],"__typename": [1@@ -2406,13 +2432,13 @@ export default {},"CalendarChannel": {"connectedAccountId": [- 527+ 528],"contactAutoCreationPolicy": [- 127+ 128],"createdAt": [- 210+ 211],"excludePrivateEvents": [4@@ -2421,7 +2447,7 @@ export default {1],"id": [- 527+ 528],"isContactAutoCreationEnabled": [4@@ -2430,25 +2456,25 @@ export default {4],"syncStage": [- 128+ 129],"syncStageStartedAt": [- 210+ 211],"syncStatus": [- 129+ 130],"syncedAt": [- 210+ 211],"throttleFailureCount": [6],"updatedAt": [- 210+ 211],"visibility": [- 130+ 131],"__typename": [1@@ -2460,7 +2486,7 @@ export default {"CalendarChannelVisibility": {},"CalendarConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -2468,7 +2494,7 @@ export default {},"CallRecordingSummaryConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -2476,7 +2502,7 @@ export default {},"CallRecordingTranscriptConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -2532,7 +2558,7 @@ export default {},"Captcha": {"provider": [- 138+ 139],"siteKey": [1@@ -2553,7 +2579,7 @@ export default {"ChartNumberFormat": {},"ChatConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -2561,10 +2587,10 @@ export default {},"ChatStreamCatchupChunks": {"chunks": [- 313+ 314],"error": [- 143+ 144],"maxSeq": [10@@ -2586,7 +2612,7 @@ export default {},"ChatThreadsConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -2711,7 +2737,7 @@ export default {6],"modelFamily": [- 370+ 371],"modelFamilyLabel": [1@@ -2720,7 +2746,7 @@ export default {1],"nativeCapabilities": [- 372+ 373],"outputCostPerMillionTokens": [6@@ -2746,7 +2772,7 @@ export default {1],"tier": [- 29+ 30],"__typename": [1@@ -2754,13 +2780,13 @@ export default {},"ClientConfig": {"aiEvaluationModels": [- 147+ 148],"aiModelTiers": [- 149+ 150],"aiModels": [- 148+ 149],"allowRequestsToTwentyIcons": [4@@ -2769,16 +2795,16 @@ export default {4],"api": [- 35+ 36],"appVersion": [1],"authProviders": [- 81+ 82],"billing": [- 98+ 99],"calendarBookingPageId": [1@@ -2787,7 +2813,7 @@ export default {4],"captcha": [- 137+ 138],"defaultSubdomain": [1@@ -2850,16 +2876,16 @@ export default {4],"maintenance": [- 151+ 152],"publicFeatureFlags": [- 421+ 422],"publicFunctionDomain": [1],"sentry": [- 484+ 485],"serverUrl": [1@@ -2868,7 +2894,7 @@ export default {4],"support": [- 501+ 502],"__typename": [1@@ -2876,13 +2902,13 @@ export default {},"ClientConfigMaintenanceMode": {"endAt": [- 210+ 211],"link": [1],"startAt": [- 210+ 211],"__typename": [1@@ -2890,7 +2916,7 @@ export default {},"CollectionHash": {"collectionName": [- 32+ 33],"hash": [1@@ -2901,13 +2927,13 @@ export default {},"CommandMenuItem": {"applicationId": [- 527+ 528],"availabilityObjectMetadataId": [- 527+ 528],"availabilityType": [- 154+ 155],"conditionalAvailabilityExpression": [1@@ -2916,19 +2942,19 @@ export default {1],"coreWorkflowVersionId": [- 527+ 528],"createdAt": [- 210+ 211],"engineComponentKey": [- 244+ 245],"frontComponent": [- 285+ 286],"frontComponentId": [- 527+ 528],"hotKeys": [1@@ -2937,7 +2963,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -2949,13 +2975,13 @@ export default {1],"navigationTargetObjectMetadataId": [- 527+ 528],"pageLayoutId": [- 527+ 528],"payload": [- 155+ 156],"position": [6@@ -2964,13 +2990,13 @@ export default {1],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"workflowVersionId": [- 527+ 528],"__typename": [1@@ -2979,10 +3005,10 @@ export default {"CommandMenuItemAvailabilityType": {},"CommandMenuItemPayload": {"on_ObjectMetadataCommandMenuItemPayload": [- 382+ 383],"on_PathCommandMenuItemPayload": [- 407+ 408],"__typename": [1@@ -2990,10 +3016,10 @@ export default {},"CompleteApplicationFileUploadsResult": {"errors": [- 56+ 57],"files": [- 276+ 277],"__typename": [1@@ -3001,25 +3027,25 @@ export default {},"ConnectedAccountPublicDTO": {"applicationId": [- 527+ 528],"archivedAt": [- 210+ 211],"authFailedAt": [- 210+ 211],"authFailedReason": [1],"connectionParameters": [- 423+ 424],"connectionProviderId": [- 527+ 528],"createdAt": [- 210+ 211],"handle": [1@@ -3028,13 +3054,13 @@ export default {1],"id": [- 527+ 528],"lastCredentialsRefreshedAt": [- 210+ 211],"lastSignedInAt": [- 210+ 211],"name": [1@@ -3043,16 +3069,16 @@ export default {1],"scope": [- 158+ 159],"scopes": [1],"updatedAt": [- 210+ 211],"userWorkspaceId": [- 527+ 528],"visibility": [1@@ -3064,19 +3090,19 @@ export default {"ConnectedAccountScope": {},"ConnectedImapSmtpCaldavAccount": {"connectionParameters": [- 298+ 299],"handle": [1],"id": [- 527+ 528],"provider": [1],"userWorkspaceId": [- 527+ 528],"__typename": [1@@ -3085,7 +3111,7 @@ export default {"ConnectionCursor": {},"ConnectionParametersInput": {"connectionSecurity": [- 237+ 238],"host": [1@@ -3115,7 +3141,7 @@ export default {1],"roleIds": [- 527+ 528],"__typename": [1@@ -3132,7 +3158,7 @@ export default {1],"modelConfiguration": [- 313+ 314],"modelId": [1@@ -3144,13 +3170,13 @@ export default {1],"responseFormat": [- 313+ 314],"roleId": [- 527+ 528],"triggers": [- 313+ 314],"__typename": [1@@ -3167,7 +3193,7 @@ export default {1],"roleId": [- 527+ 528],"__typename": [1@@ -3175,7 +3201,7 @@ export default {},"CreateAppMessageChannelInput": {"connectedAccountId": [- 527+ 528],"displayName": [1@@ -3184,13 +3210,13 @@ export default {1],"messagingProviderUniversalIdentifier": [- 527+ 528],"participantHandleFieldUniversalIdentifier": [- 527+ 528],"visibility": [- 350+ 351],"__typename": [1@@ -3198,10 +3224,10 @@ export default {},"CreateApplicationFileUploadsResult": {"errors": [- 57+ 58],"targets": [- 59+ 60],"__typename": [1@@ -3209,7 +3235,7 @@ export default {},"CreateApplicationRegistration": {"applicationRegistration": [- 71+ 72],"clientSecret": [1@@ -3306,10 +3332,10 @@ export default {},"CreateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 527+ 528],"availabilityType": [- 154+ 155],"conditionalAvailabilityExpression": [1@@ -3318,13 +3344,13 @@ export default {1],"coreWorkflowVersionId": [- 527+ 528],"engineComponentKey": [- 244+ 245],"frontComponentId": [- 527+ 528],"hotKeys": [1@@ -3339,13 +3365,13 @@ export default {1],"navigationTargetObjectMetadataId": [- 527+ 528],"pageLayoutId": [- 527+ 528],"payload": [- 313+ 314],"position": [6@@ -3354,7 +3380,7 @@ export default {1],"workflowVersionId": [- 527+ 528],"__typename": [1@@ -3376,7 +3402,7 @@ export default {1],"messageChannel": [- 344+ 345],"__typename": [1@@ -3392,7 +3418,7 @@ export default {},"CreateFieldInput": {"defaultValue": [- 313+ 314],"description": [1@@ -3434,25 +3460,25 @@ export default {1],"morphRelationsCreationPayload": [- 313+ 314],"name": [1],"objectMetadataId": [- 527+ 528],"options": [- 313+ 314],"relationCreationPayload": [- 313+ 314],"settings": [- 313+ 314],"type": [- 271+ 272],"__typename": [1@@ -3472,7 +3498,7 @@ export default {1],"id": [- 527+ 528],"name": [1@@ -3486,7 +3512,7 @@ export default {},"CreateIndexFieldInput": {"fieldMetadataId": [- 527+ 528],"subFieldName": [1@@ -3497,13 +3523,13 @@ export default {},"CreateIndexInput": {"fields": [- 179+ 180],"indexType": [- 306+ 307],"objectMetadataId": [- 527+ 528],"__typename": [1@@ -3511,40 +3537,40 @@ export default {},"CreateLogicFunctionFromSourceInput": {"cronTriggerSettings": [- 313+ 314],"databaseEventTriggerSettings": [- 313+ 314],"description": [1],"httpRouteTriggerSettings": [- 313+ 314],"id": [- 527+ 528],"name": [1],"serverRouteTriggerSettings": [- 313+ 314],"source": [- 313+ 314],"timeoutSeconds": [6],"toolTriggerSettings": [- 313+ 314],"universalIdentifier": [- 527+ 528],"workflowActionTriggerSettings": [- 313+ 314],"__typename": [1@@ -3552,10 +3578,10 @@ export default {},"CreateMcpServerInput": {"connectionProviderId": [- 527+ 528],"id": [- 527+ 528],"isActive": [4@@ -3578,7 +3604,7 @@ export default {1],"unsubscribeTopicId": [- 527+ 528],"__typename": [1@@ -3586,19 +3612,19 @@ export default {},"CreateNavigationMenuItemInput": {"agentChatChannelId": [- 527+ 528],"color": [1],"folderId": [- 527+ 528],"icon": [1],"id": [- 527+ 528],"link": [1@@ -3607,25 +3633,25 @@ export default {1],"pageLayoutId": [- 527+ 528],"position": [6],"targetObjectMetadataId": [- 527+ 528],"targetRecordId": [- 527+ 528],"type": [- 374+ 375],"userWorkspaceId": [- 527+ 528],"viewId": [- 527+ 528],"__typename": [1@@ -3663,7 +3689,7 @@ export default {1],"primaryKeyFieldMetadataSettings": [- 313+ 314],"shortcut": [1@@ -3677,7 +3703,7 @@ export default {},"CreateOneFieldMetadataInput": {"field": [- 177+ 178],"__typename": [1@@ -3685,7 +3711,7 @@ export default {},"CreateOneIndexInput": {"index": [- 180+ 181],"__typename": [1@@ -3693,7 +3719,7 @@ export default {},"CreateOneObjectInput": {"object": [- 185+ 186],"__typename": [1@@ -3704,10 +3730,10 @@ export default {1],"objectMetadataId": [- 527+ 528],"type": [- 400+ 401],"__typename": [1@@ -3715,10 +3741,10 @@ export default {},"CreatePageLayoutTabInput": {"layoutMode": [- 399+ 400],"pageLayoutId": [- 527+ 528],"position": [6@@ -3732,22 +3758,22 @@ export default {},"CreatePageLayoutWidgetInput": {"configuration": [- 313+ 314],"objectMetadataId": [- 527+ 528],"pageLayoutTabId": [- 527+ 528],"position": [- 313+ 314],"title": [1],"type": [- 656+ 657],"__typename": [1@@ -3755,16 +3781,16 @@ export default {},"CreateRecordExportInput": {"fieldMetadataIds": [- 527+ 528],"filter": [- 313+ 314],"objectMetadataId": [- 527+ 528],"orderBy": [- 313+ 314],"__typename": [1@@ -3772,16 +3798,16 @@ export default {},"CreateRelatedRecordPathInput": {"firstFieldMetadataId": [- 527+ 528],"objectMetadataId": [- 527+ 528],"secondFieldMetadataId": [- 527+ 528],"thirdFieldMetadataId": [- 527+ 528],"__typename": [1@@ -3845,7 +3871,7 @@ export default {1],"id": [- 527+ 528],"label": [1@@ -3865,7 +3891,7 @@ export default {1],"visibility": [- 531+ 532],"__typename": [1@@ -3873,16 +3899,16 @@ export default {},"CreateUsageLimitInput": {"burstValue": [- 97+ 98],"limitKind": [1],"limitValue": [- 97+ 98],"operationType": [- 614+ 615],"periodCount": [10@@ -3891,7 +3917,7 @@ export default {1],"resourceType": [- 621+ 622],"spenderId": [1@@ -3900,7 +3926,7 @@ export default {1],"unit": [- 623+ 624],"__typename": [1@@ -3911,7 +3937,7 @@ export default {1],"errorFieldMetadataId": [- 527+ 528],"expression": [1@@ -3929,7 +3955,7 @@ export default {1],"objectMetadataId": [- 527+ 528],"__typename": [1@@ -3937,7 +3963,7 @@ export default {},"CreateViewFieldGroupInput": {"id": [- 527+ 528],"isVisible": [4@@ -3949,7 +3975,7 @@ export default {6],"viewId": [- 527+ 528],"__typename": [1@@ -3957,13 +3983,13 @@ export default {},"CreateViewFieldInput": {"aggregateOperation": [- 26+ 27],"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"isVisible": [4@@ -3975,10 +4001,10 @@ export default {6],"viewFieldGroupId": [- 527+ 528],"viewId": [- 527+ 528],"__typename": [1@@ -3986,19 +4012,19 @@ export default {},"CreateViewFilterGroupInput": {"id": [- 527+ 528],"logicalOperator": [- 644+ 645],"parentViewFilterGroupId": [- 527+ 528],"positionInViewFilterGroup": [6],"viewId": [- 527+ 528],"__typename": [1@@ -4006,31 +4032,31 @@ export default {},"CreateViewFilterInput": {"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"operand": [- 645+ 646],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 527+ 528],"subFieldName": [1],"value": [- 313+ 314],"viewFilterGroupId": [- 527+ 528],"viewId": [- 527+ 528],"__typename": [1@@ -4041,7 +4067,7 @@ export default {1],"id": [- 527+ 528],"isVisible": [4@@ -4050,7 +4076,7 @@ export default {6],"viewId": [- 527+ 528],"__typename": [1@@ -4061,13 +4087,13 @@ export default {1],"calendarEndFieldMetadataId": [- 527+ 528],"calendarFieldMetadataId": [- 527+ 528],"calendarLayout": [- 638+ 639],"groupLoadLimit": [10@@ -4076,34 +4102,34 @@ export default {1],"id": [- 527+ 528],"isCompact": [4],"kanbanAggregateOperation": [- 26+ 27],"kanbanAggregateOperationFieldMetadataId": [- 527+ 528],"kanbanColumnWidth": [10],"key": [- 647+ 648],"mainGroupByFieldMetadataId": [- 527+ 528],"name": [1],"objectMetadataId": [- 527+ 528],"openRecordIn": [- 648+ 649],"position": [6@@ -4112,10 +4138,10 @@ export default {4],"type": [- 651+ 652],"visibility": [- 652+ 653],"__typename": [1@@ -4123,19 +4149,19 @@ export default {},"CreateViewSortInput": {"direction": [- 650+ 651],"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"subFieldName": [1],"viewId": [- 527+ 528],"__typename": [1@@ -4146,7 +4172,7 @@ export default {1],"id": [- 527+ 528],"operations": [1@@ -4169,10 +4195,10 @@ export default {1],"operation": [- 614+ 615],"resource": [- 621+ 622],"__typename": [1@@ -4180,10 +4206,10 @@ export default {},"CursorPaging": {"after": [- 160+ 161],"before": [- 160+ 161],"first": [10@@ -4199,7 +4225,7 @@ export default {"DateTime": {},"DeleteApprovedAccessDomainInput": {"id": [- 527+ 528],"__typename": [1@@ -4207,7 +4233,7 @@ export default {},"DeleteOneFieldInput": {"id": [- 527+ 528],"__typename": [1@@ -4215,7 +4241,7 @@ export default {},"DeleteOneIndexInput": {"id": [- 527+ 528],"__typename": [1@@ -4223,7 +4249,7 @@ export default {},"DeleteOneObjectInput": {"id": [- 527+ 528],"__typename": [1@@ -4231,7 +4257,7 @@ export default {},"DeleteSso": {"identityProviderId": [- 527+ 528],"__typename": [1@@ -4239,7 +4265,7 @@ export default {},"DeleteSsoInput": {"identityProviderId": [- 527+ 528],"__typename": [1@@ -4255,7 +4281,7 @@ export default {},"DeleteViewFieldGroupInput": {"id": [- 527+ 528],"__typename": [1@@ -4263,7 +4289,7 @@ export default {},"DeleteViewFieldInput": {"id": [- 527+ 528],"__typename": [1@@ -4271,7 +4297,7 @@ export default {},"DeleteViewFilterInput": {"id": [- 527+ 528],"__typename": [1@@ -4279,7 +4305,7 @@ export default {},"DeleteViewGroupInput": {"id": [- 527+ 528],"__typename": [1@@ -4287,7 +4313,7 @@ export default {},"DeleteViewSortInput": {"id": [- 527+ 528],"__typename": [1@@ -4298,16 +4324,16 @@ export default {1],"id": [- 527+ 528],"name": [- 288+ 289],"userEmail": [1],"userWorkspaceId": [- 527+ 528],"__typename": [1@@ -4315,7 +4341,7 @@ export default {},"DestroyViewFieldGroupInput": {"id": [- 527+ 528],"__typename": [1@@ -4323,7 +4349,7 @@ export default {},"DestroyViewFieldInput": {"id": [- 527+ 528],"__typename": [1@@ -4331,7 +4357,7 @@ export default {},"DestroyViewFilterInput": {"id": [- 527+ 528],"__typename": [1@@ -4339,7 +4365,7 @@ export default {},"DestroyViewGroupInput": {"id": [- 527+ 528],"__typename": [1@@ -4347,7 +4373,7 @@ export default {},"DestroyViewSortInput": {"id": [- 527+ 528],"__typename": [1@@ -4389,13 +4415,13 @@ export default {1],"id": [- 527+ 528],"isCustomDomainEnabled": [4],"records": [- 230+ 231],"__typename": [1@@ -4406,10 +4432,10 @@ export default {1],"id": [- 527+ 528],"pageLayoutId": [- 527+ 528],"position": [6@@ -4432,7 +4458,7 @@ export default {1],"id": [- 527+ 528],"memberCount": [6@@ -4452,7 +4478,7 @@ export default {},"EditSso": {"id": [- 527+ 528],"issuer": [1@@ -4461,10 +4487,10 @@ export default {1],"status": [- 467+ 468],"type": [- 295+ 296],"__typename": [1@@ -4472,10 +4498,10 @@ export default {},"EditSsoInput": {"id": [- 527+ 528],"status": [- 467+ 468],"__typename": [1@@ -4483,13 +4509,13 @@ export default {},"EmailAccountConnectionParameters": {"CALDAV": [- 161+ 162],"IMAP": [- 161+ 162],"SMTP": [- 161+ 162],"name": [1@@ -4509,7 +4535,7 @@ export default {},"EmailThreadConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -4517,31 +4543,31 @@ export default {},"EmailingDomain": {"createdAt": [- 210+ 211],"domain": [1],"id": [- 527+ 528],"status": [- 241+ 242],"tenantStatus": [- 242+ 243],"unsubscribeHostnameStatus": [- 529+ 530],"updatedAt": [- 210+ 211],"verificationRecords": [- 633+ 634],"verifiedAt": [- 210+ 211],"__typename": [1@@ -4551,7 +4577,7 @@ export default {"EmailingDomainTenantStatus": {},"EmailsConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -4569,7 +4595,7 @@ export default {1],"payload": [- 313+ 314],"retryLimit": [10@@ -4583,7 +4609,7 @@ export default {1],"payload": [- 313+ 314],"__typename": [1@@ -4608,13 +4634,13 @@ export default {10],"jobs": [- 246+ 247],"logicFunctionUniversalIdentifier": [1],"payloads": [- 313+ 314],"retryLimit": [10@@ -4642,7 +4668,7 @@ export default {},"EnterpriseLicenseInfoDTO": {"expiresAt": [- 210+ 211],"isValid": [4@@ -4659,13 +4685,13 @@ export default {},"EnterpriseSubscriptionStatusDTO": {"cancelAt": [- 210+ 211],"currentPeriodEnd": [- 210+ 211],"expiresAt": [- 210+ 211],"isCancellationScheduled": [4@@ -4682,10 +4708,10 @@ export default {},"EventLogDateRangeInput": {"end": [- 210+ 211],"start": [- 210+ 211],"__typename": [1@@ -4696,7 +4722,7 @@ export default {1],"operand": [- 254+ 255],"values": [1@@ -4708,13 +4734,13 @@ export default {"EventLogFilterOperand": {},"EventLogFiltersInput": {"dateRange": [- 252+ 253],"eventType": [1],"fieldFilters": [- 253+ 254],"objectMetadataId": [1@@ -4745,13 +4771,13 @@ export default {1],"filters": [- 255+ 256],"first": [10],"table": [- 260+ 261],"__typename": [1@@ -4759,10 +4785,10 @@ export default {},"EventLogQueryResult": {"pageInfo": [- 256+ 257],"records": [- 259+ 260],"totalCount": [10@@ -4782,13 +4808,13 @@ export default {1],"properties": [- 313+ 314],"recordId": [1],"timestamp": [- 210+ 211],"userId": [1@@ -4803,13 +4829,13 @@ export default {1],"metadataEvents": [- 359+ 360],"objectRecordEventsWithQueryIds": [- 389+ 390],"queueJobEvents": [- 316+ 317],"__typename": [1@@ -4817,10 +4843,10 @@ export default {},"ExecuteOneLogicFunctionInput": {"id": [- 527+ 528],"payload": [- 313+ 314],"__typename": [1@@ -4828,7 +4854,7 @@ export default {},"FeatureFlag": {"key": [- 264+ 265],"value": [4@@ -4840,13 +4866,13 @@ export default {"FeatureFlagKey": {},"Field": {"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"defaultValue": [- 313+ 314],"description": [1@@ -4858,7 +4884,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -4891,40 +4917,40 @@ export default {1],"morphId": [- 527+ 528],"morphRelations": [- 443+ 444],"name": [1],"object": [- 376+ 377],"objectMetadataId": [- 527+ 528],"options": [- 313+ 314],"relation": [- 443+ 444],"settings": [- 313+ 314],"type": [- 271+ 272],"universalIdentifier": [1],"updatedAt": [- 210+ 211],"writability": [- 366+ 367],"__typename": [1@@ -4932,10 +4958,10 @@ export default {},"FieldConfiguration": {"configurationType": [- 655+ 656],"fieldDisplayMode": [- 268+ 269],"fieldMetadataId": [1@@ -4955,10 +4981,10 @@ export default {},"FieldConnection": {"edges": [- 269+ 270],"pageInfo": [- 396+ 397],"__typename": [1@@ -4967,10 +4993,10 @@ export default {"FieldDisplayMode": {},"FieldEdge": {"cursor": [- 160+ 161],"node": [- 265+ 266],"__typename": [1@@ -4978,28 +5004,28 @@ export default {},"FieldFilter": {"and": [- 270+ 271],"id": [- 528+ 529],"isActive": [- 125+ 126],"isSystem": [- 125+ 126],"isUIEditable": [- 125+ 126],"isUIReadOnly": [- 125+ 126],"objectMetadataId": [- 528+ 529],"or": [- 270+ 271],"__typename": [1@@ -5014,16 +5040,16 @@ export default {4],"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"objectMetadataId": [- 527+ 528],"roleId": [- 527+ 528],"__typename": [1@@ -5037,10 +5063,10 @@ export default {4],"fieldMetadataId": [- 527+ 528],"objectMetadataId": [- 527+ 528],"__typename": [1@@ -5048,7 +5074,7 @@ export default {},"FieldRichTextConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -5056,7 +5082,7 @@ export default {},"FieldsConfiguration": {"configurationType": [- 655+ 656],"newFieldDefaultVisibility": [4@@ -5073,10 +5099,10 @@ export default {},"File": {"createdAt": [- 210+ 211],"id": [- 527+ 528],"path": [1@@ -5093,7 +5119,7 @@ export default {1],"id": [- 527+ 528],"__typename": [1@@ -5105,10 +5131,10 @@ export default {1],"expiresAt": [- 210+ 211],"fileId": [- 527+ 528],"uploadUrl": [1@@ -5119,10 +5145,10 @@ export default {},"FileWithSignedUrl": {"createdAt": [- 210+ 211],"id": [- 527+ 528],"path": [1@@ -5139,7 +5165,7 @@ export default {},"FilesConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -5147,7 +5173,7 @@ export default {},"FindAvailableSSOIDP": {"id": [- 527+ 528],"issuer": [1@@ -5156,13 +5182,13 @@ export default {1],"status": [- 467+ 468],"type": [- 295+ 296],"workspace": [- 675+ 676],"__typename": [1@@ -5176,13 +5202,13 @@ export default {10],"reason": [- 357+ 358],"searchTerm": [1],"unsubscribeTopicId": [- 527+ 528],"__typename": [1@@ -5190,7 +5216,7 @@ export default {},"FormFieldConfiguration": {"configurationType": [- 655+ 656],"fieldMetadataId": [1@@ -5204,16 +5230,16 @@ export default {1],"applicationId": [- 527+ 528],"applicationName": [1],"applicationTokenPair": [- 76+ 77],"applicationVariables": [- 313+ 314],"builtComponentChecksum": [1@@ -5225,7 +5251,7 @@ export default {1],"createdAt": [- 210+ 211],"description": [1@@ -5234,7 +5260,7 @@ export default {1],"id": [- 527+ 528],"isHeadless": [4@@ -5246,16 +5272,16 @@ export default {1],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"usesSdkClient": [4],"widgetAvailability": [- 287+ 288],"__typename": [1@@ -5263,13 +5289,13 @@ export default {},"FrontComponentConfiguration": {"configurationType": [- 655+ 656],"frontComponentId": [- 527+ 528],"headerCommandMenuItemUniversalIdentifiers": [- 527+ 528],"__typename": [1@@ -5277,10 +5303,10 @@ export default {},"FrontComponentWidgetAvailability": {"objectMetadataId": [- 527+ 528],"pageLayoutType": [- 400+ 401],"__typename": [1@@ -5299,7 +5325,7 @@ export default {},"GetApiKeyInput": {"id": [- 527+ 528],"__typename": [1@@ -5310,7 +5336,7 @@ export default {1],"id": [- 527+ 528],"type": [1@@ -5321,7 +5347,7 @@ export default {},"GetAuthorizationUrlForSSOInput": {"identityProviderId": [- 527+ 528],"workspaceInviteHash": [1@@ -5332,7 +5358,7 @@ export default {},"GrantApplicationCapabilitiesInput": {"applicationId": [- 527+ 528],"capabilities": [1@@ -5362,7 +5388,7 @@ export default {"IdentityProviderType": {},"IframeConfiguration": {"configurationType": [- 655+ 656],"url": [1@@ -5384,13 +5410,13 @@ export default {},"ImapSmtpCaldavPublicConnectionParameters": {"CALDAV": [- 299+ 300],"IMAP": [- 299+ 300],"SMTP": [- 299+ 300],"name": [1@@ -5401,7 +5427,7 @@ export default {},"ImapSmtpCaldavPublicConnectionParams": {"connectionSecurity": [- 237+ 238],"host": [1@@ -5418,10 +5444,10 @@ export default {},"Impersonate": {"loginToken": [- 82+ 83],"workspace": [- 679+ 680],"__typename": [1@@ -5432,10 +5458,10 @@ export default {1],"recordId": [- 527+ 528],"threadId": [- 527+ 528],"__typename": [1@@ -5443,19 +5469,19 @@ export default {},"Index": {"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"id": [- 527+ 528],"indexFieldMetadataList": [- 304+ 305],"indexType": [- 306+ 307],"indexWhereClause": [1@@ -5473,7 +5499,7 @@ export default {1],"updatedAt": [- 210+ 211],"__typename": [1@@ -5481,10 +5507,10 @@ export default {},"IndexEdge": {"cursor": [- 160+ 161],"node": [- 302+ 303],"__typename": [1@@ -5492,13 +5518,13 @@ export default {},"IndexField": {"createdAt": [- 210+ 211],"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"order": [6@@ -5507,7 +5533,7 @@ export default {1],"updatedAt": [- 210+ 211],"__typename": [1@@ -5515,16 +5541,16 @@ export default {},"IndexFilter": {"and": [- 305+ 306],"id": [- 528+ 529],"isCustom": [- 125+ 126],"or": [- 305+ 306],"__typename": [1@@ -5533,10 +5559,10 @@ export default {"IndexType": {},"IngestAppMessagesInput": {"messageChannelId": [- 527+ 528],"messages": [- 43+ 44],"__typename": [1@@ -5544,7 +5570,7 @@ export default {},"IngestAppMessagesOutput": {"messages": [- 309+ 310],"__typename": [1@@ -5555,10 +5581,10 @@ export default {1],"messageId": [- 527+ 528],"messageThreadId": [- 527+ 528],"__typename": [1@@ -5617,7 +5643,7 @@ export default {6],"state": [- 315+ 316],"__typename": [1@@ -5625,19 +5651,19 @@ export default {},"LineChartConfiguration": {"aggregateFieldMetadataId": [- 527+ 528],"aggregateOperation": [- 26+ 27],"axisNameDisplay": [- 90+ 91],"color": [1],"configurationType": [- 655+ 656],"description": [1@@ -5649,7 +5675,7 @@ export default {4],"filter": [- 313+ 314],"firstDayOfTheWeek": [10@@ -5661,16 +5687,16 @@ export default {4],"numberFormat": [- 140+ 141],"omitNullValues": [4],"primaryAxisDateGranularity": [- 390+ 391],"primaryAxisGroupByFieldMetadataId": [- 527+ 528],"primaryAxisGroupBySubFieldName": [1@@ -5679,7 +5705,7 @@ export default {1],"primaryAxisOrderBy": [- 293+ 294],"rangeMax": [6@@ -5688,10 +5714,10 @@ export default {6],"secondaryAxisGroupByDateGranularity": [- 390+ 391],"secondaryAxisGroupByFieldMetadataId": [- 527+ 528],"secondaryAxisGroupBySubFieldName": [1@@ -5700,7 +5726,7 @@ export default {1],"secondaryAxisOrderBy": [- 293+ 294],"splitMultiValueFields": [4@@ -5714,13 +5740,13 @@ export default {},"LineChartData": {"formattedToRawLookup": [- 313+ 314],"hasTooManyGroups": [4],"series": [- 321+ 322],"showDataLabels": [4@@ -5740,10 +5766,10 @@ export default {},"LineChartDataInput": {"configuration": [- 313+ 314],"objectMetadataId": [- 527+ 528],"__typename": [1@@ -5762,7 +5788,7 @@ export default {},"LineChartSeries": {"data": [- 320+ 321],"key": [1@@ -5779,7 +5805,7 @@ export default {1],"scope": [- 158+ 159],"userWorkspaceId": [1@@ -5793,7 +5819,7 @@ export default {},"ListAppMessageChannelsInput": {"connectedAccountId": [- 527+ 528],"__typename": [1@@ -5801,7 +5827,7 @@ export default {},"ListAppMessageFoldersInput": {"messageChannelId": [- 527+ 528],"__typename": [1@@ -5820,34 +5846,34 @@ export default {},"LogicFunction": {"applicationId": [- 527+ 528],"canRunOnDemand": [4],"createdAt": [- 210+ 211],"cronTriggerSettings": [- 313+ 314],"databaseEventTriggerSettings": [- 313+ 314],"description": [1],"executionMode": [- 327+ 328],"handlerName": [1],"httpRouteTriggerSettings": [- 313+ 314],"id": [- 527+ 528],"name": [1@@ -5862,16 +5888,16 @@ export default {6],"toolTriggerSettings": [- 313+ 314],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"workflowActionTriggerSettings": [- 313+ 314],"__typename": [1@@ -5880,19 +5906,19 @@ export default {"LogicFunctionExecutionMode": {},"LogicFunctionExecutionResult": {"data": [- 313+ 314],"duration": [6],"error": [- 313+ 314],"logs": [1],"status": [- 329+ 330],"__typename": [1@@ -5901,7 +5927,7 @@ export default {"LogicFunctionExecutionStatus": {},"LogicFunctionIdInput": {"id": [- 17+ 18],"__typename": [1@@ -5915,7 +5941,7 @@ export default {1],"universalIdentifier": [- 527+ 528],"__typename": [1@@ -5923,19 +5949,19 @@ export default {},"LogicFunctionLogsInput": {"applicationId": [- 527+ 528],"applicationUniversalIdentifier": [- 527+ 528],"id": [- 527+ 528],"name": [1],"universalIdentifier": [- 527+ 528],"__typename": [1@@ -5943,7 +5969,7 @@ export default {},"LoginToken": {"loginToken": [- 82+ 83],"__typename": [1@@ -6022,13 +6048,13 @@ export default {1],"manifest": [- 313+ 314],"name": [1],"objects": [- 336+ 337],"pricingDescription": [1@@ -6037,7 +6063,7 @@ export default {1],"roles": [- 337+ 338],"screenshots": [1@@ -6046,7 +6072,7 @@ export default {1],"sourceType": [- 72+ 73],"termsUrl": [1@@ -6098,7 +6124,7 @@ export default {1],"fieldPermissions": [- 338+ 339],"icon": [1@@ -6107,7 +6133,7 @@ export default {1],"objectPermissions": [- 339+ 340],"permissionFlagUniversalIdentifiers": [1@@ -6164,16 +6190,16 @@ export default {},"McpServer": {"applicationId": [- 527+ 528],"connectionProviderId": [- 527+ 528],"createdAt": [- 210+ 211],"id": [- 527+ 528],"isActive": [4@@ -6185,7 +6211,7 @@ export default {1],"updatedAt": [- 210+ 211],"url": [1@@ -6196,7 +6222,7 @@ export default {},"MessageCampaignBodyConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -6204,7 +6230,7 @@ export default {},"MessageCampaignDetailsConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -6223,16 +6249,16 @@ export default {},"MessageChannel": {"connectedAccount": [- 157+ 158],"connectedAccountId": [- 527+ 528],"contactAutoCreationPolicy": [- 345+ 346],"createdAt": [- 210+ 211],"displayName": [1@@ -6247,7 +6273,7 @@ export default {1],"id": [- 527+ 528],"importProgress": [10@@ -6259,43 +6285,43 @@ export default {4],"messageFolderImportPolicy": [- 352+ 353],"messagingProviderUniversalIdentifier": [- 527+ 528],"participantHandleFieldUniversalIdentifier": [- 527+ 528],"pendingGroupEmailsAction": [- 346+ 347],"syncStage": [- 347+ 348],"syncStageStartedAt": [- 210+ 211],"syncStatus": [- 348+ 349],"syncedAt": [- 210+ 211],"throttleFailureCount": [6],"throttleRetryAfter": [- 210+ 211],"type": [- 349+ 350],"updatedAt": [- 210+ 211],"visibility": [- 350+ 351],"__typename": [1@@ -6309,13 +6335,13 @@ export default {"MessageChannelVisibility": {},"MessageFolder": {"createdAt": [- 210+ 211],"externalId": [1],"id": [- 527+ 528],"isSentFolder": [4@@ -6324,7 +6350,7 @@ export default {4],"messageChannelId": [- 527+ 528],"name": [1@@ -6333,10 +6359,10 @@ export default {1],"pendingSyncAction": [- 353+ 354],"updatedAt": [- 210+ 211],"__typename": [1@@ -6347,22 +6373,22 @@ export default {"MessageParticipantRole": {},"MessageSuppression": {"createdAt": [- 210+ 211],"emailAddress": [1],"id": [- 527+ 528],"reason": [- 357+ 358],"source": [- 358+ 359],"unsubscribeTopicId": [- 527+ 528],"__typename": [1@@ -6370,7 +6396,7 @@ export default {},"MessageSuppressionList": {"records": [- 355+ 356],"totalCount": [10@@ -6386,13 +6412,13 @@ export default {1],"properties": [- 388+ 389],"recordId": [1],"type": [- 360+ 361],"updatedCollectionHash": [1@@ -6414,16 +6440,16 @@ export default {1],"objectMetadataId": [- 527+ 528],"property": [1],"provenance": [- 364+ 365],"recordId": [- 527+ 528],"sourceValue": [1@@ -6452,13 +6478,13 @@ export default {"MetadataTranslationProvenance": {},"MetadataTranslationsInput": {"fieldMetadataId": [- 527+ 528],"locale": [1],"objectMetadataId": [- 527+ 528],"__typename": [1@@ -6467,13 +6493,13 @@ export default {"MetadataWritability": {},"MinimalMetadata": {"collectionHashes": [- 152+ 153],"objectMetadataItems": [- 368+ 369],"views": [- 369+ 370],"__typename": [1@@ -6487,7 +6513,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -6516,16 +6542,16 @@ export default {},"MinimalView": {"id": [- 527+ 528],"key": [- 647+ 648],"objectMetadataId": [- 527+ 528],"type": [- 651+ 652],"__typename": [1@@ -6534,16 +6560,16 @@ export default {"ModelFamily": {},"Mutation": {"activateSkill": [- 493,+ 494,{"id": [- 527,+ 528,"UUID!"]}],"activateWorkspace": [- 660,+ 661,{"data": [0,@@ -6552,14 +6578,14 @@ export default {}],"addAgentChatMessageReaction": [- 22,+ 23,{"emoji": [1,"String!"],"messageId": [- 527,+ 528,"UUID!"]}@@ -6577,10 +6603,10 @@ export default {4,{"assigneeWorkspaceMemberId": [- 527+ 528],"threadId": [- 527,+ 528,"UUID!"]}@@ -6589,11 +6615,11 @@ export default {4,{"agentId": [- 527,+ 528,"UUID!"],"roleId": [- 527,+ 528,"UUID!"]}@@ -6602,11 +6628,11 @@ export default {4,{"apiKeyId": [- 527,+ 528,"UUID!"],"roleId": [- 527,+ 528,"UUID!"]}@@ -6615,13 +6641,13 @@ export default {4,{"input": [- 301,+ 302,"InboxThreadRecordInput!"]}],"authorizeApp": [- 85,+ 86,{"clientId": [1,@@ -6646,28 +6672,28 @@ export default {}],"cancelMessageCampaign": [- 136,+ 137,{"input": [- 135,+ 136,"CancelMessageCampaignInput!"]}],"cancelSwitchBillingInterval": [- 123+ 124],"cancelSwitchBillingPlan": [- 123+ 124],"cancelSwitchResourceCreditPrice": [- 123+ 124],"checkCustomDomainValidRecords": [- 231+ 232],"checkPublicDomainValidRecords": [- 231,+ 232,{"domain": [1,@@ -6676,14 +6702,14 @@ export default {}],"checkoutSession": [- 116,+ 117,{"plan": [- 107,+ 108,"BillingPlanKey!"],"recurringInterval": [- 499,+ 500,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -6696,7 +6722,7 @@ export default {}],"claimApplicationRegistrationOwnership": [- 71,+ 72,{"applicationRegistrationId": [1,@@ -6705,29 +6731,29 @@ export default {}],"completeAppTarballUpload": [- 71,+ 72,{"fileId": [- 527,+ 528,"UUID!"]}],"completeApplicationFileUploads": [- 156,+ 157,{"applicationUniversalIdentifier": [1,"String!"],"fileIds": [- 527,+ 528,"[UUID!]!"]}],"completeBookCallOnboardingStep": [- 394,+ 395,{"hasBookedCall": [4,@@ -6740,7 +6766,7 @@ export default {}],"completeFileUpload": [- 280,+ 281,{"fileId": [1,@@ -6749,7 +6775,7 @@ export default {}],"completeNewWorkspaceLogoUpload": [- 280,+ 281,{"fileId": [1,@@ -6762,7 +6788,7 @@ export default {}],"completeWorkspaceLogoUpload": [- 280,+ 281,{"fileId": [1,@@ -6771,7 +6797,7 @@ export default {}],"completeWorkspaceMemberProfilePictureUpload": [- 280,+ 281,{"fileId": [1,@@ -6783,91 +6809,91 @@ export default {5,{"input": [- 163,+ 164,"CreateAgentChatChannelInput!"]}],"createApiKey": [- 36,+ 37,{"input": [- 165,+ 166,"CreateApiKeyInput!"]}],"createAppMessageChannel": [- 344,+ 345,{"input": [- 166,+ 167,"CreateAppMessageChannelInput!"]}],"createApplicationFileUploads": [- 167,+ 168,{"applicationUniversalIdentifier": [1,"String!"],"files": [- 58,+ 59,"[ApplicationFileUploadRequestInput!]!"]}],"createApplicationRegistration": [- 168,+ 169,{"input": [- 169,+ 170,"CreateApplicationRegistrationInput!"]}],"createApprovedAccessDomain": [- 79,+ 80,{"input": [- 170,+ 171,"CreateApprovedAccessDomainInput!"]}],"createBillingPaymentMethodSetupIntent": [- 105+ 106],"createCalendarEvent": [- 172,+ 173,{"input": [- 171,+ 172,"CreateCalendarEventInput!"]}],"createChatThread": [- 16,+ 17,{"channelId": [- 527+ 528]}],"createCommandMenuItem": [- 153,+ 154,{"input": [- 173,+ 174,"CreateCommandMenuItemInput!"]}],"createDevelopmentApplication": [- 229,+ 230,{"name": [1,@@ -6880,25 +6906,25 @@ export default {}],"createEmailGroupChannel": [- 175,+ 176,{"input": [- 174,+ 175,"CreateEmailGroupChannelInput!"]}],"createEmailingDomain": [- 240,+ 241,{"input": [- 176,+ 177,"CreateEmailingDomainInput!"]}],"createFileUpload": [- 279,+ 280,{"fieldMetadataId": [1@@ -6907,7 +6933,7 @@ export default {1],"fileFolder": [- 278,+ 279,"FileFolder!"],"filename": [@@ -6921,79 +6947,79 @@ export default {}],"createFrontComponent": [- 285,+ 286,{"input": [- 178,+ 179,"CreateFrontComponentInput!"]}],"createManyNavigationMenuItems": [- 373,+ 374,{"inputs": [- 184,+ 185,"[CreateNavigationMenuItemInput!]!"]}],"createManyViewFieldGroups": [- 641,+ 642,{"inputs": [- 199,+ 200,"[CreateViewFieldGroupInput!]!"]}],"createManyViewFields": [- 640,+ 641,{"inputs": [- 200,+ 201,"[CreateViewFieldInput!]!"]}],"createManyViewGroups": [- 646,+ 647,{"inputs": [- 203,+ 204,"[CreateViewGroupInput!]!"]}],"createMcpServer": [- 340,+ 341,{"input": [- 182,+ 183,"CreateMcpServerInput!"]}],"createMessageSuppression": [- 355,+ 356,{"input": [- 183,+ 184,"CreateMessageSuppressionInput!"]}],"createNavigationMenuItem": [- 373,+ 374,{"input": [- 184,+ 185,"CreateNavigationMenuItemInput!"]}],"createNewWorkspaceLogoUpload": [- 279,+ 280,{"filename": [1,@@ -7010,30 +7036,30 @@ export default {}],"createOIDCIdentityProvider": [- 490,+ 491,{"input": [- 488,+ 489,"SetupOIDCSsoInput!"]}],"createObjectEvent": [- 33,+ 34,{"event": [1,"String!"],"objectMetadataId": [- 527,+ 528,"UUID!"],"properties": [- 313+ 314],"recordId": [- 527,+ 528,"UUID!"]}@@ -7042,85 +7068,85 @@ export default {3,{"input": [- 164,+ 165,"CreateAgentInput!"]}],"createOneField": [- 265,+ 266,{"input": [- 186,+ 187,"CreateOneFieldMetadataInput!"]}],"createOneIndex": [- 302,+ 303,{"input": [- 187,+ 188,"CreateOneIndexInput!"]}],"createOneLogicFunction": [- 326,+ 327,{"input": [- 181,+ 182,"CreateLogicFunctionFromSourceInput!"]}],"createOneObject": [- 376,+ 377,{"input": [- 188,+ 189,"CreateOneObjectInput!"]}],"createOneRole": [- 450,+ 451,{"createRoleInput": [- 194,+ 195,"CreateRoleInput!"]}],"createPageLayout": [- 397,+ 398,{"input": [- 189,+ 190,"CreatePageLayoutInput!"]}],"createPageLayoutTab": [- 398,+ 399,{"input": [- 190,+ 191,"CreatePageLayoutTabInput!"]}],"createPageLayoutWidget": [- 401,+ 402,{"input": [- 191,+ 192,"CreatePageLayoutWidgetInput!"]}],"createPublicDomain": [- 420,+ 421,{"applicationId": [1,@@ -7133,45 +7159,45 @@ export default {}],"createRelatedRecordPath": [- 442,+ 443,{"input": [- 193,+ 194,"CreateRelatedRecordPathInput!"]}],"createSAMLIdentityProvider": [- 490,+ 491,{"input": [- 489,+ 490,"SetupSAMLSsoInput!"]}],"createSkill": [- 493,+ 494,{"input": [- 195,+ 196,"CreateSkillInput!"]}],"createSubscriptionPaymentIntent": [- 105,+ 106,{"idempotencyKey": [1,"String!"],"plan": [- 107,+ 108,"BillingPlanKey!"],"recurringInterval": [- 499,+ 500,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -7184,109 +7210,109 @@ export default {}],"createUnsubscribeTopic": [- 530,+ 531,{"input": [- 196,+ 197,"CreateUnsubscribeTopicInput!"]}],"createUsageLimit": [- 612,+ 613,{"input": [- 197,+ 198,"CreateUsageLimitInput!"]}],"createValidationRule": [- 632,+ 633,{"input": [- 198,+ 199,"CreateValidationRuleInput!"]}],"createView": [- 637,+ 638,{"input": [- 204,+ 205,"CreateViewInput!"]}],"createViewField": [- 640,+ 641,{"input": [- 200,+ 201,"CreateViewFieldInput!"]}],"createViewFieldGroup": [- 641,+ 642,{"input": [- 199,+ 200,"CreateViewFieldGroupInput!"]}],"createViewFilter": [- 642,+ 643,{"input": [- 202,+ 203,"CreateViewFilterInput!"]}],"createViewFilterGroup": [- 643,+ 644,{"input": [- 201,+ 202,"CreateViewFilterGroupInput!"]}],"createViewGroup": [- 646,+ 647,{"input": [- 203,+ 204,"CreateViewGroupInput!"]}],"createViewSort": [- 649,+ 650,{"input": [- 205,+ 206,"CreateViewSortInput!"]}],"createWebhook": [- 653,+ 654,{"input": [- 206,+ 207,"CreateWebhookInput!"]}],"deactivateSkill": [- 493,+ 494,{"id": [- 527,+ 528,"UUID!"]}@@ -7295,11 +7321,11 @@ export default {4,{"channelId": [- 527,+ 528,"UUID!"],"destinationChannelId": [- 527+ 528]}],@@ -7311,15 +7337,15 @@ export default {"String!"],"scope": [- 41+ 42]}],"deleteAppMessageChannel": [- 344,+ 345,{"id": [- 527,+ 528,"UUID!"]}@@ -7337,37 +7363,37 @@ export default {4,{"input": [- 211,+ 212,"DeleteApprovedAccessDomainInput!"]}],"deleteCommandMenuItem": [- 153,+ 154,{"id": [- 527,+ 528,"UUID!"]}],"deleteConnectedAccount": [- 157,+ 158,{"id": [- 527,+ 528,"UUID!"]}],"deleteCurrentWorkspace": [- 660+ 661],"deleteEmailGroupChannel": [- 344,+ 345,{"id": [- 527,+ 528,"UUID!"]}@@ -7382,28 +7408,28 @@ export default {}],"deleteFrontComponent": [- 285,+ 286,{"id": [- 527,+ 528,"UUID!"]}],"deleteManyNavigationMenuItems": [- 373,+ 374,{"ids": [- 527,+ 528,"[UUID!]!"]}],"deleteMcpServer": [- 340,+ 341,{"id": [- 527,+ 528,"UUID!"]}@@ -7412,16 +7438,16 @@ export default {4,{"id": [- 527,+ 528,"UUID!"]}],"deleteNavigationMenuItem": [- 373,+ 374,{"id": [- 527,+ 528,"UUID!"]}@@ -7430,43 +7456,43 @@ export default {3,{"input": [- 19,+ 20,"AgentIdInput!"]}],"deleteOneField": [- 265,+ 266,{"input": [- 212,+ 213,"DeleteOneFieldInput!"]}],"deleteOneIndex": [- 302,+ 303,{"input": [- 213,+ 214,"DeleteOneIndexInput!"]}],"deleteOneLogicFunction": [- 326,+ 327,{"input": [- 330,+ 331,"LogicFunctionIdInput!"]}],"deleteOneObject": [- 376,+ 377,{"input": [- 214,+ 215,"DeleteOneObjectInput!"]}@@ -7475,7 +7501,7 @@ export default {1,{"roleId": [- 527,+ 528,"UUID!"]}@@ -7493,43 +7519,43 @@ export default {4,{"messageId": [- 527,+ 528,"UUID!"]}],"deleteRelatedRecordPath": [- 442,+ 443,{"id": [- 527,+ 528,"UUID!"]}],"deleteSSOIdentityProvider": [- 215,+ 216,{"input": [- 216,+ 217,"DeleteSsoInput!"]}],"deleteSkill": [- 493,+ 494,{"id": [- 527,+ 528,"UUID!"]}],"deleteTwoFactorAuthenticationMethod": [- 217,+ 218,{"twoFactorAuthenticationMethodId": [- 527,+ 528,"UUID!"]}@@ -7547,16 +7573,16 @@ export default {4,{"usageLimitId": [- 527,+ 528,"UUID!"]}],"deleteUser": [- 625+ 626],"deleteUserFromWorkspace": [- 629,+ 630,{"workspaceMemberIdToDelete": [1,@@ -7565,10 +7591,10 @@ export default {}],"deleteValidationRule": [- 632,+ 633,{"id": [- 527,+ 528,"UUID!"]}@@ -7583,28 +7609,28 @@ export default {}],"deleteViewField": [- 640,+ 641,{"input": [- 219,+ 220,"DeleteViewFieldInput!"]}],"deleteViewFieldGroup": [- 641,+ 642,{"input": [- 218,+ 219,"DeleteViewFieldGroupInput!"]}],"deleteViewFilter": [- 642,+ 643,{"input": [- 220,+ 221,"DeleteViewFilterInput!"]}@@ -7619,10 +7645,10 @@ export default {}],"deleteViewGroup": [- 646,+ 647,{"input": [- 221,+ 222,"DeleteViewGroupInput!"]}@@ -7631,16 +7657,16 @@ export default {4,{"input": [- 222,+ 223,"DeleteViewSortInput!"]}],"deleteWebhook": [- 653,+ 654,{"id": [- 527,+ 528,"UUID!"]}@@ -7691,28 +7717,28 @@ export default {}],"destroyViewField": [- 640,+ 641,{"input": [- 225,+ 226,"DestroyViewFieldInput!"]}],"destroyViewFieldGroup": [- 641,+ 642,{"input": [- 224,+ 225,"DestroyViewFieldGroupInput!"]}],"destroyViewFilter": [- 642,+ 643,{"input": [- 226,+ 227,"DestroyViewFilterInput!"]}@@ -7727,10 +7753,10 @@ export default {}],"destroyViewGroup": [- 646,+ 647,{"input": [- 227,+ 228,"DestroyViewGroupInput!"]}@@ -7739,7 +7765,7 @@ export default {4,{"input": [- 228,+ 229,"DestroyViewSortInput!"]}@@ -7748,49 +7774,49 @@ export default {4,{"input": [- 301,+ 302,"InboxThreadRecordInput!"]}],"disconnectConnectedAccount": [- 157,+ 158,{"id": [- 527,+ 528,"UUID!"]}],"duplicateDashboard": [- 232,+ 233,{"id": [- 527,+ 528,"UUID!"]}],"duplicateMessageList": [- 233,+ 234,{"id": [- 527,+ 528,"UUID!"]}],"editSSOIdentityProvider": [- 234,+ 235,{"input": [- 235,+ 236,"EditSsoInput!"]}],"emailPasswordResetLink": [- 238,+ 239,{"captchaToken": [1@@ -7800,48 +7826,48 @@ export default {"String!"],"workspaceId": [- 527+ 528]}],"endSubscriptionTrialPeriod": [- 100+ 101],"enqueueJob": [- 247,+ 248,{"input": [- 245,+ 246,"EnqueueJobInput!"]}],"enqueueJobs": [- 249,+ 250,{"input": [- 248,+ 249,"EnqueueJobsInput!"]}],"enrichWorkspaceCompany": [- 664+ 665],"executeOneLogicFunction": [- 328,+ 329,{"input": [- 262,+ 263,"ExecuteOneLogicFunctionInput!"]}],"generateApiKeyToken": [- 38,+ 39,{"apiKeyId": [- 527,+ 528,"UUID!"],"expiresAt": [@@ -7851,34 +7877,34 @@ export default {}],"generateFrontComponentApplicationTokenPair": [- 76,+ 77,{"applicationId": [- 527,+ 528,"UUID!"]}],"generatePlaygroundToken": [- 82+ 83],"generateTransientToken": [- 510+ 511],"generateTwoFactorAuthenticationRecoveryCode": [- 524,+ 525,{"otp": [1],"userId": [- 527,+ 528,"UUID!"]}],"getAuthTokensFromLoginToken": [- 84,+ 85,{"loginToken": [1,@@ -7891,7 +7917,7 @@ export default {}],"getAuthTokensFromOTP": [- 84,+ 85,{"captchaToken": [1@@ -7911,7 +7937,7 @@ export default {}],"getAuthTokensFromSSOExchangeToken": [- 84,+ 85,{"ssoExchangeToken": [1,@@ -7920,7 +7946,7 @@ export default {}],"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [- 525,+ 526,{"captchaToken": [1@@ -7940,16 +7966,16 @@ export default {}],"getAuthorizationUrlForSSO": [- 290,+ 291,{"input": [- 291,+ 292,"GetAuthorizationUrlForSSOInput!"]}],"getLoginTokenFromCredentials": [- 333,+ 334,{"captchaToken": [1@@ -7975,41 +8001,41 @@ export default {}],"goBackToPreviousOnboardingStep": [- 393+ 394],"grantApplicationCapabilities": [- 47,+ 48,{"input": [- 292,+ 293,"GrantApplicationCapabilitiesInput!"]}],"impersonate": [- 300,+ 301,{"userId": [- 527,+ 528,"UUID!"],"workspaceId": [- 527,+ 528,"UUID!"]}],"ingestAppMessages": [- 308,+ 309,{"input": [- 307,+ 308,"IngestAppMessagesInput!"]}],"initiateOTPProvisioning": [- 310,+ 311,{"loginToken": [1,@@ -8022,10 +8048,10 @@ export default {}],"initiateOTPProvisioningForAuthenticatedUser": [- 310+ 311],"installApplication": [- 45,+ 46,{"universalIdentifier": [1,@@ -8052,7 +8078,7 @@ export default {4,{"threadId": [- 527,+ 528,"UUID!"]}@@ -8061,10 +8087,10 @@ export default {4,{"channelId": [- 527+ 528],"threadId": [- 527,+ 528,"UUID!"]}@@ -8073,17 +8099,17 @@ export default {4],"releaseEnterpriseServerBinding": [- 250+ 251],"removeAgentChatMessageReaction": [- 22,+ 23,{"emoji": [1,"String!"],"messageId": [- 527,+ 528,"UUID!"]}@@ -8092,20 +8118,20 @@ export default {4,{"input": [- 445,+ 446,"RemoveQueryFromEventStreamInput!"]}],"removeRecordShare": [- 436,+ 437,{"principal": [- 433,+ 434,"RecordSharePrincipalInput!"],"target": [- 441,+ 442,"RecordTargetInput!"]}@@ -8114,13 +8140,13 @@ export default {4,{"agentId": [- 527,+ 528,"UUID!"]}],"renewApplicationToken": [- 76,+ 77,{"applicationRefreshToken": [1,@@ -8129,7 +8155,7 @@ export default {}],"renewToken": [- 84,+ 85,{"appToken": [1,@@ -8141,7 +8167,7 @@ export default {4,{"threadId": [- 527,+ 528,"UUID!"]}@@ -8150,13 +8176,13 @@ export default {4,{"input": [- 446,+ 447,"ReportAppConnectionAuthFailureInput!"]}],"resendEmailVerificationToken": [- 447,+ 448,{"email": [1,@@ -8169,7 +8195,7 @@ export default {}],"resendWorkspaceInvitation": [- 480,+ 481,{"appTokenId": [1,@@ -8178,16 +8204,16 @@ export default {}],"resetCommandMenuItem": [- 153,+ 154,{"id": [- 527,+ 528,"UUID!"]}],"resetPageLayoutTabToDefault": [- 398,+ 399,{"id": [1,@@ -8196,7 +8222,7 @@ export default {}],"resetPageLayoutToDefault": [- 397,+ 398,{"id": [1,@@ -8205,7 +8231,7 @@ export default {}],"resetPageLayoutWidgetToDefault": [- 401,+ 402,{"id": [1,@@ -8214,22 +8240,22 @@ export default {}],"resetTimelineActivityType": [- 505,+ 506,{"id": [- 527,+ 528,"UUID!"]}],"retryChatMessage": [- 472,+ 473,{"modelId": [1],"threadId": [- 527,+ 528,"UUID!"]}@@ -8238,10 +8264,10 @@ export default {10],"revokeApiKey": [- 36,+ 37,{"input": [- 448,+ 449,"RevokeApiKeyInput!"]}@@ -8250,7 +8276,7 @@ export default {4,{"applicationAuthorizationId": [- 527,+ 528,"UUID!"]}@@ -8259,7 +8285,7 @@ export default {4,{"userId": [- 527,+ 528,"UUID!"]}@@ -8268,13 +8294,13 @@ export default {4,{"userSessionId": [- 527,+ 528,"UUID!"]}],"rotateApplicationRegistrationClientSecret": [- 452,+ 453,{"id": [1,@@ -8283,28 +8309,28 @@ export default {}],"runAgent": [- 463,+ 464,{"input": [- 459,+ 460,"RunAgentInput!"]}],"runApplicationHealthCheck": [- 61,+ 62,{"applicationId": [- 527,+ 528,"UUID!"]}],"saveImapSmtpCaldavAccount": [- 297,+ 298,{"connectionParameters": [- 236,+ 237,"EmailAccountConnectionParameters!"],"handle": [@@ -8312,38 +8338,38 @@ export default {"String!"],"id": [- 527+ 528]}],"sendAppChannelMessage": [- 471,+ 472,{"input": [- 470,+ 471,"SendAppChannelMessageInput!"]}],"sendChatMessage": [- 472,+ 473,{"browsingContext": [- 313+ 314],"channelId": [- 527+ 528],"fileAttachments": [- 277,+ 278,"[FileAttachmentInput!]"],"mentionedWorkspaceMemberIds": [- 527,+ 528,"[UUID!]"],"messageId": [- 527,+ 528,"UUID!"],"modelId": [@@ -8357,70 +8383,70 @@ export default {"String!"],"threadId": [- 527,+ 528,"UUID!"]}],"sendEmail": [- 475,+ 476,{"input": [- 474,+ 475,"SendEmailInput!"]}],"sendInboxMessage": [- 479,+ 480,{"input": [- 478,+ 479,"SendInboxMessageInput!"]}],"sendInvitations": [- 480,+ 481,{"emails": [1,"[String!]!"],"roleId": [- 527+ 528]}],"sendMessageCampaign": [- 482,+ 483,{"input": [- 481,+ 482,"SendMessageCampaignInput!"]}],"sendMessageCampaignTest": [- 477,+ 478,{"input": [- 483,+ 484,"SendMessageCampaignTestInput!"]}],"setAppKeyValue": [- 40,+ 41,{"input": [- 485,+ 486,"SetAppKeyValueInput!"]}],"setEnterpriseKey": [- 250,+ 251,{"enterpriseKey": [1,@@ -8429,37 +8455,37 @@ export default {}],"setRecordGeneralAccess": [- 436,+ 437,{"accessLevel": [- 432,+ 433,"RecordShareAccessLevel!"],"target": [- 441,+ 442,"RecordTargetInput!"]}],"setRecordShare": [- 436,+ 437,{"accessLevel": [- 432,+ 433,"RecordShareAccessLevel!"],"principal": [- 433,+ 434,"RecordSharePrincipalInput!"],"target": [- 441,+ 442,"RecordTargetInput!"]}],"setResourceCreditSubscriptionPrice": [- 123,+ 124,{"priceId": [1,@@ -8468,7 +8494,7 @@ export default {}],"signIn": [- 89,+ 90,{"captchaToken": [1@@ -8498,7 +8524,7 @@ export default {}],"signUp": [- 89,+ 90,{"captchaToken": [1@@ -8520,15 +8546,15 @@ export default {}],"signUpInNewWorkspace": [- 491,+ 492,{"input": [- 492+ 493]}],"signUpInWorkspace": [- 491,+ 492,{"captchaToken": [1@@ -8548,7 +8574,7 @@ export default {1],"workspaceId": [- 527+ 528],"workspaceInviteHash": [1@@ -8559,7 +8585,7 @@ export default {}],"skipSyncEmailOnboardingStep": [- 394,+ 395,{"isAutoSkipped": [4,@@ -8571,32 +8597,32 @@ export default {4,{"snoozedUntil": [- 210,+ 211,"DateTime!"],"threadId": [- 527,+ 528,"UUID!"]}],"startChannelSync": [- 139,+ 140,{"connectedAccountId": [- 527,+ 528,"UUID!"]}],"startWorkspaceSetupChat": [- 495,+ 496,{"companyContext": [- 313+ 314],"personContext": [- 313+ 314]}],@@ -8604,36 +8630,36 @@ export default {4,{"threadId": [- 527,+ 528,"UUID!"]}],"stopImpersonation": [- 496+ 497],"switchBillingPlan": [- 123,+ 124,{"plan": [- 107+ 108]}],"switchSubscriptionInterval": [- 123+ 124],"syncAppMessageFolders": [- 351,+ 352,{"input": [- 503,+ 504,"SyncAppMessageFoldersInput!"]}],"syncApplication": [- 674,+ 675,{"dryRun": [4@@ -8642,7 +8668,7 @@ export default {4],"manifest": [- 313,+ 314,"JSON!"]}@@ -8651,7 +8677,7 @@ export default {4],"trackAnalytics": [- 33,+ 34,{"event": [1@@ -8660,16 +8686,16 @@ export default {1],"properties": [- 313+ 314],"type": [- 34,+ 35,"AnalyticsType!"]}],"transferApplicationRegistrationOwnership": [- 71,+ 72,{"applicationRegistrationId": [1,@@ -8682,55 +8708,55 @@ export default {}],"triggerAddPeopleToMessageListJob": [- 512,+ 513,{"input": [- 511,+ 512,"TriggerAddPeopleToMessageListJobInput!"]}],"triggerInstallApplication": [- 516,+ 517,{"input": [- 513,+ 514,"TriggerInstallApplicationInput!"]}],"triggerInstallApplicationJob": [- 515,+ 516,{"input": [- 514,+ 515,"TriggerInstallApplicationJobInput!"]}],"triggerUninstallApplication": [- 520,+ 521,{"input": [- 517,+ 518,"TriggerUninstallApplicationInput!"]}],"triggerUninstallApplicationJob": [- 519,+ 520,{"input": [- 518,+ 519,"TriggerUninstallApplicationJobInput!"]}],"triggerUpgradeApplication": [- 522,+ 523,{"input": [- 521,+ 522,"TriggerUpgradeApplicationInput!"]}@@ -8748,184 +8774,184 @@ export default {5,{"channelId": [- 527,+ 528,"UUID!"],"input": [- 532,+ 533,"UpdateAgentChatChannelInput!"]}],"updateAgentChatThreadInboxState": [- 18,+ 19,{"action": [- 14,+ 15,"AgentChatInboxAction!"],"snoozedUntil": [- 210+ 211],"threadIds": [- 527,+ 528,"[UUID!]!"]}],"updateApiKey": [- 36,+ 37,{"input": [- 534,+ 535,"UpdateApiKeyInput!"]}],"updateAppMessageChannel": [- 344,+ 345,{"input": [- 535,+ 536,"UpdateAppMessageChannelInput!"]}],"updateApplication": [- 45,+ 46,{"id": [- 527,+ 528,"UUID!"],"input": [- 536,+ 537,"UpdateApplicationInput!"]}],"updateApplicationRegistration": [- 71,+ 72,{"input": [- 537,+ 538,"UpdateApplicationRegistrationInput!"]}],"updateApplicationRegistrationVariable": [- 75,+ 76,{"input": [- 539,+ 540,"UpdateApplicationRegistrationVariableInput!"]}],"updateCalendarChannel": [- 126,+ 127,{"input": [- 541,+ 542,"UpdateCalendarChannelInput!"]}],"updateCommandMenuItem": [- 153,+ 154,{"input": [- 543,+ 544,"UpdateCommandMenuItemInput!"]}],"updateEmailGroupChannel": [- 344,+ 345,{"input": [- 544,+ 545,"UpdateEmailGroupChannelInput!"]}],"updateFrontComponent": [- 285,+ 286,{"input": [- 546,+ 547,"UpdateFrontComponentInput!"]}],"updateLabPublicFeatureFlag": [- 263,+ 264,{"input": [- 548,+ 549,"UpdateLabPublicFeatureFlagInput!"]}],"updateManyNavigationMenuItems": [- 373,+ 374,{"inputs": [- 561,+ 562,"[UpdateOneNavigationMenuItemInput!]!"]}],"updateManyObjects": [- 376,+ 377,{"inputs": [- 562,+ 563,"[UpdateOneObjectInput!]!"]}],"updateManyViewGroups": [- 646,+ 647,{"inputs": [- 584,+ 585,"[UpdateViewGroupInput!]!"]}],"updateMcpServer": [- 340,+ 341,{"input": [- 551,+ 552,"UpdateMcpServerInput!"]}],"updateMessageChannel": [- 344,+ 345,{"input": [- 553,+ 554,"UpdateMessageChannelInput!"]}],"updateMessageFolder": [- 351,+ 352,{"input": [- 555,+ 556,"UpdateMessageFolderInput!"]}],"updateMessageFolders": [- 351,+ 352,{"input": [- 557,+ 558,"UpdateMessageFoldersInput!"]}@@ -8948,10 +8974,10 @@ export default {}],"updateNavigationMenuItem": [- 373,+ 374,{"input": [- 561,+ 562,"UpdateOneNavigationMenuItemInput!"]}@@ -8960,7 +8986,7 @@ export default {3,{"input": [- 533,+ 534,"UpdateAgentInput!"]}@@ -8969,7 +8995,7 @@ export default {4,{"applicationId": [- 527+ 528],"key": [1,@@ -8982,10 +9008,10 @@ export default {}],"updateOneField": [- 265,+ 266,{"input": [- 560,+ 561,"UpdateOneFieldMetadataInput!"]}@@ -8994,83 +9020,83 @@ export default {4,{"input": [- 549,+ 550,"UpdateLogicFunctionFromSourceInput!"]}],"updateOneObject": [- 376,+ 377,{"input": [- 562,+ 563,"UpdateOneObjectInput!"]}],"updateOneRole": [- 450,+ 451,{"updateRoleInput": [- 569,+ 570,"UpdateRoleInput!"]}],"updatePageLayout": [- 397,+ 398,{"id": [1,"String!"],"input": [- 563,+ 564,"UpdatePageLayoutInput!"]}],"updatePageLayoutTab": [- 398,+ 399,{"id": [1,"String!"],"input": [- 564,+ 565,"UpdatePageLayoutTabInput!"]}],"updatePageLayoutWidget": [- 401,+ 402,{"id": [1,"String!"],"input": [- 566,+ 567,"UpdatePageLayoutWidgetInput!"]}],"updatePageLayoutWithTabsAndWidgets": [- 397,+ 398,{"id": [1,"String!"],"input": [- 568,+ 569,"UpdatePageLayoutWithTabsInput!"]}],"updatePasswordViaResetToken": [- 311,+ 312,{"newPassword": [1,@@ -9083,46 +9109,46 @@ export default {}],"updateSkill": [- 493,+ 494,{"input": [- 571,+ 572,"UpdateSkillInput!"]}],"updateTimelineActivityType": [- 505,+ 506,{"input": [- 572,+ 573,"UpdateTimelineActivityTypeInput!"]}],"updateUnsubscribeTopic": [- 530,+ 531,{"input": [- 573,+ 574,"UpdateUnsubscribeTopicInput!"]}],"updateUsageLimit": [- 612,+ 613,{"input": [- 574,+ 575,"UpdateUsageLimitInput!"]}],"updateUserCreditsFallback": [- 99,+ 100,{"userCreditsFallback": [- 627,+ 628,"UserCreditsFallback!"]}@@ -9140,121 +9166,121 @@ export default {}],"updateValidationRule": [- 632,+ 633,{"input": [- 575,+ 576,"UpdateValidationRuleInput!"]}],"updateView": [- 637,+ 638,{"id": [1,"String!"],"input": [- 586,+ 587,"UpdateViewInput!"]}],"updateViewField": [- 640,+ 641,{"input": [- 579,+ 580,"UpdateViewFieldInput!"]}],"updateViewFieldGroup": [- 641,+ 642,{"input": [- 577,+ 578,"UpdateViewFieldGroupInput!"]}],"updateViewFilter": [- 642,+ 643,{"input": [- 582,+ 583,"UpdateViewFilterInput!"]}],"updateViewFilterGroup": [- 643,+ 644,{"id": [1,"String!"],"input": [- 581,+ 582,"UpdateViewFilterGroupInput!"]}],"updateViewGroup": [- 646,+ 647,{"input": [- 584,+ 585,"UpdateViewGroupInput!"]}],"updateViewSort": [- 649,+ 650,{"input": [- 587,+ 588,"UpdateViewSortInput!"]}],"updateWebhook": [- 653,+ 654,{"input": [- 589,+ 590,"UpdateWebhookInput!"]}],"updateWorkspace": [- 660,+ 661,{"data": [- 592,+ 593,"UpdateWorkspaceInput!"]}],"updateWorkspaceAllowedIframeOrigins": [- 660,+ 661,{"data": [- 591,+ 592,"UpdateWorkspaceAllowedIframeOriginsInput!"]}],"updateWorkspaceMemberRole": [- 669,+ 670,{"roleId": [- 527,+ 528,"UUID!"],"workspaceMemberId": [- 527,+ 528,"UUID!"]}@@ -9263,7 +9289,7 @@ export default {4,{"input": [- 593,+ 594,"UpdateWorkspaceMemberSettingsInput!"]}@@ -9282,10 +9308,10 @@ export default {}],"uploadAppTarball": [- 71,+ 72,{"file": [- 594,+ 595,"Upload!"],"universalIdentifier": [@@ -9294,18 +9320,18 @@ export default {}],"uploadApplicationFile": [- 276,+ 277,{"applicationUniversalIdentifier": [1,"String!"],"file": [- 594,+ 595,"Upload!"],"fileFolder": [- 278,+ 279,"FileFolder!"],"filePath": [@@ -9315,23 +9341,23 @@ export default {}],"uploadFilesFieldFileByUniversalIdentifier": [- 280,+ 281,{"fieldMetadataUniversalIdentifier": [1,"String!"],"file": [- 594,+ 595,"Upload!"]}],"uploadNewWorkspaceLogo": [- 280,+ 281,{"file": [- 594,+ 595,"Upload!"],"workspaceId": [@@ -9341,88 +9367,88 @@ export default {}],"uploadWorkspaceLogo": [- 280,+ 281,{"file": [- 594,+ 595,"Upload!"]}],"uploadWorkspaceMemberProfilePicture": [- 280,+ 281,{"file": [- 594,+ 595,"Upload!"]}],"upsertFieldPermissions": [- 272,+ 273,{"upsertFieldPermissionsInput": [- 595,+ 596,"UpsertFieldPermissionsInput!"]}],"upsertFieldsWidget": [- 637,+ 638,{"input": [- 598,+ 599,"UpsertFieldsWidgetInput!"]}],"upsertObjectPermissions": [- 384,+ 385,{"upsertObjectPermissionsInput": [- 599,+ 600,"UpsertObjectPermissionsInput!"]}],"upsertPermissionFlags": [- 451,+ 452,{"upsertPermissionFlagsInput": [- 600,+ 601,"UpsertPermissionFlagsInput!"]}],"upsertRowLevelPermissionPredicates": [- 602,+ 603,{"input": [- 601,+ 602,"UpsertRowLevelPermissionPredicatesInput!"]}],"upsertViewWidget": [- 637,+ 638,{"input": [- 603,+ 604,"UpsertViewWidgetInput!"]}],"validateApprovedAccessDomain": [- 79,+ 80,{"input": [- 630,+ 631,"ValidateApprovedAccessDomainInput!"]}],"verifyEmailAndGetLoginToken": [- 634,+ 635,{"captchaToken": [1@@ -9442,7 +9468,7 @@ export default {}],"verifyEmailAndGetWorkspaceAgnosticToken": [- 89,+ 90,{"captchaToken": [1@@ -9458,7 +9484,7 @@ export default {}],"verifyEmailingDomain": [- 240,+ 241,{"id": [1,@@ -9467,7 +9493,7 @@ export default {}],"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [- 635,+ 636,{"otp": [1,@@ -9492,25 +9518,25 @@ export default {},"NavigationMenuItem": {"agentChatChannelId": [- 527+ 528],"applicationId": [- 527+ 528],"color": [1],"createdAt": [- 210+ 211],"folderId": [- 527+ 528],"icon": [1],"id": [- 527+ 528],"link": [1@@ -9519,31 +9545,31 @@ export default {1],"pageLayoutId": [- 527+ 528],"position": [6],"targetObjectMetadataId": [- 527+ 528],"targetRecordId": [- 527+ 528],"targetRecordIdentifier": [- 429+ 430],"type": [- 374+ 375],"updatedAt": [- 210+ 211],"userWorkspaceId": [- 527+ 528],"viewId": [- 527+ 528],"__typename": [1@@ -9552,7 +9578,7 @@ export default {"NavigationMenuItemType": {},"NotesConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -9560,13 +9586,13 @@ export default {},"Object": {"applicationId": [- 527+ 528],"color": [1],"createdAt": [- 210+ 211],"description": [1@@ -9578,42 +9604,42 @@ export default {1],"fields": [- 379,+ 380,{"filter": [- 270,+ 271,"FieldFilter!"],"paging": [- 208,+ 209,"CursorPaging!"]}],"fieldsList": [- 265+ 266],"icon": [1],"id": [- 527+ 528],"imageIdentifierFieldMetadataId": [- 527+ 528],"indexMetadataList": [- 302+ 303],"indexMetadatas": [- 381,+ 382,{"filter": [- 305,+ 306,"IndexFilter!"],"paging": [- 208,+ 209,"CursorPaging!"]}@@ -9646,7 +9672,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 527+ 528],"labelPlural": [1@@ -9661,19 +9687,19 @@ export default {1],"openRecordIn": [- 383+ 384],"readability": [- 361+ 362],"readabilityParentFieldUniversalIdentifiers": [- 527+ 528],"searchFieldMetadataList": [- 469+ 470],"sharingReach": [- 391+ 392],"shortcut": [1@@ -9682,10 +9708,10 @@ export default {1],"updatedAt": [- 210+ 211],"writability": [- 366+ 367],"__typename": [1@@ -9693,10 +9719,10 @@ export default {},"ObjectConnection": {"edges": [- 378+ 379],"pageInfo": [- 396+ 397],"__typename": [1@@ -9704,10 +9730,10 @@ export default {},"ObjectEdge": {"cursor": [- 160+ 161],"node": [- 376+ 377],"__typename": [1@@ -9715,10 +9741,10 @@ export default {},"ObjectFieldsConnection": {"edges": [- 269+ 270],"pageInfo": [- 396+ 397],"__typename": [1@@ -9726,37 +9752,37 @@ export default {},"ObjectFilter": {"and": [- 380+ 381],"id": [- 528+ 529],"isActive": [- 125+ 126],"isRemote": [- 125+ 126],"isSearchable": [- 125+ 126],"isSystem": [- 125+ 126],"isUICreatable": [- 125+ 126],"isUIEditable": [- 125+ 126],"isUIReadOnly": [- 125+ 126],"or": [- 380+ 381],"universalIdentifier": [- 528+ 529],"__typename": [1@@ -9764,10 +9790,10 @@ export default {},"ObjectIndexMetadatasConnection": {"edges": [- 303+ 304],"pageInfo": [- 396+ 397],"__typename": [1@@ -9775,7 +9801,7 @@ export default {},"ObjectMetadataCommandMenuItemPayload": {"objectMetadataItemId": [- 527+ 528],"__typename": [1@@ -9796,16 +9822,16 @@ export default {4],"objectMetadataId": [- 527+ 528],"restrictedFields": [- 313+ 314],"rowLevelPermissionPredicateGroups": [- 454+ 455],"rowLevelPermissionPredicates": [- 453+ 454],"__typename": [1@@ -9825,7 +9851,7 @@ export default {4],"objectMetadataId": [- 527+ 528],"__typename": [1@@ -9844,13 +9870,13 @@ export default {},"ObjectRecordEvent": {"action": [- 209+ 210],"objectNameSingular": [1],"properties": [- 388+ 389],"recordId": [1@@ -9867,13 +9893,13 @@ export default {},"ObjectRecordEventProperties": {"after": [- 313+ 314],"before": [- 313+ 314],"diff": [- 313+ 314],"updatedFields": [1@@ -9884,7 +9910,7 @@ export default {},"ObjectRecordEventWithQueryIds": {"objectRecordEvent": [- 387+ 388],"queryIds": [1@@ -9898,10 +9924,10 @@ export default {"OnboardingStatus": {},"OnboardingStepNavigation": {"onboardingStatus": [- 392+ 393],"previousOnboardingStatus": [- 392+ 393],"__typename": [1@@ -9918,7 +9944,7 @@ export default {"OpenRecordIn": {},"PageInfo": {"endCursor": [- 160+ 161],"hasNextPage": [4@@ -9927,7 +9953,7 @@ export default {4],"startCursor": [- 160+ 161],"__typename": [1@@ -9935,19 +9961,19 @@ export default {},"PageLayout": {"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"defaultTabToFocusOnMobileAndSidePanelId": [- 527+ 528],"deletedAt": [- 210+ 211],"id": [- 527+ 528],"isFirstTabPinned": [4@@ -9959,19 +9985,19 @@ export default {1],"objectMetadataId": [- 527+ 528],"tabs": [- 398+ 399],"type": [- 400+ 401],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"__typename": [1@@ -9979,19 +10005,19 @@ export default {},"PageLayoutTab": {"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"icon": [1],"id": [- 527+ 528],"isActive": [4@@ -10003,10 +10029,10 @@ export default {4],"layoutMode": [- 399+ 400],"pageLayoutId": [- 527+ 528],"position": [6@@ -10015,13 +10041,13 @@ export default {1],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"widgets": [- 401+ 402],"__typename": [1@@ -10031,28 +10057,28 @@ export default {"PageLayoutType": {},"PageLayoutWidget": {"applicationId": [- 527+ 528],"conditionalAvailabilityExpression": [1],"conditionalDisplay": [- 313+ 314],"configuration": [- 654+ 655],"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"gridPosition": [- 294+ 295],"id": [- 527+ 528],"isActive": [4@@ -10064,25 +10090,25 @@ export default {4],"objectMetadataId": [- 527+ 528],"pageLayoutTabId": [- 527+ 528],"position": [- 404+ 405],"title": [1],"type": [- 656+ 657],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"__typename": [1@@ -10090,7 +10116,7 @@ export default {},"PageLayoutWidgetCanvasPosition": {"layoutMode": [- 399+ 400],"__typename": [1@@ -10104,7 +10130,7 @@ export default {10],"layoutMode": [- 399+ 400],"row": [10@@ -10118,13 +10144,13 @@ export default {},"PageLayoutWidgetPosition": {"on_PageLayoutWidgetCanvasPosition": [- 402+ 403],"on_PageLayoutWidgetGridPosition": [- 403+ 404],"on_PageLayoutWidgetVerticalListPosition": [- 406+ 407],"__typename": [1@@ -10133,13 +10159,13 @@ export default {"PageLayoutWidgetVerticalListHeightBehavior": {},"PageLayoutWidgetVerticalListPosition": {"heightBehavior": [- 405+ 406],"index": [10],"layoutMode": [- 399+ 400],"__typename": [1@@ -10155,10 +10181,10 @@ export default {},"PermissionFlag": {"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"description": [1@@ -10167,7 +10193,7 @@ export default {1],"id": [- 527+ 528],"key": [1@@ -10179,10 +10205,10 @@ export default {1],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"__typename": [1@@ -10191,19 +10217,19 @@ export default {"PermissionFlagType": {},"PieChartConfiguration": {"aggregateFieldMetadataId": [- 527+ 528],"aggregateOperation": [- 26+ 27],"color": [1],"configurationType": [- 655+ 656],"dateGranularity": [- 390+ 391],"description": [1@@ -10215,13 +10241,13 @@ export default {4],"filter": [- 313+ 314],"firstDayOfTheWeek": [10],"groupByFieldMetadataId": [- 527+ 528],"groupBySubFieldName": [1@@ -10233,10 +10259,10 @@ export default {1],"numberFormat": [- 140+ 141],"orderBy": [- 293+ 294],"showCenterMetric": [4@@ -10253,10 +10279,10 @@ export default {},"PieChartData": {"data": [- 413+ 414],"formattedToRawLookup": [- 313+ 314],"hasTooManyGroups": [4@@ -10276,10 +10302,10 @@ export default {},"PieChartDataInput": {"configuration": [- 313+ 314],"objectMetadataId": [- 527+ 528],"__typename": [1@@ -10304,7 +10330,7 @@ export default {1],"location": [- 325+ 326],"postcode": [1@@ -10335,7 +10361,7 @@ export default {1],"scheduledAt": [- 210+ 211],"__typename": [1@@ -10343,10 +10369,10 @@ export default {},"PreviewMessageCampaignSendOutputDTO": {"audience": [- 134+ 135],"blockers": [- 343+ 344],"__typename": [1@@ -10354,7 +10380,7 @@ export default {},"PublicApplicationRegistration": {"id": [- 527+ 528],"logoUrl": [1@@ -10374,7 +10400,7 @@ export default {},"PublicConnectionParametersOutput": {"connectionSecurity": [- 237+ 238],"host": [1@@ -10391,16 +10417,16 @@ export default {},"PublicDomain": {"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"domain": [1],"id": [- 527+ 528],"isValidated": [4@@ -10411,10 +10437,10 @@ export default {},"PublicFeatureFlag": {"key": [- 264+ 265],"metadata": [- 422+ 423],"__typename": [1@@ -10439,13 +10465,13 @@ export default {},"PublicImapSmtpCaldavConnectionParameters": {"CALDAV": [- 419+ 420],"IMAP": [- 419+ 420],"SMTP": [- 419+ 420],"__typename": [1@@ -10453,22 +10479,22 @@ export default {},"PublicWorkspaceData": {"authBypassProviders": [- 80+ 81],"authProviders": [- 81+ 82],"displayName": [1],"id": [- 527+ 528],"logo": [1],"workspaceUrls": [- 678+ 679],"__typename": [1@@ -10479,7 +10505,7 @@ export default {1],"id": [- 527+ 528],"logo": [1@@ -10496,7 +10522,7 @@ export default {9],"agentChatChannelThreadIds": [- 11,+ 12,{"after": [1@@ -10505,14 +10531,17 @@ export default {7],"channelId": [- 527,+ 528,"UUID!"],+ "filter": [+ 11+ ],"first": [10],"status": [- 12+ 13]}],@@ -10520,13 +10549,13 @@ export default {5],"agentChatOpenThreadsSummary": [- 15+ 16],"agentRuns": [- 23,+ 24,{"agentId": [- 527,+ 528,"UUID!"],"limit": [@@ -10536,82 +10565,82 @@ export default {}],"aiChatUsage": [- 27+ 28],"aiChatUserCreditsUsage": [- 28+ 29],"apiKey": [- 36,+ 37,{"input": [- 289,+ 290,"GetApiKeyInput!"]}],"apiKeys": [- 36+ 37],"appConnection": [- 39,+ 40,{"id": [- 17,+ 18,"ID!"]}],"appConnections": [- 39,+ 40,{"filter": [- 322+ 323]}],"appKeyValue": [- 40,+ 41,{"key": [1,"String!"],"scope": [- 41+ 42]}],"appMessageChannels": [- 344,+ 345,{"filter": [- 323+ 324]}],"appMessageFolders": [- 351,+ 352,{"filter": [- 324+ 325]}],"applicationConnectedAccounts": [- 48,+ 49,{"applicationId": [- 527,+ 528,"UUID!"]}],"applicationConnectionProviders": [- 49,+ 50,{"applicationId": [- 527,+ 528,"UUID!"]}@@ -10635,28 +10664,28 @@ export default {}],"applicationSdkClientChecksums": [- 468,+ 469,{"applicationId": [- 527,+ 528,"UUID!"]}],"barChartData": [- 92,+ 93,{"input": [- 93,+ 94,"BarChartDataInput!"]}],"billingPlans": [- 106+ 107],"billingPortalSession": [- 116,+ 117,{"forPaymentMethodUpdate": [4@@ -10667,43 +10696,43 @@ export default {}],"callRecordingIdForCalendarEvent": [- 527,+ 528,{"calendarEventId": [- 527,+ 528,"UUID!"]}],"chatMessages": [- 20,+ 21,{"threadId": [- 527,+ 528,"UUID!"]}],"chatStreamCatchupChunks": [- 142,+ 143,{"threadId": [- 527,+ 528,"UUID!"]}],"chatThread": [- 16,+ 17,{"id": [- 527,+ 528,"UUID!"]}],"checkUserExists": [- 145,+ 146,{"captchaToken": [1@@ -10715,7 +10744,7 @@ export default {}],"checkWorkspaceInviteHashIsValid": [- 668,+ 669,{"inviteHash": [1,@@ -10724,7 +10753,7 @@ export default {}],"checkWorkspaceSubdomainAvailability": [- 497,+ 498,{"subdomain": [1,@@ -10733,28 +10762,28 @@ export default {}],"commandMenuItem": [- 153,+ 154,{"id": [- 527,+ 528,"UUID!"]}],"commandMenuItems": [- 153+ 154],"currentUser": [- 625+ 626],"currentUserApplicationAuthorizations": [- 46+ 47],"currentUserSessions": [- 628+ 629],"currentWorkspace": [- 660+ 661],"enterpriseCheckoutSession": [1,@@ -10773,53 +10802,53 @@ export default {}],"enterpriseSubscriptionStatus": [- 251+ 252],"eventLogs": [- 258,+ 259,{"input": [- 257,+ 258,"EventLogQueryInput!"]}],"exportApplication": [- 51,+ 52,{"shouldIncludeDependencies": [4],"universalIdentifier": [- 527,+ 528,"UUID!"]}],"field": [- 265,+ 266,{"id": [- 527,+ 528,"UUID!"]}],"fields": [- 267,+ 268,{"filter": [- 270,+ 271,"FieldFilter!"],"paging": [- 208,+ 209,"CursorPaging!"]}],"findApplicationRegistrationByClientId": [- 418,+ 419,{"clientId": [1,@@ -10828,7 +10857,7 @@ export default {}],"findApplicationRegistrationByUniversalIdentifier": [- 71,+ 72,{"universalIdentifier": [1,@@ -10837,37 +10866,37 @@ export default {}],"findApplicationRegistrationMonitoring": [- 63,+ 64,{"id": [1,"String!"],"periodEnd": [- 210+ 211],"periodStart": [- 210+ 211]}],"findApplicationRegistrationStats": [- 73,+ 74,{"id": [1,"String!"],"periodEnd": [- 210+ 211],"periodStart": [- 210+ 211]}],"findApplicationRegistrationVariables": [- 75,+ 76,{"applicationRegistrationId": [1,@@ -10876,7 +10905,7 @@ export default {}],"findClaimableApplicationRegistration": [- 146,+ 147,{"sourcePackage": [1@@ -10887,7 +10916,7 @@ export default {}],"findInstallApplicationJobStatus": [- 316,+ 317,{"jobId": [1@@ -10902,16 +10931,16 @@ export default {3],"findManyApplicationRegistrations": [- 71+ 72],"findManyApplications": [- 45+ 46],"findManyLogicFunctions": [- 326+ 327],"findManyMarketplaceApps": [- 334,+ 335,{"universalIdentifiers": [1,@@ -10920,10 +10949,10 @@ export default {}],"findManyPublicDomains": [- 420+ 421],"findMarketplaceAppDetail": [- 335,+ 336,{"universalIdentifier": [1,@@ -10935,24 +10964,24 @@ export default {3,{"input": [- 19,+ 20,"AgentIdInput!"]}],"findOneApplication": [- 45,+ 46,{"id": [- 527+ 528],"universalIdentifier": [- 527+ 528]}],"findOneApplicationRegistration": [- 71,+ 72,{"id": [1,@@ -10961,16 +10990,16 @@ export default {}],"findOneLogicFunction": [- 326,+ 327,{"input": [- 330,+ 331,"LogicFunctionIdInput!"]}],"findUninstallApplicationJobStatus": [- 316,+ 317,{"jobId": [1@@ -10982,7 +11011,7 @@ export default {}],"findUpgradeApplicationJobStatus": [- 316,+ 317,{"jobId": [1@@ -10994,10 +11023,10 @@ export default {}],"findWorkspaceAiStats": [- 662+ 663],"findWorkspaceFromInviteHash": [- 660,+ 661,{"inviteHash": [1,@@ -11006,22 +11035,22 @@ export default {}],"findWorkspaceInvitations": [- 667+ 668],"frontComponent": [- 285,+ 286,{"id": [- 527,+ 528,"UUID!"]}],"frontComponents": [- 285+ 286],"getAddressDetails": [- 414,+ 415,{"placeId": [1,@@ -11034,16 +11063,16 @@ export default {}],"getAiSystemPromptPreview": [- 30+ 31],"getApiKeyRoles": [- 450+ 451],"getApprovedAccessDomains": [- 79+ 80],"getAutoCompleteAddress": [- 86,+ 87,{"address": [1,@@ -11062,31 +11091,31 @@ export default {}],"getAvailablePackages": [- 313,+ 314,{"input": [- 330,+ 331,"LogicFunctionIdInput!"]}],"getConnectedImapSmtpCaldavAccount": [- 159,+ 160,{"id": [- 527,+ 528,"UUID!"]}],"getEmailingDomains": [- 240+ 241],"getInviteSuggestions": [- 312+ 313],"getJobs": [- 316,+ 317,{"jobIds": [1,@@ -11098,13 +11127,13 @@ export default {1,{"input": [- 330,+ 331,"LogicFunctionIdInput!"]}],"getPageLayout": [- 397,+ 398,{"id": [1,@@ -11113,7 +11142,7 @@ export default {}],"getPageLayoutTab": [- 398,+ 399,{"id": [1,@@ -11122,7 +11151,7 @@ export default {}],"getPageLayoutTabs": [- 398,+ 399,{"pageLayoutId": [1,@@ -11131,7 +11160,7 @@ export default {}],"getPageLayoutWidget": [- 401,+ 402,{"id": [1,@@ -11140,7 +11169,7 @@ export default {}],"getPageLayoutWidgets": [- 401,+ 402,{"pageLayoutTabId": [1,@@ -11149,21 +11178,21 @@ export default {}],"getPageLayouts": [- 397,+ 398,{"objectMetadataId": [1],"pageLayoutType": [- 400+ 401]}],"getPermissionFlags": [- 408+ 409],"getPublicWorkspaceDataByDomain": [- 424,+ 425,{"origin": [1@@ -11171,37 +11200,37 @@ export default {}],"getPublicWorkspaceDataById": [- 425,+ 426,{"id": [- 527,+ 528,"UUID!"]}],"getResourceCreditUsage": [- 115+ 116],"getRole": [- 450,+ 451,{"id": [- 527,+ 528,"UUID!"]}],"getRoles": [- 450+ 451],"getSSOIdentityProviders": [- 282+ 283],"getToolIndex": [- 509+ 510],"getToolInputSchema": [- 313,+ 314,{"toolName": [1,@@ -11210,15 +11239,15 @@ export default {}],"getUsageAnalytics": [- 609,+ 610,{"input": [- 610+ 611]}],"getView": [- 637,+ 638,{"id": [1,@@ -11227,7 +11256,7 @@ export default {}],"getViewField": [- 640,+ 641,{"id": [1,@@ -11236,7 +11265,7 @@ export default {}],"getViewFieldGroup": [- 641,+ 642,{"id": [1,@@ -11245,7 +11274,7 @@ export default {}],"getViewFieldGroups": [- 641,+ 642,{"viewId": [1,@@ -11254,7 +11283,7 @@ export default {}],"getViewFields": [- 640,+ 641,{"viewId": [1,@@ -11263,7 +11292,7 @@ export default {}],"getViewFilter": [- 642,+ 643,{"id": [1,@@ -11272,7 +11301,7 @@ export default {}],"getViewFilterGroup": [- 643,+ 644,{"id": [1,@@ -11281,7 +11310,7 @@ export default {}],"getViewFilterGroups": [- 643,+ 644,{"viewId": [1@@ -11289,7 +11318,7 @@ export default {}],"getViewFilters": [- 642,+ 643,{"viewId": [1@@ -11297,7 +11326,7 @@ export default {}],"getViewGroup": [- 646,+ 647,{"id": [1,@@ -11306,7 +11335,7 @@ export default {}],"getViewGroups": [- 646,+ 647,{"viewId": [1@@ -11314,7 +11343,7 @@ export default {}],"getViewSort": [- 649,+ 650,{"id": [1,@@ -11323,7 +11352,7 @@ export default {}],"getViewSorts": [- 649,+ 650,{"viewId": [1@@ -11331,19 +11360,19 @@ export default {}],"getViews": [- 637,+ 638,{"objectMetadataId": [1],"viewTypes": [- 651,+ 652,"[ViewType!]"]}],"getWorkspaceCreationDefaults": [- 665+ 666],"githubClaimAuthorizationUrl": [1,@@ -11364,158 +11393,158 @@ export default {}],"lineChartData": [- 318,+ 319,{"input": [- 319,+ 320,"LineChartDataInput!"]}],"listPlans": [- 106+ 107],"mcpServer": [- 340,+ 341,{"id": [- 527,+ 528,"UUID!"]}],"mcpServers": [- 340+ 341],"messageSuppressions": [- 356,+ 357,{"input": [- 283,+ 284,"FindMessageSuppressionsInput!"]}],"metadataTranslations": [- 362,+ 363,{"input": [- 365,+ 366,"MetadataTranslationsInput!"]}],"minimalMetadata": [- 367+ 368],"mostlyEmptyFieldMetadataIds": [- 527,+ 528,{"objectMetadataId": [- 527,+ 528,"UUID!"]}],"myApplicationPreferences": [- 70+ 71],"myCalendarChannels": [- 126,+ 127,{"connectedAccountId": [- 527+ 528]}],"myConnectedAccounts": [- 157+ 158],"myMessageChannels": [- 344,+ 345,{"connectedAccountId": [- 527+ 528]}],"myMessageFolders": [- 351,+ 352,{"messageChannelId": [- 527+ 528]}],"myUserApplicationVariables": [- 670+ 671],"navigationMenuItem": [- 373,+ 374,{"id": [- 527,+ 528,"UUID!"]}],"navigationMenuItems": [- 373+ 374],"object": [- 376,+ 377,{"id": [- 527,+ 528,"UUID!"]}],"objectRecordCounts": [- 386+ 387],"objects": [- 377,+ 378,{"filter": [- 380,+ 381,"ObjectFilter!"],"paging": [- 208,+ 209,"CursorPaging!"]}],"pieChartData": [- 411,+ 412,{"input": [- 412,+ 413,"PieChartDataInput!"]}],"previewMessageCampaignAudience": [- 134,+ 135,{"input": [- 415,+ 416,"PreviewMessageCampaignAudienceInput!"]}],"previewMessageCampaignSend": [- 417,+ 418,{"input": [- 416,+ 417,"PreviewMessageCampaignSendInput!"]}],"publicMarketplaceAppDetail": [- 335,+ 336,{"universalIdentifier": [1,@@ -11524,76 +11553,76 @@ export default {}],"publicMarketplaceApps": [- 334+ 335],"recordPermissions": [- 431,+ 432,{"targets": [- 441,+ 442,"[RecordTargetInput!]!"]}],"recordSharing": [- 436,+ 437,{"target": [- 441,+ 442,"RecordTargetInput!"]}],"relatedRecordPaths": [- 442+ 443],"skill": [- 493,+ 494,{"id": [- 527,+ 528,"UUID!"]}],"skills": [- 493+ 494],"timelineActivityTypes": [- 505+ 506],"twoFactorAuthenticationRecoveryStatus": [- 526,+ 527,{"userId": [- 527,+ 528,"UUID!"]}],"unsubscribeTopics": [- 530+ 531],"usageLimits": [- 612+ 613],"usageQuotaDefinitions": [- 616+ 617],"usageQuotaScopeConsumption": [- 618,+ 619,{"input": [- 619,+ 620,"UsageQuotaScopeInput!"]}],"usageQuotasWithConsumption": [- 620+ 621],"validatePasswordResetToken": [- 631,+ 632,{"passwordResetToken": [1,@@ -11602,25 +11631,25 @@ export default {}],"validationRules": [- 632,+ 633,{"objectMetadataId": [- 527,+ 528,"UUID!"]}],"webhook": [- 653,+ 654,{"id": [- 527,+ 528,"UUID!"]}],"webhooks": [- 653+ 654],"__typename": [1@@ -11628,7 +11657,7 @@ export default {},"RatioAggregateConfig": {"fieldMetadataId": [- 527+ 528],"optionValue": [1@@ -11648,7 +11677,7 @@ export default {1],"id": [- 527+ 528],"progress": [10@@ -11659,7 +11688,7 @@ export default {},"RecordIdentifier": {"id": [- 527+ 528],"imageIdentifier": [1@@ -11690,13 +11719,13 @@ export default {},"RecordPermissionsResult": {"objectMetadataId": [- 527+ 528],"permissions": [- 430+ 431],"recordId": [- 527+ 528],"__typename": [1@@ -11705,10 +11734,10 @@ export default {"RecordShareAccessLevel": {},"RecordSharePrincipalInput": {"roleId": [- 527+ 528],"workspaceMemberId": [- 527+ 528],"__typename": [1@@ -11721,25 +11750,25 @@ export default {4],"defaultGeneralAccessLevel": [- 432+ 433],"generalAccessLevel": [- 432+ 433],"hasManagedGeneralAccess": [4],"permissions": [- 430+ 431],"roles": [- 439+ 440],"shares": [- 437+ 438],"sharingMode": [- 438+ 439],"__typename": [1@@ -11747,22 +11776,22 @@ export default {},"RecordSharingGrantDTO": {"accessLevel": [- 432+ 433],"id": [- 17+ 18],"principalId": [- 527+ 528],"principalRoleId": [- 527+ 528],"principalType": [- 434+ 435],"rowCause": [- 435+ 436],"__typename": [1@@ -11777,7 +11806,7 @@ export default {4],"id": [- 527+ 528],"label": [1@@ -11788,7 +11817,7 @@ export default {},"RecordTableConfiguration": {"configurationType": [- 655+ 656],"isUIEditable": [4@@ -11805,10 +11834,10 @@ export default {},"RecordTargetInput": {"objectMetadataId": [- 527+ 528],"recordId": [- 527+ 528],"__typename": [1@@ -11816,19 +11845,19 @@ export default {},"RelatedRecordPath": {"firstFieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"objectMetadataId": [- 527+ 528],"secondFieldMetadataId": [- 527+ 528],"thirdFieldMetadataId": [- 527+ 528],"__typename": [1@@ -11836,19 +11865,19 @@ export default {},"Relation": {"sourceFieldMetadata": [- 265+ 266],"sourceObjectMetadata": [- 376+ 377],"targetFieldMetadata": [- 265+ 266],"targetObjectMetadata": [- 376+ 377],"type": [- 444+ 445],"__typename": [1@@ -11868,7 +11897,7 @@ export default {},"ReportAppConnectionAuthFailureInput": {"id": [- 17+ 18],"reason": [1@@ -11887,7 +11916,7 @@ export default {},"RevokeApiKeyInput": {"id": [- 527+ 528],"__typename": [1@@ -11912,10 +11941,10 @@ export default {3],"apiKeys": [- 37+ 38],"applicationId": [- 527+ 528],"canAccessAllAgentChatChannels": [4@@ -11951,13 +11980,13 @@ export default {1],"fieldPermissions": [- 272+ 273],"icon": [1],"id": [- 527+ 528],"isEditable": [4@@ -11966,22 +11995,22 @@ export default {1],"objectPermissions": [- 384+ 385],"permissionFlags": [- 451+ 452],"rowLevelPermissionPredicateGroups": [- 454+ 455],"rowLevelPermissionPredicates": [- 453+ 454],"universalIdentifier": [- 527+ 528],"workspaceMembers": [- 669+ 670],"__typename": [1@@ -11992,10 +12021,10 @@ export default {1],"id": [- 527+ 528],"roleId": [- 527+ 528],"__typename": [1@@ -12020,7 +12049,7 @@ export default {1],"operand": [- 458+ 459],"positionInRowLevelPermissionPredicateGroup": [6@@ -12035,7 +12064,7 @@ export default {1],"value": [- 313+ 314],"workspaceMemberFieldMetadataId": [1@@ -12052,7 +12081,7 @@ export default {1],"logicalOperator": [- 456+ 457],"objectMetadataId": [1@@ -12072,16 +12101,16 @@ export default {},"RowLevelPermissionPredicateGroupInput": {"id": [- 527+ 528],"logicalOperator": [- 456+ 457],"objectMetadataId": [- 527+ 528],"parentRowLevelPermissionPredicateGroupId": [- 527+ 528],"positionInRowLevelPermissionPredicateGroup": [6@@ -12093,25 +12122,25 @@ export default {"RowLevelPermissionPredicateGroupLogicalOperator": {},"RowLevelPermissionPredicateInput": {"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"operand": [- 458+ 459],"positionInRowLevelPermissionPredicateGroup": [6],"rowLevelPermissionPredicateGroupId": [- 527+ 528],"subFieldName": [1],"value": [- 313+ 314],"workspaceMemberFieldMetadataId": [1@@ -12132,22 +12161,22 @@ export default {1],"input": [- 461+ 462],"messages": [- 461+ 462],"prompt": [1],"responseFormat": [- 313+ 314],"runAsWorkspaceMemberId": [- 527+ 528],"thread": [- 464+ 465],"waitForCompletion": [4@@ -12158,7 +12187,7 @@ export default {},"RunAgentMessageAttachmentInput": {"fileId": [- 527+ 528],"filename": [1@@ -12169,13 +12198,13 @@ export default {},"RunAgentMessageInput": {"attachments": [- 460+ 461],"content": [1],"role": [- 462+ 463],"__typename": [1@@ -12187,7 +12216,7 @@ export default {1],"result": [- 313+ 314],"status": [1@@ -12196,7 +12225,7 @@ export default {4],"threadId": [- 527+ 528],"__typename": [1@@ -12215,7 +12244,7 @@ export default {},"SSOConnection": {"id": [- 527+ 528],"issuer": [1@@ -12224,10 +12253,10 @@ export default {1],"status": [- 467+ 468],"type": [- 295+ 296],"__typename": [1@@ -12235,7 +12264,7 @@ export default {},"SSOIdentityProvider": {"id": [- 527+ 528],"issuer": [1@@ -12244,10 +12273,10 @@ export default {1],"status": [- 467+ 468],"type": [- 295+ 296],"__typename": [1@@ -12267,22 +12296,22 @@ export default {},"SearchField": {"createdAt": [- 210+ 211],"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"position": [6],"tsVectorFieldMetadataId": [- 527+ 528],"updatedAt": [- 210+ 211],"__typename": [1@@ -12290,13 +12319,13 @@ export default {},"SendAppChannelMessageInput": {"idempotencyKey": [- 527+ 528],"messageChannelId": [- 527+ 528],"messageThreadId": [- 527+ 528],"text": [1@@ -12307,10 +12336,10 @@ export default {},"SendAppChannelMessageOutput": {"messageId": [- 527+ 528],"messageThreadId": [- 527+ 528],"__typename": [1@@ -12318,7 +12347,7 @@ export default {},"SendChatMessageResult": {"mentionedParticipantWorkspaceMemberIds": [- 527+ 528],"messageId": [1@@ -12361,7 +12390,7 @@ export default {1],"files": [- 473+ 474],"fromHandle": [1@@ -12373,7 +12402,7 @@ export default {1],"targetRecord": [- 476+ 477],"to": [1@@ -12401,7 +12430,7 @@ export default {1],"recordId": [- 527+ 528],"__typename": [1@@ -12429,10 +12458,10 @@ export default {1],"toolCall": [- 313+ 314],"workspaceMemberIds": [- 527+ 528],"__typename": [1@@ -12440,7 +12469,7 @@ export default {},"SendInboxMessageResult": {"threadId": [- 527+ 528],"__typename": [1@@ -12451,7 +12480,7 @@ export default {1],"result": [- 667+ 668],"success": [4@@ -12465,7 +12494,7 @@ export default {1],"scheduledAt": [- 210+ 211],"__typename": [1@@ -12473,7 +12502,7 @@ export default {},"SendMessageCampaignOutputDTO": {"audience": [- 134+ 135],"campaignId": [1@@ -12527,10 +12556,10 @@ export default {1],"scope": [- 41+ 42],"value": [- 313+ 314],"__typename": [1@@ -12538,34 +12567,34 @@ export default {},"SettingsMenuItem": {"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"frontComponentId": [- 527+ 528],"icon": [1],"id": [- 527+ 528],"position": [6],"scope": [- 487+ 488],"title": [1],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"__typename": [1@@ -12597,7 +12626,7 @@ export default {1],"id": [- 527+ 528],"issuer": [1@@ -12614,7 +12643,7 @@ export default {},"SetupSso": {"id": [- 527+ 528],"issuer": [1@@ -12623,10 +12652,10 @@ export default {1],"status": [- 467+ 468],"type": [- 295+ 296],"__typename": [1@@ -12634,10 +12663,10 @@ export default {},"SignUp": {"loginToken": [- 82+ 83],"workspace": [- 679+ 680],"__typename": [1@@ -12662,13 +12691,13 @@ export default {},"Skill": {"applicationId": [- 527+ 528],"content": [1],"createdAt": [- 210+ 211],"description": [1@@ -12677,7 +12706,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -12695,7 +12724,7 @@ export default {1],"updatedAt": [- 210+ 211],"__typename": [1@@ -12703,10 +12732,10 @@ export default {},"StandaloneRichTextConfiguration": {"body": [- 449+ 450],"configurationType": [- 655+ 656],"__typename": [1@@ -12714,10 +12743,10 @@ export default {},"StartWorkspaceSetupChatResult": {"outcome": [- 677+ 678],"thread": [- 16+ 17],"__typename": [1@@ -12750,47 +12779,47 @@ export default {},"Subscription": {"eventLogsLive": [- 259,+ 260,{"fieldFilters": [- 253,+ 254,"[EventLogFieldFilterInput!]"],"table": [- 260,+ 261,"EventLogTable!"]}],"exportRecords": [- 428,+ 429,{"input": [- 192,+ 193,"CreateRecordExportInput!"]}],"logicFunctionLogs": [- 331,+ 332,{"input": [- 332,+ 333,"LogicFunctionLogsInput!"]}],"onAgentChatEvent": [- 13,+ 14,{"threadId": [- 527,+ 528,"UUID!"]}],"onEventSubscription": [- 261,+ 262,{"eventStreamId": [1,@@ -12806,7 +12835,7 @@ export default {"SubscriptionStatus": {},"Support": {"supportDriver": [- 502+ 503],"supportFrontChatId": [1@@ -12818,10 +12847,10 @@ export default {"SupportDriver": {},"SyncAppMessageFoldersInput": {"folders": [- 42+ 43],"messageChannelId": [- 527+ 528],"__typename": [1@@ -12829,7 +12858,7 @@ export default {},"TasksConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -12840,22 +12869,22 @@ export default {1],"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"emit": [- 506+ 507],"frontComponentUniversalIdentifier": [- 527+ 528],"icon": [1],"id": [- 527+ 528],"isActive": [4@@ -12867,16 +12896,16 @@ export default {1],"objectUniversalIdentifier": [- 527+ 528],"replacesTimelineActivityTypeUniversalIdentifier": [- 527+ 528],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"__typename": [1@@ -12884,13 +12913,13 @@ export default {},"TimelineActivityTypeEmit": {"objectUniversalIdentifier": [- 527+ 528],"on": [1],"through": [- 507+ 508],"__typename": [1@@ -12898,13 +12927,13 @@ export default {},"TimelineActivityTypeEmitThrough": {"happensAtFieldUniversalIdentifier": [- 527+ 528],"relationFieldUniversalIdentifier": [- 527+ 528],"triggerFieldUniversalIdentifiers": [- 527+ 528],"__typename": [1@@ -12912,7 +12941,7 @@ export default {},"TimelineConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -12932,7 +12961,7 @@ export default {1],"inputSchema": [- 313+ 314],"label": [1@@ -12952,7 +12981,7 @@ export default {},"TransientToken": {"transientToken": [- 82+ 83],"__typename": [1@@ -12960,10 +12989,10 @@ export default {},"TriggerAddPeopleToMessageListJobInput": {"messageListId": [- 527+ 528],"personFilter": [- 313+ 314],"__typename": [1@@ -13068,7 +13097,7 @@ export default {1],"twoFactorAuthenticationMethodId": [- 527+ 528],"__typename": [1@@ -13076,7 +13105,7 @@ export default {},"TwoFactorAuthenticationRecoveryCode": {"expiresAt": [- 210+ 211],"recoveryCode": [1@@ -13090,7 +13119,7 @@ export default {1],"tokens": [- 83+ 84],"__typename": [1@@ -13104,7 +13133,7 @@ export default {4],"pendingRecoveryCodeExpiresAt": [- 210+ 211],"__typename": [1@@ -13113,19 +13142,19 @@ export default {"UUID": {},"UUIDFilterComparison": {"eq": [- 527+ 528],"gt": [- 527+ 528],"gte": [- 527+ 528],"iLike": [- 527+ 528],"in": [- 527+ 528],"is": [4@@ -13134,25 +13163,25 @@ export default {4],"like": [- 527+ 528],"lt": [- 527+ 528],"lte": [- 527+ 528],"neq": [- 527+ 528],"notILike": [- 527+ 528],"notIn": [- 527+ 528],"notLike": [- 527+ 528],"__typename": [1@@ -13161,22 +13190,22 @@ export default {"UnsubscribeHostnameStatus": {},"UnsubscribeTopic": {"createdAt": [- 210+ 211],"description": [1],"id": [- 527+ 528],"name": [1],"updatedAt": [- 210+ 211],"visibility": [- 531+ 532],"__typename": [1@@ -13197,7 +13226,7 @@ export default {6],"roleIds": [- 527+ 528],"__typename": [1@@ -13211,7 +13240,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -13220,7 +13249,7 @@ export default {1],"modelConfiguration": [- 313+ 314],"modelId": [1@@ -13232,13 +13261,13 @@ export default {1],"responseFormat": [- 313+ 314],"roleId": [- 527+ 528],"triggers": [- 313+ 314],"__typename": [1@@ -13249,7 +13278,7 @@ export default {1],"id": [- 527+ 528],"name": [1@@ -13266,16 +13295,16 @@ export default {1],"id": [- 527+ 528],"isSyncEnabled": [4],"messagingProviderUniversalIdentifier": [- 527+ 528],"visibility": [- 350+ 351],"__typename": [1@@ -13294,7 +13323,7 @@ export default {1],"update": [- 538+ 539],"__typename": [1@@ -13319,7 +13348,7 @@ export default {1],"update": [- 540+ 541],"__typename": [1@@ -13341,10 +13370,10 @@ export default {},"UpdateCalendarChannelInput": {"id": [- 527+ 528],"update": [- 542+ 543],"__typename": [1@@ -13352,7 +13381,7 @@ export default {},"UpdateCalendarChannelInputUpdates": {"contactAutoCreationPolicy": [- 127+ 128],"excludePrivateEvents": [4@@ -13364,7 +13393,7 @@ export default {4],"visibility": [- 130+ 131],"__typename": [1@@ -13372,13 +13401,13 @@ export default {},"UpdateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 527+ 528],"availabilityType": [- 154+ 155],"engineComponentKey": [- 244+ 245],"hotKeys": [1@@ -13387,7 +13416,7 @@ export default {1],"id": [- 527+ 528],"isPinned": [4@@ -13396,7 +13425,7 @@ export default {1],"pageLayoutId": [- 527+ 528],"position": [6@@ -13413,7 +13442,7 @@ export default {1],"id": [- 527+ 528],"__typename": [1@@ -13421,7 +13450,7 @@ export default {},"UpdateFieldInput": {"defaultValue": [- 313+ 314],"description": [1@@ -13460,22 +13489,22 @@ export default {1],"morphRelationsUpdatePayload": [- 313+ 314],"name": [1],"objectMetadataId": [- 527+ 528],"options": [- 313+ 314],"settings": [- 313+ 314],"translations": [- 363+ 364],"universalIdentifier": [1@@ -13486,10 +13515,10 @@ export default {},"UpdateFrontComponentInput": {"id": [- 527+ 528],"update": [- 547+ 548],"__typename": [1@@ -13519,10 +13548,10 @@ export default {},"UpdateLogicFunctionFromSourceInput": {"id": [- 527+ 528],"update": [- 550+ 551],"__typename": [1@@ -13530,10 +13559,10 @@ export default {},"UpdateLogicFunctionFromSourceInputUpdates": {"cronTriggerSettings": [- 313+ 314],"databaseEventTriggerSettings": [- 313+ 314],"description": [1@@ -13542,7 +13571,7 @@ export default {1],"httpRouteTriggerSettings": [- 313+ 314],"name": [1@@ -13557,10 +13586,10 @@ export default {6],"toolTriggerSettings": [- 313+ 314],"workflowActionTriggerSettings": [- 313+ 314],"__typename": [1@@ -13568,10 +13597,10 @@ export default {},"UpdateMcpServerInput": {"id": [- 527+ 528],"update": [- 552+ 553],"__typename": [1@@ -13579,7 +13608,7 @@ export default {},"UpdateMcpServerInputUpdates": {"connectionProviderId": [- 527+ 528],"isActive": [4@@ -13599,10 +13628,10 @@ export default {},"UpdateMessageChannelInput": {"id": [- 527+ 528],"update": [- 554+ 555],"__typename": [1@@ -13610,7 +13639,7 @@ export default {},"UpdateMessageChannelInputUpdates": {"contactAutoCreationPolicy": [- 345+ 346],"excludeGroupEmails": [4@@ -13625,10 +13654,10 @@ export default {4],"messageFolderImportPolicy": [- 352+ 353],"visibility": [- 350+ 351],"__typename": [1@@ -13636,10 +13665,10 @@ export default {},"UpdateMessageFolderInput": {"id": [- 527+ 528],"update": [- 556+ 557],"__typename": [1@@ -13655,10 +13684,10 @@ export default {},"UpdateMessageFoldersInput": {"ids": [- 527+ 528],"update": [- 556+ 557],"__typename": [1@@ -13669,7 +13698,7 @@ export default {1],"folderId": [- 527+ 528],"icon": [1@@ -13681,7 +13710,7 @@ export default {1],"pageLayoutId": [- 527+ 528],"position": [6@@ -13701,7 +13730,7 @@ export default {1],"imageIdentifierFieldMetadataId": [- 527+ 528],"isActive": [4@@ -13713,7 +13742,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 527+ 528],"labelPlural": [1@@ -13728,19 +13757,19 @@ export default {1],"openRecordIn": [- 383+ 384],"readability": [- 361+ 362],"sharingReach": [- 391+ 392],"shortcut": [1],"translations": [- 363+ 364],"__typename": [1@@ -13748,10 +13777,10 @@ export default {},"UpdateOneFieldMetadataInput": {"id": [- 527+ 528],"update": [- 545+ 546],"__typename": [1@@ -13759,10 +13788,10 @@ export default {},"UpdateOneNavigationMenuItemInput": {"id": [- 527+ 528],"update": [- 558+ 559],"__typename": [1@@ -13770,10 +13799,10 @@ export default {},"UpdateOneObjectInput": {"id": [- 527+ 528],"update": [- 559+ 560],"__typename": [1@@ -13784,10 +13813,10 @@ export default {1],"objectMetadataId": [- 527+ 528],"type": [- 400+ 401],"__typename": [1@@ -13798,7 +13827,7 @@ export default {1],"layoutMode": [- 399+ 400],"position": [6@@ -13815,10 +13844,10 @@ export default {1],"id": [- 527+ 528],"layoutMode": [- 399+ 400],"position": [6@@ -13827,7 +13856,7 @@ export default {1],"widgets": [- 567+ 568],"__typename": [1@@ -13838,28 +13867,28 @@ export default {1],"conditionalDisplay": [- 313+ 314],"configuration": [- 313+ 314],"isActive": [4],"objectMetadataId": [- 527+ 528],"pageLayoutTabId": [- 527+ 528],"position": [- 313+ 314],"title": [1],"type": [- 656+ 657],"__typename": [1@@ -13870,28 +13899,28 @@ export default {1],"conditionalDisplay": [- 313+ 314],"configuration": [- 313+ 314],"id": [- 527+ 528],"objectMetadataId": [- 527+ 528],"pageLayoutTabId": [- 527+ 528],"position": [- 313+ 314],"title": [1],"type": [- 656+ 657],"__typename": [1@@ -13905,13 +13934,13 @@ export default {1],"objectMetadataId": [- 527+ 528],"tabs": [- 565+ 566],"type": [- 400+ 401],"__typename": [1@@ -13919,10 +13948,10 @@ export default {},"UpdateRoleInput": {"id": [- 527+ 528],"update": [- 570+ 571],"__typename": [1@@ -13983,7 +14012,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -14003,7 +14032,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -14012,7 +14041,7 @@ export default {1],"translations": [- 363+ 364],"__typename": [1@@ -14029,7 +14058,7 @@ export default {1],"visibility": [- 531+ 532],"__typename": [1@@ -14037,10 +14066,10 @@ export default {},"UpdateUsageLimitInput": {"id": [- 527+ 528],"payload": [- 197+ 198],"__typename": [1@@ -14048,10 +14077,10 @@ export default {},"UpdateValidationRuleInput": {"id": [- 527+ 528],"update": [- 576+ 577],"__typename": [1@@ -14062,7 +14091,7 @@ export default {1],"errorFieldMetadataId": [- 527+ 528],"expression": [1@@ -14085,10 +14114,10 @@ export default {},"UpdateViewFieldGroupInput": {"id": [- 527+ 528],"update": [- 578+ 579],"__typename": [1@@ -14113,10 +14142,10 @@ export default {},"UpdateViewFieldInput": {"id": [- 527+ 528],"update": [- 580+ 581],"__typename": [1@@ -14124,7 +14153,7 @@ export default {},"UpdateViewFieldInputUpdates": {"aggregateOperation": [- 26+ 27],"isVisible": [4@@ -14136,7 +14165,7 @@ export default {6],"viewFieldGroupId": [- 527+ 528],"__typename": [1@@ -14144,19 +14173,19 @@ export default {},"UpdateViewFilterGroupInput": {"id": [- 527+ 528],"logicalOperator": [- 644+ 645],"parentViewFilterGroupId": [- 527+ 528],"positionInViewFilterGroup": [6],"viewId": [- 527+ 528],"__typename": [1@@ -14164,10 +14193,10 @@ export default {},"UpdateViewFilterInput": {"id": [- 527+ 528],"update": [- 583+ 584],"__typename": [1@@ -14175,25 +14204,25 @@ export default {},"UpdateViewFilterInputUpdates": {"fieldMetadataId": [- 527+ 528],"operand": [- 645+ 646],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 527+ 528],"subFieldName": [1],"value": [- 313+ 314],"viewFilterGroupId": [- 527+ 528],"__typename": [1@@ -14201,10 +14230,10 @@ export default {},"UpdateViewGroupInput": {"id": [- 527+ 528],"update": [- 585+ 586],"__typename": [1@@ -14212,7 +14241,7 @@ export default {},"UpdateViewGroupInputUpdates": {"fieldMetadataId": [- 527+ 528],"fieldValue": [1@@ -14232,13 +14261,13 @@ export default {1],"calendarEndFieldMetadataId": [- 527+ 528],"calendarFieldMetadataId": [- 527+ 528],"calendarLayout": [- 638+ 639],"groupLoadLimit": [10@@ -14247,28 +14276,28 @@ export default {1],"id": [- 527+ 528],"isCompact": [4],"kanbanAggregateOperation": [- 26+ 27],"kanbanAggregateOperationFieldMetadataId": [- 527+ 528],"kanbanColumnWidth": [10],"mainGroupByFieldMetadataId": [- 527+ 528],"name": [1],"openRecordIn": [- 648+ 649],"position": [6@@ -14277,13 +14306,13 @@ export default {4],"translations": [- 363+ 364],"type": [- 651+ 652],"visibility": [- 652+ 653],"__typename": [1@@ -14291,10 +14320,10 @@ export default {},"UpdateViewSortInput": {"id": [- 527+ 528],"update": [- 588+ 589],"__typename": [1@@ -14302,7 +14331,7 @@ export default {},"UpdateViewSortInputUpdates": {"direction": [- 650+ 651],"subFieldName": [1@@ -14313,10 +14342,10 @@ export default {},"UpdateWebhookInput": {"id": [- 527+ 528],"update": [- 590+ 591],"__typename": [1@@ -14355,16 +14384,16 @@ export default {1],"aiAgentModelTier": [- 29+ 30],"aiChatModelTier": [- 29+ 30],"aiEvaluationModelId": [1],"aiModelIdByTier": [- 313+ 314],"allowImpersonation": [4@@ -14373,7 +14402,7 @@ export default {1],"defaultRoleId": [- 527+ 528],"displayName": [1@@ -14433,7 +14462,7 @@ export default {6],"workspaceDiscoverability": [- 666+ 667],"__typename": [1@@ -14441,10 +14470,10 @@ export default {},"UpdateWorkspaceMemberSettingsInput": {"update": [- 313+ 314],"workspaceMemberId": [- 527+ 528],"__typename": [1@@ -14453,10 +14482,10 @@ export default {"Upload": {},"UpsertFieldPermissionsInput": {"fieldPermissions": [- 273+ 274],"roleId": [- 527+ 528],"__typename": [1@@ -14464,7 +14493,7 @@ export default {},"UpsertFieldsWidgetFieldInput": {"fieldMetadataId": [- 527+ 528],"isVisible": [4@@ -14473,7 +14502,7 @@ export default {6],"viewFieldId": [- 527+ 528],"__typename": [1@@ -14481,10 +14510,10 @@ export default {},"UpsertFieldsWidgetGroupInput": {"fields": [- 596+ 597],"id": [- 527+ 528],"isVisible": [4@@ -14501,13 +14530,13 @@ export default {},"UpsertFieldsWidgetInput": {"fields": [- 596+ 597],"groups": [- 597+ 598],"widgetId": [- 527+ 528],"__typename": [1@@ -14515,10 +14544,10 @@ export default {},"UpsertObjectPermissionsInput": {"objectPermissions": [- 385+ 386],"roleId": [- 527+ 528],"__typename": [1@@ -14529,7 +14558,7 @@ export default {1],"roleId": [- 527+ 528],"__typename": [1@@ -14537,16 +14566,16 @@ export default {},"UpsertRowLevelPermissionPredicatesInput": {"objectMetadataId": [- 527+ 528],"predicateGroups": [- 455+ 456],"predicates": [- 457+ 458],"roleId": [- 527+ 528],"__typename": [1@@ -14554,10 +14583,10 @@ export default {},"UpsertRowLevelPermissionPredicatesResult": {"predicateGroups": [- 454+ 455],"predicates": [- 453+ 454],"__typename": [1@@ -14565,22 +14594,22 @@ export default {},"UpsertViewWidgetInput": {"view": [- 607+ 608],"viewFields": [- 604+ 605],"viewFilterGroups": [- 605+ 606],"viewFilters": [- 606+ 607],"viewSorts": [- 608+ 609],"widgetId": [- 527+ 528],"__typename": [1@@ -14588,10 +14617,10 @@ export default {},"UpsertViewWidgetViewFieldInput": {"aggregateOperation": [- 26+ 27],"fieldMetadataId": [- 527+ 528],"isVisible": [4@@ -14603,7 +14632,7 @@ export default {6],"viewFieldId": [- 527+ 528],"__typename": [1@@ -14611,13 +14640,13 @@ export default {},"UpsertViewWidgetViewFilterGroupInput": {"id": [- 527+ 528],"logicalOperator": [- 644+ 645],"parentViewFilterGroupId": [- 527+ 528],"positionInViewFilterGroup": [6@@ -14628,28 +14657,28 @@ export default {},"UpsertViewWidgetViewFilterInput": {"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"operand": [- 645+ 646],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 527+ 528],"subFieldName": [1],"value": [- 313+ 314],"viewFilterGroupId": [- 527+ 528],"__typename": [1@@ -14657,34 +14686,34 @@ export default {},"UpsertViewWidgetViewSettingsInput": {"calendarEndFieldMetadataId": [- 527+ 528],"calendarFieldMetadataId": [- 527+ 528],"calendarLayout": [- 638+ 639],"kanbanAggregateOperation": [- 26+ 27],"kanbanAggregateOperationFieldMetadataId": [- 527+ 528],"kanbanColumnWidth": [10],"mainGroupByFieldMetadataId": [- 527+ 528],"openRecordIn": [- 648+ 649],"shouldHideEmptyGroups": [4],"type": [- 651+ 652],"__typename": [1@@ -14692,13 +14721,13 @@ export default {},"UpsertViewWidgetViewSortInput": {"direction": [- 650+ 651],"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"__typename": [1@@ -14706,28 +14735,28 @@ export default {},"UsageAnalytics": {"periodEnd": [- 210+ 211],"periodStart": [- 210+ 211],"timeSeries": [- 622+ 623],"usageByApplication": [- 611+ 612],"usageByModel": [- 611+ 612],"usageByOperationType": [- 611+ 612],"usageByUser": [- 611+ 612],"userDailyUsage": [- 624+ 625],"__typename": [1@@ -14735,13 +14764,13 @@ export default {},"UsageAnalyticsInput": {"operationTypes": [- 614+ 615],"periodEnd": [- 210+ 211],"periodStart": [- 210+ 211],"userWorkspaceId": [1@@ -14772,22 +14801,22 @@ export default {},"UsageLimit": {"burstValue": [- 97+ 98],"createdAt": [- 210+ 211],"id": [- 527+ 528],"limitKind": [1],"limitValue": [- 97+ 98],"operationType": [- 614+ 615],"periodCount": [10@@ -14796,7 +14825,7 @@ export default {1],"resourceType": [- 621+ 622],"spenderId": [1@@ -14805,10 +14834,10 @@ export default {1],"unit": [- 623+ 624],"updatedAt": [- 210+ 211],"__typename": [1@@ -14816,10 +14845,10 @@ export default {},"UsageLimitOperationDefinition": {"allowedUnits": [- 623+ 624],"operationType": [- 614+ 615],"__typename": [1@@ -14828,7 +14857,7 @@ export default {"UsageOperationType": {},"UsageQuotaDefinition": {"allowedOperations": [- 613+ 614],"allowedSpenderTypes": [1@@ -14837,10 +14866,10 @@ export default {1],"operatorOnlyScopes": [- 617+ 618],"resourceType": [- 621+ 622],"__typename": [1@@ -14848,7 +14877,7 @@ export default {},"UsageQuotaDefinitions": {"definitions": [- 615+ 616],"hasAllowancePeriod": [4@@ -14862,7 +14891,7 @@ export default {},"UsageQuotaOperatorOnlyScope": {"operationType": [- 614+ 615],"periodUnit": [1@@ -14871,7 +14900,7 @@ export default {1],"unit": [- 623+ 624],"__typename": [1@@ -14879,13 +14908,13 @@ export default {},"UsageQuotaScopeConsumption": {"consumedValue": [- 97+ 98],"periodEnd": [- 210+ 211],"periodStart": [- 210+ 211],"__typename": [1@@ -14893,13 +14922,13 @@ export default {},"UsageQuotaScopeInput": {"operationType": [- 614+ 615],"periodUnit": [1],"resourceType": [- 621+ 622],"spenderId": [1@@ -14908,7 +14937,7 @@ export default {1],"unit": [- 623+ 624],"__typename": [1@@ -14916,34 +14945,34 @@ export default {},"UsageQuotaWithConsumption": {"consumedValue": [- 97+ 98],"id": [- 527+ 528],"isEnforced": [4],"limitValue": [- 97+ 98],"operationType": [- 614+ 615],"periodEnd": [- 210+ 211],"periodStart": [- 210+ 211],"periodUnit": [1],"remainingValue": [- 97+ 98],"resourceType": [- 621+ 622],"spenderId": [1@@ -14955,7 +14984,7 @@ export default {1],"unit": [- 623+ 624],"__typename": [1@@ -14979,7 +15008,7 @@ export default {"UsageUnit": {},"UsageUserDaily": {"dailyUsage": [- 622+ 623],"userWorkspaceId": [1@@ -14990,7 +15019,7 @@ export default {},"User": {"availableWorkspaces": [- 88+ 89],"canAccessFullAdminPanel": [4@@ -14999,19 +15028,19 @@ export default {4],"createdAt": [- 210+ 211],"currentUserWorkspace": [- 629+ 630],"currentWorkspace": [- 660+ 661],"deletedAt": [- 210+ 211],"deletedWorkspaceMembers": [- 223+ 224],"disabled": [4@@ -15026,7 +15055,7 @@ export default {4],"id": [- 527+ 528],"isEmailVerified": [4@@ -15041,31 +15070,31 @@ export default {1],"onboardingStatus": [- 392+ 393],"previousOnboardingStatus": [- 392+ 393],"supportUserHash": [1],"updatedAt": [- 210+ 211],"userVars": [- 314+ 315],"userWorkspaces": [- 629+ 630],"workspaceMember": [- 669+ 670],"workspaceMembers": [- 669+ 670],"workspaces": [- 629+ 630],"__typename": [1@@ -15091,7 +15120,7 @@ export default {1],"options": [- 313+ 314],"type": [1@@ -15115,13 +15144,13 @@ export default {1],"createdAt": [- 210+ 211],"expiresAt": [- 210+ 211],"id": [- 527+ 528],"ipAddress": [1@@ -15133,7 +15162,7 @@ export default {4],"lastActiveAt": [- 210+ 211],"region": [1@@ -15142,7 +15171,7 @@ export default {1],"workspaceId": [- 527+ 528],"__typename": [1@@ -15150,13 +15179,13 @@ export default {},"UserWorkspace": {"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"id": [- 527+ 528],"isImpersonating": [4@@ -15165,25 +15194,25 @@ export default {1],"objectPermissions": [- 384+ 385],"objectsPermissions": [- 384+ 385],"permissionFlags": [- 409+ 410],"twoFactorAuthenticationMethodSummary": [- 523+ 524],"updatedAt": [- 210+ 211],"user": [- 625+ 626],"userId": [- 527+ 528],"__typename": [1@@ -15191,7 +15220,7 @@ export default {},"ValidateApprovedAccessDomainInput": {"approvedAccessDomainId": [- 527+ 528],"validationToken": [1@@ -15208,7 +15237,7 @@ export default {4],"id": [- 527+ 528],"__typename": [1@@ -15219,7 +15248,7 @@ export default {1],"errorFieldMetadataId": [- 527+ 528],"expression": [1@@ -15228,7 +15257,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -15240,7 +15269,7 @@ export default {1],"objectMetadataId": [- 527+ 528],"__typename": [1@@ -15268,10 +15297,10 @@ export default {},"VerifyEmailAndGetLoginToken": {"loginToken": [- 82+ 83],"workspaceUrls": [- 678+ 679],"__typename": [1@@ -15301,25 +15330,25 @@ export default {1],"applicationId": [- 527+ 528],"calendarEndFieldMetadataId": [- 527+ 528],"calendarFieldMetadataId": [- 527+ 528],"calendarLayout": [- 638+ 639],"createdAt": [- 210+ 211],"createdByUserWorkspaceId": [- 527+ 528],"deletedAt": [- 210+ 211],"groupLoadLimit": [10@@ -15328,7 +15357,7 @@ export default {1],"id": [- 527+ 528],"isActive": [4@@ -15343,28 +15372,28 @@ export default {4],"kanbanAggregateOperation": [- 26+ 27],"kanbanAggregateOperationFieldMetadataId": [- 527+ 528],"kanbanColumnWidth": [10],"key": [- 647+ 648],"mainGroupByFieldMetadataId": [- 527+ 528],"name": [1],"objectMetadataId": [- 527+ 528],"openRecordIn": [- 648+ 649],"position": [6@@ -15373,37 +15402,37 @@ export default {4],"type": [- 651+ 652],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"viewFieldGroups": [- 641+ 642],"viewFields": [- 640+ 641],"viewFilterGroups": [- 643+ 644],"viewFilters": [- 642+ 643],"viewGroups": [- 646+ 647],"viewSorts": [- 649+ 650],"visibility": [- 652+ 653],"workspaceId": [- 527+ 528],"__typename": [1@@ -15412,7 +15441,7 @@ export default {"ViewCalendarLayout": {},"ViewConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -15420,22 +15449,22 @@ export default {},"ViewField": {"aggregateOperation": [- 26+ 27],"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"isActive": [4@@ -15456,19 +15485,19 @@ export default {6],"universalIdentifier": [- 527+ 528],"updatedAt": [- 210+ 211],"viewFieldGroupId": [- 527+ 528],"viewId": [- 527+ 528],"workspaceId": [- 527+ 528],"__typename": [1@@ -15476,13 +15505,13 @@ export default {},"ViewFieldGroup": {"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"id": [- 527+ 528],"isActive": [4@@ -15500,16 +15529,16 @@ export default {6],"updatedAt": [- 210+ 211],"viewFields": [- 640+ 641],"viewId": [- 527+ 528],"workspaceId": [- 527+ 528],"__typename": [1@@ -15517,43 +15546,43 @@ export default {},"ViewFilter": {"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"operand": [- 645+ 646],"positionInViewFilterGroup": [6],"relationTargetFieldMetadataId": [- 527+ 528],"subFieldName": [1],"updatedAt": [- 210+ 211],"value": [- 313+ 314],"viewFilterGroupId": [- 527+ 528],"viewId": [- 527+ 528],"workspaceId": [- 527+ 528],"__typename": [1@@ -15561,31 +15590,31 @@ export default {},"ViewFilterGroup": {"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"id": [- 527+ 528],"logicalOperator": [- 644+ 645],"parentViewFilterGroupId": [- 527+ 528],"positionInViewFilterGroup": [6],"updatedAt": [- 210+ 211],"viewId": [- 527+ 528],"workspaceId": [- 527+ 528],"__typename": [1@@ -15595,16 +15624,16 @@ export default {"ViewFilterOperand": {},"ViewGroup": {"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"fieldValue": [1],"id": [- 527+ 528],"isVisible": [4@@ -15613,13 +15642,13 @@ export default {6],"updatedAt": [- 210+ 211],"viewId": [- 527+ 528],"workspaceId": [- 527+ 528],"__typename": [1@@ -15629,31 +15658,31 @@ export default {"ViewOpenRecordIn": {},"ViewSort": {"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"direction": [- 650+ 651],"fieldMetadataId": [- 527+ 528],"id": [- 527+ 528],"subFieldName": [1],"updatedAt": [- 210+ 211],"viewId": [- 527+ 528],"workspaceId": [- 527+ 528],"__typename": [1@@ -15664,19 +15693,19 @@ export default {"ViewVisibility": {},"Webhook": {"applicationId": [- 527+ 528],"createdAt": [- 210+ 211],"deletedAt": [- 210+ 211],"description": [1],"id": [- 527+ 528],"operations": [1@@ -15688,7 +15717,7 @@ export default {1],"updatedAt": [- 210+ 211],"__typename": [1@@ -15696,91 +15725,91 @@ export default {},"WidgetConfiguration": {"on_AggregateChartConfiguration": [- 25+ 26],"on_BarChartConfiguration": [- 91+ 92],"on_CalendarConfiguration": [- 131+ 132],"on_CallRecordingSummaryConfiguration": [- 132+ 133],"on_CallRecordingTranscriptConfiguration": [- 133+ 134],"on_ChatConfiguration": [- 141+ 142],"on_ChatThreadsConfiguration": [- 144+ 145],"on_EmailThreadConfiguration": [- 239+ 240],"on_EmailsConfiguration": [- 243+ 244],"on_FieldConfiguration": [- 266+ 267],"on_FieldRichTextConfiguration": [- 274+ 275],"on_FieldsConfiguration": [- 275+ 276],"on_FilesConfiguration": [- 281+ 282],"on_FormFieldConfiguration": [- 284+ 285],"on_FrontComponentConfiguration": [- 286+ 287],"on_IframeConfiguration": [- 296+ 297],"on_LineChartConfiguration": [- 317+ 318],"on_MessageCampaignBodyConfiguration": [- 341+ 342],"on_MessageCampaignDetailsConfiguration": [- 342+ 343],"on_NotesConfiguration": [- 375+ 376],"on_PieChartConfiguration": [- 410+ 411],"on_RecordTableConfiguration": [- 440+ 441],"on_StandaloneRichTextConfiguration": [- 494+ 495],"on_TasksConfiguration": [- 504+ 505],"on_TimelineConfiguration": [- 508+ 509],"on_ViewConfiguration": [- 639+ 640],"on_WorkflowConfiguration": [- 657+ 658],"on_WorkflowRunConfiguration": [- 658+ 659],"on_WorkflowVersionConfiguration": [- 659+ 660],"__typename": [1@@ -15790,7 +15819,7 @@ export default {"WidgetType": {},"WorkflowConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -15798,7 +15827,7 @@ export default {},"WorkflowRunConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -15806,7 +15835,7 @@ export default {},"WorkflowVersionConfiguration": {"configurationType": [- 655+ 656],"__typename": [1@@ -15814,22 +15843,22 @@ export default {},"Workspace": {"activationStatus": [- 661+ 662],"aiAdditionalInstructions": [1],"aiAgentModelTier": [- 29+ 30],"aiChatModelTier": [- 29+ 30],"aiEvaluationModelId": [1],"aiModelIdByTier": [- 313+ 314],"allowImpersonation": [4@@ -15838,19 +15867,19 @@ export default {1],"billingCustomer": [- 99+ 100],"billingEntitlements": [- 101+ 102],"billingSubscriptions": [- 117+ 118],"createdAt": [- 210+ 211],"currentBillingSubscription": [- 117+ 118],"customDomain": [1@@ -15859,10 +15888,10 @@ export default {1],"defaultRole": [- 450+ 451],"deletedAt": [- 210+ 211],"displayName": [1@@ -15874,7 +15903,7 @@ export default {6],"featureFlags": [- 263+ 264],"hasValidEnterpriseValidityToken": [4@@ -15883,10 +15912,10 @@ export default {4],"id": [- 527+ 528],"installedApplications": [- 45+ 46],"inviteHash": [1@@ -15937,7 +15966,7 @@ export default {1],"logoFileId": [- 527+ 528],"metadataVersion": [6@@ -15949,40 +15978,40 @@ export default {6],"updatedAt": [- 210+ 211],"viewFields": [- 640+ 641],"viewFilterGroups": [- 643+ 644],"viewFilters": [- 642+ 643],"viewGroups": [- 646+ 647],"viewSorts": [- 649+ 650],"views": [- 637+ 638],"workspaceCustomApplication": [- 45+ 46],"workspaceCustomApplicationId": [1],"workspaceDiscoverability": [- 666+ 667],"workspaceMembersCount": [6],"workspaceUrls": [- 678+ 679],"__typename": [1@@ -16006,19 +16035,19 @@ export default {"WorkspaceCompanyEnrichmentOutcome": {},"WorkspaceCompanyEnrichmentResult": {"enrichment": [- 313+ 314],"isBookCallOnboardingStepPending": [4],"outcome": [- 663+ 664],"personEnrichment": [- 313+ 314],"personOutcome": [- 676+ 677],"__typename": [1@@ -16041,13 +16070,13 @@ export default {1],"expiresAt": [- 210+ 211],"id": [- 527+ 528],"roleId": [- 527+ 528],"__typename": [1@@ -16072,28 +16101,28 @@ export default {1],"dateFormat": [- 671+ 672],"id": [- 527+ 528],"locale": [1],"name": [- 288+ 289],"numberFormat": [- 672+ 673],"openRecordIn": [- 395+ 396],"roles": [- 450+ 451],"timeFormat": [- 673+ 674],"timeZone": [1@@ -16105,10 +16134,10 @@ export default {1],"userId": [- 527+ 528],"userWorkspaceId": [- 527+ 528],"__typename": [1@@ -16116,13 +16145,13 @@ export default {},"WorkspaceMemberApplicationVariables": {"userWorkspaceId": [- 527+ 528],"variables": [- 626+ 627],"workspaceMemberId": [- 527+ 528],"__typename": [1@@ -16133,7 +16162,7 @@ export default {"WorkspaceMemberTimeFormatEnum": {},"WorkspaceMigration": {"actions": [- 313+ 314],"applicationUniversalIdentifier": [1@@ -16147,7 +16176,7 @@ export default {1],"id": [- 527+ 528],"__typename": [1@@ -16168,10 +16197,10 @@ export default {},"WorkspaceUrlsAndId": {"id": [- 527+ 528],"workspaceUrls": [- 678+ 679],"__typename": [1diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.tsindex dbd7b4ea493..f6ead37a7c4 100644--- a/packages/twenty-front/src/generated-metadata/graphql.ts+++ b/packages/twenty-front/src/generated-metadata/graphql.ts@@ -302,12 +302,13 @@ export type GetAgentChatChannelRolesQuery = { agentChatChannelRoles: Array<{ __texport type GetAgentChatChannelSummariesQueryVariables = Exact<{ [key: string]: never; }>;-export type GetAgentChatChannelSummariesQuery = { agentChatChannelSummaries: Array<{ __typename: 'AgentChatChannelSummary', channelId: string, openCount: number, hasUnreadOpen: boolean, assignedToMeCount: number, hasUnreadAssignedToMe: boolean, snoozedCount: number, doneCount: number }> };+export type GetAgentChatChannelSummariesQuery = { agentChatChannelSummaries: Array<{ __typename: 'AgentChatChannelSummary', channelId: string, openCount: number, needsInputCount: number, mentionedCount: number, hasUnreadOpen: boolean, assignedToMeCount: number, assignedCount: number, unassignedCount: number, snoozedCount: number, doneCount: number }> };export type GetAgentChatChannelThreadIdsQueryVariables = Exact<{channelId: string;status?: Types.AgentChatChannelThreadStatus | null | undefined;assignment?: Types.AgentChatChannelAssignmentFilter | null | undefined;+ filter?: Types.AgentChatChannelThreadFilter | null | undefined;first?: number | null | undefined;after?: string | null | undefined;}>;@@ -323,7 +324,7 @@ export type GetAgentChatChannelsQuery = { agentChatChannels: Array<{ __typename:export type GetAgentChatOpenThreadsSummaryQueryVariables = Exact<{ [key: string]: never; }>;-export type GetAgentChatOpenThreadsSummaryQuery = { agentChatOpenThreadsSummary: { __typename: 'AgentChatOpenThreadsSummary', openThreadCount: number, unreadOpenThreadCount: number, needsInputThreadCount: number, hasUnreadOpenThread: boolean, hasUnreadMentionThread: boolean, hasUnreadAssignedThread: boolean } };+export type GetAgentChatOpenThreadsSummaryQuery = { agentChatOpenThreadsSummary: { __typename: 'AgentChatOpenThreadsSummary', openThreadCount: number, unreadOpenThreadCount: number, needsInputThreadCount: number, mentionThreadCount: number, assignedToMeThreadCount: number, assignedThreadCount: number, unassignedThreadCount: number, hasUnreadOpenThread: boolean, hasUnreadMentionThread: boolean, hasUnreadAssignedThread: boolean } };export type GetAgentRunsQueryVariables = Exact<{agentId: string;@@ -2940,10 +2941,10 @@ export const FindManySkillsForSuggestionDocument = {"kind":"Document","definitioexport const FindOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneAgent"},"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":"findOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"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":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"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<FindOneAgentQuery, FindOneAgentQueryVariables>;export const FindOneSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneSkill"},"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":"skill"},"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":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"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":"content"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"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<FindOneSkillQuery, FindOneSkillQueryVariables>;export const GetAgentChatChannelRolesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannelRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllAgentChatChannels"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelRolesQuery, GetAgentChatChannelRolesQueryVariables>;-export const GetAgentChatChannelSummariesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannelSummaries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelSummaries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"openCount"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadOpen"}},{"kind":"Field","name":{"kind":"Name","value":"assignedToMeCount"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadAssignedToMe"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedCount"}},{"kind":"Field","name":{"kind":"Name","value":"doneCount"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelSummariesQuery, GetAgentChatChannelSummariesQueryVariables>;-export const GetAgentChatChannelThreadIdsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannelThreadIds"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"status"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatChannelThreadStatus"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"assignment"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatChannelAssignmentFilter"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelThreadIds"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"channelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}}},{"kind":"Argument","name":{"kind":"Name","value":"status"},"value":{"kind":"Variable","name":{"kind":"Name","value":"status"}}},{"kind":"Argument","name":{"kind":"Name","value":"assignment"},"value":{"kind":"Variable","name":{"kind":"Name","value":"assignment"}}},{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threadIds"}},{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelThreadIdsQuery, GetAgentChatChannelThreadIdsQueryVariables>;+export const GetAgentChatChannelSummariesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannelSummaries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelSummaries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"openCount"}},{"kind":"Field","name":{"kind":"Name","value":"needsInputCount"}},{"kind":"Field","name":{"kind":"Name","value":"mentionedCount"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadOpen"}},{"kind":"Field","name":{"kind":"Name","value":"assignedToMeCount"}},{"kind":"Field","name":{"kind":"Name","value":"assignedCount"}},{"kind":"Field","name":{"kind":"Name","value":"unassignedCount"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedCount"}},{"kind":"Field","name":{"kind":"Name","value":"doneCount"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelSummariesQuery, GetAgentChatChannelSummariesQueryVariables>;+export const GetAgentChatChannelThreadIdsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannelThreadIds"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"status"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatChannelThreadStatus"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"assignment"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatChannelAssignmentFilter"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filter"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatChannelThreadFilter"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelThreadIds"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"channelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}}},{"kind":"Argument","name":{"kind":"Name","value":"status"},"value":{"kind":"Variable","name":{"kind":"Name","value":"status"}}},{"kind":"Argument","name":{"kind":"Name","value":"assignment"},"value":{"kind":"Variable","name":{"kind":"Name","value":"assignment"}}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filter"}}},{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threadIds"}},{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelThreadIdsQuery, GetAgentChatChannelThreadIdsQueryVariables>;export const GetAgentChatChannelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"roleIds"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isAccessible"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelsQuery, GetAgentChatChannelsQueryVariables>;-export const GetAgentChatOpenThreadsSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatOpenThreadsSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatOpenThreadsSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"openThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"unreadOpenThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"needsInputThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadOpenThread"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadMentionThread"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadAssignedThread"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatOpenThreadsSummaryQuery, GetAgentChatOpenThreadsSummaryQueryVariables>;+export const GetAgentChatOpenThreadsSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatOpenThreadsSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatOpenThreadsSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"openThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"unreadOpenThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"needsInputThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"mentionThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"assignedToMeThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"assignedThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"unassignedThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadOpenThread"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadMentionThread"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadAssignedThread"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatOpenThreadsSummaryQuery, GetAgentChatOpenThreadsSummaryQueryVariables>;export const GetAgentRunsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentRuns"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentRuns"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"agentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"threadTitle"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"errorMessage"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"inputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"outputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"credits"}},{"kind":"Field","name":{"kind":"Name","value":"creatorSource"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}},{"kind":"Field","name":{"kind":"Name","value":"input"}},{"kind":"Field","name":{"kind":"Name","value":"reply"}},{"kind":"Field","name":{"kind":"Name","value":"toolNames"}}]}}]}}]} as unknown as DocumentNode<GetAgentRunsQuery, GetAgentRunsQueryVariables>;export const GetAiChatUsageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAiChatUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aiChatUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"limitValue"}},{"kind":"Field","name":{"kind":"Name","value":"consumedValue"}},{"kind":"Field","name":{"kind":"Name","value":"periodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}},{"kind":"Field","name":{"kind":"Name","value":"aiChatUserCreditsUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"limitValue"}},{"kind":"Field","name":{"kind":"Name","value":"consumedValue"}},{"kind":"Field","name":{"kind":"Name","value":"periodEnd"}}]}}]}}]} as unknown as DocumentNode<GetAiChatUsageQuery, GetAiChatUsageQueryVariables>;export const GetChatMessagesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetChatMessages"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chatMessages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"turnId"}},{"kind":"Field","name":{"kind":"Name","value":"senderWorkspaceMemberId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"processedAt"}},{"kind":"Field","name":{"kind":"Name","value":"parts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"orderIndex"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"textContent"}},{"kind":"Field","name":{"kind":"Name","value":"reasoningContent"}},{"kind":"Field","name":{"kind":"Name","value":"toolName"}},{"kind":"Field","name":{"kind":"Name","value":"toolCallId"}},{"kind":"Field","name":{"kind":"Name","value":"toolInput"}},{"kind":"Field","name":{"kind":"Name","value":"toolOutput"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"providerExecuted"}},{"kind":"Field","name":{"kind":"Name","value":"errorMessage"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrlSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrlUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrlTitle"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentMediaType"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentTitle"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentFilename"}},{"kind":"Field","name":{"kind":"Name","value":"fileMediaType"}},{"kind":"Field","name":{"kind":"Name","value":"fileFilename"}},{"kind":"Field","name":{"kind":"Name","value":"fileUrl"}},{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"providerMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"emoji"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberIds"}},{"kind":"Field","name":{"kind":"Name","value":"agentIds"}},{"kind":"Field","name":{"kind":"Name","value":"hasAssistantReacted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"chatStreamCatchupChunks"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chunks"}},{"kind":"Field","name":{"kind":"Name","value":"maxSeq"}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<GetChatMessagesQuery, GetChatMessagesQueryVariables>;diff --git a/packages/twenty-front/src/generated-metadata/schema.ts b/packages/twenty-front/src/generated-metadata/schema.tsindex 61f4cc9e3ce..03b33f2d478 100644--- a/packages/twenty-front/src/generated-metadata/schema.ts+++ b/packages/twenty-front/src/generated-metadata/schema.ts@@ -65,6 +65,7 @@ export type AgentChatChannel = {export enum AgentChatChannelAssignmentFilter {ANY = 'ANY',+ ASSIGNED = 'ASSIGNED',ASSIGNED_TO_ME = 'ASSIGNED_TO_ME',UNASSIGNED = 'UNASSIGNED'}@@ -79,15 +80,25 @@ export type AgentChatChannelRole = {export type AgentChatChannelSummary = {__typename?: 'AgentChatChannelSummary';+ assignedCount: Scalars['Int']['output'];assignedToMeCount: Scalars['Int']['output'];channelId: Scalars['UUID']['output'];doneCount: Scalars['Int']['output'];hasUnreadAssignedToMe: Scalars['Boolean']['output'];hasUnreadOpen: Scalars['Boolean']['output'];+ mentionedCount: Scalars['Int']['output'];+ needsInputCount: Scalars['Int']['output'];openCount: Scalars['Int']['output'];snoozedCount: Scalars['Int']['output'];+ unassignedCount: Scalars['Int']['output'];};+export enum AgentChatChannelThreadFilter {+ ANY = 'ANY',+ MENTIONED = 'MENTIONED',+ NEEDS_INPUT = 'NEEDS_INPUT'+}+export type AgentChatChannelThreadIds = {__typename?: 'AgentChatChannelThreadIds';endCursor?: Maybe<Scalars['String']['output']>;@@ -119,11 +130,15 @@ export enum AgentChatInboxAction {export type AgentChatOpenThreadsSummary = {__typename?: 'AgentChatOpenThreadsSummary';+ assignedThreadCount: Scalars['Int']['output'];+ assignedToMeThreadCount: Scalars['Int']['output'];hasUnreadAssignedThread: Scalars['Boolean']['output'];hasUnreadMentionThread: Scalars['Boolean']['output'];hasUnreadOpenThread: Scalars['Boolean']['output'];+ mentionThreadCount: Scalars['Int']['output'];needsInputThreadCount: Scalars['Int']['output'];openThreadCount: Scalars['Int']['output'];+ unassignedThreadCount: Scalars['Int']['output'];unreadOpenThreadCount: Scalars['Int']['output'];};@@ -5888,6 +5903,7 @@ export type QueryAgentChatChannelThreadIdsArgs = {after?: InputMaybe<Scalars['String']['input']>;assignment?: InputMaybe<AgentChatChannelAssignmentFilter>;channelId: Scalars['UUID']['input'];+ filter?: InputMaybe<AgentChatChannelThreadFilter>;first?: InputMaybe<Scalars['Int']['input']>;status?: InputMaybe<AgentChatChannelThreadStatus>;};diff --git a/packages/twenty-front/src/modules/ai/components/AiChatInboxChannelViewDropdown.tsx b/packages/twenty-front/src/modules/ai/components/AiChatInboxChannelViewDropdown.tsxindex 7c9604865fb..d98a74594cd 100644--- a/packages/twenty-front/src/modules/ai/components/AiChatInboxChannelViewDropdown.tsx+++ b/packages/twenty-front/src/modules/ai/components/AiChatInboxChannelViewDropdown.tsx@@ -1,18 +1,19 @@import { useLingui } from '@lingui/react/macro';-import { useId } from 'react';-import { IconButton } from 'twenty-ui/components/input';-import { Dropdown } from 'twenty-ui/components/navigation';-import { IconFilter } from 'twenty-ui/icon';-import { AGENT_CHAT_CHANNEL_NAVIGATION_ITEMS } from '@/ai/constants/AgentChatChannelNavigationItems';-import { agentChatChannelViewState } from '@/ai/states/agentChatChannelViewState';+import { AiChatInboxFilterDropdown } from '@/ai/components/AiChatInboxFilterDropdown';+import { AGENT_CHAT_CHANNEL_OPEN_VIEW_ITEMS } from '@/ai/constants/AgentChatChannelOpenViewItems';+import { AGENT_CHAT_THREAD_FILTER_STATUS_ICONS } from '@/ai/constants/AgentChatThreadFilterStatusIcons';+import { AGENT_CHAT_THREAD_FILTER_STATUS_LABELS } from '@/ai/constants/AgentChatThreadFilterStatusLabels';+import { useOpenAgentChatChannel } from '@/ai/hooks/useOpenAgentChatChannel';+import { agentChatChannelSummariesState } from '@/ai/states/agentChatChannelSummariesState';import { type AgentChatChannelView } from '@/ai/types/AgentChatChannelView';-import { getAgentChatChannelNavigationItemOrThrow } from '@/ai/utils/getAgentChatChannelNavigationItemOrThrow';-import { useResetRecordSelection } from '@/object-record/record-selection/hooks/useResetRecordSelection';-import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';-import { DropdownRoot } from '@/ui/layout/dropdown/components/DropdownRoot';-import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';-import { AgentChatChannelAssignmentFilter } from '~/generated-metadata/graphql';+import { findAgentChatChannelOpenViewItem } from '@/ai/utils/findAgentChatChannelOpenViewItem';+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';+import {+ AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,+ AgentChatChannelThreadStatus,+} from '~/generated-metadata/graphql';type AiChatInboxChannelViewDropdownProps = {channelView: AgentChatChannelView;@@ -22,78 +23,40 @@ export const AiChatInboxChannelViewDropdown = ({channelView,}: AiChatInboxChannelViewDropdownProps) => {const { t } = useLingui();- const instanceId = useId();- const setAgentChatChannelView = useSetAtomState(agentChatChannelViewState);- const { resetRecordSelection } = useResetRecordSelection();- const selectedNavigationItem =- getAgentChatChannelNavigationItemOrThrow(channelView);- const assignmentOptions = [- { value: AgentChatChannelAssignmentFilter.ANY, label: t`All` },- {- value: AgentChatChannelAssignmentFilter.UNASSIGNED,- label: t`Unassigned`,- },- { value: AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME, label: t`Mine` },+ const { openAgentChatChannel } = useOpenAgentChatChannel();+ const channelSummary = useAtomStateValue(agentChatChannelSummariesState)[+ channelView.channelId];+ const selectedOpenViewItem = findAgentChatChannelOpenViewItem(channelView);- const handleAssignmentSelect = (- assignment: AgentChatChannelAssignmentFilter,- ) => {- resetRecordSelection();- setAgentChatChannelView({ ...channelView, assignment });- };-- const handleViewSelect = ({- channelStatus,+ const handleSelect = ({assignment,- }: Pick<AgentChatChannelView, 'channelStatus' | 'assignment'>) => {- resetRecordSelection();- setAgentChatChannelView({ ...channelView, channelStatus, assignment });+ filter,+ }: Pick<AgentChatChannelView, 'assignment' | 'filter'>) => {+ openAgentChatChannel({+ channelId: channelView.channelId,+ channelStatus: AgentChatChannelThreadStatus.OPEN,+ assignment,+ filter,+ });};return (- <DropdownRoot dropdownId={`ai-chat-channel-view-${instanceId}`} type="menu">- <Dropdown.Trigger- render={- <IconButton- size="sm"- variant="outline"- color={- channelView.assignment === AgentChatChannelAssignmentFilter.ANY- ? 'neutral'- : 'accent'- }- aria-label={t`Filter channel chats`}- >- <IconFilter />- </IconButton>- }- />- <DropdownContent align="end" aria-label={t`Filter channel chats`}>- <Dropdown.Section label={t`View`}>- {AGENT_CHAT_CHANNEL_NAVIGATION_ITEMS.map((navigationItem) => (- <Dropdown.OptionItem- key={navigationItem.label.id}- startIcon={<navigationItem.Icon />}- selected={navigationItem === selectedNavigationItem}- onSelect={() => handleViewSelect(navigationItem)}- >- {t(navigationItem.label)}- </Dropdown.OptionItem>- ))}- </Dropdown.Section>- <Dropdown.Section label={t`Assignee`}>- {assignmentOptions.map(({ value, label }) => (- <Dropdown.OptionItem- key={value}- selected={value === channelView.assignment}- onSelect={() => handleAssignmentSelect(value)}- >- {label}- </Dropdown.OptionItem>- ))}- </Dropdown.Section>- </DropdownContent>- </DropdownRoot>+ <AiChatInboxFilterDropdown+ isFiltered={+ channelView.assignment !== AgentChatChannelAssignmentFilter.ANY ||+ channelView.filter !== AgentChatChannelThreadFilter.ANY+ }+ options={AGENT_CHAT_CHANNEL_OPEN_VIEW_ITEMS.map((openViewItem) => ({+ key: openViewItem.filterStatus,+ label: t(+ AGENT_CHAT_THREAD_FILTER_STATUS_LABELS[openViewItem.filterStatus],+ ),+ Icon: AGENT_CHAT_THREAD_FILTER_STATUS_ICONS[openViewItem.filterStatus],+ count: channelSummary?.[openViewItem.countKey],+ isSelected: openViewItem === selectedOpenViewItem,+ onSelect: () => handleSelect(openViewItem),+ }))}+ />);};diff --git a/packages/twenty-front/src/modules/ai/components/AiChatInboxFilterDropdown.tsx b/packages/twenty-front/src/modules/ai/components/AiChatInboxFilterDropdown.tsxnew file mode 100644index 00000000000..87b3fcf0b72--- /dev/null+++ b/packages/twenty-front/src/modules/ai/components/AiChatInboxFilterDropdown.tsx@@ -0,0 +1,59 @@+import { useLingui } from '@lingui/react/macro';+import { useId } from 'react';+import { isDefined } from 'twenty-shared/utils';+import { IconButton } from 'twenty-ui/components/input';+import { Dropdown } from 'twenty-ui/components/navigation';+import { IconFilter } from 'twenty-ui/icon';++import { type AiChatInboxFilterOption } from '@/ai/types/AiChatInboxFilterOption';+import { useNumberFormat } from '@/localization/hooks/useNumberFormat';+import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';+import { DropdownRoot } from '@/ui/layout/dropdown/components/DropdownRoot';++type AiChatInboxFilterDropdownProps = {+ options: AiChatInboxFilterOption[];+ isFiltered: boolean;+};++export const AiChatInboxFilterDropdown = ({+ options,+ isFiltered,+}: AiChatInboxFilterDropdownProps) => {+ const { t } = useLingui();+ const instanceId = useId();+ const { formatNumber } = useNumberFormat();++ return (+ <DropdownRoot dropdownId={`ai-chat-inbox-filter-${instanceId}`} type="menu">+ <Dropdown.Trigger+ render={+ <IconButton+ size="sm"+ variant="outline"+ color={isFiltered ? 'accent' : 'neutral'}+ aria-label={t`Filter chats`}+ >+ <IconFilter />+ </IconButton>+ }+ />+ <DropdownContent align="end" aria-label={t`Filter chats`}>+ <Dropdown.Section>+ {options.map(({ key, label, Icon, count, isSelected, onSelect }) => (+ <Dropdown.OptionItem+ key={key}+ startIcon={<Icon />}+ description={+ isDefined(count) && count > 0 ? formatNumber(count) : undefined+ }+ selected={isSelected}+ onSelect={onSelect}+ >+ {label}+ </Dropdown.OptionItem>+ ))}+ </Dropdown.Section>+ </DropdownContent>+ </DropdownRoot>+ );+};diff --git a/packages/twenty-front/src/modules/ai/components/AiChatInboxListHeader.tsx b/packages/twenty-front/src/modules/ai/components/AiChatInboxListHeader.tsxindex aa164d601c7..8f8689d50bf 100644--- a/packages/twenty-front/src/modules/ai/components/AiChatInboxListHeader.tsx+++ b/packages/twenty-front/src/modules/ai/components/AiChatInboxListHeader.tsx@@ -7,6 +7,7 @@ import { useIsMobile } from 'twenty-ui/utilities';import { AiChatInboxChannelViewDropdown } from '@/ai/components/AiChatInboxChannelViewDropdown';import { AiChatInboxLayoutDropdown } from '@/ai/components/AiChatInboxLayoutDropdown';import { AiChatInboxTriageCommandMenuItems } from '@/ai/components/AiChatInboxTriageCommandMenuItems';+import { AiChatInboxPersonalViewDropdown } from '@/ai/components/AiChatInboxPersonalViewDropdown';import { AiChatInboxViewHeading } from '@/ai/components/AiChatInboxViewHeading';import { useSwitchToNewAiChat } from '@/ai/hooks/useSwitchToNewAiChat';import { agentChatShownChannelViewSelector } from '@/ai/states/selectors/agentChatShownChannelViewSelector';@@ -42,8 +43,10 @@ export const AiChatInboxListHeader = ({switchToNewChat();};- const channelViewDropdown = isDefined(agentChatShownChannelView) && (+ const viewDropdown = isDefined(agentChatShownChannelView) ? (<AiChatInboxChannelViewDropdown channelView={agentChatShownChannelView} />+ ) : (+ <AiChatInboxPersonalViewDropdown />);return (@@ -62,13 +65,13 @@ export const AiChatInboxListHeader = ({<PinnedCommandMenuItemButtons /></AiChatInboxTriageCommandMenuItems></CommandMenuContextProvider>- {channelViewDropdown}+ {viewDropdown}<SidePanelToggleButton /></>) : (<>{!isMobile && <AiChatInboxLayoutDropdown />}- {channelViewDropdown}+ {viewDropdown}<Buttonsize="sm"variant="solid"diff --git a/packages/twenty-front/src/modules/ai/components/AiChatInboxPersonalViewDropdown.tsx b/packages/twenty-front/src/modules/ai/components/AiChatInboxPersonalViewDropdown.tsxnew file mode 100644index 00000000000..e881d273f1a--- /dev/null+++ b/packages/twenty-front/src/modules/ai/components/AiChatInboxPersonalViewDropdown.tsx@@ -0,0 +1,65 @@+import { useLingui } from '@lingui/react/macro';+import { AppPath } from 'twenty-shared/types';++import { AiChatInboxFilterDropdown } from '@/ai/components/AiChatInboxFilterDropdown';+import { AGENT_CHAT_OPEN_THREAD_FILTER_STATUSES } from '@/ai/constants/AgentChatOpenThreadFilterStatuses';+import { AGENT_CHAT_THREAD_FILTER_STATUS } from '@/ai/constants/AgentChatThreadFilterStatus';+import { AGENT_CHAT_THREAD_FILTER_STATUS_ICONS } from '@/ai/constants/AgentChatThreadFilterStatusIcons';+import { AGENT_CHAT_THREAD_FILTER_STATUS_LABELS } from '@/ai/constants/AgentChatThreadFilterStatusLabels';+import { useAgentChatOpenThreadsSummary } from '@/ai/hooks/useAgentChatOpenThreadsSummary';+import { agentChatThreadFilterStatusState } from '@/ai/states/agentChatThreadFilterStatusState';+import { type AgentChatThreadFilterStatus } from '@/ai/types/AgentChatThreadFilterStatus';+import { isAgentChatOpenThreadFilterStatus } from '@/ai/utils/isAgentChatOpenThreadFilterStatus';+import { useResetRecordSelection } from '@/object-record/record-selection/hooks/useResetRecordSelection';+import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';+import { useNavigateApp } from '~/hooks/useNavigateApp';++export const AiChatInboxPersonalViewDropdown = () => {+ const { t } = useLingui();+ const navigate = useNavigateApp();+ const [agentChatThreadFilterStatus, setAgentChatThreadFilterStatus] =+ useAtomState(agentChatThreadFilterStatusState);+ const {+ openThreadCount,+ needsInputThreadCount,+ mentionThreadCount,+ assignedToMeThreadCount,+ assignedThreadCount,+ unassignedThreadCount,+ } = useAgentChatOpenThreadsSummary();+ const { resetRecordSelection } = useResetRecordSelection();+ const countByFilterStatus: Partial<+ Record<AgentChatThreadFilterStatus, number>+ > = {+ [AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE]: openThreadCount,+ [AGENT_CHAT_THREAD_FILTER_STATUS.NEEDS_INPUT]: needsInputThreadCount,+ [AGENT_CHAT_THREAD_FILTER_STATUS.MENTIONS]: mentionThreadCount,+ [AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED_TO_ME]: assignedToMeThreadCount,+ [AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED_TO_ANYONE]: assignedThreadCount,+ [AGENT_CHAT_THREAD_FILTER_STATUS.UNASSIGNED]: unassignedThreadCount,+ };++ const handleSelect = (filterStatus: AgentChatThreadFilterStatus) => {+ resetRecordSelection();+ setAgentChatThreadFilterStatus(filterStatus);+ navigate(AppPath.AiChatInbox, { threadId: null });+ };++ return (+ <AiChatInboxFilterDropdown+ isFiltered={+ agentChatThreadFilterStatus !==+ AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE &&+ isAgentChatOpenThreadFilterStatus(agentChatThreadFilterStatus)+ }+ options={AGENT_CHAT_OPEN_THREAD_FILTER_STATUSES.map((filterStatus) => ({+ key: filterStatus,+ label: t(AGENT_CHAT_THREAD_FILTER_STATUS_LABELS[filterStatus]),+ Icon: AGENT_CHAT_THREAD_FILTER_STATUS_ICONS[filterStatus],+ count: countByFilterStatus[filterStatus],+ isSelected: filterStatus === agentChatThreadFilterStatus,+ onSelect: () => handleSelect(filterStatus),+ }))}+ />+ );+};diff --git a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelNavigation.tsx b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelNavigation.tsxindex d8b61ac579b..d9cc64550f6 100644--- a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelNavigation.tsx+++ b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelNavigation.tsx@@ -112,15 +112,12 @@ export const NavigationDrawerAiChatChannelNavigation = ({{areChildrenVisible && (<div id={childrenId}>{AGENT_CHAT_CHANNEL_NAVIGATION_ITEMS.map(- (- { channelStatus, assignment, label, Icon, countKey, unreadKey },- index,- ) => {+ ({ channelStatus, label, Icon, countKey, unreadKey }, index) => {const count = summary?.[countKey];return (<NavigationDrawerItem- key={`${channelStatus}-${assignment}`}+ key={channelStatus}label={t(label)}secondaryLabel={isDefined(count) && count > 0 ? `${count}` : undefined@@ -139,7 +136,6 @@ export const NavigationDrawerAiChatChannelNavigation = ({openAgentChatChannel({channelId: channel.id,channelStatus,- assignment,})}triggerEvent="CLICK"diff --git a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatTriageItem.tsx b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatTriageItem.tsxindex 9d7435beeec..f2821150119 100644--- a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatTriageItem.tsx+++ b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatTriageItem.tsx@@ -3,14 +3,17 @@ import { useLocation } from 'react-router-dom';import { AppPath } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';+import { AGENT_CHAT_THREAD_FILTER_STATUS } from '@/ai/constants/AgentChatThreadFilterStatus';import { AGENT_CHAT_THREAD_FILTER_STATUS_ICONS } from '@/ai/constants/AgentChatThreadFilterStatusIcons';import { AGENT_CHAT_THREAD_FILTER_STATUS_LABELS } from '@/ai/constants/AgentChatThreadFilterStatusLabels';+import { AI_CHAT_INBOX_INSTANCE_ID } from '@/ai/constants/AiChatInboxInstanceId';import { agentChatChannelViewState } from '@/ai/states/agentChatChannelViewState';import { agentChatThreadFilterStatusState } from '@/ai/states/agentChatThreadFilterStatusState';import { agentChatShownChannelViewSelector } from '@/ai/states/selectors/agentChatShownChannelViewSelector';import { type AgentChatThreadFilterStatus } from '@/ai/types/AgentChatThreadFilterStatus';+import { isAgentChatOpenThreadFilterStatus } from '@/ai/utils/isAgentChatOpenThreadFilterStatus';+import { useResetRecordSelection } from '@/object-record/record-selection/hooks/useResetRecordSelection';import { NavigationDrawerItem } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerItem';-import { type NavigationDrawerSubItemState } from '@/ui/navigation/navigation-drawer/types/NavigationDrawerSubItemState';import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';@@ -21,14 +24,12 @@ type NavigationDrawerAiChatTriageItemProps = {filterStatus: AgentChatThreadFilterStatus;count?: number;isUnread?: boolean;- subItemState?: NavigationDrawerSubItemState;};export const NavigationDrawerAiChatTriageItem = ({filterStatus,count,isUnread,- subItemState,}: NavigationDrawerAiChatTriageItemProps) => {const { t } = useLingui();const location = useLocation();@@ -39,8 +40,16 @@ export const NavigationDrawerAiChatTriageItem = ({const isChannelShown = isDefined(useAtomStateValue(agentChatShownChannelViewSelector),);+ const { resetRecordSelection } = useResetRecordSelection(+ AI_CHAT_INBOX_INSTANCE_ID,+ );+ const isCurrentFilter =+ agentChatThreadFilterStatus === filterStatus ||+ (filterStatus === AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE &&+ isAgentChatOpenThreadFilterStatus(agentChatThreadFilterStatus));const handleClick = () => {+ resetRecordSelection();setAgentChatThreadFilterStatus(filterStatus);setAgentChatChannelView(null);navigate(AppPath.AiChatInbox, { threadId: null });@@ -55,10 +64,8 @@ export const NavigationDrawerAiChatTriageItem = ({active={isAiChatInboxPath(location.pathname) &&!isChannelShown &&- agentChatThreadFilterStatus === filterStatus+ isCurrentFilter}- indentationLevel={isDefined(subItemState) ? 2 : undefined}- subItemState={subItemState}onClick={handleClick}triggerEvent="CLICK"/>diff --git a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatTriageSection.tsx b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatTriageSection.tsxindex 32b872d54ee..52a0a20ad23 100644--- a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatTriageSection.tsx+++ b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatTriageSection.tsx@@ -1,93 +1,27 @@import { useLingui } from '@lingui/react/macro';-import { useLocation } from 'react-router-dom';-import { isDefined } from 'twenty-shared/utils';import { NavigationDrawerAiChatTriageItem } from '@/ai/components/NavigationDrawerAiChatTriageItem';import { useAgentChatOpenThreadsSummary } from '@/ai/hooks/useAgentChatOpenThreadsSummary';import { AGENT_CHAT_THREAD_FILTER_STATUS } from '@/ai/constants/AgentChatThreadFilterStatus';-import { agentChatThreadFilterStatusState } from '@/ai/states/agentChatThreadFilterStatusState';-import { agentChatShownChannelViewSelector } from '@/ai/states/selectors/agentChatShownChannelViewSelector';import { CollapsibleNavigationDrawerSection } from '@/ui/navigation/navigation-drawer/components/CollapsibleNavigationDrawerSection';-import { NavigationDrawerItemGroup } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerItemGroup';-import { getNavigationSubItemLeftAdornment } from '@/ui/navigation/navigation-drawer/utils/getNavigationSubItemLeftAdornment';-import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';-import { isAiChatInboxPath } from '~/utils/isAiChatInboxPath';const AI_CHAT_TRIAGE_NAVIGATION_SECTION_ID = 'AiChatTriage';-// Needs input, Mentions and Assigned narrow Open, so they hang under it-const OPEN_SUB_FILTER_STATUSES = [- AGENT_CHAT_THREAD_FILTER_STATUS.NEEDS_INPUT,- AGENT_CHAT_THREAD_FILTER_STATUS.MENTIONS,- AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED,-];-export const NavigationDrawerAiChatTriageSection = () => {const { t } = useLingui();- const location = useLocation();- const agentChatThreadFilterStatus = useAtomStateValue(- agentChatThreadFilterStatusState,- );- const isChannelShown = isDefined(- useAtomStateValue(agentChatShownChannelViewSelector),- );- const {- openThreadCount,- hasUnreadOpenThread,- needsInputThreadCount,- hasUnreadMentionThread,- hasUnreadAssignedThread,- } = useAgentChatOpenThreadsSummary();-- const isTriageShown = isAiChatInboxPath(location.pathname) && !isChannelShown;- const selectedOpenSubItemIndex = isTriageShown- ? OPEN_SUB_FILTER_STATUSES.findIndex(- (filterStatus) => filterStatus === agentChatThreadFilterStatus,- )- : -1;- const isOpenExpanded =- isTriageShown &&- (agentChatThreadFilterStatus === AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE ||- selectedOpenSubItemIndex >= 0);-- const getOpenSubItemState = (index: number) =>- getNavigationSubItemLeftAdornment({- index,- arrayLength: OPEN_SUB_FILTER_STATUSES.length,- selectedIndex: selectedOpenSubItemIndex,- });+ const { openThreadCount, hasUnreadOpenThread } =+ useAgentChatOpenThreadsSummary();return (<CollapsibleNavigationDrawerSectionsectionId={AI_CHAT_TRIAGE_NAVIGATION_SECTION_ID}label={t`Triage`}>- <NavigationDrawerItemGroup>- <NavigationDrawerAiChatTriageItem- filterStatus={AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE}- count={openThreadCount}- isUnread={hasUnreadOpenThread}- />- {isOpenExpanded && (- <>- <NavigationDrawerAiChatTriageItem- filterStatus={AGENT_CHAT_THREAD_FILTER_STATUS.NEEDS_INPUT}- count={needsInputThreadCount}- subItemState={getOpenSubItemState(0)}- />- <NavigationDrawerAiChatTriageItem- filterStatus={AGENT_CHAT_THREAD_FILTER_STATUS.MENTIONS}- isUnread={hasUnreadMentionThread}- subItemState={getOpenSubItemState(1)}- />- <NavigationDrawerAiChatTriageItem- filterStatus={AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED}- isUnread={hasUnreadAssignedThread}- subItemState={getOpenSubItemState(2)}- />- </>- )}- </NavigationDrawerItemGroup>+ <NavigationDrawerAiChatTriageItem+ filterStatus={AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE}+ count={openThreadCount}+ isUnread={hasUnreadOpenThread}+ /><NavigationDrawerAiChatTriageItemfilterStatus={AGENT_CHAT_THREAD_FILTER_STATUS.SNOOZED}/>diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxChannelViewDropdown.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxChannelViewDropdown.stories.tsxindex 4c808c2d79e..d3f71ee1ae3 100644--- a/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxChannelViewDropdown.stories.tsx+++ b/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxChannelViewDropdown.stories.tsx@@ -1,5 +1,6 @@import { styled } from '@linaria/react';import { type Meta, type StoryObj } from '@storybook/react-vite';+import { MemoryRouter, useLocation } from 'react-router-dom';import { expect, userEvent, within } from 'storybook/test';import { assertIsDefinedOrThrow } from 'twenty-shared/utils';import { ComponentDecorator } from 'twenty-ui/testing';@@ -7,6 +8,8 @@ import { themeCssVariables } from 'twenty-ui/theme';import { AiChatInboxChannelViewDropdown } from '@/ai/components/AiChatInboxChannelViewDropdown';import { AiChatInboxViewHeading } from '@/ai/components/AiChatInboxViewHeading';+import { AI_CHAT_INBOX_INSTANCE_ID } from '@/ai/constants/AiChatInboxInstanceId';+import { agentChatChannelSummariesState } from '@/ai/states/agentChatChannelSummariesState';import { agentChatChannelViewState } from '@/ai/states/agentChatChannelViewState';import { agentChatChannelsState } from '@/ai/states/agentChatChannelsState';import { type AgentChatChannelView } from '@/ai/types/AgentChatChannelView';@@ -20,17 +23,25 @@ import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateimport { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';-import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';+import { MemoryRouterAppNavigatorProvider } from '~/testing/components/MemoryRouterAppNavigatorProvider';-const RECORD_SELECTION_INSTANCE_ID = 'channel-view-story';const SELECTED_THREAD_ID = 'selected-chat';+const OPEN_CHAT_PATH = '/inbox/6f1c2b0e-7a4d-4e8b-9c3f-2d5a1b8e7c60';const OPEN_VIEW: AgentChatChannelView = {channelId: 'sales',channelStatus: AgentChatChannelThreadStatus.OPEN,assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,};+const OPEN_OPTION_PATTERN = /^Open\b/;+const NEEDS_INPUT_OPTION_PATTERN = /^Needs input\b/;+const MENTIONS_OPTION_PATTERN = /^Mentions\b/;+const ASSIGNED_TO_ME_OPTION_PATTERN = /^Assigned to me\b/;+const ASSIGNED_OPTION_PATTERN = /^Assigned(?! to me)\b/;+const UNASSIGNED_OPTION_PATTERN = /^Unassigned\b/;const StyledHeader = styled.div`align-items: center;@@ -43,6 +54,7 @@ const StyledHeader = styled.div``;const ChannelViewStory = () => {+ const { pathname } = useLocation();const channelView = useAtomStateValue(agentChatChannelViewState);const selectedRecordIds = useAtomComponentSelectorValue(selectedRecordIdsComponentSelector,@@ -51,7 +63,11 @@ const ChannelViewStory = () => {assertIsDefinedOrThrow(channelView);return (- <StyledHeader>+ <StyledHeader+ role="region"+ aria-label="Inbox header"+ data-pathname={pathname}+ ><AiChatInboxViewHeading selectedThreadCount={selectedRecordIds.length} /><AiChatInboxChannelViewDropdown channelView={channelView} /></StyledHeader>@@ -64,13 +80,19 @@ const meta = {decorators: [(Story) => (<RecordSelectionComponentInstanceContext.Provider- value={{ instanceId: RECORD_SELECTION_INSTANCE_ID }}+ value={{ instanceId: AI_CHAT_INBOX_INSTANCE_ID }}><Story /></RecordSelectionComponentInstanceContext.Provider>),ComponentDecorator,- MemoryRouterDecorator,+ (Story) => (+ <MemoryRouter initialEntries={[OPEN_CHAT_PATH]}>+ <MemoryRouterAppNavigatorProvider>+ <Story />+ </MemoryRouterAppNavigatorProvider>+ </MemoryRouter>+ ),],render: ChannelViewStory,args: { channelView: OPEN_VIEW },@@ -88,17 +110,30 @@ const meta = {roleIds: [],},]);+ jotaiStore.set(agentChatChannelSummariesState.atom, {+ [OPEN_VIEW.channelId]: {+ openCount: 6,+ needsInputCount: 2,+ mentionedCount: 3,+ assignedToMeCount: 1,+ assignedCount: 5,+ unassignedCount: 4,+ hasUnreadOpen: false,+ snoozedCount: 0,+ doneCount: 0,+ },+ });jotaiStore.set(agentChatChannelViewState.atom, args.channelView);jotaiStore.set(recordIndexRecordIdsByGroupComponentFamilyState.atomFamily({- instanceId: RECORD_SELECTION_INSTANCE_ID,+ instanceId: AI_CHAT_INBOX_INSTANCE_ID,familyKey: NO_RECORD_GROUP_FAMILY_KEY,}),[SELECTED_THREAD_ID],);jotaiStore.set(isRecordSelectedComponentFamilyState.atomFamily({- instanceId: RECORD_SELECTION_INSTANCE_ID,+ instanceId: AI_CHAT_INBOX_INSTANCE_ID,familyKey: SELECTED_THREAD_ID,}),true,@@ -117,33 +152,108 @@ export const Open: Story = {play: async ({ canvasElement }) => {const canvas = within(canvasElement);const body = within(canvasElement.ownerDocument.body);- const trigger = canvas.getByRole('button', {- name: 'Filter channel chats',- });+ const trigger = canvas.getByRole('button', { name: 'Filter chats' });await expect(canvas.getByText('Sales')).toBeVisible();await expect(canvas.getByText('Open')).toBeVisible();await expect(canvas.getByText('1 selected')).toBeVisible();await userEvent.click(trigger);++ const openOption = await body.findByRole('menuitemradio', {+ name: OPEN_OPTION_PATTERN,+ });++ await expect(openOption).toHaveAttribute('aria-checked', 'true');+ await expect(within(openOption).getByText('6')).toBeVisible();+ await expect(+ within(+ body.getByRole('menuitemradio', { name: NEEDS_INPUT_OPTION_PATTERN }),+ ).getByText('2'),+ ).toBeVisible();+ await expect(+ within(+ body.getByRole('menuitemradio', { name: MENTIONS_OPTION_PATTERN }),+ ).getByText('3'),+ ).toBeVisible();await expect(- await body.findByRole('menuitemradio', { name: 'All' }),- ).toHaveAttribute('aria-checked', 'true');+ within(+ body.getByRole('menuitemradio', {+ name: ASSIGNED_TO_ME_OPTION_PATTERN,+ }),+ ).getByText('1'),+ ).toBeVisible();+ await expect(+ within(+ body.getByRole('menuitemradio', { name: ASSIGNED_OPTION_PATTERN }),+ ).getByText('5'),+ ).toBeVisible();+ await expect(+ within(+ body.getByRole('menuitemradio', { name: UNASSIGNED_OPTION_PATTERN }),+ ).getByText('4'),+ ).toBeVisible();+ await expect(body.queryByText('View')).not.toBeInTheDocument();+ await expect(+ body.queryByRole('menuitemradio', { name: 'Snoozed' }),+ ).not.toBeInTheDocument();await userEvent.click(- body.getByRole('menuitemradio', { name: 'Unassigned' }),+ body.getByRole('menuitemradio', { name: NEEDS_INPUT_OPTION_PATTERN }),);- await expect(canvas.getByText('Open · Unassigned')).toBeVisible();+ await expect(canvas.getByText('Needs input')).toBeVisible();await expect(canvas.queryByText('1 selected')).not.toBeInTheDocument();+ await expect(+ canvas.getByRole('region', { name: 'Inbox header' }),+ ).toHaveAttribute('data-pathname', '/inbox');+ await expect(jotaiStore.get(agentChatChannelViewState.atom)).toEqual({+ ...OPEN_VIEW,+ filter: AgentChatChannelThreadFilter.NEEDS_INPUT,+ });await userEvent.click(trigger);- await expect(- await body.findByRole('menuitemradio', { name: 'Unassigned' }),- ).toHaveAttribute('aria-checked', 'true');- await userEvent.click(body.getByRole('menuitemradio', { name: 'Mine' }));+ await userEvent.click(+ await body.findByRole('menuitemradio', { name: MENTIONS_OPTION_PATTERN }),+ );+ await expect(canvas.getByText('Mentions')).toBeVisible();++ await userEvent.click(trigger);+ await userEvent.click(+ await body.findByRole('menuitemradio', {+ name: ASSIGNED_TO_ME_OPTION_PATTERN,+ }),+ );+ await expect(canvas.getByText('Assigned to me')).toBeVisible();+ await expect(jotaiStore.get(agentChatChannelViewState.atom)).toEqual({+ ...OPEN_VIEW,+ assignment: AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME,+ });++ await userEvent.click(trigger);+ await userEvent.click(+ await body.findByRole('menuitemradio', {+ name: ASSIGNED_OPTION_PATTERN,+ }),+ );await expect(canvas.getByText('Assigned')).toBeVisible();+ await expect(jotaiStore.get(agentChatChannelViewState.atom)).toEqual({+ ...OPEN_VIEW,+ assignment: AgentChatChannelAssignmentFilter.ASSIGNED,+ });++ await userEvent.click(trigger);+ await userEvent.click(+ await body.findByRole('menuitemradio', {+ name: UNASSIGNED_OPTION_PATTERN,+ }),+ );+ await expect(canvas.getByText('Unassigned')).toBeVisible();+ await expect(jotaiStore.get(agentChatChannelViewState.atom)).toEqual({+ ...OPEN_VIEW,+ assignment: AgentChatChannelAssignmentFilter.UNASSIGNED,+ });await userEvent.click(trigger);await userEvent.click(- await body.findByRole('menuitemradio', { name: 'All' }),+ await body.findByRole('menuitemradio', { name: OPEN_OPTION_PATTERN }),);await expect(canvas.getByText('Open')).toBeVisible();await expect(canvas.getByText('Sales')).toBeVisible();@@ -162,15 +272,18 @@ export const Snoozed: Story = {const body = within(canvasElement.ownerDocument.body);await expect(canvas.getByText('Snoozed')).toBeVisible();+ await userEvent.click(canvas.getByRole('button', { name: 'Filter chats' }));+ await expect(+ await body.findByRole('menuitemradio', { name: OPEN_OPTION_PATTERN }),+ ).toHaveAttribute('aria-checked', 'false');await userEvent.click(- canvas.getByRole('button', { name: 'Filter channel chats' }),- );- await userEvent.click(- await body.findByRole('menuitemradio', { name: 'Unassigned' }),+ body.getByRole('menuitemradio', { name: NEEDS_INPUT_OPTION_PATTERN }),);- await expect(canvas.getByText('Snoozed · Unassigned')).toBeVisible();- await expect(canvas.getByText('Sales')).toBeVisible();- await expect(canvas.queryByText('1 selected')).not.toBeInTheDocument();+ await expect(canvas.getByText('Needs input')).toBeVisible();+ await expect(jotaiStore.get(agentChatChannelViewState.atom)).toEqual({+ ...OPEN_VIEW,+ filter: AgentChatChannelThreadFilter.NEEDS_INPUT,+ });},};@@ -185,50 +298,3 @@ export const ChannelsLoading: Story = {await expect(canvas.queryByText('→')).not.toBeInTheDocument();},};--export const EveryView: Story = {- play: async ({ canvasElement }) => {- const canvas = within(canvasElement);- const body = within(canvasElement.ownerDocument.body);- const trigger = canvas.getByRole('button', {- name: 'Filter channel chats',- });-- await userEvent.click(trigger);- await userEvent.click(- await body.findByRole('menuitemradio', { name: 'Snoozed' }),- );- await expect(canvas.getByText('Snoozed')).toBeVisible();- await expect(canvas.queryByText('1 selected')).not.toBeInTheDocument();-- await userEvent.click(trigger);- await expect(- await body.findByRole('menuitemradio', { name: 'Snoozed' }),- ).toHaveAttribute('aria-checked', 'true');- await userEvent.click(body.getByRole('menuitemradio', { name: 'Mine' }));- await expect(canvas.getByText('Snoozed · Mine')).toBeVisible();-- await userEvent.click(trigger);- await userEvent.click(- await body.findByRole('menuitemradio', { name: 'Done' }),- );- await expect(canvas.getByText('Done')).toBeVisible();-- await userEvent.click(trigger);- await userEvent.click(- await body.findByRole('menuitemradio', { name: 'Assigned' }),- );- await expect(canvas.getByText('Assigned')).toBeVisible();-- await userEvent.click(trigger);- await expect(- await body.findByRole('menuitemradio', { name: 'Assigned' }),- ).toHaveAttribute('aria-checked', 'true');- await expect(- body.getByRole('menuitemradio', { name: 'Mine' }),- ).toHaveAttribute('aria-checked', 'true');- await userEvent.click(body.getByRole('menuitemradio', { name: 'Open' }));- await expect(canvas.getByText('Open')).toBeVisible();- await expect(canvas.getByText('Sales')).toBeVisible();- },-};diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxPersonalViewDropdown.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxPersonalViewDropdown.stories.tsxnew file mode 100644index 00000000000..b48aefad1c5--- /dev/null+++ b/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxPersonalViewDropdown.stories.tsx@@ -0,0 +1,263 @@+import { MockedProvider } from '@apollo/client/testing/react';+import { styled } from '@linaria/react';+import { type Meta, type StoryObj } from '@storybook/react-vite';+import { MemoryRouter, useLocation } from 'react-router-dom';+import { expect, userEvent, within } from 'storybook/test';+import { ComponentDecorator } from 'twenty-ui/testing';+import { themeCssVariables } from 'twenty-ui/theme';++import { AiChatInboxPersonalViewDropdown } from '@/ai/components/AiChatInboxPersonalViewDropdown';+import { AiChatInboxViewHeading } from '@/ai/components/AiChatInboxViewHeading';+import { AI_CHAT_INBOX_INSTANCE_ID } from '@/ai/constants/AiChatInboxInstanceId';+import { AGENT_CHAT_THREAD_FILTER_STATUS } from '@/ai/constants/AgentChatThreadFilterStatus';+import { agentChatChannelViewState } from '@/ai/states/agentChatChannelViewState';+import { agentChatThreadFilterStatusState } from '@/ai/states/agentChatThreadFilterStatusState';+import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState';+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';+import { recordIndexRecordIdsByGroupComponentFamilyState } from '@/object-record/record-index/states/recordIndexRecordIdsByGroupComponentFamilyState';+import { NO_RECORD_GROUP_FAMILY_KEY } from '@/object-record/record-index/states/selectors/recordIndexAllRecordIdsComponentSelector';+import { RecordSelectionComponentInstanceContext } from '@/object-record/record-selection/states/contexts/RecordSelectionComponentInstanceContext';+import { isRecordSelectedComponentFamilyState } from '@/object-record/record-selection/states/isRecordSelectedComponentFamilyState';+import { selectedRecordIdsComponentSelector } from '@/object-record/record-selection/states/selectors/selectedRecordIdsComponentSelector';+import { useAtomComponentSelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentSelectorValue';+import { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';+import {+ FeatureFlagKey,+ GetAgentChatOpenThreadsSummaryDocument,+ PermissionFlagType,+} from '~/generated-metadata/graphql';+import { MemoryRouterAppNavigatorProvider } from '~/testing/components/MemoryRouterAppNavigatorProvider';+import {+ mockCurrentWorkspace,+ mockedUserData,+} from '~/testing/mock-data/users';++const SELECTED_THREAD_ID = 'selected-chat';+const OPEN_CHAT_PATH = '/inbox/6f1c2b0e-7a4d-4e8b-9c3f-2d5a1b8e7c60';+const OPEN_OPTION_PATTERN = /^Open\b/;+const NEEDS_INPUT_OPTION_PATTERN = /^Needs input\b/;+const MENTIONS_OPTION_PATTERN = /^Mentions\b/;+const ASSIGNED_TO_ME_OPTION_PATTERN = /^Assigned to me\b/;+const ASSIGNED_OPTION_PATTERN = /^Assigned(?! to me)\b/;+const UNASSIGNED_OPTION_PATTERN = /^Unassigned\b/;++const StyledHeader = styled.div`+ align-items: center;+ background: ${themeCssVariables.background.secondary};+ display: flex;+ gap: ${themeCssVariables.spacing[2]};+ justify-content: space-between;+ padding: ${themeCssVariables.spacing[3]};+ width: 100%;+`;++const PersonalViewStory = () => {+ const { pathname } = useLocation();+ const selectedRecordIds = useAtomComponentSelectorValue(+ selectedRecordIdsComponentSelector,+ );++ return (+ <StyledHeader+ role="region"+ aria-label="Inbox header"+ data-pathname={pathname}+ >+ <AiChatInboxViewHeading selectedThreadCount={selectedRecordIds.length} />+ <AiChatInboxPersonalViewDropdown />+ </StyledHeader>+ );+};++const meta = {+ title: 'Modules/AI/AiChatInboxPersonalViewDropdown',+ component: AiChatInboxPersonalViewDropdown,+ decorators: [+ (Story) => (+ <MockedProvider+ mocks={[+ {+ request: { query: GetAgentChatOpenThreadsSummaryDocument },+ delay: 0,+ result: {+ data: {+ agentChatOpenThreadsSummary: {+ __typename: 'AgentChatOpenThreadsSummary',+ openThreadCount: 8,+ unreadOpenThreadCount: 1,+ needsInputThreadCount: 4,+ mentionThreadCount: 2,+ assignedToMeThreadCount: 1,+ assignedThreadCount: 3,+ unassignedThreadCount: 5,+ hasUnreadOpenThread: true,+ hasUnreadMentionThread: true,+ hasUnreadAssignedThread: false,+ },+ },+ },+ },+ ]}+ >+ <RecordSelectionComponentInstanceContext.Provider+ value={{ instanceId: AI_CHAT_INBOX_INSTANCE_ID }}+ >+ <Story />+ </RecordSelectionComponentInstanceContext.Provider>+ </MockedProvider>+ ),+ ComponentDecorator,+ (Story) => (+ <MemoryRouter initialEntries={[OPEN_CHAT_PATH]}>+ <MemoryRouterAppNavigatorProvider>+ <Story />+ </MemoryRouterAppNavigatorProvider>+ </MemoryRouter>+ ),+ ],+ render: PersonalViewStory,+ parameters: { container: { width: 560, height: 280 } },+ beforeEach: () => {+ jotaiStore.set(currentWorkspaceState.atom, {+ ...mockCurrentWorkspace,+ featureFlags: [+ { key: FeatureFlagKey.IS_AI_CHAT_INBOX_ENABLED, value: true },+ ],+ });+ jotaiStore.set(currentUserWorkspaceState.atom, {+ ...mockedUserData.currentUserWorkspace,+ permissionFlags: [PermissionFlagType.AI],+ });+ jotaiStore.set(agentChatChannelViewState.atom, null);+ jotaiStore.set(+ agentChatThreadFilterStatusState.atom,+ AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE,+ );+ jotaiStore.set(+ recordIndexRecordIdsByGroupComponentFamilyState.atomFamily({+ instanceId: AI_CHAT_INBOX_INSTANCE_ID,+ familyKey: NO_RECORD_GROUP_FAMILY_KEY,+ }),+ [SELECTED_THREAD_ID],+ );+ jotaiStore.set(+ isRecordSelectedComponentFamilyState.atomFamily({+ instanceId: AI_CHAT_INBOX_INSTANCE_ID,+ familyKey: SELECTED_THREAD_ID,+ }),+ true,+ );+ },+} satisfies Meta<typeof AiChatInboxPersonalViewDropdown>;++export default meta;+type Story = StoryObj<typeof meta>;++export const SwitchViews: Story = {+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const body = within(canvasElement.ownerDocument.body);+ const trigger = canvas.getByRole('button', { name: 'Filter chats' });++ await expect(canvas.getByText('Open')).toBeVisible();+ await expect(canvas.getByText('1 selected')).toBeVisible();+ await userEvent.click(trigger);++ const openOption = await body.findByRole('menuitemradio', {+ name: OPEN_OPTION_PATTERN,+ });++ await expect(openOption).toHaveAttribute('aria-checked', 'true');+ await expect(await within(openOption).findByText('8')).toBeVisible();+ await expect(+ await within(+ body.getByRole('menuitemradio', { name: NEEDS_INPUT_OPTION_PATTERN }),+ ).findByText('4'),+ ).toBeVisible();+ await expect(+ await within(+ body.getByRole('menuitemradio', { name: MENTIONS_OPTION_PATTERN }),+ ).findByText('2'),+ ).toBeVisible();+ await expect(+ await within(+ body.getByRole('menuitemradio', {+ name: ASSIGNED_TO_ME_OPTION_PATTERN,+ }),+ ).findByText('1'),+ ).toBeVisible();+ await expect(+ await within(+ body.getByRole('menuitemradio', { name: ASSIGNED_OPTION_PATTERN }),+ ).findByText('3'),+ ).toBeVisible();+ await expect(+ await within(+ body.getByRole('menuitemradio', { name: UNASSIGNED_OPTION_PATTERN }),+ ).findByText('5'),+ ).toBeVisible();+ await expect(body.queryByText('View')).not.toBeInTheDocument();+ await expect(+ body.queryByRole('menuitemradio', { name: 'Snoozed' }),+ ).not.toBeInTheDocument();++ await userEvent.click(+ body.getByRole('menuitemradio', { name: NEEDS_INPUT_OPTION_PATTERN }),+ );+ await expect(canvas.getByText('Needs input')).toBeVisible();+ await expect(canvas.queryByText('1 selected')).not.toBeInTheDocument();+ await expect(+ canvas.getByRole('region', { name: 'Inbox header' }),+ ).toHaveAttribute('data-pathname', '/inbox');+ await expect(jotaiStore.get(agentChatThreadFilterStatusState.atom)).toBe(+ AGENT_CHAT_THREAD_FILTER_STATUS.NEEDS_INPUT,+ );++ await userEvent.click(trigger);+ await userEvent.click(+ await body.findByRole('menuitemradio', {+ name: ASSIGNED_TO_ME_OPTION_PATTERN,+ }),+ );+ await expect(canvas.getByText('Assigned to me')).toBeVisible();++ await userEvent.click(trigger);+ await userEvent.click(+ await body.findByRole('menuitemradio', {+ name: UNASSIGNED_OPTION_PATTERN,+ }),+ );+ await expect(canvas.getByText('Unassigned')).toBeVisible();++ await userEvent.click(trigger);+ await userEvent.click(+ await body.findByRole('menuitemradio', { name: OPEN_OPTION_PATTERN }),+ );+ await expect(canvas.getByText('Open')).toBeVisible();+ },+};++export const FromSnoozed: Story = {+ beforeEach: () => {+ jotaiStore.set(+ agentChatThreadFilterStatusState.atom,+ AGENT_CHAT_THREAD_FILTER_STATUS.SNOOZED,+ );+ },+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const body = within(canvasElement.ownerDocument.body);++ await expect(canvas.getByText('Snoozed')).toBeVisible();+ await userEvent.click(canvas.getByRole('button', { name: 'Filter chats' }));+ await userEvent.click(+ await body.findByRole('menuitemradio', {+ name: MENTIONS_OPTION_PATTERN,+ }),+ );+ await expect(canvas.getByText('Mentions')).toBeVisible();+ await expect(jotaiStore.get(agentChatThreadFilterStatusState.atom)).toBe(+ AGENT_CHAT_THREAD_FILTER_STATUS.MENTIONS,+ );+ },+};diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/AiChatThreadDetailsStatus.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/AiChatThreadDetailsStatus.stories.tsxindex 98afa0a4dcc..f1934ff393e 100644--- a/packages/twenty-front/src/modules/ai/components/__stories__/AiChatThreadDetailsStatus.stories.tsx+++ b/packages/twenty-front/src/modules/ai/components/__stories__/AiChatThreadDetailsStatus.stories.tsx@@ -24,6 +24,7 @@ import { sidePanelNavigationStackState } from '@/side-panel/states/sidePanelNaviimport { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,AgentChatInboxAction,type AgentChatThreadParticipantFieldsFragment,@@ -241,6 +242,7 @@ const seedStatusScenario = (scenario: StatusScenario) => {channelId: CHANNEL_ID,channelStatus: AgentChatChannelThreadStatus.OPEN,assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,}: null,);diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatChannelNavigation.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatChannelNavigation.stories.tsxindex 57f1a57583d..bb5efebfd4a 100644--- a/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatChannelNavigation.stories.tsx+++ b/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatChannelNavigation.stories.tsx@@ -16,6 +16,7 @@ import { isNavigationDrawerExpandedState } from '@/ui/navigation/states/isNavigaimport { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';@@ -32,10 +33,10 @@ const OPEN_VIEW: AgentChatChannelView = {channelId: 'sales',channelStatus: AgentChatChannelThreadStatus.OPEN,assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,};const OPEN_CHANNEL_LABEL_PATTERN = /^Open\s*·\s*6$/;-const ASSIGNED_CHANNEL_LABEL_PATTERN = /^Assigned\s*·\s*1$/;const INACCESSIBLE_CHANNEL_LABEL_PATTERN = /^Sales\s*·\s*Not open to you$/;const onOptions = fn();@@ -98,9 +99,12 @@ const meta = {},summary: {openCount: 6,+ needsInputCount: 2,+ mentionedCount: 0,+ assignedCount: 0,+ unassignedCount: 0,hasUnreadOpen: false,assignedToMeCount: 1,- hasUnreadAssignedToMe: false,snoozedCount: 0,doneCount: 0,},@@ -119,16 +123,9 @@ export const Open: Story = {await expect(canvas.getByRole('button', { name: OPEN_CHANNEL_LABEL_PATTERN }),).toHaveAttribute('aria-current', 'true');- await userEvent.click(- canvas.getByRole('button', { name: ASSIGNED_CHANNEL_LABEL_PATTERN }),- );- await expect(jotaiStore.get(agentChatChannelViewState.atom)).toEqual({- ...OPEN_VIEW,- assignment: AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME,- });await expect(- canvas.getByRole('button', { name: ASSIGNED_CHANNEL_LABEL_PATTERN }),- ).toHaveAttribute('aria-current', 'true');+ canvas.queryByRole('button', { name: /^Assigned\b/ }),+ ).not.toBeInTheDocument();await userEvent.click(canvas.getByRole('button', { name: 'Snoozed' }));await expect(jotaiStore.get(agentChatChannelViewState.atom)).toEqual({...OPEN_VIEW,@@ -201,28 +198,24 @@ export const KeyboardAndOptions: Story = {},};-export const Assigned: Story = {+export const NeedsInput: Story = {args: {channelView: {...OPEN_VIEW,- assignment: AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME,- },- },-};--export const Unassigned: Story = {- args: {- channelView: {- ...OPEN_VIEW,- assignment: AgentChatChannelAssignmentFilter.UNASSIGNED,+ filter: AgentChatChannelThreadFilter.NEEDS_INPUT,},},play: async ({ canvasElement }) => {const canvas = within(canvasElement);+ const openItem = canvas.getByRole('button', {+ name: OPEN_CHANNEL_LABEL_PATTERN,+ });- await expect(- canvas.getByRole('button', { name: OPEN_CHANNEL_LABEL_PATTERN }),- ).toHaveAttribute('aria-current', 'true');+ await expect(openItem).toHaveAttribute('aria-current', 'true');+ await userEvent.click(openItem);+ await expect(jotaiStore.get(agentChatChannelViewState.atom)).toEqual(+ OPEN_VIEW,+ );},};@@ -293,9 +286,12 @@ export const Empty: Story = {args: {summary: {openCount: 0,+ needsInputCount: 0,+ mentionedCount: 0,+ assignedCount: 0,+ unassignedCount: 0,hasUnreadOpen: false,assignedToMeCount: 0,- hasUnreadAssignedToMe: false,snoozedCount: 0,doneCount: 0,},@@ -307,7 +303,6 @@ export const Unread: Story = {summary: {...meta.args.summary,hasUnreadOpen: true,- hasUnreadAssignedToMe: true,},},};diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatTriageSection.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatTriageSection.stories.tsxnew file mode 100644index 00000000000..db6218d60d8--- /dev/null+++ b/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatTriageSection.stories.tsx@@ -0,0 +1,155 @@+import { MockedProvider } from '@apollo/client/testing/react';+import { styled } from '@linaria/react';+import { type Meta, type StoryObj } from '@storybook/react-vite';+import { expect, userEvent, within } from 'storybook/test';+import { themeCssVariables } from 'twenty-ui/theme';++import { NavigationDrawerAiChatTriageSection } from '@/ai/components/NavigationDrawerAiChatTriageSection';+import { AGENT_CHAT_THREAD_FILTER_STATUS } from '@/ai/constants/AgentChatThreadFilterStatus';+import { AI_CHAT_INBOX_INSTANCE_ID } from '@/ai/constants/AiChatInboxInstanceId';+import { agentChatChannelViewState } from '@/ai/states/agentChatChannelViewState';+import { agentChatThreadFilterStatusState } from '@/ai/states/agentChatThreadFilterStatusState';+import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState';+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';+import { recordIndexRecordIdsByGroupComponentFamilyState } from '@/object-record/record-index/states/recordIndexRecordIdsByGroupComponentFamilyState';+import { NO_RECORD_GROUP_FAMILY_KEY } from '@/object-record/record-index/states/selectors/recordIndexAllRecordIdsComponentSelector';+import { isRecordSelectedComponentFamilyState } from '@/object-record/record-selection/states/isRecordSelectedComponentFamilyState';+import { NAVIGATION_DRAWER_CONSTRAINTS } from '@/ui/navigation/navigation-drawer/constants/NavigationDrawerConstraints';+import { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';+import {+ FeatureFlagKey,+ GetAgentChatOpenThreadsSummaryDocument,+ PermissionFlagType,+} from '~/generated-metadata/graphql';+import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';+import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator';+import {+ mockCurrentWorkspace,+ mockedUserData,+} from '~/testing/mock-data/users';++const SELECTED_THREAD_ID = 'selected-chat';+const OPEN_ITEM_PATTERN = /^Open\b/;++const StyledNavigation = styled.div`+ background: ${themeCssVariables.background.secondary};+ box-sizing: border-box;+ padding: ${themeCssVariables.spacing[2]};+ width: ${NAVIGATION_DRAWER_CONSTRAINTS.default}px;+`;++const isSelectedThreadSelected = () =>+ jotaiStore.get(+ isRecordSelectedComponentFamilyState.atomFamily({+ instanceId: AI_CHAT_INBOX_INSTANCE_ID,+ familyKey: SELECTED_THREAD_ID,+ }),+ );++const meta: Meta = {+ title: 'Modules/AI/NavigationDrawerAiChatTriageSection',+ component: NavigationDrawerAiChatTriageSection,+ decorators: [+ (Story) => (+ <MockedProvider+ mocks={[+ {+ request: { query: GetAgentChatOpenThreadsSummaryDocument },+ delay: 0,+ result: {+ data: {+ agentChatOpenThreadsSummary: {+ __typename: 'AgentChatOpenThreadsSummary',+ openThreadCount: 3,+ unreadOpenThreadCount: 0,+ needsInputThreadCount: 1,+ mentionThreadCount: 0,+ assignedToMeThreadCount: 0,+ assignedThreadCount: 0,+ unassignedThreadCount: 3,+ hasUnreadOpenThread: false,+ hasUnreadMentionThread: false,+ hasUnreadAssignedThread: false,+ },+ },+ },+ },+ ]}+ >+ <StyledNavigation>+ <Story />+ </StyledNavigation>+ </MockedProvider>+ ),+ IconsProviderDecorator,+ ComponentWithRouterDecorator,+ ],+ args: { routePath: '/inbox' },+ beforeEach: () => {+ jotaiStore.set(currentWorkspaceState.atom, {+ ...mockCurrentWorkspace,+ featureFlags: [+ { key: FeatureFlagKey.IS_AI_CHAT_INBOX_ENABLED, value: true },+ ],+ });+ jotaiStore.set(currentUserWorkspaceState.atom, {+ ...mockedUserData.currentUserWorkspace,+ permissionFlags: [PermissionFlagType.AI],+ });+ jotaiStore.set(agentChatChannelViewState.atom, null);+ jotaiStore.set(+ agentChatThreadFilterStatusState.atom,+ AGENT_CHAT_THREAD_FILTER_STATUS.NEEDS_INPUT,+ );+ jotaiStore.set(+ recordIndexRecordIdsByGroupComponentFamilyState.atomFamily({+ instanceId: AI_CHAT_INBOX_INSTANCE_ID,+ familyKey: NO_RECORD_GROUP_FAMILY_KEY,+ }),+ [SELECTED_THREAD_ID],+ );+ jotaiStore.set(+ isRecordSelectedComponentFamilyState.atomFamily({+ instanceId: AI_CHAT_INBOX_INSTANCE_ID,+ familyKey: SELECTED_THREAD_ID,+ }),+ true,+ );+ },+};++export default meta;+type Story = StoryObj<typeof meta>;++export const OpenRestoresEveryOpenChat: Story = {+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);+ const openItem = canvas.getByRole('button', { name: OPEN_ITEM_PATTERN });++ await expect(openItem).toHaveAttribute('aria-current', 'true');+ await expect(isSelectedThreadSelected()).toBe(true);+ await userEvent.click(openItem);+ await expect(jotaiStore.get(agentChatThreadFilterStatusState.atom)).toBe(+ AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE,+ );+ await expect(isSelectedThreadSelected()).toBe(false);+ await expect(+ canvas.getByRole('button', { name: OPEN_ITEM_PATTERN }),+ ).toHaveAttribute('aria-current', 'true');+ },+};++export const SnoozedClearsSelection: Story = {+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement);++ await userEvent.click(canvas.getByRole('button', { name: 'Snoozed' }));+ await expect(jotaiStore.get(agentChatThreadFilterStatusState.atom)).toBe(+ AGENT_CHAT_THREAD_FILTER_STATUS.SNOOZED,+ );+ await expect(isSelectedThreadSelected()).toBe(false);+ await expect(+ canvas.getByRole('button', { name: 'Snoozed' }),+ ).toHaveAttribute('aria-current', 'true');+ },+};diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatInboxNewThreadChannelEffect.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatInboxNewThreadChannelEffect.test.tsxindex 1ff1f13a7c8..b1305598ccf 100644--- a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatInboxNewThreadChannelEffect.test.tsx+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatInboxNewThreadChannelEffect.test.tsx@@ -6,6 +6,7 @@ import { agentChatChannelViewState } from '@/ai/states/agentChatChannelViewStateimport { agentChatNewThreadChannelIdState } from '@/ai/states/agentChatNewThreadChannelIdState';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';@@ -23,6 +24,7 @@ const renderEffect = (shownChannelId: string | null) => {channelId: shownChannelId,channelStatus: AgentChatChannelThreadStatus.OPEN,assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,},);diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatInboxThreadPagination.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatInboxThreadPagination.test.tsxindex ad275c53ec3..b33041fe32d 100644--- a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatInboxThreadPagination.test.tsx+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatInboxThreadPagination.test.tsx@@ -15,6 +15,7 @@ import {} from '@/ui/utilities/state/jotai/jotaiStore';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';import { messages } from '~/locales/generated/en';@@ -140,6 +141,7 @@ describe('AiChatInboxThreadPagination', () => {channelId: 'channel-id',channelStatus: AgentChatChannelThreadStatus.OPEN,assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,};jotaiStore.set(agentChatChannelViewState.atom, channelView);diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItem.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItem.test.tsxindex 249bc0f37bc..ff9999ddd9c 100644--- a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItem.test.tsx+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItem.test.tsx@@ -19,6 +19,7 @@ import {} from '@/ui/utilities/state/jotai/jotaiStore';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';import { messages } from '~/locales/generated/en';@@ -216,6 +217,7 @@ describe('AiChatThreadListItem', () => {channelId: SALES_CHANNEL.id,channelStatus: AgentChatChannelThreadStatus.OPEN,assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,});renderListItem({ thread: buildThread({ channelId: SALES_CHANNEL.id }) });diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItemActions.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItemActions.test.tsxindex c24f6f8d78a..9224b6c9bcb 100644--- a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItemActions.test.tsx+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItemActions.test.tsx@@ -18,6 +18,7 @@ import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,FeatureFlagKey,PermissionFlagType,@@ -149,6 +150,7 @@ const renderThread = async ({channelId: SALES_CHANNEL.id,channelStatus,assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,}: null,);diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/NavigationDrawerAiChatTriageSection.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/NavigationDrawerAiChatTriageSection.test.tsxindex 96a46510112..e11b60ac131 100644--- a/packages/twenty-front/src/modules/ai/components/__tests__/NavigationDrawerAiChatTriageSection.test.tsx+++ b/packages/twenty-front/src/modules/ai/components/__tests__/NavigationDrawerAiChatTriageSection.test.tsx@@ -10,6 +10,7 @@ import { SOURCE_LOCALE } from 'twenty-shared/translations';import { NavigationDrawerAiChatTriageSection } from '@/ai/components/NavigationDrawerAiChatTriageSection';import { AGENT_CHAT_THREAD_FILTER_STATUS } from '@/ai/constants/AgentChatThreadFilterStatus';+import { agentChatChannelViewState } from '@/ai/states/agentChatChannelViewState';import { agentChatThreadFilterStatusState } from '@/ai/states/agentChatThreadFilterStatusState';import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState';import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';@@ -18,6 +19,9 @@ import {resetJotaiStore,} from '@/ui/utilities/state/jotai/jotaiStore';import {+ AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,+ AgentChatChannelThreadStatus,FeatureFlagKey,GetAgentChatOpenThreadsSummaryDocument,type GetAgentChatOpenThreadsSummaryQuery,@@ -46,6 +50,10 @@ const READ_SUMMARY: OpenThreadsSummary = {openThreadCount: 2,unreadOpenThreadCount: 0,needsInputThreadCount: 0,+ mentionThreadCount: 0,+ assignedToMeThreadCount: 0,+ assignedThreadCount: 0,+ unassignedThreadCount: 2,hasUnreadOpenThread: false,hasUnreadMentionThread: false,hasUnreadAssignedThread: false,@@ -114,24 +122,48 @@ describe('NavigationDrawerAiChatTriageSection', () => {).toBeVisible();});- it('marks the status the inbox shows as current', () => {- jotaiStore.set(- agentChatThreadFilterStatusState.atom,- AGENT_CHAT_THREAD_FILTER_STATUS.SNOOZED,- );+ it('keeps Open, Snoozed and Done in navigation', () => {+ renderTriage();- renderTriage({ path: '/inbox' });+ expect(screen.getByRole('button', { name: 'Open' })).toBeVisible();+ expect(screen.getByRole('button', { name: 'Snoozed' })).toBeVisible();+ expect(screen.getByRole('button', { name: 'Done' })).toBeVisible();+ expect(+ screen.queryByRole('button', { name: 'Needs input' }),+ ).not.toBeInTheDocument();+ expect(+ screen.queryByRole('button', { name: 'Assigned' }),+ ).not.toBeInTheDocument();+ expect(+ screen.queryByRole('button', { name: 'Mentions' }),+ ).not.toBeInTheDocument();+ });- expect(screen.getByRole('button', { name: 'Snoozed' })).toHaveAttribute(+ it.each([+ AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE,+ AGENT_CHAT_THREAD_FILTER_STATUS.NEEDS_INPUT,+ AGENT_CHAT_THREAD_FILTER_STATUS.MENTIONS,+ AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED_TO_ME,+ AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED_TO_ANYONE,+ AGENT_CHAT_THREAD_FILTER_STATUS.UNASSIGNED,+ ])('keeps Open current for the %s filter', (filterStatus) => {+ jotaiStore.set(agentChatThreadFilterStatusState.atom, filterStatus);++ renderTriage();++ expect(screen.getByRole('button', { name: 'Open' })).toHaveAttribute('aria-current','true',);+ expect(screen.getByRole('button', { name: 'Snoozed' })).not.toHaveAttribute(+ 'aria-current',+ );expect(screen.getByRole('button', { name: 'Done' })).not.toHaveAttribute('aria-current',);});- it('hides the statuses narrowing Open while another status is shown', () => {+ it('marks Snoozed as current while its conversations are shown', () => {jotaiStore.set(agentChatThreadFilterStatusState.atom,AGENT_CHAT_THREAD_FILTER_STATUS.SNOOZED,@@ -139,78 +171,48 @@ describe('NavigationDrawerAiChatTriageSection', () => {renderTriage();- expect(screen.queryByRole('button', { name: 'Mentions' })).toBeNull();- });-- it('keeps the statuses narrowing Open while one of them is shown', () => {- jotaiStore.set(- agentChatThreadFilterStatusState.atom,- AGENT_CHAT_THREAD_FILTER_STATUS.MENTIONS,- );-- renderTriage();-- expect(screen.getByRole('button', { name: 'Mentions' })).toHaveAttribute(+ expect(screen.getByRole('button', { name: 'Snoozed' })).toHaveAttribute('aria-current','true',);- expect(screen.getByRole('button', { name: 'Assigned' })).toBeVisible();- });-- it('hides the statuses narrowing Open outside the inbox', () => {- renderTriage({ path: '/objects/companies' });-- expect(screen.queryByRole('button', { name: 'Mentions' })).toBeNull();- });-- it('opens the inbox on the chosen status', async () => {- renderTriage();-- await userEvent.click(screen.getByRole('button', { name: 'Snoozed' }));-- expect(jotaiStore.get(agentChatThreadFilterStatusState.atom)).toBe(- AGENT_CHAT_THREAD_FILTER_STATUS.SNOOZED,+ expect(screen.getByRole('button', { name: 'Open' })).not.toHaveAttribute(+ 'aria-current',);- expect(navigate).toHaveBeenCalledWith(AppPath.AiChatInbox, {- threadId: null,- });});- it('counts the open chats waiting on an answer under Needs input', async () => {- renderTriage({ summary: { ...READ_SUMMARY, needsInputThreadCount: 1 } });+ it('marks no status current outside the inbox', () => {+ renderTriage({ path: '/objects/companies' });expect(- await screen.findByRole('button', { name: 'Needs input · 1' }),- ).toBeVisible();+ screen.queryByRole('button', { current: true }),+ ).not.toBeInTheDocument();});- it('flags Mentions when a chat the member was mentioned in is unread', async () => {- renderTriage({- summary: { ...READ_SUMMARY, hasUnreadMentionThread: true },+ it('marks no status current while a channel is shown', () => {+ jotaiStore.set(agentChatChannelViewState.atom, {+ channelId: 'sales',+ channelStatus: AgentChatChannelThreadStatus.OPEN,+ assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,});+ renderTriage();+expect(- await screen.findByRole('button', { name: /^Mentions\s*, unread$/ }),- ).toBeVisible();+ screen.queryByRole('button', { current: true }),+ ).not.toBeInTheDocument();});- it('opens the inbox on the chats the member was mentioned in', async () => {+ it('opens the inbox on the chosen status', async () => {renderTriage();- await userEvent.click(screen.getByRole('button', { name: 'Mentions' }));+ await userEvent.click(screen.getByRole('button', { name: 'Snoozed' }));expect(jotaiStore.get(agentChatThreadFilterStatusState.atom)).toBe(- AGENT_CHAT_THREAD_FILTER_STATUS.MENTIONS,+ AGENT_CHAT_THREAD_FILTER_STATUS.SNOOZED,);- });-- it('flags Assigned when a chat assigned to the member is unread', async () => {- renderTriage({- summary: { ...READ_SUMMARY, hasUnreadAssignedThread: true },+ expect(navigate).toHaveBeenCalledWith(AppPath.AiChatInbox, {+ threadId: null,});-- expect(- await screen.findByRole('button', { name: /^Assigned\s*, unread$/ }),- ).toBeVisible();});});diff --git a/packages/twenty-front/src/modules/ai/constants/AgentChatChannelNavigationItems.ts b/packages/twenty-front/src/modules/ai/constants/AgentChatChannelNavigationItems.tsindex bbdd2d669dd..75d7eaeb9eb 100644--- a/packages/twenty-front/src/modules/ai/constants/AgentChatChannelNavigationItems.ts+++ b/packages/twenty-front/src/modules/ai/constants/AgentChatChannelNavigationItems.ts@@ -1,36 +1,18 @@import { msg } from '@lingui/core/macro';-import {- IconCircleCheck,- IconCircleDashed,- IconUsers,- IconZzz,-} from 'twenty-ui/icon';+import { IconCircleCheck, IconCircleDashed, IconZzz } from 'twenty-ui/icon';-import {- AgentChatChannelAssignmentFilter,- AgentChatChannelThreadStatus,-} from '~/generated-metadata/graphql';+import { AgentChatChannelThreadStatus } from '~/generated-metadata/graphql';export const AGENT_CHAT_CHANNEL_NAVIGATION_ITEMS = [{channelStatus: AgentChatChannelThreadStatus.OPEN,- assignment: AgentChatChannelAssignmentFilter.ANY,label: msg`Open`,Icon: IconCircleDashed,countKey: 'openCount',unreadKey: 'hasUnreadOpen',},- {- channelStatus: AgentChatChannelThreadStatus.OPEN,- assignment: AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME,- label: msg`Assigned`,- Icon: IconUsers,- countKey: 'assignedToMeCount',- unreadKey: 'hasUnreadAssignedToMe',- },{channelStatus: AgentChatChannelThreadStatus.SNOOZED,- assignment: AgentChatChannelAssignmentFilter.ANY,label: msg`Snoozed`,Icon: IconZzz,countKey: 'snoozedCount',@@ -38,7 +20,6 @@ export const AGENT_CHAT_CHANNEL_NAVIGATION_ITEMS = [},{channelStatus: AgentChatChannelThreadStatus.DONE,- assignment: AgentChatChannelAssignmentFilter.ANY,label: msg`Done`,Icon: IconCircleCheck,countKey: 'doneCount',diff --git a/packages/twenty-front/src/modules/ai/constants/AgentChatChannelOpenViewItems.ts b/packages/twenty-front/src/modules/ai/constants/AgentChatChannelOpenViewItems.tsnew file mode 100644index 00000000000..3e737341a5a--- /dev/null+++ b/packages/twenty-front/src/modules/ai/constants/AgentChatChannelOpenViewItems.ts@@ -0,0 +1,44 @@+import { AGENT_CHAT_THREAD_FILTER_STATUS } from '@/ai/constants/AgentChatThreadFilterStatus';+import {+ AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,+} from '~/generated-metadata/graphql';++export const AGENT_CHAT_CHANNEL_OPEN_VIEW_ITEMS = [+ {+ filterStatus: AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE,+ assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,+ countKey: 'openCount',+ },+ {+ filterStatus: AGENT_CHAT_THREAD_FILTER_STATUS.NEEDS_INPUT,+ assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.NEEDS_INPUT,+ countKey: 'needsInputCount',+ },+ {+ filterStatus: AGENT_CHAT_THREAD_FILTER_STATUS.MENTIONS,+ assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.MENTIONED,+ countKey: 'mentionedCount',+ },+ {+ filterStatus: AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED_TO_ME,+ assignment: AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME,+ filter: AgentChatChannelThreadFilter.ANY,+ countKey: 'assignedToMeCount',+ },+ {+ filterStatus: AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED_TO_ANYONE,+ assignment: AgentChatChannelAssignmentFilter.ASSIGNED,+ filter: AgentChatChannelThreadFilter.ANY,+ countKey: 'assignedCount',+ },+ {+ filterStatus: AGENT_CHAT_THREAD_FILTER_STATUS.UNASSIGNED,+ assignment: AgentChatChannelAssignmentFilter.UNASSIGNED,+ filter: AgentChatChannelThreadFilter.ANY,+ countKey: 'unassignedCount',+ },+] as const;diff --git a/packages/twenty-front/src/modules/ai/constants/AgentChatOpenThreadFilterStatuses.ts b/packages/twenty-front/src/modules/ai/constants/AgentChatOpenThreadFilterStatuses.tsnew file mode 100644index 00000000000..a9371e7242b--- /dev/null+++ b/packages/twenty-front/src/modules/ai/constants/AgentChatOpenThreadFilterStatuses.ts@@ -0,0 +1,12 @@+import { AGENT_CHAT_THREAD_FILTER_STATUS } from '@/ai/constants/AgentChatThreadFilterStatus';+import { type AgentChatThreadFilterStatus } from '@/ai/types/AgentChatThreadFilterStatus';++export const AGENT_CHAT_OPEN_THREAD_FILTER_STATUSES: readonly AgentChatThreadFilterStatus[] =+ [+ AGENT_CHAT_THREAD_FILTER_STATUS.ACTIVE,+ AGENT_CHAT_THREAD_FILTER_STATUS.NEEDS_INPUT,+ AGENT_CHAT_THREAD_FILTER_STATUS.MENTIONS,+ AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED_TO_ME,+ AGENT_CHAT_THREAD_FILTER_STATUS.ASSIGNED_TO_ANYONE,+ AGENT_CHAT_THREAD_FILTER_STATUS.UNASSIGNED,+ ];diff --git a/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatus.ts b/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatus.tsindex e5367b203c8..26085852106 100644--- a/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatus.ts+++ b/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatus.ts@@ -2,7 +2,9 @@ export const AGENT_CHAT_THREAD_FILTER_STATUS = {ACTIVE: 'active',NEEDS_INPUT: 'needsInput',MENTIONS: 'mentions',- ASSIGNED: 'assigned',+ ASSIGNED_TO_ME: 'assigned',+ ASSIGNED_TO_ANYONE: 'assignedToAnyone',+ UNASSIGNED: 'unassigned',SNOOZED: 'snoozed',DONE: 'done',} as const;diff --git a/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusIcons.ts b/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusIcons.tsindex 849e9f25771..40d3fb85125 100644--- a/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusIcons.ts+++ b/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusIcons.ts@@ -4,6 +4,8 @@ import {IconCheck,IconCircleDashed,IconHandClick,+ IconUserCircle,+ IconUserOff,IconUsers,IconZzz,} from 'twenty-ui/icon';@@ -17,7 +19,9 @@ export const AGENT_CHAT_THREAD_FILTER_STATUS_ICONS: Record<active: IconCircleDashed,needsInput: IconHandClick,mentions: IconAt,- assigned: IconUsers,+ assigned: IconUserCircle,+ assignedToAnyone: IconUsers,+ unassigned: IconUserOff,snoozed: IconZzz,done: IconCheck,};diff --git a/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusLabels.ts b/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusLabels.tsindex c3265e5643f..35edec7231c 100644--- a/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusLabels.ts+++ b/packages/twenty-front/src/modules/ai/constants/AgentChatThreadFilterStatusLabels.ts@@ -10,7 +10,9 @@ export const AGENT_CHAT_THREAD_FILTER_STATUS_LABELS: Record<active: msg`Open`,needsInput: msg`Needs input`,mentions: msg`Mentions`,- assigned: msg`Assigned`,+ assigned: msg`Assigned to me`,+ assignedToAnyone: msg`Assigned`,+ unassigned: msg`Unassigned`,snoozed: msg`Snoozed`,done: msg`Done`,};diff --git a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannelSummaries.ts b/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannelSummaries.tsindex cecc41625e7..ea58ddc7370 100644--- a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannelSummaries.ts+++ b/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannelSummaries.ts@@ -5,9 +5,12 @@ export const GET_AGENT_CHAT_CHANNEL_SUMMARIES = gql`agentChatChannelSummaries {channelIdopenCount+ needsInputCount+ mentionedCounthasUnreadOpenassignedToMeCount- hasUnreadAssignedToMe+ assignedCount+ unassignedCountsnoozedCountdoneCount}diff --git a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannelThreadIds.ts b/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannelThreadIds.tsindex be653b787b9..64b562d01e3 100644--- a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannelThreadIds.ts+++ b/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannelThreadIds.ts@@ -5,6 +5,7 @@ export const GET_AGENT_CHAT_CHANNEL_THREAD_IDS = gql`$channelId: UUID!$status: AgentChatChannelThreadStatus$assignment: AgentChatChannelAssignmentFilter+ $filter: AgentChatChannelThreadFilter$first: Int$after: String) {@@ -12,6 +13,7 @@ export const GET_AGENT_CHAT_CHANNEL_THREAD_IDS = gql`channelId: $channelIdstatus: $statusassignment: $assignment+ filter: $filterfirst: $firstafter: $after) {diff --git a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatOpenThreadsSummary.ts b/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatOpenThreadsSummary.tsindex 6f87f530a9d..a7c523069d4 100644--- a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatOpenThreadsSummary.ts+++ b/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatOpenThreadsSummary.ts@@ -6,6 +6,10 @@ export const GET_AGENT_CHAT_OPEN_THREADS_SUMMARY = gql`openThreadCountunreadOpenThreadCountneedsInputThreadCount+ mentionThreadCount+ assignedToMeThreadCount+ assignedThreadCount+ unassignedThreadCounthasUnreadOpenThreadhasUnreadMentionThreadhasUnreadAssignedThreaddiff --git a/packages/twenty-front/src/modules/ai/hooks/useAgentChatOpenThreadsSummary.ts b/packages/twenty-front/src/modules/ai/hooks/useAgentChatOpenThreadsSummary.tsindex f7fec05a47d..46217712146 100644--- a/packages/twenty-front/src/modules/ai/hooks/useAgentChatOpenThreadsSummary.ts+++ b/packages/twenty-front/src/modules/ai/hooks/useAgentChatOpenThreadsSummary.ts@@ -12,6 +12,10 @@ const EMPTY_AGENT_CHAT_OPEN_THREADS_SUMMARY = {openThreadCount: 0,unreadOpenThreadCount: 0,needsInputThreadCount: 0,+ mentionThreadCount: 0,+ assignedToMeThreadCount: 0,+ assignedThreadCount: 0,+ unassignedThreadCount: 0,hasUnreadOpenThread: false,hasUnreadMentionThread: false,hasUnreadAssignedThread: false,diff --git a/packages/twenty-front/src/modules/ai/hooks/useLoadAgentChatChannelThreads.ts b/packages/twenty-front/src/modules/ai/hooks/useLoadAgentChatChannelThreads.tsindex 165b14b2a0b..6598c06972a 100644--- a/packages/twenty-front/src/modules/ai/hooks/useLoadAgentChatChannelThreads.ts+++ b/packages/twenty-front/src/modules/ai/hooks/useLoadAgentChatChannelThreads.ts@@ -47,6 +47,7 @@ export const useLoadAgentChatChannelThreads = () => {channelId: channelView.channelId,status: channelView.channelStatus,assignment: channelView.assignment,+ filter: channelView.filter,first: AGENT_CHAT_CHANNEL_THREADS_PAGE_SIZE,after: isFetchMore ? listBeforeRequest?.endCursor : null,},diff --git a/packages/twenty-front/src/modules/ai/hooks/useOpenAgentChatChannel.ts b/packages/twenty-front/src/modules/ai/hooks/useOpenAgentChatChannel.tsindex 0d8feecdd09..3463d5ae232 100644--- a/packages/twenty-front/src/modules/ai/hooks/useOpenAgentChatChannel.ts+++ b/packages/twenty-front/src/modules/ai/hooks/useOpenAgentChatChannel.ts@@ -3,11 +3,14 @@ import { useCallback } from 'react';import { AppPath } from 'twenty-shared/types';import { getAppPath } from 'twenty-shared/utils';+import { AI_CHAT_INBOX_INSTANCE_ID } from '@/ai/constants/AiChatInboxInstanceId';import { agentChatChannelViewState } from '@/ai/states/agentChatChannelViewState';import { type AgentChatChannelView } from '@/ai/types/AgentChatChannelView';+import { useResetRecordSelection } from '@/object-record/record-selection/hooks/useResetRecordSelection';import { useNavigateApp } from '~/hooks/useNavigateApp';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';import { isMatchingPathname } from '~/utils/isMatchingPathname';@@ -15,18 +18,26 @@ import { isMatchingPathname } from '~/utils/isMatchingPathname';export const useOpenAgentChatChannel = () => {const store = useStore();const navigate = useNavigateApp();+ const { resetRecordSelection } = useResetRecordSelection(+ AI_CHAT_INBOX_INSTANCE_ID,+ );const openAgentChatChannel = useCallback(({channelId,channelStatus = AgentChatChannelThreadStatus.OPEN,assignment = AgentChatChannelAssignmentFilter.ANY,+ filter = AgentChatChannelThreadFilter.ANY,}: Pick<AgentChatChannelView, 'channelId'> &- Partial<Pick<AgentChatChannelView, 'channelStatus' | 'assignment'>>) => {+ Partial<+ Pick<AgentChatChannelView, 'channelStatus' | 'assignment' | 'filter'>+ >) => {+ resetRecordSelection();store.set(agentChatChannelViewState.atom, {channelId,channelStatus,assignment,+ filter,});navigate(AppPath.AiChatInbox, { threadId: null }, undefined, {replace: isMatchingPathname(@@ -35,7 +46,7 @@ export const useOpenAgentChatChannel = () => {),});},- [navigate, store],+ [navigate, resetRecordSelection, store],);return { openAgentChatChannel };diff --git a/packages/twenty-front/src/modules/ai/states/agentChatChannelViewState.ts b/packages/twenty-front/src/modules/ai/states/agentChatChannelViewState.tsindex 01d1787b9d7..1af5eae554a 100644--- a/packages/twenty-front/src/modules/ai/states/agentChatChannelViewState.ts+++ b/packages/twenty-front/src/modules/ai/states/agentChatChannelViewState.ts@@ -1,9 +1,12 @@import { isNonEmptyString } from '@sniptt/guards';+import { isDefined } from 'twenty-shared/utils';import { type AgentChatChannelView } from '@/ai/types/AgentChatChannelView';+import { findAgentChatChannelOpenViewItem } from '@/ai/utils/findAgentChatChannelOpenViewItem';import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';@@ -15,10 +18,10 @@ export const agentChatChannelViewState =localStorageOptions: { getOnInit: true },validateInitFn: (channelView) =>isNonEmptyString(channelView.channelId) &&- Object.values(AgentChatChannelThreadStatus).includes(- channelView.channelStatus,- ) &&- Object.values(AgentChatChannelAssignmentFilter).includes(- channelView.assignment,- ),+ (isDefined(findAgentChatChannelOpenViewItem(channelView)) ||+ (Object.values(AgentChatChannelThreadStatus).includes(+ channelView.channelStatus,+ ) &&+ channelView.assignment === AgentChatChannelAssignmentFilter.ANY &&+ channelView.filter === AgentChatChannelThreadFilter.ANY)),});diff --git a/packages/twenty-front/src/modules/ai/states/selectors/__tests__/agentChatChannelVisibleThreadsSelector.test.ts b/packages/twenty-front/src/modules/ai/states/selectors/__tests__/agentChatChannelVisibleThreadsSelector.test.tsindex f91bc290aa5..b181cd5ac17 100644--- a/packages/twenty-front/src/modules/ai/states/selectors/__tests__/agentChatChannelVisibleThreadsSelector.test.ts+++ b/packages/twenty-front/src/modules/ai/states/selectors/__tests__/agentChatChannelVisibleThreadsSelector.test.ts@@ -9,6 +9,7 @@ import { getAgentChatChannelViewKey } from '@/ai/utils/getAgentChatChannelViewKeimport { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';@@ -16,6 +17,7 @@ const CHANNEL_VIEW = {channelId: 'channel',channelStatus: AgentChatChannelThreadStatus.OPEN,assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,};const buildThread = ({diff --git a/packages/twenty-front/src/modules/ai/states/selectors/agentChatChannelVisibleThreadsSelector.ts b/packages/twenty-front/src/modules/ai/states/selectors/agentChatChannelVisibleThreadsSelector.tsindex 82cfb93a9f1..9c18d7ef9c7 100644--- a/packages/twenty-front/src/modules/ai/states/selectors/agentChatChannelVisibleThreadsSelector.ts+++ b/packages/twenty-front/src/modules/ai/states/selectors/agentChatChannelVisibleThreadsSelector.ts@@ -2,6 +2,7 @@ import { isDefined } from 'twenty-shared/utils';import { agentChatShownChannelThreadListSelector } from '@/ai/states/selectors/agentChatShownChannelThreadListSelector';import { agentChatShownChannelViewSelector } from '@/ai/states/selectors/agentChatShownChannelViewSelector';+import { agentChatThreadInboxStatusFamilySelector } from '@/ai/states/selectors/agentChatThreadInboxStatusFamilySelector';import { agentChatThreadRecordFamilySelector } from '@/ai/states/selectors/agentChatThreadRecordFamilySelector';import { agentChatThreadsSelector } from '@/ai/states/selectors/agentChatThreadsSelector';import { type AgentChatThreadRecord } from '@/ai/types/AgentChatThreadRecord';@@ -43,6 +44,8 @@ export const agentChatChannelVisibleThreadsSelector = createAtomSelector<thread,channelView,currentWorkspaceMemberId,+ isMentioned: get(agentChatThreadInboxStatusFamilySelector, thread.id)+ .isMentioned,}),);diff --git a/packages/twenty-front/src/modules/ai/types/AgentChatChannelSummary.ts b/packages/twenty-front/src/modules/ai/types/AgentChatChannelSummary.tsindex 108dc71a84e..ca466907540 100644--- a/packages/twenty-front/src/modules/ai/types/AgentChatChannelSummary.ts+++ b/packages/twenty-front/src/modules/ai/types/AgentChatChannelSummary.ts@@ -3,9 +3,12 @@ import { type AgentChatChannelSummary as AgentChatChannelSummaryRow } from '~/geexport type AgentChatChannelSummary = Pick<AgentChatChannelSummaryRow,| 'openCount'+ | 'needsInputCount'+ | 'mentionedCount'| 'hasUnreadOpen'| 'assignedToMeCount'- | 'hasUnreadAssignedToMe'+ | 'assignedCount'+ | 'unassignedCount'| 'snoozedCount'| 'doneCount'>;diff --git a/packages/twenty-front/src/modules/ai/types/AgentChatChannelView.ts b/packages/twenty-front/src/modules/ai/types/AgentChatChannelView.tsindex a158b615b81..d3266bea451 100644--- a/packages/twenty-front/src/modules/ai/types/AgentChatChannelView.ts+++ b/packages/twenty-front/src/modules/ai/types/AgentChatChannelView.ts@@ -1,5 +1,6 @@import {type AgentChatChannelAssignmentFilter,+ type AgentChatChannelThreadFilter,type AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';@@ -7,4 +8,5 @@ export type AgentChatChannelView = {channelId: string;channelStatus: AgentChatChannelThreadStatus;assignment: AgentChatChannelAssignmentFilter;+ filter: AgentChatChannelThreadFilter;};diff --git a/packages/twenty-front/src/modules/ai/types/AiChatInboxFilterOption.ts b/packages/twenty-front/src/modules/ai/types/AiChatInboxFilterOption.tsnew file mode 100644index 00000000000..0e50455dab8--- /dev/null+++ b/packages/twenty-front/src/modules/ai/types/AiChatInboxFilterOption.ts@@ -0,0 +1,10 @@+import { type IconComponent } from 'twenty-ui/icon';++export type AiChatInboxFilterOption = {+ key: string;+ label: string;+ Icon: IconComponent;+ count?: number;+ isSelected: boolean;+ onSelect: () => void;+};diff --git a/packages/twenty-front/src/modules/ai/utils/__tests__/isAgentChatThreadInChannelView.test.ts b/packages/twenty-front/src/modules/ai/utils/__tests__/isAgentChatThreadInChannelView.test.tsindex 6f28b0cadf4..0c5bc2ddeff 100644--- a/packages/twenty-front/src/modules/ai/utils/__tests__/isAgentChatThreadInChannelView.test.ts+++ b/packages/twenty-front/src/modules/ai/utils/__tests__/isAgentChatThreadInChannelView.test.ts@@ -3,6 +3,7 @@ import { type AgentChatThreadRecord } from '@/ai/types/AgentChatThreadRecord';import { isAgentChatThreadInChannelView } from '@/ai/utils/isAgentChatThreadInChannelView';import {AgentChatChannelAssignmentFilter,+ AgentChatChannelThreadFilter,AgentChatChannelThreadStatus,} from '~/generated-metadata/graphql';@@ -10,6 +11,7 @@ const OPEN_CHANNEL_VIEW: AgentChatChannelView = {channelId: 'channel-1',channelStatus: AgentChatChannelThreadStatus.OPEN,assignment: AgentChatChannelAssignmentFilter.ANY,+ filter: AgentChatChannelThreadFilter.ANY,};const buildThread = (@@ -36,6 +38,7 @@ describe('isAgentChatThreadInChannelView', () => {thread: buildThread(),channelView: OPEN_CHANNEL_VIEW,currentWorkspaceMemberId: 'member-1',+ isMentioned: false,}),).toBe(true);});@@ -46,6 +49,7 @@ describe('isAgentChatThreadInChannelView', () => {thread: buildThread({ channelId: 'channel-2' }),channelView: OPEN_CHANNEL_VIEW,currentWorkspaceMemberId: 'member-1',+ isMentioned: false,}),).toBe(false);expect(@@ -53,6 +57,7 @@ describe('isAgentChatThreadInChannelView', () => {thread: buildThread({ deletedAt: '2026-01-02T00:00:00.000Z' }),channelView: OPEN_CHANNEL_VIEW,currentWorkspaceMemberId: 'member-1',+ isMentioned: false,}),).toBe(false);});@@ -67,6 +72,7 @@ describe('isAgentChatThreadInChannelView', () => {thread: doneThread,channelView: OPEN_CHANNEL_VIEW,currentWorkspaceMemberId: 'member-1',+ isMentioned: false,}),).toBe(false);expect(@@ -77,6 +83,7 @@ describe('isAgentChatThreadInChannelView', () => {channelStatus: AgentChatChannelThreadStatus.DONE,},currentWorkspaceMemberId: 'member-1',+ isMentioned: false,}),).toBe(true);});@@ -92,6 +99,7 @@ describe('isAgentChatThreadInChannelView', () => {assignment: AgentChatChannelAssignmentFilter.UNASSIGNED,},currentWorkspaceMemberId: 'member-1',+ isMentioned: false,}),).toBe(false);expect(@@ -102,6 +110,7 @@ describe('isAgentChatThreadInChannelView', () => {assignment: AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME,},currentWorkspaceMemberId: 'member-1',+ isMentioned: false,}),).toBe(true);expect(@@ -112,6 +121,79 @@ describe('isAgentChatThreadInChannelView', () => {assignment: AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME,},currentWorkspaceMemberId: 'member-2',+ isMentioned: false,+ }),+ ).toBe(false);+ });++ it('narrows to chats assigned to anyone', () => {+ const channelView = {+ ...OPEN_CHANNEL_VIEW,+ assignment: AgentChatChannelAssignmentFilter.ASSIGNED,+ };++ expect(+ isAgentChatThreadInChannelView({+ thread: buildThread({ assigneeId: 'member-2' }),+ channelView,+ currentWorkspaceMemberId: 'member-1',+ isMentioned: false,+ }),+ ).toBe(true);+ expect(+ isAgentChatThreadInChannelView({+ thread: buildThread(),+ channelView,+ currentWorkspaceMemberId: 'member-1',+ isMentioned: false,+ }),+ ).toBe(false);+ });++ it('narrows to chats waiting on an answer', () => {+ const channelView = {+ ...OPEN_CHANNEL_VIEW,+ filter: AgentChatChannelThreadFilter.NEEDS_INPUT,+ };++ expect(+ isAgentChatThreadInChannelView({+ thread: buildThread({ pendingQuestionMessageId: 'message-1' }),+ channelView,+ currentWorkspaceMemberId: 'member-1',+ isMentioned: false,+ }),+ ).toBe(true);+ expect(+ isAgentChatThreadInChannelView({+ thread: buildThread(),+ channelView,+ currentWorkspaceMemberId: 'member-1',+ isMentioned: false,+ }),+ ).toBe(false);+ });++ it('narrows to chats the member was mentioned in', () => {+ const channelView = {+ ...OPEN_CHANNEL_VIEW,+ filter: AgentChatChannelThreadFilter.MENTIONED,+ };++ expect(+ isAgentChatThreadInChannelView({+ thread: buildThread(),+ channelView,+ currentWorkspaceMemberId: 'member-1',+ isMentioned: true,+ }),+ ).toBe(true);+ expect(+ isAgentChatThreadInChannelView({+ thread: buildThread(),+ channelView,+ currentWorkspaceMemberId: 'member-1',+ isMentioned: false,}),).toBe(false);});diff --git a/packages/twenty-front/src/modules/ai/utils/__tests__/isAgentChatThreadInFilterStatus.test.ts b/packages/twenty-front/src/modules/ai/utils/__tests__/isAgentChatThreadInFilterStatus.test.tsindex cf6b5b0bccd..31fea3d0a7f 100644--- a/packages/twenty-front/src/modules/ai/utils/__tests__/isAgentChatThreadInFilterStatus.test.ts+++ b/packages/twenty-front/src/modules/ai/utils/__tests__/isAgentChatThreadInFilterStatus.test.ts@@ -44,7 +44,7 @@ describe('isAgentChatThreadInFilterStatus', () => {).toBe(true);});- it('lists open chats assigned to the member under Assigned', () => {+ it('lists open chats assigned to the member under Assigned to me', () => {expect(isAgentChatThreadInFilterStatus({thread: { pendingQuestionMessageId: null },@@ -61,6 +61,46 @@ describe('isAgentChatThreadInFilterStatus', () => {).toBe(false);});+ it('splits open chats by whether anyone is assigned', () => {+ const assignedThread = {+ pendingQuestionMessageId: null,+ assigneeId: 'member-2',+ };+ const unassignedThread = {+ pendingQuestionMessageId: null,+ assigneeId: null,+ };++ expect(+ isAgentChatThreadInFilterStatus({+ thread: assignedThread,+ inboxStatus: OPEN_STATUS,+ filterStatus: 'assignedToAnyone',+ }),+ ).toBe(true);+ expect(+ isAgentChatThreadInFilterStatus({+ thread: unassignedThread,+ inboxStatus: OPEN_STATUS,+ filterStatus: 'assignedToAnyone',+ }),+ ).toBe(false);+ expect(+ isAgentChatThreadInFilterStatus({+ thread: unassignedThread,+ inboxStatus: OPEN_STATUS,+ filterStatus: 'unassigned',+ }),+ ).toBe(true);+ expect(+ isAgentChatThreadInFilterStatus({+ thread: assignedThread,+ inboxStatus: OPEN_STATUS,+ filterStatus: 'unassigned',+ }),+ ).toBe(false);+ });+it('leaves done chats out of the views narrowing Open', () => {const doneStatus = {scope: 'ARCHIVED',@@ -89,6 +129,20 @@ describe('isAgentChatThreadInFilterStatus', () => {filterStatus: 'assigned',}),).toBe(false);+ expect(+ isAgentChatThreadInFilterStatus({+ thread: { pendingQuestionMessageId: null, assigneeId: 'member-2' },+ inboxStatus: doneStatus,+ filterStatus: 'assignedToAnyone',+ }),+ ).toBe(false);+ expect(+ isAgentChatThreadInFilterStatus({+ thread: { pendingQuestionMessageId: null, assigneeId: null },+ inboxStatus: doneStatus,+ filterStatus: 'unassigned',+ }),+ ).toBe(false);expect(isAgentChatThreadInFilterStatus({thread: { pendingQuestionMessageId: 'message' },diff --git a/packages/twenty-front/src/modules/ai/utils/findAgentChatChannelOpenViewItem.ts b/packages/twenty-front/src/modules/ai/utils/findAgentChatChannelOpenViewItem.tsnew file mode 100644index 00000000000..2b0d441254f--- /dev/null+++ b/packages/twenty-front/src/modules/ai/utils/findAgentChatChannelOpenViewItem.ts@@ -0,0 +1,17 @@+import { AGENT_CHAT_CHANNEL_OPEN_VIEW_ITEMS } from '@/ai/constants/AgentChatChannelOpenViewItems';+import { type AgentChatChannelView } from '@/ai/types/AgentChatChannelView';+import { AgentChatChannelThreadStatus } from '~/generated-metadata/graphql';++export const findAgentChatChannelOpenViewItem = (+ channelView: Pick<+ AgentChatChannelView,+ 'channelStatus' | 'assignment' | 'filter'+ >,+) =>+ channelView.channelStatus === AgentChatChannelThreadStatus.OPEN+ ? AGENT_CHAT_CHANNEL_OPEN_VIEW_ITEMS.find(+ ({ assignment, filter }) =>+ assignment === channelView.assignment &&+ filter === channelView.filter,+ )+ : undefined;diff --git a/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelNavigationItemOrThrow.ts b/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelNavigationItemOrThrow.tsindex dcf1fed2037..86d8a27a430 100644--- a/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelNavigationItemOrThrow.ts+++ b/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelNavigationItemOrThrow.ts@@ -1,29 +1,16 @@-import { assertIsDefinedOrThrow, isDefined } from 'twenty-shared/utils';+import { assertIsDefinedOrThrow } from 'twenty-shared/utils';import { AGENT_CHAT_CHANNEL_NAVIGATION_ITEMS } from '@/ai/constants/AgentChatChannelNavigationItems';import { type AgentChatChannelView } from '@/ai/types/AgentChatChannelView';-import { AgentChatChannelAssignmentFilter } from '~/generated-metadata/graphql';export const getAgentChatChannelNavigationItemOrThrow = (- channelView: Pick<AgentChatChannelView, 'channelStatus' | 'assignment'>,+ channelView: Pick<AgentChatChannelView, 'channelStatus'>,) => {- const matchingView = AGENT_CHAT_CHANNEL_NAVIGATION_ITEMS.find(- ({ channelStatus, assignment }) =>- channelStatus === channelView.channelStatus &&- assignment === channelView.assignment,+ const navigationItem = AGENT_CHAT_CHANNEL_NAVIGATION_ITEMS.find(+ ({ channelStatus }) => channelStatus === channelView.channelStatus,);- if (isDefined(matchingView)) {- return matchingView;- }+ assertIsDefinedOrThrow(navigationItem);- const matchingStatus = AGENT_CHAT_CHANNEL_NAVIGATION_ITEMS.find(- ({ channelStatus, assignment }) =>- channelStatus === channelView.channelStatus &&- assignment === AgentChatChannelAssignmentFilter.ANY,- );-- assertIsDefinedOrThrow(matchingStatus);-- return matchingStatus;+ return navigationItem;};diff --git a/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelViewKey.ts b/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelViewKey.tsindex ba14b708221..09079ba6db4 100644--- a/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelViewKey.ts+++ b/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelViewKey.ts@@ -4,4 +4,6 @@ export const getAgentChatChannelViewKey = ({channelId,channelStatus,assignment,-}: AgentChatChannelView) => `${channelId}:${channelStatus}:${assignment}`;+ filter,+}: AgentChatChannelView) =>+ `${channelId}:${channelStatus}:${assignment}:${filter}`;diff --git a/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelViewLabel.ts b/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelViewLabel.tsindex 5e25876186e..29e77c95eac 100644--- a/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelViewLabel.ts+++ b/packages/twenty-front/src/modules/ai/utils/getAgentChatChannelViewLabel.ts@@ -1,23 +1,22 @@import { t } from '@lingui/core/macro';+import { isDefined } from 'twenty-shared/utils';+import { AGENT_CHAT_THREAD_FILTER_STATUS_LABELS } from '@/ai/constants/AgentChatThreadFilterStatusLabels';import { type AgentChatChannelView } from '@/ai/types/AgentChatChannelView';+import { findAgentChatChannelOpenViewItem } from '@/ai/utils/findAgentChatChannelOpenViewItem';import { getAgentChatChannelNavigationItemOrThrow } from '@/ai/utils/getAgentChatChannelNavigationItemOrThrow';-import { AgentChatChannelAssignmentFilter } from '~/generated-metadata/graphql';export const getAgentChatChannelViewLabel = (- channelView: Pick<AgentChatChannelView, 'channelStatus' | 'assignment'>,+ channelView: Pick<+ AgentChatChannelView,+ 'channelStatus' | 'assignment' | 'filter'+ >,) => {- const navigationItem = getAgentChatChannelNavigationItemOrThrow(channelView);- const channelStatusLabel = t(navigationItem.label);+ const openViewItem = findAgentChatChannelOpenViewItem(channelView);- if (channelView.assignment === navigationItem.assignment) {- return channelStatusLabel;+ if (isDefined(openViewItem)) {+ return t(AGENT_CHAT_THREAD_FILTER_STATUS_LABELS[openViewItem.filterStatus]);}- const assignmentLabel =- channelView.assignment === AgentChatChannelAssignmentFilter.UNASSIGNED- ? t`Unassigned`- : t`Mine`;-- return t`${channelStatusLabel} · ${assignmentLabel}`;+ return t(getAgentChatChannelNavigationItemOrThrow(channelView).label);};diff --git a/packages/twenty-front/src/modules/ai/utils/isAgentChatOpenThreadFilterStatus.ts b/packages/twenty-front/src/modules/ai/utils/isAgentChatOpenThreadFilterStatus.tsnew file mode 100644index 00000000000..375f53ea8a5--- /dev/null+++ b/packages/twenty-front/src/modules/ai/utils/isAgentChatOpenThreadFilterStatus.ts@@ -0,0 +1,6 @@+import { AGENT_CHAT_OPEN_THREAD_FILTER_STATUSES } from '@/ai/constants/AgentChatOpenThreadFilterStatuses';+import { type AgentChatThreadFilterStatus } from '@/ai/types/AgentChatThreadFilterStatus';++export const isAgentChatOpenThreadFilterStatus = (+ filterStatus: AgentChatThreadFilterStatus,+) => AGENT_CHAT_OPEN_THREAD_FILTER_STATUSES.includes(filterStatus);diff --git a/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInChannelThreadFilter.ts b/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInChannelThreadFilter.tsnew file mode 100644index 00000000000..ce8355249ad--- /dev/null+++ b/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInChannelThreadFilter.ts@@ -0,0 +1,23 @@+import { isDefined } from 'twenty-shared/utils';++import { type AgentChatThreadRecord } from '@/ai/types/AgentChatThreadRecord';+import { AgentChatChannelThreadFilter } from '~/generated-metadata/graphql';++export const isAgentChatThreadInChannelThreadFilter = ({+ thread,+ filter,+ isMentioned,+}: {+ thread: Pick<AgentChatThreadRecord, 'pendingQuestionMessageId'>;+ filter: AgentChatChannelThreadFilter;+ isMentioned: boolean;+}): boolean => {+ switch (filter) {+ case AgentChatChannelThreadFilter.ANY:+ return true;+ case AgentChatChannelThreadFilter.NEEDS_INPUT:+ return isDefined(thread.pendingQuestionMessageId);+ case AgentChatChannelThreadFilter.MENTIONED:+ return isMentioned;+ }+};diff --git a/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInChannelView.ts b/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInChannelView.tsindex acc0db7edf2..0e36f2f8d5e 100644--- a/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInChannelView.ts+++ b/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInChannelView.ts@@ -3,12 +3,14 @@ import { isDefined } from 'twenty-shared/utils';import { type AgentChatChannelView } from '@/ai/types/AgentChatChannelView';import { type AgentChatThreadRecord } from '@/ai/types/AgentChatThreadRecord';import { getAgentChatThreadChannelStatus } from '@/ai/utils/getAgentChatThreadChannelStatus';+import { isAgentChatThreadInChannelThreadFilter } from '@/ai/utils/isAgentChatThreadInChannelThreadFilter';import { AgentChatChannelAssignmentFilter } from '~/generated-metadata/graphql';export const isAgentChatThreadInChannelView = ({thread,channelView,currentWorkspaceMemberId,+ isMentioned,}: {thread: Pick<AgentChatThreadRecord,@@ -18,14 +20,21 @@ export const isAgentChatThreadInChannelView = ({| 'lastActivityAt'| 'channelArchivedAt'| 'channelSnoozedUntil'+ | 'pendingQuestionMessageId'>;channelView: AgentChatChannelView;currentWorkspaceMemberId: string | undefined;+ isMentioned: boolean;}): boolean => {if (isDefined(thread.deletedAt) ||thread.channelId !== channelView.channelId ||- getAgentChatThreadChannelStatus(thread) !== channelView.channelStatus+ getAgentChatThreadChannelStatus(thread) !== channelView.channelStatus ||+ !isAgentChatThreadInChannelThreadFilter({+ thread,+ filter: channelView.filter,+ isMentioned,+ })) {return false;}@@ -33,6 +42,8 @@ export const isAgentChatThreadInChannelView = ({switch (channelView.assignment) {case AgentChatChannelAssignmentFilter.ANY:return true;+ case AgentChatChannelAssignmentFilter.ASSIGNED:+ return isDefined(thread.assigneeId);case AgentChatChannelAssignmentFilter.UNASSIGNED:return !isDefined(thread.assigneeId);case AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME:diff --git a/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInFilterStatus.ts b/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInFilterStatus.tsindex 7e12efef74d..549605162be 100644--- a/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInFilterStatus.ts+++ b/packages/twenty-front/src/modules/ai/utils/isAgentChatThreadInFilterStatus.ts@@ -4,14 +4,15 @@ import { type AgentChatThreadFilterStatus } from '@/ai/types/AgentChatThreadFiltimport { type AgentChatThreadInboxStatus } from '@/ai/types/AgentChatThreadInboxStatus';import { type AgentChatThreadRecord } from '@/ai/types/AgentChatThreadRecord';-// Needs input, Mentions and Assigned narrow the open chats, so a chat leaves them once-// it is done or snoozedexport const isAgentChatThreadInFilterStatus = ({thread,inboxStatus,filterStatus,}: {- thread: Pick<AgentChatThreadRecord, 'pendingQuestionMessageId'>;+ thread: Pick<+ AgentChatThreadRecord,+ 'pendingQuestionMessageId' | 'assigneeId'+ >;inboxStatus: Pick<AgentChatThreadInboxStatus,'scope' | 'isMentioned' | 'isAssignedToMe'@@ -30,6 +31,10 @@ export const isAgentChatThreadInFilterStatus = ({return inboxStatus.scope === 'INBOX' && inboxStatus.isMentioned;case 'assigned':return inboxStatus.scope === 'INBOX' && inboxStatus.isAssignedToMe;+ case 'assignedToAnyone':+ return inboxStatus.scope === 'INBOX' && isDefined(thread.assigneeId);+ case 'unassigned':+ return inboxStatus.scope === 'INBOX' && !isDefined(thread.assigneeId);case 'snoozed':return inboxStatus.scope === 'SNOOZED';case 'done':diff --git a/packages/twenty-front/src/pages/ai-chat/__tests__/AiChatInboxPage.test.tsx b/packages/twenty-front/src/pages/ai-chat/__tests__/AiChatInboxPage.test.tsxindex 5b736a0ed2a..285fd2673c1 100644--- a/packages/twenty-front/src/pages/ai-chat/__tests__/AiChatInboxPage.test.tsx+++ b/packages/twenty-front/src/pages/ai-chat/__tests__/AiChatInboxPage.test.tsx@@ -131,6 +131,21 @@ jest.mock('@/ai/hooks/useRefreshAgentChatThreads', () => ({useRefreshAgentChatThreads: () => ({ fetchMoreAgentChatThreads: jest.fn() }),}));+jest.mock('@/ai/hooks/useAgentChatOpenThreadsSummary', () => ({+ useAgentChatOpenThreadsSummary: () => ({+ openThreadCount: 0,+ unreadOpenThreadCount: 0,+ needsInputThreadCount: 0,+ mentionThreadCount: 0,+ assignedToMeThreadCount: 0,+ assignedThreadCount: 0,+ unassignedThreadCount: 0,+ hasUnreadOpenThread: false,+ hasUnreadMentionThread: false,+ hasUnreadAssignedThread: false,+ }),+}));+jest.mock('@/ai/hooks/useSwitchToNewAiChat', () => ({useSwitchToNewAiChat: () => ({ switchToNewChat: jest.fn() }),}));diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/constants/agent-chat-has-unresolved-mention-predicate.constant.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/constants/agent-chat-has-unresolved-mention-predicate.constant.tsnew file mode 100644index 00000000000..7ae6ec738c7--- /dev/null+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/constants/agent-chat-has-unresolved-mention-predicate.constant.ts@@ -0,0 +1 @@+export const AGENT_CHAT_HAS_UNRESOLVED_MENTION_PREDICATE = `(participant."lastMentionedAt" IS NOT NULL AND (participant."mentionsResolvedAt" IS NULL OR participant."lastMentionedAt" > participant."mentionsResolvedAt"))`;diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel-summary.dto.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel-summary.dto.tsindex cfb2100d722..b110e7f9fc0 100644--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel-summary.dto.ts+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel-summary.dto.ts@@ -10,9 +10,21 @@ export class AgentChatChannelSummaryDTO {@Field(() => Int)openCount: number;+ @Field(() => Int)+ needsInputCount: number;++ @Field(() => Int)+ mentionedCount: number;+@Field(() => Int)assignedToMeCount: number;+ @Field(() => Int)+ assignedCount: number;++ @Field(() => Int)+ unassignedCount: number;+@Field(() => Int)snoozedCount: number;diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-open-threads-summary.dto.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-open-threads-summary.dto.tsindex 771b6dfaa8a..2ea2d9333ff 100644--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-open-threads-summary.dto.ts+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-open-threads-summary.dto.ts@@ -11,6 +11,18 @@ export class AgentChatOpenThreadsSummaryDTO {@Field(() => Int)needsInputThreadCount: number;+ @Field(() => Int)+ mentionThreadCount: number;++ @Field(() => Int)+ assignedToMeThreadCount: number;++ @Field(() => Int)+ assignedThreadCount: number;++ @Field(() => Int)+ unassignedThreadCount: number;+@Field(() => Boolean)hasUnreadOpenThread: boolean;diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-assignment-filter.enum.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-assignment-filter.enum.tsindex 996e8781a4e..e804da174d7 100644--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-assignment-filter.enum.ts+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-assignment-filter.enum.ts@@ -2,6 +2,7 @@ import { registerEnumType } from '@nestjs/graphql';export enum AgentChatChannelAssignmentFilter {ANY = 'ANY',+ ASSIGNED = 'ASSIGNED',UNASSIGNED = 'UNASSIGNED',ASSIGNED_TO_ME = 'ASSIGNED_TO_ME',}diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-thread-filter.enum.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-thread-filter.enum.tsnew file mode 100644index 00000000000..a74a554af9c--- /dev/null+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-thread-filter.enum.ts@@ -0,0 +1,11 @@+import { registerEnumType } from '@nestjs/graphql';++export enum AgentChatChannelThreadFilter {+ ANY = 'ANY',+ NEEDS_INPUT = 'NEEDS_INPUT',+ MENTIONED = 'MENTIONED',+}++registerEnumType(AgentChatChannelThreadFilter, {+ name: 'AgentChatChannelThreadFilter',+});diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-channel.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-channel.resolver.tsindex 0b27c619bf3..5d6071dbc89 100644--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-channel.resolver.ts+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-channel.resolver.ts@@ -26,6 +26,7 @@ import { AgentChatChannelRoleDTO } from 'src/engine/metadata-modules/ai/ai-chat/import { AgentChatChannelSummaryDTO } from 'src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel-summary.dto';import { AgentChatChannelThreadIdsDTO } from 'src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel-thread-ids.dto';import { AgentChatChannelAssignmentFilter } from 'src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-assignment-filter.enum';+import { AgentChatChannelThreadFilter } from 'src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-thread-filter.enum';import { AgentChatChannelThreadStatus } from 'src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-thread-status.enum';import { AgentChatInboxAction } from 'src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-inbox-action.enum';import { CreateAgentChatChannelInput } from 'src/engine/metadata-modules/ai/ai-chat/dtos/create-agent-chat-channel.input';@@ -91,6 +92,11 @@ export class AgentChatChannelResolver {nullable: true,})assignment: AgentChatChannelAssignmentFilter | null,+ @Args('filter', {+ type: () => AgentChatChannelThreadFilter,+ nullable: true,+ })+ filter: AgentChatChannelThreadFilter | null,@Args('first', { type: () => Int, nullable: true }) first: number | null,@Args('after', { type: () => String, nullable: true }) after: string | null,@AuthWorkspaceMemberId() workspaceMemberId: string,@@ -100,6 +106,7 @@ export class AgentChatChannelResolver {channelId,status,assignment,+ filter,first,after,workspaceMemberId,diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-channel-threads.service.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-channel-threads.service.tsindex e668d45a6c6..060755d5b5f 100644--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-channel-threads.service.ts+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-channel-threads.service.ts@@ -2,6 +2,7 @@ import { Injectable } from '@nestjs/common';import { isDefined } from 'twenty-shared/utils';+import { AGENT_CHAT_HAS_UNRESOLVED_MENTION_PREDICATE } from 'src/engine/metadata-modules/ai/ai-chat/constants/agent-chat-has-unresolved-mention-predicate.constant';import { AGENT_CHAT_CHANNEL_THREAD_PREDICATES } from 'src/engine/metadata-modules/ai/ai-chat/constants/agent-chat-channel-thread-predicates.constant';import {AGENT_CHAT_CHANNEL_THREADS_DEFAULT_PAGE_SIZE,@@ -10,6 +11,7 @@ import {import { type AgentChatChannelSummaryDTO } from 'src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel-summary.dto';import { type AgentChatChannelThreadIdsDTO } from 'src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel-thread-ids.dto';import { AgentChatChannelAssignmentFilter } from 'src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-assignment-filter.enum';+import { AgentChatChannelThreadFilter } from 'src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-thread-filter.enum';import { AgentChatChannelThreadStatus } from 'src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-channel-thread-status.enum';import { AgentChatChannelAccessService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-channel-access.service';import { AgentChatSharingService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-sharing.service';@@ -28,6 +30,12 @@ const { IS_UNREAD, STATUS } = AGENT_CHAT_CHANNEL_THREAD_PREDICATES;const IS_ASSIGNED_TO_ME ='thread."assigneeId" = :channelThreadsWorkspaceMemberId::uuid';+const IS_ASSIGNED = 'thread."assigneeId" IS NOT NULL';++const IS_UNASSIGNED = 'thread."assigneeId" IS NULL';++const NEEDS_INPUT = 'thread."pendingQuestionMessageId" IS NOT NULL';+type MemberArgs = Omit<AgentChatThreadAccessArgs, 'threadId'>;type ReadableThreadsQuery = (readableThreads: {@@ -37,10 +45,17 @@ type ReadableThreadsQuery = (readableThreads: {const ASSIGNMENT_FILTERS: Record<AgentChatChannelAssignmentFilter, string> = {[AgentChatChannelAssignmentFilter.ANY]: '',- [AgentChatChannelAssignmentFilter.UNASSIGNED]: `AND thread."assigneeId" IS NULL`,+ [AgentChatChannelAssignmentFilter.ASSIGNED]: `AND ${IS_ASSIGNED}`,+ [AgentChatChannelAssignmentFilter.UNASSIGNED]: `AND ${IS_UNASSIGNED}`,[AgentChatChannelAssignmentFilter.ASSIGNED_TO_ME]: `AND ${IS_ASSIGNED_TO_ME}`,};+const THREAD_FILTERS: Record<AgentChatChannelThreadFilter, string> = {+ [AgentChatChannelThreadFilter.ANY]: '',+ [AgentChatChannelThreadFilter.NEEDS_INPUT]: `AND ${NEEDS_INPUT}`,+ [AgentChatChannelThreadFilter.MENTIONED]: `AND ${AGENT_CHAT_HAS_UNRESOLVED_MENTION_PREDICATE}`,+};+// Computed here because the client cannot load every chat of every channel to sort them@Injectable()export class AgentChatChannelThreadsService {@@ -54,6 +69,7 @@ export class AgentChatChannelThreadsService {channelId,status,assignment,+ filter,first,after,...args@@ -61,6 +77,7 @@ export class AgentChatChannelThreadsService {channelId: string;status: AgentChatChannelThreadStatus | null;assignment: AgentChatChannelAssignmentFilter | null;+ filter: AgentChatChannelThreadFilter | null;first: number | null;after: string | null;}): Promise<AgentChatChannelThreadIdsDTO> {@@ -93,6 +110,7 @@ export class AgentChatChannelThreadsService {AND thread."channelId" = :channelThreadsChannelId::uuidAND ${STATUS[status ?? AgentChatChannelThreadStatus.OPEN]}${ASSIGNMENT_FILTERS[assignment ?? AgentChatChannelAssignmentFilter.ANY]}+ ${THREAD_FILTERS[filter ?? AgentChatChannelThreadFilter.ANY]}${buildAgentChatChannelThreadCursorFilter(cursor)}ORDER BY thread."lastActivityAt" DESC NULLS LAST, thread.id DESCLIMIT :channelThreadsLimit`,@@ -133,7 +151,11 @@ export class AgentChatChannelThreadsService {const counts = await this.queryReadableThreads<{channelId: string;openCount: number;+ needsInputCount: number;+ mentionedCount: number;assignedToMeCount: number;+ assignedCount: number;+ unassignedCount: number;snoozedCount: number;doneCount: number;hasUnreadOpen: boolean;@@ -143,7 +165,11 @@ export class AgentChatChannelThreadsService {buildQuery: ({ fromClause, parameters }) => ({sql: `SELECT thread."channelId",count(*) FILTER (WHERE ${STATUS.OPEN})::int AS "openCount",+ count(*) FILTER (WHERE ${STATUS.OPEN} AND ${NEEDS_INPUT})::int AS "needsInputCount",+ count(*) FILTER (WHERE ${STATUS.OPEN} AND ${AGENT_CHAT_HAS_UNRESOLVED_MENTION_PREDICATE})::int AS "mentionedCount",count(*) FILTER (WHERE ${STATUS.OPEN} AND ${IS_ASSIGNED_TO_ME})::int AS "assignedToMeCount",+ count(*) FILTER (WHERE ${STATUS.OPEN} AND ${IS_ASSIGNED})::int AS "assignedCount",+ count(*) FILTER (WHERE ${STATUS.OPEN} AND ${IS_UNASSIGNED})::int AS "unassignedCount",count(*) FILTER (WHERE ${STATUS.SNOOZED})::int AS "snoozedCount",count(*) FILTER (WHERE ${STATUS.DONE})::int AS "doneCount",COALESCE(bool_or(${STATUS.OPEN} AND ${IS_UNREAD}), false) AS "hasUnreadOpen",@@ -165,7 +191,11 @@ export class AgentChatChannelThreadsService {return channels.map(({ id }) => ({channelId: id,openCount: countByChannelId.get(id)?.openCount ?? 0,+ needsInputCount: countByChannelId.get(id)?.needsInputCount ?? 0,+ mentionedCount: countByChannelId.get(id)?.mentionedCount ?? 0,assignedToMeCount: countByChannelId.get(id)?.assignedToMeCount ?? 0,+ assignedCount: countByChannelId.get(id)?.assignedCount ?? 0,+ unassignedCount: countByChannelId.get(id)?.unassignedCount ?? 0,snoozedCount: countByChannelId.get(id)?.snoozedCount ?? 0,doneCount: countByChannelId.get(id)?.doneCount ?? 0,hasUnreadOpen: countByChannelId.get(id)?.hasUnreadOpen ?? false,diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread-participant.service.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread-participant.service.tsindex 7d5d084b7b5..a891b6c2247 100644--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread-participant.service.ts+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread-participant.service.ts@@ -9,6 +9,7 @@ import { MessageQueueService } from 'src/engine/core-modules/message-queue/serviimport { AGENT_CHAT_THREAD_ACTIVITY_COLUMNS } from 'src/engine/metadata-modules/ai/ai-chat/constants/agent-chat-thread-activity-columns.constant';import { AGENT_CHAT_THREAD_SNOOZE_END_JOB_RETRY_OPTIONS } from 'src/engine/metadata-modules/ai/ai-chat/constants/agent-chat-thread-snooze-end-job-retry-options.constant';import { AGENT_CHAT_THREAD_SNOOZE_END_RECHECK_MINIMUM_DELAY_MS } from 'src/engine/metadata-modules/ai/ai-chat/constants/agent-chat-thread-snooze-end-recheck-minimum-delay-ms.constant';+import { AGENT_CHAT_HAS_UNRESOLVED_MENTION_PREDICATE } from 'src/engine/metadata-modules/ai/ai-chat/constants/agent-chat-has-unresolved-mention-predicate.constant';import { type AgentChatOpenThreadsSummaryDTO } from 'src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-open-threads-summary.dto';import { type AgentChatThreadParticipantDTO } from 'src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-thread-participant.dto';import { AgentChatInboxAction } from 'src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-inbox-action.enum';@@ -47,8 +48,6 @@ const NEXT_PARTICIPANT_UPDATED_AT = `GREATEST(clock_timestamp(), participant."upconst ALL_MENTIONS_RESOLVED_AT = `GREATEST(participant."mentionsResolvedAt", participant."lastMentionedAt")`;-const HAS_UNRESOLVED_MENTION = `(participant."lastMentionedAt" IS NOT NULL AND (participant."mentionsResolvedAt" IS NULL OR participant."lastMentionedAt" > participant."mentionsResolvedAt"))`;-const IS_IN_INBOX = `(participant."isSubscribed" AND (participant."archivedAt" IS NULL OR thread."lastActivityAt" > participant."archivedAt"))`;// Saved as ended when already due, since its queued end may have run before this write@@ -129,6 +128,10 @@ const EMPTY_OPEN_THREADS_SUMMARY: AgentChatOpenThreadsSummaryDTO = {openThreadCount: 0,unreadOpenThreadCount: 0,needsInputThreadCount: 0,+ mentionThreadCount: 0,+ assignedToMeThreadCount: 0,+ assignedThreadCount: 0,+ unassignedThreadCount: 0,hasUnreadOpenThread: false,hasUnreadMentionThread: false,hasUnreadAssignedThread: false,@@ -528,7 +531,7 @@ export class AgentChatThreadParticipantService {>>(`WITH open_thread AS (- SELECT thread."assigneeId", thread."pendingQuestionMessageId", ${HAS_UNRESOLVED_MENTION} AS "hasUnresolvedMention",+ SELECT thread."assigneeId", thread."pendingQuestionMessageId", ${AGENT_CHAT_HAS_UNRESOLVED_MENTION_PREDICATE} AS "hasUnresolvedMention",thread."lastActivityAt" IS NOT NULLAND (participant."lastReadAt" IS NULL OR thread."lastActivityAt" > participant."lastReadAt") AS "isUnread"FROM (${readableThreads.getQuery()}) thread@@ -540,6 +543,10 @@ export class AgentChatThreadParticipantService {COUNT(*)::int AS "openThreadCount",COUNT(*) FILTER (WHERE "isUnread")::int AS "unreadOpenThreadCount",COUNT("pendingQuestionMessageId")::int AS "needsInputThreadCount",+ COUNT(*) FILTER (WHERE "hasUnresolvedMention")::int AS "mentionThreadCount",+ COUNT(*) FILTER (WHERE "assigneeId" = :summaryWorkspaceMemberId)::int AS "assignedToMeThreadCount",+ COUNT("assigneeId")::int AS "assignedThreadCount",+ COUNT(*) FILTER (WHERE "assigneeId" IS NULL)::int AS "unassignedThreadCount",COALESCE(BOOL_OR("isUnread"), false) AS "hasUnreadOpenThread",COALESCE(BOOL_OR("isUnread" AND "hasUnresolvedMention"), false) AS "hasUnreadMentionThread",COALESCE(BOOL_OR("isUnread" AND "assigneeId" = :summaryWorkspaceMemberId), false) AS "hasUnreadAssignedThread"diff --git a/packages/twenty-server/test/integration/graphql/suites/chat-channel.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/chat-channel.integration-spec.tsindex a918c4440d4..64d8934a6cb 100644--- a/packages/twenty-server/test/integration/graphql/suites/chat-channel.integration-spec.ts+++ b/packages/twenty-server/test/integration/graphql/suites/chat-channel.integration-spec.ts@@ -51,7 +51,8 @@ type ChannelAccess = { roleIds?: string[] };type ChannelThreadsFilter = {status?: 'OPEN' | 'SNOOZED' | 'DONE';- assignment?: 'ANY' | 'UNASSIGNED' | 'ASSIGNED_TO_ME';+ assignment?: 'ANY' | 'ASSIGNED' | 'UNASSIGNED' | 'ASSIGNED_TO_ME';+ filter?: 'ANY' | 'NEEDS_INPUT' | 'MENTIONED';};type ChannelThreadMutationName =@@ -102,7 +103,7 @@ const ASSIGN = parse();const CHANNEL_THREAD_IDS = parse(- `query Ids($channelId: UUID!, $status: AgentChatChannelThreadStatus, $assignment: AgentChatChannelAssignmentFilter, $first: Int, $after: String) { agentChatChannelThreadIds(channelId: $channelId, status: $status, assignment: $assignment, first: $first, after: $after) { threadIds hasNextPage endCursor } }`,+ `query Ids($channelId: UUID!, $status: AgentChatChannelThreadStatus, $assignment: AgentChatChannelAssignmentFilter, $filter: AgentChatChannelThreadFilter, $first: Int, $after: String) { agentChatChannelThreadIds(channelId: $channelId, status: $status, assignment: $assignment, filter: $filter, first: $first, after: $after) { threadIds hasNextPage endCursor } }`,);const CHANNEL_SUMMARIES = parse(@@ -1907,6 +1908,94 @@ describe('Chat channels through the authenticated API', () => {});});+ it('narrows open channel chats to those waiting on an answer or mentioning the member', async () => {+ const channelId = await createChannel();+ const needsInputThreadId = await createThreadInChannel(channelId);+ const mentionedThreadId = await createThreadInChannel(channelId);++ await global.testDataSource.query(+ `UPDATE ${SCHEMA}."agentChatThread" SET "pendingQuestionMessageId" = $1 WHERE id = $2`,+ [randomUUID(), needsInputThreadId],+ );+ await global.testDataSource.query(+ `UPDATE ${SCHEMA}."agentChatThreadParticipant" SET "lastMentionedAt" = now()+ WHERE "threadId" = $1 AND "workspaceMemberId" = $2`,+ [mentionedThreadId, JANE],+ );++ expect(+ (await findChannelThreadIds(channelId, { filter: 'NEEDS_INPUT' }))+ .threadIds,+ ).toEqual([needsInputThreadId]);+ expect(+ (await findChannelThreadIds(channelId, { filter: 'MENTIONED' }))+ .threadIds,+ ).toEqual([mentionedThreadId]);+ expect(+ (+ await findChannelThreadIds(+ channelId,+ { filter: 'MENTIONED' },+ APPLE_JONY_MEMBER_ACCESS_TOKEN,+ )+ ).threadIds,+ ).toEqual([]);++ const response = await makeMetadataApiRequest({+ query: parse(+ `query Summaries { agentChatChannelSummaries { channelId needsInputCount mentionedCount assignedCount unassignedCount } }`,+ ),+ });++ assertGraphQLSuccessfulResponse(response);+ expect(+ response.body.data.agentChatChannelSummaries.find(+ (summary: { channelId: string }) => summary.channelId === channelId,+ ),+ ).toEqual({+ channelId,+ needsInputCount: 1,+ mentionedCount: 1,+ assignedCount: 0,+ unassignedCount: 2,+ });+ });++ it('narrows open channel chats to assigned ones and keeps resolved mentions out', async () => {+ const channelId = await createChannel();+ const assignedThreadId = await createThreadInChannel(channelId);+ const unassignedThreadId = await createThreadInChannel(channelId);++ assertGraphQLSuccessfulResponse(+ await makeMetadataApiRequest({+ query: ASSIGN,+ variables: {+ threadId: assignedThreadId,+ assigneeWorkspaceMemberId: JONY,+ },+ }),+ );+ await global.testDataSource.query(+ `UPDATE ${SCHEMA}."agentChatThreadParticipant"+ SET "lastMentionedAt" = now(), "mentionsResolvedAt" = now()+ WHERE "threadId" = $1 AND "workspaceMemberId" = $2`,+ [unassignedThreadId, JANE],+ );++ expect(+ (await findChannelThreadIds(channelId, { assignment: 'ASSIGNED' }))+ .threadIds,+ ).toEqual([assignedThreadId]);+ expect(+ (await findChannelThreadIds(channelId, { assignment: 'UNASSIGNED' }))+ .threadIds,+ ).toEqual([unassignedThreadId]);+ expect(+ (await findChannelThreadIds(channelId, { filter: 'MENTIONED' }))+ .threadIds,+ ).toEqual([]);+ });+it('keeps the channel chats of a removed member in their channel', async () => {const channelId = await createChannel();const channelThreadId = await createThreadInChannel(