The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Replace the seven AI chat inbox mutations with one batched mutation (#27576)
Félix Malfait7ebc0a5e1329
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphqlindex beef42b4675..e0ad4efc339 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql@@ -35,6 +35,16 @@ type AgentChatEvent {threadId: String!}+enum AgentChatInboxAction {+ ARCHIVE+ MOVE_TO_INBOX+ READ+ SNOOZE+ SUBSCRIBE+ UNREAD+ UNSUBSCRIBE+}+type AgentChatOpenThreadsSummary {hasUnreadAssignedThread: Boolean!hasUnreadMentionThread: Boolean!@@ -2942,7 +2952,6 @@ type Mutation {activateWorkspace(data: ActivateWorkspaceInput!): Workspace!addAgentChatThreadParticipants(threadId: UUID!, workspaceMemberIds: [UUID!]!): [UUID!]!addQueryToEventStream(input: AddQuerySubscriptionInput!): Boolean!- archiveAgentChatThread(threadId: UUID!): AgentChatThreadParticipant!assignAgentChatThread(assigneeWorkspaceMemberId: UUID, threadId: UUID!): Boolean!assignRoleToAgent(agentId: UUID!, roleId: UUID!): Boolean!assignRoleToApiKey(apiKeyId: UUID!, roleId: UUID!): Boolean!@@ -3087,9 +3096,6 @@ type Mutation {initiateOTPProvisioningForAuthenticatedUser: InitiateTwoFactorAuthenticationProvisioning!installApplication(universalIdentifier: String!, version: String): Application!installMarketplaceApp(universalIdentifier: String!, version: String): Boolean! @deprecated(reason: "Use installApplication instead")- markAgentChatThreadAsRead(threadId: UUID!): AgentChatThreadParticipant!- markAgentChatThreadAsUnread(threadId: UUID!): AgentChatThreadParticipant!- moveAgentChatThreadToInbox(threadId: UUID!): AgentChatThreadParticipant!refreshEnterpriseValidityToken: Boolean!releaseEnterpriseServerBinding: EnterpriseLicenseInfoDTO!removeQueryFromEventStream(input: RemoveQueryFromEventStreamInput!): Boolean!@@ -3132,12 +3138,10 @@ type Mutation {signUpInNewWorkspace(input: SignUpInNewWorkspaceInput): SignUp!signUpInWorkspace(captchaToken: String, email: String!, locale: String, password: String!, verifyEmailRedirectPath: String, workspaceId: UUID, workspaceInviteHash: String, workspacePersonalInviteToken: String): SignUp!skipSyncEmailOnboardingStep(isAutoSkipped: Boolean! = false): OnboardingStepSuccess!- snoozeAgentChatThread(snoozedUntil: DateTime!, threadId: UUID!): AgentChatThreadParticipant!startChannelSync(connectedAccountId: UUID!): ChannelSyncSuccess!startWorkspaceSetupChat(companyContext: JSON, personContext: JSON): StartWorkspaceSetupChatResult!stopAgentChatStream(threadId: UUID!): Boolean!stopImpersonation: StopImpersonation!- subscribeToAgentChatThread(threadId: UUID!): AgentChatThreadParticipant!switchBillingPlan: BillingUpdate!switchSubscriptionInterval: BillingUpdate!syncApplication(dryRun: Boolean, inferDeletionFromMissingEntities: Boolean, manifest: JSON!): WorkspaceMigration!@@ -3147,7 +3151,7 @@ type Mutation {triggerInstallApplicationJob(input: TriggerInstallApplicationJobInput!): TriggerInstallApplicationJobResult!triggerUninstallApplicationJob(input: TriggerUninstallApplicationJobInput!): TriggerUninstallApplicationJobResult!uninstallApplication(universalIdentifier: String!): Boolean!- unsubscribeFromAgentChatThread(threadId: UUID!): AgentChatThreadParticipant!+ updateAgentChatThreadInboxState(action: AgentChatInboxAction!, snoozedUntil: DateTime, threadIds: [UUID!]!): [AgentChatThreadParticipant!]!updateApiKey(input: UpdateApiKeyInput!): ApiKeyupdateAppMessageChannel(input: UpdateAppMessageChannelInput!): MessageChannel!updateApplication(id: UUID!, input: UpdateApplicationInput!): Application!diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.tsindex 18d813c9ad4..6d5bbd0ecfa 100644--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts@@ -40,6 +40,8 @@ export interface AgentChatEvent {__typename: 'AgentChatEvent'}+export type AgentChatInboxAction = 'ARCHIVE' | 'MOVE_TO_INBOX' | 'READ' | 'SNOOZE' | 'SUBSCRIBE' | 'UNREAD' | 'UNSUBSCRIBE'+export interface AgentChatOpenThreadsSummary {hasUnreadAssignedThread: Scalars['Boolean']hasUnreadMentionThread: Scalars['Boolean']@@ -1992,7 +1994,6 @@ export interface Mutation {activateWorkspace: WorkspaceaddAgentChatThreadParticipants: Scalars['UUID'][]addQueryToEventStream: Scalars['Boolean']- archiveAgentChatThread: AgentChatThreadParticipantassignAgentChatThread: Scalars['Boolean']assignRoleToAgent: Scalars['Boolean']assignRoleToApiKey: Scalars['Boolean']@@ -2139,9 +2140,6 @@ export interface Mutation {installApplication: Application/** @deprecated Use installApplication instead */installMarketplaceApp: Scalars['Boolean']- markAgentChatThreadAsRead: AgentChatThreadParticipant- markAgentChatThreadAsUnread: AgentChatThreadParticipant- moveAgentChatThreadToInbox: AgentChatThreadParticipantrefreshEnterpriseValidityToken: Scalars['Boolean']releaseEnterpriseServerBinding: EnterpriseLicenseInfoDTOremoveQueryFromEventStream: Scalars['Boolean']@@ -2184,12 +2182,10 @@ export interface Mutation {signUpInNewWorkspace: SignUpsignUpInWorkspace: SignUpskipSyncEmailOnboardingStep: OnboardingStepSuccess- snoozeAgentChatThread: AgentChatThreadParticipantstartChannelSync: ChannelSyncSuccessstartWorkspaceSetupChat: StartWorkspaceSetupChatResultstopAgentChatStream: Scalars['Boolean']stopImpersonation: StopImpersonation- subscribeToAgentChatThread: AgentChatThreadParticipantswitchBillingPlan: BillingUpdateswitchSubscriptionInterval: BillingUpdatesyncApplication: WorkspaceMigration@@ -2199,7 +2195,7 @@ export interface Mutation {triggerInstallApplicationJob: TriggerInstallApplicationJobResulttriggerUninstallApplicationJob: TriggerUninstallApplicationJobResultuninstallApplication: Scalars['Boolean']- unsubscribeFromAgentChatThread: AgentChatThreadParticipant+ updateAgentChatThreadInboxState: AgentChatThreadParticipant[]updateApiKey?: ApiKeyupdateAppMessageChannel: MessageChannelupdateApplication: Application@@ -6161,7 +6157,6 @@ export interface MutationGenqlSelection{activateWorkspace?: (WorkspaceGenqlSelection & { __args: {data: ActivateWorkspaceInput} })addAgentChatThreadParticipants?: { __args: {threadId: Scalars['UUID'], workspaceMemberIds: Scalars['UUID'][]} }addQueryToEventStream?: { __args: {input: AddQuerySubscriptionInput} }- archiveAgentChatThread?: (AgentChatThreadParticipantGenqlSelection & { __args: {threadId: Scalars['UUID']} })assignAgentChatThread?: { __args: {assigneeWorkspaceMemberId?: (Scalars['UUID'] | null), threadId: Scalars['UUID']} }assignRoleToAgent?: { __args: {agentId: Scalars['UUID'], roleId: Scalars['UUID']} }assignRoleToApiKey?: { __args: {apiKeyId: Scalars['UUID'], roleId: Scalars['UUID']} }@@ -6308,9 +6303,6 @@ export interface MutationGenqlSelection{installApplication?: (ApplicationGenqlSelection & { __args: {universalIdentifier: Scalars['String'], version?: (Scalars['String'] | null)} })/** @deprecated Use installApplication instead */installMarketplaceApp?: { __args: {universalIdentifier: Scalars['String'], version?: (Scalars['String'] | null)} }- markAgentChatThreadAsRead?: (AgentChatThreadParticipantGenqlSelection & { __args: {threadId: Scalars['UUID']} })- markAgentChatThreadAsUnread?: (AgentChatThreadParticipantGenqlSelection & { __args: {threadId: Scalars['UUID']} })- moveAgentChatThreadToInbox?: (AgentChatThreadParticipantGenqlSelection & { __args: {threadId: Scalars['UUID']} })refreshEnterpriseValidityToken?: boolean | numberreleaseEnterpriseServerBinding?: EnterpriseLicenseInfoDTOGenqlSelectionremoveQueryFromEventStream?: { __args: {input: RemoveQueryFromEventStreamInput} }@@ -6353,12 +6345,10 @@ export interface MutationGenqlSelection{signUpInNewWorkspace?: (SignUpGenqlSelection & { __args?: {input?: (SignUpInNewWorkspaceInput | null)} })signUpInWorkspace?: (SignUpGenqlSelection & { __args: {captchaToken?: (Scalars['String'] | null), email: Scalars['String'], locale?: (Scalars['String'] | null), password: Scalars['String'], verifyEmailRedirectPath?: (Scalars['String'] | null), workspaceId?: (Scalars['UUID'] | null), workspaceInviteHash?: (Scalars['String'] | null), workspacePersonalInviteToken?: (Scalars['String'] | null)} })skipSyncEmailOnboardingStep?: (OnboardingStepSuccessGenqlSelection & { __args: {isAutoSkipped: Scalars['Boolean']} })- snoozeAgentChatThread?: (AgentChatThreadParticipantGenqlSelection & { __args: {snoozedUntil: Scalars['DateTime'], threadId: Scalars['UUID']} })startChannelSync?: (ChannelSyncSuccessGenqlSelection & { __args: {connectedAccountId: Scalars['UUID']} })startWorkspaceSetupChat?: (StartWorkspaceSetupChatResultGenqlSelection & { __args?: {companyContext?: (Scalars['JSON'] | null), personContext?: (Scalars['JSON'] | null)} })stopAgentChatStream?: { __args: {threadId: Scalars['UUID']} }stopImpersonation?: StopImpersonationGenqlSelection- subscribeToAgentChatThread?: (AgentChatThreadParticipantGenqlSelection & { __args: {threadId: Scalars['UUID']} })switchBillingPlan?: BillingUpdateGenqlSelectionswitchSubscriptionInterval?: BillingUpdateGenqlSelectionsyncApplication?: (WorkspaceMigrationGenqlSelection & { __args: {dryRun?: (Scalars['Boolean'] | null), inferDeletionFromMissingEntities?: (Scalars['Boolean'] | null), manifest: Scalars['JSON']} })@@ -6368,7 +6358,7 @@ export interface MutationGenqlSelection{triggerInstallApplicationJob?: (TriggerInstallApplicationJobResultGenqlSelection & { __args: {input: TriggerInstallApplicationJobInput} })triggerUninstallApplicationJob?: (TriggerUninstallApplicationJobResultGenqlSelection & { __args: {input: TriggerUninstallApplicationJobInput} })uninstallApplication?: { __args: {universalIdentifier: Scalars['String']} }- unsubscribeFromAgentChatThread?: (AgentChatThreadParticipantGenqlSelection & { __args: {threadId: Scalars['UUID']} })+ updateAgentChatThreadInboxState?: (AgentChatThreadParticipantGenqlSelection & { __args: {action: AgentChatInboxAction, snoozedUntil?: (Scalars['DateTime'] | null), threadIds: Scalars['UUID'][]} })updateApiKey?: (ApiKeyGenqlSelection & { __args: {input: UpdateApiKeyInput} })updateAppMessageChannel?: (MessageChannelGenqlSelection & { __args: {input: UpdateAppMessageChannelInput} })updateApplication?: (ApplicationGenqlSelection & { __args: {id: Scalars['UUID'], input: UpdateApplicationInput} })@@ -11033,6 +11023,16 @@ export interface WorkspaceUrlsAndIdGenqlSelection{}+export const enumAgentChatInboxAction = {+ ARCHIVE: 'ARCHIVE' as const,+ MOVE_TO_INBOX: 'MOVE_TO_INBOX' as const,+ READ: 'READ' as const,+ SNOOZE: 'SNOOZE' as const,+ SUBSCRIBE: 'SUBSCRIBE' as const,+ UNREAD: 'UNREAD' as const,+ UNSUBSCRIBE: 'UNSUBSCRIBE' as const+}+export const enumAgentTurnStatus = {CANCELLED: 'CANCELLED' as const,COMPLETED: 'COMPLETED' as const,diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.tsindex a41db993dcb..bf099684c8a 100644--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts@@ -2,119 +2,120 @@ export default {"scalars": [1,4,- 7,- 9,+ 6,+ 8,10,- 16,- 18,- 20,- 23,- 25,- 32,- 44,- 52,- 54,- 60,- 72,- 76,+ 11,+ 17,+ 19,+ 21,+ 24,+ 26,+ 33,+ 45,+ 53,+ 55,+ 61,+ 73,77,- 79,- 84,- 89,- 95,- 105,- 108,+ 78,+ 80,+ 85,+ 90,+ 96,+ 106,109,110,111,- 119,- 121,- 135,- 140,- 184,+ 112,+ 120,+ 122,+ 136,+ 141,185,- 212,- 216,+ 186,+ 213,217,- 219,- 229,- 235,- 239,- 243,- 246,- 253,- 267,- 269,- 279,- 286,+ 218,+ 220,+ 230,+ 236,+ 240,+ 244,+ 247,+ 254,+ 268,+ 270,+ 280,287,288,- 299,- 301,- 314,+ 289,+ 300,+ 302,315,316,317,318,319,- 321,+ 320,322,323,- 326,+ 324,327,- 329,+ 328,330,- 333,- 335,- 339,- 343,- 352,- 359,+ 331,+ 334,+ 336,+ 340,+ 344,+ 353,360,361,- 364,- 368,+ 362,+ 365,369,- 374,- 378,- 399,- 401,+ 370,+ 375,+ 379,+ 400,402,- 405,- 410,- 422,- 424,- 428,- 433,- 450,- 462,+ 403,+ 406,+ 411,+ 423,+ 425,+ 429,+ 434,+ 451,463,- 465,- 481,- 483,- 485,- 545,- 565,- 572,- 574,- 588,- 594,+ 464,+ 466,+ 482,+ 484,+ 486,+ 546,+ 566,+ 573,+ 575,+ 589,595,- 597,+ 596,598,- 600,+ 599,601,602,- 605,+ 603,606,- 611,- 613,- 616,- 621,+ 607,+ 612,+ 614,+ 617,622,623,- 626,- 627+ 624,+ 627,+ 628],"types": {"ActivateWorkspaceInput": {@@ -131,7 +132,7 @@ export default {1],"operationSignature": [- 286+ 287],"queryId": [1@@ -142,10 +143,10 @@ export default {},"Agent": {"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"description": [1@@ -154,7 +155,7 @@ export default {1],"id": [- 481+ 482],"isCustom": [4@@ -166,7 +167,7 @@ export default {1],"modelConfiguration": [- 286+ 287],"modelId": [1@@ -178,16 +179,16 @@ export default {1],"responseFormat": [- 286+ 287],"roleId": [- 481+ 482],"triggers": [- 286+ 287],"updatedAt": [- 185+ 186],"__typename": [1@@ -196,7 +197,7 @@ export default {"Boolean": {},"AgentChatEvent": {"event": [- 286+ 287],"threadId": [1@@ -205,6 +206,7 @@ export default {1]},+ "AgentChatInboxAction": {},"AgentChatOpenThreadsSummary": {"hasUnreadAssignedThread": [4@@ -216,10 +218,10 @@ export default {4],"needsInputThreadCount": [- 7+ 8],"openThreadCount": [- 7+ 8],"__typename": [1@@ -228,40 +230,40 @@ export default {"Int": {},"AgentChatThread": {"contextWindowTokens": [- 7+ 8],"conversationSize": [- 7+ 8],"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"id": [- 9+ 10],"title": [1],"totalCacheReadTokens": [- 7+ 8],"totalInputCredits": [- 10+ 11],"totalInputTokens": [- 7+ 8],"totalOutputCredits": [- 10+ 11],"totalOutputTokens": [- 7+ 8],"updatedAt": [- 185+ 186],"__typename": [1@@ -271,28 +273,28 @@ export default {"Float": {},"AgentChatThreadParticipant": {"archivedAt": [- 185+ 186],"id": [- 481+ 482],"isSubscribed": [4],"lastMentionedAt": [- 185+ 186],"lastReadAt": [- 185+ 186],"snoozedUntil": [- 185+ 186],"threadId": [- 481+ 482],"updatedAt": [- 185+ 186],"__typename": [1@@ -300,7 +302,7 @@ export default {},"AgentIdInput": {"id": [- 481+ 482],"__typename": [1@@ -308,34 +310,34 @@ export default {},"AgentMessage": {"agentId": [- 481+ 482],"createdAt": [- 185+ 186],"id": [- 481+ 482],"parts": [- 14+ 15],"processedAt": [- 185+ 186],"role": [1],"senderUserWorkspaceId": [- 481+ 482],"status": [1],"threadId": [- 481+ 482],"turnId": [- 481+ 482],"__typename": [1@@ -343,7 +345,7 @@ export default {},"AgentMessagePart": {"createdAt": [- 185+ 186],"errorMessage": [1@@ -352,7 +354,7 @@ export default {1],"fileId": [- 481+ 482],"fileMediaType": [1@@ -361,19 +363,19 @@ export default {1],"id": [- 481+ 482],"messageId": [- 481+ 482],"orderIndex": [- 7+ 8],"providerExecuted": [4],"providerMetadata": [- 286+ 287],"reasoningContent": [1@@ -409,13 +411,13 @@ export default {1],"toolInput": [- 286+ 287],"toolName": [1],"toolOutput": [- 286+ 287],"type": [1@@ -426,7 +428,7 @@ export default {},"AgentRun": {"createdAt": [- 185+ 186],"creatorName": [1@@ -435,40 +437,40 @@ export default {1],"credits": [- 10+ 11],"endedAt": [- 185+ 186],"errorMessage": [1],"id": [- 481+ 482],"input": [1],"inputTokens": [- 7+ 8],"modelId": [1],"outputTokens": [- 7+ 8],"reply": [1],"startedAt": [- 185+ 186],"status": [- 16+ 17],"threadId": [- 481+ 482],"threadTitle": [1@@ -483,13 +485,13 @@ export default {"AgentTurnStatus": {},"AggregateChartConfiguration": {"aggregateFieldMetadataId": [- 481+ 482],"aggregateOperation": [- 18+ 19],"configurationType": [- 605+ 606],"description": [1@@ -498,22 +500,22 @@ export default {4],"filter": [- 286+ 287],"firstDayOfTheWeek": [- 7+ 8],"label": [1],"numberFormat": [- 121+ 122],"prefix": [1],"ratioAggregateConfig": [- 394+ 395],"suffix": [1@@ -528,16 +530,16 @@ export default {"AggregateOperations": {},"AiChatUsage": {"consumedValue": [- 79+ 80],"kind": [1],"limitValue": [- 79+ 80],"periodEnd": [- 185+ 186],"__typename": [1@@ -546,10 +548,10 @@ export default {"AiModelTier": {},"AiSystemPromptPreview": {"estimatedTokenCount": [- 7+ 8],"sections": [- 22+ 23],"__typename": [1@@ -560,7 +562,7 @@ export default {1],"estimatedTokenCount": [- 7+ 8],"title": [1@@ -581,7 +583,7 @@ export default {"AnalyticsType": {},"ApiConfig": {"mutationMaximumAffectedRecords": [- 10+ 11],"__typename": [1@@ -589,25 +591,25 @@ export default {},"ApiKey": {"createdAt": [- 185+ 186],"expiresAt": [- 185+ 186],"id": [- 481+ 482],"name": [1],"revokedAt": [- 185+ 186],"role": [- 416+ 417],"updatedAt": [- 185+ 186],"__typename": [1@@ -615,16 +617,16 @@ export default {},"ApiKeyForRole": {"expiresAt": [- 185+ 186],"id": [- 481+ 482],"name": [1],"revokedAt": [- 185+ 186],"__typename": [1@@ -652,7 +654,7 @@ export default {1],"id": [- 9+ 10],"name": [1@@ -681,10 +683,10 @@ export default {1],"scope": [- 32+ 33],"value": [- 286+ 287],"__typename": [1@@ -696,10 +698,10 @@ export default {1],"participants": [- 34+ 35],"receivedAt": [- 185+ 186],"subject": [1@@ -722,13 +724,13 @@ export default {1],"personId": [- 481+ 482],"role": [- 323+ 324],"workspaceMemberId": [- 481+ 482],"__typename": [1@@ -739,28 +741,28 @@ export default {3],"applicationRegistration": [- 56+ 57],"applicationRegistrationId": [- 481+ 482],"applicationVariables": [- 59+ 60],"autoUpgrade": [4],"availablePackages": [- 286+ 287],"canBeUninstalled": [4],"commandMenuItems": [- 134+ 135],"defaultLogicFunctionRole": [- 416+ 417],"defaultRoleId": [1@@ -769,19 +771,19 @@ export default {1],"frontComponents": [- 260+ 261],"healthCheckLogicFunctionId": [- 481+ 482],"id": [- 481+ 482],"logicFunctions": [- 298+ 299],"logoFileId": [- 481+ 482],"logoUrl": [1@@ -790,19 +792,19 @@ export default {1],"objects": [- 345+ 346],"packageJsonChecksum": [1],"packageJsonFileId": [- 481+ 482],"settingsCustomTabFrontComponentId": [- 481+ 482],"settingsMenuItems": [- 449+ 450],"universalIdentifier": [1@@ -814,7 +816,7 @@ export default {1],"yarnLockFileId": [- 481+ 482],"__typename": [1@@ -822,7 +824,7 @@ export default {},"ApplicationAuthorization": {"applicationId": [- 481+ 482],"applicationName": [1@@ -831,22 +833,22 @@ export default {1],"createdAt": [- 185+ 186],"id": [- 481+ 482],"lastAuthorizedAt": [- 185+ 186],"lastUsedAt": [- 185+ 186],"scopes": [1],"workspaceId": [- 481+ 482],"__typename": [1@@ -857,7 +859,7 @@ export default {1],"id": [- 481+ 482],"__typename": [1@@ -865,25 +867,25 @@ export default {},"ApplicationConnectedAccountDTO": {"applicationId": [- 481+ 482],"archivedAt": [- 185+ 186],"authFailedAt": [- 185+ 186],"authFailedReason": [1],"connectionParameters": [- 390+ 391],"connectionProviderId": [- 481+ 482],"createdAt": [- 185+ 186],"handle": [1@@ -892,16 +894,16 @@ export default {1],"id": [- 481+ 482],"isOwnedByCurrentUser": [4],"lastCredentialsRefreshedAt": [- 185+ 186],"lastSignedInAt": [- 185+ 186],"name": [1@@ -913,10 +915,10 @@ export default {1],"updatedAt": [- 185+ 186],"userWorkspaceId": [- 481+ 482],"visibility": [1@@ -933,7 +935,7 @@ export default {1],"id": [- 481+ 482],"logoUrl": [1@@ -942,7 +944,7 @@ export default {1],"oauth": [- 40+ 41],"type": [1@@ -964,16 +966,16 @@ export default {},"ApplicationExport": {"application": [- 42+ 43],"coverage": [- 43+ 44],"files": [- 45+ 46],"manifest": [- 286+ 287],"__typename": [1@@ -984,7 +986,7 @@ export default {1],"sourceType": [- 54+ 55],"universalIdentifier": [1@@ -1001,7 +1003,7 @@ export default {1],"status": [- 44+ 45],"universalIdentifier": [1@@ -1027,7 +1029,7 @@ export default {},"ApplicationFileCompletionError": {"fileId": [- 481+ 482],"message": [1@@ -1038,7 +1040,7 @@ export default {},"ApplicationFileUploadError": {"fileFolder": [- 253+ 254],"filePath": [1@@ -1052,13 +1054,13 @@ export default {},"ApplicationFileUploadRequestInput": {"fileFolder": [- 253+ 254],"filePath": [1],"size": [- 7+ 8],"__typename": [1@@ -1069,13 +1071,13 @@ export default {1],"expiresAt": [- 185+ 186],"fileFolder": [- 253+ 254],"fileId": [- 481+ 482],"filePath": [1@@ -1100,13 +1102,13 @@ export default {},"ApplicationHealthCheckResult": {"action": [- 50+ 51],"description": [1],"status": [- 52+ 53],"title": [1@@ -1118,13 +1120,13 @@ export default {"ApplicationHealthStatus": {},"ApplicationRegistration": {"createdAt": [- 185+ 186],"galleryImagesUrls": [1],"id": [- 481+ 482],"isConfigured": [4@@ -1157,19 +1159,19 @@ export default {1],"ownerWorkspaceId": [- 481+ 482],"sourcePackage": [1],"sourceType": [- 54+ 55],"universalIdentifier": [1],"updatedAt": [- 185+ 186],"__typename": [1@@ -1178,16 +1180,16 @@ export default {"ApplicationRegistrationSourceType": {},"ApplicationRegistrationStats": {"activeInstalls": [- 7+ 8],"mostInstalledVersion": [1],"suspendedInstalls": [- 7+ 8],"versionDistribution": [- 586+ 587],"__typename": [1@@ -1195,7 +1197,7 @@ export default {},"ApplicationRegistrationSummary": {"id": [- 481+ 482],"latestAvailableVersion": [1@@ -1204,7 +1206,7 @@ export default {1],"sourceType": [- 54+ 55],"__typename": [1@@ -1212,13 +1214,13 @@ export default {},"ApplicationRegistrationVariable": {"createdAt": [- 185+ 186],"description": [1],"id": [- 481+ 482],"isDeprecated": [4@@ -1236,13 +1238,13 @@ export default {1],"options": [- 286+ 287],"type": [1],"updatedAt": [- 185+ 186],"value": [1@@ -1253,10 +1255,10 @@ export default {},"ApplicationTokenPair": {"applicationAccessToken": [- 64+ 65],"applicationRefreshToken": [- 64+ 65],"__typename": [1@@ -1267,7 +1269,7 @@ export default {1],"id": [- 481+ 482],"isDeprecated": [4@@ -1285,10 +1287,10 @@ export default {1],"options": [- 286+ 287],"scope": [- 60+ 61],"type": [1@@ -1303,13 +1305,13 @@ export default {"ApplicationVariableScope": {},"ApprovedAccessDomain": {"createdAt": [- 185+ 186],"domain": [1],"id": [- 481+ 482],"isValidated": [4@@ -1346,7 +1348,7 @@ export default {4],"sso": [- 432+ 433],"__typename": [1@@ -1354,7 +1356,7 @@ export default {},"AuthToken": {"expiresAt": [- 185+ 186],"token": [1@@ -1365,10 +1367,10 @@ export default {},"AuthTokenPair": {"accessOrWorkspaceAgnosticToken": [- 64+ 65],"refreshToken": [- 64+ 65],"__typename": [1@@ -1376,7 +1378,7 @@ export default {},"AuthTokens": {"tokens": [- 65+ 66],"__typename": [1@@ -1406,7 +1408,7 @@ export default {1],"id": [- 481+ 482],"inviteHash": [1@@ -1421,10 +1423,10 @@ export default {1],"sso": [- 431+ 432],"workspaceUrls": [- 628+ 629],"__typename": [1@@ -1432,10 +1434,10 @@ export default {},"AvailableWorkspaces": {"availableWorkspacesForSignIn": [- 69+ 70],"availableWorkspacesForSignUp": [- 69+ 70],"__typename": [1@@ -1443,10 +1445,10 @@ export default {},"AvailableWorkspacesAndAccessTokens": {"availableWorkspaces": [- 70+ 71],"tokens": [- 65+ 66],"__typename": [1@@ -1455,19 +1457,19 @@ export default {"AxisNameDisplay": {},"BarChartConfiguration": {"aggregateFieldMetadataId": [- 481+ 482],"aggregateOperation": [- 18+ 19],"axisNameDisplay": [- 72+ 73],"color": [1],"configurationType": [- 605+ 606],"description": [1@@ -1479,31 +1481,31 @@ export default {4],"filter": [- 286+ 287],"firstDayOfTheWeek": [- 7+ 8],"groupMode": [- 76+ 77],"isCumulative": [4],"layout": [- 77+ 78],"numberFormat": [- 121+ 122],"omitNullValues": [4],"primaryAxisDateGranularity": [- 359+ 360],"primaryAxisGroupByFieldMetadataId": [- 481+ 482],"primaryAxisGroupBySubFieldName": [1@@ -1512,19 +1514,19 @@ export default {1],"primaryAxisOrderBy": [- 267+ 268],"rangeMax": [- 10+ 11],"rangeMin": [- 10+ 11],"secondaryAxisGroupByDateGranularity": [- 359+ 360],"secondaryAxisGroupByFieldMetadataId": [- 481+ 482],"secondaryAxisGroupBySubFieldName": [1@@ -1533,7 +1535,7 @@ export default {1],"secondaryAxisOrderBy": [- 267+ 268],"splitMultiValueFields": [4@@ -1547,13 +1549,13 @@ export default {},"BarChartData": {"data": [- 286+ 287],"formattedToRawLookup": [- 286+ 287],"groupMode": [- 76+ 77],"hasTooManyGroups": [4@@ -1565,10 +1567,10 @@ export default {1],"layout": [- 77+ 78],"series": [- 78+ 79],"showDataLabels": [4@@ -1588,10 +1590,10 @@ export default {},"BarChartDataInput": {"configuration": [- 286+ 287],"objectMetadataId": [- 481+ 482],"__typename": [1@@ -1622,7 +1624,7 @@ export default {1],"trialPeriods": [- 103+ 104],"__typename": [1@@ -1633,7 +1635,7 @@ export default {4],"id": [- 481+ 482],"__typename": [1@@ -1644,16 +1646,16 @@ export default {1],"billingSubscriptions": [- 99+ 100],"currentBillingSubscription": [- 99+ 100],"hasPaymentMethod": [4],"status": [- 463+ 464],"__typename": [1@@ -1661,7 +1663,7 @@ export default {},"BillingEntitlement": {"key": [- 84+ 85],"value": [4@@ -1679,13 +1681,13 @@ export default {1],"metadata": [- 96+ 97],"name": [1],"prices": [- 90+ 91],"__typename": [1@@ -1699,13 +1701,13 @@ export default {1],"metadata": [- 96+ 97],"name": [1],"prices": [- 91+ 92],"__typename": [1@@ -1724,16 +1726,16 @@ export default {},"BillingPlan": {"baseProducts": [- 85+ 86],"meteredProducts": [- 86+ 87],"planKey": [- 89+ 90],"resourceCreditProducts": [- 85+ 86],"__typename": [1@@ -1742,22 +1744,22 @@ export default {"BillingPlanKey": {},"BillingPriceLicensed": {"creditAmount": [- 10+ 11],"isSellable": [4],"priceUsageType": [- 105+ 106],"recurringInterval": [- 462+ 463],"stripePriceId": [1],"unitAmount": [- 10+ 11],"__typename": [1@@ -1765,16 +1767,16 @@ export default {},"BillingPriceMetered": {"priceUsageType": [- 105+ 106],"recurringInterval": [- 462+ 463],"stripePriceId": [1],"tiers": [- 92+ 93],"__typename": [1@@ -1782,13 +1784,13 @@ export default {},"BillingPriceTier": {"flatAmount": [- 10+ 11],"unitAmount": [- 10+ 11],"upTo": [- 10+ 11],"__typename": [1@@ -1802,7 +1804,7 @@ export default {1],"metadata": [- 96+ 97],"name": [1@@ -1819,16 +1821,16 @@ export default {1],"metadata": [- 96+ 97],"name": [1],"on_BillingLicensedProduct": [- 85+ 86],"on_BillingMeteredProduct": [- 86+ 87],"__typename": [1@@ -1840,13 +1842,13 @@ export default {1],"planKey": [- 89+ 90],"priceUsageBased": [- 105+ 106],"productKey": [- 95+ 96],"__typename": [1@@ -1854,28 +1856,28 @@ export default {},"BillingResourceCreditUsage": {"grantedCredits": [- 10+ 11],"periodEnd": [- 185+ 186],"periodStart": [- 185+ 186],"productKey": [- 95+ 96],"rolloverCredits": [- 10+ 11],"totalGrantedCredits": [- 10+ 11],"unitPriceCents": [- 10+ 11],"usedCredits": [- 10+ 11],"__typename": [1@@ -1891,28 +1893,28 @@ export default {},"BillingSubscription": {"billingSubscriptionItems": [- 100+ 101],"cancelAt": [- 185+ 186],"currentPeriodEnd": [- 185+ 186],"id": [- 481+ 482],"interval": [- 462+ 463],"metadata": [- 286+ 287],"phases": [- 101+ 102],"status": [- 463+ 464],"__typename": [1@@ -1920,25 +1922,25 @@ export default {},"BillingSubscriptionItem": {"billingProduct": [- 94+ 95],"creditAmount": [- 10+ 11],"hasReachedCurrentPeriodCap": [4],"id": [- 481+ 482],"quantity": [- 10+ 11],"stripePriceId": [1],"unitAmount": [- 10+ 11],"__typename": [1@@ -1946,13 +1948,13 @@ export default {},"BillingSubscriptionSchedulePhase": {"end_date": [- 10+ 11],"items": [- 102+ 103],"start_date": [- 10+ 11],"__typename": [1@@ -1963,7 +1965,7 @@ export default {1],"quantity": [- 10+ 11],"__typename": [1@@ -1971,7 +1973,7 @@ export default {},"BillingTrialPeriod": {"duration": [- 10+ 11],"isCreditCardRequired": [4@@ -1982,10 +1984,10 @@ export default {},"BillingUpdate": {"billingSubscriptions": [- 99+ 100],"currentBillingSubscription": [- 99+ 100],"__typename": [1@@ -2005,19 +2007,19 @@ export default {},"CalendarChannel": {"connectedAccountId": [- 481+ 482],"contactAutoCreationPolicy": [- 108+ 109],"createdAt": [- 185+ 186],"handle": [1],"id": [- 481+ 482],"isContactAutoCreationEnabled": [4@@ -2026,25 +2028,25 @@ export default {4],"syncStage": [- 109+ 110],"syncStageStartedAt": [- 185+ 186],"syncStatus": [- 110+ 111],"syncedAt": [- 185+ 186],"throttleFailureCount": [- 10+ 11],"updatedAt": [- 185+ 186],"visibility": [- 111+ 112],"__typename": [1@@ -2056,7 +2058,7 @@ export default {"CalendarChannelVisibility": {},"CalendarConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -2064,7 +2066,7 @@ export default {},"CallRecordingSummaryConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -2072,7 +2074,7 @@ export default {},"CallRecordingTranscriptConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -2080,28 +2082,28 @@ export default {},"CampaignAudiencePreviewDTO": {"duplicateEmails": [- 7+ 8],"globallyUnsubscribed": [- 7+ 8],"hardSuppressed": [- 7+ 8],"sendable": [- 7+ 8],"topicUnsubscribed": [- 7+ 8],"totalMembers": [- 7+ 8],"trackingRefused": [- 7+ 8],"withoutEmail": [- 7+ 8],"__typename": [1@@ -2120,7 +2122,7 @@ export default {1],"canceledMessageCount": [- 7+ 8],"__typename": [1@@ -2128,7 +2130,7 @@ export default {},"Captcha": {"provider": [- 119+ 120],"siteKey": [1@@ -2149,7 +2151,7 @@ export default {"ChartNumberFormat": {},"ChatConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -2157,13 +2159,13 @@ export default {},"ChatStreamCatchupChunks": {"chunks": [- 286+ 287],"error": [- 124+ 125],"maxSeq": [- 7+ 8],"__typename": [1@@ -2182,7 +2184,7 @@ export default {},"ChatThreadsConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -2190,7 +2192,7 @@ export default {},"CheckUserExist": {"availableWorkspacesCount": [- 10+ 11],"exists": [4@@ -2236,7 +2238,7 @@ export default {1],"inputCostPerMillionTokens": [- 10+ 11],"isAvailable": [4@@ -2248,19 +2250,19 @@ export default {1],"maxCriteriaPerQuestion": [- 10+ 11],"maxScoreLevels": [- 10+ 11],"medianLatencyMs": [- 10+ 11],"modelId": [1],"outputCostPerMillionTokens": [- 10+ 11],"providerLabel": [1@@ -2274,10 +2276,10 @@ export default {},"ClientAiModelConfig": {"contextWindowTokens": [- 10+ 11],"costPerTask": [- 10+ 11],"dataResidency": [1@@ -2289,10 +2291,10 @@ export default {1],"inputCostPerMillionTokens": [- 10+ 11],"intelligenceIndex": [- 10+ 11],"isBenchmarkInherited": [4@@ -2304,10 +2306,10 @@ export default {1],"maxOutputTokens": [- 10+ 11],"modelFamily": [- 339+ 340],"modelFamilyLabel": [1@@ -2316,13 +2318,13 @@ export default {1],"nativeCapabilities": [- 341+ 342],"outputCostPerMillionTokens": [- 10+ 11],"outputTokensPerSecond": [- 10+ 11],"providerLabel": [1@@ -2342,7 +2344,7 @@ export default {1],"tier": [- 20+ 21],"__typename": [1@@ -2350,13 +2352,13 @@ export default {},"ClientConfig": {"aiEvaluationModels": [- 128+ 129],"aiModelTiers": [- 130+ 131],"aiModels": [- 129+ 130],"allowRequestsToTwentyIcons": [4@@ -2365,16 +2367,16 @@ export default {4],"api": [- 26+ 27],"appVersion": [1],"authProviders": [- 63+ 64],"billing": [- 80+ 81],"calendarBookingPageId": [1@@ -2383,7 +2385,7 @@ export default {4],"captcha": [- 118+ 119],"defaultSubdomain": [1@@ -2446,22 +2448,22 @@ export default {4],"maintenance": [- 132+ 133],"publicFeatureFlags": [- 388+ 389],"publicFunctionDomain": [1],"sentry": [- 447+ 448],"signInPrefilled": [4],"support": [- 464+ 465],"__typename": [1@@ -2469,13 +2471,13 @@ export default {},"ClientConfigMaintenanceMode": {"endAt": [- 185+ 186],"link": [1],"startAt": [- 185+ 186],"__typename": [1@@ -2483,7 +2485,7 @@ export default {},"CollectionHash": {"collectionName": [- 23+ 24],"hash": [1@@ -2494,13 +2496,13 @@ export default {},"CommandMenuItem": {"applicationId": [- 481+ 482],"availabilityObjectMetadataId": [- 481+ 482],"availabilityType": [- 135+ 136],"conditionalAvailabilityExpression": [1@@ -2509,19 +2511,19 @@ export default {1],"coreWorkflowVersionId": [- 481+ 482],"createdAt": [- 185+ 186],"engineComponentKey": [- 219+ 220],"frontComponent": [- 260+ 261],"frontComponentId": [- 481+ 482],"hotKeys": [1@@ -2530,7 +2532,7 @@ export default {1],"id": [- 481+ 482],"isActive": [4@@ -2542,28 +2544,28 @@ export default {1],"navigationTargetObjectMetadataId": [- 481+ 482],"pageLayoutId": [- 481+ 482],"payload": [- 136+ 137],"position": [- 10+ 11],"shortLabel": [1],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"workflowVersionId": [- 481+ 482],"__typename": [1@@ -2572,10 +2574,10 @@ export default {"CommandMenuItemAvailabilityType": {},"CommandMenuItemPayload": {"on_ObjectMetadataCommandMenuItemPayload": [- 351+ 352],"on_PathCommandMenuItemPayload": [- 376+ 377],"__typename": [1@@ -2583,10 +2585,10 @@ export default {},"CompleteApplicationFileUploadsResult": {"errors": [- 46+ 47],"files": [- 251+ 252],"__typename": [1@@ -2594,25 +2596,25 @@ export default {},"ConnectedAccountPublicDTO": {"applicationId": [- 481+ 482],"archivedAt": [- 185+ 186],"authFailedAt": [- 185+ 186],"authFailedReason": [1],"connectionParameters": [- 390+ 391],"connectionProviderId": [- 481+ 482],"createdAt": [- 185+ 186],"handle": [1@@ -2621,13 +2623,13 @@ export default {1],"id": [- 481+ 482],"lastCredentialsRefreshedAt": [- 185+ 186],"lastSignedInAt": [- 185+ 186],"name": [1@@ -2639,10 +2641,10 @@ export default {1],"updatedAt": [- 185+ 186],"userWorkspaceId": [- 481+ 482],"visibility": [1@@ -2653,19 +2655,19 @@ export default {},"ConnectedImapSmtpCaldavAccount": {"connectionParameters": [- 272+ 273],"handle": [1],"id": [- 481+ 482],"provider": [1],"userWorkspaceId": [- 481+ 482],"__typename": [1@@ -2674,7 +2676,7 @@ export default {"ConnectionCursor": {},"ConnectionParametersInput": {"connectionSecurity": [- 212+ 213],"host": [1@@ -2683,7 +2685,7 @@ export default {1],"port": [- 10+ 11],"username": [1@@ -2703,7 +2705,7 @@ export default {1],"modelConfiguration": [- 286+ 287],"modelId": [1@@ -2715,13 +2717,13 @@ export default {1],"responseFormat": [- 286+ 287],"roleId": [- 481+ 482],"triggers": [- 286+ 287],"__typename": [1@@ -2738,7 +2740,7 @@ export default {1],"roleId": [- 481+ 482],"__typename": [1@@ -2746,7 +2748,7 @@ export default {},"CreateAppMessageChannelInput": {"connectedAccountId": [- 481+ 482],"displayName": [1@@ -2755,7 +2757,7 @@ export default {1],"visibility": [- 319+ 320],"__typename": [1@@ -2763,10 +2765,10 @@ export default {},"CreateApplicationFileUploadsResult": {"errors": [- 47+ 48],"targets": [- 49+ 50],"__typename": [1@@ -2774,7 +2776,7 @@ export default {},"CreateApplicationRegistration": {"applicationRegistration": [- 53+ 54],"clientSecret": [1@@ -2871,10 +2873,10 @@ export default {},"CreateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 481+ 482],"availabilityType": [- 135+ 136],"conditionalAvailabilityExpression": [1@@ -2883,13 +2885,13 @@ export default {1],"coreWorkflowVersionId": [- 481+ 482],"engineComponentKey": [- 219+ 220],"frontComponentId": [- 481+ 482],"hotKeys": [1@@ -2904,22 +2906,22 @@ export default {1],"navigationTargetObjectMetadataId": [- 481+ 482],"pageLayoutId": [- 481+ 482],"payload": [- 286+ 287],"position": [- 10+ 11],"shortLabel": [1],"workflowVersionId": [- 481+ 482],"__typename": [1@@ -2941,7 +2943,7 @@ export default {1],"messageChannel": [- 313+ 314],"__typename": [1@@ -2957,7 +2959,7 @@ export default {},"CreateFieldInput": {"defaultValue": [- 286+ 287],"description": [1@@ -2999,25 +3001,25 @@ export default {1],"morphRelationsCreationPayload": [- 286+ 287],"name": [1],"objectMetadataId": [- 481+ 482],"options": [- 286+ 287],"relationCreationPayload": [- 286+ 287],"settings": [- 286+ 287],"type": [- 246+ 247],"__typename": [1@@ -3037,7 +3039,7 @@ export default {1],"id": [- 481+ 482],"name": [1@@ -3051,7 +3053,7 @@ export default {},"CreateIndexFieldInput": {"fieldMetadataId": [- 481+ 482],"subFieldName": [1@@ -3062,13 +3064,13 @@ export default {},"CreateIndexInput": {"fields": [- 157+ 158],"indexType": [- 279+ 280],"objectMetadataId": [- 481+ 482],"__typename": [1@@ -3076,40 +3078,40 @@ export default {},"CreateLogicFunctionFromSourceInput": {"cronTriggerSettings": [- 286+ 287],"databaseEventTriggerSettings": [- 286+ 287],"description": [1],"httpRouteTriggerSettings": [- 286+ 287],"id": [- 481+ 482],"name": [1],"serverRouteTriggerSettings": [- 286+ 287],"source": [- 286+ 287],"timeoutSeconds": [- 10+ 11],"toolTriggerSettings": [- 286+ 287],"universalIdentifier": [- 481+ 482],"workflowActionTriggerSettings": [- 286+ 287],"__typename": [1@@ -3120,7 +3122,7 @@ export default {1],"unsubscribeTopicId": [- 481+ 482],"__typename": [1@@ -3131,13 +3133,13 @@ export default {1],"folderId": [- 481+ 482],"icon": [1],"id": [- 481+ 482],"link": [1@@ -3146,25 +3148,25 @@ export default {1],"pageLayoutId": [- 481+ 482],"position": [- 10+ 11],"targetObjectMetadataId": [- 481+ 482],"targetRecordId": [- 481+ 482],"type": [- 343+ 344],"userWorkspaceId": [- 481+ 482],"viewId": [- 481+ 482],"__typename": [1@@ -3202,7 +3204,7 @@ export default {1],"primaryKeyFieldMetadataSettings": [- 286+ 287],"shortcut": [1@@ -3216,7 +3218,7 @@ export default {},"CreateOneFieldMetadataInput": {"field": [- 155+ 156],"__typename": [1@@ -3224,7 +3226,7 @@ export default {},"CreateOneIndexInput": {"index": [- 158+ 159],"__typename": [1@@ -3232,7 +3234,7 @@ export default {},"CreateOneObjectInput": {"object": [- 162+ 163],"__typename": [1@@ -3243,10 +3245,10 @@ export default {1],"objectMetadataId": [- 481+ 482],"type": [- 369+ 370],"__typename": [1@@ -3254,13 +3256,13 @@ export default {},"CreatePageLayoutTabInput": {"layoutMode": [- 368+ 369],"pageLayoutId": [- 481+ 482],"position": [- 10+ 11],"title": [1@@ -3271,22 +3273,22 @@ export default {},"CreatePageLayoutWidgetInput": {"configuration": [- 286+ 287],"objectMetadataId": [- 481+ 482],"pageLayoutTabId": [- 481+ 482],"position": [- 286+ 287],"title": [1],"type": [- 606+ 607],"__typename": [1@@ -3294,16 +3296,16 @@ export default {},"CreateRecordExportInput": {"fieldMetadataIds": [- 481+ 482],"filter": [- 286+ 287],"objectMetadataId": [- 481+ 482],"orderBy": [- 286+ 287],"__typename": [1@@ -3364,7 +3366,7 @@ export default {1],"id": [- 481+ 482],"label": [1@@ -3384,7 +3386,7 @@ export default {1],"visibility": [- 485+ 486],"__typename": [1@@ -3392,25 +3394,25 @@ export default {},"CreateUsageLimitInput": {"burstValue": [- 79+ 80],"limitKind": [1],"limitValue": [- 79+ 80],"operationType": [- 565+ 566],"periodCount": [- 7+ 8],"periodUnit": [1],"resourceType": [- 572+ 573],"spenderId": [1@@ -3419,7 +3421,7 @@ export default {1],"unit": [- 574+ 575],"__typename": [1@@ -3430,7 +3432,7 @@ export default {1],"errorFieldMetadataId": [- 481+ 482],"expression": [1@@ -3448,7 +3450,7 @@ export default {1],"objectMetadataId": [- 481+ 482],"__typename": [1@@ -3456,7 +3458,7 @@ export default {},"CreateViewFieldGroupInput": {"id": [- 481+ 482],"isVisible": [4@@ -3465,10 +3467,10 @@ export default {1],"position": [- 10+ 11],"viewId": [- 481+ 482],"__typename": [1@@ -3476,28 +3478,28 @@ export default {},"CreateViewFieldInput": {"aggregateOperation": [- 18+ 19],"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"isVisible": [4],"position": [- 10+ 11],"size": [- 10+ 11],"viewFieldGroupId": [- 481+ 482],"viewId": [- 481+ 482],"__typename": [1@@ -3505,19 +3507,19 @@ export default {},"CreateViewFilterGroupInput": {"id": [- 481+ 482],"logicalOperator": [- 594+ 595],"parentViewFilterGroupId": [- 481+ 482],"positionInViewFilterGroup": [- 10+ 11],"viewId": [- 481+ 482],"__typename": [1@@ -3525,31 +3527,31 @@ export default {},"CreateViewFilterInput": {"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"operand": [- 595+ 596],"positionInViewFilterGroup": [- 10+ 11],"relationTargetFieldMetadataId": [- 481+ 482],"subFieldName": [1],"value": [- 286+ 287],"viewFilterGroupId": [- 481+ 482],"viewId": [- 481+ 482],"__typename": [1@@ -3560,16 +3562,16 @@ export default {1],"id": [- 481+ 482],"isVisible": [4],"position": [- 10+ 11],"viewId": [- 481+ 482],"__typename": [1@@ -3580,61 +3582,61 @@ export default {1],"calendarEndFieldMetadataId": [- 481+ 482],"calendarFieldMetadataId": [- 481+ 482],"calendarLayout": [- 588+ 589],"groupLoadLimit": [- 7+ 8],"icon": [1],"id": [- 481+ 482],"isCompact": [4],"kanbanAggregateOperation": [- 18+ 19],"kanbanAggregateOperationFieldMetadataId": [- 481+ 482],"kanbanColumnWidth": [- 7+ 8],"key": [- 597+ 598],"mainGroupByFieldMetadataId": [- 481+ 482],"name": [1],"objectMetadataId": [- 481+ 482],"openRecordIn": [- 598+ 599],"position": [- 10+ 11],"shouldHideEmptyGroups": [4],"type": [- 601+ 602],"visibility": [- 602+ 603],"__typename": [1@@ -3642,19 +3644,19 @@ export default {},"CreateViewSortInput": {"direction": [- 600+ 601],"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"subFieldName": [1],"viewId": [- 481+ 482],"__typename": [1@@ -3665,7 +3667,7 @@ export default {1],"id": [- 481+ 482],"operations": [1@@ -3682,16 +3684,16 @@ export default {},"CursorPaging": {"after": [- 140+ 141],"before": [- 140+ 141],"first": [- 7+ 8],"last": [- 7+ 8],"__typename": [1@@ -3701,7 +3703,7 @@ export default {"DateTime": {},"DeleteApprovedAccessDomainInput": {"id": [- 481+ 482],"__typename": [1@@ -3709,7 +3711,7 @@ export default {},"DeleteOneFieldInput": {"id": [- 481+ 482],"__typename": [1@@ -3717,7 +3719,7 @@ export default {},"DeleteOneIndexInput": {"id": [- 481+ 482],"__typename": [1@@ -3725,7 +3727,7 @@ export default {},"DeleteOneObjectInput": {"id": [- 481+ 482],"__typename": [1@@ -3733,7 +3735,7 @@ export default {},"DeleteSso": {"identityProviderId": [- 481+ 482],"__typename": [1@@ -3741,7 +3743,7 @@ export default {},"DeleteSsoInput": {"identityProviderId": [- 481+ 482],"__typename": [1@@ -3757,7 +3759,7 @@ export default {},"DeleteViewFieldGroupInput": {"id": [- 481+ 482],"__typename": [1@@ -3765,7 +3767,7 @@ export default {},"DeleteViewFieldInput": {"id": [- 481+ 482],"__typename": [1@@ -3773,7 +3775,7 @@ export default {},"DeleteViewFilterInput": {"id": [- 481+ 482],"__typename": [1@@ -3781,7 +3783,7 @@ export default {},"DeleteViewGroupInput": {"id": [- 481+ 482],"__typename": [1@@ -3789,7 +3791,7 @@ export default {},"DeleteViewSortInput": {"id": [- 481+ 482],"__typename": [1@@ -3800,16 +3802,16 @@ export default {1],"id": [- 481+ 482],"name": [- 262+ 263],"userEmail": [1],"userWorkspaceId": [- 481+ 482],"__typename": [1@@ -3817,7 +3819,7 @@ export default {},"DestroyViewFieldGroupInput": {"id": [- 481+ 482],"__typename": [1@@ -3825,7 +3827,7 @@ export default {},"DestroyViewFieldInput": {"id": [- 481+ 482],"__typename": [1@@ -3833,7 +3835,7 @@ export default {},"DestroyViewFilterInput": {"id": [- 481+ 482],"__typename": [1@@ -3841,7 +3843,7 @@ export default {},"DestroyViewGroupInput": {"id": [- 481+ 482],"__typename": [1@@ -3849,7 +3851,7 @@ export default {},"DestroyViewSortInput": {"id": [- 481+ 482],"__typename": [1@@ -3891,13 +3893,13 @@ export default {1],"id": [- 481+ 482],"isCustomDomainEnabled": [4],"records": [- 205+ 206],"__typename": [1@@ -3908,13 +3910,13 @@ export default {1],"id": [- 481+ 482],"pageLayoutId": [- 481+ 482],"position": [- 10+ 11],"title": [1@@ -3934,16 +3936,16 @@ export default {1],"id": [- 481+ 482],"memberCount": [- 10+ 11],"name": [1],"position": [- 10+ 11],"updatedAt": [1@@ -3954,7 +3956,7 @@ export default {},"EditSso": {"id": [- 481+ 482],"issuer": [1@@ -3963,10 +3965,10 @@ export default {1],"status": [- 433+ 434],"type": [- 269+ 270],"__typename": [1@@ -3974,10 +3976,10 @@ export default {},"EditSsoInput": {"id": [- 481+ 482],"status": [- 433+ 434],"__typename": [1@@ -3985,13 +3987,13 @@ export default {},"EmailAccountConnectionParameters": {"CALDAV": [- 141+ 142],"IMAP": [- 141+ 142],"SMTP": [- 141+ 142],"name": [1@@ -4011,7 +4013,7 @@ export default {},"EmailThreadConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -4019,31 +4021,31 @@ export default {},"EmailingDomain": {"createdAt": [- 185+ 186],"domain": [1],"id": [- 481+ 482],"status": [- 216+ 217],"tenantStatus": [- 217+ 218],"unsubscribeHostnameStatus": [- 483+ 484],"updatedAt": [- 185+ 186],"verificationRecords": [- 583+ 584],"verifiedAt": [- 185+ 186],"__typename": [1@@ -4053,7 +4055,7 @@ export default {"EmailingDomainTenantStatus": {},"EmailsConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -4062,7 +4064,7 @@ export default {"EngineComponentKey": {},"EnqueueJobInput": {"delayMs": [- 7+ 8],"jobId": [1@@ -4071,10 +4073,10 @@ export default {1],"payload": [- 286+ 287],"retryLimit": [- 7+ 8],"__typename": [1@@ -4085,7 +4087,7 @@ export default {1],"payload": [- 286+ 287],"__typename": [1@@ -4107,19 +4109,19 @@ export default {},"EnqueueJobsInput": {"delayMs": [- 7+ 8],"jobs": [- 221+ 222],"logicFunctionUniversalIdentifier": [1],"payloads": [- 286+ 287],"retryLimit": [- 7+ 8],"__typename": [1@@ -4130,7 +4132,7 @@ export default {4],"enqueuedJobsCount": [- 7+ 8],"jobIds": [1@@ -4144,7 +4146,7 @@ export default {},"EnterpriseLicenseInfoDTO": {"expiresAt": [- 185+ 186],"isValid": [4@@ -4161,13 +4163,13 @@ export default {},"EnterpriseSubscriptionStatusDTO": {"cancelAt": [- 185+ 186],"currentPeriodEnd": [- 185+ 186],"expiresAt": [- 185+ 186],"isCancellationScheduled": [4@@ -4184,10 +4186,10 @@ export default {},"EventLogDateRangeInput": {"end": [- 185+ 186],"start": [- 185+ 186],"__typename": [1@@ -4198,7 +4200,7 @@ export default {1],"operand": [- 229+ 230],"values": [1@@ -4210,13 +4212,13 @@ export default {"EventLogFilterOperand": {},"EventLogFiltersInput": {"dateRange": [- 227+ 228],"eventType": [1],"fieldFilters": [- 228+ 229],"objectMetadataId": [1@@ -4247,13 +4249,13 @@ export default {1],"filters": [- 230+ 231],"first": [- 7+ 8],"table": [- 235+ 236],"__typename": [1@@ -4261,13 +4263,13 @@ export default {},"EventLogQueryResult": {"pageInfo": [- 231+ 232],"records": [- 234+ 235],"totalCount": [- 7+ 8],"__typename": [1@@ -4284,13 +4286,13 @@ export default {1],"properties": [- 286+ 287],"recordId": [1],"timestamp": [- 185+ 186],"userId": [1@@ -4305,13 +4307,13 @@ export default {1],"metadataEvents": [- 328+ 329],"objectRecordEventsWithQueryIds": [- 358+ 359],"queueJobEvents": [- 289+ 290],"__typename": [1@@ -4319,10 +4321,10 @@ export default {},"ExecuteOneLogicFunctionInput": {"id": [- 481+ 482],"payload": [- 286+ 287],"__typename": [1@@ -4330,7 +4332,7 @@ export default {},"FeatureFlag": {"key": [- 239+ 240],"value": [4@@ -4342,13 +4344,13 @@ export default {"FeatureFlagKey": {},"Field": {"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"defaultValue": [- 286+ 287],"description": [1@@ -4357,7 +4359,7 @@ export default {1],"id": [- 481+ 482],"isActive": [4@@ -4390,40 +4392,40 @@ export default {1],"morphId": [- 481+ 482],"morphRelations": [- 409+ 410],"name": [1],"object": [- 345+ 346],"objectMetadataId": [- 481+ 482],"options": [- 286+ 287],"relation": [- 409+ 410],"settings": [- 286+ 287],"type": [- 246+ 247],"universalIdentifier": [1],"updatedAt": [- 185+ 186],"writability": [- 335+ 336],"__typename": [1@@ -4431,10 +4433,10 @@ export default {},"FieldConfiguration": {"configurationType": [- 605+ 606],"fieldDisplayMode": [- 243+ 244],"fieldMetadataId": [1@@ -4454,10 +4456,10 @@ export default {},"FieldConnection": {"edges": [- 244+ 245],"pageInfo": [- 365+ 366],"__typename": [1@@ -4466,10 +4468,10 @@ export default {"FieldDisplayMode": {},"FieldEdge": {"cursor": [- 140+ 141],"node": [- 240+ 241],"__typename": [1@@ -4477,28 +4479,28 @@ export default {},"FieldFilter": {"and": [- 245+ 246],"id": [- 482+ 483],"isActive": [- 106+ 107],"isSystem": [- 106+ 107],"isUIEditable": [- 106+ 107],"isUIReadOnly": [- 106+ 107],"objectMetadataId": [- 482+ 483],"or": [- 245+ 246],"__typename": [1@@ -4513,16 +4515,16 @@ export default {4],"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"objectMetadataId": [- 481+ 482],"roleId": [- 481+ 482],"__typename": [1@@ -4536,10 +4538,10 @@ export default {4],"fieldMetadataId": [- 481+ 482],"objectMetadataId": [- 481+ 482],"__typename": [1@@ -4547,7 +4549,7 @@ export default {},"FieldRichTextConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -4555,7 +4557,7 @@ export default {},"FieldsConfiguration": {"configurationType": [- 605+ 606],"newFieldDefaultVisibility": [4@@ -4572,16 +4574,16 @@ export default {},"File": {"createdAt": [- 185+ 186],"id": [- 481+ 482],"path": [1],"size": [- 10+ 11],"__typename": [1@@ -4592,7 +4594,7 @@ export default {1],"id": [- 481+ 482],"__typename": [1@@ -4604,10 +4606,10 @@ export default {1],"expiresAt": [- 185+ 186],"fileId": [- 481+ 482],"uploadUrl": [1@@ -4618,16 +4620,16 @@ export default {},"FileWithSignedUrl": {"createdAt": [- 185+ 186],"id": [- 481+ 482],"path": [1],"size": [- 10+ 11],"url": [1@@ -4638,7 +4640,7 @@ export default {},"FilesConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -4646,7 +4648,7 @@ export default {},"FindAvailableSSOIDP": {"id": [- 481+ 482],"issuer": [1@@ -4655,13 +4657,13 @@ export default {1],"status": [- 433+ 434],"type": [- 269+ 270],"workspace": [- 625+ 626],"__typename": [1@@ -4669,19 +4671,19 @@ export default {},"FindMessageSuppressionsInput": {"limit": [- 7+ 8],"offset": [- 7+ 8],"reason": [- 326+ 327],"searchTerm": [1],"unsubscribeTopicId": [- 481+ 482],"__typename": [1@@ -4689,7 +4691,7 @@ export default {},"FormFieldConfiguration": {"configurationType": [- 605+ 606],"fieldMetadataId": [1@@ -4703,16 +4705,16 @@ export default {1],"applicationId": [- 481+ 482],"applicationName": [1],"applicationTokenPair": [- 58+ 59],"applicationVariables": [- 286+ 287],"builtComponentChecksum": [1@@ -4724,7 +4726,7 @@ export default {1],"createdAt": [- 185+ 186],"description": [1@@ -4733,7 +4735,7 @@ export default {1],"id": [- 481+ 482],"isHeadless": [4@@ -4745,10 +4747,10 @@ export default {1],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"usesSdkClient": [4@@ -4759,13 +4761,13 @@ export default {},"FrontComponentConfiguration": {"configurationType": [- 605+ 606],"frontComponentId": [- 481+ 482],"headerCommandMenuItemUniversalIdentifiers": [- 481+ 482],"__typename": [1@@ -4784,7 +4786,7 @@ export default {},"GetApiKeyInput": {"id": [- 481+ 482],"__typename": [1@@ -4795,7 +4797,7 @@ export default {1],"id": [- 481+ 482],"type": [1@@ -4806,7 +4808,7 @@ export default {},"GetAuthorizationUrlForSSOInput": {"identityProviderId": [- 481+ 482],"workspaceInviteHash": [1@@ -4817,7 +4819,7 @@ export default {},"GrantApplicationCapabilitiesInput": {"applicationId": [- 481+ 482],"capabilities": [1@@ -4829,16 +4831,16 @@ export default {"GraphOrderBy": {},"GridPosition": {"column": [- 10+ 11],"columnSpan": [- 10+ 11],"row": [- 10+ 11],"rowSpan": [- 10+ 11],"__typename": [1@@ -4847,7 +4849,7 @@ export default {"IdentityProviderType": {},"IframeConfiguration": {"configurationType": [- 605+ 606],"url": [1@@ -4869,13 +4871,13 @@ export default {},"ImapSmtpCaldavPublicConnectionParameters": {"CALDAV": [- 273+ 274],"IMAP": [- 273+ 274],"SMTP": [- 273+ 274],"name": [1@@ -4886,13 +4888,13 @@ export default {},"ImapSmtpCaldavPublicConnectionParams": {"connectionSecurity": [- 212+ 213],"host": [1],"port": [- 10+ 11],"username": [1@@ -4903,10 +4905,10 @@ export default {},"Impersonate": {"loginToken": [- 64+ 65],"workspace": [- 629+ 630],"__typename": [1@@ -4914,16 +4916,16 @@ export default {},"Index": {"createdAt": [- 185+ 186],"id": [- 481+ 482],"indexFieldMetadataList": [- 277+ 278],"indexType": [- 279+ 280],"indexWhereClause": [1@@ -4938,7 +4940,7 @@ export default {1],"updatedAt": [- 185+ 186],"__typename": [1@@ -4946,10 +4948,10 @@ export default {},"IndexEdge": {"cursor": [- 140+ 141],"node": [- 275+ 276],"__typename": [1@@ -4957,22 +4959,22 @@ export default {},"IndexField": {"createdAt": [- 185+ 186],"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"order": [- 10+ 11],"subFieldName": [1],"updatedAt": [- 185+ 186],"__typename": [1@@ -4980,16 +4982,16 @@ export default {},"IndexFilter": {"and": [- 278+ 279],"id": [- 482+ 483],"isCustom": [- 106+ 107],"or": [- 278+ 279],"__typename": [1@@ -4998,10 +5000,10 @@ export default {"IndexType": {},"IngestAppMessagesInput": {"messageChannelId": [- 481+ 482],"messages": [- 33+ 34],"__typename": [1@@ -5009,7 +5011,7 @@ export default {},"IngestAppMessagesOutput": {"messages": [- 282+ 283],"__typename": [1@@ -5020,10 +5022,10 @@ export default {1],"messageId": [- 481+ 482],"messageThreadId": [- 481+ 482],"__typename": [1@@ -5061,28 +5063,28 @@ export default {"JobState": {},"JobStatus": {"attemptsMade": [- 7+ 8],"enqueuedAt": [- 10+ 11],"failedReason": [1],"finishedAt": [- 10+ 11],"jobId": [1],"progress": [- 7+ 8],"startedAt": [- 10+ 11],"state": [- 288+ 289],"__typename": [1@@ -5090,19 +5092,19 @@ export default {},"LineChartConfiguration": {"aggregateFieldMetadataId": [- 481+ 482],"aggregateOperation": [- 18+ 19],"axisNameDisplay": [- 72+ 73],"color": [1],"configurationType": [- 605+ 606],"description": [1@@ -5114,10 +5116,10 @@ export default {4],"filter": [- 286+ 287],"firstDayOfTheWeek": [- 7+ 8],"isCumulative": [4@@ -5126,16 +5128,16 @@ export default {4],"numberFormat": [- 121+ 122],"omitNullValues": [4],"primaryAxisDateGranularity": [- 359+ 360],"primaryAxisGroupByFieldMetadataId": [- 481+ 482],"primaryAxisGroupBySubFieldName": [1@@ -5144,19 +5146,19 @@ export default {1],"primaryAxisOrderBy": [- 267+ 268],"rangeMax": [- 10+ 11],"rangeMin": [- 10+ 11],"secondaryAxisGroupByDateGranularity": [- 359+ 360],"secondaryAxisGroupByFieldMetadataId": [- 481+ 482],"secondaryAxisGroupBySubFieldName": [1@@ -5165,7 +5167,7 @@ export default {1],"secondaryAxisOrderBy": [- 267+ 268],"splitMultiValueFields": [4@@ -5179,13 +5181,13 @@ export default {},"LineChartData": {"formattedToRawLookup": [- 286+ 287],"hasTooManyGroups": [4],"series": [- 294+ 295],"showDataLabels": [4@@ -5205,10 +5207,10 @@ export default {},"LineChartDataInput": {"configuration": [- 286+ 287],"objectMetadataId": [- 481+ 482],"__typename": [1@@ -5219,7 +5221,7 @@ export default {1],"y": [- 10+ 11],"__typename": [1@@ -5227,7 +5229,7 @@ export default {},"LineChartSeries": {"data": [- 293+ 294],"key": [1@@ -5255,7 +5257,7 @@ export default {},"ListAppMessageChannelsInput": {"connectedAccountId": [- 481+ 482],"__typename": [1@@ -5263,10 +5265,10 @@ export default {},"Location": {"lat": [- 10+ 11],"lng": [- 10+ 11],"__typename": [1@@ -5274,34 +5276,34 @@ export default {},"LogicFunction": {"applicationId": [- 481+ 482],"canRunOnDemand": [4],"createdAt": [- 185+ 186],"cronTriggerSettings": [- 286+ 287],"databaseEventTriggerSettings": [- 286+ 287],"description": [1],"executionMode": [- 299+ 300],"handlerName": [1],"httpRouteTriggerSettings": [- 286+ 287],"id": [- 481+ 482],"name": [1@@ -5313,19 +5315,19 @@ export default {1],"timeoutSeconds": [- 10+ 11],"toolTriggerSettings": [- 286+ 287],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"workflowActionTriggerSettings": [- 286+ 287],"__typename": [1@@ -5334,19 +5336,19 @@ export default {"LogicFunctionExecutionMode": {},"LogicFunctionExecutionResult": {"data": [- 286+ 287],"duration": [- 10+ 11],"error": [- 286+ 287],"logs": [1],"status": [- 301+ 302],"__typename": [1@@ -5355,7 +5357,7 @@ export default {"LogicFunctionExecutionStatus": {},"LogicFunctionIdInput": {"id": [- 9+ 10],"__typename": [1@@ -5369,7 +5371,7 @@ export default {1],"universalIdentifier": [- 481+ 482],"__typename": [1@@ -5377,19 +5379,19 @@ export default {},"LogicFunctionLogsInput": {"applicationId": [- 481+ 482],"applicationUniversalIdentifier": [- 481+ 482],"id": [- 481+ 482],"name": [1],"universalIdentifier": [- 481+ 482],"__typename": [1@@ -5397,7 +5399,7 @@ export default {},"LoginToken": {"loginToken": [- 64+ 65],"__typename": [1@@ -5458,7 +5460,7 @@ export default {1],"installCount": [- 7+ 8],"isListed": [4@@ -5476,7 +5478,7 @@ export default {1],"manifest": [- 286+ 287],"name": [1@@ -5488,7 +5490,7 @@ export default {1],"roles": [- 308+ 309],"screenshots": [1@@ -5497,7 +5499,7 @@ export default {1],"sourceType": [- 54+ 55],"termsUrl": [1@@ -5535,7 +5537,7 @@ export default {1],"fieldPermissions": [- 309+ 310],"icon": [1@@ -5544,7 +5546,7 @@ export default {1],"objectPermissions": [- 310+ 311],"permissionFlagUniversalIdentifiers": [1@@ -5601,7 +5603,7 @@ export default {},"MessageCampaignBodyConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -5609,7 +5611,7 @@ export default {},"MessageCampaignDetailsConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -5617,16 +5619,16 @@ export default {},"MessageChannel": {"connectedAccount": [- 138+ 139],"connectedAccountId": [- 481+ 482],"contactAutoCreationPolicy": [- 314+ 315],"createdAt": [- 185+ 186],"displayName": [1@@ -5641,7 +5643,7 @@ export default {1],"id": [- 481+ 482],"isContactAutoCreationEnabled": [4@@ -5650,37 +5652,37 @@ export default {4],"messageFolderImportPolicy": [- 321+ 322],"pendingGroupEmailsAction": [- 315+ 316],"syncStage": [- 316+ 317],"syncStageStartedAt": [- 185+ 186],"syncStatus": [- 317+ 318],"syncedAt": [- 185+ 186],"throttleFailureCount": [- 10+ 11],"throttleRetryAfter": [- 185+ 186],"type": [- 318+ 319],"updatedAt": [- 185+ 186],"visibility": [- 319+ 320],"__typename": [1@@ -5694,13 +5696,13 @@ export default {"MessageChannelVisibility": {},"MessageFolder": {"createdAt": [- 185+ 186],"externalId": [1],"id": [- 481+ 482],"isSentFolder": [4@@ -5709,7 +5711,7 @@ export default {4],"messageChannelId": [- 481+ 482],"name": [1@@ -5718,10 +5720,10 @@ export default {1],"pendingSyncAction": [- 322+ 323],"updatedAt": [- 185+ 186],"__typename": [1@@ -5732,22 +5734,22 @@ export default {"MessageParticipantRole": {},"MessageSuppression": {"createdAt": [- 185+ 186],"emailAddress": [1],"id": [- 481+ 482],"reason": [- 326+ 327],"source": [- 327+ 328],"unsubscribeTopicId": [- 481+ 482],"__typename": [1@@ -5755,10 +5757,10 @@ export default {},"MessageSuppressionList": {"records": [- 324+ 325],"totalCount": [- 7+ 8],"__typename": [1@@ -5771,13 +5773,13 @@ export default {1],"properties": [- 357+ 358],"recordId": [1],"type": [- 329+ 330],"updatedCollectionHash": [1@@ -5799,16 +5801,16 @@ export default {1],"objectMetadataId": [- 481+ 482],"property": [1],"provenance": [- 333+ 334],"recordId": [- 481+ 482],"sourceValue": [1@@ -5837,13 +5839,13 @@ export default {"MetadataTranslationProvenance": {},"MetadataTranslationsInput": {"fieldMetadataId": [- 481+ 482],"locale": [1],"objectMetadataId": [- 481+ 482],"__typename": [1@@ -5852,13 +5854,13 @@ export default {"MetadataWritability": {},"MinimalMetadata": {"collectionHashes": [- 133+ 134],"objectMetadataItems": [- 337+ 338],"views": [- 338+ 339],"__typename": [1@@ -5872,7 +5874,7 @@ export default {1],"id": [- 481+ 482],"isActive": [4@@ -5901,16 +5903,16 @@ export default {},"MinimalView": {"id": [- 481+ 482],"key": [- 597+ 598],"objectMetadataId": [- 481+ 482],"type": [- 601+ 602],"__typename": [1@@ -5919,16 +5921,16 @@ export default {"ModelFamily": {},"Mutation": {"activateSkill": [- 456,+ 457,{"id": [- 481,+ 482,"UUID!"]}],"activateWorkspace": [- 610,+ 611,{"data": [0,@@ -5937,14 +5939,14 @@ export default {}],"addAgentChatThreadParticipants": [- 481,+ 482,{"threadId": [- 481,+ 482,"UUID!"],"workspaceMemberIds": [- 481,+ 482,"[UUID!]!"]}@@ -5958,23 +5960,14 @@ export default {]}],- "archiveAgentChatThread": [- 11,- {- "threadId": [- 481,- "UUID!"- ]- }- ],"assignAgentChatThread": [4,{"assigneeWorkspaceMemberId": [- 481+ 482],"threadId": [- 481,+ 482,"UUID!"]}@@ -5983,11 +5976,11 @@ export default {4,{"agentId": [- 481,+ 482,"UUID!"],"roleId": [- 481,+ 482,"UUID!"]}@@ -5996,17 +5989,17 @@ export default {4,{"apiKeyId": [- 481,+ 482,"UUID!"],"roleId": [- 481,+ 482,"UUID!"]}],"authorizeApp": [- 67,+ 68,{"clientId": [1,@@ -6031,28 +6024,28 @@ export default {}],"cancelMessageCampaign": [- 117,+ 118,{"input": [- 116,+ 117,"CancelMessageCampaignInput!"]}],"cancelSwitchBillingInterval": [- 104+ 105],"cancelSwitchBillingPlan": [- 104+ 105],"cancelSwitchResourceCreditPrice": [- 104+ 105],"checkCustomDomainValidRecords": [- 206+ 207],"checkPublicDomainValidRecords": [- 206,+ 207,{"domain": [1,@@ -6061,14 +6054,14 @@ export default {}],"checkoutSession": [- 98,+ 99,{"plan": [- 89,+ 90,"BillingPlanKey!"],"recurringInterval": [- 462,+ 463,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -6081,7 +6074,7 @@ export default {}],"claimApplicationRegistrationOwnership": [- 53,+ 54,{"applicationRegistrationId": [1,@@ -6090,29 +6083,29 @@ export default {}],"completeAppTarballUpload": [- 53,+ 54,{"fileId": [- 481,+ 482,"UUID!"]}],"completeApplicationFileUploads": [- 137,+ 138,{"applicationUniversalIdentifier": [1,"String!"],"fileIds": [- 481,+ 482,"[UUID!]!"]}],"completeBookCallOnboardingStep": [- 363,+ 364,{"hasBookedCall": [4,@@ -6125,7 +6118,7 @@ export default {}],"completeFileUpload": [- 255,+ 256,{"fileId": [1,@@ -6134,7 +6127,7 @@ export default {}],"completeNewWorkspaceLogoUpload": [- 255,+ 256,{"fileId": [1,@@ -6147,7 +6140,7 @@ export default {}],"completeWorkspaceLogoUpload": [- 255,+ 256,{"fileId": [1,@@ -6156,7 +6149,7 @@ export default {}],"completeWorkspaceMemberProfilePictureUpload": [- 255,+ 256,{"fileId": [1,@@ -6165,80 +6158,80 @@ export default {}],"createApiKey": [- 27,+ 28,{"input": [- 143,+ 144,"CreateApiKeyInput!"]}],"createAppMessageChannel": [- 313,+ 314,{"input": [- 144,+ 145,"CreateAppMessageChannelInput!"]}],"createApplicationFileUploads": [- 145,+ 146,{"applicationUniversalIdentifier": [1,"String!"],"files": [- 48,+ 49,"[ApplicationFileUploadRequestInput!]!"]}],"createApplicationRegistration": [- 146,+ 147,{"input": [- 147,+ 148,"CreateApplicationRegistrationInput!"]}],"createApprovedAccessDomain": [- 61,+ 62,{"input": [- 148,+ 149,"CreateApprovedAccessDomainInput!"]}],"createBillingPaymentMethodSetupIntent": [- 87+ 88],"createCalendarEvent": [- 150,+ 151,{"input": [- 149,+ 150,"CreateCalendarEventInput!"]}],"createChatThread": [- 8+ 9],"createCommandMenuItem": [- 134,+ 135,{"input": [- 151,+ 152,"CreateCommandMenuItemInput!"]}],"createDevelopmentApplication": [- 204,+ 205,{"name": [1,@@ -6251,25 +6244,25 @@ export default {}],"createEmailGroupChannel": [- 153,+ 154,{"input": [- 152,+ 153,"CreateEmailGroupChannelInput!"]}],"createEmailingDomain": [- 215,+ 216,{"input": [- 154,+ 155,"CreateEmailingDomainInput!"]}],"createFileUpload": [- 254,+ 255,{"fieldMetadataId": [1@@ -6278,7 +6271,7 @@ export default {1],"fileFolder": [- 253,+ 254,"FileFolder!"],"filename": [@@ -6286,83 +6279,83 @@ export default {"String!"],"size": [- 10,+ 11,"Float!"]}],"createFrontComponent": [- 260,+ 261,{"input": [- 156,+ 157,"CreateFrontComponentInput!"]}],"createManyNavigationMenuItems": [- 342,+ 343,{"inputs": [- 161,+ 162,"[CreateNavigationMenuItemInput!]!"]}],"createManyViewFieldGroups": [- 591,+ 592,{"inputs": [- 175,+ 176,"[CreateViewFieldGroupInput!]!"]}],"createManyViewFields": [- 590,+ 591,{"inputs": [- 176,+ 177,"[CreateViewFieldInput!]!"]}],"createManyViewGroups": [- 596,+ 597,{"inputs": [- 179,+ 180,"[CreateViewGroupInput!]!"]}],"createMessageSuppression": [- 324,+ 325,{"input": [- 160,+ 161,"CreateMessageSuppressionInput!"]}],"createNavigationMenuItem": [- 342,+ 343,{"input": [- 161,+ 162,"CreateNavigationMenuItemInput!"]}],"createNewWorkspaceLogoUpload": [- 254,+ 255,{"filename": [1,"String!"],"size": [- 10,+ 11,"Float!"],"workspaceId": [@@ -6372,30 +6365,30 @@ export default {}],"createOIDCIdentityProvider": [- 453,+ 454,{"input": [- 451,+ 452,"SetupOIDCSsoInput!"]}],"createObjectEvent": [- 24,+ 25,{"event": [1,"String!"],"objectMetadataId": [- 481,+ 482,"UUID!"],"properties": [- 286+ 287],"recordId": [- 481,+ 482,"UUID!"]}@@ -6404,85 +6397,85 @@ export default {3,{"input": [- 142,+ 143,"CreateAgentInput!"]}],"createOneField": [- 240,+ 241,{"input": [- 163,+ 164,"CreateOneFieldMetadataInput!"]}],"createOneIndex": [- 275,+ 276,{"input": [- 164,+ 165,"CreateOneIndexInput!"]}],"createOneLogicFunction": [- 298,+ 299,{"input": [- 159,+ 160,"CreateLogicFunctionFromSourceInput!"]}],"createOneObject": [- 345,+ 346,{"input": [- 165,+ 166,"CreateOneObjectInput!"]}],"createOneRole": [- 416,+ 417,{"createRoleInput": [- 170,+ 171,"CreateRoleInput!"]}],"createPageLayout": [- 366,+ 367,{"input": [- 166,+ 167,"CreatePageLayoutInput!"]}],"createPageLayoutTab": [- 367,+ 368,{"input": [- 167,+ 168,"CreatePageLayoutTabInput!"]}],"createPageLayoutWidget": [- 370,+ 371,{"input": [- 168,+ 169,"CreatePageLayoutWidgetInput!"]}],"createPublicDomain": [- 387,+ 388,{"applicationId": [1,@@ -6495,36 +6488,36 @@ export default {}],"createSAMLIdentityProvider": [- 453,+ 454,{"input": [- 452,+ 453,"SetupSAMLSsoInput!"]}],"createSkill": [- 456,+ 457,{"input": [- 171,+ 172,"CreateSkillInput!"]}],"createSubscriptionPaymentIntent": [- 87,+ 88,{"idempotencyKey": [1,"String!"],"plan": [- 89,+ 90,"BillingPlanKey!"],"recurringInterval": [- 462,+ 463,"SubscriptionInterval!"],"requirePaymentMethod": [@@ -6537,109 +6530,109 @@ export default {}],"createUnsubscribeTopic": [- 484,+ 485,{"input": [- 172,+ 173,"CreateUnsubscribeTopicInput!"]}],"createUsageLimit": [- 563,+ 564,{"input": [- 173,+ 174,"CreateUsageLimitInput!"]}],"createValidationRule": [- 582,+ 583,{"input": [- 174,+ 175,"CreateValidationRuleInput!"]}],"createView": [- 587,+ 588,{"input": [- 180,+ 181,"CreateViewInput!"]}],"createViewField": [- 590,+ 591,{"input": [- 176,+ 177,"CreateViewFieldInput!"]}],"createViewFieldGroup": [- 591,+ 592,{"input": [- 175,+ 176,"CreateViewFieldGroupInput!"]}],"createViewFilter": [- 592,+ 593,{"input": [- 178,+ 179,"CreateViewFilterInput!"]}],"createViewFilterGroup": [- 593,+ 594,{"input": [- 177,+ 178,"CreateViewFilterGroupInput!"]}],"createViewGroup": [- 596,+ 597,{"input": [- 179,+ 180,"CreateViewGroupInput!"]}],"createViewSort": [- 599,+ 600,{"input": [- 181,+ 182,"CreateViewSortInput!"]}],"createWebhook": [- 603,+ 604,{"input": [- 182,+ 183,"CreateWebhookInput!"]}],"deactivateSkill": [- 456,+ 457,{"id": [- 481,+ 482,"UUID!"]}@@ -6652,15 +6645,15 @@ export default {"String!"],"scope": [- 32+ 33]}],"deleteAppMessageChannel": [- 313,+ 314,{"id": [- 481,+ 482,"UUID!"]}@@ -6678,37 +6671,37 @@ export default {4,{"input": [- 186,+ 187,"DeleteApprovedAccessDomainInput!"]}],"deleteCommandMenuItem": [- 134,+ 135,{"id": [- 481,+ 482,"UUID!"]}],"deleteConnectedAccount": [- 138,+ 139,{"id": [- 481,+ 482,"UUID!"]}],"deleteCurrentWorkspace": [- 610+ 611],"deleteEmailGroupChannel": [- 313,+ 314,{"id": [- 481,+ 482,"UUID!"]}@@ -6723,19 +6716,19 @@ export default {}],"deleteFrontComponent": [- 260,+ 261,{"id": [- 481,+ 482,"UUID!"]}],"deleteManyNavigationMenuItems": [- 342,+ 343,{"ids": [- 481,+ 482,"[UUID!]!"]}@@ -6744,16 +6737,16 @@ export default {4,{"id": [- 481,+ 482,"UUID!"]}],"deleteNavigationMenuItem": [- 342,+ 343,{"id": [- 481,+ 482,"UUID!"]}@@ -6762,43 +6755,43 @@ export default {3,{"input": [- 12,+ 13,"AgentIdInput!"]}],"deleteOneField": [- 240,+ 241,{"input": [- 187,+ 188,"DeleteOneFieldInput!"]}],"deleteOneIndex": [- 275,+ 276,{"input": [- 188,+ 189,"DeleteOneIndexInput!"]}],"deleteOneLogicFunction": [- 298,+ 299,{"input": [- 302,+ 303,"LogicFunctionIdInput!"]}],"deleteOneObject": [- 345,+ 346,{"input": [- 189,+ 190,"DeleteOneObjectInput!"]}@@ -6807,7 +6800,7 @@ export default {1,{"roleId": [- 481,+ 482,"UUID!"]}@@ -6825,34 +6818,34 @@ export default {4,{"messageId": [- 481,+ 482,"UUID!"]}],"deleteSSOIdentityProvider": [- 190,+ 191,{"input": [- 191,+ 192,"DeleteSsoInput!"]}],"deleteSkill": [- 456,+ 457,{"id": [- 481,+ 482,"UUID!"]}],"deleteTwoFactorAuthenticationMethod": [- 192,+ 193,{"twoFactorAuthenticationMethodId": [- 481,+ 482,"UUID!"]}@@ -6870,16 +6863,16 @@ export default {4,{"usageLimitId": [- 481,+ 482,"UUID!"]}],"deleteUser": [- 576+ 577],"deleteUserFromWorkspace": [- 579,+ 580,{"workspaceMemberIdToDelete": [1,@@ -6888,10 +6881,10 @@ export default {}],"deleteValidationRule": [- 582,+ 583,{"id": [- 481,+ 482,"UUID!"]}@@ -6906,28 +6899,28 @@ export default {}],"deleteViewField": [- 590,+ 591,{"input": [- 194,+ 195,"DeleteViewFieldInput!"]}],"deleteViewFieldGroup": [- 591,+ 592,{"input": [- 193,+ 194,"DeleteViewFieldGroupInput!"]}],"deleteViewFilter": [- 592,+ 593,{"input": [- 195,+ 196,"DeleteViewFilterInput!"]}@@ -6942,10 +6935,10 @@ export default {}],"deleteViewGroup": [- 596,+ 597,{"input": [- 196,+ 197,"DeleteViewGroupInput!"]}@@ -6954,16 +6947,16 @@ export default {4,{"input": [- 197,+ 198,"DeleteViewSortInput!"]}],"deleteWebhook": [- 603,+ 604,{"id": [- 481,+ 482,"UUID!"]}@@ -7014,28 +7007,28 @@ export default {}],"destroyViewField": [- 590,+ 591,{"input": [- 200,+ 201,"DestroyViewFieldInput!"]}],"destroyViewFieldGroup": [- 591,+ 592,{"input": [- 199,+ 200,"DestroyViewFieldGroupInput!"]}],"destroyViewFilter": [- 592,+ 593,{"input": [- 201,+ 202,"DestroyViewFilterInput!"]}@@ -7050,10 +7043,10 @@ export default {}],"destroyViewGroup": [- 596,+ 597,{"input": [- 202,+ 203,"DestroyViewGroupInput!"]}@@ -7062,49 +7055,49 @@ export default {4,{"input": [- 203,+ 204,"DestroyViewSortInput!"]}],"disconnectConnectedAccount": [- 138,+ 139,{"id": [- 481,+ 482,"UUID!"]}],"duplicateDashboard": [- 207,+ 208,{"id": [- 481,+ 482,"UUID!"]}],"duplicateMessageList": [- 208,+ 209,{"id": [- 481,+ 482,"UUID!"]}],"editSSOIdentityProvider": [- 209,+ 210,{"input": [- 210,+ 211,"EditSsoInput!"]}],"emailPasswordResetLink": [- 213,+ 214,{"captchaToken": [1@@ -7114,48 +7107,48 @@ export default {"String!"],"workspaceId": [- 481+ 482]}],"endSubscriptionTrialPeriod": [- 82+ 83],"enqueueJob": [- 222,+ 223,{"input": [- 220,+ 221,"EnqueueJobInput!"]}],"enqueueJobs": [- 224,+ 225,{"input": [- 223,+ 224,"EnqueueJobsInput!"]}],"enrichWorkspaceCompany": [- 614+ 615],"executeOneLogicFunction": [- 300,+ 301,{"input": [- 237,+ 238,"ExecuteOneLogicFunctionInput!"]}],"generateApiKeyToken": [- 29,+ 30,{"apiKeyId": [- 481,+ 482,"UUID!"],"expiresAt": [@@ -7165,34 +7158,34 @@ export default {}],"generateFrontComponentApplicationTokenPair": [- 58,+ 59,{"applicationId": [- 481,+ 482,"UUID!"]}],"generatePlaygroundToken": [- 64+ 65],"generateTransientToken": [- 472+ 473],"generateTwoFactorAuthenticationRecoveryCode": [- 478,+ 479,{"otp": [1],"userId": [- 481,+ 482,"UUID!"]}],"getAuthTokensFromLoginToken": [- 66,+ 67,{"loginToken": [1,@@ -7205,7 +7198,7 @@ export default {}],"getAuthTokensFromOTP": [- 66,+ 67,{"captchaToken": [1@@ -7225,7 +7218,7 @@ export default {}],"getAuthTokensFromSSOExchangeToken": [- 66,+ 67,{"ssoExchangeToken": [1,@@ -7234,7 +7227,7 @@ export default {}],"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [- 479,+ 480,{"captchaToken": [1@@ -7254,16 +7247,16 @@ export default {}],"getAuthorizationUrlForSSO": [- 264,+ 265,{"input": [- 265,+ 266,"GetAuthorizationUrlForSSOInput!"]}],"getLoginTokenFromCredentials": [- 305,+ 306,{"captchaToken": [1@@ -7289,41 +7282,41 @@ export default {}],"goBackToPreviousOnboardingStep": [- 362+ 363],"grantApplicationCapabilities": [- 37,+ 38,{"input": [- 266,+ 267,"GrantApplicationCapabilitiesInput!"]}],"impersonate": [- 274,+ 275,{"userId": [- 481,+ 482,"UUID!"],"workspaceId": [- 481,+ 482,"UUID!"]}],"ingestAppMessages": [- 281,+ 282,{"input": [- 280,+ 281,"IngestAppMessagesInput!"]}],"initiateOTPProvisioning": [- 283,+ 284,{"loginToken": [1,@@ -7336,10 +7329,10 @@ export default {}],"initiateOTPProvisioningForAuthenticatedUser": [- 283+ 284],"installApplication": [- 35,+ 36,{"universalIdentifier": [1,@@ -7362,57 +7355,30 @@ export default {]}],- "markAgentChatThreadAsRead": [- 11,- {- "threadId": [- 481,- "UUID!"- ]- }- ],- "markAgentChatThreadAsUnread": [- 11,- {- "threadId": [- 481,- "UUID!"- ]- }- ],- "moveAgentChatThreadToInbox": [- 11,- {- "threadId": [- 481,- "UUID!"- ]- }- ],"refreshEnterpriseValidityToken": [4],"releaseEnterpriseServerBinding": [- 225+ 226],"removeQueryFromEventStream": [4,{"input": [- 411,+ 412,"RemoveQueryFromEventStreamInput!"]}],"removeRecordShare": [- 403,+ 404,{"principal": [- 400,+ 401,"RecordSharePrincipalInput!"],"target": [- 408,+ 409,"RecordTargetInput!"]}@@ -7421,13 +7387,13 @@ export default {4,{"agentId": [- 481,+ 482,"UUID!"]}],"renewApplicationToken": [- 58,+ 59,{"applicationRefreshToken": [1,@@ -7436,7 +7402,7 @@ export default {}],"renewToken": [- 66,+ 67,{"appToken": [1,@@ -7448,13 +7414,13 @@ export default {4,{"input": [- 412,+ 413,"ReportAppConnectionAuthFailureInput!"]}],"resendEmailVerificationToken": [- 413,+ 414,{"email": [1,@@ -7467,7 +7433,7 @@ export default {}],"resendWorkspaceInvitation": [- 443,+ 444,{"appTokenId": [1,@@ -7476,16 +7442,16 @@ export default {}],"resetCommandMenuItem": [- 134,+ 135,{"id": [- 481,+ 482,"UUID!"]}],"resetPageLayoutTabToDefault": [- 367,+ 368,{"id": [1,@@ -7494,7 +7460,7 @@ export default {}],"resetPageLayoutToDefault": [- 366,+ 367,{"id": [1,@@ -7503,7 +7469,7 @@ export default {}],"resetPageLayoutWidgetToDefault": [- 370,+ 371,{"id": [1,@@ -7512,34 +7478,34 @@ export default {}],"resetTimelineActivityType": [- 467,+ 468,{"id": [- 481,+ 482,"UUID!"]}],"retryChatMessage": [- 436,+ 437,{"modelId": [1],"threadId": [- 481,+ 482,"UUID!"]}],"revokeAllOtherUserSessions": [- 7+ 8],"revokeApiKey": [- 27,+ 28,{"input": [- 414,+ 415,"RevokeApiKeyInput!"]}@@ -7548,7 +7514,7 @@ export default {4,{"applicationAuthorizationId": [- 481,+ 482,"UUID!"]}@@ -7557,7 +7523,7 @@ export default {4,{"userId": [- 481,+ 482,"UUID!"]}@@ -7566,13 +7532,13 @@ export default {4,{"userSessionId": [- 481,+ 482,"UUID!"]}],"rotateApplicationRegistrationClientSecret": [- 418,+ 419,{"id": [1,@@ -7581,28 +7547,28 @@ export default {}],"runAgent": [- 429,+ 430,{"input": [- 425,+ 426,"RunAgentInput!"]}],"runApplicationHealthCheck": [- 51,+ 52,{"applicationId": [- 481,+ 482,"UUID!"]}],"saveImapSmtpCaldavAccount": [- 271,+ 272,{"connectionParameters": [- 211,+ 212,"EmailAccountConnectionParameters!"],"handle": [@@ -7610,26 +7576,26 @@ export default {"String!"],"id": [- 481+ 482]}],"sendChatMessage": [- 436,+ 437,{"browsingContext": [- 286+ 287],"fileAttachments": [- 252,+ 253,"[FileAttachmentInput!]"],"mentionedWorkspaceMemberIds": [- 481,+ 482,"[UUID!]"],"messageId": [- 481,+ 482,"UUID!"],"modelId": [@@ -7640,70 +7606,70 @@ export default {"String!"],"threadId": [- 481,+ 482,"UUID!"]}],"sendEmail": [- 439,+ 440,{"input": [- 438,+ 439,"SendEmailInput!"]}],"sendInboxMessage": [- 442,+ 443,{"input": [- 441,+ 442,"SendInboxMessageInput!"]}],"sendInvitations": [- 443,+ 444,{"emails": [1,"[String!]!"],"roleId": [- 481+ 482]}],"sendMessageCampaign": [- 445,+ 446,{"input": [- 444,+ 445,"SendMessageCampaignInput!"]}],"sendMessageCampaignTest": [- 440,+ 441,{"input": [- 446,+ 447,"SendMessageCampaignTestInput!"]}],"setAppKeyValue": [- 31,+ 32,{"input": [- 448,+ 449,"SetAppKeyValueInput!"]}],"setEnterpriseKey": [- 225,+ 226,{"enterpriseKey": [1,@@ -7712,37 +7678,37 @@ export default {}],"setRecordGeneralAccess": [- 403,+ 404,{"accessLevel": [- 399,+ 400,"RecordShareAccessLevel!"],"target": [- 408,+ 409,"RecordTargetInput!"]}],"setRecordShare": [- 403,+ 404,{"accessLevel": [- 399,+ 400,"RecordShareAccessLevel!"],"principal": [- 400,+ 401,"RecordSharePrincipalInput!"],"target": [- 408,+ 409,"RecordTargetInput!"]}],"setResourceCreditSubscriptionPrice": [- 104,+ 105,{"priceId": [1,@@ -7751,7 +7717,7 @@ export default {}],"signIn": [- 71,+ 72,{"captchaToken": [1@@ -7781,7 +7747,7 @@ export default {}],"signUp": [- 71,+ 72,{"captchaToken": [1@@ -7803,15 +7769,15 @@ export default {}],"signUpInNewWorkspace": [- 454,+ 455,{"input": [- 455+ 456]}],"signUpInWorkspace": [- 454,+ 455,{"captchaToken": [1@@ -7831,7 +7797,7 @@ export default {1],"workspaceId": [- 481+ 482],"workspaceInviteHash": [1@@ -7842,7 +7808,7 @@ export default {}],"skipSyncEmailOnboardingStep": [- 363,+ 364,{"isAutoSkipped": [4,@@ -7850,36 +7816,23 @@ export default {]}],- "snoozeAgentChatThread": [- 11,- {- "snoozedUntil": [- 185,- "DateTime!"- ],- "threadId": [- 481,- "UUID!"- ]- }- ],"startChannelSync": [- 120,+ 121,{"connectedAccountId": [- 481,+ 482,"UUID!"]}],"startWorkspaceSetupChat": [- 458,+ 459,{"companyContext": [- 286+ 287],"personContext": [- 286+ 287]}],@@ -7887,31 +7840,22 @@ export default {4,{"threadId": [- 481,+ 482,"UUID!"]}],"stopImpersonation": [- 459- ],- "subscribeToAgentChatThread": [- 11,- {- "threadId": [- 481,- "UUID!"- ]- }+ 460],"switchBillingPlan": [- 104+ 105],"switchSubscriptionInterval": [- 104+ 105],"syncApplication": [- 624,+ 625,{"dryRun": [4@@ -7920,7 +7864,7 @@ export default {4],"manifest": [- 286,+ 287,"JSON!"]}@@ -7929,7 +7873,7 @@ export default {4],"trackAnalytics": [- 24,+ 25,{"event": [1@@ -7938,16 +7882,16 @@ export default {1],"properties": [- 286+ 287],"type": [- 25,+ 26,"AnalyticsType!"]}],"transferApplicationRegistrationOwnership": [- 53,+ 54,{"applicationRegistrationId": [1,@@ -7960,19 +7904,19 @@ export default {}],"triggerInstallApplicationJob": [- 474,+ 475,{"input": [- 473,+ 474,"TriggerInstallApplicationJobInput!"]}],"triggerUninstallApplicationJob": [- 476,+ 477,{"input": [- 475,+ 476,"TriggerUninstallApplicationJobInput!"]}@@ -7986,159 +7930,166 @@ export default {]}],- "unsubscribeFromAgentChatThread": [- 11,+ "updateAgentChatThreadInboxState": [+ 12,{- "threadId": [- 481,- "UUID!"+ "action": [+ 6,+ "AgentChatInboxAction!"+ ],+ "snoozedUntil": [+ 186+ ],+ "threadIds": [+ 482,+ "[UUID!]!"]}],"updateApiKey": [- 27,+ 28,{"input": [- 487,+ 488,"UpdateApiKeyInput!"]}],"updateAppMessageChannel": [- 313,+ 314,{"input": [- 488,+ 489,"UpdateAppMessageChannelInput!"]}],"updateApplication": [- 35,+ 36,{"id": [- 481,+ 482,"UUID!"],"input": [- 489,+ 490,"UpdateApplicationInput!"]}],"updateApplicationRegistration": [- 53,+ 54,{"input": [- 490,+ 491,"UpdateApplicationRegistrationInput!"]}],"updateApplicationRegistrationVariable": [- 57,+ 58,{"input": [- 492,+ 493,"UpdateApplicationRegistrationVariableInput!"]}],"updateCalendarChannel": [- 107,+ 108,{"input": [- 494,+ 495,"UpdateCalendarChannelInput!"]}],"updateCommandMenuItem": [- 134,+ 135,{"input": [- 496,+ 497,"UpdateCommandMenuItemInput!"]}],"updateEmailGroupChannel": [- 313,+ 314,{"input": [- 497,+ 498,"UpdateEmailGroupChannelInput!"]}],"updateFrontComponent": [- 260,+ 261,{"input": [- 499,+ 500,"UpdateFrontComponentInput!"]}],"updateLabPublicFeatureFlag": [- 238,+ 239,{"input": [- 501,+ 502,"UpdateLabPublicFeatureFlagInput!"]}],"updateManyNavigationMenuItems": [- 342,+ 343,{"inputs": [- 512,+ 513,"[UpdateOneNavigationMenuItemInput!]!"]}],"updateManyObjects": [- 345,+ 346,{"inputs": [- 513,+ 514,"[UpdateOneObjectInput!]!"]}],"updateManyViewGroups": [- 596,+ 597,{"inputs": [- 535,+ 536,"[UpdateViewGroupInput!]!"]}],"updateMessageChannel": [- 313,+ 314,{"input": [- 504,+ 505,"UpdateMessageChannelInput!"]}],"updateMessageFolder": [- 320,+ 321,{"input": [- 506,+ 507,"UpdateMessageFolderInput!"]}],"updateMessageFolders": [- 320,+ 321,{"input": [- 508,+ 509,"UpdateMessageFoldersInput!"]}@@ -8161,10 +8112,10 @@ export default {}],"updateNavigationMenuItem": [- 342,+ 343,{"input": [- 512,+ 513,"UpdateOneNavigationMenuItemInput!"]}@@ -8173,7 +8124,7 @@ export default {3,{"input": [- 486,+ 487,"UpdateAgentInput!"]}@@ -8182,7 +8133,7 @@ export default {4,{"applicationId": [- 481+ 482],"key": [1,@@ -8195,10 +8146,10 @@ export default {}],"updateOneField": [- 240,+ 241,{"input": [- 511,+ 512,"UpdateOneFieldMetadataInput!"]}@@ -8207,83 +8158,83 @@ export default {4,{"input": [- 502,+ 503,"UpdateLogicFunctionFromSourceInput!"]}],"updateOneObject": [- 345,+ 346,{"input": [- 513,+ 514,"UpdateOneObjectInput!"]}],"updateOneRole": [- 416,+ 417,{"updateRoleInput": [- 520,+ 521,"UpdateRoleInput!"]}],"updatePageLayout": [- 366,+ 367,{"id": [1,"String!"],"input": [- 514,+ 515,"UpdatePageLayoutInput!"]}],"updatePageLayoutTab": [- 367,+ 368,{"id": [1,"String!"],"input": [- 515,+ 516,"UpdatePageLayoutTabInput!"]}],"updatePageLayoutWidget": [- 370,+ 371,{"id": [1,"String!"],"input": [- 517,+ 518,"UpdatePageLayoutWidgetInput!"]}],"updatePageLayoutWithTabsAndWidgets": [- 366,+ 367,{"id": [1,"String!"],"input": [- 519,+ 520,"UpdatePageLayoutWithTabsInput!"]}],"updatePasswordViaResetToken": [- 284,+ 285,{"newPassword": [1,@@ -8296,37 +8247,37 @@ export default {}],"updateSkill": [- 456,+ 457,{"input": [- 522,+ 523,"UpdateSkillInput!"]}],"updateTimelineActivityType": [- 467,+ 468,{"input": [- 523,+ 524,"UpdateTimelineActivityTypeInput!"]}],"updateUnsubscribeTopic": [- 484,+ 485,{"input": [- 524,+ 525,"UpdateUnsubscribeTopicInput!"]}],"updateUsageLimit": [- 563,+ 564,{"input": [- 525,+ 526,"UpdateUsageLimitInput!"]}@@ -8344,121 +8295,121 @@ export default {}],"updateValidationRule": [- 582,+ 583,{"input": [- 526,+ 527,"UpdateValidationRuleInput!"]}],"updateView": [- 587,+ 588,{"id": [1,"String!"],"input": [- 537,+ 538,"UpdateViewInput!"]}],"updateViewField": [- 590,+ 591,{"input": [- 530,+ 531,"UpdateViewFieldInput!"]}],"updateViewFieldGroup": [- 591,+ 592,{"input": [- 528,+ 529,"UpdateViewFieldGroupInput!"]}],"updateViewFilter": [- 592,+ 593,{"input": [- 533,+ 534,"UpdateViewFilterInput!"]}],"updateViewFilterGroup": [- 593,+ 594,{"id": [1,"String!"],"input": [- 532,+ 533,"UpdateViewFilterGroupInput!"]}],"updateViewGroup": [- 596,+ 597,{"input": [- 535,+ 536,"UpdateViewGroupInput!"]}],"updateViewSort": [- 599,+ 600,{"input": [- 538,+ 539,"UpdateViewSortInput!"]}],"updateWebhook": [- 603,+ 604,{"input": [- 540,+ 541,"UpdateWebhookInput!"]}],"updateWorkspace": [- 610,+ 611,{"data": [- 543,+ 544,"UpdateWorkspaceInput!"]}],"updateWorkspaceAllowedIframeOrigins": [- 610,+ 611,{"data": [- 542,+ 543,"UpdateWorkspaceAllowedIframeOriginsInput!"]}],"updateWorkspaceMemberRole": [- 619,+ 620,{"roleId": [- 481,+ 482,"UUID!"],"workspaceMemberId": [- 481,+ 482,"UUID!"]}@@ -8467,7 +8418,7 @@ export default {4,{"input": [- 544,+ 545,"UpdateWorkspaceMemberSettingsInput!"]}@@ -8486,10 +8437,10 @@ export default {}],"uploadAppTarball": [- 53,+ 54,{"file": [- 545,+ 546,"Upload!"],"universalIdentifier": [@@ -8498,18 +8449,18 @@ export default {}],"uploadApplicationFile": [- 251,+ 252,{"applicationUniversalIdentifier": [1,"String!"],"file": [- 545,+ 546,"Upload!"],"fileFolder": [- 253,+ 254,"FileFolder!"],"filePath": [@@ -8519,23 +8470,23 @@ export default {}],"uploadFilesFieldFileByUniversalIdentifier": [- 255,+ 256,{"fieldMetadataUniversalIdentifier": [1,"String!"],"file": [- 545,+ 546,"Upload!"]}],"uploadNewWorkspaceLogo": [- 255,+ 256,{"file": [- 545,+ 546,"Upload!"],"workspaceId": [@@ -8545,88 +8496,88 @@ export default {}],"uploadWorkspaceLogo": [- 255,+ 256,{"file": [- 545,+ 546,"Upload!"]}],"uploadWorkspaceMemberProfilePicture": [- 255,+ 256,{"file": [- 545,+ 546,"Upload!"]}],"upsertFieldPermissions": [- 247,+ 248,{"upsertFieldPermissionsInput": [- 546,+ 547,"UpsertFieldPermissionsInput!"]}],"upsertFieldsWidget": [- 587,+ 588,{"input": [- 549,+ 550,"UpsertFieldsWidgetInput!"]}],"upsertObjectPermissions": [- 353,+ 354,{"upsertObjectPermissionsInput": [- 550,+ 551,"UpsertObjectPermissionsInput!"]}],"upsertPermissionFlags": [- 417,+ 418,{"upsertPermissionFlagsInput": [- 551,+ 552,"UpsertPermissionFlagsInput!"]}],"upsertRowLevelPermissionPredicates": [- 553,+ 554,{"input": [- 552,+ 553,"UpsertRowLevelPermissionPredicatesInput!"]}],"upsertViewWidget": [- 587,+ 588,{"input": [- 554,+ 555,"UpsertViewWidgetInput!"]}],"validateApprovedAccessDomain": [- 61,+ 62,{"input": [- 580,+ 581,"ValidateApprovedAccessDomainInput!"]}],"verifyEmailAndGetLoginToken": [- 584,+ 585,{"captchaToken": [1@@ -8646,7 +8597,7 @@ export default {}],"verifyEmailAndGetWorkspaceAgnosticToken": [- 71,+ 72,{"captchaToken": [1@@ -8662,7 +8613,7 @@ export default {}],"verifyEmailingDomain": [- 215,+ 216,{"id": [1,@@ -8671,7 +8622,7 @@ export default {}],"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [- 585,+ 586,{"otp": [1,@@ -8696,22 +8647,22 @@ export default {},"NavigationMenuItem": {"applicationId": [- 481+ 482],"color": [1],"createdAt": [- 185+ 186],"folderId": [- 481+ 482],"icon": [1],"id": [- 481+ 482],"link": [1@@ -8720,31 +8671,31 @@ export default {1],"pageLayoutId": [- 481+ 482],"position": [- 10+ 11],"targetObjectMetadataId": [- 481+ 482],"targetRecordId": [- 481+ 482],"targetRecordIdentifier": [- 396+ 397],"type": [- 343+ 344],"updatedAt": [- 185+ 186],"userWorkspaceId": [- 481+ 482],"viewId": [- 481+ 482],"__typename": [1@@ -8753,7 +8704,7 @@ export default {"NavigationMenuItemType": {},"NotesConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -8761,13 +8712,13 @@ export default {},"Object": {"applicationId": [- 481+ 482],"color": [1],"createdAt": [- 185+ 186],"description": [1@@ -8776,42 +8727,42 @@ export default {1],"fields": [- 348,+ 349,{"filter": [- 245,+ 246,"FieldFilter!"],"paging": [- 183,+ 184,"CursorPaging!"]}],"fieldsList": [- 240+ 241],"icon": [1],"id": [- 481+ 482],"imageIdentifierFieldMetadataId": [- 481+ 482],"indexMetadataList": [- 275+ 276],"indexMetadatas": [- 350,+ 351,{"filter": [- 278,+ 279,"IndexFilter!"],"paging": [- 183,+ 184,"CursorPaging!"]}@@ -8841,7 +8792,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 481+ 482],"labelPlural": [1@@ -8856,19 +8807,19 @@ export default {1],"openRecordIn": [- 352+ 353],"readability": [- 330+ 331],"readabilityParentFieldUniversalIdentifiers": [- 481+ 482],"searchFieldMetadataList": [- 435+ 436],"sharingReach": [- 360+ 361],"shortcut": [1@@ -8877,10 +8828,10 @@ export default {1],"updatedAt": [- 185+ 186],"writability": [- 335+ 336],"__typename": [1@@ -8888,10 +8839,10 @@ export default {},"ObjectConnection": {"edges": [- 347+ 348],"pageInfo": [- 365+ 366],"__typename": [1@@ -8899,10 +8850,10 @@ export default {},"ObjectEdge": {"cursor": [- 140+ 141],"node": [- 345+ 346],"__typename": [1@@ -8910,10 +8861,10 @@ export default {},"ObjectFieldsConnection": {"edges": [- 244+ 245],"pageInfo": [- 365+ 366],"__typename": [1@@ -8921,37 +8872,37 @@ export default {},"ObjectFilter": {"and": [- 349+ 350],"id": [- 482+ 483],"isActive": [- 106+ 107],"isRemote": [- 106+ 107],"isSearchable": [- 106+ 107],"isSystem": [- 106+ 107],"isUICreatable": [- 106+ 107],"isUIEditable": [- 106+ 107],"isUIReadOnly": [- 106+ 107],"or": [- 349+ 350],"universalIdentifier": [- 482+ 483],"__typename": [1@@ -8959,10 +8910,10 @@ export default {},"ObjectIndexMetadatasConnection": {"edges": [- 276+ 277],"pageInfo": [- 365+ 366],"__typename": [1@@ -8970,7 +8921,7 @@ export default {},"ObjectMetadataCommandMenuItemPayload": {"objectMetadataItemId": [- 481+ 482],"__typename": [1@@ -8991,16 +8942,16 @@ export default {4],"objectMetadataId": [- 481+ 482],"restrictedFields": [- 286+ 287],"rowLevelPermissionPredicateGroups": [- 420+ 421],"rowLevelPermissionPredicates": [- 419+ 420],"__typename": [1@@ -9020,7 +8971,7 @@ export default {4],"objectMetadataId": [- 481+ 482],"__typename": [1@@ -9031,7 +8982,7 @@ export default {1],"totalCount": [- 7+ 8],"__typename": [1@@ -9039,13 +8990,13 @@ export default {},"ObjectRecordEvent": {"action": [- 184+ 185],"objectNameSingular": [1],"properties": [- 357+ 358],"recordId": [1@@ -9062,13 +9013,13 @@ export default {},"ObjectRecordEventProperties": {"after": [- 286+ 287],"before": [- 286+ 287],"diff": [- 286+ 287],"updatedFields": [1@@ -9079,7 +9030,7 @@ export default {},"ObjectRecordEventWithQueryIds": {"objectRecordEvent": [- 356+ 357],"queryIds": [1@@ -9093,10 +9044,10 @@ export default {"OnboardingStatus": {},"OnboardingStepNavigation": {"onboardingStatus": [- 361+ 362],"previousOnboardingStatus": [- 361+ 362],"__typename": [1@@ -9113,7 +9064,7 @@ export default {"OpenRecordIn": {},"PageInfo": {"endCursor": [- 140+ 141],"hasNextPage": [4@@ -9122,7 +9073,7 @@ export default {4],"startCursor": [- 140+ 141],"__typename": [1@@ -9130,19 +9081,19 @@ export default {},"PageLayout": {"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"defaultTabToFocusOnMobileAndSidePanelId": [- 481+ 482],"deletedAt": [- 185+ 186],"id": [- 481+ 482],"isFirstTabPinned": [4@@ -9154,19 +9105,19 @@ export default {1],"objectMetadataId": [- 481+ 482],"tabs": [- 367+ 368],"type": [- 369+ 370],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"__typename": [1@@ -9174,19 +9125,19 @@ export default {},"PageLayoutTab": {"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"icon": [1],"id": [- 481+ 482],"isActive": [4@@ -9198,25 +9149,25 @@ export default {4],"layoutMode": [- 368+ 369],"pageLayoutId": [- 481+ 482],"position": [- 10+ 11],"title": [1],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"widgets": [- 370+ 371],"__typename": [1@@ -9226,28 +9177,28 @@ export default {"PageLayoutType": {},"PageLayoutWidget": {"applicationId": [- 481+ 482],"conditionalAvailabilityExpression": [1],"conditionalDisplay": [- 286+ 287],"configuration": [- 604+ 605],"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"gridPosition": [- 268+ 269],"id": [- 481+ 482],"isActive": [4@@ -9259,25 +9210,25 @@ export default {4],"objectMetadataId": [- 481+ 482],"pageLayoutTabId": [- 481+ 482],"position": [- 373+ 374],"title": [1],"type": [- 606+ 607],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"__typename": [1@@ -9285,7 +9236,7 @@ export default {},"PageLayoutWidgetCanvasPosition": {"layoutMode": [- 368+ 369],"__typename": [1@@ -9293,19 +9244,19 @@ export default {},"PageLayoutWidgetGridPosition": {"column": [- 7+ 8],"columnSpan": [- 7+ 8],"layoutMode": [- 368+ 369],"row": [- 7+ 8],"rowSpan": [- 7+ 8],"__typename": [1@@ -9313,13 +9264,13 @@ export default {},"PageLayoutWidgetPosition": {"on_PageLayoutWidgetCanvasPosition": [- 371+ 372],"on_PageLayoutWidgetGridPosition": [- 372+ 373],"on_PageLayoutWidgetVerticalListPosition": [- 375+ 376],"__typename": [1@@ -9328,13 +9279,13 @@ export default {"PageLayoutWidgetVerticalListHeightBehavior": {},"PageLayoutWidgetVerticalListPosition": {"heightBehavior": [- 374+ 375],"index": [- 7+ 8],"layoutMode": [- 368+ 369],"__typename": [1@@ -9350,10 +9301,10 @@ export default {},"PermissionFlag": {"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"description": [1@@ -9362,7 +9313,7 @@ export default {1],"id": [- 481+ 482],"key": [1@@ -9374,10 +9325,10 @@ export default {1],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"__typename": [1@@ -9386,19 +9337,19 @@ export default {"PermissionFlagType": {},"PieChartConfiguration": {"aggregateFieldMetadataId": [- 481+ 482],"aggregateOperation": [- 18+ 19],"color": [1],"configurationType": [- 605+ 606],"dateGranularity": [- 359+ 360],"description": [1@@ -9410,13 +9361,13 @@ export default {4],"filter": [- 286+ 287],"firstDayOfTheWeek": [- 7+ 8],"groupByFieldMetadataId": [- 481+ 482],"groupBySubFieldName": [1@@ -9428,10 +9379,10 @@ export default {1],"numberFormat": [- 121+ 122],"orderBy": [- 267+ 268],"showCenterMetric": [4@@ -9448,10 +9399,10 @@ export default {},"PieChartData": {"data": [- 382+ 383],"formattedToRawLookup": [- 286+ 287],"hasTooManyGroups": [4@@ -9471,10 +9422,10 @@ export default {},"PieChartDataInput": {"configuration": [- 286+ 287],"objectMetadataId": [- 481+ 482],"__typename": [1@@ -9485,7 +9436,7 @@ export default {1],"value": [- 10+ 11],"__typename": [1@@ -9499,7 +9450,7 @@ export default {1],"location": [- 297+ 298],"postcode": [1@@ -9527,7 +9478,7 @@ export default {},"PublicApplicationRegistration": {"id": [- 481+ 482],"logoUrl": [1@@ -9547,13 +9498,13 @@ export default {},"PublicConnectionParametersOutput": {"connectionSecurity": [- 212+ 213],"host": [1],"port": [- 10+ 11],"username": [1@@ -9564,16 +9515,16 @@ export default {},"PublicDomain": {"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"domain": [1],"id": [- 481+ 482],"isValidated": [4@@ -9584,10 +9535,10 @@ export default {},"PublicFeatureFlag": {"key": [- 239+ 240],"metadata": [- 389+ 390],"__typename": [1@@ -9612,13 +9563,13 @@ export default {},"PublicImapSmtpCaldavConnectionParameters": {"CALDAV": [- 386+ 387],"IMAP": [- 386+ 387],"SMTP": [- 386+ 387],"__typename": [1@@ -9626,22 +9577,22 @@ export default {},"PublicWorkspaceData": {"authBypassProviders": [- 62+ 63],"authProviders": [- 63+ 64],"displayName": [1],"id": [- 481+ 482],"logo": [1],"workspaceUrls": [- 628+ 629],"__typename": [1@@ -9652,7 +9603,7 @@ export default {1],"id": [- 481+ 482],"logo": [1@@ -9663,87 +9614,87 @@ export default {},"Query": {"agentChatOpenThreadsSummary": [- 6+ 7],"agentRuns": [- 15,+ 16,{"agentId": [- 481,+ 482,"UUID!"],"limit": [- 7,+ 8,"Int!"]}],"aiChatUsage": [- 19+ 20],"apiKey": [- 27,+ 28,{"input": [- 263,+ 264,"GetApiKeyInput!"]}],"apiKeys": [- 27+ 28],"appConnection": [- 30,+ 31,{"id": [- 9,+ 10,"ID!"]}],"appConnections": [- 30,+ 31,{"filter": [- 295+ 296]}],"appKeyValue": [- 31,+ 32,{"key": [1,"String!"],"scope": [- 32+ 33]}],"appMessageChannels": [- 313,+ 314,{"filter": [- 296+ 297]}],"applicationConnectedAccounts": [- 38,+ 39,{"applicationId": [- 481,+ 482,"UUID!"]}],"applicationConnectionProviders": [- 39,+ 40,{"applicationId": [- 481,+ 482,"UUID!"]}@@ -9767,25 +9718,25 @@ export default {}],"applicationSdkClientChecksums": [- 434,+ 435,{"applicationId": [- 481,+ 482,"UUID!"]}],"barChartData": [- 74,+ 75,{"input": [- 75,+ 76,"BarChartDataInput!"]}],"billingPortalSession": [- 98,+ 99,{"forPaymentMethodUpdate": [4@@ -9796,43 +9747,43 @@ export default {}],"callRecordingIdForCalendarEvent": [- 481,+ 482,{"calendarEventId": [- 481,+ 482,"UUID!"]}],"chatMessages": [- 13,+ 14,{"threadId": [- 481,+ 482,"UUID!"]}],"chatStreamCatchupChunks": [- 123,+ 124,{"threadId": [- 481,+ 482,"UUID!"]}],"chatThread": [- 8,+ 9,{"id": [- 481,+ 482,"UUID!"]}],"checkUserExists": [- 126,+ 127,{"captchaToken": [1@@ -9844,7 +9795,7 @@ export default {}],"checkWorkspaceInviteHashIsValid": [- 618,+ 619,{"inviteHash": [1,@@ -9853,7 +9804,7 @@ export default {}],"checkWorkspaceSubdomainAvailability": [- 460,+ 461,{"subdomain": [1,@@ -9862,28 +9813,28 @@ export default {}],"commandMenuItem": [- 134,+ 135,{"id": [- 481,+ 482,"UUID!"]}],"commandMenuItems": [- 134+ 135],"currentUser": [- 576+ 577],"currentUserApplicationAuthorizations": [- 36+ 37],"currentUserSessions": [- 578+ 579],"currentWorkspace": [- 610+ 611],"enterpriseCheckoutSession": [1,@@ -9902,50 +9853,50 @@ export default {}],"enterpriseSubscriptionStatus": [- 226+ 227],"eventLogs": [- 233,+ 234,{"input": [- 232,+ 233,"EventLogQueryInput!"]}],"exportApplication": [- 41,+ 42,{"universalIdentifier": [- 481,+ 482,"UUID!"]}],"field": [- 240,+ 241,{"id": [- 481,+ 482,"UUID!"]}],"fields": [- 242,+ 243,{"filter": [- 245,+ 246,"FieldFilter!"],"paging": [- 183,+ 184,"CursorPaging!"]}],"findApplicationRegistrationByClientId": [- 385,+ 386,{"clientId": [1,@@ -9954,7 +9905,7 @@ export default {}],"findApplicationRegistrationByUniversalIdentifier": [- 53,+ 54,{"universalIdentifier": [1,@@ -9963,7 +9914,7 @@ export default {}],"findApplicationRegistrationStats": [- 55,+ 56,{"id": [1,@@ -9972,7 +9923,7 @@ export default {}],"findApplicationRegistrationVariables": [- 57,+ 58,{"applicationRegistrationId": [1,@@ -9981,7 +9932,7 @@ export default {}],"findClaimableApplicationRegistration": [- 127,+ 128,{"sourcePackage": [1@@ -9992,7 +9943,7 @@ export default {}],"findInstallApplicationJobStatus": [- 289,+ 290,{"universalIdentifier": [1,@@ -10004,16 +9955,16 @@ export default {3],"findManyApplicationRegistrations": [- 53+ 54],"findManyApplications": [- 35+ 36],"findManyLogicFunctions": [- 298+ 299],"findManyMarketplaceApps": [- 306,+ 307,{"universalIdentifiers": [1,@@ -10022,10 +9973,10 @@ export default {}],"findManyPublicDomains": [- 387+ 388],"findMarketplaceAppDetail": [- 307,+ 308,{"universalIdentifier": [1,@@ -10037,24 +9988,24 @@ export default {3,{"input": [- 12,+ 13,"AgentIdInput!"]}],"findOneApplication": [- 35,+ 36,{"id": [- 481+ 482],"universalIdentifier": [- 481+ 482]}],"findOneApplicationRegistration": [- 53,+ 54,{"id": [1,@@ -10063,16 +10014,16 @@ export default {}],"findOneLogicFunction": [- 298,+ 299,{"input": [- 302,+ 303,"LogicFunctionIdInput!"]}],"findUninstallApplicationJobStatus": [- 289,+ 290,{"universalIdentifier": [1,@@ -10081,10 +10032,10 @@ export default {}],"findWorkspaceAiStats": [- 612+ 613],"findWorkspaceFromInviteHash": [- 610,+ 611,{"inviteHash": [1,@@ -10093,22 +10044,22 @@ export default {}],"findWorkspaceInvitations": [- 617+ 618],"frontComponent": [- 260,+ 261,{"id": [- 481,+ 482,"UUID!"]}],"frontComponents": [- 260+ 261],"getAddressDetails": [- 383,+ 384,{"placeId": [1,@@ -10121,16 +10072,16 @@ export default {}],"getAiSystemPromptPreview": [- 21+ 22],"getApiKeyRoles": [- 416+ 417],"getApprovedAccessDomains": [- 61+ 62],"getAutoCompleteAddress": [- 68,+ 69,{"address": [1,@@ -10149,31 +10100,31 @@ export default {}],"getAvailablePackages": [- 286,+ 287,{"input": [- 302,+ 303,"LogicFunctionIdInput!"]}],"getConnectedImapSmtpCaldavAccount": [- 139,+ 140,{"id": [- 481,+ 482,"UUID!"]}],"getEmailingDomains": [- 215+ 216],"getInviteSuggestions": [- 285+ 286],"getJobs": [- 289,+ 290,{"jobIds": [1,@@ -10185,13 +10136,13 @@ export default {1,{"input": [- 302,+ 303,"LogicFunctionIdInput!"]}],"getPageLayout": [- 366,+ 367,{"id": [1,@@ -10200,7 +10151,7 @@ export default {}],"getPageLayoutTab": [- 367,+ 368,{"id": [1,@@ -10209,7 +10160,7 @@ export default {}],"getPageLayoutTabs": [- 367,+ 368,{"pageLayoutId": [1,@@ -10218,7 +10169,7 @@ export default {}],"getPageLayoutWidget": [- 370,+ 371,{"id": [1,@@ -10227,7 +10178,7 @@ export default {}],"getPageLayoutWidgets": [- 370,+ 371,{"pageLayoutTabId": [1,@@ -10236,21 +10187,21 @@ export default {}],"getPageLayouts": [- 366,+ 367,{"objectMetadataId": [1],"pageLayoutType": [- 369+ 370]}],"getPermissionFlags": [- 377+ 378],"getPublicWorkspaceDataByDomain": [- 391,+ 392,{"origin": [1@@ -10258,37 +10209,37 @@ export default {}],"getPublicWorkspaceDataById": [- 392,+ 393,{"id": [- 481,+ 482,"UUID!"]}],"getResourceCreditUsage": [- 97+ 98],"getRole": [- 416,+ 417,{"id": [- 481,+ 482,"UUID!"]}],"getRoles": [- 416+ 417],"getSSOIdentityProviders": [- 257+ 258],"getToolIndex": [- 471+ 472],"getToolInputSchema": [- 286,+ 287,{"toolName": [1,@@ -10297,15 +10248,15 @@ export default {}],"getUsageAnalytics": [- 560,+ 561,{"input": [- 561+ 562]}],"getView": [- 587,+ 588,{"id": [1,@@ -10314,7 +10265,7 @@ export default {}],"getViewField": [- 590,+ 591,{"id": [1,@@ -10323,7 +10274,7 @@ export default {}],"getViewFieldGroup": [- 591,+ 592,{"id": [1,@@ -10332,7 +10283,7 @@ export default {}],"getViewFieldGroups": [- 591,+ 592,{"viewId": [1,@@ -10341,7 +10292,7 @@ export default {}],"getViewFields": [- 590,+ 591,{"viewId": [1,@@ -10350,7 +10301,7 @@ export default {}],"getViewFilter": [- 592,+ 593,{"id": [1,@@ -10359,7 +10310,7 @@ export default {}],"getViewFilterGroup": [- 593,+ 594,{"id": [1,@@ -10368,7 +10319,7 @@ export default {}],"getViewFilterGroups": [- 593,+ 594,{"viewId": [1@@ -10376,7 +10327,7 @@ export default {}],"getViewFilters": [- 592,+ 593,{"viewId": [1@@ -10384,7 +10335,7 @@ export default {}],"getViewGroup": [- 596,+ 597,{"id": [1,@@ -10393,7 +10344,7 @@ export default {}],"getViewGroups": [- 596,+ 597,{"viewId": [1@@ -10401,7 +10352,7 @@ export default {}],"getViewSort": [- 599,+ 600,{"id": [1,@@ -10410,7 +10361,7 @@ export default {}],"getViewSorts": [- 599,+ 600,{"viewId": [1@@ -10418,19 +10369,19 @@ export default {}],"getViews": [- 587,+ 588,{"objectMetadataId": [1],"viewTypes": [- 601,+ 602,"[ViewType!]"]}],"getWorkspaceCreationDefaults": [- 615+ 616],"githubClaimAuthorizationUrl": [1,@@ -10451,134 +10402,134 @@ export default {}],"lineChartData": [- 291,+ 292,{"input": [- 292,+ 293,"LineChartDataInput!"]}],"listPlans": [- 88+ 89],"messageSuppressions": [- 325,+ 326,{"input": [- 258,+ 259,"FindMessageSuppressionsInput!"]}],"metadataTranslations": [- 331,+ 332,{"input": [- 334,+ 335,"MetadataTranslationsInput!"]}],"minimalMetadata": [- 336+ 337],"mostlyEmptyFieldMetadataIds": [- 481,+ 482,{"objectMetadataId": [- 481,+ 482,"UUID!"]}],"myCalendarChannels": [- 107,+ 108,{"connectedAccountId": [- 481+ 482]}],"myConnectedAccounts": [- 138+ 139],"myMessageChannels": [- 313,+ 314,{"connectedAccountId": [- 481+ 482]}],"myMessageFolders": [- 320,+ 321,{"messageChannelId": [- 481+ 482]}],"myUserApplicationVariables": [- 620+ 621],"navigationMenuItem": [- 342,+ 343,{"id": [- 481,+ 482,"UUID!"]}],"navigationMenuItems": [- 342+ 343],"object": [- 345,+ 346,{"id": [- 481,+ 482,"UUID!"]}],"objectRecordCounts": [- 355+ 356],"objects": [- 346,+ 347,{"filter": [- 349,+ 350,"ObjectFilter!"],"paging": [- 183,+ 184,"CursorPaging!"]}],"pieChartData": [- 380,+ 381,{"input": [- 381,+ 382,"PieChartDataInput!"]}],"previewMessageCampaignAudience": [- 115,+ 116,{"input": [- 384,+ 385,"PreviewMessageCampaignAudienceInput!"]}],"publicMarketplaceAppDetail": [- 307,+ 308,{"universalIdentifier": [1,@@ -10587,7 +10538,7 @@ export default {}],"publicMarketplaceApps": [- 306,+ 307,{"isVetted": [4,@@ -10596,70 +10547,70 @@ export default {}],"recordPermissions": [- 398,+ 399,{"targets": [- 408,+ 409,"[RecordTargetInput!]!"]}],"recordSharing": [- 403,+ 404,{"target": [- 408,+ 409,"RecordTargetInput!"]}],"skill": [- 456,+ 457,{"id": [- 481,+ 482,"UUID!"]}],"skills": [- 456+ 457],"timelineActivityTypes": [- 467+ 468],"twoFactorAuthenticationRecoveryStatus": [- 480,+ 481,{"userId": [- 481,+ 482,"UUID!"]}],"unsubscribeTopics": [- 484+ 485],"usageLimits": [- 563+ 564],"usageQuotaDefinitions": [- 567+ 568],"usageQuotaScopeConsumption": [- 569,+ 570,{"input": [- 570,+ 571,"UsageQuotaScopeInput!"]}],"usageQuotasWithConsumption": [- 571+ 572],"validatePasswordResetToken": [- 581,+ 582,{"passwordResetToken": [1,@@ -10668,25 +10619,25 @@ export default {}],"validationRules": [- 582,+ 583,{"objectMetadataId": [- 481,+ 482,"UUID!"]}],"webhook": [- 603,+ 604,{"id": [- 481,+ 482,"UUID!"]}],"webhooks": [- 603+ 604],"__typename": [1@@ -10694,7 +10645,7 @@ export default {},"RatioAggregateConfig": {"fieldMetadataId": [- 481+ 482],"optionValue": [1@@ -10714,10 +10665,10 @@ export default {1],"id": [- 481+ 482],"progress": [- 7+ 8],"__typename": [1@@ -10725,7 +10676,7 @@ export default {},"RecordIdentifier": {"id": [- 481+ 482],"imageIdentifier": [1@@ -10756,13 +10707,13 @@ export default {},"RecordPermissionsResult": {"objectMetadataId": [- 481+ 482],"permissions": [- 397+ 398],"recordId": [- 481+ 482],"__typename": [1@@ -10771,10 +10722,10 @@ export default {"RecordShareAccessLevel": {},"RecordSharePrincipalInput": {"roleId": [- 481+ 482],"workspaceMemberId": [- 481+ 482],"__typename": [1@@ -10787,25 +10738,25 @@ export default {4],"defaultGeneralAccessLevel": [- 399+ 400],"generalAccessLevel": [- 399+ 400],"hasManagedGeneralAccess": [4],"permissions": [- 397+ 398],"roles": [- 406+ 407],"shares": [- 404+ 405],"sharingMode": [- 405+ 406],"__typename": [1@@ -10813,22 +10764,22 @@ export default {},"RecordSharingGrantDTO": {"accessLevel": [- 399+ 400],"id": [- 9+ 10],"principalId": [- 481+ 482],"principalRoleId": [- 481+ 482],"principalType": [- 401+ 402],"rowCause": [- 402+ 403],"__typename": [1@@ -10843,7 +10794,7 @@ export default {4],"id": [- 481+ 482],"label": [1@@ -10854,13 +10805,13 @@ export default {},"RecordTableConfiguration": {"configurationType": [- 605+ 606],"isUIEditable": [4],"recordLimit": [- 7+ 8],"viewId": [1@@ -10871,10 +10822,10 @@ export default {},"RecordTargetInput": {"objectMetadataId": [- 481+ 482],"recordId": [- 481+ 482],"__typename": [1@@ -10882,19 +10833,19 @@ export default {},"Relation": {"sourceFieldMetadata": [- 240+ 241],"sourceObjectMetadata": [- 345+ 346],"targetFieldMetadata": [- 240+ 241],"targetObjectMetadata": [- 345+ 346],"type": [- 410+ 411],"__typename": [1@@ -10914,7 +10865,7 @@ export default {},"ReportAppConnectionAuthFailureInput": {"id": [- 9+ 10],"reason": [1@@ -10933,7 +10884,7 @@ export default {},"RevokeApiKeyInput": {"id": [- 481+ 482],"__typename": [1@@ -10955,7 +10906,7 @@ export default {3],"apiKeys": [- 28+ 29],"canAccessAllTools": [4@@ -10988,13 +10939,13 @@ export default {1],"fieldPermissions": [- 247+ 248],"icon": [1],"id": [- 481+ 482],"isEditable": [4@@ -11003,22 +10954,22 @@ export default {1],"objectPermissions": [- 353+ 354],"permissionFlags": [- 417+ 418],"rowLevelPermissionPredicateGroups": [- 420+ 421],"rowLevelPermissionPredicates": [- 419+ 420],"universalIdentifier": [- 481+ 482],"workspaceMembers": [- 619+ 620],"__typename": [1@@ -11029,10 +10980,10 @@ export default {1],"id": [- 481+ 482],"roleId": [- 481+ 482],"__typename": [1@@ -11057,10 +11008,10 @@ export default {1],"operand": [- 424+ 425],"positionInRowLevelPermissionPredicateGroup": [- 10+ 11],"roleId": [1@@ -11072,7 +11023,7 @@ export default {1],"value": [- 286+ 287],"workspaceMemberFieldMetadataId": [1@@ -11089,7 +11040,7 @@ export default {1],"logicalOperator": [- 422+ 423],"objectMetadataId": [1@@ -11098,7 +11049,7 @@ export default {1],"positionInRowLevelPermissionPredicateGroup": [- 10+ 11],"roleId": [1@@ -11109,19 +11060,19 @@ export default {},"RowLevelPermissionPredicateGroupInput": {"id": [- 481+ 482],"logicalOperator": [- 422+ 423],"objectMetadataId": [- 481+ 482],"parentRowLevelPermissionPredicateGroupId": [- 481+ 482],"positionInRowLevelPermissionPredicateGroup": [- 10+ 11],"__typename": [1@@ -11130,25 +11081,25 @@ export default {"RowLevelPermissionPredicateGroupLogicalOperator": {},"RowLevelPermissionPredicateInput": {"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"operand": [- 424+ 425],"positionInRowLevelPermissionPredicateGroup": [- 10+ 11],"rowLevelPermissionPredicateGroupId": [- 481+ 482],"subFieldName": [1],"value": [- 286+ 287],"workspaceMemberFieldMetadataId": [1@@ -11169,19 +11120,19 @@ export default {1],"input": [- 427+ 428],"messages": [- 427+ 428],"prompt": [1],"runAsWorkspaceMemberId": [- 481+ 482],"thread": [- 430+ 431],"__typename": [1@@ -11189,7 +11140,7 @@ export default {},"RunAgentMessageAttachmentInput": {"fileId": [- 481+ 482],"filename": [1@@ -11200,13 +11151,13 @@ export default {},"RunAgentMessageInput": {"attachments": [- 426+ 427],"content": [1],"role": [- 428+ 429],"__typename": [1@@ -11221,13 +11172,13 @@ export default {4],"result": [- 286+ 287],"success": [4],"threadId": [- 481+ 482],"__typename": [1@@ -11246,7 +11197,7 @@ export default {},"SSOConnection": {"id": [- 481+ 482],"issuer": [1@@ -11255,10 +11206,10 @@ export default {1],"status": [- 433+ 434],"type": [- 269+ 270],"__typename": [1@@ -11266,7 +11217,7 @@ export default {},"SSOIdentityProvider": {"id": [- 481+ 482],"issuer": [1@@ -11275,10 +11226,10 @@ export default {1],"status": [- 433+ 434],"type": [- 269+ 270],"__typename": [1@@ -11298,22 +11249,22 @@ export default {},"SearchField": {"createdAt": [- 185+ 186],"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"position": [- 10+ 11],"tsVectorFieldMetadataId": [- 481+ 482],"updatedAt": [- 185+ 186],"__typename": [1@@ -11321,7 +11272,7 @@ export default {},"SendChatMessageResult": {"mentionedParticipantWorkspaceMemberIds": [- 481+ 482],"messageId": [1@@ -11364,7 +11315,7 @@ export default {1],"files": [- 437+ 438],"fromHandle": [1@@ -11418,10 +11369,10 @@ export default {1],"toolCall": [- 286+ 287],"workspaceMemberId": [- 481+ 482],"__typename": [1@@ -11429,7 +11380,7 @@ export default {},"SendInboxMessageResult": {"threadId": [- 481+ 482],"__typename": [1@@ -11440,7 +11391,7 @@ export default {1],"result": [- 617+ 618],"success": [4@@ -11454,7 +11405,7 @@ export default {1],"scheduledAt": [- 185+ 186],"__typename": [1@@ -11462,13 +11413,13 @@ export default {},"SendMessageCampaignOutputDTO": {"audience": [- 115+ 116],"campaignId": [1],"queuedCount": [- 7+ 8],"__typename": [1@@ -11505,7 +11456,7 @@ export default {1],"tracesSampleRate": [- 10+ 11],"__typename": [1@@ -11516,10 +11467,10 @@ export default {1],"scope": [- 32+ 33],"value": [- 286+ 287],"__typename": [1@@ -11527,34 +11478,34 @@ export default {},"SettingsMenuItem": {"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"frontComponentId": [- 481+ 482],"icon": [1],"id": [- 481+ 482],"position": [- 10+ 11],"scope": [- 450+ 451],"title": [1],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"__typename": [1@@ -11586,7 +11537,7 @@ export default {1],"id": [- 481+ 482],"issuer": [1@@ -11603,7 +11554,7 @@ export default {},"SetupSso": {"id": [- 481+ 482],"issuer": [1@@ -11612,10 +11563,10 @@ export default {1],"status": [- 433+ 434],"type": [- 269+ 270],"__typename": [1@@ -11623,10 +11574,10 @@ export default {},"SignUp": {"loginToken": [- 64+ 65],"workspace": [- 629+ 630],"__typename": [1@@ -11645,13 +11596,13 @@ export default {},"Skill": {"applicationId": [- 481+ 482],"content": [1],"createdAt": [- 185+ 186],"description": [1@@ -11660,7 +11611,7 @@ export default {1],"id": [- 481+ 482],"isActive": [4@@ -11678,7 +11629,7 @@ export default {1],"updatedAt": [- 185+ 186],"__typename": [1@@ -11686,10 +11637,10 @@ export default {},"StandaloneRichTextConfiguration": {"body": [- 415+ 416],"configurationType": [- 605+ 606],"__typename": [1@@ -11697,10 +11648,10 @@ export default {},"StartWorkspaceSetupChatResult": {"outcome": [- 627+ 628],"thread": [- 8+ 9],"__typename": [1@@ -11733,32 +11684,32 @@ export default {},"Subscription": {"eventLogsLive": [- 234,+ 235,{"fieldFilters": [- 228,+ 229,"[EventLogFieldFilterInput!]"],"table": [- 235,+ 236,"EventLogTable!"]}],"exportRecords": [- 395,+ 396,{"input": [- 169,+ 170,"CreateRecordExportInput!"]}],"logicFunctionLogs": [- 303,+ 304,{"input": [- 304,+ 305,"LogicFunctionLogsInput!"]}@@ -11767,13 +11718,13 @@ export default {5,{"threadId": [- 481,+ 482,"UUID!"]}],"onEventSubscription": [- 236,+ 237,{"eventStreamId": [1,@@ -11789,7 +11740,7 @@ export default {"SubscriptionStatus": {},"Support": {"supportDriver": [- 465+ 466],"supportFrontChatId": [1@@ -11801,7 +11752,7 @@ export default {"SupportDriver": {},"TasksConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -11812,22 +11763,22 @@ export default {1],"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"emit": [- 468+ 469],"frontComponentUniversalIdentifier": [- 481+ 482],"icon": [1],"id": [- 481+ 482],"isActive": [4@@ -11839,16 +11790,16 @@ export default {1],"objectUniversalIdentifier": [- 481+ 482],"replacesTimelineActivityTypeUniversalIdentifier": [- 481+ 482],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"__typename": [1@@ -11856,13 +11807,13 @@ export default {},"TimelineActivityTypeEmit": {"objectUniversalIdentifier": [- 481+ 482],"on": [1],"through": [- 469+ 470],"__typename": [1@@ -11870,13 +11821,13 @@ export default {},"TimelineActivityTypeEmitThrough": {"happensAtFieldUniversalIdentifier": [- 481+ 482],"relationFieldUniversalIdentifier": [- 481+ 482],"triggerFieldUniversalIdentifiers": [- 481+ 482],"__typename": [1@@ -11884,7 +11835,7 @@ export default {},"TimelineConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -11904,7 +11855,7 @@ export default {1],"inputSchema": [- 286+ 287],"label": [1@@ -11924,7 +11875,7 @@ export default {},"TransientToken": {"transientToken": [- 64+ 65],"__typename": [1@@ -11970,7 +11921,7 @@ export default {1],"twoFactorAuthenticationMethodId": [- 481+ 482],"__typename": [1@@ -11978,7 +11929,7 @@ export default {},"TwoFactorAuthenticationRecoveryCode": {"expiresAt": [- 185+ 186],"recoveryCode": [1@@ -11992,7 +11943,7 @@ export default {1],"tokens": [- 65+ 66],"__typename": [1@@ -12006,7 +11957,7 @@ export default {4],"pendingRecoveryCodeExpiresAt": [- 185+ 186],"__typename": [1@@ -12015,19 +11966,19 @@ export default {"UUID": {},"UUIDFilterComparison": {"eq": [- 481+ 482],"gt": [- 481+ 482],"gte": [- 481+ 482],"iLike": [- 481+ 482],"in": [- 481+ 482],"is": [4@@ -12036,25 +11987,25 @@ export default {4],"like": [- 481+ 482],"lt": [- 481+ 482],"lte": [- 481+ 482],"neq": [- 481+ 482],"notILike": [- 481+ 482],"notIn": [- 481+ 482],"notLike": [- 481+ 482],"__typename": [1@@ -12063,22 +12014,22 @@ export default {"UnsubscribeHostnameStatus": {},"UnsubscribeTopic": {"createdAt": [- 185+ 186],"description": [1],"id": [- 481+ 482],"name": [1],"updatedAt": [- 185+ 186],"visibility": [- 485+ 486],"__typename": [1@@ -12093,13 +12044,13 @@ export default {1],"id": [- 481+ 482],"label": [1],"modelConfiguration": [- 286+ 287],"modelId": [1@@ -12111,13 +12062,13 @@ export default {1],"responseFormat": [- 286+ 287],"roleId": [- 481+ 482],"triggers": [- 286+ 287],"__typename": [1@@ -12128,7 +12079,7 @@ export default {1],"id": [- 481+ 482],"name": [1@@ -12145,13 +12096,13 @@ export default {1],"id": [- 481+ 482],"isSyncEnabled": [4],"visibility": [- 319+ 320],"__typename": [1@@ -12170,7 +12121,7 @@ export default {1],"update": [- 491+ 492],"__typename": [1@@ -12195,7 +12146,7 @@ export default {1],"update": [- 493+ 494],"__typename": [1@@ -12217,10 +12168,10 @@ export default {},"UpdateCalendarChannelInput": {"id": [- 481+ 482],"update": [- 495+ 496],"__typename": [1@@ -12228,7 +12179,7 @@ export default {},"UpdateCalendarChannelInputUpdates": {"contactAutoCreationPolicy": [- 108+ 109],"isContactAutoCreationEnabled": [4@@ -12237,7 +12188,7 @@ export default {4],"visibility": [- 111+ 112],"__typename": [1@@ -12245,13 +12196,13 @@ export default {},"UpdateCommandMenuItemInput": {"availabilityObjectMetadataId": [- 481+ 482],"availabilityType": [- 135+ 136],"engineComponentKey": [- 219+ 220],"hotKeys": [1@@ -12260,7 +12211,7 @@ export default {1],"id": [- 481+ 482],"isPinned": [4@@ -12269,10 +12220,10 @@ export default {1],"pageLayoutId": [- 481+ 482],"position": [- 10+ 11],"shortLabel": [1@@ -12286,7 +12237,7 @@ export default {1],"id": [- 481+ 482],"__typename": [1@@ -12294,7 +12245,7 @@ export default {},"UpdateFieldInput": {"defaultValue": [- 286+ 287],"description": [1@@ -12333,22 +12284,22 @@ export default {1],"morphRelationsUpdatePayload": [- 286+ 287],"name": [1],"objectMetadataId": [- 481+ 482],"options": [- 286+ 287],"settings": [- 286+ 287],"translations": [- 332+ 333],"universalIdentifier": [1@@ -12359,10 +12310,10 @@ export default {},"UpdateFrontComponentInput": {"id": [- 481+ 482],"update": [- 500+ 501],"__typename": [1@@ -12392,10 +12343,10 @@ export default {},"UpdateLogicFunctionFromSourceInput": {"id": [- 481+ 482],"update": [- 503+ 504],"__typename": [1@@ -12403,10 +12354,10 @@ export default {},"UpdateLogicFunctionFromSourceInputUpdates": {"cronTriggerSettings": [- 286+ 287],"databaseEventTriggerSettings": [- 286+ 287],"description": [1@@ -12415,7 +12366,7 @@ export default {1],"httpRouteTriggerSettings": [- 286+ 287],"name": [1@@ -12427,13 +12378,13 @@ export default {1],"timeoutSeconds": [- 10+ 11],"toolTriggerSettings": [- 286+ 287],"workflowActionTriggerSettings": [- 286+ 287],"__typename": [1@@ -12441,10 +12392,10 @@ export default {},"UpdateMessageChannelInput": {"id": [- 481+ 482],"update": [- 505+ 506],"__typename": [1@@ -12452,7 +12403,7 @@ export default {},"UpdateMessageChannelInputUpdates": {"contactAutoCreationPolicy": [- 314+ 315],"excludeGroupEmails": [4@@ -12467,10 +12418,10 @@ export default {4],"messageFolderImportPolicy": [- 321+ 322],"visibility": [- 319+ 320],"__typename": [1@@ -12478,10 +12429,10 @@ export default {},"UpdateMessageFolderInput": {"id": [- 481+ 482],"update": [- 507+ 508],"__typename": [1@@ -12497,10 +12448,10 @@ export default {},"UpdateMessageFoldersInput": {"ids": [- 481+ 482],"update": [- 507+ 508],"__typename": [1@@ -12511,7 +12462,7 @@ export default {1],"folderId": [- 481+ 482],"icon": [1@@ -12523,10 +12474,10 @@ export default {1],"pageLayoutId": [- 481+ 482],"position": [- 10+ 11],"__typename": [1@@ -12543,7 +12494,7 @@ export default {1],"imageIdentifierFieldMetadataId": [- 481+ 482],"isActive": [4@@ -12555,7 +12506,7 @@ export default {4],"labelIdentifierFieldMetadataId": [- 481+ 482],"labelPlural": [1@@ -12570,19 +12521,19 @@ export default {1],"openRecordIn": [- 352+ 353],"readability": [- 330+ 331],"sharingReach": [- 360+ 361],"shortcut": [1],"translations": [- 332+ 333],"__typename": [1@@ -12590,10 +12541,10 @@ export default {},"UpdateOneFieldMetadataInput": {"id": [- 481+ 482],"update": [- 498+ 499],"__typename": [1@@ -12601,10 +12552,10 @@ export default {},"UpdateOneNavigationMenuItemInput": {"id": [- 481+ 482],"update": [- 509+ 510],"__typename": [1@@ -12612,10 +12563,10 @@ export default {},"UpdateOneObjectInput": {"id": [- 481+ 482],"update": [- 510+ 511],"__typename": [1@@ -12626,10 +12577,10 @@ export default {1],"objectMetadataId": [- 481+ 482],"type": [- 369+ 370],"__typename": [1@@ -12640,10 +12591,10 @@ export default {1],"layoutMode": [- 368+ 369],"position": [- 10+ 11],"title": [1@@ -12657,19 +12608,19 @@ export default {1],"id": [- 481+ 482],"layoutMode": [- 368+ 369],"position": [- 10+ 11],"title": [1],"widgets": [- 518+ 519],"__typename": [1@@ -12680,28 +12631,28 @@ export default {1],"conditionalDisplay": [- 286+ 287],"configuration": [- 286+ 287],"isActive": [4],"objectMetadataId": [- 481+ 482],"pageLayoutTabId": [- 481+ 482],"position": [- 286+ 287],"title": [1],"type": [- 606+ 607],"__typename": [1@@ -12712,28 +12663,28 @@ export default {1],"conditionalDisplay": [- 286+ 287],"configuration": [- 286+ 287],"id": [- 481+ 482],"objectMetadataId": [- 481+ 482],"pageLayoutTabId": [- 481+ 482],"position": [- 286+ 287],"title": [1],"type": [- 606+ 607],"__typename": [1@@ -12747,13 +12698,13 @@ export default {1],"objectMetadataId": [- 481+ 482],"tabs": [- 516+ 517],"type": [- 369+ 370],"__typename": [1@@ -12761,10 +12712,10 @@ export default {},"UpdateRoleInput": {"id": [- 481+ 482],"update": [- 521+ 522],"__typename": [1@@ -12822,7 +12773,7 @@ export default {1],"id": [- 481+ 482],"isActive": [4@@ -12842,7 +12793,7 @@ export default {1],"id": [- 481+ 482],"isActive": [4@@ -12851,7 +12802,7 @@ export default {1],"translations": [- 332+ 333],"__typename": [1@@ -12868,7 +12819,7 @@ export default {1],"visibility": [- 485+ 486],"__typename": [1@@ -12876,10 +12827,10 @@ export default {},"UpdateUsageLimitInput": {"id": [- 481+ 482],"payload": [- 173+ 174],"__typename": [1@@ -12887,10 +12838,10 @@ export default {},"UpdateValidationRuleInput": {"id": [- 481+ 482],"update": [- 527+ 528],"__typename": [1@@ -12901,7 +12852,7 @@ export default {1],"errorFieldMetadataId": [- 481+ 482],"expression": [1@@ -12924,10 +12875,10 @@ export default {},"UpdateViewFieldGroupInput": {"id": [- 481+ 482],"update": [- 529+ 530],"__typename": [1@@ -12944,7 +12895,7 @@ export default {1],"position": [- 10+ 11],"__typename": [1@@ -12952,10 +12903,10 @@ export default {},"UpdateViewFieldInput": {"id": [- 481+ 482],"update": [- 531+ 532],"__typename": [1@@ -12963,19 +12914,19 @@ export default {},"UpdateViewFieldInputUpdates": {"aggregateOperation": [- 18+ 19],"isVisible": [4],"position": [- 10+ 11],"size": [- 10+ 11],"viewFieldGroupId": [- 481+ 482],"__typename": [1@@ -12983,19 +12934,19 @@ export default {},"UpdateViewFilterGroupInput": {"id": [- 481+ 482],"logicalOperator": [- 594+ 595],"parentViewFilterGroupId": [- 481+ 482],"positionInViewFilterGroup": [- 10+ 11],"viewId": [- 481+ 482],"__typename": [1@@ -13003,10 +12954,10 @@ export default {},"UpdateViewFilterInput": {"id": [- 481+ 482],"update": [- 534+ 535],"__typename": [1@@ -13014,25 +12965,25 @@ export default {},"UpdateViewFilterInputUpdates": {"fieldMetadataId": [- 481+ 482],"operand": [- 595+ 596],"positionInViewFilterGroup": [- 10+ 11],"relationTargetFieldMetadataId": [- 481+ 482],"subFieldName": [1],"value": [- 286+ 287],"viewFilterGroupId": [- 481+ 482],"__typename": [1@@ -13040,10 +12991,10 @@ export default {},"UpdateViewGroupInput": {"id": [- 481+ 482],"update": [- 536+ 537],"__typename": [1@@ -13051,7 +13002,7 @@ export default {},"UpdateViewGroupInputUpdates": {"fieldMetadataId": [- 481+ 482],"fieldValue": [1@@ -13060,7 +13011,7 @@ export default {4],"position": [- 10+ 11],"__typename": [1@@ -13071,55 +13022,55 @@ export default {1],"calendarEndFieldMetadataId": [- 481+ 482],"calendarFieldMetadataId": [- 481+ 482],"calendarLayout": [- 588+ 589],"groupLoadLimit": [- 7+ 8],"icon": [1],"id": [- 481+ 482],"isCompact": [4],"kanbanAggregateOperation": [- 18+ 19],"kanbanAggregateOperationFieldMetadataId": [- 481+ 482],"kanbanColumnWidth": [- 7+ 8],"mainGroupByFieldMetadataId": [- 481+ 482],"name": [1],"openRecordIn": [- 598+ 599],"position": [- 10+ 11],"shouldHideEmptyGroups": [4],"type": [- 601+ 602],"visibility": [- 602+ 603],"__typename": [1@@ -13127,10 +13078,10 @@ export default {},"UpdateViewSortInput": {"id": [- 481+ 482],"update": [- 539+ 540],"__typename": [1@@ -13138,7 +13089,7 @@ export default {},"UpdateViewSortInputUpdates": {"direction": [- 600+ 601],"subFieldName": [1@@ -13149,10 +13100,10 @@ export default {},"UpdateWebhookInput": {"id": [- 481+ 482],"update": [- 541+ 542],"__typename": [1@@ -13191,16 +13142,16 @@ export default {1],"aiAgentModelTier": [- 20+ 21],"aiChatModelTier": [- 20+ 21],"aiEvaluationModelId": [1],"aiModelIdByTier": [- 286+ 287],"allowImpersonation": [4@@ -13209,7 +13160,7 @@ export default {1],"defaultRoleId": [- 481+ 482],"displayName": [1@@ -13218,7 +13169,7 @@ export default {1],"eventLogRetentionDays": [- 10+ 11],"inviteHash": [1@@ -13263,10 +13214,10 @@ export default {1],"trashRetentionDays": [- 10+ 11],"workspaceDiscoverability": [- 616+ 617],"__typename": [1@@ -13274,10 +13225,10 @@ export default {},"UpdateWorkspaceMemberSettingsInput": {"update": [- 286+ 287],"workspaceMemberId": [- 481+ 482],"__typename": [1@@ -13286,10 +13237,10 @@ export default {"Upload": {},"UpsertFieldPermissionsInput": {"fieldPermissions": [- 248+ 249],"roleId": [- 481+ 482],"__typename": [1@@ -13297,16 +13248,16 @@ export default {},"UpsertFieldsWidgetFieldInput": {"fieldMetadataId": [- 481+ 482],"isVisible": [4],"position": [- 10+ 11],"viewFieldId": [- 481+ 482],"__typename": [1@@ -13314,10 +13265,10 @@ export default {},"UpsertFieldsWidgetGroupInput": {"fields": [- 547+ 548],"id": [- 481+ 482],"isVisible": [4@@ -13326,7 +13277,7 @@ export default {1],"position": [- 10+ 11],"__typename": [1@@ -13334,13 +13285,13 @@ export default {},"UpsertFieldsWidgetInput": {"fields": [- 547+ 548],"groups": [- 548+ 549],"widgetId": [- 481+ 482],"__typename": [1@@ -13348,10 +13299,10 @@ export default {},"UpsertObjectPermissionsInput": {"objectPermissions": [- 354+ 355],"roleId": [- 481+ 482],"__typename": [1@@ -13362,7 +13313,7 @@ export default {1],"roleId": [- 481+ 482],"__typename": [1@@ -13370,16 +13321,16 @@ export default {},"UpsertRowLevelPermissionPredicatesInput": {"objectMetadataId": [- 481+ 482],"predicateGroups": [- 421+ 422],"predicates": [- 423+ 424],"roleId": [- 481+ 482],"__typename": [1@@ -13387,10 +13338,10 @@ export default {},"UpsertRowLevelPermissionPredicatesResult": {"predicateGroups": [- 420+ 421],"predicates": [- 419+ 420],"__typename": [1@@ -13398,22 +13349,22 @@ export default {},"UpsertViewWidgetInput": {"view": [- 558+ 559],"viewFields": [- 555+ 556],"viewFilterGroups": [- 556+ 557],"viewFilters": [- 557+ 558],"viewSorts": [- 559+ 560],"widgetId": [- 481+ 482],"__typename": [1@@ -13421,22 +13372,22 @@ export default {},"UpsertViewWidgetViewFieldInput": {"aggregateOperation": [- 18+ 19],"fieldMetadataId": [- 481+ 482],"isVisible": [4],"position": [- 10+ 11],"size": [- 10+ 11],"viewFieldId": [- 481+ 482],"__typename": [1@@ -13444,16 +13395,16 @@ export default {},"UpsertViewWidgetViewFilterGroupInput": {"id": [- 481+ 482],"logicalOperator": [- 594+ 595],"parentViewFilterGroupId": [- 481+ 482],"positionInViewFilterGroup": [- 10+ 11],"__typename": [1@@ -13461,28 +13412,28 @@ export default {},"UpsertViewWidgetViewFilterInput": {"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"operand": [- 595+ 596],"positionInViewFilterGroup": [- 10+ 11],"relationTargetFieldMetadataId": [- 481+ 482],"subFieldName": [1],"value": [- 286+ 287],"viewFilterGroupId": [- 481+ 482],"__typename": [1@@ -13490,34 +13441,34 @@ export default {},"UpsertViewWidgetViewSettingsInput": {"calendarEndFieldMetadataId": [- 481+ 482],"calendarFieldMetadataId": [- 481+ 482],"calendarLayout": [- 588+ 589],"kanbanAggregateOperation": [- 18+ 19],"kanbanAggregateOperationFieldMetadataId": [- 481+ 482],"kanbanColumnWidth": [- 7+ 8],"mainGroupByFieldMetadataId": [- 481+ 482],"openRecordIn": [- 598+ 599],"shouldHideEmptyGroups": [4],"type": [- 601+ 602],"__typename": [1@@ -13525,13 +13476,13 @@ export default {},"UpsertViewWidgetViewSortInput": {"direction": [- 600+ 601],"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"__typename": [1@@ -13539,28 +13490,28 @@ export default {},"UsageAnalytics": {"periodEnd": [- 185+ 186],"periodStart": [- 185+ 186],"timeSeries": [- 573+ 574],"usageByApplication": [- 562+ 563],"usageByModel": [- 562+ 563],"usageByOperationType": [- 562+ 563],"usageByUser": [- 562+ 563],"userDailyUsage": [- 575+ 576],"__typename": [1@@ -13568,13 +13519,13 @@ export default {},"UsageAnalyticsInput": {"operationTypes": [- 565+ 566],"periodEnd": [- 185+ 186],"periodStart": [- 185+ 186],"userWorkspaceId": [1@@ -13585,7 +13536,7 @@ export default {},"UsageBreakdownItem": {"creditsUsed": [- 10+ 11],"key": [1@@ -13599,31 +13550,31 @@ export default {},"UsageLimit": {"burstValue": [- 79+ 80],"createdAt": [- 185+ 186],"id": [- 481+ 482],"limitKind": [1],"limitValue": [- 79+ 80],"operationType": [- 565+ 566],"periodCount": [- 7+ 8],"periodUnit": [1],"resourceType": [- 572+ 573],"spenderId": [1@@ -13632,10 +13583,10 @@ export default {1],"unit": [- 574+ 575],"updatedAt": [- 185+ 186],"__typename": [1@@ -13643,10 +13594,10 @@ export default {},"UsageLimitOperationDefinition": {"allowedUnits": [- 574+ 575],"operationType": [- 565+ 566],"__typename": [1@@ -13655,7 +13606,7 @@ export default {"UsageOperationType": {},"UsageQuotaDefinition": {"allowedOperations": [- 564+ 565],"allowedSpenderTypes": [1@@ -13664,10 +13615,10 @@ export default {1],"operatorOnlyScopes": [- 568+ 569],"resourceType": [- 572+ 573],"__typename": [1@@ -13675,7 +13626,7 @@ export default {},"UsageQuotaDefinitions": {"definitions": [- 566+ 567],"hasAllowancePeriod": [4@@ -13689,7 +13640,7 @@ export default {},"UsageQuotaOperatorOnlyScope": {"operationType": [- 565+ 566],"periodUnit": [1@@ -13698,7 +13649,7 @@ export default {1],"unit": [- 574+ 575],"__typename": [1@@ -13706,13 +13657,13 @@ export default {},"UsageQuotaScopeConsumption": {"consumedValue": [- 79+ 80],"periodEnd": [- 185+ 186],"periodStart": [- 185+ 186],"__typename": [1@@ -13720,13 +13671,13 @@ export default {},"UsageQuotaScopeInput": {"operationType": [- 565+ 566],"periodUnit": [1],"resourceType": [- 572+ 573],"spenderId": [1@@ -13735,7 +13686,7 @@ export default {1],"unit": [- 574+ 575],"__typename": [1@@ -13743,34 +13694,34 @@ export default {},"UsageQuotaWithConsumption": {"consumedValue": [- 79+ 80],"id": [- 481+ 482],"isEnforced": [4],"limitValue": [- 79+ 80],"operationType": [- 565+ 566],"periodEnd": [- 185+ 186],"periodStart": [- 185+ 186],"periodUnit": [1],"remainingValue": [- 79+ 80],"resourceType": [- 572+ 573],"spenderId": [1@@ -13782,7 +13733,7 @@ export default {1],"unit": [- 574+ 575],"__typename": [1@@ -13791,7 +13742,7 @@ export default {"UsageResourceType": {},"UsageTimeSeries": {"creditsUsed": [- 10+ 11],"date": [1@@ -13803,7 +13754,7 @@ export default {"UsageUnit": {},"UsageUserDaily": {"dailyUsage": [- 573+ 574],"userWorkspaceId": [1@@ -13814,7 +13765,7 @@ export default {},"User": {"availableWorkspaces": [- 70+ 71],"canAccessFullAdminPanel": [4@@ -13823,19 +13774,19 @@ export default {4],"createdAt": [- 185+ 186],"currentUserWorkspace": [- 579+ 580],"currentWorkspace": [- 610+ 611],"deletedAt": [- 185+ 186],"deletedWorkspaceMembers": [- 198+ 199],"disabled": [4@@ -13850,7 +13801,7 @@ export default {4],"id": [- 481+ 482],"isEmailVerified": [4@@ -13865,31 +13816,31 @@ export default {1],"onboardingStatus": [- 361+ 362],"previousOnboardingStatus": [- 361+ 362],"supportUserHash": [1],"updatedAt": [- 185+ 186],"userVars": [- 287+ 288],"userWorkspaces": [- 579+ 580],"workspaceMember": [- 619+ 620],"workspaceMembers": [- 619+ 620],"workspaces": [- 579+ 580],"__typename": [1@@ -13915,7 +13866,7 @@ export default {1],"options": [- 286+ 287],"type": [1@@ -13932,13 +13883,13 @@ export default {1],"createdAt": [- 185+ 186],"expiresAt": [- 185+ 186],"id": [- 481+ 482],"ipAddress": [1@@ -13950,13 +13901,13 @@ export default {4],"lastActiveAt": [- 185+ 186],"userAgent": [1],"workspaceId": [- 481+ 482],"__typename": [1@@ -13964,13 +13915,13 @@ export default {},"UserWorkspace": {"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"id": [- 481+ 482],"isImpersonating": [4@@ -13979,25 +13930,25 @@ export default {1],"objectPermissions": [- 353+ 354],"objectsPermissions": [- 353+ 354],"permissionFlags": [- 378+ 379],"twoFactorAuthenticationMethodSummary": [- 477+ 478],"updatedAt": [- 185+ 186],"user": [- 576+ 577],"userId": [- 481+ 482],"__typename": [1@@ -14005,7 +13956,7 @@ export default {},"ValidateApprovedAccessDomainInput": {"approvedAccessDomainId": [- 481+ 482],"validationToken": [1@@ -14022,7 +13973,7 @@ export default {4],"id": [- 481+ 482],"__typename": [1@@ -14033,7 +13984,7 @@ export default {1],"errorFieldMetadataId": [- 481+ 482],"expression": [1@@ -14042,7 +13993,7 @@ export default {1],"id": [- 481+ 482],"isActive": [4@@ -14054,7 +14005,7 @@ export default {1],"objectMetadataId": [- 481+ 482],"__typename": [1@@ -14065,7 +14016,7 @@ export default {1],"priority": [- 10+ 11],"status": [1@@ -14082,10 +14033,10 @@ export default {},"VerifyEmailAndGetLoginToken": {"loginToken": [- 64+ 65],"workspaceUrls": [- 628+ 629],"__typename": [1@@ -14101,7 +14052,7 @@ export default {},"VersionDistributionEntry": {"count": [- 7+ 8],"version": [1@@ -14115,34 +14066,34 @@ export default {1],"applicationId": [- 481+ 482],"calendarEndFieldMetadataId": [- 481+ 482],"calendarFieldMetadataId": [- 481+ 482],"calendarLayout": [- 588+ 589],"createdAt": [- 185+ 186],"createdByUserWorkspaceId": [- 481+ 482],"deletedAt": [- 185+ 186],"groupLoadLimit": [- 7+ 8],"icon": [1],"id": [- 481+ 482],"isActive": [4@@ -14157,67 +14108,67 @@ export default {4],"kanbanAggregateOperation": [- 18+ 19],"kanbanAggregateOperationFieldMetadataId": [- 481+ 482],"kanbanColumnWidth": [- 7+ 8],"key": [- 597+ 598],"mainGroupByFieldMetadataId": [- 481+ 482],"name": [1],"objectMetadataId": [- 481+ 482],"openRecordIn": [- 598+ 599],"position": [- 10+ 11],"shouldHideEmptyGroups": [4],"type": [- 601+ 602],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"viewFieldGroups": [- 591+ 592],"viewFields": [- 590+ 591],"viewFilterGroups": [- 593+ 594],"viewFilters": [- 592+ 593],"viewGroups": [- 596+ 597],"viewSorts": [- 599+ 600],"visibility": [- 602+ 603],"workspaceId": [- 481+ 482],"__typename": [1@@ -14226,7 +14177,7 @@ export default {"ViewCalendarLayout": {},"ViewConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -14234,22 +14185,22 @@ export default {},"ViewField": {"aggregateOperation": [- 18+ 19],"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"isActive": [4@@ -14264,25 +14215,25 @@ export default {4],"position": [- 10+ 11],"size": [- 10+ 11],"universalIdentifier": [- 481+ 482],"updatedAt": [- 185+ 186],"viewFieldGroupId": [- 481+ 482],"viewId": [- 481+ 482],"workspaceId": [- 481+ 482],"__typename": [1@@ -14290,13 +14241,13 @@ export default {},"ViewFieldGroup": {"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"id": [- 481+ 482],"isActive": [4@@ -14311,19 +14262,19 @@ export default {1],"position": [- 10+ 11],"updatedAt": [- 185+ 186],"viewFields": [- 590+ 591],"viewId": [- 481+ 482],"workspaceId": [- 481+ 482],"__typename": [1@@ -14331,43 +14282,43 @@ export default {},"ViewFilter": {"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"operand": [- 595+ 596],"positionInViewFilterGroup": [- 10+ 11],"relationTargetFieldMetadataId": [- 481+ 482],"subFieldName": [1],"updatedAt": [- 185+ 186],"value": [- 286+ 287],"viewFilterGroupId": [- 481+ 482],"viewId": [- 481+ 482],"workspaceId": [- 481+ 482],"__typename": [1@@ -14375,31 +14326,31 @@ export default {},"ViewFilterGroup": {"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"id": [- 481+ 482],"logicalOperator": [- 594+ 595],"parentViewFilterGroupId": [- 481+ 482],"positionInViewFilterGroup": [- 10+ 11],"updatedAt": [- 185+ 186],"viewId": [- 481+ 482],"workspaceId": [- 481+ 482],"__typename": [1@@ -14409,31 +14360,31 @@ export default {"ViewFilterOperand": {},"ViewGroup": {"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"fieldValue": [1],"id": [- 481+ 482],"isVisible": [4],"position": [- 10+ 11],"updatedAt": [- 185+ 186],"viewId": [- 481+ 482],"workspaceId": [- 481+ 482],"__typename": [1@@ -14443,31 +14394,31 @@ export default {"ViewOpenRecordIn": {},"ViewSort": {"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"direction": [- 600+ 601],"fieldMetadataId": [- 481+ 482],"id": [- 481+ 482],"subFieldName": [1],"updatedAt": [- 185+ 186],"viewId": [- 481+ 482],"workspaceId": [- 481+ 482],"__typename": [1@@ -14478,19 +14429,19 @@ export default {"ViewVisibility": {},"Webhook": {"applicationId": [- 481+ 482],"createdAt": [- 185+ 186],"deletedAt": [- 185+ 186],"description": [1],"id": [- 481+ 482],"operations": [1@@ -14502,7 +14453,7 @@ export default {1],"updatedAt": [- 185+ 186],"__typename": [1@@ -14510,91 +14461,91 @@ export default {},"WidgetConfiguration": {"on_AggregateChartConfiguration": [- 17+ 18],"on_BarChartConfiguration": [- 73+ 74],"on_CalendarConfiguration": [- 112+ 113],"on_CallRecordingSummaryConfiguration": [- 113+ 114],"on_CallRecordingTranscriptConfiguration": [- 114+ 115],"on_ChatConfiguration": [- 122+ 123],"on_ChatThreadsConfiguration": [- 125+ 126],"on_EmailThreadConfiguration": [- 214+ 215],"on_EmailsConfiguration": [- 218+ 219],"on_FieldConfiguration": [- 241+ 242],"on_FieldRichTextConfiguration": [- 249+ 250],"on_FieldsConfiguration": [- 250+ 251],"on_FilesConfiguration": [- 256+ 257],"on_FormFieldConfiguration": [- 259+ 260],"on_FrontComponentConfiguration": [- 261+ 262],"on_IframeConfiguration": [- 270+ 271],"on_LineChartConfiguration": [- 290+ 291],"on_MessageCampaignBodyConfiguration": [- 311+ 312],"on_MessageCampaignDetailsConfiguration": [- 312+ 313],"on_NotesConfiguration": [- 344+ 345],"on_PieChartConfiguration": [- 379+ 380],"on_RecordTableConfiguration": [- 407+ 408],"on_StandaloneRichTextConfiguration": [- 457+ 458],"on_TasksConfiguration": [- 466+ 467],"on_TimelineConfiguration": [- 470+ 471],"on_ViewConfiguration": [- 589+ 590],"on_WorkflowConfiguration": [- 607+ 608],"on_WorkflowRunConfiguration": [- 608+ 609],"on_WorkflowVersionConfiguration": [- 609+ 610],"__typename": [1@@ -14604,7 +14555,7 @@ export default {"WidgetType": {},"WorkflowConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -14612,7 +14563,7 @@ export default {},"WorkflowRunConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -14620,7 +14571,7 @@ export default {},"WorkflowVersionConfiguration": {"configurationType": [- 605+ 606],"__typename": [1@@ -14628,22 +14579,22 @@ export default {},"Workspace": {"activationStatus": [- 611+ 612],"aiAdditionalInstructions": [1],"aiAgentModelTier": [- 20+ 21],"aiChatModelTier": [- 20+ 21],"aiEvaluationModelId": [1],"aiModelIdByTier": [- 286+ 287],"allowImpersonation": [4@@ -14652,19 +14603,19 @@ export default {1],"billingCustomer": [- 81+ 82],"billingEntitlements": [- 83+ 84],"billingSubscriptions": [- 99+ 100],"createdAt": [- 185+ 186],"currentBillingSubscription": [- 99+ 100],"customDomain": [1@@ -14673,10 +14624,10 @@ export default {1],"defaultRole": [- 416+ 417],"deletedAt": [- 185+ 186],"displayName": [1@@ -14685,10 +14636,10 @@ export default {1],"eventLogRetentionDays": [- 10+ 11],"featureFlags": [- 238+ 239],"hasValidEnterpriseValidityToken": [4@@ -14697,10 +14648,10 @@ export default {4],"id": [- 481+ 482],"installedApplications": [- 35+ 36],"inviteHash": [1@@ -14748,52 +14699,52 @@ export default {1],"logoFileId": [- 481+ 482],"metadataVersion": [- 10+ 11],"subdomain": [1],"trashRetentionDays": [- 10+ 11],"updatedAt": [- 185+ 186],"viewFields": [- 590+ 591],"viewFilterGroups": [- 593+ 594],"viewFilters": [- 592+ 593],"viewGroups": [- 596+ 597],"viewSorts": [- 599+ 600],"views": [- 587+ 588],"workspaceCustomApplication": [- 35+ 36],"workspaceCustomApplicationId": [1],"workspaceDiscoverability": [- 616+ 617],"workspaceMembersCount": [- 10+ 11],"workspaceUrls": [- 628+ 629],"__typename": [1@@ -14802,13 +14753,13 @@ export default {"WorkspaceActivationStatus": {},"WorkspaceAiStats": {"conversationsCount": [- 7+ 8],"skillsCount": [- 7+ 8],"toolsCount": [- 7+ 8],"__typename": [1@@ -14817,19 +14768,19 @@ export default {"WorkspaceCompanyEnrichmentOutcome": {},"WorkspaceCompanyEnrichmentResult": {"enrichment": [- 286+ 287],"isBookCallOnboardingStepPending": [4],"outcome": [- 613+ 614],"personEnrichment": [- 286+ 287],"personOutcome": [- 626+ 627],"__typename": [1@@ -14852,13 +14803,13 @@ export default {1],"expiresAt": [- 185+ 186],"id": [- 481+ 482],"roleId": [- 481+ 482],"__typename": [1@@ -14877,34 +14828,34 @@ export default {1],"calendarStartDay": [- 7+ 8],"colorScheme": [1],"dateFormat": [- 621+ 622],"id": [- 481+ 482],"locale": [1],"name": [- 262+ 263],"numberFormat": [- 622+ 623],"openRecordIn": [- 364+ 365],"roles": [- 416+ 417],"timeFormat": [- 623+ 624],"timeZone": [1@@ -14916,10 +14867,10 @@ export default {1],"userId": [- 481+ 482],"userWorkspaceId": [- 481+ 482],"__typename": [1@@ -14927,13 +14878,13 @@ export default {},"WorkspaceMemberApplicationVariables": {"userWorkspaceId": [- 481+ 482],"variables": [- 577+ 578],"workspaceMemberId": [- 481+ 482],"__typename": [1@@ -14944,7 +14895,7 @@ export default {"WorkspaceMemberTimeFormatEnum": {},"WorkspaceMigration": {"actions": [- 286+ 287],"applicationUniversalIdentifier": [1@@ -14958,7 +14909,7 @@ export default {1],"id": [- 481+ 482],"__typename": [1@@ -14979,10 +14930,10 @@ export default {},"WorkspaceUrlsAndId": {"id": [- 481+ 482],"workspaceUrls": [- 628+ 629],"__typename": [1diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.tsindex 7b25419ee91..abff68b11e4 100644--- a/packages/twenty-front/src/generated-metadata/graphql.ts+++ b/packages/twenty-front/src/generated-metadata/graphql.ts@@ -59,6 +59,16 @@ export type AgentChatEvent = {threadId: Scalars['String']['output'];};+export enum AgentChatInboxAction {+ ARCHIVE = 'ARCHIVE',+ MOVE_TO_INBOX = 'MOVE_TO_INBOX',+ READ = 'READ',+ SNOOZE = 'SNOOZE',+ SUBSCRIBE = 'SUBSCRIBE',+ UNREAD = 'UNREAD',+ UNSUBSCRIBE = 'UNSUBSCRIBE'+}+export type AgentChatOpenThreadsSummary = {__typename?: 'AgentChatOpenThreadsSummary';hasUnreadAssignedThread: Scalars['Boolean']['output'];@@ -3103,7 +3113,6 @@ export type Mutation = {activateWorkspace: Workspace;addAgentChatThreadParticipants: Array<Scalars['UUID']['output']>;addQueryToEventStream: Scalars['Boolean']['output'];- archiveAgentChatThread: AgentChatThreadParticipant;assignAgentChatThread: Scalars['Boolean']['output'];assignRoleToAgent: Scalars['Boolean']['output'];assignRoleToApiKey: Scalars['Boolean']['output'];@@ -3250,9 +3259,6 @@ export type Mutation = {installApplication: Application;/** @deprecated Use installApplication instead */installMarketplaceApp: Scalars['Boolean']['output'];- markAgentChatThreadAsRead: AgentChatThreadParticipant;- markAgentChatThreadAsUnread: AgentChatThreadParticipant;- moveAgentChatThreadToInbox: AgentChatThreadParticipant;refreshEnterpriseValidityToken: Scalars['Boolean']['output'];releaseEnterpriseServerBinding: EnterpriseLicenseInfoDto;removeQueryFromEventStream: Scalars['Boolean']['output'];@@ -3295,12 +3301,10 @@ export type Mutation = {signUpInNewWorkspace: SignUp;signUpInWorkspace: SignUp;skipSyncEmailOnboardingStep: OnboardingStepSuccess;- snoozeAgentChatThread: AgentChatThreadParticipant;startChannelSync: ChannelSyncSuccess;startWorkspaceSetupChat: StartWorkspaceSetupChatResult;stopAgentChatStream: Scalars['Boolean']['output'];stopImpersonation: StopImpersonation;- subscribeToAgentChatThread: AgentChatThreadParticipant;switchBillingPlan: BillingUpdate;switchSubscriptionInterval: BillingUpdate;syncApplication: WorkspaceMigration;@@ -3310,7 +3314,7 @@ export type Mutation = {triggerInstallApplicationJob: TriggerInstallApplicationJobResult;triggerUninstallApplicationJob: TriggerUninstallApplicationJobResult;uninstallApplication: Scalars['Boolean']['output'];- unsubscribeFromAgentChatThread: AgentChatThreadParticipant;+ updateAgentChatThreadInboxState: Array<AgentChatThreadParticipant>;updateApiKey?: Maybe<ApiKey>;updateAppMessageChannel: MessageChannel;updateApplication: Application;@@ -3406,11 +3410,6 @@ export type MutationAddQueryToEventStreamArgs = {};-export type MutationArchiveAgentChatThreadArgs = {- threadId: Scalars['UUID']['input'];-};--export type MutationAssignAgentChatThreadArgs = {assigneeWorkspaceMemberId?: InputMaybe<Scalars['UUID']['input']>;threadId: Scalars['UUID']['input'];@@ -4112,21 +4111,6 @@ export type MutationInstallMarketplaceAppArgs = {};-export type MutationMarkAgentChatThreadAsReadArgs = {- threadId: Scalars['UUID']['input'];-};---export type MutationMarkAgentChatThreadAsUnreadArgs = {- threadId: Scalars['UUID']['input'];-};---export type MutationMoveAgentChatThreadToInboxArgs = {- threadId: Scalars['UUID']['input'];-};--export type MutationRemoveQueryFromEventStreamArgs = {input: RemoveQueryFromEventStreamInput;};@@ -4352,12 +4336,6 @@ export type MutationSkipSyncEmailOnboardingStepArgs = {};-export type MutationSnoozeAgentChatThreadArgs = {- snoozedUntil: Scalars['DateTime']['input'];- threadId: Scalars['UUID']['input'];-};--export type MutationStartChannelSyncArgs = {connectedAccountId: Scalars['UUID']['input'];};@@ -4374,11 +4352,6 @@ export type MutationStopAgentChatStreamArgs = {};-export type MutationSubscribeToAgentChatThreadArgs = {- threadId: Scalars['UUID']['input'];-};--export type MutationSyncApplicationArgs = {dryRun?: InputMaybe<Scalars['Boolean']['input']>;inferDeletionFromMissingEntities?: InputMaybe<Scalars['Boolean']['input']>;@@ -4415,8 +4388,10 @@ export type MutationUninstallApplicationArgs = {};-export type MutationUnsubscribeFromAgentChatThreadArgs = {- threadId: Scalars['UUID']['input'];+export type MutationUpdateAgentChatThreadInboxStateArgs = {+ action: AgentChatInboxAction;+ snoozedUntil?: InputMaybe<Scalars['DateTime']['input']>;+ threadIds: Array<Scalars['UUID']['input']>;};@@ -8162,13 +8137,6 @@ export type ActivateSkillMutationVariables = Exact<{export type ActivateSkillMutation = { __typename?: 'Mutation', activateSkill: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isCustom: boolean, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } };-export type ArchiveAgentChatThreadMutationVariables = Exact<{- threadId: Scalars['UUID']['input'];-}>;---export type ArchiveAgentChatThreadMutation = { __typename?: 'Mutation', archiveAgentChatThread: { __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, isSubscribed: boolean, lastMentionedAt?: string | null, updatedAt: string } };-export type AssignAgentChatThreadMutationVariables = Exact<{threadId: Scalars['UUID']['input'];assigneeWorkspaceMemberId?: InputMaybe<Scalars['UUID']['input']>;@@ -8232,27 +8200,6 @@ export type DeleteSkillMutationVariables = Exact<{export type DeleteSkillMutation = { __typename?: 'Mutation', deleteSkill: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isCustom: boolean, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } };-export type MarkAgentChatThreadAsReadMutationVariables = Exact<{- threadId: Scalars['UUID']['input'];-}>;---export type MarkAgentChatThreadAsReadMutation = { __typename?: 'Mutation', markAgentChatThreadAsRead: { __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, isSubscribed: boolean, lastMentionedAt?: string | null, updatedAt: string } };--export type MarkAgentChatThreadAsUnreadMutationVariables = Exact<{- threadId: Scalars['UUID']['input'];-}>;---export type MarkAgentChatThreadAsUnreadMutation = { __typename?: 'Mutation', markAgentChatThreadAsUnread: { __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, isSubscribed: boolean, lastMentionedAt?: string | null, updatedAt: string } };--export type MoveAgentChatThreadToInboxMutationVariables = Exact<{- threadId: Scalars['UUID']['input'];-}>;---export type MoveAgentChatThreadToInboxMutation = { __typename?: 'Mutation', moveAgentChatThreadToInbox: { __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, isSubscribed: boolean, lastMentionedAt?: string | null, updatedAt: string } };-export type RetryChatMessageMutationVariables = Exact<{threadId: Scalars['UUID']['input'];modelId?: InputMaybe<Scalars['String']['input']>;@@ -8274,14 +8221,6 @@ export type SendChatMessageMutationVariables = Exact<{export type SendChatMessageMutation = { __typename?: 'Mutation', sendChatMessage: { __typename?: 'SendChatMessageResult', messageId?: string | null, queued: boolean, streamId?: string | null, mentionedParticipantWorkspaceMemberIds?: Array<string> | null } };-export type SnoozeAgentChatThreadMutationVariables = Exact<{- threadId: Scalars['UUID']['input'];- snoozedUntil: Scalars['DateTime']['input'];-}>;---export type SnoozeAgentChatThreadMutation = { __typename?: 'Mutation', snoozeAgentChatThread: { __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, isSubscribed: boolean, lastMentionedAt?: string | null, updatedAt: string } };-export type StopAgentChatStreamMutationVariables = Exact<{threadId: Scalars['UUID']['input'];}>;@@ -8289,19 +8228,14 @@ export type StopAgentChatStreamMutationVariables = Exact<{export type StopAgentChatStreamMutation = { __typename?: 'Mutation', stopAgentChatStream: boolean };-export type SubscribeToAgentChatThreadMutationVariables = Exact<{- threadId: Scalars['UUID']['input'];-}>;---export type SubscribeToAgentChatThreadMutation = { __typename?: 'Mutation', subscribeToAgentChatThread: { __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, isSubscribed: boolean, lastMentionedAt?: string | null, updatedAt: string } };--export type UnsubscribeFromAgentChatThreadMutationVariables = Exact<{- threadId: Scalars['UUID']['input'];+export type UpdateAgentChatThreadInboxStateMutationVariables = Exact<{+ threadIds: Array<Scalars['UUID']['input']> | Scalars['UUID']['input'];+ action: AgentChatInboxAction;+ snoozedUntil?: InputMaybe<Scalars['DateTime']['input']>;}>;-export type UnsubscribeFromAgentChatThreadMutation = { __typename?: 'Mutation', unsubscribeFromAgentChatThread: { __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, isSubscribed: boolean, lastMentionedAt?: string | null, updatedAt: string } };+export type UpdateAgentChatThreadInboxStateMutation = { __typename?: 'Mutation', updateAgentChatThreadInboxState: Array<{ __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, isSubscribed: boolean, lastMentionedAt?: string | null, updatedAt: string }> };export type UpdateOneAgentMutationVariables = Exact<{input: UpdateAgentInput;@@ -10873,7 +10807,6 @@ export const ResetTimelineActivityTypeDocument = {"kind":"Document","definitionsexport const UpdateTimelineActivityTypeIsActiveDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateTimelineActivityTypeIsActive"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateTimelineActivityTypeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateTimelineActivityType"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]}}]} as unknown as DocumentNode<UpdateTimelineActivityTypeIsActiveMutation, UpdateTimelineActivityTypeIsActiveMutationVariables>;export const FindManyTimelineActivityTypesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyTimelineActivityTypes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"timelineActivityTypes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"emit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"on"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]}}]} as unknown as DocumentNode<FindManyTimelineActivityTypesQuery, FindManyTimelineActivityTypesQueryVariables>;export const ActivateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ActivateSkill"},"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":"activateSkill"},"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":"isCustom"}},{"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<ActivateSkillMutation, ActivateSkillMutationVariables>;-export const ArchiveAgentChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ArchiveAgentChatThread"},"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":"archiveAgentChatThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ArchiveAgentChatThreadMutation, ArchiveAgentChatThreadMutationVariables>;export const AssignAgentChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AssignAgentChatThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"assigneeWorkspaceMemberId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"assignAgentChatThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}},{"kind":"Argument","name":{"kind":"Name","value":"assigneeWorkspaceMemberId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"assigneeWorkspaceMemberId"}}}]}]}}]} as unknown as DocumentNode<AssignAgentChatThreadMutation, AssignAgentChatThreadMutationVariables>;export const AssignRoleToAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AssignRoleToAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"assignRoleToAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"agentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"roleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}}}]}]}}]} as unknown as DocumentNode<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>;export const CreateChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateChatThread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createChatThread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<CreateChatThreadMutation, CreateChatThreadMutationVariables>;@@ -10883,15 +10816,10 @@ export const DeactivateSkillDocument = {"kind":"Document","definitions":[{"kind"export const DeleteOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentIdInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"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":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<DeleteOneAgentMutation, DeleteOneAgentMutationVariables>;export const DeleteQueuedChatMessageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteQueuedChatMessage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteQueuedChatMessage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"messageId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}}}]}]}}]} as unknown as DocumentNode<DeleteQueuedChatMessageMutation, DeleteQueuedChatMessageMutationVariables>;export const DeleteSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteSkill"},"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":"deleteSkill"},"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":"isCustom"}},{"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<DeleteSkillMutation, DeleteSkillMutationVariables>;-export const MarkAgentChatThreadAsReadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MarkAgentChatThreadAsRead"},"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":"markAgentChatThreadAsRead"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<MarkAgentChatThreadAsReadMutation, MarkAgentChatThreadAsReadMutationVariables>;-export const MarkAgentChatThreadAsUnreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MarkAgentChatThreadAsUnread"},"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":"markAgentChatThreadAsUnread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<MarkAgentChatThreadAsUnreadMutation, MarkAgentChatThreadAsUnreadMutationVariables>;-export const MoveAgentChatThreadToInboxDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MoveAgentChatThreadToInbox"},"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":"moveAgentChatThreadToInbox"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<MoveAgentChatThreadToInboxMutation, MoveAgentChatThreadToInboxMutationVariables>;export const RetryChatMessageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RetryChatMessage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"modelId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"retryChatMessage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}},{"kind":"Argument","name":{"kind":"Name","value":"modelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"modelId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"queued"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}}]}}]}}]} as unknown as DocumentNode<RetryChatMessageMutation, RetryChatMessageMutationVariables>;export const SendChatMessageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SendChatMessage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"text"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"browsingContext"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"modelId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fileAttachments"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FileAttachmentInput"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"mentionedWorkspaceMemberIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sendChatMessage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}},{"kind":"Argument","name":{"kind":"Name","value":"text"},"value":{"kind":"Variable","name":{"kind":"Name","value":"text"}}},{"kind":"Argument","name":{"kind":"Name","value":"messageId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}}},{"kind":"Argument","name":{"kind":"Name","value":"browsingContext"},"value":{"kind":"Variable","name":{"kind":"Name","value":"browsingContext"}}},{"kind":"Argument","name":{"kind":"Name","value":"modelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"modelId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fileAttachments"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fileAttachments"}}},{"kind":"Argument","name":{"kind":"Name","value":"mentionedWorkspaceMemberIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"mentionedWorkspaceMemberIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"queued"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"mentionedParticipantWorkspaceMemberIds"}}]}}]}}]} as unknown as DocumentNode<SendChatMessageMutation, SendChatMessageMutationVariables>;-export const SnoozeAgentChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SnoozeAgentChatThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"snoozedUntil"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"snoozeAgentChatThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}},{"kind":"Argument","name":{"kind":"Name","value":"snoozedUntil"},"value":{"kind":"Variable","name":{"kind":"Name","value":"snoozedUntil"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<SnoozeAgentChatThreadMutation, SnoozeAgentChatThreadMutationVariables>;export const StopAgentChatStreamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"StopAgentChatStream"},"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":"stopAgentChatStream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}]}]}}]} as unknown as DocumentNode<StopAgentChatStreamMutation, StopAgentChatStreamMutationVariables>;-export const SubscribeToAgentChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SubscribeToAgentChatThread"},"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":"subscribeToAgentChatThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<SubscribeToAgentChatThreadMutation, SubscribeToAgentChatThreadMutationVariables>;-export const UnsubscribeFromAgentChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UnsubscribeFromAgentChatThread"},"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":"unsubscribeFromAgentChatThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UnsubscribeFromAgentChatThreadMutation, UnsubscribeFromAgentChatThreadMutationVariables>;+export const UpdateAgentChatThreadInboxStateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateAgentChatThreadInboxState"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"action"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatInboxAction"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"snoozedUntil"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateAgentChatThreadInboxState"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadIds"}}},{"kind":"Argument","name":{"kind":"Name","value":"action"},"value":{"kind":"Variable","name":{"kind":"Name","value":"action"}}},{"kind":"Argument","name":{"kind":"Name","value":"snoozedUntil"},"value":{"kind":"Variable","name":{"kind":"Name","value":"snoozedUntil"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateAgentChatThreadInboxStateMutation, UpdateAgentChatThreadInboxStateMutationVariables>;export const UpdateOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateAgentInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"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":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>;export const UpdateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateSkillInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateSkill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"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":"isCustom"}},{"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<UpdateSkillMutation, UpdateSkillMutationVariables>;export const FindManyAgentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyAgents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyAgents"},"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":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindManyAgentsQuery, FindManyAgentsQueryVariables>;diff --git a/packages/twenty-front/src/modules/ai/components/AgentChatThreadMarkAsReadEffect.tsx b/packages/twenty-front/src/modules/ai/components/AgentChatThreadMarkAsReadEffect.tsxindex 0c7f8336931..13d92247885 100644--- a/packages/twenty-front/src/modules/ai/components/AgentChatThreadMarkAsReadEffect.tsx+++ b/packages/twenty-front/src/modules/ai/components/AgentChatThreadMarkAsReadEffect.tsx@@ -2,7 +2,7 @@ import { useStore } from 'jotai';import { useEffect, useState } from 'react';import { isDefined, isValidUuid } from 'twenty-shared/utils';-import { useAgentChatThreadParticipants } from '@/ai/hooks/useAgentChatThreadParticipants';+import { useUpdateAgentChatThreadInboxState } from '@/ai/hooks/useUpdateAgentChatThreadInboxState';import { agentChatDisplayedThreadState } from '@/ai/states/agentChatDisplayedThreadState';import { agentChatThreadOpenViewCountState } from '@/ai/states/agentChatThreadOpenViewCountState';import { agentChatThreadParticipantsState } from '@/ai/states/agentChatThreadParticipantsState';@@ -11,6 +11,7 @@ import { agentChatThreadRecordFamilySelector } from '@/ai/states/selectors/agentimport { getAgentChatThreadInboxStatus } from '@/ai/utils/getAgentChatThreadInboxStatus';import { useAtomFamilySelectorValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilySelectorValue';import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';+import { AgentChatInboxAction } from '~/generated-metadata/graphql';const isDocumentVisible = () => document.visibilityState === 'visible';@@ -33,7 +34,8 @@ export const AgentChatThreadMarkAsReadEffect = () => {agentChatThreadParticipantsState,);const [isVisible, setIsVisible] = useState(isDocumentVisible);- const { markAgentChatThreadAsRead } = useAgentChatThreadParticipants();+ const { updateAgentChatThreadInboxState } =+ useUpdateAgentChatThreadInboxState();useEffect(() => {const handleVisibilityChange = () => setIsVisible(isDocumentVisible());@@ -93,13 +95,16 @@ export const AgentChatThreadMarkAsReadEffect = () => {const isKeptUnread = visit?.threadId === threadId && visit.isKeptUnread;if (isUnread && !isKeptUnread) {- void markAgentChatThreadAsRead(threadId);+ void updateAgentChatThreadInboxState({+ threadIds: [threadId],+ action: AgentChatInboxAction.READ,+ });}}, [isVisible,lastActivityAt,agentChatThreadParticipants,- markAgentChatThreadAsRead,+ updateAgentChatThreadInboxState,store,threadId,]);diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AgentChatThreadMarkAsReadEffect.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AgentChatThreadMarkAsReadEffect.test.tsxindex bb7ba8b4e4c..6a3f9c69519 100644--- a/packages/twenty-front/src/modules/ai/components/__tests__/AgentChatThreadMarkAsReadEffect.test.tsx+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AgentChatThreadMarkAsReadEffect.test.tsx@@ -11,10 +11,12 @@ import {resetJotaiStore,} from '@/ui/utilities/state/jotai/jotaiStore';-const markAgentChatThreadAsRead = jest.fn();+const updateAgentChatThreadInboxState = jest.fn();-jest.mock('@/ai/hooks/useAgentChatThreadParticipants', () => ({- useAgentChatThreadParticipants: () => ({ markAgentChatThreadAsRead }),+jest.mock('@/ai/hooks/useUpdateAgentChatThreadInboxState', () => ({+ useUpdateAgentChatThreadInboxState: () => ({+ updateAgentChatThreadInboxState,+ }),}));const THREAD_ID = '6f1c2b0e-7a4d-4e8b-9c3f-2d5a1b8e7c60';@@ -56,7 +58,10 @@ describe('AgentChatThreadMarkAsReadEffect', () => {it('marks the thread on screen as read and keeps where the member left off', () => {renderChatView();- expect(markAgentChatThreadAsRead).toHaveBeenCalledWith(THREAD_ID);+ expect(updateAgentChatThreadInboxState).toHaveBeenCalledWith({+ threadIds: [THREAD_ID],+ action: 'READ',+ });expect(jotaiStore.get(agentChatThreadVisitState.atom)).toEqual({threadId: THREAD_ID,isUnread: true,diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/archiveAgentChatThread.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/archiveAgentChatThread.tsdeleted file mode 100644index a59483d2781..00000000000--- a/packages/twenty-front/src/modules/ai/graphql/mutations/archiveAgentChatThread.ts+++ /dev/null@@ -1,12 +0,0 @@-import { gql } from '@apollo/client';--import { AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT } from '@/ai/graphql/fragments/agentChatThreadParticipantFragment';--export const ARCHIVE_AGENT_CHAT_THREAD = gql`- ${AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT}- mutation ArchiveAgentChatThread($threadId: UUID!) {- archiveAgentChatThread(threadId: $threadId) {- ...AgentChatThreadParticipantFields- }- }-`;diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/markAgentChatThreadAsRead.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/markAgentChatThreadAsRead.tsdeleted file mode 100644index 203ec40e0ea..00000000000--- a/packages/twenty-front/src/modules/ai/graphql/mutations/markAgentChatThreadAsRead.ts+++ /dev/null@@ -1,12 +0,0 @@-import { gql } from '@apollo/client';--import { AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT } from '@/ai/graphql/fragments/agentChatThreadParticipantFragment';--export const MARK_AGENT_CHAT_THREAD_AS_READ = gql`- ${AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT}- mutation MarkAgentChatThreadAsRead($threadId: UUID!) {- markAgentChatThreadAsRead(threadId: $threadId) {- ...AgentChatThreadParticipantFields- }- }-`;diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/markAgentChatThreadAsUnread.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/markAgentChatThreadAsUnread.tsdeleted file mode 100644index b37a3d0bcb2..00000000000--- a/packages/twenty-front/src/modules/ai/graphql/mutations/markAgentChatThreadAsUnread.ts+++ /dev/null@@ -1,12 +0,0 @@-import { gql } from '@apollo/client';--import { AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT } from '@/ai/graphql/fragments/agentChatThreadParticipantFragment';--export const MARK_AGENT_CHAT_THREAD_AS_UNREAD = gql`- ${AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT}- mutation MarkAgentChatThreadAsUnread($threadId: UUID!) {- markAgentChatThreadAsUnread(threadId: $threadId) {- ...AgentChatThreadParticipantFields- }- }-`;diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/moveAgentChatThreadToInbox.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/moveAgentChatThreadToInbox.tsdeleted file mode 100644index d15c73f88dd..00000000000--- a/packages/twenty-front/src/modules/ai/graphql/mutations/moveAgentChatThreadToInbox.ts+++ /dev/null@@ -1,12 +0,0 @@-import { gql } from '@apollo/client';--import { AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT } from '@/ai/graphql/fragments/agentChatThreadParticipantFragment';--export const MOVE_AGENT_CHAT_THREAD_TO_INBOX = gql`- ${AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT}- mutation MoveAgentChatThreadToInbox($threadId: UUID!) {- moveAgentChatThreadToInbox(threadId: $threadId) {- ...AgentChatThreadParticipantFields- }- }-`;diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/snoozeAgentChatThread.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/snoozeAgentChatThread.tsdeleted file mode 100644index e694e414901..00000000000--- a/packages/twenty-front/src/modules/ai/graphql/mutations/snoozeAgentChatThread.ts+++ /dev/null@@ -1,12 +0,0 @@-import { gql } from '@apollo/client';--import { AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT } from '@/ai/graphql/fragments/agentChatThreadParticipantFragment';--export const SNOOZE_AGENT_CHAT_THREAD = gql`- ${AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT}- mutation SnoozeAgentChatThread($threadId: UUID!, $snoozedUntil: DateTime!) {- snoozeAgentChatThread(threadId: $threadId, snoozedUntil: $snoozedUntil) {- ...AgentChatThreadParticipantFields- }- }-`;diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/subscribeToAgentChatThread.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/subscribeToAgentChatThread.tsdeleted file mode 100644index 3a203813d95..00000000000--- a/packages/twenty-front/src/modules/ai/graphql/mutations/subscribeToAgentChatThread.ts+++ /dev/null@@ -1,12 +0,0 @@-import { gql } from '@apollo/client';--import { AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT } from '@/ai/graphql/fragments/agentChatThreadParticipantFragment';--export const SUBSCRIBE_TO_AGENT_CHAT_THREAD = gql`- ${AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT}- mutation SubscribeToAgentChatThread($threadId: UUID!) {- subscribeToAgentChatThread(threadId: $threadId) {- ...AgentChatThreadParticipantFields- }- }-`;diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/unsubscribeFromAgentChatThread.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/unsubscribeFromAgentChatThread.tsdeleted file mode 100644index 079992f6c20..00000000000--- a/packages/twenty-front/src/modules/ai/graphql/mutations/unsubscribeFromAgentChatThread.ts+++ /dev/null@@ -1,12 +0,0 @@-import { gql } from '@apollo/client';--import { AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT } from '@/ai/graphql/fragments/agentChatThreadParticipantFragment';--export const UNSUBSCRIBE_FROM_AGENT_CHAT_THREAD = gql`- ${AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT}- mutation UnsubscribeFromAgentChatThread($threadId: UUID!) {- unsubscribeFromAgentChatThread(threadId: $threadId) {- ...AgentChatThreadParticipantFields- }- }-`;diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/updateAgentChatThreadInboxState.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/updateAgentChatThreadInboxState.tsnew file mode 100644index 00000000000..ee261a95297--- /dev/null+++ b/packages/twenty-front/src/modules/ai/graphql/mutations/updateAgentChatThreadInboxState.ts@@ -0,0 +1,20 @@+import { gql } from '@apollo/client';++import { AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT } from '@/ai/graphql/fragments/agentChatThreadParticipantFragment';++export const UPDATE_AGENT_CHAT_THREAD_INBOX_STATE = gql`+ ${AGENT_CHAT_THREAD_PARTICIPANT_FRAGMENT}+ mutation UpdateAgentChatThreadInboxState(+ $threadIds: [UUID!]!+ $action: AgentChatInboxAction!+ $snoozedUntil: DateTime+ ) {+ updateAgentChatThreadInboxState(+ threadIds: $threadIds+ action: $action+ snoozedUntil: $snoozedUntil+ ) {+ ...AgentChatThreadParticipantFields+ }+ }+`;diff --git a/packages/twenty-front/src/modules/ai/hooks/__tests__/useAgentChatThreadParticipants.test.tsx b/packages/twenty-front/src/modules/ai/hooks/__tests__/useUpdateAgentChatThreadInboxState.test.tsxsimilarity index 58%rename from packages/twenty-front/src/modules/ai/hooks/__tests__/useAgentChatThreadParticipants.test.tsxrename to packages/twenty-front/src/modules/ai/hooks/__tests__/useUpdateAgentChatThreadInboxState.test.tsxindex 62384986cd5..330e1f11b06 100644--- a/packages/twenty-front/src/modules/ai/hooks/__tests__/useAgentChatThreadParticipants.test.tsx+++ b/packages/twenty-front/src/modules/ai/hooks/__tests__/useUpdateAgentChatThreadInboxState.test.tsx@@ -2,13 +2,17 @@ import { act, renderHook } from '@testing-library/react';import { createStore, Provider } from 'jotai';import { type ReactNode } from 'react';-import { useAgentChatThreadParticipants } from '@/ai/hooks/useAgentChatThreadParticipants';+import { useUpdateAgentChatThreadInboxState } from '@/ai/hooks/useUpdateAgentChatThreadInboxState';import { agentChatThreadParticipantsState } from '@/ai/states/agentChatThreadParticipantsState';import { agentChatThreadVisitState } from '@/ai/states/agentChatThreadVisitState';import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';-import { GetAgentChatOpenThreadsSummaryDocument } from '~/generated-metadata/graphql';+import {+ AgentChatInboxAction,+ GetAgentChatOpenThreadsSummaryDocument,+} from '~/generated-metadata/graphql';const THREAD_ID = '20202020-0000-4000-8000-0000000000aa';+const OTHER_THREAD_ID = '20202020-0000-4000-8000-0000000000bb';const LAST_ACTIVITY_AT = '2026-10-01T10:00:00.000Z';const READ_PARTICIPANT = {threadId: THREAD_ID,@@ -35,7 +39,7 @@ jest.mock('twenty-ui/components/feedback', () => ({useToast: () => ({ enqueueToast }),}));-const renderParticipants = () => {+const renderUpdateInboxState = () => {const store = createStore();store.set(recordStoreFamilyState.atomFamily(THREAD_ID), {@@ -45,7 +49,7 @@ const renderParticipants = () => {} as never);store.set(agentChatThreadParticipantsState.atom, {});- const { result } = renderHook(() => useAgentChatThreadParticipants(), {+ const { result } = renderHook(() => useUpdateAgentChatThreadInboxState(), {wrapper: ({ children }: { children: ReactNode }) => (<Provider store={store}>{children}</Provider>),@@ -54,35 +58,51 @@ const renderParticipants = () => {return { result, store };};-describe('useAgentChatThreadParticipants', () => {+describe('useUpdateAgentChatThreadInboxState', () => {beforeEach(() => {jest.clearAllMocks();});it('reads a thread up to its last activity before the server answers', async () => {mutate.mockReturnValue(new Promise(() => undefined));- const { result, store } = renderParticipants();+ const { result, store } = renderUpdateInboxState();act(() => {- void result.current.markAgentChatThreadAsRead(THREAD_ID);+ void result.current.updateAgentChatThreadInboxState({+ threadIds: [THREAD_ID],+ action: AgentChatInboxAction.READ,+ });});expect(store.get(agentChatThreadParticipantsState.atom)?.[THREAD_ID],- ).toEqual({ threadId: THREAD_ID, lastReadAt: LAST_ACTIVITY_AT });+ ).toEqual({+ threadId: THREAD_ID,+ lastReadAt: LAST_ACTIVITY_AT,+ archivedAt: null,+ snoozedUntil: null,+ isSubscribed: true,+ });});- it('keeps an archive the server accepted', async () => {+ it('archives every selected thread in one request the server accepted', async () => {mutate.mockResolvedValue({ data: {} });- const { result, store } = renderParticipants();+ const { result, store } = renderUpdateInboxState();await act(async () => {- await result.current.archiveAgentChatThread(THREAD_ID);+ await result.current.updateAgentChatThreadInboxState({+ threadIds: [THREAD_ID, OTHER_THREAD_ID],+ action: AgentChatInboxAction.ARCHIVE,+ });});- expect(- store.get(agentChatThreadParticipantsState.atom)?.[THREAD_ID]?.archivedAt,- ).toEqual(expect.any(String));+ const participants = store.get(agentChatThreadParticipantsState.atom);++ expect(participants?.[THREAD_ID]?.archivedAt).toEqual(expect.any(String));+ expect(participants?.[OTHER_THREAD_ID]?.archivedAt).toEqual(+ expect.any(String),+ );+ expect(mutate).toHaveBeenCalledTimes(1);expect(refetchQueries).toHaveBeenCalledWith({include: [GetAgentChatOpenThreadsSummaryDocument],});@@ -90,15 +110,16 @@ describe('useAgentChatThreadParticipants', () => {it('puts the member state back and reports a refused snooze', async () => {mutate.mockRejectedValue(new Error('Snooze time must be in the future'));- const { result, store } = renderParticipants();+ const { result, store } = renderUpdateInboxState();store.set(agentChatThreadParticipantsState.atom, {[THREAD_ID]: READ_PARTICIPANT,});await act(async () => {- await result.current.snoozeAgentChatThreads({+ await result.current.updateAgentChatThreadInboxState({threadIds: [THREAD_ID],+ action: AgentChatInboxAction.SNOOZE,snoozedUntil: new Date('2026-10-02T09:00:00.000Z'),});});@@ -110,7 +131,7 @@ describe('useAgentChatThreadParticipants', () => {});it('keeps a row the server sent while a refused change was on its way', async () => {- const { result, store } = renderParticipants();+ const { result, store } = renderUpdateInboxState();const archivedParticipant = {...READ_PARTICIPANT,archivedAt: '2026-10-01T10:05:00.000Z',@@ -129,7 +150,10 @@ describe('useAgentChatThreadParticipants', () => {});await act(async () => {- await result.current.markAgentChatThreadAsUnread(THREAD_ID);+ await result.current.updateAgentChatThreadInboxState({+ threadIds: [THREAD_ID],+ action: AgentChatInboxAction.UNREAD,+ });});expect(@@ -139,10 +163,13 @@ describe('useAgentChatThreadParticipants', () => {it('removes the change of a refused update on a thread without a row', async () => {mutate.mockRejectedValue(new Error('Network error'));- const { result, store } = renderParticipants();+ const { result, store } = renderUpdateInboxState();await act(async () => {- await result.current.archiveAgentChatThread(THREAD_ID);+ await result.current.updateAgentChatThreadInboxState({+ threadIds: [THREAD_ID],+ action: AgentChatInboxAction.ARCHIVE,+ });});expect(store.get(agentChatThreadParticipantsState.atom)).toEqual({});@@ -150,7 +177,7 @@ describe('useAgentChatThreadParticipants', () => {it('keeps the thread on screen unread when the member marks it unread', async () => {mutate.mockReturnValue(new Promise(() => undefined));- const { result, store } = renderParticipants();+ const { result, store } = renderUpdateInboxState();store.set(agentChatThreadVisitState.atom, {threadId: THREAD_ID,@@ -160,7 +187,10 @@ describe('useAgentChatThreadParticipants', () => {});act(() => {- void result.current.markAgentChatThreadAsUnread(THREAD_ID);+ void result.current.updateAgentChatThreadInboxState({+ threadIds: [THREAD_ID],+ action: AgentChatInboxAction.UNREAD,+ });});expect(store.get(agentChatThreadVisitState.atom)).toEqual({@@ -173,7 +203,7 @@ describe('useAgentChatThreadParticipants', () => {it('puts the visit back when the server refuses to mark it unread', async () => {mutate.mockRejectedValue(new Error('Network error'));- const { result, store } = renderParticipants();+ const { result, store } = renderUpdateInboxState();const visit = {threadId: THREAD_ID,isUnread: false,@@ -184,9 +214,42 @@ describe('useAgentChatThreadParticipants', () => {store.set(agentChatThreadVisitState.atom, visit);await act(async () => {- await result.current.markAgentChatThreadAsUnread(THREAD_ID);+ await result.current.updateAgentChatThreadInboxState({+ threadIds: [THREAD_ID],+ action: AgentChatInboxAction.UNREAD,+ });});expect(store.get(agentChatThreadVisitState.atom)).toEqual(visit);});++ it('keeps a visit to another chat opened while the refused request was pending', async () => {+ const { result, store } = renderUpdateInboxState();+ const otherVisit = {+ threadId: OTHER_THREAD_ID,+ isUnread: true,+ lastReadAt: null,+ isKeptUnread: false,+ };++ mutate.mockImplementation(async () => {+ store.set(agentChatThreadVisitState.atom, otherVisit);+ throw new Error('Network error');+ });+ store.set(agentChatThreadVisitState.atom, {+ threadId: THREAD_ID,+ isUnread: false,+ lastReadAt: LAST_ACTIVITY_AT,+ isKeptUnread: false,+ });++ await act(async () => {+ await result.current.updateAgentChatThreadInboxState({+ threadIds: [THREAD_ID, OTHER_THREAD_ID],+ action: AgentChatInboxAction.UNREAD,+ });+ });++ expect(store.get(agentChatThreadVisitState.atom)).toEqual(otherVisit);+ });});diff --git a/packages/twenty-front/src/modules/ai/hooks/useAgentChatThreadParticipants.ts b/packages/twenty-front/src/modules/ai/hooks/useAgentChatThreadParticipants.tsdeleted file mode 100644index 413c8f866f3..00000000000--- a/packages/twenty-front/src/modules/ai/hooks/useAgentChatThreadParticipants.ts+++ /dev/null@@ -1,228 +0,0 @@-import { type TypedDocumentNode } from '@apollo/client';-import { useApolloClient } from '@apollo/client/react';-import { useStore } from 'jotai';-import { useCallback } from 'react';-import { isDefined } from 'twenty-shared/utils';-import { useToast } from 'twenty-ui/components/feedback';--import { useRefreshAgentChatOpenThreadsSummary } from '@/ai/hooks/useRefreshAgentChatOpenThreadsSummary';-import { agentChatThreadParticipantsState } from '@/ai/states/agentChatThreadParticipantsState';-import {- type AgentChatThreadVisit,- agentChatThreadVisitState,-} from '@/ai/states/agentChatThreadVisitState';-import { agentChatThreadRecordFamilySelector } from '@/ai/states/selectors/agentChatThreadRecordFamilySelector';-import { getToastOptionsFromError } from '@/error-handler/utils/getToastOptionsFromError';-import {- type AgentChatThreadParticipantFieldsFragment,- ArchiveAgentChatThreadDocument,- MarkAgentChatThreadAsReadDocument,- MarkAgentChatThreadAsUnreadDocument,- MoveAgentChatThreadToInboxDocument,- SnoozeAgentChatThreadDocument,- SubscribeToAgentChatThreadDocument,- UnsubscribeFromAgentChatThreadDocument,-} from '~/generated-metadata/graphql';--export const useAgentChatThreadParticipants = () => {- const client = useApolloClient();- const store = useStore();- const { enqueueToast } = useToast();- const { refreshAgentChatOpenThreadsSummary } =- useRefreshAgentChatOpenThreadsSummary();-- // The change shows right away, and is put back if the server refuses it- const updateParticipant = useCallback(- async <TVariables extends { threadId: string }>({- mutation,- variables,- optimisticParticipant,- optimisticVisit,- }: {- mutation: TypedDocumentNode<unknown, TVariables>;- variables: TVariables;- optimisticParticipant: Partial<AgentChatThreadParticipantFieldsFragment>;- optimisticVisit?: Partial<AgentChatThreadVisit>;- }) => {- const { threadId } = variables;- const previousVisit = store.get(agentChatThreadVisitState.atom);- const previousParticipant = store.get(- agentChatThreadParticipantsState.atom,- )?.[threadId];-- if (isDefined(optimisticVisit)) {- store.set(agentChatThreadVisitState.atom, (visit) =>- visit?.threadId === threadId- ? { ...visit, ...optimisticVisit }- : visit,- );- }-- store.set(agentChatThreadParticipantsState.atom, (participants) =>- isDefined(participants)- ? {- ...participants,- [threadId]: {- ...participants[threadId],- ...optimisticParticipant,- threadId,- },- }- : participants,- );- const optimisticEntry = store.get(- agentChatThreadParticipantsState.atom,- )?.[threadId];-- try {- await client.mutate({ mutation, variables });- refreshAgentChatOpenThreadsSummary();- } catch (error) {- enqueueToast(getToastOptionsFromError({ error }));-- if (isDefined(optimisticVisit)) {- store.set(agentChatThreadVisitState.atom, (visit) =>- visit?.threadId === threadId ? previousVisit : visit,- );- }-- // A newer row may have arrived since, and is kept- store.set(agentChatThreadParticipantsState.atom, (participants) => {- if (- !isDefined(participants) ||- participants[threadId] !== optimisticEntry- ) {- return participants;- }-- const { [threadId]: _optimisticEntry, ...otherParticipants } =- participants;-- return isDefined(previousParticipant)- ? { ...otherParticipants, [threadId]: previousParticipant }- : otherParticipants;- });- }- },- [client, enqueueToast, refreshAgentChatOpenThreadsSummary, store],- );-- const markAgentChatThreadAsRead = useCallback(- (threadId: string) =>- updateParticipant({- mutation: MarkAgentChatThreadAsReadDocument,- variables: { threadId },- optimisticParticipant: {- lastReadAt:- store.get(- agentChatThreadRecordFamilySelector.selectorFamily(threadId),- )?.lastActivityAt ?? null,- },- optimisticVisit: { isKeptUnread: false },- }),- [store, updateParticipant],- );-- // On the thread on screen, it stays unread until the member leaves it, and- // its unread line moves to the first message from someone else- const markAgentChatThreadAsUnread = useCallback(- (threadId: string) =>- updateParticipant({- mutation: MarkAgentChatThreadAsUnreadDocument,- variables: { threadId },- optimisticParticipant: { lastReadAt: null },- optimisticVisit: {- isKeptUnread: true,- isUnread: true,- lastReadAt: null,- },- }),- [updateParticipant],- );-- const archiveAgentChatThread = useCallback(- (threadId: string) =>- updateParticipant({- mutation: ArchiveAgentChatThreadDocument,- variables: { threadId },- optimisticParticipant: {- archivedAt: new Date().toISOString(),- snoozedUntil: null,- },- }),- [updateParticipant],- );-- const snoozeAgentChatThreads = useCallback(- async ({- threadIds,- snoozedUntil,- }: {- threadIds: string[];- snoozedUntil: Date;- }) => {- await Promise.all(- threadIds.map((threadId) =>- updateParticipant({- mutation: SnoozeAgentChatThreadDocument,- variables: { threadId, snoozedUntil: snoozedUntil.toISOString() },- optimisticParticipant: {- archivedAt: new Date().toISOString(),- snoozedUntil: snoozedUntil.toISOString(),- isSubscribed: true,- },- }),- ),- );- },- [updateParticipant],- );-- const moveAgentChatThreadToInbox = useCallback(- (threadId: string) =>- updateParticipant({- mutation: MoveAgentChatThreadToInboxDocument,- variables: { threadId },- optimisticParticipant: {- archivedAt: null,- snoozedUntil: null,- isSubscribed: true,- },- }),- [updateParticipant],- );-- const subscribeToAgentChatThread = useCallback(- (threadId: string) =>- updateParticipant({- mutation: SubscribeToAgentChatThreadDocument,- variables: { threadId },- optimisticParticipant: { isSubscribed: true },- }),- [updateParticipant],- );-- const unsubscribeFromAgentChatThread = useCallback(- (threadId: string) =>- updateParticipant({- mutation: UnsubscribeFromAgentChatThreadDocument,- variables: { threadId },- optimisticParticipant: {- isSubscribed: false,- archivedAt: new Date().toISOString(),- snoozedUntil: null,- },- }),- [updateParticipant],- );-- return {- markAgentChatThreadAsRead,- markAgentChatThreadAsUnread,- archiveAgentChatThread,- snoozeAgentChatThreads,- moveAgentChatThreadToInbox,- subscribeToAgentChatThread,- unsubscribeFromAgentChatThread,- };-};diff --git a/packages/twenty-front/src/modules/ai/hooks/useUpdateAgentChatThreadInboxState.ts b/packages/twenty-front/src/modules/ai/hooks/useUpdateAgentChatThreadInboxState.tsnew file mode 100644index 00000000000..303472e5313--- /dev/null+++ b/packages/twenty-front/src/modules/ai/hooks/useUpdateAgentChatThreadInboxState.ts@@ -0,0 +1,149 @@+import { useApolloClient } from '@apollo/client/react';+import { useStore } from 'jotai';+import { useCallback } from 'react';+import { applyAgentChatInboxAction } from 'twenty-shared/ai';+import { isDefined } from 'twenty-shared/utils';+import { useToast } from 'twenty-ui/components/feedback';++import { useRefreshAgentChatOpenThreadsSummary } from '@/ai/hooks/useRefreshAgentChatOpenThreadsSummary';+import { agentChatThreadParticipantsState } from '@/ai/states/agentChatThreadParticipantsState';+import {+ type AgentChatThreadVisit,+ agentChatThreadVisitState,+} from '@/ai/states/agentChatThreadVisitState';+import { agentChatThreadRecordFamilySelector } from '@/ai/states/selectors/agentChatThreadRecordFamilySelector';+import { getToastOptionsFromError } from '@/error-handler/utils/getToastOptionsFromError';+import {+ AgentChatInboxAction,+ UpdateAgentChatThreadInboxStateDocument,+} from '~/generated-metadata/graphql';++// On the thread on screen, a chat marked unread stays unread until the member+// leaves it, and its unread line moves to the first message from someone else+const OPTIMISTIC_VISIT_BY_ACTION: Partial<+ Record<AgentChatInboxAction, Partial<AgentChatThreadVisit>>+> = {+ [AgentChatInboxAction.READ]: { isKeptUnread: false },+ [AgentChatInboxAction.UNREAD]: {+ isKeptUnread: true,+ isUnread: true,+ lastReadAt: null,+ },+};++export const useUpdateAgentChatThreadInboxState = () => {+ const client = useApolloClient();+ const store = useStore();+ const { enqueueToast } = useToast();+ const { refreshAgentChatOpenThreadsSummary } =+ useRefreshAgentChatOpenThreadsSummary();++ // The change shows right away, and is put back if the server refuses it+ const updateAgentChatThreadInboxState = useCallback(+ async ({+ threadIds,+ action,+ snoozedUntil,+ }: {+ threadIds: string[];+ action: AgentChatInboxAction;+ snoozedUntil?: Date;+ }) => {+ const now = new Date();+ const optimisticVisit = OPTIMISTIC_VISIT_BY_ACTION[action];+ const previousVisit = store.get(agentChatThreadVisitState.atom);+ const previousParticipants = store.get(+ agentChatThreadParticipantsState.atom,+ );++ if (+ isDefined(optimisticVisit) &&+ isDefined(previousVisit) &&+ threadIds.includes(previousVisit.threadId)+ ) {+ store.set(agentChatThreadVisitState.atom, {+ ...previousVisit,+ ...optimisticVisit,+ });+ }+ const optimisticVisitState = store.get(agentChatThreadVisitState.atom);++ store.set(agentChatThreadParticipantsState.atom, (participants) => {+ if (!isDefined(participants)) {+ return participants;+ }++ const updatedParticipants = { ...participants };++ for (const threadId of threadIds) {+ updatedParticipants[threadId] = {+ ...participants[threadId],+ ...applyAgentChatInboxAction({+ participant: participants[threadId],+ action,+ now,+ threadLastActivityAt:+ store.get(+ agentChatThreadRecordFamilySelector.selectorFamily(threadId),+ )?.lastActivityAt ?? null,+ snoozedUntil: snoozedUntil?.toISOString(),+ }),+ threadId,+ };+ }++ return updatedParticipants;+ });+ const optimisticParticipants = store.get(+ agentChatThreadParticipantsState.atom,+ );++ try {+ await client.mutate({+ mutation: UpdateAgentChatThreadInboxStateDocument,+ variables: {+ threadIds,+ action,+ snoozedUntil: snoozedUntil?.toISOString(),+ },+ });+ refreshAgentChatOpenThreadsSummary();+ } catch (error) {+ enqueueToast(getToastOptionsFromError({ error }));++ // A visit to another chat since then is kept+ store.set(agentChatThreadVisitState.atom, (visit) =>+ visit === optimisticVisitState ? previousVisit : visit,+ );++ // A newer row may have arrived since, and is kept+ store.set(agentChatThreadParticipantsState.atom, (participants) => {+ if (!isDefined(participants)) {+ return participants;+ }++ const restoredParticipants = { ...participants };++ for (const threadId of threadIds) {+ if (participants[threadId] !== optimisticParticipants?.[threadId]) {+ continue;+ }++ const previousParticipant = previousParticipants?.[threadId];++ if (isDefined(previousParticipant)) {+ restoredParticipants[threadId] = previousParticipant;+ } else {+ delete restoredParticipants[threadId];+ }+ }++ return restoredParticipants;+ });+ }+ },+ [client, enqueueToast, refreshAgentChatOpenThreadsSummary, store],+ );++ return { updateAgentChatThreadInboxState };+};diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/constants/EngineComponentKeyHeadlessComponentMap.tsx b/packages/twenty-front/src/modules/command-menu-item/engine-command/constants/EngineComponentKeyHeadlessComponentMap.tsxindex b1363b09517..0af3279638a 100644--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/constants/EngineComponentKeyHeadlessComponentMap.tsx+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/constants/EngineComponentKeyHeadlessComponentMap.tsx@@ -60,7 +60,10 @@ import { CoreObjectNamePlural } from '@/object-metadata/types/CoreObjectNamePlurimport { msg } from '@lingui/core/macro';import { AppPath, SettingsPath, SidePanelPages } from 'twenty-shared/types';import { IconSearch, IconSparkles } from 'twenty-ui/icon';-import { EngineComponentKey } from '~/generated-metadata/graphql';+import {+ AgentChatInboxAction,+ EngineComponentKey,+} from '~/generated-metadata/graphql';export const ENGINE_COMPONENT_KEY_COMPONENT_MAP: Record<EngineComponentKey,@@ -261,25 +264,25 @@ export const ENGINE_COMPONENT_KEY_COMPONENT_MAP: Record<[EngineComponentKey.NEW_AI_CHAT]: <NewAiChatSingleRecordCommand />,[EngineComponentKey.SHARE_RECORD]: <ShareRecordCommand />,[EngineComponentKey.MARK_AI_CHAT_AS_READ]: (- <AgentChatThreadInboxCommand action="read" />+ <AgentChatThreadInboxCommand action={AgentChatInboxAction.READ} />),[EngineComponentKey.MARK_AI_CHAT_AS_UNREAD]: (- <AgentChatThreadInboxCommand action="unread" />+ <AgentChatThreadInboxCommand action={AgentChatInboxAction.UNREAD} />),[EngineComponentKey.MARK_AI_CHAT_AS_DONE]: (- <AgentChatThreadInboxCommand action="done" />+ <AgentChatThreadInboxCommand action={AgentChatInboxAction.ARCHIVE} />),[EngineComponentKey.REOPEN_AI_CHAT]: (- <AgentChatThreadInboxCommand action="reopen" />+ <AgentChatThreadInboxCommand action={AgentChatInboxAction.MOVE_TO_INBOX} />),[EngineComponentKey.SNOOZE_AI_CHAT]: (- <AgentChatThreadInboxCommand action="snooze" />+ <AgentChatThreadInboxCommand action={AgentChatInboxAction.SNOOZE} />),[EngineComponentKey.SUBSCRIBE_TO_AI_CHAT]: (- <AgentChatThreadInboxCommand action="subscribe" />+ <AgentChatThreadInboxCommand action={AgentChatInboxAction.SUBSCRIBE} />),[EngineComponentKey.UNSUBSCRIBE_FROM_AI_CHAT]: (- <AgentChatThreadInboxCommand action="unsubscribe" />+ <AgentChatThreadInboxCommand action={AgentChatInboxAction.UNSUBSCRIBE} />),[EngineComponentKey.ASSIGN_AI_CHAT]: (<AgentChatThreadInboxCommand action="assign" />diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/record/components/AgentChatThreadInboxCommand.tsx b/packages/twenty-front/src/modules/command-menu-item/engine-command/record/components/AgentChatThreadInboxCommand.tsxindex 481155a1493..45178339a6e 100644--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/record/components/AgentChatThreadInboxCommand.tsx+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/record/components/AgentChatThreadInboxCommand.tsx@@ -1,33 +1,20 @@-import { useAgentChatThreadParticipants } from '@/ai/hooks/useAgentChatThreadParticipants';+import { useUpdateAgentChatThreadInboxState } from '@/ai/hooks/useUpdateAgentChatThreadInboxState';import { HeadlessEngineCommandWrapperEffect } from '@/command-menu-item/engine-command/components/HeadlessEngineCommandWrapperEffect';import { useHeadlessCommandContextApi } from '@/command-menu-item/engine-command/hooks/useHeadlessCommandContextApi';import { useOpenAssignAiChatInSidePanel } from '@/side-panel/hooks/useOpenAssignAiChatInSidePanel';import { useOpenSnoozeAiChatInSidePanel } from '@/side-panel/hooks/useOpenSnoozeAiChatInSidePanel';+import { AgentChatInboxAction } from '~/generated-metadata/graphql';type AgentChatThreadInboxCommandProps = {- action:- | 'read'- | 'unread'- | 'done'- | 'reopen'- | 'snooze'- | 'assign'- | 'subscribe'- | 'unsubscribe';+ action: AgentChatInboxAction | 'assign';};export const AgentChatThreadInboxCommand = ({action,}: AgentChatThreadInboxCommandProps) => {const { selectedRecords } = useHeadlessCommandContextApi();- const {- markAgentChatThreadAsRead,- markAgentChatThreadAsUnread,- archiveAgentChatThread,- moveAgentChatThreadToInbox,- subscribeToAgentChatThread,- unsubscribeFromAgentChatThread,- } = useAgentChatThreadParticipants();+ const { updateAgentChatThreadInboxState } =+ useUpdateAgentChatThreadInboxState();const { openSnoozeAiChatInSidePanel } = useOpenSnoozeAiChatInSidePanel();const { openAssignAiChatInSidePanel } = useOpenAssignAiChatInSidePanel();@@ -38,7 +25,7 @@ export const AgentChatThreadInboxCommand = ({return;}- if (action === 'snooze') {+ if (action === AgentChatInboxAction.SNOOZE) {return openSnoozeAiChatInSidePanel(threadIds);}@@ -46,20 +33,7 @@ export const AgentChatThreadInboxCommand = ({return openAssignAiChatInSidePanel(threadIds);}- const updateThread = {- read: markAgentChatThreadAsRead,- unread: markAgentChatThreadAsUnread,- done: archiveAgentChatThread,- reopen: moveAgentChatThreadToInbox,- subscribe: subscribeToAgentChatThread,- unsubscribe: unsubscribeFromAgentChatThread,- }[action];-- // One at a time: a failed update reloads every chat's state, which would- // undo the optimistic change of an update still on its way- for (const threadId of threadIds) {- await updateThread(threadId);- }+ await updateAgentChatThreadInboxState({ threadIds, action });};return <HeadlessEngineCommandWrapperEffect execute={handleExecute} />;diff --git a/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/SidePanelSnoozeAiChatPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/SidePanelSnoozeAiChatPage.tsxindex 7592dce44a3..b7f993a576f 100644--- a/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/SidePanelSnoozeAiChatPage.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/SidePanelSnoozeAiChatPage.tsx@@ -4,7 +4,7 @@ import { useId, useState } from 'react';import { IconCalendar, IconClock } from 'twenty-ui/icon';import { themeCssVariables } from 'twenty-ui/theme';-import { useAgentChatThreadParticipants } from '@/ai/hooks/useAgentChatThreadParticipants';+import { useUpdateAgentChatThreadInboxState } from '@/ai/hooks/useUpdateAgentChatThreadInboxState';import { useFormatAgentChatThreadDate } from '@/ai/hooks/useFormatAgentChatThreadDate';import {type AgentChatThreadSnoozeOption,@@ -21,6 +21,7 @@ import { useUserTimezone } from '@/ui/input/components/internal/date/hooks/useUsimport { useOpenDropdown } from '@/ui/layout/dropdown/hooks/useOpenDropdown';import { SelectableListItem } from '@/ui/layout/selectable-list/components/SelectableListItem';import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';+import { AgentChatInboxAction } from '~/generated-metadata/graphql';const SNOOZE_UNTIL_DATE_ITEM_ID = 'snoozeUntilDate';@@ -33,7 +34,8 @@ export const SidePanelSnoozeAiChatPage = () => {const snoozeAiChatThreadIds = useAtomComponentStateValue(snoozeAiChatThreadIdsComponentState,);- const { snoozeAgentChatThreads } = useAgentChatThreadParticipants();+ const { updateAgentChatThreadInboxState } =+ useUpdateAgentChatThreadInboxState();const { formatAgentChatThreadDateTime } = useFormatAgentChatThreadDate();const { closeSidePanelMenu } = useSidePanelMenu();const { openDropdown } = useOpenDropdown();@@ -61,8 +63,9 @@ export const SidePanelSnoozeAiChatPage = () => {}void closeSidePanelMenu();- void snoozeAgentChatThreads({+ void updateAgentChatThreadInboxState({threadIds: snoozeAiChatThreadIds,+ action: AgentChatInboxAction.SNOOZE,snoozedUntil: option.date,});};diff --git a/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/SnoozeAiChatUntilDatePicker.tsx b/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/SnoozeAiChatUntilDatePicker.tsxindex ac4de4e234b..01e034021e9 100644--- a/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/SnoozeAiChatUntilDatePicker.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/SnoozeAiChatUntilDatePicker.tsx@@ -6,10 +6,11 @@ import { isDefined } from 'twenty-shared/utils';import { Button } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';-import { useAgentChatThreadParticipants } from '@/ai/hooks/useAgentChatThreadParticipants';+import { useUpdateAgentChatThreadInboxState } from '@/ai/hooks/useUpdateAgentChatThreadInboxState';import { useFormatAgentChatThreadDate } from '@/ai/hooks/useFormatAgentChatThreadDate';import { DateTimePicker } from '@/ui/input/components/internal/date/components/DateTimePicker';import { useUserTimezone } from '@/ui/input/components/internal/date/hooks/useUserTimezone';+import { AgentChatInboxAction } from '~/generated-metadata/graphql';const StyledContainer = styled.div`display: flex;@@ -29,7 +30,8 @@ export const SnoozeAiChatUntilDatePicker = ({onSnoozed,}: SnoozeAiChatUntilDatePickerProps) => {const { t } = useLingui();- const { snoozeAgentChatThreads } = useAgentChatThreadParticipants();+ const { updateAgentChatThreadInboxState } =+ useUpdateAgentChatThreadInboxState();const { formatAgentChatThreadDateTime } = useFormatAgentChatThreadDate();const { userTimezone } = useUserTimezone();const dateTimePickerInstanceId = useId();@@ -67,7 +69,11 @@ export const SnoozeAiChatUntilDatePicker = ({}onSnoozed();- void snoozeAgentChatThreads({ threadIds, snoozedUntil: snoozedUntilDate });+ void updateAgentChatThreadInboxState({+ threadIds,+ action: AgentChatInboxAction.SNOOZE,+ snoozedUntil: snoozedUntilDate,+ });};return (diff --git a/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/__tests__/SidePanelSnoozeAiChatPage.test.tsx b/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/__tests__/SidePanelSnoozeAiChatPage.test.tsxindex 8302f603b41..29c8f696027 100644--- a/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/__tests__/SidePanelSnoozeAiChatPage.test.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/__tests__/SidePanelSnoozeAiChatPage.test.tsx@@ -14,11 +14,13 @@ import {resetJotaiStore,} from '@/ui/utilities/state/jotai/jotaiStore';-const snoozeAgentChatThreads = jest.fn();+const updateAgentChatThreadInboxState = jest.fn();const closeSidePanelMenu = jest.fn();-jest.mock('@/ai/hooks/useAgentChatThreadParticipants', () => ({- useAgentChatThreadParticipants: () => ({ snoozeAgentChatThreads }),+jest.mock('@/ai/hooks/useUpdateAgentChatThreadInboxState', () => ({+ useUpdateAgentChatThreadInboxState: () => ({+ updateAgentChatThreadInboxState,+ }),}));jest.mock('@/side-panel/hooks/useSidePanelMenu', () => ({@@ -61,8 +63,9 @@ describe('SidePanelSnoozeAiChatPage', () => {fireEvent.click(screen.getByText('This evening'));expect(closeSidePanelMenu).toHaveBeenCalled();- expect(snoozeAgentChatThreads).toHaveBeenCalledWith({+ expect(updateAgentChatThreadInboxState).toHaveBeenCalledWith({threadIds: ['thread-1', 'thread-2'],+ action: 'SNOOZE',snoozedUntil: new Date(2026, 9, 1, 18, 0),});});@@ -83,7 +86,7 @@ describe('SidePanelSnoozeAiChatPage', () => {expect(await screen.findByRole('button', { name: /^Snooze until/ }),).toBeInTheDocument();- expect(snoozeAgentChatThreads).not.toHaveBeenCalled();+ expect(updateAgentChatThreadInboxState).not.toHaveBeenCalled();expect(screen.getByText('Day & Time').closest('[data-focused]'),).toHaveAttribute('data-focused', 'true');@@ -97,7 +100,7 @@ describe('SidePanelSnoozeAiChatPage', () => {});fireEvent.click(screen.getByText('This evening'));- expect(snoozeAgentChatThreads).not.toHaveBeenCalled();+ expect(updateAgentChatThreadInboxState).not.toHaveBeenCalled();expect(screen.queryByText('This evening')).not.toBeInTheDocument();expect(screen.getByText('Tomorrow')).toBeInTheDocument();});diff --git a/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/__tests__/SnoozeAiChatUntilDatePicker.test.tsx b/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/__tests__/SnoozeAiChatUntilDatePicker.test.tsxindex e805b3e9df6..423f1a5255a 100644--- a/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/__tests__/SnoozeAiChatUntilDatePicker.test.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/snooze-ai-chat/components/__tests__/SnoozeAiChatUntilDatePicker.test.tsx@@ -11,11 +11,13 @@ import {resetJotaiStore,} from '@/ui/utilities/state/jotai/jotaiStore';-const snoozeAgentChatThreads = jest.fn();+const updateAgentChatThreadInboxState = jest.fn();const onSnoozed = jest.fn();-jest.mock('@/ai/hooks/useAgentChatThreadParticipants', () => ({- useAgentChatThreadParticipants: () => ({ snoozeAgentChatThreads }),+jest.mock('@/ai/hooks/useUpdateAgentChatThreadInboxState', () => ({+ useUpdateAgentChatThreadInboxState: () => ({+ updateAgentChatThreadInboxState,+ }),}));jest.mock('@/ui/input/components/internal/date/hooks/useUserTimezone', () => ({@@ -78,8 +80,9 @@ describe('SnoozeAiChatUntilDatePicker', () => {fireEvent.click(screen.getByRole('button', { name: /Snooze until/ }));expect(onSnoozed).toHaveBeenCalled();- expect(snoozeAgentChatThreads).toHaveBeenCalledWith({+ expect(updateAgentChatThreadInboxState).toHaveBeenCalledWith({threadIds: ['thread-1'],+ action: 'SNOOZE',snoozedUntil: new Date(2026, 9, 2, 9, 0),});});@@ -101,7 +104,7 @@ describe('SnoozeAiChatUntilDatePicker', () => {expect(screen.getByRole('button', { name: 'Pick a time in the future' }),).toBeDisabled();- expect(snoozeAgentChatThreads).not.toHaveBeenCalled();+ expect(updateAgentChatThreadInboxState).not.toHaveBeenCalled();expect(onSnoozed).not.toHaveBeenCalled();});@@ -118,7 +121,7 @@ describe('SnoozeAiChatUntilDatePicker', () => {fireEvent.click(screen.getByRole('button', { name: /Snooze until/ }));- expect(snoozeAgentChatThreads).not.toHaveBeenCalled();+ expect(updateAgentChatThreadInboxState).not.toHaveBeenCalled();expect(onSnoozed).not.toHaveBeenCalled();expect(screen.getByRole('button', { name: 'Pick a time in the future' }),diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-inbox-action.enum.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-inbox-action.enum.tsnew file mode 100644index 00000000000..0cc010cec68--- /dev/null+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-inbox-action.enum.ts@@ -0,0 +1,21 @@+import { registerEnumType } from '@nestjs/graphql';++import { type AgentChatInboxAction as SharedAgentChatInboxAction } from 'twenty-shared/ai';++export enum AgentChatInboxAction {+ READ = 'READ',+ UNREAD = 'UNREAD',+ ARCHIVE = 'ARCHIVE',+ SNOOZE = 'SNOOZE',+ MOVE_TO_INBOX = 'MOVE_TO_INBOX',+ SUBSCRIBE = 'SUBSCRIBE',+ UNSUBSCRIBE = 'UNSUBSCRIBE',+}++registerEnumType(AgentChatInboxAction, { name: 'AgentChatInboxAction' });++// Fails to compile when an action is added on only one side+const _assertActionsMatchShared: Record<+ SharedAgentChatInboxAction,+ AgentChatInboxAction+> = AgentChatInboxAction;diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-thread-participant.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-thread-participant.resolver.tsindex de21f58dcc5..a4284db084b 100644--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-thread-participant.resolver.ts+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-thread-participant.resolver.ts@@ -2,6 +2,7 @@ import { UseFilters, UseGuards, UseInterceptors } from '@nestjs/common';import { Args, Mutation, Query } from '@nestjs/graphql';import { PermissionFlagType } from 'twenty-shared/constants';+import { isDefined } from 'twenty-shared/utils';import { MetadataResolver } from 'src/engine/api/graphql/graphql-config/decorators/metadata-resolver.decorator';import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';@@ -13,8 +14,13 @@ import { AuthPrincipalGuard } from 'src/engine/guards/auth-principal.guard';import { SettingsPermissionGuard } from 'src/engine/guards/settings-permission.guard';import { AgentChatOpenThreadsSummaryDTO } from 'src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-open-threads-summary.dto';import { 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';import { AgentChatThreadParticipantService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread-participant.service';import { AgentChatThreadService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread.service';+import {+ AiException,+ AiExceptionCode,+} from 'src/engine/metadata-modules/ai/ai.exception';import { AiGraphqlApiExceptionInterceptor } from 'src/engine/metadata-modules/ai/interceptors/ai-graphql-api-exception.interceptor';@UseGuards(@@ -51,94 +57,30 @@ export class AgentChatThreadParticipantResolver {});}- @Mutation(() => AgentChatThreadParticipantDTO)- async markAgentChatThreadAsRead(- @Args('threadId', { type: () => UUIDScalarType }) threadId: string,- @AuthWorkspaceMemberId() workspaceMemberId: string,- @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,- ): Promise<AgentChatThreadParticipantDTO> {- return this.participantService.markAsRead({- threadId,- workspaceMemberId,- workspaceId,- });- }-- @Mutation(() => AgentChatThreadParticipantDTO)- async markAgentChatThreadAsUnread(- @Args('threadId', { type: () => UUIDScalarType }) threadId: string,- @AuthWorkspaceMemberId() workspaceMemberId: string,- @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,- ): Promise<AgentChatThreadParticipantDTO> {- return this.participantService.markAsUnread({- threadId,- workspaceMemberId,- workspaceId,- });- }-- @Mutation(() => AgentChatThreadParticipantDTO)- async archiveAgentChatThread(- @Args('threadId', { type: () => UUIDScalarType }) threadId: string,+ @Mutation(() => [AgentChatThreadParticipantDTO])+ async updateAgentChatThreadInboxState(+ @Args('threadIds', { type: () => [UUIDScalarType] }) threadIds: string[],+ @Args('action', { type: () => AgentChatInboxAction })+ action: AgentChatInboxAction,+ @Args('snoozedUntil', { type: () => Date, nullable: true })+ snoozedUntil: Date | null,@AuthWorkspaceMemberId() workspaceMemberId: string,@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,- ): Promise<AgentChatThreadParticipantDTO> {- return this.participantService.archive({- threadId,- workspaceMemberId,- workspaceId,- });- }+ ): Promise<AgentChatThreadParticipantDTO[]> {+ if (+ action === AgentChatInboxAction.SNOOZE &&+ (!isDefined(snoozedUntil) || snoozedUntil.getTime() <= Date.now())+ ) {+ throw new AiException(+ 'Snooze time must be in the future',+ AiExceptionCode.INVALID_CHAT_THREAD_SNOOZE_TIME,+ );+ }- @Mutation(() => AgentChatThreadParticipantDTO)- async snoozeAgentChatThread(- @Args('threadId', { type: () => UUIDScalarType }) threadId: string,- @Args('snoozedUntil', { type: () => Date }) snoozedUntil: Date,- @AuthWorkspaceMemberId() workspaceMemberId: string,- @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,- ): Promise<AgentChatThreadParticipantDTO> {- return this.participantService.snooze({- threadId,- snoozedUntil,- workspaceMemberId,- workspaceId,- });- }-- @Mutation(() => AgentChatThreadParticipantDTO)- async moveAgentChatThreadToInbox(- @Args('threadId', { type: () => UUIDScalarType }) threadId: string,- @AuthWorkspaceMemberId() workspaceMemberId: string,- @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,- ): Promise<AgentChatThreadParticipantDTO> {- return this.participantService.moveToInbox({- threadId,- workspaceMemberId,- workspaceId,- });- }-- @Mutation(() => AgentChatThreadParticipantDTO)- async subscribeToAgentChatThread(- @Args('threadId', { type: () => UUIDScalarType }) threadId: string,- @AuthWorkspaceMemberId() workspaceMemberId: string,- @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,- ): Promise<AgentChatThreadParticipantDTO> {- return this.participantService.subscribe({- threadId,- workspaceMemberId,- workspaceId,- });- }-- @Mutation(() => AgentChatThreadParticipantDTO)- async unsubscribeFromAgentChatThread(- @Args('threadId', { type: () => UUIDScalarType }) threadId: string,- @AuthWorkspaceMemberId() workspaceMemberId: string,- @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,- ): Promise<AgentChatThreadParticipantDTO> {- return this.participantService.unsubscribe({- threadId,+ return this.participantService.updateInboxState({+ threadIds,+ action,+ snoozedUntil: snoozedUntil ?? null,workspaceMemberId,workspaceId,});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 1b8dd555743..5764a476661 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@@ -11,6 +11,7 @@ import { AGENT_CHAT_THREAD_SNOOZE_END_JOB_RETRY_OPTIONS } from 'src/engine/metadimport { 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 { 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';import { END_AGENT_CHAT_THREAD_SNOOZE_JOB_NAME } from 'src/engine/metadata-modules/ai/ai-chat/jobs/end-agent-chat-thread-snooze-job-name.constant';import { type EndAgentChatThreadSnoozeJobData } from 'src/engine/metadata-modules/ai/ai-chat/jobs/end-agent-chat-thread-snooze-job.types';import { AgentChatSharingService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-sharing.service';@@ -39,7 +40,9 @@ import { WorkspaceOrmManager } from 'src/engine/twenty-orm/workspace-orm.manager// Runs in the participant write's transaction, after the participant row is// locked, in the order member activity takes the two locks-type WriteThreadStep = (context: AgentHistoryStorageContext) => Promise<void>;+type WriteThreadStep = (+ context: AgentHistoryStorageContext & { threadId: string },+) => Promise<void>;type BuildParticipantWriteQuery = (tables: {participantTable: string;@@ -59,6 +62,59 @@ const buildArchiveQuery: BuildParticipantWriteQuery = ({ participantTable }) =>"updatedAt" = now()RETURNING *`;+// The member's change for each action, written by the database so its+// timestamps order against thread activity; applyAgentChatInboxAction makes+// the same change for the copy apps show before the server answers+const INBOX_ACTION_QUERIES: Record<+ AgentChatInboxAction,+ BuildParticipantWriteQuery+> = {+ // Read up to what the thread holds now, never past it, and never back+ [AgentChatInboxAction.READ]: ({ participantTable, threadTable }) =>+ `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId", "lastReadAt")+ SELECT thread.id, $2, thread."lastActivityAt" FROM ${threadTable} thread WHERE thread.id = $1+ ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET+ "lastReadAt" = GREATEST(participant."lastReadAt", EXCLUDED."lastReadAt"),+ "updatedAt" = now()+ RETURNING *`,+ [AgentChatInboxAction.UNREAD]: ({ participantTable }) =>+ `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId", "lastReadAt")+ VALUES ($1, $2, NULL)+ ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET+ "lastReadAt" = NULL,+ "updatedAt" = now()+ RETURNING *`,+ [AgentChatInboxAction.ARCHIVE]: buildArchiveQuery,+ [AgentChatInboxAction.SNOOZE]: buildArchiveQuery,+ [AgentChatInboxAction.MOVE_TO_INBOX]: ({ participantTable }) =>+ `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId")+ VALUES ($1, $2)+ ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET+ "archivedAt" = NULL,+ "snoozedUntil" = NULL,+ "isSubscribed" = true,+ "updatedAt" = now()+ RETURNING *`,+ [AgentChatInboxAction.SUBSCRIBE]: ({ participantTable }) =>+ `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId")+ VALUES ($1, $2)+ ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET+ "isSubscribed" = true,+ "updatedAt" = now()+ RETURNING *`,+ // Files the chat under done and keeps it there whatever happens in it,+ // until the member is mentioned or writes in it again+ [AgentChatInboxAction.UNSUBSCRIBE]: ({ participantTable }) =>+ `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId", "isSubscribed", "archivedAt")+ VALUES ($1, $2, false, clock_timestamp())+ ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET+ "isSubscribed" = false,+ "archivedAt" = EXCLUDED."archivedAt",+ "snoozedUntil" = NULL,+ "updatedAt" = now()+ RETURNING *`,+};+const EMPTY_OPEN_THREADS_SUMMARY: AgentChatOpenThreadsSummaryDTO = {openThreadCount: 0,needsInputThreadCount: 0,@@ -85,45 +141,81 @@ export class AgentChatThreadParticipantService {private readonly workspaceOrmManager: WorkspaceOrmManager,) {}- async markAsRead(- args: AgentChatThreadAccessArgs,- ): Promise<AgentChatThreadParticipantDTO> {- // Read up to what the thread holds now, never past it, and never back- return this.upsertOne(- args,- ({ participantTable, threadTable }) =>- `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId", "lastReadAt")- SELECT thread.id, $2, thread."lastActivityAt" FROM ${threadTable} thread WHERE thread.id = $1- ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET- "lastReadAt" = GREATEST(participant."lastReadAt", EXCLUDED."lastReadAt"),- "updatedAt" = now()- RETURNING *`,- );- }+ async updateInboxState({+ threadIds,+ action,+ snoozedUntil,+ workspaceId,+ workspaceMemberId,+ }: Omit<AgentChatThreadAccessArgs, 'threadId'> & {+ threadIds: string[];+ action: AgentChatInboxAction;+ snoozedUntil: Date | null;+ }): Promise<AgentChatThreadParticipantDTO[]> {+ const isSnooze = action === AgentChatInboxAction.SNOOZE;+ const snoozeEnd = isSnooze ? snoozedUntil : null;++ // Sorted so two writes of the same member lock their rows in one order+ const uniqueThreadIds = [...new Set(threadIds)].sort();+ const memberArgs = { workspaceId, workspaceMemberId };++ await this.assertCanWriteInboxState({+ ...memberArgs,+ threadIds: uniqueThreadIds,+ });- async markAsUnread(- args: AgentChatThreadAccessArgs,- ): Promise<AgentChatThreadParticipantDTO> {- return this.upsertOne(- args,- ({ participantTable }) =>- `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId", "lastReadAt")- VALUES ($1, $2, NULL)- ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET- "lastReadAt" = NULL,- "updatedAt" = now()- RETURNING *`,+ // Queued before the write, so no saved snooze lacks its end; the end of+ // a snooze that was never saved finds nothing to end+ if (isDefined(snoozeEnd)) {+ for (const threadId of uniqueThreadIds) {+ await this.scheduleSnoozeEnd({+ ...memberArgs,+ threadId,+ snoozedUntil: snoozeEnd.toISOString(),+ delay: Math.max(snoozeEnd.getTime() - Date.now(), 0),+ });+ }+ }++ // The assignee is checked under the thread's lock, which an assignment+ // takes too, so the member cannot be assigned while unsubscribing+ const assertIsNotAssignee: WriteThreadStep = async ({+ manager,+ table,+ threadId,+ }) => {+ const [thread] = await manager.query<{ assigneeId: string | null }[]>(+ `SELECT "assigneeId" FROM ${table('agentChatThread')} WHERE id = $1 FOR UPDATE`,+ [threadId],+ );++ if (thread?.assigneeId === workspaceMemberId) {+ throw new AiException(+ 'The assignee of a chat cannot unsubscribe from it',+ AiExceptionCode.CHAT_THREAD_ASSIGNEE_CANNOT_UNSUBSCRIBE,+ );+ }+ };++ return this.write(+ { ...memberArgs, threadIds: uniqueThreadIds, isEveryRowRequired: true },+ INBOX_ACTION_QUERIES[action],+ action === AgentChatInboxAction.ARCHIVE || isSnooze ? [snoozeEnd] : [],+ action === AgentChatInboxAction.UNSUBSCRIBE+ ? assertIsNotAssignee+ : undefined,);}// A mention brings the chat back unread for the mentioned member, who the// caller has already checked can reply in it, and follows it again for a// member who had unsubscribed- async markAsMentioned(- args: AgentChatThreadAccessArgs,- ): Promise<AgentChatThreadParticipantRow | null> {- return this.writeOne(- args,+ async markAsMentioned({+ threadId,+ ...args+ }: AgentChatThreadAccessArgs): Promise<void> {+ await this.write(+ { ...args, threadIds: [threadId] },({ participantTable }) =>`INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId", "lastMentionedAt")VALUES ($1, $2, clock_timestamp())@@ -145,13 +237,14 @@ export class AgentChatThreadParticipantService {async markAsAssigned({isSelfAssigned,writeAssignment,+ threadId,...args}: AgentChatThreadAccessArgs & {isSelfAssigned: boolean;writeAssignment: WriteThreadStep;- }): Promise<AgentChatThreadParticipantRow | null> {- return this.writeOne(- args,+ }): Promise<void> {+ await this.write(+ { ...args, threadIds: [threadId] },({ participantTable, threadTable }) =>`INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId", "lastReadAt")SELECT thread.id, $2, CASE WHEN $3::boolean THEN thread."lastActivityAt" END@@ -168,90 +261,6 @@ export class AgentChatThreadParticipantService {);}- async subscribe(- args: AgentChatThreadAccessArgs,- ): Promise<AgentChatThreadParticipantDTO> {- return this.upsertOne(- args,- ({ participantTable }) =>- `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId")- VALUES ($1, $2)- ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET- "isSubscribed" = true,- "updatedAt" = now()- RETURNING *`,- );- }-- // Files the chat under done and keeps it there whatever happens in it,- // until the member is mentioned or writes in it again- // The assignee is checked under the thread's lock, which an assignment- // takes too, so the member cannot be assigned while unsubscribing- async unsubscribe(- args: AgentChatThreadAccessArgs,- ): Promise<AgentChatThreadParticipantDTO> {- const assertIsNotAssignee: WriteThreadStep = async ({ manager, table }) => {- const [thread] = await manager.query<{ assigneeId: string | null }[]>(- `SELECT "assigneeId" FROM ${table('agentChatThread')} WHERE id = $1 FOR UPDATE`,- [args.threadId],- );-- if (thread?.assigneeId === args.workspaceMemberId) {- throw new AiException(- 'The assignee of a chat cannot unsubscribe from it',- AiExceptionCode.CHAT_THREAD_ASSIGNEE_CANNOT_UNSUBSCRIBE,- );- }- };-- return this.upsertOne(- args,- ({ participantTable }) =>- `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId", "isSubscribed", "archivedAt")- VALUES ($1, $2, false, clock_timestamp())- ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET- "isSubscribed" = false,- "archivedAt" = EXCLUDED."archivedAt",- "snoozedUntil" = NULL,- "updatedAt" = now()- RETURNING *`,- [],- assertIsNotAssignee,- );- }-- archive(- args: AgentChatThreadAccessArgs,- ): Promise<AgentChatThreadParticipantDTO> {- return this.setArchive(args, null);- }-- async snooze({- snoozedUntil,- ...args- }: AgentChatThreadAccessArgs & {- snoozedUntil: Date;- }): Promise<AgentChatThreadParticipantDTO> {- if (snoozedUntil.getTime() <= Date.now()) {- throw new AiException(- 'Snooze time must be in the future',- AiExceptionCode.INVALID_CHAT_THREAD_SNOOZE_TIME,- );- }-- await this.assertCanWriteInboxState(args);-- // Queued before the write, so no saved snooze lacks its end; the end of- // a snooze that was never saved finds nothing to end- await this.scheduleSnoozeEnd({- ...args,- snoozedUntil: snoozedUntil.toISOString(),- delay: Math.max(snoozedUntil.getTime() - Date.now(), 0),- });-- return this.setArchive(args, snoozedUntil);- }-// A snooze ends by moving the chat back to the inbox. The snooze stays// recorded, as what brought it back.async endSnooze({@@ -288,8 +297,12 @@ export class AgentChatThreadParticipantService {}// A snooze the member replaced or cleared since has nothing to end- await this.writeOne(- args,+ await this.write(+ {+ workspaceId: args.workspaceId,+ workspaceMemberId: args.workspaceMemberId,+ threadIds: [args.threadId],+ },({ participantTable }) =>`UPDATE ${participantTable}SET "archivedAt" = NULL, "updatedAt" = now()@@ -322,23 +335,6 @@ export class AgentChatThreadParticipantService {});}- async moveToInbox(- args: AgentChatThreadAccessArgs,- ): Promise<AgentChatThreadParticipantDTO> {- return this.upsertOne(- args,- ({ participantTable }) =>- `INSERT INTO ${participantTable} AS participant ("threadId", "workspaceMemberId")- VALUES ($1, $2)- ON CONFLICT ("threadId", "workspaceMemberId") DO UPDATE SET- "archivedAt" = NULL,- "snoozedUntil" = NULL,- "isSubscribed" = true,- "updatedAt" = now()- RETURNING *`,- );- }-// A member who writes in a thread has read it and follows it again, so// their cursor follows the activity they just createdasync recordMemberActivity({@@ -569,36 +565,20 @@ export class AgentChatThreadParticipantService {return remainingDelay;}- private setArchive(- args: AgentChatThreadAccessArgs,- snoozedUntil: Date | null,- ): Promise<AgentChatThreadParticipantDTO> {- return this.upsertOne(args, buildArchiveQuery, [snoozedUntil]);- }-- private async upsertOne(- args: AgentChatThreadAccessArgs,- buildQuery: BuildParticipantWriteQuery,- extraParameters: unknown[] = [],- writeThread?: WriteThreadStep,- ): Promise<AgentChatThreadParticipantDTO> {- await this.assertCanWriteInboxState(args);-- return this.writeOneOrThrow(args, buildQuery, extraParameters, writeThread);- }-private async assertCanWriteInboxState({workspaceId,workspaceMemberId,- threadId,- }: AgentChatThreadAccessArgs): Promise<void> {- const [readableThreadId] = await this.sharingService.findReadableThreadIds({+ threadIds,+ }: Omit<AgentChatThreadAccessArgs, 'threadId'> & {+ threadIds: string[];+ }): Promise<void> {+ const readableThreadIds = await this.sharingService.findReadableThreadIds({workspaceId,workspaceMemberId,- threadIds: [threadId],+ threadIds,});- if (!isDefined(readableThreadId)) {+ if (readableThreadIds.length !== threadIds.length) {throwAgentChatThreadNotFound();}@@ -610,48 +590,30 @@ export class AgentChatThreadParticipantService {}}- private async writeOneOrThrow(- args: AgentChatThreadAccessArgs,- buildQuery: BuildParticipantWriteQuery,- extraParameters: unknown[],- writeThread?: WriteThreadStep,- ): Promise<AgentChatThreadParticipantDTO> {- return (- (await this.writeOne(args, buildQuery, extraParameters, writeThread)) ??- throwAgentChatThreadNotFound()- );- }-- // The row is locked while it is read and written, so the change sent is- // the one this write made- private async writeOne(- { workspaceId, workspaceMemberId, threadId }: AgentChatThreadAccessArgs,+ // Each row is locked while it is read and written, so the change sent is+ // the one this write made; one transaction writes all of them or none+ private async write(+ {+ workspaceId,+ workspaceMemberId,+ threadIds,+ isEveryRowRequired = false,+ }: Omit<AgentChatThreadAccessArgs, 'threadId'> & {+ threadIds: string[];+ isEveryRowRequired?: boolean;+ },buildQuery: BuildParticipantWriteQuery,extraParameters: unknown[] = [],writeThread?: WriteThreadStep,- ): Promise<AgentChatThreadParticipantRow | null> {- const parameters = [- threadId,- workspaceMemberId,- ...extraParameters,- await this.sharingService.findParticipantObjectMetadataId(workspaceId),- ];+ ): Promise<AgentChatThreadParticipantRow[]> {+ const objectMetadataId =+ await this.sharingService.findParticipantObjectMetadataId(workspaceId);- const { before, after } = await this.threadRepository.query(+ const writes = await this.threadRepository.query(workspaceId,async ({ manager, table }) => {- const before = await this.findOne({- manager,- workspaceId,- workspaceMemberId,- threadId,- lock: true,- });-- await writeThread?.({ manager, table });-- const [after] = await manager.query<AgentChatThreadParticipantRow[]>(- `WITH written_participant AS (+ const parameterCount = extraParameters.length + 3;+ const query = `WITH written_participant AS (${buildQuery({participantTable:getAgentChatThreadParticipantTable(workspaceId),@@ -661,27 +623,50 @@ export class AgentChatThreadParticipantService {${buildAgentChatThreadParticipantOwnerShareInsert({workspaceId,participantSource: 'written_participant',- objectMetadataIdParameter: `$${parameters.length}`,+ objectMetadataIdParameter: `$${parameterCount}`,})})- SELECT ${PARTICIPANT_COLUMNS} FROM written_participant`,- parameters,- );+ SELECT ${PARTICIPANT_COLUMNS} FROM written_participant`;+ const writes: {+ before: AgentChatThreadParticipantRow | null;+ after: AgentChatThreadParticipantRow;+ }[] = [];++ for (const threadId of threadIds) {+ const before = await this.findOne({+ manager,+ workspaceId,+ workspaceMemberId,+ threadId,+ lock: true,+ });++ await writeThread?.({ manager, table, threadId });++ const [after] = await manager.query<AgentChatThreadParticipantRow[]>(+ query,+ [threadId, workspaceMemberId, ...extraParameters, objectMetadataId],+ );++ if (isDefined(after)) {+ writes.push({ before, after });+ } else if (isEveryRowRequired) {+ throwAgentChatThreadNotFound();+ }+ }- return { before, after };+ return writes;},);- if (!isDefined(after)) {- return null;+ for (const { before, after } of writes) {+ await this.participantEventService.emitParticipantWritten({+ workspaceId,+ before,+ after,+ });}- await this.participantEventService.emitParticipantWritten({- workspaceId,- before,- after,- });-- return after;+ return writes.map(({ after }) => after);}}diff --git a/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snapindex d82149d1ef9..42a1902e2a8 100644--- a/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap+++ b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap@@ -74,14 +74,8 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an"AgentChatSubscriptionResolver.onAgentChatEvent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AgentChatThreadParticipantResolver.addAgentChatThreadParticipants {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AgentChatThreadParticipantResolver.agentChatOpenThreadsSummary {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.archiveAgentChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AgentChatThreadParticipantResolver.assignAgentChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.markAgentChatThreadAsRead {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.markAgentChatThreadAsUnread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.moveAgentChatThreadToInbox {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.snoozeAgentChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.subscribeToAgentChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",- "AgentChatThreadParticipantResolver.unsubscribeFromAgentChatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",+ "AgentChatThreadParticipantResolver.updateAgentChatThreadInboxState {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AgentInboxResolver.sendInboxMessage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":true,"oauthClient":false,"userSession":false}]}","AgentResolver.createOneAgent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}","AgentResolver.deleteOneAgent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",diff --git a/packages/twenty-server/test/integration/graphql/suites/chat-thread-participant.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/chat-thread-participant.integration-spec.tsindex 9fc5eb1d2c9..afbc3a17762 100644--- a/packages/twenty-server/test/integration/graphql/suites/chat-thread-participant.integration-spec.ts+++ b/packages/twenty-server/test/integration/graphql/suites/chat-thread-participant.integration-spec.ts@@ -18,6 +18,7 @@ import { destroyAgentChatThread } from 'test/integration/utils/destroy-agent-chaimport { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';import { setManualRecordShare } from 'test/integration/utils/set-manual-record-share.util';+import { AgentChatInboxAction } from 'src/engine/metadata-modules/ai/ai-chat/enums/agent-chat-inbox-action.enum';import { type AgentChatSharingService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-sharing.service';import { type AgentChatThreadParticipantService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread-participant.service';import { type AgentChatThreadService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread.service';@@ -32,13 +33,8 @@ const SCHEMA = getWorkspaceSchemaName(SEED_APPLE_WORKSPACE_ID);const PARTICIPANT_FIELDS ='id threadId lastReadAt archivedAt snoozedUntil isSubscribed lastMentionedAt updatedAt';-const buildThreadMutation = (name: string) =>- parse(- `mutation Run($threadId: UUID!) { ${name}(threadId: $threadId) { ${PARTICIPANT_FIELDS} } }`,- );--const SNOOZE = parse(- `mutation Snooze($threadId: UUID!, $snoozedUntil: DateTime!) { snoozeAgentChatThread(threadId: $threadId, snoozedUntil: $snoozedUntil) { ${PARTICIPANT_FIELDS} } }`,+const UPDATE_INBOX_STATE = parse(+ `mutation UpdateInboxState($threadIds: [UUID!]!, $action: AgentChatInboxAction!, $snoozedUntil: DateTime) { updateAgentChatThreadInboxState(threadIds: $threadIds, action: $action, snoozedUntil: $snoozedUntil) { ${PARTICIPANT_FIELDS} } }`,);// Outlasts any test, yet within the delay the test queue fast-forwards@@ -118,13 +114,19 @@ const findOpenThreadsSummary = async (return response.body.data.agentChatOpenThreadsSummary;};-const runThreadMutation = (- name: string,- threadId: string,- token: string = APPLE_JANE_ADMIN_ACCESS_TOKEN,+const runInboxAction = (+ action: string,+ threadIds: string | string[],+ {+ token = APPLE_JANE_ADMIN_ACCESS_TOKEN,+ snoozedUntil,+ }: { token?: string; snoozedUntil?: string } = {},) =>makeMetadataApiRequest(- { query: buildThreadMutation(name), variables: { threadId } },+ {+ query: UPDATE_INBOX_STATE,+ variables: { threadIds: [threadIds].flat(), action, snoozedUntil },+ },token,);@@ -343,11 +345,9 @@ describe('Chat thread participant state through the authenticated API', () => {it('refuses a member who cannot read the thread', async () => {const threadId = await createTestThread();- const response = await runThreadMutation(- 'markAgentChatThreadAsRead',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ const response = await runInboxAction('READ', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });expect(response.body.errors[0].extensions.code).toBe('NOT_FOUND');expect(@@ -355,6 +355,37 @@ describe('Chat thread participant state through the authenticated API', () => {).toBeUndefined();});+ it('writes every selected thread in one call, or none when one cannot be read', async () => {+ const threadIds = [await createTestThread(), await createTestThread()];++ await setShareWithJony(threadIds[0], true);++ const refused = await runInboxAction('ARCHIVE', threadIds, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });++ expect(refused.body.errors[0].extensions.code).toBe('NOT_FOUND');+ expect(+ await findMyParticipant(threadIds[0], APPLE_JONY_MEMBER_ACCESS_TOKEN),+ ).toBeUndefined();++ await setShareWithJony(threadIds[1], true);++ const archived = await runInboxAction('ARCHIVE', threadIds, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });++ expect(archived.body.errors).toBeUndefined();+ expect(archived.body.data.updateAgentChatThreadInboxState).toHaveLength(2);+ expect(archived.body.data.updateAgentChatThreadInboxState).toEqual(+ expect.arrayContaining(+ threadIds.map((threadId) =>+ expect.objectContaining({ threadId, archivedAt: expect.any(String) }),+ ),+ ),+ );+ });+it('keeps a shared member state apart from the owner state', async () => {const threadId = await createTestThread();@@ -366,14 +397,14 @@ describe('Chat thread participant state through the authenticated API', () => {await findMyParticipant(threadId, APPLE_JONY_MEMBER_ACCESS_TOKEN),).toBeUndefined();- const archived = await runThreadMutation(- 'archiveAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ const archived = await runInboxAction('ARCHIVE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });expect(archived.body.errors).toBeUndefined();- expect(archived.body.data.archiveAgentChatThread.archivedAt).not.toBeNull();+ expect(+ archived.body.data.updateAgentChatThreadInboxState[0].archivedAt,+ ).not.toBeNull();expect(await findMyParticipant(threadId)).toMatchObject({archivedAt: null,});@@ -383,17 +414,18 @@ describe('Chat thread participant state through the authenticated API', () => {const threadId = await createTestThread();const lastActivityAt = await readLastActivityAt(threadId);- const unread = await runThreadMutation(- 'markAgentChatThreadAsUnread',- threadId,- );+ const unread = await runInboxAction('UNREAD', threadId);- expect(unread.body.data.markAgentChatThreadAsUnread.lastReadAt).toBeNull();+ expect(+ unread.body.data.updateAgentChatThreadInboxState[0].lastReadAt,+ ).toBeNull();- const read = await runThreadMutation('markAgentChatThreadAsRead', threadId);+ const read = await runInboxAction('READ', threadId);expect(- new Date(read.body.data.markAgentChatThreadAsRead.lastReadAt).getTime(),+ new Date(+ read.body.data.updateAgentChatThreadInboxState[0].lastReadAt,+ ).getTime(),).toBe(lastActivityAt.getTime());await global.testDataSource.query(@@ -401,48 +433,39 @@ describe('Chat thread participant state through the authenticated API', () => {[threadId, new Date(lastActivityAt.getTime() - 60_000)],);- const readAgain = await runThreadMutation(- 'markAgentChatThreadAsRead',- threadId,- );+ const readAgain = await runInboxAction('READ', threadId);expect(new Date(- readAgain.body.data.markAgentChatThreadAsRead.lastReadAt,+ readAgain.body.data.updateAgentChatThreadInboxState[0].lastReadAt,).getTime(),).toBe(lastActivityAt.getTime());});it('snoozes only into the future and moves the thread back to the inbox', async () => {const threadId = await createTestThread();- const pastSnooze = await makeMetadataApiRequest({- query: SNOOZE,- variables: {- threadId,- snoozedUntil: new Date(Date.now() - 60_000).toISOString(),- },+ const pastSnooze = await runInboxAction('SNOOZE', threadId, {+ snoozedUntil: new Date(Date.now() - 60_000).toISOString(),});expect(pastSnooze.body.errors[0].extensions.code).toBe('BAD_USER_INPUT');const snoozedUntil = buildFutureSnoozedUntil();- const snoozed = await makeMetadataApiRequest({- query: SNOOZE,- variables: { threadId, snoozedUntil },- });+ const snoozed = await runInboxAction('SNOOZE', threadId, { snoozedUntil });expect(snoozed.body.errors).toBeUndefined();- expect(snoozed.body.data.snoozeAgentChatThread.archivedAt).not.toBeNull();expect(- new Date(snoozed.body.data.snoozeAgentChatThread.snoozedUntil).getTime(),+ snoozed.body.data.updateAgentChatThreadInboxState[0].archivedAt,+ ).not.toBeNull();+ expect(+ new Date(+ snoozed.body.data.updateAgentChatThreadInboxState[0].snoozedUntil,+ ).getTime(),).toBe(new Date(snoozedUntil).getTime());- const moved = await runThreadMutation(- 'moveAgentChatThreadToInbox',- threadId,- );+ const moved = await runInboxAction('MOVE_TO_INBOX', threadId);- expect(moved.body.data.moveAgentChatThreadToInbox).toMatchObject({+ expect(moved.body.data.updateAgentChatThreadInboxState[0]).toMatchObject({archivedAt: null,snoozedUntil: null,});@@ -452,9 +475,9 @@ describe('Chat thread participant state through the authenticated API', () => {const eventSpy = spyOnParticipantEvents();const threadId = await createTestThread();- await runThreadMutation('markAgentChatThreadAsUnread', threadId);- await runThreadMutation('markAgentChatThreadAsUnread', threadId);- await runThreadMutation('archiveAgentChatThread', threadId);+ await runInboxAction('UNREAD', threadId);+ await runInboxAction('UNREAD', threadId);+ await runInboxAction('ARCHIVE', threadId);expect(findParticipantEvents(eventSpy, threadId)).toEqual([{ action: 'created', updatedFields: [] },@@ -467,11 +490,9 @@ describe('Chat thread participant state through the authenticated API', () => {const threadId = await createTestThread();await setShareWithJony(threadId, true);- await runThreadMutation(- 'archiveAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ await runInboxAction('ARCHIVE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });const janeParticipant = await findMyParticipant(threadId);const jonyParticipant = await findMyParticipant(@@ -509,12 +530,8 @@ describe('Chat thread participant state through the authenticated API', () => {it('ends a snooze once its time passes by moving the chat back to the inbox', async () => {const threadId = await createTestThread();- await makeMetadataApiRequest({- query: SNOOZE,- variables: {- threadId,- snoozedUntil: buildFutureSnoozedUntil(),- },+ await runInboxAction('SNOOZE', threadId, {+ snoozedUntil: buildFutureSnoozedUntil(),});const snoozedUntil = new Date(Date.now() - 1000);@@ -557,17 +574,16 @@ describe('Chat thread participant state through the authenticated API', () => {// The snooze was accepted while its time was still ahead, and its// queued end already ran and found nothing to end- const participant =+ const [participant] =await getAppProviderByClassName<AgentChatThreadParticipantService>('AgentChatThreadParticipantService',- )['setArchive'](- {- workspaceId: SEED_APPLE_WORKSPACE_ID,- workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JANE,- threadId,- },+ ).updateInboxState({+ workspaceId: SEED_APPLE_WORKSPACE_ID,+ workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JANE,+ threadIds: [threadId],+ action: AgentChatInboxAction.SNOOZE,snoozedUntil,- );+ });expect(participant.archivedAt).toBeNull();expect(new Date(participant.snoozedUntil!).getTime()).toBe(@@ -579,10 +595,7 @@ describe('Chat thread participant state through the authenticated API', () => {const threadId = await createTestThread();const snoozedUntil = buildFutureSnoozedUntil();- await makeMetadataApiRequest({- query: SNOOZE,- variables: { threadId, snoozedUntil },- });+ await runInboxAction('SNOOZE', threadId, { snoozedUntil });const eventSpy = spyOnParticipantEvents();@@ -604,12 +617,8 @@ describe('Chat thread participant state through the authenticated API', () => {it('leaves alone a snooze the member replaced since', async () => {const threadId = await createTestThread();- await makeMetadataApiRequest({- query: SNOOZE,- variables: {- threadId,- snoozedUntil: buildFutureSnoozedUntil(),- },+ await runInboxAction('SNOOZE', threadId, {+ snoozedUntil: buildFutureSnoozedUntil(),});const eventSpy = spyOnParticipantEvents();@@ -633,13 +642,11 @@ describe('Chat thread participant state through the authenticated API', () => {const threadId = await createTestThread();await setShareWithJony(threadId, true);- await runThreadMutation(- 'archiveAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );- await runThreadMutation('archiveAgentChatThread', threadId);- await runThreadMutation('markAgentChatThreadAsUnread', threadId);+ await runInboxAction('ARCHIVE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });+ await runInboxAction('ARCHIVE', threadId);+ await runInboxAction('UNREAD', threadId);const { lastActivityAt } =await getAppProviderByClassName<AgentChatThreadParticipantService>(@@ -679,13 +686,12 @@ describe('Chat thread participant state through the authenticated API', () => {it('brings a thread back for its members on activity no member wrote', async () => {const threadId = await createTestThread();- const archived = await runThreadMutation(- 'archiveAgentChatThread',- threadId,- );+ const archived = await runInboxAction('ARCHIVE', threadId);expect(archived.body.errors).toBeUndefined();- expect(archived.body.data.archiveAgentChatThread.archivedAt).not.toBeNull();+ expect(+ archived.body.data.updateAgentChatThreadInboxState[0].archivedAt,+ ).not.toBeNull();await getAppProviderByClassName<AgentChatThreadService>('AgentChatThreadService',@@ -716,11 +722,9 @@ describe('Chat thread participant state through the authenticated API', () => {const threadId = await createTestThread();await setShareWithJony(threadId, true);- await runThreadMutation(- 'archiveAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ await runInboxAction('ARCHIVE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });const rows: { workspaceMemberId: string }[] =await global.testDataSource.query(@@ -742,11 +746,9 @@ describe('Chat thread participant state through the authenticated API', () => {const threadId = await createTestThread();await setShareWithJony(threadId, true);- await runThreadMutation(- 'archiveAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ await runInboxAction('ARCHIVE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });expect(await findMyParticipant(threadId, APPLE_JONY_MEMBER_ACCESS_TOKEN),@@ -805,16 +807,12 @@ describe('Chat thread participant state through the authenticated API', () => {const threadId = await createTestThread();await addParticipants(threadId, [WORKSPACE_MEMBER_DATA_SEED_IDS.JONY]);- await runThreadMutation(- 'markAgentChatThreadAsRead',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );- await runThreadMutation(- 'archiveAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ await runInboxAction('READ', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });+ await runInboxAction('ARCHIVE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });await addParticipants(threadId, [WORKSPACE_MEMBER_DATA_SEED_IDS.JONY]);expect(@@ -873,17 +871,14 @@ describe('Chat thread participant state through the authenticated API', () => {it('keeps an unsubscribed chat done through new activity', async () => {const threadId = await createTestThread();- const unsubscribed = await runThreadMutation(- 'unsubscribeFromAgentChatThread',- threadId,- );+ const unsubscribed = await runInboxAction('UNSUBSCRIBE', threadId);expect(unsubscribed.body.errors).toBeUndefined();- expect(unsubscribed.body.data.unsubscribeFromAgentChatThread).toMatchObject(- { isSubscribed: false, snoozedUntil: null },- );expect(- unsubscribed.body.data.unsubscribeFromAgentChatThread.archivedAt,+ unsubscribed.body.data.updateAgentChatThreadInboxState[0],+ ).toMatchObject({ isSubscribed: false, snoozedUntil: null });+ expect(+ unsubscribed.body.data.updateAgentChatThreadInboxState[0].archivedAt,).not.toBeNull();await getAppProviderByClassName<AgentChatThreadService>(@@ -899,44 +894,39 @@ describe('Chat thread participant state through the authenticated API', () => {});// Subscribing again leaves the chat where it is until something happens- const subscribed = await runThreadMutation(- 'subscribeToAgentChatThread',- threadId,- );+ const subscribed = await runInboxAction('SUBSCRIBE', threadId);expect(subscribed.body.errors).toBeUndefined();- expect(subscribed.body.data.subscribeToAgentChatThread).toMatchObject({+ expect(+ subscribed.body.data.updateAgentChatThreadInboxState[0],+ ).toMatchObject({isSubscribed: true,archivedAt:- unsubscribed.body.data.unsubscribeFromAgentChatThread.archivedAt,+ unsubscribed.body.data.updateAgentChatThreadInboxState[0].archivedAt,});});it('follows the chat again for a member who reopens, snoozes or writes in it', async () => {const threadId = await createTestThread();- await runThreadMutation('unsubscribeFromAgentChatThread', threadId);- await runThreadMutation('moveAgentChatThreadToInbox', threadId);+ await runInboxAction('UNSUBSCRIBE', threadId);+ await runInboxAction('MOVE_TO_INBOX', threadId);expect(await findMyParticipant(threadId)).toMatchObject({isSubscribed: true,archivedAt: null,});- await runThreadMutation('unsubscribeFromAgentChatThread', threadId);- await makeMetadataApiRequest(- {- query: SNOOZE,- variables: { threadId, snoozedUntil: buildFutureSnoozedUntil() },- },- APPLE_JANE_ADMIN_ACCESS_TOKEN,- );+ await runInboxAction('UNSUBSCRIBE', threadId);+ await runInboxAction('SNOOZE', threadId, {+ snoozedUntil: buildFutureSnoozedUntil(),+ });expect(await findMyParticipant(threadId)).toMatchObject({isSubscribed: true,});- await runThreadMutation('unsubscribeFromAgentChatThread', threadId);+ await runInboxAction('UNSUBSCRIBE', threadId);await getAppProviderByClassName<AgentChatThreadParticipantService>('AgentChatThreadParticipantService',).recordMemberActivity({@@ -965,11 +955,9 @@ describe('Chat thread participant state through the authenticated API', () => {expect(firstMention).toMatchObject({ isSubscribed: true });expect(firstMention!.lastMentionedAt).not.toBeNull();- await runThreadMutation(- 'unsubscribeFromAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ await runInboxAction('UNSUBSCRIBE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });await addParticipants(threadId, [WORKSPACE_MEMBER_DATA_SEED_IDS.JONY]);const secondMention = await findMyParticipant(@@ -989,11 +977,9 @@ describe('Chat thread participant state through the authenticated API', () => {it('refuses to change the subscription of a member who cannot read the chat', async () => {const threadId = await createTestThread();- const response = await runThreadMutation(- 'unsubscribeFromAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ const response = await runInboxAction('UNSUBSCRIBE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });expect(response.body.errors[0].extensions.code).toBe('NOT_FOUND');});@@ -1024,7 +1010,7 @@ describe('Chat thread participant state through the authenticated API', () => {it('keeps a chat read for a member who assigns it to themselves', async () => {const threadId = await createTestThread();- await runThreadMutation('archiveAgentChatThread', threadId);+ await runInboxAction('ARCHIVE', threadId);const response = await assign(threadId,@@ -1061,11 +1047,9 @@ describe('Chat thread participant state through the authenticated API', () => {await assign(threadId, WORKSPACE_MEMBER_DATA_SEED_IDS.JONY);- const response = await runThreadMutation(- 'unsubscribeFromAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ const response = await runInboxAction('UNSUBSCRIBE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });expect(response.body.errors[0].extensions.code).toBe('CONFLICT');expect(@@ -1128,22 +1112,18 @@ describe('Chat thread participant state through the authenticated API', () => {hasUnreadOpenThread: true,});- await runThreadMutation(- 'markAgentChatThreadAsRead',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ await runInboxAction('READ', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });expect(await findOpenThreadsSummary()).toMatchObject({openThreadCount: before.openThreadCount + 1,hasUnreadOpenThread: before.hasUnreadOpenThread,});- await runThreadMutation(- 'archiveAgentChatThread',- threadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ await runInboxAction('ARCHIVE', threadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });expect(await findOpenThreadsSummary()).toEqual(before);});@@ -1162,19 +1142,17 @@ describe('Chat thread participant state through the authenticated API', () => {hasUnreadAssignedThread: true,});- const unsubscribed = await runThreadMutation(- 'unsubscribeFromAgentChatThread',+ const unsubscribed = await runInboxAction(+ 'UNSUBSCRIBE',mentionedThreadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,+ { token: APPLE_JONY_MEMBER_ACCESS_TOKEN },);expect(unsubscribed.body.errors).toBeUndefined();- await runThreadMutation(- 'archiveAgentChatThread',- assignedThreadId,- APPLE_JONY_MEMBER_ACCESS_TOKEN,- );+ await runInboxAction('ARCHIVE', assignedThreadId, {+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,+ });const before = await findOpenThreadsSummary();diff --git a/packages/twenty-shared/src/ai/index.ts b/packages/twenty-shared/src/ai/index.tsindex a9c29b20062..117b5e8b002 100644--- a/packages/twenty-shared/src/ai/index.ts+++ b/packages/twenty-shared/src/ai/index.ts@@ -37,6 +37,8 @@ export { PROPOSED_TOOL_CALL_TEMPLATES } from './constants/proposed-tool-call-temexport { REQUEST_FORM_TOOL_NAME } from './constants/request-form-tool-name.const';export { ToolCategory } from './constants/tool-category.const';export { agentRunSummarySchema } from './schemas/agent-run-summary-schema';+export type { AgentChatInboxAction } from './types/AgentChatInboxAction';+export type { AgentChatInboxState } from './types/AgentChatInboxState';export type { AgentChatSubscriptionEvent } from './types/AgentChatSubscriptionEvent';export type {AgentResponseFormatType,@@ -95,6 +97,7 @@ export {TOOL_WIDGET_NAMES,isToolWidgetName,} from './types/ToolWidget';+export { applyAgentChatInboxAction } from './utils/apply-agent-chat-inbox-action.util';export { buildFallbackProposedToolCall } from './utils/build-fallback-proposed-tool-call.util';export { formatRecordReference } from './utils/format-record-reference.util';export { formatSkillReference } from './utils/format-skill-reference.util';diff --git a/packages/twenty-shared/src/ai/types/AgentChatInboxAction.ts b/packages/twenty-shared/src/ai/types/AgentChatInboxAction.tsnew file mode 100644index 00000000000..1a52d174e3b--- /dev/null+++ b/packages/twenty-shared/src/ai/types/AgentChatInboxAction.ts@@ -0,0 +1,8 @@+export type AgentChatInboxAction =+ | 'READ'+ | 'UNREAD'+ | 'ARCHIVE'+ | 'SNOOZE'+ | 'MOVE_TO_INBOX'+ | 'SUBSCRIBE'+ | 'UNSUBSCRIBE';diff --git a/packages/twenty-shared/src/ai/types/AgentChatInboxState.ts b/packages/twenty-shared/src/ai/types/AgentChatInboxState.tsnew file mode 100644index 00000000000..8c16e7df58e--- /dev/null+++ b/packages/twenty-shared/src/ai/types/AgentChatInboxState.ts@@ -0,0 +1,6 @@+export type AgentChatInboxState = {+ lastReadAt: string | null;+ archivedAt: string | null;+ snoozedUntil: string | null;+ isSubscribed: boolean;+};diff --git a/packages/twenty-shared/src/ai/utils/__tests__/apply-agent-chat-inbox-action.util.spec.ts b/packages/twenty-shared/src/ai/utils/__tests__/apply-agent-chat-inbox-action.util.spec.tsnew file mode 100644index 00000000000..20e50a1150e--- /dev/null+++ b/packages/twenty-shared/src/ai/utils/__tests__/apply-agent-chat-inbox-action.util.spec.ts@@ -0,0 +1,89 @@+import { type AgentChatInboxAction } from '@/ai/types/AgentChatInboxAction';+import { type AgentChatInboxState } from '@/ai/types/AgentChatInboxState';+import { applyAgentChatInboxAction } from '@/ai/utils/apply-agent-chat-inbox-action.util';++const NOW = new Date('2026-10-01T10:00:00.000Z');+const EARLIER = '2026-10-01T09:00:00.000Z';+const LATER = '2026-10-01T11:00:00.000Z';++const READ: AgentChatInboxState = {+ lastReadAt: EARLIER,+ archivedAt: null,+ snoozedUntil: null,+ isSubscribed: true,+};+const SNOOZED_UNSUBSCRIBED: AgentChatInboxState = {+ ...READ,+ archivedAt: EARLIER,+ snoozedUntil: LATER,+ isSubscribed: false,+};++// Mirrors what the server's upsert for each action writes+describe('applyAgentChatInboxAction', () => {+ it.each<+ [+ string,+ AgentChatInboxState | undefined,+ AgentChatInboxAction,+ Partial<Parameters<typeof applyAgentChatInboxAction>[0]>,+ AgentChatInboxState,+ ]+ >([+ [+ 'reads a chat without a row up to its last activity',+ undefined,+ 'READ',+ { threadLastActivityAt: EARLIER },+ READ,+ ],+ [+ 'never moves the read cursor back',+ { ...READ, lastReadAt: LATER },+ 'READ',+ { threadLastActivityAt: EARLIER },+ { ...READ, lastReadAt: LATER },+ ],+ ['marks unread', READ, 'UNREAD', {}, { ...READ, lastReadAt: null }],+ [+ 'archives without following the chat again',+ SNOOZED_UNSUBSCRIBED,+ 'ARCHIVE',+ {},+ { ...READ, archivedAt: NOW.toISOString(), isSubscribed: false },+ ],+ [+ 'snoozes and follows the chat again',+ { ...READ, isSubscribed: false },+ 'SNOOZE',+ { snoozedUntil: LATER },+ { ...READ, archivedAt: NOW.toISOString(), snoozedUntil: LATER },+ ],+ [+ 'saves as ended a snooze already due',+ READ,+ 'SNOOZE',+ { snoozedUntil: EARLIER },+ { ...READ, snoozedUntil: EARLIER },+ ],+ [+ 'moves back to the inbox',+ SNOOZED_UNSUBSCRIBED,+ 'MOVE_TO_INBOX',+ {},+ READ,+ ],+ ['subscribes', { ...READ, isSubscribed: false }, 'SUBSCRIBE', {}, READ],+ [+ 'files an unsubscribed chat under done',+ SNOOZED_UNSUBSCRIBED,+ 'UNSUBSCRIBE',+ {},+ { ...READ, archivedAt: NOW.toISOString(), isSubscribed: false },+ ],+ ])('%s', (_, participant, action, options, expected) => {+ expect(+ applyAgentChatInboxAction({ participant, action, now: NOW, ...options }),+ ).toEqual(expected);+ });+});diff --git a/packages/twenty-shared/src/ai/utils/apply-agent-chat-inbox-action.util.ts b/packages/twenty-shared/src/ai/utils/apply-agent-chat-inbox-action.util.tsnew file mode 100644index 00000000000..e3c1336d26f--- /dev/null+++ b/packages/twenty-shared/src/ai/utils/apply-agent-chat-inbox-action.util.ts@@ -0,0 +1,77 @@+import { type AgentChatInboxAction } from '@/ai/types/AgentChatInboxAction';+import { type AgentChatInboxState } from '@/ai/types/AgentChatInboxState';+import { isDefined } from '@/utils/validation/isDefined';++// What a chat without the member's row reads as+const DEFAULT_AGENT_CHAT_INBOX_STATE: AgentChatInboxState = {+ lastReadAt: null,+ archivedAt: null,+ snoozedUntil: null,+ isSubscribed: true,+};++// The server writes each action as one SQL upsert stamped by the database+// clock (AgentChatThreadParticipantService); this is the same change, for+// the optimistic copy apps show before the server answers+export const applyAgentChatInboxAction = ({+ participant,+ action,+ now,+ threadLastActivityAt = null,+ snoozedUntil = null,+}: {+ participant: Partial<AgentChatInboxState> | null | undefined;+ action: AgentChatInboxAction;+ now: Date;+ threadLastActivityAt?: string | null;+ snoozedUntil?: string | null;+}): AgentChatInboxState => {+ const state = { ...DEFAULT_AGENT_CHAT_INBOX_STATE, ...participant };++ switch (action) {+ // Read up to what the thread holds now, never back+ case 'READ':+ return {+ ...state,+ lastReadAt:+ isDefined(state.lastReadAt) &&+ (!isDefined(threadLastActivityAt) ||+ new Date(state.lastReadAt) > new Date(threadLastActivityAt))+ ? state.lastReadAt+ : threadLastActivityAt,+ };+ case 'UNREAD':+ return { ...state, lastReadAt: null };+ case 'ARCHIVE':+ return { ...state, archivedAt: now.toISOString(), snoozedUntil: null };+ // A snooze already due is saved as ended, and a snoozed chat is followed+ // again since it is meant to come back+ case 'SNOOZE':+ return {+ ...state,+ archivedAt:+ isDefined(snoozedUntil) && new Date(snoozedUntil) > now+ ? now.toISOString()+ : null,+ snoozedUntil,+ isSubscribed: true,+ };+ case 'MOVE_TO_INBOX':+ return {+ ...state,+ archivedAt: null,+ snoozedUntil: null,+ isSubscribed: true,+ };+ case 'SUBSCRIBE':+ return { ...state, isSubscribed: true };+ // Files the chat under done until the member is mentioned or writes in it+ case 'UNSUBSCRIBE':+ return {+ ...state,+ isSubscribed: false,+ archivedAt: now.toISOString(),+ snoozedUntil: null,+ };+ }+};