Skip to content

The open alternative to Salesforce, designed for AI.

React to AI chat messages with emojis (#28077)

FΓ©lix Malfaita631b08dd1be
diff --git a/knip.json b/knip.json
index 3d21306faf6..b3165e5ce75 100644
--- a/knip.json
+++ b/knip.json
@@ -73,6 +73,7 @@
"ignoreDependencies": [
"@babel/preset-typescript",
"buffer",
+ "emojibase-data",
"esbuild",
"playwright",
"rollup-plugin-node-polyfills"
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index cb52312a6ec..82221403821 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -90,6 +90,7 @@ type AgentMessage {
id: UUID!
parts: [AgentMessagePart!]!
processedAt: DateTime
+ reactions: [AgentMessageReactionSummary!]!
role: String!
senderUserWorkspaceId: UUID
senderWorkspaceMemberId: UUID
@@ -127,6 +128,11 @@ type AgentMessagePart {
type: String!
}
+type AgentMessageReactionSummary {
+ emoji: String!
+ workspaceMemberIds: [UUID!]!
+}
+
type AgentRun {
createdAt: DateTime!
creatorName: String!
@@ -2980,6 +2986,7 @@ enum ModelFamily {
type Mutation {
activateSkill(id: UUID!): Skill!
activateWorkspace(data: ActivateWorkspaceInput!): Workspace!
+ addAgentChatMessageReaction(emoji: String!, messageId: UUID!): [AgentMessageReactionSummary!]!
addQueryToEventStream(input: AddQuerySubscriptionInput!): Boolean!
assignAgentChatThread(assigneeWorkspaceMemberId: UUID, threadId: UUID!): Boolean!
assignRoleToAgent(agentId: UUID!, roleId: UUID!): Boolean!
@@ -3127,6 +3134,7 @@ type Mutation {
installMarketplaceApp(universalIdentifier: String!, version: String): Boolean! @deprecated(reason: "Use installApplication instead")
refreshEnterpriseValidityToken: Boolean!
releaseEnterpriseServerBinding: EnterpriseLicenseInfoDTO!
+ removeAgentChatMessageReaction(emoji: String!, messageId: UUID!): [AgentMessageReactionSummary!]!
removeQueryFromEventStream(input: RemoveQueryFromEventStreamInput!): Boolean!
removeRecordShare(principal: RecordSharePrincipalInput!, target: RecordTargetInput!): RecordSharingDTO!
removeRoleFromAgent(agentId: UUID!): Boolean!
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 7e58eb6fffb..ab0f781e889 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -85,6 +85,7 @@ export interface AgentMessage {
id: Scalars['UUID']
parts: AgentMessagePart[]
processedAt?: Scalars['DateTime']
+ reactions: AgentMessageReactionSummary[]
role: Scalars['String']
senderUserWorkspaceId?: Scalars['UUID']
senderWorkspaceMemberId?: Scalars['UUID']
@@ -124,6 +125,12 @@ export interface AgentMessagePart {
__typename: 'AgentMessagePart'
}
+export interface AgentMessageReactionSummary {
+ emoji: Scalars['String']
+ workspaceMemberIds: Scalars['UUID'][]
+ __typename: 'AgentMessageReactionSummary'
+}
+
export interface AgentRun {
createdAt: Scalars['DateTime']
creatorName: Scalars['String']
@@ -2019,6 +2026,7 @@ export type ModelFamily = 'CLAUDE' | 'GEMINI' | 'GPT' | 'GROK' | 'MISTRAL'
export interface Mutation {
activateSkill: Skill
activateWorkspace: Workspace
+ addAgentChatMessageReaction: AgentMessageReactionSummary[]
addQueryToEventStream: Scalars['Boolean']
assignAgentChatThread: Scalars['Boolean']
assignRoleToAgent: Scalars['Boolean']
@@ -2168,6 +2176,7 @@ export interface Mutation {
installMarketplaceApp: Scalars['Boolean']
refreshEnterpriseValidityToken: Scalars['Boolean']
releaseEnterpriseServerBinding: EnterpriseLicenseInfoDTO
+ removeAgentChatMessageReaction: AgentMessageReactionSummary[]
removeQueryFromEventStream: Scalars['Boolean']
removeRecordShare: RecordSharingDTO
removeRoleFromAgent: Scalars['Boolean']
@@ -4038,6 +4047,7 @@ export interface AgentMessageGenqlSelection{
id?: boolean | number
parts?: AgentMessagePartGenqlSelection
processedAt?: boolean | number
+ reactions?: AgentMessageReactionSummaryGenqlSelection
role?: boolean | number
senderUserWorkspaceId?: boolean | number
senderWorkspaceMemberId?: boolean | number
@@ -4079,6 +4089,13 @@ export interface AgentMessagePartGenqlSelection{
__scalar?: boolean | number
}
+export interface AgentMessageReactionSummaryGenqlSelection{
+ emoji?: boolean | number
+ workspaceMemberIds?: boolean | number
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
export interface AgentRunGenqlSelection{
createdAt?: boolean | number
creatorName?: boolean | number
@@ -6236,6 +6253,7 @@ export interface MinimalViewGenqlSelection{
export interface MutationGenqlSelection{
activateSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
activateWorkspace?: (WorkspaceGenqlSelection & { __args: {data: ActivateWorkspaceInput} })
+ addAgentChatMessageReaction?: (AgentMessageReactionSummaryGenqlSelection & { __args: {emoji: Scalars['String'], messageId: Scalars['UUID']} })
addQueryToEventStream?: { __args: {input: AddQuerySubscriptionInput} }
assignAgentChatThread?: { __args: {assigneeWorkspaceMemberId?: (Scalars['UUID'] | null), threadId: Scalars['UUID']} }
assignRoleToAgent?: { __args: {agentId: Scalars['UUID'], roleId: Scalars['UUID']} }
@@ -6385,6 +6403,7 @@ export interface MutationGenqlSelection{
installMarketplaceApp?: { __args: {universalIdentifier: Scalars['String'], version?: (Scalars['String'] | null)} }
refreshEnterpriseValidityToken?: boolean | number
releaseEnterpriseServerBinding?: EnterpriseLicenseInfoDTOGenqlSelection
+ removeAgentChatMessageReaction?: (AgentMessageReactionSummaryGenqlSelection & { __args: {emoji: Scalars['String'], messageId: Scalars['UUID']} })
removeQueryFromEventStream?: { __args: {input: RemoveQueryFromEventStreamInput} }
removeRecordShare?: (RecordSharingDTOGenqlSelection & { __args: {principal: RecordSharePrincipalInput, target: RecordTargetInput} })
removeRoleFromAgent?: { __args: {agentId: Scalars['UUID']} }
@@ -8608,6 +8627,14 @@ export interface WorkspaceUrlsAndIdGenqlSelection{
+ const AgentMessageReactionSummary_possibleTypes: string[] = ['AgentMessageReactionSummary']
+ export const isAgentMessageReactionSummary = (obj?: { __typename?: any } | null): obj is AgentMessageReactionSummary => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isAgentMessageReactionSummary"')
+ return AgentMessageReactionSummary_possibleTypes.includes(obj.__typename)
+ }
+
+
+
const AgentRun_possibleTypes: string[] = ['AgentRun']
export const isAgentRun = (obj?: { __typename?: any } | null): obj is AgentRun => {
if (!obj?.__typename) throw new Error('__typename is missing in "isAgentRun"')
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index fe453ecd397..7b17eb4f7bd 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -6,117 +6,117 @@ export default {
8,
10,
11,
- 17,
- 19,
- 21,
- 24,
- 26,
- 33,
- 45,
- 53,
- 55,
- 61,
- 73,
- 77,
+ 18,
+ 20,
+ 22,
+ 25,
+ 27,
+ 34,
+ 46,
+ 54,
+ 56,
+ 62,
+ 74,
78,
- 80,
- 85,
- 90,
- 96,
- 101,
- 107,
- 110,
+ 79,
+ 81,
+ 86,
+ 91,
+ 97,
+ 102,
+ 108,
111,
112,
113,
- 121,
- 123,
- 137,
- 142,
- 186,
+ 114,
+ 122,
+ 124,
+ 138,
+ 143,
187,
- 214,
- 218,
+ 188,
+ 215,
219,
- 221,
- 231,
- 237,
- 241,
- 245,
- 248,
- 255,
- 270,
- 272,
- 282,
- 289,
+ 220,
+ 222,
+ 232,
+ 238,
+ 242,
+ 246,
+ 249,
+ 256,
+ 271,
+ 273,
+ 283,
290,
291,
- 302,
- 304,
- 318,
+ 292,
+ 303,
+ 305,
319,
320,
321,
322,
323,
- 325,
+ 324,
326,
327,
- 330,
+ 328,
331,
- 333,
+ 332,
334,
- 337,
- 339,
- 343,
- 347,
- 356,
- 363,
+ 335,
+ 338,
+ 340,
+ 344,
+ 348,
+ 357,
364,
365,
- 368,
- 372,
+ 366,
+ 369,
373,
- 378,
- 382,
- 403,
- 405,
+ 374,
+ 379,
+ 383,
+ 404,
406,
- 409,
- 414,
- 426,
- 428,
- 432,
- 437,
- 454,
- 466,
+ 407,
+ 410,
+ 415,
+ 427,
+ 429,
+ 433,
+ 438,
+ 455,
467,
- 469,
- 493,
- 495,
- 497,
- 557,
- 577,
- 584,
- 586,
- 600,
- 606,
+ 468,
+ 470,
+ 494,
+ 496,
+ 498,
+ 558,
+ 578,
+ 585,
+ 587,
+ 601,
607,
- 609,
+ 608,
610,
- 612,
+ 611,
613,
614,
- 617,
+ 615,
618,
- 623,
- 625,
- 628,
- 633,
+ 619,
+ 624,
+ 626,
+ 629,
634,
635,
- 638,
- 639
+ 636,
+ 639,
+ 640
],
"types": {
"ActivateWorkspaceInput": {
@@ -133,7 +133,7 @@ export default {
1
],
"operationSignature": [
- 289
+ 290
],
"queryId": [
1
@@ -144,10 +144,10 @@ export default {
},
"Agent": {
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"description": [
1
@@ -156,7 +156,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isCustom": [
4
@@ -168,7 +168,7 @@ export default {
1
],
"modelConfiguration": [
- 289
+ 290
],
"modelId": [
1
@@ -180,16 +180,16 @@ export default {
1
],
"responseFormat": [
- 289
+ 290
],
"roleId": [
- 493
+ 494
],
"triggers": [
- 289
+ 290
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -198,7 +198,7 @@ export default {
"Boolean": {},
"AgentChatEvent": {
"event": [
- 289
+ 290
],
"threadId": [
1
@@ -237,10 +237,10 @@ export default {
8
],
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"id": [
10
@@ -264,7 +264,7 @@ export default {
8
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -274,28 +274,28 @@ export default {
"Float": {},
"AgentChatThreadParticipant": {
"archivedAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"isSubscribed": [
4
],
"lastMentionedAt": [
- 187
+ 188
],
"lastReadAt": [
- 187
+ 188
],
"snoozedUntil": [
- 187
+ 188
],
"threadId": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -303,7 +303,7 @@ export default {
},
"AgentIdInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -311,37 +311,40 @@ export default {
},
"AgentMessage": {
"agentId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"parts": [
15
],
"processedAt": [
- 187
+ 188
+ ],
+ "reactions": [
+ 16
],
"role": [
1
],
"senderUserWorkspaceId": [
- 493
+ 494
],
"senderWorkspaceMemberId": [
- 493
+ 494
],
"status": [
1
],
"threadId": [
- 493
+ 494
],
"turnId": [
- 493
+ 494
],
"__typename": [
1
@@ -349,7 +352,7 @@ export default {
},
"AgentMessagePart": {
"createdAt": [
- 187
+ 188
],
"errorMessage": [
1
@@ -358,7 +361,7 @@ export default {
1
],
"fileId": [
- 493
+ 494
],
"fileMediaType": [
1
@@ -367,10 +370,10 @@ export default {
1
],
"id": [
- 493
+ 494
],
"messageId": [
- 493
+ 494
],
"orderIndex": [
8
@@ -379,7 +382,7 @@ export default {
4
],
"providerMetadata": [
- 289
+ 290
],
"reasoningContent": [
1
@@ -415,13 +418,13 @@ export default {
1
],
"toolInput": [
- 289
+ 290
],
"toolName": [
1
],
"toolOutput": [
- 289
+ 290
],
"type": [
1
@@ -430,9 +433,20 @@ export default {
1
]
},
+ "AgentMessageReactionSummary": {
+ "emoji": [
+ 1
+ ],
+ "workspaceMemberIds": [
+ 494
+ ],
+ "__typename": [
+ 1
+ ]
+ },
"AgentRun": {
"createdAt": [
- 187
+ 188
],
"creatorName": [
1
@@ -444,13 +458,13 @@ export default {
11
],
"endedAt": [
- 187
+ 188
],
"errorMessage": [
1
],
"id": [
- 493
+ 494
],
"input": [
1
@@ -468,13 +482,13 @@ export default {
1
],
"startedAt": [
- 187
+ 188
],
"status": [
- 17
+ 18
],
"threadId": [
- 493
+ 494
],
"threadTitle": [
1
@@ -489,13 +503,13 @@ export default {
"AgentTurnStatus": {},
"AggregateChartConfiguration": {
"aggregateFieldMetadataId": [
- 493
+ 494
],
"aggregateOperation": [
- 19
+ 20
],
"configurationType": [
- 617
+ 618
],
"description": [
1
@@ -504,7 +518,7 @@ export default {
4
],
"filter": [
- 289
+ 290
],
"firstDayOfTheWeek": [
8
@@ -513,13 +527,13 @@ export default {
1
],
"numberFormat": [
- 123
+ 124
],
"prefix": [
1
],
"ratioAggregateConfig": [
- 398
+ 399
],
"suffix": [
1
@@ -534,16 +548,16 @@ export default {
"AggregateOperations": {},
"AiChatUsage": {
"consumedValue": [
- 80
+ 81
],
"kind": [
1
],
"limitValue": [
- 80
+ 81
],
"periodEnd": [
- 187
+ 188
],
"__typename": [
1
@@ -555,7 +569,7 @@ export default {
8
],
"sections": [
- 23
+ 24
],
"__typename": [
1
@@ -595,25 +609,25 @@ export default {
},
"ApiKey": {
"createdAt": [
- 187
+ 188
],
"expiresAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"name": [
1
],
"revokedAt": [
- 187
+ 188
],
"role": [
- 420
+ 421
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -621,16 +635,16 @@ export default {
},
"ApiKeyForRole": {
"expiresAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"name": [
1
],
"revokedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -690,10 +704,10 @@ export default {
1
],
"scope": [
- 33
+ 34
],
"value": [
- 289
+ 290
],
"__typename": [
1
@@ -705,10 +719,10 @@ export default {
1
],
"participants": [
- 35
+ 36
],
"receivedAt": [
- 187
+ 188
],
"subject": [
1
@@ -731,13 +745,13 @@ export default {
1
],
"personId": [
- 493
+ 494
],
"role": [
- 327
+ 328
],
"workspaceMemberId": [
- 493
+ 494
],
"__typename": [
1
@@ -748,31 +762,31 @@ export default {
3
],
"applicationRegistration": [
- 57
+ 58
],
"applicationRegistrationId": [
- 493
+ 494
],
"applicationVariables": [
- 60
+ 61
],
"autoUpgrade": [
4
],
"availablePackages": [
- 289
+ 290
],
"canBeUninstalled": [
4
],
"commandMenuItems": [
- 136
+ 137
],
"createdAt": [
- 187
+ 188
],
"defaultLogicFunctionRole": [
- 420
+ 421
],
"defaultRoleId": [
1
@@ -781,22 +795,22 @@ export default {
1
],
"frontComponents": [
- 262
+ 263
],
"healthCheckLogicFunctionId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"isUninstallBlockedByOtherWorkspaceInstallations": [
4
],
"logicFunctions": [
- 301
+ 302
],
"logoFileId": [
- 493
+ 494
],
"logoUrl": [
1
@@ -805,19 +819,19 @@ export default {
1
],
"objects": [
- 349
+ 350
],
"packageJsonChecksum": [
1
],
"packageJsonFileId": [
- 493
+ 494
],
"settingsCustomTabFrontComponentId": [
- 493
+ 494
],
"settingsMenuItems": [
- 453
+ 454
],
"universalIdentifier": [
1
@@ -829,7 +843,7 @@ export default {
1
],
"yarnLockFileId": [
- 493
+ 494
],
"__typename": [
1
@@ -837,7 +851,7 @@ export default {
},
"ApplicationAuthorization": {
"applicationId": [
- 493
+ 494
],
"applicationName": [
1
@@ -846,22 +860,22 @@ export default {
1
],
"createdAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"lastAuthorizedAt": [
- 187
+ 188
],
"lastUsedAt": [
- 187
+ 188
],
"scopes": [
1
],
"workspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -872,7 +886,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -880,25 +894,25 @@ export default {
},
"ApplicationConnectedAccountDTO": {
"applicationId": [
- 493
+ 494
],
"archivedAt": [
- 187
+ 188
],
"authFailedAt": [
- 187
+ 188
],
"authFailedReason": [
1
],
"connectionParameters": [
- 394
+ 395
],
"connectionProviderId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"handle": [
1
@@ -907,16 +921,16 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isOwnedByCurrentUser": [
4
],
"lastCredentialsRefreshedAt": [
- 187
+ 188
],
"lastSignedInAt": [
- 187
+ 188
],
"name": [
1
@@ -928,10 +942,10 @@ export default {
1
],
"updatedAt": [
- 187
+ 188
],
"userWorkspaceId": [
- 493
+ 494
],
"visibility": [
1
@@ -948,7 +962,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"logoUrl": [
1
@@ -957,7 +971,7 @@ export default {
1
],
"oauth": [
- 41
+ 42
],
"type": [
1
@@ -979,16 +993,16 @@ export default {
},
"ApplicationExport": {
"application": [
- 43
+ 44
],
"coverage": [
- 44
+ 45
],
"files": [
- 46
+ 47
],
"manifest": [
- 289
+ 290
],
"__typename": [
1
@@ -999,7 +1013,7 @@ export default {
1
],
"sourceType": [
- 55
+ 56
],
"universalIdentifier": [
1
@@ -1016,7 +1030,7 @@ export default {
1
],
"status": [
- 45
+ 46
],
"universalIdentifier": [
1
@@ -1042,7 +1056,7 @@ export default {
},
"ApplicationFileCompletionError": {
"fileId": [
- 493
+ 494
],
"message": [
1
@@ -1053,7 +1067,7 @@ export default {
},
"ApplicationFileUploadError": {
"fileFolder": [
- 255
+ 256
],
"filePath": [
1
@@ -1067,7 +1081,7 @@ export default {
},
"ApplicationFileUploadRequestInput": {
"fileFolder": [
- 255
+ 256
],
"filePath": [
1
@@ -1084,13 +1098,13 @@ export default {
1
],
"expiresAt": [
- 187
+ 188
],
"fileFolder": [
- 255
+ 256
],
"fileId": [
- 493
+ 494
],
"filePath": [
1
@@ -1115,13 +1129,13 @@ export default {
},
"ApplicationHealthCheckResult": {
"action": [
- 51
+ 52
],
"description": [
1
],
"status": [
- 53
+ 54
],
"title": [
1
@@ -1133,13 +1147,13 @@ export default {
"ApplicationHealthStatus": {},
"ApplicationRegistration": {
"createdAt": [
- 187
+ 188
],
"galleryImagesUrls": [
1
],
"id": [
- 493
+ 494
],
"isConfigured": [
4
@@ -1172,19 +1186,19 @@ export default {
1
],
"ownerWorkspaceId": [
- 493
+ 494
],
"sourcePackage": [
1
],
"sourceType": [
- 55
+ 56
],
"universalIdentifier": [
1
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -1202,7 +1216,7 @@ export default {
8
],
"versionDistribution": [
- 598
+ 599
],
"__typename": [
1
@@ -1210,7 +1224,7 @@ export default {
},
"ApplicationRegistrationSummary": {
"id": [
- 493
+ 494
],
"latestAvailableVersion": [
1
@@ -1219,7 +1233,7 @@ export default {
1
],
"sourceType": [
- 55
+ 56
],
"__typename": [
1
@@ -1227,13 +1241,13 @@ export default {
},
"ApplicationRegistrationVariable": {
"createdAt": [
- 187
+ 188
],
"description": [
1
],
"id": [
- 493
+ 494
],
"isDeprecated": [
4
@@ -1251,13 +1265,13 @@ export default {
1
],
"options": [
- 289
+ 290
],
"type": [
1
],
"updatedAt": [
- 187
+ 188
],
"value": [
1
@@ -1268,10 +1282,10 @@ export default {
},
"ApplicationTokenPair": {
"applicationAccessToken": [
- 65
+ 66
],
"applicationRefreshToken": [
- 65
+ 66
],
"__typename": [
1
@@ -1282,7 +1296,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isDeprecated": [
4
@@ -1300,10 +1314,10 @@ export default {
1
],
"options": [
- 289
+ 290
],
"scope": [
- 61
+ 62
],
"type": [
1
@@ -1318,13 +1332,13 @@ export default {
"ApplicationVariableScope": {},
"ApprovedAccessDomain": {
"createdAt": [
- 187
+ 188
],
"domain": [
1
],
"id": [
- 493
+ 494
],
"isValidated": [
4
@@ -1361,7 +1375,7 @@ export default {
4
],
"sso": [
- 436
+ 437
],
"__typename": [
1
@@ -1369,7 +1383,7 @@ export default {
},
"AuthToken": {
"expiresAt": [
- 187
+ 188
],
"token": [
1
@@ -1380,10 +1394,10 @@ export default {
},
"AuthTokenPair": {
"accessOrWorkspaceAgnosticToken": [
- 65
+ 66
],
"refreshToken": [
- 65
+ 66
],
"__typename": [
1
@@ -1391,7 +1405,7 @@ export default {
},
"AuthTokens": {
"tokens": [
- 66
+ 67
],
"__typename": [
1
@@ -1421,7 +1435,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"inviteHash": [
1
@@ -1436,10 +1450,10 @@ export default {
1
],
"sso": [
- 435
+ 436
],
"workspaceUrls": [
- 640
+ 641
],
"__typename": [
1
@@ -1447,10 +1461,10 @@ export default {
},
"AvailableWorkspaces": {
"availableWorkspacesForSignIn": [
- 70
+ 71
],
"availableWorkspacesForSignUp": [
- 70
+ 71
],
"__typename": [
1
@@ -1458,10 +1472,10 @@ export default {
},
"AvailableWorkspacesAndAccessTokens": {
"availableWorkspaces": [
- 71
+ 72
],
"tokens": [
- 66
+ 67
],
"__typename": [
1
@@ -1470,19 +1484,19 @@ export default {
"AxisNameDisplay": {},
"BarChartConfiguration": {
"aggregateFieldMetadataId": [
- 493
+ 494
],
"aggregateOperation": [
- 19
+ 20
],
"axisNameDisplay": [
- 73
+ 74
],
"color": [
1
],
"configurationType": [
- 617
+ 618
],
"description": [
1
@@ -1494,31 +1508,31 @@ export default {
4
],
"filter": [
- 289
+ 290
],
"firstDayOfTheWeek": [
8
],
"groupMode": [
- 77
+ 78
],
"isCumulative": [
4
],
"layout": [
- 78
+ 79
],
"numberFormat": [
- 123
+ 124
],
"omitNullValues": [
4
],
"primaryAxisDateGranularity": [
- 363
+ 364
],
"primaryAxisGroupByFieldMetadataId": [
- 493
+ 494
],
"primaryAxisGroupBySubFieldName": [
1
@@ -1527,7 +1541,7 @@ export default {
1
],
"primaryAxisOrderBy": [
- 270
+ 271
],
"rangeMax": [
11
@@ -1536,10 +1550,10 @@ export default {
11
],
"secondaryAxisGroupByDateGranularity": [
- 363
+ 364
],
"secondaryAxisGroupByFieldMetadataId": [
- 493
+ 494
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -1548,7 +1562,7 @@ export default {
1
],
"secondaryAxisOrderBy": [
- 270
+ 271
],
"splitMultiValueFields": [
4
@@ -1562,13 +1576,13 @@ export default {
},
"BarChartData": {
"data": [
- 289
+ 290
],
"formattedToRawLookup": [
- 289
+ 290
],
"groupMode": [
- 77
+ 78
],
"hasTooManyGroups": [
4
@@ -1580,10 +1594,10 @@ export default {
1
],
"layout": [
- 78
+ 79
],
"series": [
- 79
+ 80
],
"showDataLabels": [
4
@@ -1603,10 +1617,10 @@ export default {
},
"BarChartDataInput": {
"configuration": [
- 289
+ 290
],
"objectMetadataId": [
- 493
+ 494
],
"__typename": [
1
@@ -1637,7 +1651,7 @@ export default {
1
],
"trialPeriods": [
- 105
+ 106
],
"__typename": [
1
@@ -1648,7 +1662,7 @@ export default {
4
],
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -1659,16 +1673,16 @@ export default {
1
],
"billingSubscriptions": [
- 100
+ 101
],
"currentBillingSubscription": [
- 100
+ 101
],
"hasPaymentMethod": [
4
],
"status": [
- 467
+ 468
],
"__typename": [
1
@@ -1676,7 +1690,7 @@ export default {
},
"BillingEntitlement": {
"key": [
- 85
+ 86
],
"value": [
4
@@ -1694,13 +1708,13 @@ export default {
1
],
"metadata": [
- 97
+ 98
],
"name": [
1
],
"prices": [
- 91
+ 92
],
"__typename": [
1
@@ -1714,13 +1728,13 @@ export default {
1
],
"metadata": [
- 97
+ 98
],
"name": [
1
],
"prices": [
- 92
+ 93
],
"__typename": [
1
@@ -1739,25 +1753,25 @@ export default {
},
"BillingPlan": {
"baseProducts": [
- 86
+ 87
],
"downgradePlanKeys": [
- 90
+ 91
],
"isSellable": [
4
],
"meteredProducts": [
- 87
+ 88
],
"planKey": [
- 90
+ 91
],
"resourceCreditProducts": [
- 86
+ 87
],
"upgradePlanKeys": [
- 90
+ 91
],
"__typename": [
1
@@ -1772,10 +1786,10 @@ export default {
4
],
"priceUsageType": [
- 107
+ 108
],
"recurringInterval": [
- 466
+ 467
],
"stripePriceId": [
1
@@ -1789,16 +1803,16 @@ export default {
},
"BillingPriceMetered": {
"priceUsageType": [
- 107
+ 108
],
"recurringInterval": [
- 466
+ 467
],
"stripePriceId": [
1
],
"tiers": [
- 93
+ 94
],
"__typename": [
1
@@ -1826,7 +1840,7 @@ export default {
1
],
"metadata": [
- 97
+ 98
],
"name": [
1
@@ -1843,16 +1857,16 @@ export default {
1
],
"metadata": [
- 97
+ 98
],
"name": [
1
],
"on_BillingLicensedProduct": [
- 86
+ 87
],
"on_BillingMeteredProduct": [
- 87
+ 88
],
"__typename": [
1
@@ -1864,13 +1878,13 @@ export default {
1
],
"planKey": [
- 90
+ 91
],
"priceUsageBased": [
- 107
+ 108
],
"productKey": [
- 96
+ 97
],
"__typename": [
1
@@ -1881,13 +1895,13 @@ export default {
11
],
"periodEnd": [
- 187
+ 188
],
"periodStart": [
- 187
+ 188
],
"productKey": [
- 96
+ 97
],
"rolloverCredits": [
11
@@ -1915,31 +1929,31 @@ export default {
},
"BillingSubscription": {
"billingSubscriptionItems": [
- 102
+ 103
],
"cancelAt": [
- 187
+ 188
],
"collectionMethod": [
- 101
+ 102
],
"currentPeriodEnd": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"interval": [
- 466
+ 467
],
"metadata": [
- 289
+ 290
],
"phases": [
- 103
+ 104
],
"status": [
- 467
+ 468
],
"__typename": [
1
@@ -1948,7 +1962,7 @@ export default {
"BillingSubscriptionCollectionMethod": {},
"BillingSubscriptionItem": {
"billingProduct": [
- 95
+ 96
],
"creditAmount": [
11
@@ -1957,7 +1971,7 @@ export default {
4
],
"id": [
- 493
+ 494
],
"quantity": [
11
@@ -1977,7 +1991,7 @@ export default {
11
],
"items": [
- 104
+ 105
],
"start_date": [
11
@@ -2010,10 +2024,10 @@ export default {
},
"BillingUpdate": {
"billingSubscriptions": [
- 100
+ 101
],
"currentBillingSubscription": [
- 100
+ 101
],
"__typename": [
1
@@ -2033,19 +2047,19 @@ export default {
},
"CalendarChannel": {
"connectedAccountId": [
- 493
+ 494
],
"contactAutoCreationPolicy": [
- 110
+ 111
],
"createdAt": [
- 187
+ 188
],
"handle": [
1
],
"id": [
- 493
+ 494
],
"isContactAutoCreationEnabled": [
4
@@ -2054,25 +2068,25 @@ export default {
4
],
"syncStage": [
- 111
+ 112
],
"syncStageStartedAt": [
- 187
+ 188
],
"syncStatus": [
- 112
+ 113
],
"syncedAt": [
- 187
+ 188
],
"throttleFailureCount": [
11
],
"updatedAt": [
- 187
+ 188
],
"visibility": [
- 113
+ 114
],
"__typename": [
1
@@ -2084,7 +2098,7 @@ export default {
"CalendarChannelVisibility": {},
"CalendarConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -2092,7 +2106,7 @@ export default {
},
"CallRecordingSummaryConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -2100,7 +2114,7 @@ export default {
},
"CallRecordingTranscriptConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -2156,7 +2170,7 @@ export default {
},
"Captcha": {
"provider": [
- 121
+ 122
],
"siteKey": [
1
@@ -2177,7 +2191,7 @@ export default {
"ChartNumberFormat": {},
"ChatConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -2185,10 +2199,10 @@ export default {
},
"ChatStreamCatchupChunks": {
"chunks": [
- 289
+ 290
],
"error": [
- 126
+ 127
],
"maxSeq": [
8
@@ -2210,7 +2224,7 @@ export default {
},
"ChatThreadsConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -2335,7 +2349,7 @@ export default {
11
],
"modelFamily": [
- 343
+ 344
],
"modelFamilyLabel": [
1
@@ -2344,7 +2358,7 @@ export default {
1
],
"nativeCapabilities": [
- 345
+ 346
],
"outputCostPerMillionTokens": [
11
@@ -2370,7 +2384,7 @@ export default {
1
],
"tier": [
- 21
+ 22
],
"__typename": [
1
@@ -2378,13 +2392,13 @@ export default {
},
"ClientConfig": {
"aiEvaluationModels": [
- 130
+ 131
],
"aiModelTiers": [
- 132
+ 133
],
"aiModels": [
- 131
+ 132
],
"allowRequestsToTwentyIcons": [
4
@@ -2393,16 +2407,16 @@ export default {
4
],
"api": [
- 27
+ 28
],
"appVersion": [
1
],
"authProviders": [
- 64
+ 65
],
"billing": [
- 81
+ 82
],
"calendarBookingPageId": [
1
@@ -2411,7 +2425,7 @@ export default {
4
],
"captcha": [
- 120
+ 121
],
"defaultSubdomain": [
1
@@ -2474,16 +2488,16 @@ export default {
4
],
"maintenance": [
- 134
+ 135
],
"publicFeatureFlags": [
- 392
+ 393
],
"publicFunctionDomain": [
1
],
"sentry": [
- 451
+ 452
],
"serverUrl": [
1
@@ -2492,7 +2506,7 @@ export default {
4
],
"support": [
- 468
+ 469
],
"__typename": [
1
@@ -2500,13 +2514,13 @@ export default {
},
"ClientConfigMaintenanceMode": {
"endAt": [
- 187
+ 188
],
"link": [
1
],
"startAt": [
- 187
+ 188
],
"__typename": [
1
@@ -2514,7 +2528,7 @@ export default {
},
"CollectionHash": {
"collectionName": [
- 24
+ 25
],
"hash": [
1
@@ -2525,13 +2539,13 @@ export default {
},
"CommandMenuItem": {
"applicationId": [
- 493
+ 494
],
"availabilityObjectMetadataId": [
- 493
+ 494
],
"availabilityType": [
- 137
+ 138
],
"conditionalAvailabilityExpression": [
1
@@ -2540,19 +2554,19 @@ export default {
1
],
"coreWorkflowVersionId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"engineComponentKey": [
- 221
+ 222
],
"frontComponent": [
- 262
+ 263
],
"frontComponentId": [
- 493
+ 494
],
"hotKeys": [
1
@@ -2561,7 +2575,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -2573,13 +2587,13 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 493
+ 494
],
"pageLayoutId": [
- 493
+ 494
],
"payload": [
- 138
+ 139
],
"position": [
11
@@ -2588,13 +2602,13 @@ export default {
1
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"workflowVersionId": [
- 493
+ 494
],
"__typename": [
1
@@ -2603,10 +2617,10 @@ export default {
"CommandMenuItemAvailabilityType": {},
"CommandMenuItemPayload": {
"on_ObjectMetadataCommandMenuItemPayload": [
- 355
+ 356
],
"on_PathCommandMenuItemPayload": [
- 380
+ 381
],
"__typename": [
1
@@ -2614,10 +2628,10 @@ export default {
},
"CompleteApplicationFileUploadsResult": {
"errors": [
- 47
+ 48
],
"files": [
- 253
+ 254
],
"__typename": [
1
@@ -2625,25 +2639,25 @@ export default {
},
"ConnectedAccountPublicDTO": {
"applicationId": [
- 493
+ 494
],
"archivedAt": [
- 187
+ 188
],
"authFailedAt": [
- 187
+ 188
],
"authFailedReason": [
1
],
"connectionParameters": [
- 394
+ 395
],
"connectionProviderId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"handle": [
1
@@ -2652,13 +2666,13 @@ export default {
1
],
"id": [
- 493
+ 494
],
"lastCredentialsRefreshedAt": [
- 187
+ 188
],
"lastSignedInAt": [
- 187
+ 188
],
"name": [
1
@@ -2670,10 +2684,10 @@ export default {
1
],
"updatedAt": [
- 187
+ 188
],
"userWorkspaceId": [
- 493
+ 494
],
"visibility": [
1
@@ -2684,19 +2698,19 @@ export default {
},
"ConnectedImapSmtpCaldavAccount": {
"connectionParameters": [
- 275
+ 276
],
"handle": [
1
],
"id": [
- 493
+ 494
],
"provider": [
1
],
"userWorkspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -2705,7 +2719,7 @@ export default {
"ConnectionCursor": {},
"ConnectionParametersInput": {
"connectionSecurity": [
- 214
+ 215
],
"host": [
1
@@ -2734,7 +2748,7 @@ export default {
1
],
"modelConfiguration": [
- 289
+ 290
],
"modelId": [
1
@@ -2746,13 +2760,13 @@ export default {
1
],
"responseFormat": [
- 289
+ 290
],
"roleId": [
- 493
+ 494
],
"triggers": [
- 289
+ 290
],
"__typename": [
1
@@ -2769,7 +2783,7 @@ export default {
1
],
"roleId": [
- 493
+ 494
],
"__typename": [
1
@@ -2777,7 +2791,7 @@ export default {
},
"CreateAppMessageChannelInput": {
"connectedAccountId": [
- 493
+ 494
],
"displayName": [
1
@@ -2786,7 +2800,7 @@ export default {
1
],
"visibility": [
- 323
+ 324
],
"__typename": [
1
@@ -2794,10 +2808,10 @@ export default {
},
"CreateApplicationFileUploadsResult": {
"errors": [
- 48
+ 49
],
"targets": [
- 50
+ 51
],
"__typename": [
1
@@ -2805,7 +2819,7 @@ export default {
},
"CreateApplicationRegistration": {
"applicationRegistration": [
- 54
+ 55
],
"clientSecret": [
1
@@ -2902,10 +2916,10 @@ export default {
},
"CreateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 493
+ 494
],
"availabilityType": [
- 137
+ 138
],
"conditionalAvailabilityExpression": [
1
@@ -2914,13 +2928,13 @@ export default {
1
],
"coreWorkflowVersionId": [
- 493
+ 494
],
"engineComponentKey": [
- 221
+ 222
],
"frontComponentId": [
- 493
+ 494
],
"hotKeys": [
1
@@ -2935,13 +2949,13 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 493
+ 494
],
"pageLayoutId": [
- 493
+ 494
],
"payload": [
- 289
+ 290
],
"position": [
11
@@ -2950,7 +2964,7 @@ export default {
1
],
"workflowVersionId": [
- 493
+ 494
],
"__typename": [
1
@@ -2972,7 +2986,7 @@ export default {
1
],
"messageChannel": [
- 317
+ 318
],
"__typename": [
1
@@ -2988,7 +3002,7 @@ export default {
},
"CreateFieldInput": {
"defaultValue": [
- 289
+ 290
],
"description": [
1
@@ -3030,25 +3044,25 @@ export default {
1
],
"morphRelationsCreationPayload": [
- 289
+ 290
],
"name": [
1
],
"objectMetadataId": [
- 493
+ 494
],
"options": [
- 289
+ 290
],
"relationCreationPayload": [
- 289
+ 290
],
"settings": [
- 289
+ 290
],
"type": [
- 248
+ 249
],
"__typename": [
1
@@ -3068,7 +3082,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"name": [
1
@@ -3082,7 +3096,7 @@ export default {
},
"CreateIndexFieldInput": {
"fieldMetadataId": [
- 493
+ 494
],
"subFieldName": [
1
@@ -3093,13 +3107,13 @@ export default {
},
"CreateIndexInput": {
"fields": [
- 159
+ 160
],
"indexType": [
- 282
+ 283
],
"objectMetadataId": [
- 493
+ 494
],
"__typename": [
1
@@ -3107,40 +3121,40 @@ export default {
},
"CreateLogicFunctionFromSourceInput": {
"cronTriggerSettings": [
- 289
+ 290
],
"databaseEventTriggerSettings": [
- 289
+ 290
],
"description": [
1
],
"httpRouteTriggerSettings": [
- 289
+ 290
],
"id": [
- 493
+ 494
],
"name": [
1
],
"serverRouteTriggerSettings": [
- 289
+ 290
],
"source": [
- 289
+ 290
],
"timeoutSeconds": [
11
],
"toolTriggerSettings": [
- 289
+ 290
],
"universalIdentifier": [
- 493
+ 494
],
"workflowActionTriggerSettings": [
- 289
+ 290
],
"__typename": [
1
@@ -3151,7 +3165,7 @@ export default {
1
],
"unsubscribeTopicId": [
- 493
+ 494
],
"__typename": [
1
@@ -3162,13 +3176,13 @@ export default {
1
],
"folderId": [
- 493
+ 494
],
"icon": [
1
],
"id": [
- 493
+ 494
],
"link": [
1
@@ -3177,25 +3191,25 @@ export default {
1
],
"pageLayoutId": [
- 493
+ 494
],
"position": [
11
],
"targetObjectMetadataId": [
- 493
+ 494
],
"targetRecordId": [
- 493
+ 494
],
"type": [
- 347
+ 348
],
"userWorkspaceId": [
- 493
+ 494
],
"viewId": [
- 493
+ 494
],
"__typename": [
1
@@ -3233,7 +3247,7 @@ export default {
1
],
"primaryKeyFieldMetadataSettings": [
- 289
+ 290
],
"shortcut": [
1
@@ -3247,7 +3261,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 157
+ 158
],
"__typename": [
1
@@ -3255,7 +3269,7 @@ export default {
},
"CreateOneIndexInput": {
"index": [
- 160
+ 161
],
"__typename": [
1
@@ -3263,7 +3277,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 164
+ 165
],
"__typename": [
1
@@ -3274,10 +3288,10 @@ export default {
1
],
"objectMetadataId": [
- 493
+ 494
],
"type": [
- 373
+ 374
],
"__typename": [
1
@@ -3285,10 +3299,10 @@ export default {
},
"CreatePageLayoutTabInput": {
"layoutMode": [
- 372
+ 373
],
"pageLayoutId": [
- 493
+ 494
],
"position": [
11
@@ -3302,22 +3316,22 @@ export default {
},
"CreatePageLayoutWidgetInput": {
"configuration": [
- 289
+ 290
],
"objectMetadataId": [
- 493
+ 494
],
"pageLayoutTabId": [
- 493
+ 494
],
"position": [
- 289
+ 290
],
"title": [
1
],
"type": [
- 618
+ 619
],
"__typename": [
1
@@ -3325,16 +3339,16 @@ export default {
},
"CreateRecordExportInput": {
"fieldMetadataIds": [
- 493
+ 494
],
"filter": [
- 289
+ 290
],
"objectMetadataId": [
- 493
+ 494
],
"orderBy": [
- 289
+ 290
],
"__typename": [
1
@@ -3395,7 +3409,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"label": [
1
@@ -3415,7 +3429,7 @@ export default {
1
],
"visibility": [
- 497
+ 498
],
"__typename": [
1
@@ -3423,16 +3437,16 @@ export default {
},
"CreateUsageLimitInput": {
"burstValue": [
- 80
+ 81
],
"limitKind": [
1
],
"limitValue": [
- 80
+ 81
],
"operationType": [
- 577
+ 578
],
"periodCount": [
8
@@ -3441,7 +3455,7 @@ export default {
1
],
"resourceType": [
- 584
+ 585
],
"spenderId": [
1
@@ -3450,7 +3464,7 @@ export default {
1
],
"unit": [
- 586
+ 587
],
"__typename": [
1
@@ -3461,7 +3475,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 493
+ 494
],
"expression": [
1
@@ -3479,7 +3493,7 @@ export default {
1
],
"objectMetadataId": [
- 493
+ 494
],
"__typename": [
1
@@ -3487,7 +3501,7 @@ export default {
},
"CreateViewFieldGroupInput": {
"id": [
- 493
+ 494
],
"isVisible": [
4
@@ -3499,7 +3513,7 @@ export default {
11
],
"viewId": [
- 493
+ 494
],
"__typename": [
1
@@ -3507,13 +3521,13 @@ export default {
},
"CreateViewFieldInput": {
"aggregateOperation": [
- 19
+ 20
],
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"isVisible": [
4
@@ -3525,10 +3539,10 @@ export default {
11
],
"viewFieldGroupId": [
- 493
+ 494
],
"viewId": [
- 493
+ 494
],
"__typename": [
1
@@ -3536,19 +3550,19 @@ export default {
},
"CreateViewFilterGroupInput": {
"id": [
- 493
+ 494
],
"logicalOperator": [
- 606
+ 607
],
"parentViewFilterGroupId": [
- 493
+ 494
],
"positionInViewFilterGroup": [
11
],
"viewId": [
- 493
+ 494
],
"__typename": [
1
@@ -3556,31 +3570,31 @@ export default {
},
"CreateViewFilterInput": {
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"operand": [
- 607
+ 608
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 493
+ 494
],
"subFieldName": [
1
],
"value": [
- 289
+ 290
],
"viewFilterGroupId": [
- 493
+ 494
],
"viewId": [
- 493
+ 494
],
"__typename": [
1
@@ -3591,7 +3605,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isVisible": [
4
@@ -3600,7 +3614,7 @@ export default {
11
],
"viewId": [
- 493
+ 494
],
"__typename": [
1
@@ -3611,13 +3625,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 493
+ 494
],
"calendarFieldMetadataId": [
- 493
+ 494
],
"calendarLayout": [
- 600
+ 601
],
"groupLoadLimit": [
8
@@ -3626,34 +3640,34 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isCompact": [
4
],
"kanbanAggregateOperation": [
- 19
+ 20
],
"kanbanAggregateOperationFieldMetadataId": [
- 493
+ 494
],
"kanbanColumnWidth": [
8
],
"key": [
- 609
+ 610
],
"mainGroupByFieldMetadataId": [
- 493
+ 494
],
"name": [
1
],
"objectMetadataId": [
- 493
+ 494
],
"openRecordIn": [
- 610
+ 611
],
"position": [
11
@@ -3662,10 +3676,10 @@ export default {
4
],
"type": [
- 613
+ 614
],
"visibility": [
- 614
+ 615
],
"__typename": [
1
@@ -3673,19 +3687,19 @@ export default {
},
"CreateViewSortInput": {
"direction": [
- 612
+ 613
],
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"subFieldName": [
1
],
"viewId": [
- 493
+ 494
],
"__typename": [
1
@@ -3696,7 +3710,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"operations": [
1
@@ -3713,10 +3727,10 @@ export default {
},
"CursorPaging": {
"after": [
- 142
+ 143
],
"before": [
- 142
+ 143
],
"first": [
8
@@ -3732,7 +3746,7 @@ export default {
"DateTime": {},
"DeleteApprovedAccessDomainInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3740,7 +3754,7 @@ export default {
},
"DeleteOneFieldInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3748,7 +3762,7 @@ export default {
},
"DeleteOneIndexInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3756,7 +3770,7 @@ export default {
},
"DeleteOneObjectInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3764,7 +3778,7 @@ export default {
},
"DeleteSso": {
"identityProviderId": [
- 493
+ 494
],
"__typename": [
1
@@ -3772,7 +3786,7 @@ export default {
},
"DeleteSsoInput": {
"identityProviderId": [
- 493
+ 494
],
"__typename": [
1
@@ -3788,7 +3802,7 @@ export default {
},
"DeleteViewFieldGroupInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3796,7 +3810,7 @@ export default {
},
"DeleteViewFieldInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3804,7 +3818,7 @@ export default {
},
"DeleteViewFilterInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3812,7 +3826,7 @@ export default {
},
"DeleteViewGroupInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3820,7 +3834,7 @@ export default {
},
"DeleteViewSortInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3831,16 +3845,16 @@ export default {
1
],
"id": [
- 493
+ 494
],
"name": [
- 265
+ 266
],
"userEmail": [
1
],
"userWorkspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -3848,7 +3862,7 @@ export default {
},
"DestroyViewFieldGroupInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3856,7 +3870,7 @@ export default {
},
"DestroyViewFieldInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3864,7 +3878,7 @@ export default {
},
"DestroyViewFilterInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3872,7 +3886,7 @@ export default {
},
"DestroyViewGroupInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3880,7 +3894,7 @@ export default {
},
"DestroyViewSortInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -3922,13 +3936,13 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isCustomDomainEnabled": [
4
],
"records": [
- 207
+ 208
],
"__typename": [
1
@@ -3939,10 +3953,10 @@ export default {
1
],
"id": [
- 493
+ 494
],
"pageLayoutId": [
- 493
+ 494
],
"position": [
11
@@ -3965,7 +3979,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"memberCount": [
11
@@ -3985,7 +3999,7 @@ export default {
},
"EditSso": {
"id": [
- 493
+ 494
],
"issuer": [
1
@@ -3994,10 +4008,10 @@ export default {
1
],
"status": [
- 437
+ 438
],
"type": [
- 272
+ 273
],
"__typename": [
1
@@ -4005,10 +4019,10 @@ export default {
},
"EditSsoInput": {
"id": [
- 493
+ 494
],
"status": [
- 437
+ 438
],
"__typename": [
1
@@ -4016,13 +4030,13 @@ export default {
},
"EmailAccountConnectionParameters": {
"CALDAV": [
- 143
+ 144
],
"IMAP": [
- 143
+ 144
],
"SMTP": [
- 143
+ 144
],
"name": [
1
@@ -4042,7 +4056,7 @@ export default {
},
"EmailThreadConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -4050,31 +4064,31 @@ export default {
},
"EmailingDomain": {
"createdAt": [
- 187
+ 188
],
"domain": [
1
],
"id": [
- 493
+ 494
],
"status": [
- 218
+ 219
],
"tenantStatus": [
- 219
+ 220
],
"unsubscribeHostnameStatus": [
- 495
+ 496
],
"updatedAt": [
- 187
+ 188
],
"verificationRecords": [
- 595
+ 596
],
"verifiedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -4084,7 +4098,7 @@ export default {
"EmailingDomainTenantStatus": {},
"EmailsConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -4102,7 +4116,7 @@ export default {
1
],
"payload": [
- 289
+ 290
],
"retryLimit": [
8
@@ -4116,7 +4130,7 @@ export default {
1
],
"payload": [
- 289
+ 290
],
"__typename": [
1
@@ -4141,13 +4155,13 @@ export default {
8
],
"jobs": [
- 223
+ 224
],
"logicFunctionUniversalIdentifier": [
1
],
"payloads": [
- 289
+ 290
],
"retryLimit": [
8
@@ -4175,7 +4189,7 @@ export default {
},
"EnterpriseLicenseInfoDTO": {
"expiresAt": [
- 187
+ 188
],
"isValid": [
4
@@ -4192,13 +4206,13 @@ export default {
},
"EnterpriseSubscriptionStatusDTO": {
"cancelAt": [
- 187
+ 188
],
"currentPeriodEnd": [
- 187
+ 188
],
"expiresAt": [
- 187
+ 188
],
"isCancellationScheduled": [
4
@@ -4215,10 +4229,10 @@ export default {
},
"EventLogDateRangeInput": {
"end": [
- 187
+ 188
],
"start": [
- 187
+ 188
],
"__typename": [
1
@@ -4229,7 +4243,7 @@ export default {
1
],
"operand": [
- 231
+ 232
],
"values": [
1
@@ -4241,13 +4255,13 @@ export default {
"EventLogFilterOperand": {},
"EventLogFiltersInput": {
"dateRange": [
- 229
+ 230
],
"eventType": [
1
],
"fieldFilters": [
- 230
+ 231
],
"objectMetadataId": [
1
@@ -4278,13 +4292,13 @@ export default {
1
],
"filters": [
- 232
+ 233
],
"first": [
8
],
"table": [
- 237
+ 238
],
"__typename": [
1
@@ -4292,10 +4306,10 @@ export default {
},
"EventLogQueryResult": {
"pageInfo": [
- 233
+ 234
],
"records": [
- 236
+ 237
],
"totalCount": [
8
@@ -4315,13 +4329,13 @@ export default {
1
],
"properties": [
- 289
+ 290
],
"recordId": [
1
],
"timestamp": [
- 187
+ 188
],
"userId": [
1
@@ -4336,13 +4350,13 @@ export default {
1
],
"metadataEvents": [
- 332
+ 333
],
"objectRecordEventsWithQueryIds": [
- 362
+ 363
],
"queueJobEvents": [
- 292
+ 293
],
"__typename": [
1
@@ -4350,10 +4364,10 @@ export default {
},
"ExecuteOneLogicFunctionInput": {
"id": [
- 493
+ 494
],
"payload": [
- 289
+ 290
],
"__typename": [
1
@@ -4361,7 +4375,7 @@ export default {
},
"FeatureFlag": {
"key": [
- 241
+ 242
],
"value": [
4
@@ -4373,13 +4387,13 @@ export default {
"FeatureFlagKey": {},
"Field": {
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"defaultValue": [
- 289
+ 290
],
"description": [
1
@@ -4388,7 +4402,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -4421,40 +4435,40 @@ export default {
1
],
"morphId": [
- 493
+ 494
],
"morphRelations": [
- 413
+ 414
],
"name": [
1
],
"object": [
- 349
+ 350
],
"objectMetadataId": [
- 493
+ 494
],
"options": [
- 289
+ 290
],
"relation": [
- 413
+ 414
],
"settings": [
- 289
+ 290
],
"type": [
- 248
+ 249
],
"universalIdentifier": [
1
],
"updatedAt": [
- 187
+ 188
],
"writability": [
- 339
+ 340
],
"__typename": [
1
@@ -4462,10 +4476,10 @@ export default {
},
"FieldConfiguration": {
"configurationType": [
- 617
+ 618
],
"fieldDisplayMode": [
- 245
+ 246
],
"fieldMetadataId": [
1
@@ -4485,10 +4499,10 @@ export default {
},
"FieldConnection": {
"edges": [
- 246
+ 247
],
"pageInfo": [
- 369
+ 370
],
"__typename": [
1
@@ -4497,10 +4511,10 @@ export default {
"FieldDisplayMode": {},
"FieldEdge": {
"cursor": [
- 142
+ 143
],
"node": [
- 242
+ 243
],
"__typename": [
1
@@ -4508,28 +4522,28 @@ export default {
},
"FieldFilter": {
"and": [
- 247
+ 248
],
"id": [
- 494
+ 495
],
"isActive": [
- 108
+ 109
],
"isSystem": [
- 108
+ 109
],
"isUIEditable": [
- 108
+ 109
],
"isUIReadOnly": [
- 108
+ 109
],
"objectMetadataId": [
- 494
+ 495
],
"or": [
- 247
+ 248
],
"__typename": [
1
@@ -4544,16 +4558,16 @@ export default {
4
],
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"objectMetadataId": [
- 493
+ 494
],
"roleId": [
- 493
+ 494
],
"__typename": [
1
@@ -4567,10 +4581,10 @@ export default {
4
],
"fieldMetadataId": [
- 493
+ 494
],
"objectMetadataId": [
- 493
+ 494
],
"__typename": [
1
@@ -4578,7 +4592,7 @@ export default {
},
"FieldRichTextConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -4586,7 +4600,7 @@ export default {
},
"FieldsConfiguration": {
"configurationType": [
- 617
+ 618
],
"newFieldDefaultVisibility": [
4
@@ -4603,10 +4617,10 @@ export default {
},
"File": {
"createdAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"path": [
1
@@ -4623,7 +4637,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -4635,10 +4649,10 @@ export default {
1
],
"expiresAt": [
- 187
+ 188
],
"fileId": [
- 493
+ 494
],
"uploadUrl": [
1
@@ -4649,10 +4663,10 @@ export default {
},
"FileWithSignedUrl": {
"createdAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"path": [
1
@@ -4669,7 +4683,7 @@ export default {
},
"FilesConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -4677,7 +4691,7 @@ export default {
},
"FindAvailableSSOIDP": {
"id": [
- 493
+ 494
],
"issuer": [
1
@@ -4686,13 +4700,13 @@ export default {
1
],
"status": [
- 437
+ 438
],
"type": [
- 272
+ 273
],
"workspace": [
- 637
+ 638
],
"__typename": [
1
@@ -4706,13 +4720,13 @@ export default {
8
],
"reason": [
- 330
+ 331
],
"searchTerm": [
1
],
"unsubscribeTopicId": [
- 493
+ 494
],
"__typename": [
1
@@ -4720,7 +4734,7 @@ export default {
},
"FormFieldConfiguration": {
"configurationType": [
- 617
+ 618
],
"fieldMetadataId": [
1
@@ -4734,16 +4748,16 @@ export default {
1
],
"applicationId": [
- 493
+ 494
],
"applicationName": [
1
],
"applicationTokenPair": [
- 59
+ 60
],
"applicationVariables": [
- 289
+ 290
],
"builtComponentChecksum": [
1
@@ -4755,7 +4769,7 @@ export default {
1
],
"createdAt": [
- 187
+ 188
],
"description": [
1
@@ -4764,7 +4778,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isHeadless": [
4
@@ -4776,16 +4790,16 @@ export default {
1
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"usesSdkClient": [
4
],
"widgetAvailability": [
- 264
+ 265
],
"__typename": [
1
@@ -4793,13 +4807,13 @@ export default {
},
"FrontComponentConfiguration": {
"configurationType": [
- 617
+ 618
],
"frontComponentId": [
- 493
+ 494
],
"headerCommandMenuItemUniversalIdentifiers": [
- 493
+ 494
],
"__typename": [
1
@@ -4807,10 +4821,10 @@ export default {
},
"FrontComponentWidgetAvailability": {
"objectMetadataId": [
- 493
+ 494
],
"pageLayoutType": [
- 373
+ 374
],
"__typename": [
1
@@ -4829,7 +4843,7 @@ export default {
},
"GetApiKeyInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -4840,7 +4854,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"type": [
1
@@ -4851,7 +4865,7 @@ export default {
},
"GetAuthorizationUrlForSSOInput": {
"identityProviderId": [
- 493
+ 494
],
"workspaceInviteHash": [
1
@@ -4862,7 +4876,7 @@ export default {
},
"GrantApplicationCapabilitiesInput": {
"applicationId": [
- 493
+ 494
],
"capabilities": [
1
@@ -4892,7 +4906,7 @@ export default {
"IdentityProviderType": {},
"IframeConfiguration": {
"configurationType": [
- 617
+ 618
],
"url": [
1
@@ -4914,13 +4928,13 @@ export default {
},
"ImapSmtpCaldavPublicConnectionParameters": {
"CALDAV": [
- 276
+ 277
],
"IMAP": [
- 276
+ 277
],
"SMTP": [
- 276
+ 277
],
"name": [
1
@@ -4931,7 +4945,7 @@ export default {
},
"ImapSmtpCaldavPublicConnectionParams": {
"connectionSecurity": [
- 214
+ 215
],
"host": [
1
@@ -4948,10 +4962,10 @@ export default {
},
"Impersonate": {
"loginToken": [
- 65
+ 66
],
"workspace": [
- 641
+ 642
],
"__typename": [
1
@@ -4959,16 +4973,16 @@ export default {
},
"Index": {
"createdAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"indexFieldMetadataList": [
- 280
+ 281
],
"indexType": [
- 282
+ 283
],
"indexWhereClause": [
1
@@ -4983,7 +4997,7 @@ export default {
1
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -4991,10 +5005,10 @@ export default {
},
"IndexEdge": {
"cursor": [
- 142
+ 143
],
"node": [
- 278
+ 279
],
"__typename": [
1
@@ -5002,13 +5016,13 @@ export default {
},
"IndexField": {
"createdAt": [
- 187
+ 188
],
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"order": [
11
@@ -5017,7 +5031,7 @@ export default {
1
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -5025,16 +5039,16 @@ export default {
},
"IndexFilter": {
"and": [
- 281
+ 282
],
"id": [
- 494
+ 495
],
"isCustom": [
- 108
+ 109
],
"or": [
- 281
+ 282
],
"__typename": [
1
@@ -5043,10 +5057,10 @@ export default {
"IndexType": {},
"IngestAppMessagesInput": {
"messageChannelId": [
- 493
+ 494
],
"messages": [
- 34
+ 35
],
"__typename": [
1
@@ -5054,7 +5068,7 @@ export default {
},
"IngestAppMessagesOutput": {
"messages": [
- 285
+ 286
],
"__typename": [
1
@@ -5065,10 +5079,10 @@ export default {
1
],
"messageId": [
- 493
+ 494
],
"messageThreadId": [
- 493
+ 494
],
"__typename": [
1
@@ -5127,7 +5141,7 @@ export default {
11
],
"state": [
- 291
+ 292
],
"__typename": [
1
@@ -5135,19 +5149,19 @@ export default {
},
"LineChartConfiguration": {
"aggregateFieldMetadataId": [
- 493
+ 494
],
"aggregateOperation": [
- 19
+ 20
],
"axisNameDisplay": [
- 73
+ 74
],
"color": [
1
],
"configurationType": [
- 617
+ 618
],
"description": [
1
@@ -5159,7 +5173,7 @@ export default {
4
],
"filter": [
- 289
+ 290
],
"firstDayOfTheWeek": [
8
@@ -5171,16 +5185,16 @@ export default {
4
],
"numberFormat": [
- 123
+ 124
],
"omitNullValues": [
4
],
"primaryAxisDateGranularity": [
- 363
+ 364
],
"primaryAxisGroupByFieldMetadataId": [
- 493
+ 494
],
"primaryAxisGroupBySubFieldName": [
1
@@ -5189,7 +5203,7 @@ export default {
1
],
"primaryAxisOrderBy": [
- 270
+ 271
],
"rangeMax": [
11
@@ -5198,10 +5212,10 @@ export default {
11
],
"secondaryAxisGroupByDateGranularity": [
- 363
+ 364
],
"secondaryAxisGroupByFieldMetadataId": [
- 493
+ 494
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -5210,7 +5224,7 @@ export default {
1
],
"secondaryAxisOrderBy": [
- 270
+ 271
],
"splitMultiValueFields": [
4
@@ -5224,13 +5238,13 @@ export default {
},
"LineChartData": {
"formattedToRawLookup": [
- 289
+ 290
],
"hasTooManyGroups": [
4
],
"series": [
- 297
+ 298
],
"showDataLabels": [
4
@@ -5250,10 +5264,10 @@ export default {
},
"LineChartDataInput": {
"configuration": [
- 289
+ 290
],
"objectMetadataId": [
- 493
+ 494
],
"__typename": [
1
@@ -5272,7 +5286,7 @@ export default {
},
"LineChartSeries": {
"data": [
- 296
+ 297
],
"key": [
1
@@ -5300,7 +5314,7 @@ export default {
},
"ListAppMessageChannelsInput": {
"connectedAccountId": [
- 493
+ 494
],
"__typename": [
1
@@ -5319,34 +5333,34 @@ export default {
},
"LogicFunction": {
"applicationId": [
- 493
+ 494
],
"canRunOnDemand": [
4
],
"createdAt": [
- 187
+ 188
],
"cronTriggerSettings": [
- 289
+ 290
],
"databaseEventTriggerSettings": [
- 289
+ 290
],
"description": [
1
],
"executionMode": [
- 302
+ 303
],
"handlerName": [
1
],
"httpRouteTriggerSettings": [
- 289
+ 290
],
"id": [
- 493
+ 494
],
"name": [
1
@@ -5361,16 +5375,16 @@ export default {
11
],
"toolTriggerSettings": [
- 289
+ 290
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"workflowActionTriggerSettings": [
- 289
+ 290
],
"__typename": [
1
@@ -5379,19 +5393,19 @@ export default {
"LogicFunctionExecutionMode": {},
"LogicFunctionExecutionResult": {
"data": [
- 289
+ 290
],
"duration": [
11
],
"error": [
- 289
+ 290
],
"logs": [
1
],
"status": [
- 304
+ 305
],
"__typename": [
1
@@ -5414,7 +5428,7 @@ export default {
1
],
"universalIdentifier": [
- 493
+ 494
],
"__typename": [
1
@@ -5422,19 +5436,19 @@ export default {
},
"LogicFunctionLogsInput": {
"applicationId": [
- 493
+ 494
],
"applicationUniversalIdentifier": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"name": [
1
],
"universalIdentifier": [
- 493
+ 494
],
"__typename": [
1
@@ -5442,7 +5456,7 @@ export default {
},
"LoginToken": {
"loginToken": [
- 65
+ 66
],
"__typename": [
1
@@ -5524,13 +5538,13 @@ export default {
1
],
"manifest": [
- 289
+ 290
],
"name": [
1
],
"objects": [
- 311
+ 312
],
"pricingDescription": [
1
@@ -5539,7 +5553,7 @@ export default {
1
],
"roles": [
- 312
+ 313
],
"screenshots": [
1
@@ -5548,7 +5562,7 @@ export default {
1
],
"sourceType": [
- 55
+ 56
],
"termsUrl": [
1
@@ -5600,7 +5614,7 @@ export default {
1
],
"fieldPermissions": [
- 313
+ 314
],
"icon": [
1
@@ -5609,7 +5623,7 @@ export default {
1
],
"objectPermissions": [
- 314
+ 315
],
"permissionFlagUniversalIdentifiers": [
1
@@ -5666,7 +5680,7 @@ export default {
},
"MessageCampaignBodyConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -5674,7 +5688,7 @@ export default {
},
"MessageCampaignDetailsConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -5682,16 +5696,16 @@ export default {
},
"MessageChannel": {
"connectedAccount": [
- 140
+ 141
],
"connectedAccountId": [
- 493
+ 494
],
"contactAutoCreationPolicy": [
- 318
+ 319
],
"createdAt": [
- 187
+ 188
],
"displayName": [
1
@@ -5706,7 +5720,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isContactAutoCreationEnabled": [
4
@@ -5715,37 +5729,37 @@ export default {
4
],
"messageFolderImportPolicy": [
- 325
+ 326
],
"pendingGroupEmailsAction": [
- 319
+ 320
],
"syncStage": [
- 320
+ 321
],
"syncStageStartedAt": [
- 187
+ 188
],
"syncStatus": [
- 321
+ 322
],
"syncedAt": [
- 187
+ 188
],
"throttleFailureCount": [
11
],
"throttleRetryAfter": [
- 187
+ 188
],
"type": [
- 322
+ 323
],
"updatedAt": [
- 187
+ 188
],
"visibility": [
- 323
+ 324
],
"__typename": [
1
@@ -5759,13 +5773,13 @@ export default {
"MessageChannelVisibility": {},
"MessageFolder": {
"createdAt": [
- 187
+ 188
],
"externalId": [
1
],
"id": [
- 493
+ 494
],
"isSentFolder": [
4
@@ -5774,7 +5788,7 @@ export default {
4
],
"messageChannelId": [
- 493
+ 494
],
"name": [
1
@@ -5783,10 +5797,10 @@ export default {
1
],
"pendingSyncAction": [
- 326
+ 327
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -5797,22 +5811,22 @@ export default {
"MessageParticipantRole": {},
"MessageSuppression": {
"createdAt": [
- 187
+ 188
],
"emailAddress": [
1
],
"id": [
- 493
+ 494
],
"reason": [
- 330
+ 331
],
"source": [
- 331
+ 332
],
"unsubscribeTopicId": [
- 493
+ 494
],
"__typename": [
1
@@ -5820,7 +5834,7 @@ export default {
},
"MessageSuppressionList": {
"records": [
- 328
+ 329
],
"totalCount": [
8
@@ -5836,13 +5850,13 @@ export default {
1
],
"properties": [
- 361
+ 362
],
"recordId": [
1
],
"type": [
- 333
+ 334
],
"updatedCollectionHash": [
1
@@ -5864,16 +5878,16 @@ export default {
1
],
"objectMetadataId": [
- 493
+ 494
],
"property": [
1
],
"provenance": [
- 337
+ 338
],
"recordId": [
- 493
+ 494
],
"sourceValue": [
1
@@ -5902,13 +5916,13 @@ export default {
"MetadataTranslationProvenance": {},
"MetadataTranslationsInput": {
"fieldMetadataId": [
- 493
+ 494
],
"locale": [
1
],
"objectMetadataId": [
- 493
+ 494
],
"__typename": [
1
@@ -5917,13 +5931,13 @@ export default {
"MetadataWritability": {},
"MinimalMetadata": {
"collectionHashes": [
- 135
+ 136
],
"objectMetadataItems": [
- 341
+ 342
],
"views": [
- 342
+ 343
],
"__typename": [
1
@@ -5937,7 +5951,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -5966,16 +5980,16 @@ export default {
},
"MinimalView": {
"id": [
- 493
+ 494
],
"key": [
- 609
+ 610
],
"objectMetadataId": [
- 493
+ 494
],
"type": [
- 613
+ 614
],
"__typename": [
1
@@ -5984,16 +5998,16 @@ export default {
"ModelFamily": {},
"Mutation": {
"activateSkill": [
- 460,
+ 461,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"activateWorkspace": [
- 622,
+ 623,
{
"data": [
0,
@@ -6001,6 +6015,19 @@ export default {
]
}
],
+ "addAgentChatMessageReaction": [
+ 16,
+ {
+ "emoji": [
+ 1,
+ "String!"
+ ],
+ "messageId": [
+ 494,
+ "UUID!"
+ ]
+ }
+ ],
"addQueryToEventStream": [
4,
{
@@ -6014,10 +6041,10 @@ export default {
4,
{
"assigneeWorkspaceMemberId": [
- 493
+ 494
],
"threadId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6026,11 +6053,11 @@ export default {
4,
{
"agentId": [
- 493,
+ 494,
"UUID!"
],
"roleId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6039,17 +6066,17 @@ export default {
4,
{
"apiKeyId": [
- 493,
+ 494,
"UUID!"
],
"roleId": [
- 493,
+ 494,
"UUID!"
]
}
],
"authorizeApp": [
- 68,
+ 69,
{
"clientId": [
1,
@@ -6074,28 +6101,28 @@ export default {
}
],
"cancelMessageCampaign": [
- 119,
+ 120,
{
"input": [
- 118,
+ 119,
"CancelMessageCampaignInput!"
]
}
],
"cancelSwitchBillingInterval": [
- 106
+ 107
],
"cancelSwitchBillingPlan": [
- 106
+ 107
],
"cancelSwitchResourceCreditPrice": [
- 106
+ 107
],
"checkCustomDomainValidRecords": [
- 208
+ 209
],
"checkPublicDomainValidRecords": [
- 208,
+ 209,
{
"domain": [
1,
@@ -6104,14 +6131,14 @@ export default {
}
],
"checkoutSession": [
- 99,
+ 100,
{
"plan": [
- 90,
+ 91,
"BillingPlanKey!"
],
"recurringInterval": [
- 466,
+ 467,
"SubscriptionInterval!"
],
"requirePaymentMethod": [
@@ -6124,7 +6151,7 @@ export default {
}
],
"claimApplicationRegistrationOwnership": [
- 54,
+ 55,
{
"applicationRegistrationId": [
1,
@@ -6133,29 +6160,29 @@ export default {
}
],
"completeAppTarballUpload": [
- 54,
+ 55,
{
"fileId": [
- 493,
+ 494,
"UUID!"
]
}
],
"completeApplicationFileUploads": [
- 139,
+ 140,
{
"applicationUniversalIdentifier": [
1,
"String!"
],
"fileIds": [
- 493,
+ 494,
"[UUID!]!"
]
}
],
"completeBookCallOnboardingStep": [
- 367,
+ 368,
{
"hasBookedCall": [
4,
@@ -6168,7 +6195,7 @@ export default {
}
],
"completeFileUpload": [
- 257,
+ 258,
{
"fileId": [
1,
@@ -6177,7 +6204,7 @@ export default {
}
],
"completeNewWorkspaceLogoUpload": [
- 257,
+ 258,
{
"fileId": [
1,
@@ -6190,7 +6217,7 @@ export default {
}
],
"completeWorkspaceLogoUpload": [
- 257,
+ 258,
{
"fileId": [
1,
@@ -6199,7 +6226,7 @@ export default {
}
],
"completeWorkspaceMemberProfilePictureUpload": [
- 257,
+ 258,
{
"fileId": [
1,
@@ -6208,62 +6235,62 @@ export default {
}
],
"createApiKey": [
- 28,
+ 29,
{
"input": [
- 145,
+ 146,
"CreateApiKeyInput!"
]
}
],
"createAppMessageChannel": [
- 317,
+ 318,
{
"input": [
- 146,
+ 147,
"CreateAppMessageChannelInput!"
]
}
],
"createApplicationFileUploads": [
- 147,
+ 148,
{
"applicationUniversalIdentifier": [
1,
"String!"
],
"files": [
- 49,
+ 50,
"[ApplicationFileUploadRequestInput!]!"
]
}
],
"createApplicationRegistration": [
- 148,
+ 149,
{
"input": [
- 149,
+ 150,
"CreateApplicationRegistrationInput!"
]
}
],
"createApprovedAccessDomain": [
- 62,
+ 63,
{
"input": [
- 150,
+ 151,
"CreateApprovedAccessDomainInput!"
]
}
],
"createBillingPaymentMethodSetupIntent": [
- 88
+ 89
],
"createCalendarEvent": [
- 152,
+ 153,
{
"input": [
- 151,
+ 152,
"CreateCalendarEventInput!"
]
}
@@ -6272,16 +6299,16 @@ export default {
9
],
"createCommandMenuItem": [
- 136,
+ 137,
{
"input": [
- 153,
+ 154,
"CreateCommandMenuItemInput!"
]
}
],
"createDevelopmentApplication": [
- 206,
+ 207,
{
"name": [
1,
@@ -6294,25 +6321,25 @@ export default {
}
],
"createEmailGroupChannel": [
- 155,
+ 156,
{
"input": [
- 154,
+ 155,
"CreateEmailGroupChannelInput!"
]
}
],
"createEmailingDomain": [
- 217,
+ 218,
{
"input": [
- 156,
+ 157,
"CreateEmailingDomainInput!"
]
}
],
"createFileUpload": [
- 256,
+ 257,
{
"fieldMetadataId": [
1
@@ -6321,7 +6348,7 @@ export default {
1
],
"fileFolder": [
- 255,
+ 256,
"FileFolder!"
],
"filename": [
@@ -6335,70 +6362,70 @@ export default {
}
],
"createFrontComponent": [
- 262,
+ 263,
{
"input": [
- 158,
+ 159,
"CreateFrontComponentInput!"
]
}
],
"createManyNavigationMenuItems": [
- 346,
+ 347,
{
"inputs": [
- 163,
+ 164,
"[CreateNavigationMenuItemInput!]!"
]
}
],
"createManyViewFieldGroups": [
- 603,
+ 604,
{
"inputs": [
- 177,
+ 178,
"[CreateViewFieldGroupInput!]!"
]
}
],
"createManyViewFields": [
- 602,
+ 603,
{
"inputs": [
- 178,
+ 179,
"[CreateViewFieldInput!]!"
]
}
],
"createManyViewGroups": [
- 608,
+ 609,
{
"inputs": [
- 181,
+ 182,
"[CreateViewGroupInput!]!"
]
}
],
"createMessageSuppression": [
- 328,
+ 329,
{
"input": [
- 162,
+ 163,
"CreateMessageSuppressionInput!"
]
}
],
"createNavigationMenuItem": [
- 346,
+ 347,
{
"input": [
- 163,
+ 164,
"CreateNavigationMenuItemInput!"
]
}
],
"createNewWorkspaceLogoUpload": [
- 256,
+ 257,
{
"filename": [
1,
@@ -6415,30 +6442,30 @@ export default {
}
],
"createOIDCIdentityProvider": [
- 457,
+ 458,
{
"input": [
- 455,
+ 456,
"SetupOIDCSsoInput!"
]
}
],
"createObjectEvent": [
- 25,
+ 26,
{
"event": [
1,
"String!"
],
"objectMetadataId": [
- 493,
+ 494,
"UUID!"
],
"properties": [
- 289
+ 290
],
"recordId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6447,85 +6474,85 @@ export default {
3,
{
"input": [
- 144,
+ 145,
"CreateAgentInput!"
]
}
],
"createOneField": [
- 242,
+ 243,
{
"input": [
- 165,
+ 166,
"CreateOneFieldMetadataInput!"
]
}
],
"createOneIndex": [
- 278,
+ 279,
{
"input": [
- 166,
+ 167,
"CreateOneIndexInput!"
]
}
],
"createOneLogicFunction": [
- 301,
+ 302,
{
"input": [
- 161,
+ 162,
"CreateLogicFunctionFromSourceInput!"
]
}
],
"createOneObject": [
- 349,
+ 350,
{
"input": [
- 167,
+ 168,
"CreateOneObjectInput!"
]
}
],
"createOneRole": [
- 420,
+ 421,
{
"createRoleInput": [
- 172,
+ 173,
"CreateRoleInput!"
]
}
],
"createPageLayout": [
- 370,
+ 371,
{
"input": [
- 168,
+ 169,
"CreatePageLayoutInput!"
]
}
],
"createPageLayoutTab": [
- 371,
+ 372,
{
"input": [
- 169,
+ 170,
"CreatePageLayoutTabInput!"
]
}
],
"createPageLayoutWidget": [
- 374,
+ 375,
{
"input": [
- 170,
+ 171,
"CreatePageLayoutWidgetInput!"
]
}
],
"createPublicDomain": [
- 391,
+ 392,
{
"applicationId": [
1,
@@ -6538,36 +6565,36 @@ export default {
}
],
"createSAMLIdentityProvider": [
- 457,
+ 458,
{
"input": [
- 456,
+ 457,
"SetupSAMLSsoInput!"
]
}
],
"createSkill": [
- 460,
+ 461,
{
"input": [
- 173,
+ 174,
"CreateSkillInput!"
]
}
],
"createSubscriptionPaymentIntent": [
- 88,
+ 89,
{
"idempotencyKey": [
1,
"String!"
],
"plan": [
- 90,
+ 91,
"BillingPlanKey!"
],
"recurringInterval": [
- 466,
+ 467,
"SubscriptionInterval!"
],
"requirePaymentMethod": [
@@ -6580,109 +6607,109 @@ export default {
}
],
"createUnsubscribeTopic": [
- 496,
+ 497,
{
"input": [
- 174,
+ 175,
"CreateUnsubscribeTopicInput!"
]
}
],
"createUsageLimit": [
- 575,
+ 576,
{
"input": [
- 175,
+ 176,
"CreateUsageLimitInput!"
]
}
],
"createValidationRule": [
- 594,
+ 595,
{
"input": [
- 176,
+ 177,
"CreateValidationRuleInput!"
]
}
],
"createView": [
- 599,
+ 600,
{
"input": [
- 182,
+ 183,
"CreateViewInput!"
]
}
],
"createViewField": [
- 602,
+ 603,
{
"input": [
- 178,
+ 179,
"CreateViewFieldInput!"
]
}
],
"createViewFieldGroup": [
- 603,
+ 604,
{
"input": [
- 177,
+ 178,
"CreateViewFieldGroupInput!"
]
}
],
"createViewFilter": [
- 604,
+ 605,
{
"input": [
- 180,
+ 181,
"CreateViewFilterInput!"
]
}
],
"createViewFilterGroup": [
- 605,
+ 606,
{
"input": [
- 179,
+ 180,
"CreateViewFilterGroupInput!"
]
}
],
"createViewGroup": [
- 608,
+ 609,
{
"input": [
- 181,
+ 182,
"CreateViewGroupInput!"
]
}
],
"createViewSort": [
- 611,
+ 612,
{
"input": [
- 183,
+ 184,
"CreateViewSortInput!"
]
}
],
"createWebhook": [
- 615,
+ 616,
{
"input": [
- 184,
+ 185,
"CreateWebhookInput!"
]
}
],
"deactivateSkill": [
- 460,
+ 461,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6695,15 +6722,15 @@ export default {
"String!"
],
"scope": [
- 33
+ 34
]
}
],
"deleteAppMessageChannel": [
- 317,
+ 318,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6721,37 +6748,37 @@ export default {
4,
{
"input": [
- 188,
+ 189,
"DeleteApprovedAccessDomainInput!"
]
}
],
"deleteCommandMenuItem": [
- 136,
+ 137,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"deleteConnectedAccount": [
- 140,
+ 141,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"deleteCurrentWorkspace": [
- 622
+ 623
],
"deleteEmailGroupChannel": [
- 317,
+ 318,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6766,19 +6793,19 @@ export default {
}
],
"deleteFrontComponent": [
- 262,
+ 263,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"deleteManyNavigationMenuItems": [
- 346,
+ 347,
{
"ids": [
- 493,
+ 494,
"[UUID!]!"
]
}
@@ -6787,16 +6814,16 @@ export default {
4,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"deleteNavigationMenuItem": [
- 346,
+ 347,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6811,37 +6838,37 @@ export default {
}
],
"deleteOneField": [
- 242,
+ 243,
{
"input": [
- 189,
+ 190,
"DeleteOneFieldInput!"
]
}
],
"deleteOneIndex": [
- 278,
+ 279,
{
"input": [
- 190,
+ 191,
"DeleteOneIndexInput!"
]
}
],
"deleteOneLogicFunction": [
- 301,
+ 302,
{
"input": [
- 305,
+ 306,
"LogicFunctionIdInput!"
]
}
],
"deleteOneObject": [
- 349,
+ 350,
{
"input": [
- 191,
+ 192,
"DeleteOneObjectInput!"
]
}
@@ -6850,7 +6877,7 @@ export default {
1,
{
"roleId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6868,34 +6895,34 @@ export default {
4,
{
"messageId": [
- 493,
+ 494,
"UUID!"
]
}
],
"deleteSSOIdentityProvider": [
- 192,
+ 193,
{
"input": [
- 193,
+ 194,
"DeleteSsoInput!"
]
}
],
"deleteSkill": [
- 460,
+ 461,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"deleteTwoFactorAuthenticationMethod": [
- 194,
+ 195,
{
"twoFactorAuthenticationMethodId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6913,16 +6940,16 @@ export default {
4,
{
"usageLimitId": [
- 493,
+ 494,
"UUID!"
]
}
],
"deleteUser": [
- 588
+ 589
],
"deleteUserFromWorkspace": [
- 591,
+ 592,
{
"workspaceMemberIdToDelete": [
1,
@@ -6931,10 +6958,10 @@ export default {
}
],
"deleteValidationRule": [
- 594,
+ 595,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
@@ -6949,28 +6976,28 @@ export default {
}
],
"deleteViewField": [
- 602,
+ 603,
{
"input": [
- 196,
+ 197,
"DeleteViewFieldInput!"
]
}
],
"deleteViewFieldGroup": [
- 603,
+ 604,
{
"input": [
- 195,
+ 196,
"DeleteViewFieldGroupInput!"
]
}
],
"deleteViewFilter": [
- 604,
+ 605,
{
"input": [
- 197,
+ 198,
"DeleteViewFilterInput!"
]
}
@@ -6985,10 +7012,10 @@ export default {
}
],
"deleteViewGroup": [
- 608,
+ 609,
{
"input": [
- 198,
+ 199,
"DeleteViewGroupInput!"
]
}
@@ -6997,16 +7024,16 @@ export default {
4,
{
"input": [
- 199,
+ 200,
"DeleteViewSortInput!"
]
}
],
"deleteWebhook": [
- 615,
+ 616,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
@@ -7057,28 +7084,28 @@ export default {
}
],
"destroyViewField": [
- 602,
+ 603,
{
"input": [
- 202,
+ 203,
"DestroyViewFieldInput!"
]
}
],
"destroyViewFieldGroup": [
- 603,
+ 604,
{
"input": [
- 201,
+ 202,
"DestroyViewFieldGroupInput!"
]
}
],
"destroyViewFilter": [
- 604,
+ 605,
{
"input": [
- 203,
+ 204,
"DestroyViewFilterInput!"
]
}
@@ -7093,10 +7120,10 @@ export default {
}
],
"destroyViewGroup": [
- 608,
+ 609,
{
"input": [
- 204,
+ 205,
"DestroyViewGroupInput!"
]
}
@@ -7105,49 +7132,49 @@ export default {
4,
{
"input": [
- 205,
+ 206,
"DestroyViewSortInput!"
]
}
],
"disconnectConnectedAccount": [
- 140,
+ 141,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"duplicateDashboard": [
- 209,
+ 210,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"duplicateMessageList": [
- 210,
+ 211,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"editSSOIdentityProvider": [
- 211,
+ 212,
{
"input": [
- 212,
+ 213,
"EditSsoInput!"
]
}
],
"emailPasswordResetLink": [
- 215,
+ 216,
{
"captchaToken": [
1
@@ -7157,48 +7184,48 @@ export default {
"String!"
],
"workspaceId": [
- 493
+ 494
]
}
],
"endSubscriptionTrialPeriod": [
- 83
+ 84
],
"enqueueJob": [
- 224,
+ 225,
{
"input": [
- 222,
+ 223,
"EnqueueJobInput!"
]
}
],
"enqueueJobs": [
- 226,
+ 227,
{
"input": [
- 225,
+ 226,
"EnqueueJobsInput!"
]
}
],
"enrichWorkspaceCompany": [
- 626
+ 627
],
"executeOneLogicFunction": [
- 303,
+ 304,
{
"input": [
- 239,
+ 240,
"ExecuteOneLogicFunctionInput!"
]
}
],
"generateApiKeyToken": [
- 30,
+ 31,
{
"apiKeyId": [
- 493,
+ 494,
"UUID!"
],
"expiresAt": [
@@ -7208,34 +7235,34 @@ export default {
}
],
"generateFrontComponentApplicationTokenPair": [
- 59,
+ 60,
{
"applicationId": [
- 493,
+ 494,
"UUID!"
]
}
],
"generatePlaygroundToken": [
- 65
+ 66
],
"generateTransientToken": [
- 476
+ 477
],
"generateTwoFactorAuthenticationRecoveryCode": [
- 490,
+ 491,
{
"otp": [
1
],
"userId": [
- 493,
+ 494,
"UUID!"
]
}
],
"getAuthTokensFromLoginToken": [
- 67,
+ 68,
{
"loginToken": [
1,
@@ -7248,7 +7275,7 @@ export default {
}
],
"getAuthTokensFromOTP": [
- 67,
+ 68,
{
"captchaToken": [
1
@@ -7268,7 +7295,7 @@ export default {
}
],
"getAuthTokensFromSSOExchangeToken": [
- 67,
+ 68,
{
"ssoExchangeToken": [
1,
@@ -7277,7 +7304,7 @@ export default {
}
],
"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [
- 491,
+ 492,
{
"captchaToken": [
1
@@ -7297,16 +7324,16 @@ export default {
}
],
"getAuthorizationUrlForSSO": [
- 267,
+ 268,
{
"input": [
- 268,
+ 269,
"GetAuthorizationUrlForSSOInput!"
]
}
],
"getLoginTokenFromCredentials": [
- 308,
+ 309,
{
"captchaToken": [
1
@@ -7332,41 +7359,41 @@ export default {
}
],
"goBackToPreviousOnboardingStep": [
- 366
+ 367
],
"grantApplicationCapabilities": [
- 38,
+ 39,
{
"input": [
- 269,
+ 270,
"GrantApplicationCapabilitiesInput!"
]
}
],
"impersonate": [
- 277,
+ 278,
{
"userId": [
- 493,
+ 494,
"UUID!"
],
"workspaceId": [
- 493,
+ 494,
"UUID!"
]
}
],
"ingestAppMessages": [
- 284,
+ 285,
{
"input": [
- 283,
+ 284,
"IngestAppMessagesInput!"
]
}
],
"initiateOTPProvisioning": [
- 286,
+ 287,
{
"loginToken": [
1,
@@ -7379,10 +7406,10 @@ export default {
}
],
"initiateOTPProvisioningForAuthenticatedUser": [
- 286
+ 287
],
"installApplication": [
- 36,
+ 37,
{
"universalIdentifier": [
1,
@@ -7409,26 +7436,39 @@ export default {
4
],
"releaseEnterpriseServerBinding": [
- 227
+ 228
+ ],
+ "removeAgentChatMessageReaction": [
+ 16,
+ {
+ "emoji": [
+ 1,
+ "String!"
+ ],
+ "messageId": [
+ 494,
+ "UUID!"
+ ]
+ }
],
"removeQueryFromEventStream": [
4,
{
"input": [
- 415,
+ 416,
"RemoveQueryFromEventStreamInput!"
]
}
],
"removeRecordShare": [
- 407,
+ 408,
{
"principal": [
- 404,
+ 405,
"RecordSharePrincipalInput!"
],
"target": [
- 412,
+ 413,
"RecordTargetInput!"
]
}
@@ -7437,13 +7477,13 @@ export default {
4,
{
"agentId": [
- 493,
+ 494,
"UUID!"
]
}
],
"renewApplicationToken": [
- 59,
+ 60,
{
"applicationRefreshToken": [
1,
@@ -7452,7 +7492,7 @@ export default {
}
],
"renewToken": [
- 67,
+ 68,
{
"appToken": [
1,
@@ -7464,13 +7504,13 @@ export default {
4,
{
"input": [
- 416,
+ 417,
"ReportAppConnectionAuthFailureInput!"
]
}
],
"resendEmailVerificationToken": [
- 417,
+ 418,
{
"email": [
1,
@@ -7483,7 +7523,7 @@ export default {
}
],
"resendWorkspaceInvitation": [
- 447,
+ 448,
{
"appTokenId": [
1,
@@ -7492,16 +7532,16 @@ export default {
}
],
"resetCommandMenuItem": [
- 136,
+ 137,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"resetPageLayoutTabToDefault": [
- 371,
+ 372,
{
"id": [
1,
@@ -7510,7 +7550,7 @@ export default {
}
],
"resetPageLayoutToDefault": [
- 370,
+ 371,
{
"id": [
1,
@@ -7519,7 +7559,7 @@ export default {
}
],
"resetPageLayoutWidgetToDefault": [
- 374,
+ 375,
{
"id": [
1,
@@ -7528,22 +7568,22 @@ export default {
}
],
"resetTimelineActivityType": [
- 471,
+ 472,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"retryChatMessage": [
- 440,
+ 441,
{
"modelId": [
1
],
"threadId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -7552,10 +7592,10 @@ export default {
8
],
"revokeApiKey": [
- 28,
+ 29,
{
"input": [
- 418,
+ 419,
"RevokeApiKeyInput!"
]
}
@@ -7564,7 +7604,7 @@ export default {
4,
{
"applicationAuthorizationId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -7573,7 +7613,7 @@ export default {
4,
{
"userId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -7582,13 +7622,13 @@ export default {
4,
{
"userSessionId": [
- 493,
+ 494,
"UUID!"
]
}
],
"rotateApplicationRegistrationClientSecret": [
- 422,
+ 423,
{
"id": [
1,
@@ -7597,28 +7637,28 @@ export default {
}
],
"runAgent": [
- 433,
+ 434,
{
"input": [
- 429,
+ 430,
"RunAgentInput!"
]
}
],
"runApplicationHealthCheck": [
- 52,
+ 53,
{
"applicationId": [
- 493,
+ 494,
"UUID!"
]
}
],
"saveImapSmtpCaldavAccount": [
- 274,
+ 275,
{
"connectionParameters": [
- 213,
+ 214,
"EmailAccountConnectionParameters!"
],
"handle": [
@@ -7626,26 +7666,26 @@ export default {
"String!"
],
"id": [
- 493
+ 494
]
}
],
"sendChatMessage": [
- 440,
+ 441,
{
"browsingContext": [
- 289
+ 290
],
"fileAttachments": [
- 254,
+ 255,
"[FileAttachmentInput!]"
],
"mentionedWorkspaceMemberIds": [
- 493,
+ 494,
"[UUID!]"
],
"messageId": [
- 493,
+ 494,
"UUID!"
],
"modelId": [
@@ -7656,70 +7696,70 @@ export default {
"String!"
],
"threadId": [
- 493,
+ 494,
"UUID!"
]
}
],
"sendEmail": [
- 443,
+ 444,
{
"input": [
- 442,
+ 443,
"SendEmailInput!"
]
}
],
"sendInboxMessage": [
- 446,
+ 447,
{
"input": [
- 445,
+ 446,
"SendInboxMessageInput!"
]
}
],
"sendInvitations": [
- 447,
+ 448,
{
"emails": [
1,
"[String!]!"
],
"roleId": [
- 493
+ 494
]
}
],
"sendMessageCampaign": [
- 449,
+ 450,
{
"input": [
- 448,
+ 449,
"SendMessageCampaignInput!"
]
}
],
"sendMessageCampaignTest": [
- 444,
+ 445,
{
"input": [
- 450,
+ 451,
"SendMessageCampaignTestInput!"
]
}
],
"setAppKeyValue": [
- 32,
+ 33,
{
"input": [
- 452,
+ 453,
"SetAppKeyValueInput!"
]
}
],
"setEnterpriseKey": [
- 227,
+ 228,
{
"enterpriseKey": [
1,
@@ -7728,37 +7768,37 @@ export default {
}
],
"setRecordGeneralAccess": [
- 407,
+ 408,
{
"accessLevel": [
- 403,
+ 404,
"RecordShareAccessLevel!"
],
"target": [
- 412,
+ 413,
"RecordTargetInput!"
]
}
],
"setRecordShare": [
- 407,
+ 408,
{
"accessLevel": [
- 403,
+ 404,
"RecordShareAccessLevel!"
],
"principal": [
- 404,
+ 405,
"RecordSharePrincipalInput!"
],
"target": [
- 412,
+ 413,
"RecordTargetInput!"
]
}
],
"setResourceCreditSubscriptionPrice": [
- 106,
+ 107,
{
"priceId": [
1,
@@ -7767,7 +7807,7 @@ export default {
}
],
"signIn": [
- 72,
+ 73,
{
"captchaToken": [
1
@@ -7797,7 +7837,7 @@ export default {
}
],
"signUp": [
- 72,
+ 73,
{
"captchaToken": [
1
@@ -7819,15 +7859,15 @@ export default {
}
],
"signUpInNewWorkspace": [
- 458,
+ 459,
{
"input": [
- 459
+ 460
]
}
],
"signUpInWorkspace": [
- 458,
+ 459,
{
"captchaToken": [
1
@@ -7847,7 +7887,7 @@ export default {
1
],
"workspaceId": [
- 493
+ 494
],
"workspaceInviteHash": [
1
@@ -7858,7 +7898,7 @@ export default {
}
],
"skipSyncEmailOnboardingStep": [
- 367,
+ 368,
{
"isAutoSkipped": [
4,
@@ -7867,22 +7907,22 @@ export default {
}
],
"startChannelSync": [
- 122,
+ 123,
{
"connectedAccountId": [
- 493,
+ 494,
"UUID!"
]
}
],
"startWorkspaceSetupChat": [
- 462,
+ 463,
{
"companyContext": [
- 289
+ 290
],
"personContext": [
- 289
+ 290
]
}
],
@@ -7890,27 +7930,27 @@ export default {
4,
{
"threadId": [
- 493,
+ 494,
"UUID!"
]
}
],
"stopImpersonation": [
- 463
+ 464
],
"switchBillingPlan": [
- 106,
+ 107,
{
"plan": [
- 90
+ 91
]
}
],
"switchSubscriptionInterval": [
- 106
+ 107
],
"syncApplication": [
- 636,
+ 637,
{
"dryRun": [
4
@@ -7919,7 +7959,7 @@ export default {
4
],
"manifest": [
- 289,
+ 290,
"JSON!"
]
}
@@ -7928,7 +7968,7 @@ export default {
4
],
"trackAnalytics": [
- 25,
+ 26,
{
"event": [
1
@@ -7937,16 +7977,16 @@ export default {
1
],
"properties": [
- 289
+ 290
],
"type": [
- 26,
+ 27,
"AnalyticsType!"
]
}
],
"transferApplicationRegistrationOwnership": [
- 54,
+ 55,
{
"applicationRegistrationId": [
1,
@@ -7959,55 +7999,55 @@ export default {
}
],
"triggerAddPeopleToMessageListJob": [
- 478,
+ 479,
{
"input": [
- 477,
+ 478,
"TriggerAddPeopleToMessageListJobInput!"
]
}
],
"triggerInstallApplication": [
- 482,
+ 483,
{
"input": [
- 479,
+ 480,
"TriggerInstallApplicationInput!"
]
}
],
"triggerInstallApplicationJob": [
- 481,
+ 482,
{
"input": [
- 480,
+ 481,
"TriggerInstallApplicationJobInput!"
]
}
],
"triggerUninstallApplication": [
- 486,
+ 487,
{
"input": [
- 483,
+ 484,
"TriggerUninstallApplicationInput!"
]
}
],
"triggerUninstallApplicationJob": [
- 485,
+ 486,
{
"input": [
- 484,
+ 485,
"TriggerUninstallApplicationJobInput!"
]
}
],
"triggerUpgradeApplication": [
- 488,
+ 489,
{
"input": [
- 487,
+ 488,
"TriggerUpgradeApplicationInput!"
]
}
@@ -8029,158 +8069,158 @@ export default {
"AgentChatInboxAction!"
],
"snoozedUntil": [
- 187
+ 188
],
"threadIds": [
- 493,
+ 494,
"[UUID!]!"
]
}
],
"updateApiKey": [
- 28,
+ 29,
{
"input": [
- 499,
+ 500,
"UpdateApiKeyInput!"
]
}
],
"updateAppMessageChannel": [
- 317,
+ 318,
{
"input": [
- 500,
+ 501,
"UpdateAppMessageChannelInput!"
]
}
],
"updateApplication": [
- 36,
+ 37,
{
"id": [
- 493,
+ 494,
"UUID!"
],
"input": [
- 501,
+ 502,
"UpdateApplicationInput!"
]
}
],
"updateApplicationRegistration": [
- 54,
+ 55,
{
"input": [
- 502,
+ 503,
"UpdateApplicationRegistrationInput!"
]
}
],
"updateApplicationRegistrationVariable": [
- 58,
+ 59,
{
"input": [
- 504,
+ 505,
"UpdateApplicationRegistrationVariableInput!"
]
}
],
"updateCalendarChannel": [
- 109,
+ 110,
{
"input": [
- 506,
+ 507,
"UpdateCalendarChannelInput!"
]
}
],
"updateCommandMenuItem": [
- 136,
+ 137,
{
"input": [
- 508,
+ 509,
"UpdateCommandMenuItemInput!"
]
}
],
"updateEmailGroupChannel": [
- 317,
+ 318,
{
"input": [
- 509,
+ 510,
"UpdateEmailGroupChannelInput!"
]
}
],
"updateFrontComponent": [
- 262,
+ 263,
{
"input": [
- 511,
+ 512,
"UpdateFrontComponentInput!"
]
}
],
"updateLabPublicFeatureFlag": [
- 240,
+ 241,
{
"input": [
- 513,
+ 514,
"UpdateLabPublicFeatureFlagInput!"
]
}
],
"updateManyNavigationMenuItems": [
- 346,
+ 347,
{
"inputs": [
- 524,
+ 525,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
],
"updateManyObjects": [
- 349,
+ 350,
{
"inputs": [
- 525,
+ 526,
"[UpdateOneObjectInput!]!"
]
}
],
"updateManyViewGroups": [
- 608,
+ 609,
{
"inputs": [
- 547,
+ 548,
"[UpdateViewGroupInput!]!"
]
}
],
"updateMessageChannel": [
- 317,
+ 318,
{
"input": [
- 516,
+ 517,
"UpdateMessageChannelInput!"
]
}
],
"updateMessageFolder": [
- 324,
+ 325,
{
"input": [
- 518,
+ 519,
"UpdateMessageFolderInput!"
]
}
],
"updateMessageFolders": [
- 324,
+ 325,
{
"input": [
- 520,
+ 521,
"UpdateMessageFoldersInput!"
]
}
@@ -8203,10 +8243,10 @@ export default {
}
],
"updateNavigationMenuItem": [
- 346,
+ 347,
{
"input": [
- 524,
+ 525,
"UpdateOneNavigationMenuItemInput!"
]
}
@@ -8215,7 +8255,7 @@ export default {
3,
{
"input": [
- 498,
+ 499,
"UpdateAgentInput!"
]
}
@@ -8224,7 +8264,7 @@ export default {
4,
{
"applicationId": [
- 493
+ 494
],
"key": [
1,
@@ -8237,10 +8277,10 @@ export default {
}
],
"updateOneField": [
- 242,
+ 243,
{
"input": [
- 523,
+ 524,
"UpdateOneFieldMetadataInput!"
]
}
@@ -8249,83 +8289,83 @@ export default {
4,
{
"input": [
- 514,
+ 515,
"UpdateLogicFunctionFromSourceInput!"
]
}
],
"updateOneObject": [
- 349,
+ 350,
{
"input": [
- 525,
+ 526,
"UpdateOneObjectInput!"
]
}
],
"updateOneRole": [
- 420,
+ 421,
{
"updateRoleInput": [
- 532,
+ 533,
"UpdateRoleInput!"
]
}
],
"updatePageLayout": [
- 370,
+ 371,
{
"id": [
1,
"String!"
],
"input": [
- 526,
+ 527,
"UpdatePageLayoutInput!"
]
}
],
"updatePageLayoutTab": [
- 371,
+ 372,
{
"id": [
1,
"String!"
],
"input": [
- 527,
+ 528,
"UpdatePageLayoutTabInput!"
]
}
],
"updatePageLayoutWidget": [
- 374,
+ 375,
{
"id": [
1,
"String!"
],
"input": [
- 529,
+ 530,
"UpdatePageLayoutWidgetInput!"
]
}
],
"updatePageLayoutWithTabsAndWidgets": [
- 370,
+ 371,
{
"id": [
1,
"String!"
],
"input": [
- 531,
+ 532,
"UpdatePageLayoutWithTabsInput!"
]
}
],
"updatePasswordViaResetToken": [
- 287,
+ 288,
{
"newPassword": [
1,
@@ -8338,37 +8378,37 @@ export default {
}
],
"updateSkill": [
- 460,
+ 461,
{
"input": [
- 534,
+ 535,
"UpdateSkillInput!"
]
}
],
"updateTimelineActivityType": [
- 471,
+ 472,
{
"input": [
- 535,
+ 536,
"UpdateTimelineActivityTypeInput!"
]
}
],
"updateUnsubscribeTopic": [
- 496,
+ 497,
{
"input": [
- 536,
+ 537,
"UpdateUnsubscribeTopicInput!"
]
}
],
"updateUsageLimit": [
- 575,
+ 576,
{
"input": [
- 537,
+ 538,
"UpdateUsageLimitInput!"
]
}
@@ -8386,121 +8426,121 @@ export default {
}
],
"updateValidationRule": [
- 594,
+ 595,
{
"input": [
- 538,
+ 539,
"UpdateValidationRuleInput!"
]
}
],
"updateView": [
- 599,
+ 600,
{
"id": [
1,
"String!"
],
"input": [
- 549,
+ 550,
"UpdateViewInput!"
]
}
],
"updateViewField": [
- 602,
+ 603,
{
"input": [
- 542,
+ 543,
"UpdateViewFieldInput!"
]
}
],
"updateViewFieldGroup": [
- 603,
+ 604,
{
"input": [
- 540,
+ 541,
"UpdateViewFieldGroupInput!"
]
}
],
"updateViewFilter": [
- 604,
+ 605,
{
"input": [
- 545,
+ 546,
"UpdateViewFilterInput!"
]
}
],
"updateViewFilterGroup": [
- 605,
+ 606,
{
"id": [
1,
"String!"
],
"input": [
- 544,
+ 545,
"UpdateViewFilterGroupInput!"
]
}
],
"updateViewGroup": [
- 608,
+ 609,
{
"input": [
- 547,
+ 548,
"UpdateViewGroupInput!"
]
}
],
"updateViewSort": [
- 611,
+ 612,
{
"input": [
- 550,
+ 551,
"UpdateViewSortInput!"
]
}
],
"updateWebhook": [
- 615,
+ 616,
{
"input": [
- 552,
+ 553,
"UpdateWebhookInput!"
]
}
],
"updateWorkspace": [
- 622,
+ 623,
{
"data": [
- 555,
+ 556,
"UpdateWorkspaceInput!"
]
}
],
"updateWorkspaceAllowedIframeOrigins": [
- 622,
+ 623,
{
"data": [
- 554,
+ 555,
"UpdateWorkspaceAllowedIframeOriginsInput!"
]
}
],
"updateWorkspaceMemberRole": [
- 631,
+ 632,
{
"roleId": [
- 493,
+ 494,
"UUID!"
],
"workspaceMemberId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -8509,7 +8549,7 @@ export default {
4,
{
"input": [
- 556,
+ 557,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -8528,10 +8568,10 @@ export default {
}
],
"uploadAppTarball": [
- 54,
+ 55,
{
"file": [
- 557,
+ 558,
"Upload!"
],
"universalIdentifier": [
@@ -8540,18 +8580,18 @@ export default {
}
],
"uploadApplicationFile": [
- 253,
+ 254,
{
"applicationUniversalIdentifier": [
1,
"String!"
],
"file": [
- 557,
+ 558,
"Upload!"
],
"fileFolder": [
- 255,
+ 256,
"FileFolder!"
],
"filePath": [
@@ -8561,23 +8601,23 @@ export default {
}
],
"uploadFilesFieldFileByUniversalIdentifier": [
- 257,
+ 258,
{
"fieldMetadataUniversalIdentifier": [
1,
"String!"
],
"file": [
- 557,
+ 558,
"Upload!"
]
}
],
"uploadNewWorkspaceLogo": [
- 257,
+ 258,
{
"file": [
- 557,
+ 558,
"Upload!"
],
"workspaceId": [
@@ -8587,88 +8627,88 @@ export default {
}
],
"uploadWorkspaceLogo": [
- 257,
+ 258,
{
"file": [
- 557,
+ 558,
"Upload!"
]
}
],
"uploadWorkspaceMemberProfilePicture": [
- 257,
+ 258,
{
"file": [
- 557,
+ 558,
"Upload!"
]
}
],
"upsertFieldPermissions": [
- 249,
+ 250,
{
"upsertFieldPermissionsInput": [
- 558,
+ 559,
"UpsertFieldPermissionsInput!"
]
}
],
"upsertFieldsWidget": [
- 599,
+ 600,
{
"input": [
- 561,
+ 562,
"UpsertFieldsWidgetInput!"
]
}
],
"upsertObjectPermissions": [
- 357,
+ 358,
{
"upsertObjectPermissionsInput": [
- 562,
+ 563,
"UpsertObjectPermissionsInput!"
]
}
],
"upsertPermissionFlags": [
- 421,
+ 422,
{
"upsertPermissionFlagsInput": [
- 563,
+ 564,
"UpsertPermissionFlagsInput!"
]
}
],
"upsertRowLevelPermissionPredicates": [
- 565,
+ 566,
{
"input": [
- 564,
+ 565,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
],
"upsertViewWidget": [
- 599,
+ 600,
{
"input": [
- 566,
+ 567,
"UpsertViewWidgetInput!"
]
}
],
"validateApprovedAccessDomain": [
- 62,
+ 63,
{
"input": [
- 592,
+ 593,
"ValidateApprovedAccessDomainInput!"
]
}
],
"verifyEmailAndGetLoginToken": [
- 596,
+ 597,
{
"captchaToken": [
1
@@ -8688,7 +8728,7 @@ export default {
}
],
"verifyEmailAndGetWorkspaceAgnosticToken": [
- 72,
+ 73,
{
"captchaToken": [
1
@@ -8704,7 +8744,7 @@ export default {
}
],
"verifyEmailingDomain": [
- 217,
+ 218,
{
"id": [
1,
@@ -8713,7 +8753,7 @@ export default {
}
],
"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 597,
+ 598,
{
"otp": [
1,
@@ -8738,22 +8778,22 @@ export default {
},
"NavigationMenuItem": {
"applicationId": [
- 493
+ 494
],
"color": [
1
],
"createdAt": [
- 187
+ 188
],
"folderId": [
- 493
+ 494
],
"icon": [
1
],
"id": [
- 493
+ 494
],
"link": [
1
@@ -8762,31 +8802,31 @@ export default {
1
],
"pageLayoutId": [
- 493
+ 494
],
"position": [
11
],
"targetObjectMetadataId": [
- 493
+ 494
],
"targetRecordId": [
- 493
+ 494
],
"targetRecordIdentifier": [
- 400
+ 401
],
"type": [
- 347
+ 348
],
"updatedAt": [
- 187
+ 188
],
"userWorkspaceId": [
- 493
+ 494
],
"viewId": [
- 493
+ 494
],
"__typename": [
1
@@ -8795,7 +8835,7 @@ export default {
"NavigationMenuItemType": {},
"NotesConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -8803,13 +8843,13 @@ export default {
},
"Object": {
"applicationId": [
- 493
+ 494
],
"color": [
1
],
"createdAt": [
- 187
+ 188
],
"description": [
1
@@ -8818,42 +8858,42 @@ export default {
1
],
"fields": [
- 352,
+ 353,
{
"filter": [
- 247,
+ 248,
"FieldFilter!"
],
"paging": [
- 185,
+ 186,
"CursorPaging!"
]
}
],
"fieldsList": [
- 242
+ 243
],
"icon": [
1
],
"id": [
- 493
+ 494
],
"imageIdentifierFieldMetadataId": [
- 493
+ 494
],
"indexMetadataList": [
- 278
+ 279
],
"indexMetadatas": [
- 354,
+ 355,
{
"filter": [
- 281,
+ 282,
"IndexFilter!"
],
"paging": [
- 185,
+ 186,
"CursorPaging!"
]
}
@@ -8883,7 +8923,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 493
+ 494
],
"labelPlural": [
1
@@ -8898,19 +8938,19 @@ export default {
1
],
"openRecordIn": [
- 356
+ 357
],
"readability": [
- 334
+ 335
],
"readabilityParentFieldUniversalIdentifiers": [
- 493
+ 494
],
"searchFieldMetadataList": [
- 439
+ 440
],
"sharingReach": [
- 364
+ 365
],
"shortcut": [
1
@@ -8919,10 +8959,10 @@ export default {
1
],
"updatedAt": [
- 187
+ 188
],
"writability": [
- 339
+ 340
],
"__typename": [
1
@@ -8930,10 +8970,10 @@ export default {
},
"ObjectConnection": {
"edges": [
- 351
+ 352
],
"pageInfo": [
- 369
+ 370
],
"__typename": [
1
@@ -8941,10 +8981,10 @@ export default {
},
"ObjectEdge": {
"cursor": [
- 142
+ 143
],
"node": [
- 349
+ 350
],
"__typename": [
1
@@ -8952,10 +8992,10 @@ export default {
},
"ObjectFieldsConnection": {
"edges": [
- 246
+ 247
],
"pageInfo": [
- 369
+ 370
],
"__typename": [
1
@@ -8963,37 +9003,37 @@ export default {
},
"ObjectFilter": {
"and": [
- 353
+ 354
],
"id": [
- 494
+ 495
],
"isActive": [
- 108
+ 109
],
"isRemote": [
- 108
+ 109
],
"isSearchable": [
- 108
+ 109
],
"isSystem": [
- 108
+ 109
],
"isUICreatable": [
- 108
+ 109
],
"isUIEditable": [
- 108
+ 109
],
"isUIReadOnly": [
- 108
+ 109
],
"or": [
- 353
+ 354
],
"universalIdentifier": [
- 494
+ 495
],
"__typename": [
1
@@ -9001,10 +9041,10 @@ export default {
},
"ObjectIndexMetadatasConnection": {
"edges": [
- 279
+ 280
],
"pageInfo": [
- 369
+ 370
],
"__typename": [
1
@@ -9012,7 +9052,7 @@ export default {
},
"ObjectMetadataCommandMenuItemPayload": {
"objectMetadataItemId": [
- 493
+ 494
],
"__typename": [
1
@@ -9033,16 +9073,16 @@ export default {
4
],
"objectMetadataId": [
- 493
+ 494
],
"restrictedFields": [
- 289
+ 290
],
"rowLevelPermissionPredicateGroups": [
- 424
+ 425
],
"rowLevelPermissionPredicates": [
- 423
+ 424
],
"__typename": [
1
@@ -9062,7 +9102,7 @@ export default {
4
],
"objectMetadataId": [
- 493
+ 494
],
"__typename": [
1
@@ -9081,13 +9121,13 @@ export default {
},
"ObjectRecordEvent": {
"action": [
- 186
+ 187
],
"objectNameSingular": [
1
],
"properties": [
- 361
+ 362
],
"recordId": [
1
@@ -9104,13 +9144,13 @@ export default {
},
"ObjectRecordEventProperties": {
"after": [
- 289
+ 290
],
"before": [
- 289
+ 290
],
"diff": [
- 289
+ 290
],
"updatedFields": [
1
@@ -9121,7 +9161,7 @@ export default {
},
"ObjectRecordEventWithQueryIds": {
"objectRecordEvent": [
- 360
+ 361
],
"queryIds": [
1
@@ -9135,10 +9175,10 @@ export default {
"OnboardingStatus": {},
"OnboardingStepNavigation": {
"onboardingStatus": [
- 365
+ 366
],
"previousOnboardingStatus": [
- 365
+ 366
],
"__typename": [
1
@@ -9155,7 +9195,7 @@ export default {
"OpenRecordIn": {},
"PageInfo": {
"endCursor": [
- 142
+ 143
],
"hasNextPage": [
4
@@ -9164,7 +9204,7 @@ export default {
4
],
"startCursor": [
- 142
+ 143
],
"__typename": [
1
@@ -9172,19 +9212,19 @@ export default {
},
"PageLayout": {
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"defaultTabToFocusOnMobileAndSidePanelId": [
- 493
+ 494
],
"deletedAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"isFirstTabPinned": [
4
@@ -9196,19 +9236,19 @@ export default {
1
],
"objectMetadataId": [
- 493
+ 494
],
"tabs": [
- 371
+ 372
],
"type": [
- 373
+ 374
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -9216,19 +9256,19 @@ export default {
},
"PageLayoutTab": {
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"icon": [
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -9240,10 +9280,10 @@ export default {
4
],
"layoutMode": [
- 372
+ 373
],
"pageLayoutId": [
- 493
+ 494
],
"position": [
11
@@ -9252,13 +9292,13 @@ export default {
1
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"widgets": [
- 374
+ 375
],
"__typename": [
1
@@ -9268,28 +9308,28 @@ export default {
"PageLayoutType": {},
"PageLayoutWidget": {
"applicationId": [
- 493
+ 494
],
"conditionalAvailabilityExpression": [
1
],
"conditionalDisplay": [
- 289
+ 290
],
"configuration": [
- 616
+ 617
],
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"gridPosition": [
- 271
+ 272
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -9301,25 +9341,25 @@ export default {
4
],
"objectMetadataId": [
- 493
+ 494
],
"pageLayoutTabId": [
- 493
+ 494
],
"position": [
- 377
+ 378
],
"title": [
1
],
"type": [
- 618
+ 619
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -9327,7 +9367,7 @@ export default {
},
"PageLayoutWidgetCanvasPosition": {
"layoutMode": [
- 372
+ 373
],
"__typename": [
1
@@ -9341,7 +9381,7 @@ export default {
8
],
"layoutMode": [
- 372
+ 373
],
"row": [
8
@@ -9355,13 +9395,13 @@ export default {
},
"PageLayoutWidgetPosition": {
"on_PageLayoutWidgetCanvasPosition": [
- 375
+ 376
],
"on_PageLayoutWidgetGridPosition": [
- 376
+ 377
],
"on_PageLayoutWidgetVerticalListPosition": [
- 379
+ 380
],
"__typename": [
1
@@ -9370,13 +9410,13 @@ export default {
"PageLayoutWidgetVerticalListHeightBehavior": {},
"PageLayoutWidgetVerticalListPosition": {
"heightBehavior": [
- 378
+ 379
],
"index": [
8
],
"layoutMode": [
- 372
+ 373
],
"__typename": [
1
@@ -9392,10 +9432,10 @@ export default {
},
"PermissionFlag": {
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"description": [
1
@@ -9404,7 +9444,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"key": [
1
@@ -9416,10 +9456,10 @@ export default {
1
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -9428,19 +9468,19 @@ export default {
"PermissionFlagType": {},
"PieChartConfiguration": {
"aggregateFieldMetadataId": [
- 493
+ 494
],
"aggregateOperation": [
- 19
+ 20
],
"color": [
1
],
"configurationType": [
- 617
+ 618
],
"dateGranularity": [
- 363
+ 364
],
"description": [
1
@@ -9452,13 +9492,13 @@ export default {
4
],
"filter": [
- 289
+ 290
],
"firstDayOfTheWeek": [
8
],
"groupByFieldMetadataId": [
- 493
+ 494
],
"groupBySubFieldName": [
1
@@ -9470,10 +9510,10 @@ export default {
1
],
"numberFormat": [
- 123
+ 124
],
"orderBy": [
- 270
+ 271
],
"showCenterMetric": [
4
@@ -9490,10 +9530,10 @@ export default {
},
"PieChartData": {
"data": [
- 386
+ 387
],
"formattedToRawLookup": [
- 289
+ 290
],
"hasTooManyGroups": [
4
@@ -9513,10 +9553,10 @@ export default {
},
"PieChartDataInput": {
"configuration": [
- 289
+ 290
],
"objectMetadataId": [
- 493
+ 494
],
"__typename": [
1
@@ -9541,7 +9581,7 @@ export default {
1
],
"location": [
- 300
+ 301
],
"postcode": [
1
@@ -9569,7 +9609,7 @@ export default {
},
"PublicApplicationRegistration": {
"id": [
- 493
+ 494
],
"logoUrl": [
1
@@ -9589,7 +9629,7 @@ export default {
},
"PublicConnectionParametersOutput": {
"connectionSecurity": [
- 214
+ 215
],
"host": [
1
@@ -9606,16 +9646,16 @@ export default {
},
"PublicDomain": {
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"domain": [
1
],
"id": [
- 493
+ 494
],
"isValidated": [
4
@@ -9626,10 +9666,10 @@ export default {
},
"PublicFeatureFlag": {
"key": [
- 241
+ 242
],
"metadata": [
- 393
+ 394
],
"__typename": [
1
@@ -9654,13 +9694,13 @@ export default {
},
"PublicImapSmtpCaldavConnectionParameters": {
"CALDAV": [
- 390
+ 391
],
"IMAP": [
- 390
+ 391
],
"SMTP": [
- 390
+ 391
],
"__typename": [
1
@@ -9668,22 +9708,22 @@ export default {
},
"PublicWorkspaceData": {
"authBypassProviders": [
- 63
+ 64
],
"authProviders": [
- 64
+ 65
],
"displayName": [
1
],
"id": [
- 493
+ 494
],
"logo": [
1
],
"workspaceUrls": [
- 640
+ 641
],
"__typename": [
1
@@ -9694,7 +9734,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"logo": [
1
@@ -9708,10 +9748,10 @@ export default {
7
],
"agentRuns": [
- 16,
+ 17,
{
"agentId": [
- 493,
+ 494,
"UUID!"
],
"limit": [
@@ -9721,22 +9761,22 @@ export default {
}
],
"aiChatUsage": [
- 20
+ 21
],
"apiKey": [
- 28,
+ 29,
{
"input": [
- 266,
+ 267,
"GetApiKeyInput!"
]
}
],
"apiKeys": [
- 28
+ 29
],
"appConnection": [
- 31,
+ 32,
{
"id": [
10,
@@ -9745,47 +9785,47 @@ export default {
}
],
"appConnections": [
- 31,
+ 32,
{
"filter": [
- 298
+ 299
]
}
],
"appKeyValue": [
- 32,
+ 33,
{
"key": [
1,
"String!"
],
"scope": [
- 33
+ 34
]
}
],
"appMessageChannels": [
- 317,
+ 318,
{
"filter": [
- 299
+ 300
]
}
],
"applicationConnectedAccounts": [
- 39,
+ 40,
{
"applicationId": [
- 493,
+ 494,
"UUID!"
]
}
],
"applicationConnectionProviders": [
- 40,
+ 41,
{
"applicationId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -9809,25 +9849,25 @@ export default {
}
],
"applicationSdkClientChecksums": [
- 438,
+ 439,
{
"applicationId": [
- 493,
+ 494,
"UUID!"
]
}
],
"barChartData": [
- 75,
+ 76,
{
"input": [
- 76,
+ 77,
"BarChartDataInput!"
]
}
],
"billingPortalSession": [
- 99,
+ 100,
{
"forPaymentMethodUpdate": [
4
@@ -9838,10 +9878,10 @@ export default {
}
],
"callRecordingIdForCalendarEvent": [
- 493,
+ 494,
{
"calendarEventId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -9850,16 +9890,16 @@ export default {
14,
{
"threadId": [
- 493,
+ 494,
"UUID!"
]
}
],
"chatStreamCatchupChunks": [
- 125,
+ 126,
{
"threadId": [
- 493,
+ 494,
"UUID!"
]
}
@@ -9868,13 +9908,13 @@ export default {
9,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"checkUserExists": [
- 128,
+ 129,
{
"captchaToken": [
1
@@ -9886,7 +9926,7 @@ export default {
}
],
"checkWorkspaceInviteHashIsValid": [
- 630,
+ 631,
{
"inviteHash": [
1,
@@ -9895,7 +9935,7 @@ export default {
}
],
"checkWorkspaceSubdomainAvailability": [
- 464,
+ 465,
{
"subdomain": [
1,
@@ -9904,28 +9944,28 @@ export default {
}
],
"commandMenuItem": [
- 136,
+ 137,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"commandMenuItems": [
- 136
+ 137
],
"currentUser": [
- 588
+ 589
],
"currentUserApplicationAuthorizations": [
- 37
+ 38
],
"currentUserSessions": [
- 590
+ 591
],
"currentWorkspace": [
- 622
+ 623
],
"enterpriseCheckoutSession": [
1,
@@ -9944,50 +9984,50 @@ export default {
}
],
"enterpriseSubscriptionStatus": [
- 228
+ 229
],
"eventLogs": [
- 235,
+ 236,
{
"input": [
- 234,
+ 235,
"EventLogQueryInput!"
]
}
],
"exportApplication": [
- 42,
+ 43,
{
"universalIdentifier": [
- 493,
+ 494,
"UUID!"
]
}
],
"field": [
- 242,
+ 243,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"fields": [
- 244,
+ 245,
{
"filter": [
- 247,
+ 248,
"FieldFilter!"
],
"paging": [
- 185,
+ 186,
"CursorPaging!"
]
}
],
"findApplicationRegistrationByClientId": [
- 389,
+ 390,
{
"clientId": [
1,
@@ -9996,7 +10036,7 @@ export default {
}
],
"findApplicationRegistrationByUniversalIdentifier": [
- 54,
+ 55,
{
"universalIdentifier": [
1,
@@ -10005,7 +10045,7 @@ export default {
}
],
"findApplicationRegistrationStats": [
- 56,
+ 57,
{
"id": [
1,
@@ -10014,7 +10054,7 @@ export default {
}
],
"findApplicationRegistrationVariables": [
- 58,
+ 59,
{
"applicationRegistrationId": [
1,
@@ -10023,7 +10063,7 @@ export default {
}
],
"findClaimableApplicationRegistration": [
- 129,
+ 130,
{
"sourcePackage": [
1
@@ -10034,7 +10074,7 @@ export default {
}
],
"findInstallApplicationJobStatus": [
- 292,
+ 293,
{
"jobId": [
1
@@ -10049,16 +10089,16 @@ export default {
3
],
"findManyApplicationRegistrations": [
- 54
+ 55
],
"findManyApplications": [
- 36
+ 37
],
"findManyLogicFunctions": [
- 301
+ 302
],
"findManyMarketplaceApps": [
- 309,
+ 310,
{
"universalIdentifiers": [
1,
@@ -10067,10 +10107,10 @@ export default {
}
],
"findManyPublicDomains": [
- 391
+ 392
],
"findMarketplaceAppDetail": [
- 310,
+ 311,
{
"universalIdentifier": [
1,
@@ -10088,18 +10128,18 @@ export default {
}
],
"findOneApplication": [
- 36,
+ 37,
{
"id": [
- 493
+ 494
],
"universalIdentifier": [
- 493
+ 494
]
}
],
"findOneApplicationRegistration": [
- 54,
+ 55,
{
"id": [
1,
@@ -10108,16 +10148,16 @@ export default {
}
],
"findOneLogicFunction": [
- 301,
+ 302,
{
"input": [
- 305,
+ 306,
"LogicFunctionIdInput!"
]
}
],
"findUninstallApplicationJobStatus": [
- 292,
+ 293,
{
"jobId": [
1
@@ -10129,7 +10169,7 @@ export default {
}
],
"findUpgradeApplicationJobStatus": [
- 292,
+ 293,
{
"jobId": [
1
@@ -10141,10 +10181,10 @@ export default {
}
],
"findWorkspaceAiStats": [
- 624
+ 625
],
"findWorkspaceFromInviteHash": [
- 622,
+ 623,
{
"inviteHash": [
1,
@@ -10153,22 +10193,22 @@ export default {
}
],
"findWorkspaceInvitations": [
- 629
+ 630
],
"frontComponent": [
- 262,
+ 263,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"frontComponents": [
- 262
+ 263
],
"getAddressDetails": [
- 387,
+ 388,
{
"placeId": [
1,
@@ -10181,16 +10221,16 @@ export default {
}
],
"getAiSystemPromptPreview": [
- 22
+ 23
],
"getApiKeyRoles": [
- 420
+ 421
],
"getApprovedAccessDomains": [
- 62
+ 63
],
"getAutoCompleteAddress": [
- 69,
+ 70,
{
"address": [
1,
@@ -10209,31 +10249,31 @@ export default {
}
],
"getAvailablePackages": [
- 289,
+ 290,
{
"input": [
- 305,
+ 306,
"LogicFunctionIdInput!"
]
}
],
"getConnectedImapSmtpCaldavAccount": [
- 141,
+ 142,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"getEmailingDomains": [
- 217
+ 218
],
"getInviteSuggestions": [
- 288
+ 289
],
"getJobs": [
- 292,
+ 293,
{
"jobIds": [
1,
@@ -10245,13 +10285,13 @@ export default {
1,
{
"input": [
- 305,
+ 306,
"LogicFunctionIdInput!"
]
}
],
"getPageLayout": [
- 370,
+ 371,
{
"id": [
1,
@@ -10260,7 +10300,7 @@ export default {
}
],
"getPageLayoutTab": [
- 371,
+ 372,
{
"id": [
1,
@@ -10269,7 +10309,7 @@ export default {
}
],
"getPageLayoutTabs": [
- 371,
+ 372,
{
"pageLayoutId": [
1,
@@ -10278,7 +10318,7 @@ export default {
}
],
"getPageLayoutWidget": [
- 374,
+ 375,
{
"id": [
1,
@@ -10287,7 +10327,7 @@ export default {
}
],
"getPageLayoutWidgets": [
- 374,
+ 375,
{
"pageLayoutTabId": [
1,
@@ -10296,21 +10336,21 @@ export default {
}
],
"getPageLayouts": [
- 370,
+ 371,
{
"objectMetadataId": [
1
],
"pageLayoutType": [
- 373
+ 374
]
}
],
"getPermissionFlags": [
- 381
+ 382
],
"getPublicWorkspaceDataByDomain": [
- 395,
+ 396,
{
"origin": [
1
@@ -10318,37 +10358,37 @@ export default {
}
],
"getPublicWorkspaceDataById": [
- 396,
+ 397,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"getResourceCreditUsage": [
- 98
+ 99
],
"getRole": [
- 420,
+ 421,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"getRoles": [
- 420
+ 421
],
"getSSOIdentityProviders": [
- 259
+ 260
],
"getToolIndex": [
- 475
+ 476
],
"getToolInputSchema": [
- 289,
+ 290,
{
"toolName": [
1,
@@ -10357,15 +10397,15 @@ export default {
}
],
"getUsageAnalytics": [
- 572,
+ 573,
{
"input": [
- 573
+ 574
]
}
],
"getView": [
- 599,
+ 600,
{
"id": [
1,
@@ -10374,7 +10414,7 @@ export default {
}
],
"getViewField": [
- 602,
+ 603,
{
"id": [
1,
@@ -10383,7 +10423,7 @@ export default {
}
],
"getViewFieldGroup": [
- 603,
+ 604,
{
"id": [
1,
@@ -10392,7 +10432,7 @@ export default {
}
],
"getViewFieldGroups": [
- 603,
+ 604,
{
"viewId": [
1,
@@ -10401,7 +10441,7 @@ export default {
}
],
"getViewFields": [
- 602,
+ 603,
{
"viewId": [
1,
@@ -10410,7 +10450,7 @@ export default {
}
],
"getViewFilter": [
- 604,
+ 605,
{
"id": [
1,
@@ -10419,7 +10459,7 @@ export default {
}
],
"getViewFilterGroup": [
- 605,
+ 606,
{
"id": [
1,
@@ -10428,7 +10468,7 @@ export default {
}
],
"getViewFilterGroups": [
- 605,
+ 606,
{
"viewId": [
1
@@ -10436,7 +10476,7 @@ export default {
}
],
"getViewFilters": [
- 604,
+ 605,
{
"viewId": [
1
@@ -10444,7 +10484,7 @@ export default {
}
],
"getViewGroup": [
- 608,
+ 609,
{
"id": [
1,
@@ -10453,7 +10493,7 @@ export default {
}
],
"getViewGroups": [
- 608,
+ 609,
{
"viewId": [
1
@@ -10461,7 +10501,7 @@ export default {
}
],
"getViewSort": [
- 611,
+ 612,
{
"id": [
1,
@@ -10470,7 +10510,7 @@ export default {
}
],
"getViewSorts": [
- 611,
+ 612,
{
"viewId": [
1
@@ -10478,19 +10518,19 @@ export default {
}
],
"getViews": [
- 599,
+ 600,
{
"objectMetadataId": [
1
],
"viewTypes": [
- 613,
+ 614,
"[ViewType!]"
]
}
],
"getWorkspaceCreationDefaults": [
- 627
+ 628
],
"githubClaimAuthorizationUrl": [
1,
@@ -10511,134 +10551,134 @@ export default {
}
],
"lineChartData": [
- 294,
+ 295,
{
"input": [
- 295,
+ 296,
"LineChartDataInput!"
]
}
],
"listPlans": [
- 89
+ 90
],
"messageSuppressions": [
- 329,
+ 330,
{
"input": [
- 260,
+ 261,
"FindMessageSuppressionsInput!"
]
}
],
"metadataTranslations": [
- 335,
+ 336,
{
"input": [
- 338,
+ 339,
"MetadataTranslationsInput!"
]
}
],
"minimalMetadata": [
- 340
+ 341
],
"mostlyEmptyFieldMetadataIds": [
- 493,
+ 494,
{
"objectMetadataId": [
- 493,
+ 494,
"UUID!"
]
}
],
"myCalendarChannels": [
- 109,
+ 110,
{
"connectedAccountId": [
- 493
+ 494
]
}
],
"myConnectedAccounts": [
- 140
+ 141
],
"myMessageChannels": [
- 317,
+ 318,
{
"connectedAccountId": [
- 493
+ 494
]
}
],
"myMessageFolders": [
- 324,
+ 325,
{
"messageChannelId": [
- 493
+ 494
]
}
],
"myUserApplicationVariables": [
- 632
+ 633
],
"navigationMenuItem": [
- 346,
+ 347,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"navigationMenuItems": [
- 346
+ 347
],
"object": [
- 349,
+ 350,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"objectRecordCounts": [
- 359
+ 360
],
"objects": [
- 350,
+ 351,
{
"filter": [
- 353,
+ 354,
"ObjectFilter!"
],
"paging": [
- 185,
+ 186,
"CursorPaging!"
]
}
],
"pieChartData": [
- 384,
+ 385,
{
"input": [
- 385,
+ 386,
"PieChartDataInput!"
]
}
],
"previewMessageCampaignAudience": [
- 117,
+ 118,
{
"input": [
- 388,
+ 389,
"PreviewMessageCampaignAudienceInput!"
]
}
],
"publicMarketplaceAppDetail": [
- 310,
+ 311,
{
"universalIdentifier": [
1,
@@ -10647,7 +10687,7 @@ export default {
}
],
"publicMarketplaceApps": [
- 309,
+ 310,
{
"isVetted": [
4,
@@ -10656,70 +10696,70 @@ export default {
}
],
"recordPermissions": [
- 402,
+ 403,
{
"targets": [
- 412,
+ 413,
"[RecordTargetInput!]!"
]
}
],
"recordSharing": [
- 407,
+ 408,
{
"target": [
- 412,
+ 413,
"RecordTargetInput!"
]
}
],
"skill": [
- 460,
+ 461,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"skills": [
- 460
+ 461
],
"timelineActivityTypes": [
- 471
+ 472
],
"twoFactorAuthenticationRecoveryStatus": [
- 492,
+ 493,
{
"userId": [
- 493,
+ 494,
"UUID!"
]
}
],
"unsubscribeTopics": [
- 496
+ 497
],
"usageLimits": [
- 575
+ 576
],
"usageQuotaDefinitions": [
- 579
+ 580
],
"usageQuotaScopeConsumption": [
- 581,
+ 582,
{
"input": [
- 582,
+ 583,
"UsageQuotaScopeInput!"
]
}
],
"usageQuotasWithConsumption": [
- 583
+ 584
],
"validatePasswordResetToken": [
- 593,
+ 594,
{
"passwordResetToken": [
1,
@@ -10728,25 +10768,25 @@ export default {
}
],
"validationRules": [
- 594,
+ 595,
{
"objectMetadataId": [
- 493,
+ 494,
"UUID!"
]
}
],
"webhook": [
- 615,
+ 616,
{
"id": [
- 493,
+ 494,
"UUID!"
]
}
],
"webhooks": [
- 615
+ 616
],
"__typename": [
1
@@ -10754,7 +10794,7 @@ export default {
},
"RatioAggregateConfig": {
"fieldMetadataId": [
- 493
+ 494
],
"optionValue": [
1
@@ -10774,7 +10814,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"progress": [
8
@@ -10785,7 +10825,7 @@ export default {
},
"RecordIdentifier": {
"id": [
- 493
+ 494
],
"imageIdentifier": [
1
@@ -10816,13 +10856,13 @@ export default {
},
"RecordPermissionsResult": {
"objectMetadataId": [
- 493
+ 494
],
"permissions": [
- 401
+ 402
],
"recordId": [
- 493
+ 494
],
"__typename": [
1
@@ -10831,10 +10871,10 @@ export default {
"RecordShareAccessLevel": {},
"RecordSharePrincipalInput": {
"roleId": [
- 493
+ 494
],
"workspaceMemberId": [
- 493
+ 494
],
"__typename": [
1
@@ -10847,25 +10887,25 @@ export default {
4
],
"defaultGeneralAccessLevel": [
- 403
+ 404
],
"generalAccessLevel": [
- 403
+ 404
],
"hasManagedGeneralAccess": [
4
],
"permissions": [
- 401
+ 402
],
"roles": [
- 410
+ 411
],
"shares": [
- 408
+ 409
],
"sharingMode": [
- 409
+ 410
],
"__typename": [
1
@@ -10873,22 +10913,22 @@ export default {
},
"RecordSharingGrantDTO": {
"accessLevel": [
- 403
+ 404
],
"id": [
10
],
"principalId": [
- 493
+ 494
],
"principalRoleId": [
- 493
+ 494
],
"principalType": [
- 405
+ 406
],
"rowCause": [
- 406
+ 407
],
"__typename": [
1
@@ -10903,7 +10943,7 @@ export default {
4
],
"id": [
- 493
+ 494
],
"label": [
1
@@ -10914,7 +10954,7 @@ export default {
},
"RecordTableConfiguration": {
"configurationType": [
- 617
+ 618
],
"isUIEditable": [
4
@@ -10931,10 +10971,10 @@ export default {
},
"RecordTargetInput": {
"objectMetadataId": [
- 493
+ 494
],
"recordId": [
- 493
+ 494
],
"__typename": [
1
@@ -10942,19 +10982,19 @@ export default {
},
"Relation": {
"sourceFieldMetadata": [
- 242
+ 243
],
"sourceObjectMetadata": [
- 349
+ 350
],
"targetFieldMetadata": [
- 242
+ 243
],
"targetObjectMetadata": [
- 349
+ 350
],
"type": [
- 414
+ 415
],
"__typename": [
1
@@ -10993,7 +11033,7 @@ export default {
},
"RevokeApiKeyInput": {
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -11015,10 +11055,10 @@ export default {
3
],
"apiKeys": [
- 29
+ 30
],
"applicationId": [
- 493
+ 494
],
"canAccessAllTools": [
4
@@ -11051,13 +11091,13 @@ export default {
1
],
"fieldPermissions": [
- 249
+ 250
],
"icon": [
1
],
"id": [
- 493
+ 494
],
"isEditable": [
4
@@ -11066,22 +11106,22 @@ export default {
1
],
"objectPermissions": [
- 357
+ 358
],
"permissionFlags": [
- 421
+ 422
],
"rowLevelPermissionPredicateGroups": [
- 424
+ 425
],
"rowLevelPermissionPredicates": [
- 423
+ 424
],
"universalIdentifier": [
- 493
+ 494
],
"workspaceMembers": [
- 631
+ 632
],
"__typename": [
1
@@ -11092,10 +11132,10 @@ export default {
1
],
"id": [
- 493
+ 494
],
"roleId": [
- 493
+ 494
],
"__typename": [
1
@@ -11120,7 +11160,7 @@ export default {
1
],
"operand": [
- 428
+ 429
],
"positionInRowLevelPermissionPredicateGroup": [
11
@@ -11135,7 +11175,7 @@ export default {
1
],
"value": [
- 289
+ 290
],
"workspaceMemberFieldMetadataId": [
1
@@ -11152,7 +11192,7 @@ export default {
1
],
"logicalOperator": [
- 426
+ 427
],
"objectMetadataId": [
1
@@ -11172,16 +11212,16 @@ export default {
},
"RowLevelPermissionPredicateGroupInput": {
"id": [
- 493
+ 494
],
"logicalOperator": [
- 426
+ 427
],
"objectMetadataId": [
- 493
+ 494
],
"parentRowLevelPermissionPredicateGroupId": [
- 493
+ 494
],
"positionInRowLevelPermissionPredicateGroup": [
11
@@ -11193,25 +11233,25 @@ export default {
"RowLevelPermissionPredicateGroupLogicalOperator": {},
"RowLevelPermissionPredicateInput": {
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"operand": [
- 428
+ 429
],
"positionInRowLevelPermissionPredicateGroup": [
11
],
"rowLevelPermissionPredicateGroupId": [
- 493
+ 494
],
"subFieldName": [
1
],
"value": [
- 289
+ 290
],
"workspaceMemberFieldMetadataId": [
1
@@ -11232,22 +11272,22 @@ export default {
1
],
"input": [
- 431
+ 432
],
"messages": [
- 431
+ 432
],
"prompt": [
1
],
"responseFormat": [
- 289
+ 290
],
"runAsWorkspaceMemberId": [
- 493
+ 494
],
"thread": [
- 434
+ 435
],
"__typename": [
1
@@ -11255,7 +11295,7 @@ export default {
},
"RunAgentMessageAttachmentInput": {
"fileId": [
- 493
+ 494
],
"filename": [
1
@@ -11266,13 +11306,13 @@ export default {
},
"RunAgentMessageInput": {
"attachments": [
- 430
+ 431
],
"content": [
1
],
"role": [
- 432
+ 433
],
"__typename": [
1
@@ -11284,7 +11324,7 @@ export default {
1
],
"result": [
- 289
+ 290
],
"status": [
1
@@ -11293,7 +11333,7 @@ export default {
4
],
"threadId": [
- 493
+ 494
],
"__typename": [
1
@@ -11312,7 +11352,7 @@ export default {
},
"SSOConnection": {
"id": [
- 493
+ 494
],
"issuer": [
1
@@ -11321,10 +11361,10 @@ export default {
1
],
"status": [
- 437
+ 438
],
"type": [
- 272
+ 273
],
"__typename": [
1
@@ -11332,7 +11372,7 @@ export default {
},
"SSOIdentityProvider": {
"id": [
- 493
+ 494
],
"issuer": [
1
@@ -11341,10 +11381,10 @@ export default {
1
],
"status": [
- 437
+ 438
],
"type": [
- 272
+ 273
],
"__typename": [
1
@@ -11364,22 +11404,22 @@ export default {
},
"SearchField": {
"createdAt": [
- 187
+ 188
],
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"position": [
11
],
"tsVectorFieldMetadataId": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -11387,7 +11427,7 @@ export default {
},
"SendChatMessageResult": {
"mentionedParticipantWorkspaceMemberIds": [
- 493
+ 494
],
"messageId": [
1
@@ -11430,7 +11470,7 @@ export default {
1
],
"files": [
- 441
+ 442
],
"fromHandle": [
1
@@ -11484,10 +11524,10 @@ export default {
1
],
"toolCall": [
- 289
+ 290
],
"workspaceMemberIds": [
- 493
+ 494
],
"__typename": [
1
@@ -11495,7 +11535,7 @@ export default {
},
"SendInboxMessageResult": {
"threadId": [
- 493
+ 494
],
"__typename": [
1
@@ -11506,7 +11546,7 @@ export default {
1
],
"result": [
- 629
+ 630
],
"success": [
4
@@ -11520,7 +11560,7 @@ export default {
1
],
"scheduledAt": [
- 187
+ 188
],
"__typename": [
1
@@ -11528,7 +11568,7 @@ export default {
},
"SendMessageCampaignOutputDTO": {
"audience": [
- 117
+ 118
],
"campaignId": [
1
@@ -11582,10 +11622,10 @@ export default {
1
],
"scope": [
- 33
+ 34
],
"value": [
- 289
+ 290
],
"__typename": [
1
@@ -11593,34 +11633,34 @@ export default {
},
"SettingsMenuItem": {
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"frontComponentId": [
- 493
+ 494
],
"icon": [
1
],
"id": [
- 493
+ 494
],
"position": [
11
],
"scope": [
- 454
+ 455
],
"title": [
1
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -11652,7 +11692,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"issuer": [
1
@@ -11669,7 +11709,7 @@ export default {
},
"SetupSso": {
"id": [
- 493
+ 494
],
"issuer": [
1
@@ -11678,10 +11718,10 @@ export default {
1
],
"status": [
- 437
+ 438
],
"type": [
- 272
+ 273
],
"__typename": [
1
@@ -11689,10 +11729,10 @@ export default {
},
"SignUp": {
"loginToken": [
- 65
+ 66
],
"workspace": [
- 641
+ 642
],
"__typename": [
1
@@ -11714,13 +11754,13 @@ export default {
},
"Skill": {
"applicationId": [
- 493
+ 494
],
"content": [
1
],
"createdAt": [
- 187
+ 188
],
"description": [
1
@@ -11729,7 +11769,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -11747,7 +11787,7 @@ export default {
1
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -11755,10 +11795,10 @@ export default {
},
"StandaloneRichTextConfiguration": {
"body": [
- 419
+ 420
],
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -11766,7 +11806,7 @@ export default {
},
"StartWorkspaceSetupChatResult": {
"outcome": [
- 639
+ 640
],
"thread": [
9
@@ -11802,32 +11842,32 @@ export default {
},
"Subscription": {
"eventLogsLive": [
- 236,
+ 237,
{
"fieldFilters": [
- 230,
+ 231,
"[EventLogFieldFilterInput!]"
],
"table": [
- 237,
+ 238,
"EventLogTable!"
]
}
],
"exportRecords": [
- 399,
+ 400,
{
"input": [
- 171,
+ 172,
"CreateRecordExportInput!"
]
}
],
"logicFunctionLogs": [
- 306,
+ 307,
{
"input": [
- 307,
+ 308,
"LogicFunctionLogsInput!"
]
}
@@ -11836,13 +11876,13 @@ export default {
5,
{
"threadId": [
- 493,
+ 494,
"UUID!"
]
}
],
"onEventSubscription": [
- 238,
+ 239,
{
"eventStreamId": [
1,
@@ -11858,7 +11898,7 @@ export default {
"SubscriptionStatus": {},
"Support": {
"supportDriver": [
- 469
+ 470
],
"supportFrontChatId": [
1
@@ -11870,7 +11910,7 @@ export default {
"SupportDriver": {},
"TasksConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -11881,22 +11921,22 @@ export default {
1
],
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"emit": [
- 472
+ 473
],
"frontComponentUniversalIdentifier": [
- 493
+ 494
],
"icon": [
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -11908,16 +11948,16 @@ export default {
1
],
"objectUniversalIdentifier": [
- 493
+ 494
],
"replacesTimelineActivityTypeUniversalIdentifier": [
- 493
+ 494
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -11925,13 +11965,13 @@ export default {
},
"TimelineActivityTypeEmit": {
"objectUniversalIdentifier": [
- 493
+ 494
],
"on": [
1
],
"through": [
- 473
+ 474
],
"__typename": [
1
@@ -11939,13 +11979,13 @@ export default {
},
"TimelineActivityTypeEmitThrough": {
"happensAtFieldUniversalIdentifier": [
- 493
+ 494
],
"relationFieldUniversalIdentifier": [
- 493
+ 494
],
"triggerFieldUniversalIdentifiers": [
- 493
+ 494
],
"__typename": [
1
@@ -11953,7 +11993,7 @@ export default {
},
"TimelineConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -11973,7 +12013,7 @@ export default {
1
],
"inputSchema": [
- 289
+ 290
],
"label": [
1
@@ -11993,7 +12033,7 @@ export default {
},
"TransientToken": {
"transientToken": [
- 65
+ 66
],
"__typename": [
1
@@ -12001,10 +12041,10 @@ export default {
},
"TriggerAddPeopleToMessageListJobInput": {
"messageListId": [
- 493
+ 494
],
"personFilter": [
- 289
+ 290
],
"__typename": [
1
@@ -12109,7 +12149,7 @@ export default {
1
],
"twoFactorAuthenticationMethodId": [
- 493
+ 494
],
"__typename": [
1
@@ -12117,7 +12157,7 @@ export default {
},
"TwoFactorAuthenticationRecoveryCode": {
"expiresAt": [
- 187
+ 188
],
"recoveryCode": [
1
@@ -12131,7 +12171,7 @@ export default {
1
],
"tokens": [
- 66
+ 67
],
"__typename": [
1
@@ -12145,7 +12185,7 @@ export default {
4
],
"pendingRecoveryCodeExpiresAt": [
- 187
+ 188
],
"__typename": [
1
@@ -12154,19 +12194,19 @@ export default {
"UUID": {},
"UUIDFilterComparison": {
"eq": [
- 493
+ 494
],
"gt": [
- 493
+ 494
],
"gte": [
- 493
+ 494
],
"iLike": [
- 493
+ 494
],
"in": [
- 493
+ 494
],
"is": [
4
@@ -12175,25 +12215,25 @@ export default {
4
],
"like": [
- 493
+ 494
],
"lt": [
- 493
+ 494
],
"lte": [
- 493
+ 494
],
"neq": [
- 493
+ 494
],
"notILike": [
- 493
+ 494
],
"notIn": [
- 493
+ 494
],
"notLike": [
- 493
+ 494
],
"__typename": [
1
@@ -12202,22 +12242,22 @@ export default {
"UnsubscribeHostnameStatus": {},
"UnsubscribeTopic": {
"createdAt": [
- 187
+ 188
],
"description": [
1
],
"id": [
- 493
+ 494
],
"name": [
1
],
"updatedAt": [
- 187
+ 188
],
"visibility": [
- 497
+ 498
],
"__typename": [
1
@@ -12232,13 +12272,13 @@ export default {
1
],
"id": [
- 493
+ 494
],
"label": [
1
],
"modelConfiguration": [
- 289
+ 290
],
"modelId": [
1
@@ -12250,13 +12290,13 @@ export default {
1
],
"responseFormat": [
- 289
+ 290
],
"roleId": [
- 493
+ 494
],
"triggers": [
- 289
+ 290
],
"__typename": [
1
@@ -12267,7 +12307,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"name": [
1
@@ -12284,13 +12324,13 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isSyncEnabled": [
4
],
"visibility": [
- 323
+ 324
],
"__typename": [
1
@@ -12309,7 +12349,7 @@ export default {
1
],
"update": [
- 503
+ 504
],
"__typename": [
1
@@ -12334,7 +12374,7 @@ export default {
1
],
"update": [
- 505
+ 506
],
"__typename": [
1
@@ -12356,10 +12396,10 @@ export default {
},
"UpdateCalendarChannelInput": {
"id": [
- 493
+ 494
],
"update": [
- 507
+ 508
],
"__typename": [
1
@@ -12367,7 +12407,7 @@ export default {
},
"UpdateCalendarChannelInputUpdates": {
"contactAutoCreationPolicy": [
- 110
+ 111
],
"isContactAutoCreationEnabled": [
4
@@ -12376,7 +12416,7 @@ export default {
4
],
"visibility": [
- 113
+ 114
],
"__typename": [
1
@@ -12384,13 +12424,13 @@ export default {
},
"UpdateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 493
+ 494
],
"availabilityType": [
- 137
+ 138
],
"engineComponentKey": [
- 221
+ 222
],
"hotKeys": [
1
@@ -12399,7 +12439,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isPinned": [
4
@@ -12408,7 +12448,7 @@ export default {
1
],
"pageLayoutId": [
- 493
+ 494
],
"position": [
11
@@ -12425,7 +12465,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -12433,7 +12473,7 @@ export default {
},
"UpdateFieldInput": {
"defaultValue": [
- 289
+ 290
],
"description": [
1
@@ -12472,22 +12512,22 @@ export default {
1
],
"morphRelationsUpdatePayload": [
- 289
+ 290
],
"name": [
1
],
"objectMetadataId": [
- 493
+ 494
],
"options": [
- 289
+ 290
],
"settings": [
- 289
+ 290
],
"translations": [
- 336
+ 337
],
"universalIdentifier": [
1
@@ -12498,10 +12538,10 @@ export default {
},
"UpdateFrontComponentInput": {
"id": [
- 493
+ 494
],
"update": [
- 512
+ 513
],
"__typename": [
1
@@ -12531,10 +12571,10 @@ export default {
},
"UpdateLogicFunctionFromSourceInput": {
"id": [
- 493
+ 494
],
"update": [
- 515
+ 516
],
"__typename": [
1
@@ -12542,10 +12582,10 @@ export default {
},
"UpdateLogicFunctionFromSourceInputUpdates": {
"cronTriggerSettings": [
- 289
+ 290
],
"databaseEventTriggerSettings": [
- 289
+ 290
],
"description": [
1
@@ -12554,7 +12594,7 @@ export default {
1
],
"httpRouteTriggerSettings": [
- 289
+ 290
],
"name": [
1
@@ -12569,10 +12609,10 @@ export default {
11
],
"toolTriggerSettings": [
- 289
+ 290
],
"workflowActionTriggerSettings": [
- 289
+ 290
],
"__typename": [
1
@@ -12580,10 +12620,10 @@ export default {
},
"UpdateMessageChannelInput": {
"id": [
- 493
+ 494
],
"update": [
- 517
+ 518
],
"__typename": [
1
@@ -12591,7 +12631,7 @@ export default {
},
"UpdateMessageChannelInputUpdates": {
"contactAutoCreationPolicy": [
- 318
+ 319
],
"excludeGroupEmails": [
4
@@ -12606,10 +12646,10 @@ export default {
4
],
"messageFolderImportPolicy": [
- 325
+ 326
],
"visibility": [
- 323
+ 324
],
"__typename": [
1
@@ -12617,10 +12657,10 @@ export default {
},
"UpdateMessageFolderInput": {
"id": [
- 493
+ 494
],
"update": [
- 519
+ 520
],
"__typename": [
1
@@ -12636,10 +12676,10 @@ export default {
},
"UpdateMessageFoldersInput": {
"ids": [
- 493
+ 494
],
"update": [
- 519
+ 520
],
"__typename": [
1
@@ -12650,7 +12690,7 @@ export default {
1
],
"folderId": [
- 493
+ 494
],
"icon": [
1
@@ -12662,7 +12702,7 @@ export default {
1
],
"pageLayoutId": [
- 493
+ 494
],
"position": [
11
@@ -12682,7 +12722,7 @@ export default {
1
],
"imageIdentifierFieldMetadataId": [
- 493
+ 494
],
"isActive": [
4
@@ -12694,7 +12734,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 493
+ 494
],
"labelPlural": [
1
@@ -12709,19 +12749,19 @@ export default {
1
],
"openRecordIn": [
- 356
+ 357
],
"readability": [
- 334
+ 335
],
"sharingReach": [
- 364
+ 365
],
"shortcut": [
1
],
"translations": [
- 336
+ 337
],
"__typename": [
1
@@ -12729,10 +12769,10 @@ export default {
},
"UpdateOneFieldMetadataInput": {
"id": [
- 493
+ 494
],
"update": [
- 510
+ 511
],
"__typename": [
1
@@ -12740,10 +12780,10 @@ export default {
},
"UpdateOneNavigationMenuItemInput": {
"id": [
- 493
+ 494
],
"update": [
- 521
+ 522
],
"__typename": [
1
@@ -12751,10 +12791,10 @@ export default {
},
"UpdateOneObjectInput": {
"id": [
- 493
+ 494
],
"update": [
- 522
+ 523
],
"__typename": [
1
@@ -12765,10 +12805,10 @@ export default {
1
],
"objectMetadataId": [
- 493
+ 494
],
"type": [
- 373
+ 374
],
"__typename": [
1
@@ -12779,7 +12819,7 @@ export default {
1
],
"layoutMode": [
- 372
+ 373
],
"position": [
11
@@ -12796,10 +12836,10 @@ export default {
1
],
"id": [
- 493
+ 494
],
"layoutMode": [
- 372
+ 373
],
"position": [
11
@@ -12808,7 +12848,7 @@ export default {
1
],
"widgets": [
- 530
+ 531
],
"__typename": [
1
@@ -12819,28 +12859,28 @@ export default {
1
],
"conditionalDisplay": [
- 289
+ 290
],
"configuration": [
- 289
+ 290
],
"isActive": [
4
],
"objectMetadataId": [
- 493
+ 494
],
"pageLayoutTabId": [
- 493
+ 494
],
"position": [
- 289
+ 290
],
"title": [
1
],
"type": [
- 618
+ 619
],
"__typename": [
1
@@ -12851,28 +12891,28 @@ export default {
1
],
"conditionalDisplay": [
- 289
+ 290
],
"configuration": [
- 289
+ 290
],
"id": [
- 493
+ 494
],
"objectMetadataId": [
- 493
+ 494
],
"pageLayoutTabId": [
- 493
+ 494
],
"position": [
- 289
+ 290
],
"title": [
1
],
"type": [
- 618
+ 619
],
"__typename": [
1
@@ -12886,13 +12926,13 @@ export default {
1
],
"objectMetadataId": [
- 493
+ 494
],
"tabs": [
- 528
+ 529
],
"type": [
- 373
+ 374
],
"__typename": [
1
@@ -12900,10 +12940,10 @@ export default {
},
"UpdateRoleInput": {
"id": [
- 493
+ 494
],
"update": [
- 533
+ 534
],
"__typename": [
1
@@ -12961,7 +13001,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -12981,7 +13021,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -12990,7 +13030,7 @@ export default {
1
],
"translations": [
- 336
+ 337
],
"__typename": [
1
@@ -13007,7 +13047,7 @@ export default {
1
],
"visibility": [
- 497
+ 498
],
"__typename": [
1
@@ -13015,10 +13055,10 @@ export default {
},
"UpdateUsageLimitInput": {
"id": [
- 493
+ 494
],
"payload": [
- 175
+ 176
],
"__typename": [
1
@@ -13026,10 +13066,10 @@ export default {
},
"UpdateValidationRuleInput": {
"id": [
- 493
+ 494
],
"update": [
- 539
+ 540
],
"__typename": [
1
@@ -13040,7 +13080,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 493
+ 494
],
"expression": [
1
@@ -13063,10 +13103,10 @@ export default {
},
"UpdateViewFieldGroupInput": {
"id": [
- 493
+ 494
],
"update": [
- 541
+ 542
],
"__typename": [
1
@@ -13091,10 +13131,10 @@ export default {
},
"UpdateViewFieldInput": {
"id": [
- 493
+ 494
],
"update": [
- 543
+ 544
],
"__typename": [
1
@@ -13102,7 +13142,7 @@ export default {
},
"UpdateViewFieldInputUpdates": {
"aggregateOperation": [
- 19
+ 20
],
"isVisible": [
4
@@ -13114,7 +13154,7 @@ export default {
11
],
"viewFieldGroupId": [
- 493
+ 494
],
"__typename": [
1
@@ -13122,19 +13162,19 @@ export default {
},
"UpdateViewFilterGroupInput": {
"id": [
- 493
+ 494
],
"logicalOperator": [
- 606
+ 607
],
"parentViewFilterGroupId": [
- 493
+ 494
],
"positionInViewFilterGroup": [
11
],
"viewId": [
- 493
+ 494
],
"__typename": [
1
@@ -13142,10 +13182,10 @@ export default {
},
"UpdateViewFilterInput": {
"id": [
- 493
+ 494
],
"update": [
- 546
+ 547
],
"__typename": [
1
@@ -13153,25 +13193,25 @@ export default {
},
"UpdateViewFilterInputUpdates": {
"fieldMetadataId": [
- 493
+ 494
],
"operand": [
- 607
+ 608
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 493
+ 494
],
"subFieldName": [
1
],
"value": [
- 289
+ 290
],
"viewFilterGroupId": [
- 493
+ 494
],
"__typename": [
1
@@ -13179,10 +13219,10 @@ export default {
},
"UpdateViewGroupInput": {
"id": [
- 493
+ 494
],
"update": [
- 548
+ 549
],
"__typename": [
1
@@ -13190,7 +13230,7 @@ export default {
},
"UpdateViewGroupInputUpdates": {
"fieldMetadataId": [
- 493
+ 494
],
"fieldValue": [
1
@@ -13210,13 +13250,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 493
+ 494
],
"calendarFieldMetadataId": [
- 493
+ 494
],
"calendarLayout": [
- 600
+ 601
],
"groupLoadLimit": [
8
@@ -13225,28 +13265,28 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isCompact": [
4
],
"kanbanAggregateOperation": [
- 19
+ 20
],
"kanbanAggregateOperationFieldMetadataId": [
- 493
+ 494
],
"kanbanColumnWidth": [
8
],
"mainGroupByFieldMetadataId": [
- 493
+ 494
],
"name": [
1
],
"openRecordIn": [
- 610
+ 611
],
"position": [
11
@@ -13255,10 +13295,10 @@ export default {
4
],
"type": [
- 613
+ 614
],
"visibility": [
- 614
+ 615
],
"__typename": [
1
@@ -13266,10 +13306,10 @@ export default {
},
"UpdateViewSortInput": {
"id": [
- 493
+ 494
],
"update": [
- 551
+ 552
],
"__typename": [
1
@@ -13277,7 +13317,7 @@ export default {
},
"UpdateViewSortInputUpdates": {
"direction": [
- 612
+ 613
],
"subFieldName": [
1
@@ -13288,10 +13328,10 @@ export default {
},
"UpdateWebhookInput": {
"id": [
- 493
+ 494
],
"update": [
- 553
+ 554
],
"__typename": [
1
@@ -13330,16 +13370,16 @@ export default {
1
],
"aiAgentModelTier": [
- 21
+ 22
],
"aiChatModelTier": [
- 21
+ 22
],
"aiEvaluationModelId": [
1
],
"aiModelIdByTier": [
- 289
+ 290
],
"allowImpersonation": [
4
@@ -13348,7 +13388,7 @@ export default {
1
],
"defaultRoleId": [
- 493
+ 494
],
"displayName": [
1
@@ -13408,7 +13448,7 @@ export default {
11
],
"workspaceDiscoverability": [
- 628
+ 629
],
"__typename": [
1
@@ -13416,10 +13456,10 @@ export default {
},
"UpdateWorkspaceMemberSettingsInput": {
"update": [
- 289
+ 290
],
"workspaceMemberId": [
- 493
+ 494
],
"__typename": [
1
@@ -13428,10 +13468,10 @@ export default {
"Upload": {},
"UpsertFieldPermissionsInput": {
"fieldPermissions": [
- 250
+ 251
],
"roleId": [
- 493
+ 494
],
"__typename": [
1
@@ -13439,7 +13479,7 @@ export default {
},
"UpsertFieldsWidgetFieldInput": {
"fieldMetadataId": [
- 493
+ 494
],
"isVisible": [
4
@@ -13448,7 +13488,7 @@ export default {
11
],
"viewFieldId": [
- 493
+ 494
],
"__typename": [
1
@@ -13456,10 +13496,10 @@ export default {
},
"UpsertFieldsWidgetGroupInput": {
"fields": [
- 559
+ 560
],
"id": [
- 493
+ 494
],
"isVisible": [
4
@@ -13476,13 +13516,13 @@ export default {
},
"UpsertFieldsWidgetInput": {
"fields": [
- 559
+ 560
],
"groups": [
- 560
+ 561
],
"widgetId": [
- 493
+ 494
],
"__typename": [
1
@@ -13490,10 +13530,10 @@ export default {
},
"UpsertObjectPermissionsInput": {
"objectPermissions": [
- 358
+ 359
],
"roleId": [
- 493
+ 494
],
"__typename": [
1
@@ -13504,7 +13544,7 @@ export default {
1
],
"roleId": [
- 493
+ 494
],
"__typename": [
1
@@ -13512,16 +13552,16 @@ export default {
},
"UpsertRowLevelPermissionPredicatesInput": {
"objectMetadataId": [
- 493
+ 494
],
"predicateGroups": [
- 425
+ 426
],
"predicates": [
- 427
+ 428
],
"roleId": [
- 493
+ 494
],
"__typename": [
1
@@ -13529,10 +13569,10 @@ export default {
},
"UpsertRowLevelPermissionPredicatesResult": {
"predicateGroups": [
- 424
+ 425
],
"predicates": [
- 423
+ 424
],
"__typename": [
1
@@ -13540,22 +13580,22 @@ export default {
},
"UpsertViewWidgetInput": {
"view": [
- 570
+ 571
],
"viewFields": [
- 567
+ 568
],
"viewFilterGroups": [
- 568
+ 569
],
"viewFilters": [
- 569
+ 570
],
"viewSorts": [
- 571
+ 572
],
"widgetId": [
- 493
+ 494
],
"__typename": [
1
@@ -13563,10 +13603,10 @@ export default {
},
"UpsertViewWidgetViewFieldInput": {
"aggregateOperation": [
- 19
+ 20
],
"fieldMetadataId": [
- 493
+ 494
],
"isVisible": [
4
@@ -13578,7 +13618,7 @@ export default {
11
],
"viewFieldId": [
- 493
+ 494
],
"__typename": [
1
@@ -13586,13 +13626,13 @@ export default {
},
"UpsertViewWidgetViewFilterGroupInput": {
"id": [
- 493
+ 494
],
"logicalOperator": [
- 606
+ 607
],
"parentViewFilterGroupId": [
- 493
+ 494
],
"positionInViewFilterGroup": [
11
@@ -13603,28 +13643,28 @@ export default {
},
"UpsertViewWidgetViewFilterInput": {
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"operand": [
- 607
+ 608
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 493
+ 494
],
"subFieldName": [
1
],
"value": [
- 289
+ 290
],
"viewFilterGroupId": [
- 493
+ 494
],
"__typename": [
1
@@ -13632,34 +13672,34 @@ export default {
},
"UpsertViewWidgetViewSettingsInput": {
"calendarEndFieldMetadataId": [
- 493
+ 494
],
"calendarFieldMetadataId": [
- 493
+ 494
],
"calendarLayout": [
- 600
+ 601
],
"kanbanAggregateOperation": [
- 19
+ 20
],
"kanbanAggregateOperationFieldMetadataId": [
- 493
+ 494
],
"kanbanColumnWidth": [
8
],
"mainGroupByFieldMetadataId": [
- 493
+ 494
],
"openRecordIn": [
- 610
+ 611
],
"shouldHideEmptyGroups": [
4
],
"type": [
- 613
+ 614
],
"__typename": [
1
@@ -13667,13 +13707,13 @@ export default {
},
"UpsertViewWidgetViewSortInput": {
"direction": [
- 612
+ 613
],
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -13681,28 +13721,28 @@ export default {
},
"UsageAnalytics": {
"periodEnd": [
- 187
+ 188
],
"periodStart": [
- 187
+ 188
],
"timeSeries": [
- 585
+ 586
],
"usageByApplication": [
- 574
+ 575
],
"usageByModel": [
- 574
+ 575
],
"usageByOperationType": [
- 574
+ 575
],
"usageByUser": [
- 574
+ 575
],
"userDailyUsage": [
- 587
+ 588
],
"__typename": [
1
@@ -13710,13 +13750,13 @@ export default {
},
"UsageAnalyticsInput": {
"operationTypes": [
- 577
+ 578
],
"periodEnd": [
- 187
+ 188
],
"periodStart": [
- 187
+ 188
],
"userWorkspaceId": [
1
@@ -13741,22 +13781,22 @@ export default {
},
"UsageLimit": {
"burstValue": [
- 80
+ 81
],
"createdAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"limitKind": [
1
],
"limitValue": [
- 80
+ 81
],
"operationType": [
- 577
+ 578
],
"periodCount": [
8
@@ -13765,7 +13805,7 @@ export default {
1
],
"resourceType": [
- 584
+ 585
],
"spenderId": [
1
@@ -13774,10 +13814,10 @@ export default {
1
],
"unit": [
- 586
+ 587
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -13785,10 +13825,10 @@ export default {
},
"UsageLimitOperationDefinition": {
"allowedUnits": [
- 586
+ 587
],
"operationType": [
- 577
+ 578
],
"__typename": [
1
@@ -13797,7 +13837,7 @@ export default {
"UsageOperationType": {},
"UsageQuotaDefinition": {
"allowedOperations": [
- 576
+ 577
],
"allowedSpenderTypes": [
1
@@ -13806,10 +13846,10 @@ export default {
1
],
"operatorOnlyScopes": [
- 580
+ 581
],
"resourceType": [
- 584
+ 585
],
"__typename": [
1
@@ -13817,7 +13857,7 @@ export default {
},
"UsageQuotaDefinitions": {
"definitions": [
- 578
+ 579
],
"hasAllowancePeriod": [
4
@@ -13831,7 +13871,7 @@ export default {
},
"UsageQuotaOperatorOnlyScope": {
"operationType": [
- 577
+ 578
],
"periodUnit": [
1
@@ -13840,7 +13880,7 @@ export default {
1
],
"unit": [
- 586
+ 587
],
"__typename": [
1
@@ -13848,13 +13888,13 @@ export default {
},
"UsageQuotaScopeConsumption": {
"consumedValue": [
- 80
+ 81
],
"periodEnd": [
- 187
+ 188
],
"periodStart": [
- 187
+ 188
],
"__typename": [
1
@@ -13862,13 +13902,13 @@ export default {
},
"UsageQuotaScopeInput": {
"operationType": [
- 577
+ 578
],
"periodUnit": [
1
],
"resourceType": [
- 584
+ 585
],
"spenderId": [
1
@@ -13877,7 +13917,7 @@ export default {
1
],
"unit": [
- 586
+ 587
],
"__typename": [
1
@@ -13885,34 +13925,34 @@ export default {
},
"UsageQuotaWithConsumption": {
"consumedValue": [
- 80
+ 81
],
"id": [
- 493
+ 494
],
"isEnforced": [
4
],
"limitValue": [
- 80
+ 81
],
"operationType": [
- 577
+ 578
],
"periodEnd": [
- 187
+ 188
],
"periodStart": [
- 187
+ 188
],
"periodUnit": [
1
],
"remainingValue": [
- 80
+ 81
],
"resourceType": [
- 584
+ 585
],
"spenderId": [
1
@@ -13924,7 +13964,7 @@ export default {
1
],
"unit": [
- 586
+ 587
],
"__typename": [
1
@@ -13945,7 +13985,7 @@ export default {
"UsageUnit": {},
"UsageUserDaily": {
"dailyUsage": [
- 585
+ 586
],
"userWorkspaceId": [
1
@@ -13956,7 +13996,7 @@ export default {
},
"User": {
"availableWorkspaces": [
- 71
+ 72
],
"canAccessFullAdminPanel": [
4
@@ -13965,19 +14005,19 @@ export default {
4
],
"createdAt": [
- 187
+ 188
],
"currentUserWorkspace": [
- 591
+ 592
],
"currentWorkspace": [
- 622
+ 623
],
"deletedAt": [
- 187
+ 188
],
"deletedWorkspaceMembers": [
- 200
+ 201
],
"disabled": [
4
@@ -13992,7 +14032,7 @@ export default {
4
],
"id": [
- 493
+ 494
],
"isEmailVerified": [
4
@@ -14007,31 +14047,31 @@ export default {
1
],
"onboardingStatus": [
- 365
+ 366
],
"previousOnboardingStatus": [
- 365
+ 366
],
"supportUserHash": [
1
],
"updatedAt": [
- 187
+ 188
],
"userVars": [
- 290
+ 291
],
"userWorkspaces": [
- 591
+ 592
],
"workspaceMember": [
- 631
+ 632
],
"workspaceMembers": [
- 631
+ 632
],
"workspaces": [
- 591
+ 592
],
"__typename": [
1
@@ -14057,7 +14097,7 @@ export default {
1
],
"options": [
- 289
+ 290
],
"type": [
1
@@ -14074,13 +14114,13 @@ export default {
1
],
"createdAt": [
- 187
+ 188
],
"expiresAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"ipAddress": [
1
@@ -14092,13 +14132,13 @@ export default {
4
],
"lastActiveAt": [
- 187
+ 188
],
"userAgent": [
1
],
"workspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -14106,13 +14146,13 @@ export default {
},
"UserWorkspace": {
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"isImpersonating": [
4
@@ -14121,25 +14161,25 @@ export default {
1
],
"objectPermissions": [
- 357
+ 358
],
"objectsPermissions": [
- 357
+ 358
],
"permissionFlags": [
- 382
+ 383
],
"twoFactorAuthenticationMethodSummary": [
- 489
+ 490
],
"updatedAt": [
- 187
+ 188
],
"user": [
- 588
+ 589
],
"userId": [
- 493
+ 494
],
"__typename": [
1
@@ -14147,7 +14187,7 @@ export default {
},
"ValidateApprovedAccessDomainInput": {
"approvedAccessDomainId": [
- 493
+ 494
],
"validationToken": [
1
@@ -14164,7 +14204,7 @@ export default {
4
],
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -14175,7 +14215,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 493
+ 494
],
"expression": [
1
@@ -14184,7 +14224,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -14196,7 +14236,7 @@ export default {
1
],
"objectMetadataId": [
- 493
+ 494
],
"__typename": [
1
@@ -14224,10 +14264,10 @@ export default {
},
"VerifyEmailAndGetLoginToken": {
"loginToken": [
- 65
+ 66
],
"workspaceUrls": [
- 640
+ 641
],
"__typename": [
1
@@ -14257,25 +14297,25 @@ export default {
1
],
"applicationId": [
- 493
+ 494
],
"calendarEndFieldMetadataId": [
- 493
+ 494
],
"calendarFieldMetadataId": [
- 493
+ 494
],
"calendarLayout": [
- 600
+ 601
],
"createdAt": [
- 187
+ 188
],
"createdByUserWorkspaceId": [
- 493
+ 494
],
"deletedAt": [
- 187
+ 188
],
"groupLoadLimit": [
8
@@ -14284,7 +14324,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -14299,28 +14339,28 @@ export default {
4
],
"kanbanAggregateOperation": [
- 19
+ 20
],
"kanbanAggregateOperationFieldMetadataId": [
- 493
+ 494
],
"kanbanColumnWidth": [
8
],
"key": [
- 609
+ 610
],
"mainGroupByFieldMetadataId": [
- 493
+ 494
],
"name": [
1
],
"objectMetadataId": [
- 493
+ 494
],
"openRecordIn": [
- 610
+ 611
],
"position": [
11
@@ -14329,37 +14369,37 @@ export default {
4
],
"type": [
- 613
+ 614
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"viewFieldGroups": [
- 603
+ 604
],
"viewFields": [
- 602
+ 603
],
"viewFilterGroups": [
- 605
+ 606
],
"viewFilters": [
- 604
+ 605
],
"viewGroups": [
- 608
+ 609
],
"viewSorts": [
- 611
+ 612
],
"visibility": [
- 614
+ 615
],
"workspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -14368,7 +14408,7 @@ export default {
"ViewCalendarLayout": {},
"ViewConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -14376,22 +14416,22 @@ export default {
},
"ViewField": {
"aggregateOperation": [
- 19
+ 20
],
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -14412,19 +14452,19 @@ export default {
11
],
"universalIdentifier": [
- 493
+ 494
],
"updatedAt": [
- 187
+ 188
],
"viewFieldGroupId": [
- 493
+ 494
],
"viewId": [
- 493
+ 494
],
"workspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -14432,13 +14472,13 @@ export default {
},
"ViewFieldGroup": {
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"isActive": [
4
@@ -14456,16 +14496,16 @@ export default {
11
],
"updatedAt": [
- 187
+ 188
],
"viewFields": [
- 602
+ 603
],
"viewId": [
- 493
+ 494
],
"workspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -14473,43 +14513,43 @@ export default {
},
"ViewFilter": {
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"operand": [
- 607
+ 608
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 493
+ 494
],
"subFieldName": [
1
],
"updatedAt": [
- 187
+ 188
],
"value": [
- 289
+ 290
],
"viewFilterGroupId": [
- 493
+ 494
],
"viewId": [
- 493
+ 494
],
"workspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -14517,31 +14557,31 @@ export default {
},
"ViewFilterGroup": {
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"logicalOperator": [
- 606
+ 607
],
"parentViewFilterGroupId": [
- 493
+ 494
],
"positionInViewFilterGroup": [
11
],
"updatedAt": [
- 187
+ 188
],
"viewId": [
- 493
+ 494
],
"workspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -14551,16 +14591,16 @@ export default {
"ViewFilterOperand": {},
"ViewGroup": {
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"fieldValue": [
1
],
"id": [
- 493
+ 494
],
"isVisible": [
4
@@ -14569,13 +14609,13 @@ export default {
11
],
"updatedAt": [
- 187
+ 188
],
"viewId": [
- 493
+ 494
],
"workspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -14585,31 +14625,31 @@ export default {
"ViewOpenRecordIn": {},
"ViewSort": {
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"direction": [
- 612
+ 613
],
"fieldMetadataId": [
- 493
+ 494
],
"id": [
- 493
+ 494
],
"subFieldName": [
1
],
"updatedAt": [
- 187
+ 188
],
"viewId": [
- 493
+ 494
],
"workspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -14620,19 +14660,19 @@ export default {
"ViewVisibility": {},
"Webhook": {
"applicationId": [
- 493
+ 494
],
"createdAt": [
- 187
+ 188
],
"deletedAt": [
- 187
+ 188
],
"description": [
1
],
"id": [
- 493
+ 494
],
"operations": [
1
@@ -14644,7 +14684,7 @@ export default {
1
],
"updatedAt": [
- 187
+ 188
],
"__typename": [
1
@@ -14652,91 +14692,91 @@ export default {
},
"WidgetConfiguration": {
"on_AggregateChartConfiguration": [
- 18
+ 19
],
"on_BarChartConfiguration": [
- 74
+ 75
],
"on_CalendarConfiguration": [
- 114
+ 115
],
"on_CallRecordingSummaryConfiguration": [
- 115
+ 116
],
"on_CallRecordingTranscriptConfiguration": [
- 116
+ 117
],
"on_ChatConfiguration": [
- 124
+ 125
],
"on_ChatThreadsConfiguration": [
- 127
+ 128
],
"on_EmailThreadConfiguration": [
- 216
+ 217
],
"on_EmailsConfiguration": [
- 220
+ 221
],
"on_FieldConfiguration": [
- 243
+ 244
],
"on_FieldRichTextConfiguration": [
- 251
+ 252
],
"on_FieldsConfiguration": [
- 252
+ 253
],
"on_FilesConfiguration": [
- 258
+ 259
],
"on_FormFieldConfiguration": [
- 261
+ 262
],
"on_FrontComponentConfiguration": [
- 263
+ 264
],
"on_IframeConfiguration": [
- 273
+ 274
],
"on_LineChartConfiguration": [
- 293
+ 294
],
"on_MessageCampaignBodyConfiguration": [
- 315
+ 316
],
"on_MessageCampaignDetailsConfiguration": [
- 316
+ 317
],
"on_NotesConfiguration": [
- 348
+ 349
],
"on_PieChartConfiguration": [
- 383
+ 384
],
"on_RecordTableConfiguration": [
- 411
+ 412
],
"on_StandaloneRichTextConfiguration": [
- 461
+ 462
],
"on_TasksConfiguration": [
- 470
+ 471
],
"on_TimelineConfiguration": [
- 474
+ 475
],
"on_ViewConfiguration": [
- 601
+ 602
],
"on_WorkflowConfiguration": [
- 619
+ 620
],
"on_WorkflowRunConfiguration": [
- 620
+ 621
],
"on_WorkflowVersionConfiguration": [
- 621
+ 622
],
"__typename": [
1
@@ -14746,7 +14786,7 @@ export default {
"WidgetType": {},
"WorkflowConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -14754,7 +14794,7 @@ export default {
},
"WorkflowRunConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -14762,7 +14802,7 @@ export default {
},
"WorkflowVersionConfiguration": {
"configurationType": [
- 617
+ 618
],
"__typename": [
1
@@ -14770,22 +14810,22 @@ export default {
},
"Workspace": {
"activationStatus": [
- 623
+ 624
],
"aiAdditionalInstructions": [
1
],
"aiAgentModelTier": [
- 21
+ 22
],
"aiChatModelTier": [
- 21
+ 22
],
"aiEvaluationModelId": [
1
],
"aiModelIdByTier": [
- 289
+ 290
],
"allowImpersonation": [
4
@@ -14794,19 +14834,19 @@ export default {
1
],
"billingCustomer": [
- 82
+ 83
],
"billingEntitlements": [
- 84
+ 85
],
"billingSubscriptions": [
- 100
+ 101
],
"createdAt": [
- 187
+ 188
],
"currentBillingSubscription": [
- 100
+ 101
],
"customDomain": [
1
@@ -14815,10 +14855,10 @@ export default {
1
],
"defaultRole": [
- 420
+ 421
],
"deletedAt": [
- 187
+ 188
],
"displayName": [
1
@@ -14830,7 +14870,7 @@ export default {
11
],
"featureFlags": [
- 240
+ 241
],
"hasValidEnterpriseValidityToken": [
4
@@ -14839,10 +14879,10 @@ export default {
4
],
"id": [
- 493
+ 494
],
"installedApplications": [
- 36
+ 37
],
"inviteHash": [
1
@@ -14890,7 +14930,7 @@ export default {
1
],
"logoFileId": [
- 493
+ 494
],
"metadataVersion": [
11
@@ -14902,40 +14942,40 @@ export default {
11
],
"updatedAt": [
- 187
+ 188
],
"viewFields": [
- 602
+ 603
],
"viewFilterGroups": [
- 605
+ 606
],
"viewFilters": [
- 604
+ 605
],
"viewGroups": [
- 608
+ 609
],
"viewSorts": [
- 611
+ 612
],
"views": [
- 599
+ 600
],
"workspaceCustomApplication": [
- 36
+ 37
],
"workspaceCustomApplicationId": [
1
],
"workspaceDiscoverability": [
- 628
+ 629
],
"workspaceMembersCount": [
11
],
"workspaceUrls": [
- 640
+ 641
],
"__typename": [
1
@@ -14959,19 +14999,19 @@ export default {
"WorkspaceCompanyEnrichmentOutcome": {},
"WorkspaceCompanyEnrichmentResult": {
"enrichment": [
- 289
+ 290
],
"isBookCallOnboardingStepPending": [
4
],
"outcome": [
- 625
+ 626
],
"personEnrichment": [
- 289
+ 290
],
"personOutcome": [
- 638
+ 639
],
"__typename": [
1
@@ -14994,13 +15034,13 @@ export default {
1
],
"expiresAt": [
- 187
+ 188
],
"id": [
- 493
+ 494
],
"roleId": [
- 493
+ 494
],
"__typename": [
1
@@ -15025,28 +15065,28 @@ export default {
1
],
"dateFormat": [
- 633
+ 634
],
"id": [
- 493
+ 494
],
"locale": [
1
],
"name": [
- 265
+ 266
],
"numberFormat": [
- 634
+ 635
],
"openRecordIn": [
- 368
+ 369
],
"roles": [
- 420
+ 421
],
"timeFormat": [
- 635
+ 636
],
"timeZone": [
1
@@ -15058,10 +15098,10 @@ export default {
1
],
"userId": [
- 493
+ 494
],
"userWorkspaceId": [
- 493
+ 494
],
"__typename": [
1
@@ -15069,13 +15109,13 @@ export default {
},
"WorkspaceMemberApplicationVariables": {
"userWorkspaceId": [
- 493
+ 494
],
"variables": [
- 589
+ 590
],
"workspaceMemberId": [
- 493
+ 494
],
"__typename": [
1
@@ -15086,7 +15126,7 @@ export default {
"WorkspaceMemberTimeFormatEnum": {},
"WorkspaceMigration": {
"actions": [
- 289
+ 290
],
"applicationUniversalIdentifier": [
1
@@ -15100,7 +15140,7 @@ export default {
1
],
"id": [
- 493
+ 494
],
"__typename": [
1
@@ -15121,10 +15161,10 @@ export default {
},
"WorkspaceUrlsAndId": {
"id": [
- 493
+ 494
],
"workspaceUrls": [
- 640
+ 641
],
"__typename": [
1
diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json
index 961f8267811..78f63bd1d1b 100644
--- a/packages/twenty-front/package.json
+++ b/packages/twenty-front/package.json
@@ -94,6 +94,7 @@
"deep-equal": "^2.2.2",
"file-saver": "^2.0.5",
"framer-motion": "^11.18.0",
+ "frimousse": "^0.4.0",
"fuse.js": "^7.1.0",
"graphiql": "^5.2.3",
"graphql": "16.8.1",
@@ -182,6 +183,7 @@
"@vitest/coverage-istanbul": "^4.1.0",
"@wyw-in-js/vite": "^1.1.0",
"dotenv-cli": "^7.4.4",
+ "emojibase-data": "^17.0.0",
"esbuild": "^0.28.1",
"jest": "29.7.0",
"jest-environment-jsdom": "30.0.0-beta.3",
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index b9ff7582380..069ed2a014f 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -118,6 +118,7 @@ export type AgentMessage = {
id: Scalars['UUID']['output'];
parts: Array<AgentMessagePart>;
processedAt?: Maybe<Scalars['DateTime']['output']>;
+ reactions: Array<AgentMessageReactionSummary>;
role: Scalars['String']['output'];
senderUserWorkspaceId?: Maybe<Scalars['UUID']['output']>;
senderWorkspaceMemberId?: Maybe<Scalars['UUID']['output']>;
@@ -156,6 +157,12 @@ export type AgentMessagePart = {
type: Scalars['String']['output'];
};
+export type AgentMessageReactionSummary = {
+ __typename?: 'AgentMessageReactionSummary';
+ emoji: Scalars['String']['output'];
+ workspaceMemberIds: Array<Scalars['UUID']['output']>;
+};
+
export type AgentRun = {
__typename?: 'AgentRun';
createdAt: Scalars['DateTime']['output'];
@@ -3143,6 +3150,7 @@ export type Mutation = {
__typename?: 'Mutation';
activateSkill: Skill;
activateWorkspace: Workspace;
+ addAgentChatMessageReaction: Array<AgentMessageReactionSummary>;
addQueryToEventStream: Scalars['Boolean']['output'];
assignAgentChatThread: Scalars['Boolean']['output'];
assignRoleToAgent: Scalars['Boolean']['output'];
@@ -3292,6 +3300,7 @@ export type Mutation = {
installMarketplaceApp: Scalars['Boolean']['output'];
refreshEnterpriseValidityToken: Scalars['Boolean']['output'];
releaseEnterpriseServerBinding: EnterpriseLicenseInfoDto;
+ removeAgentChatMessageReaction: Array<AgentMessageReactionSummary>;
removeQueryFromEventStream: Scalars['Boolean']['output'];
removeRecordShare: RecordSharingDto;
removeRoleFromAgent: Scalars['Boolean']['output'];
@@ -3436,6 +3445,12 @@ export type MutationActivateWorkspaceArgs = {
};
+export type MutationAddAgentChatMessageReactionArgs = {
+ emoji: Scalars['String']['input'];
+ messageId: Scalars['UUID']['input'];
+};
+
+
export type MutationAddQueryToEventStreamArgs = {
input: AddQuerySubscriptionInput;
};
@@ -4142,6 +4157,12 @@ export type MutationInstallMarketplaceAppArgs = {
};
+export type MutationRemoveAgentChatMessageReactionArgs = {
+ emoji: Scalars['String']['input'];
+ messageId: Scalars['UUID']['input'];
+};
+
+
export type MutationRemoveQueryFromEventStreamArgs = {
input: RemoveQueryFromEventStreamInput;
};
@@ -8245,6 +8266,14 @@ 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 AddAgentChatMessageReactionMutationVariables = Exact<{
+ messageId: Scalars['UUID']['input'];
+ emoji: Scalars['String']['input'];
+}>;
+
+
+export type AddAgentChatMessageReactionMutation = { __typename?: 'Mutation', addAgentChatMessageReaction: Array<{ __typename?: 'AgentMessageReactionSummary', emoji: string, workspaceMemberIds: Array<string> }> };
+
export type AssignAgentChatThreadMutationVariables = Exact<{
threadId: Scalars['UUID']['input'];
assigneeWorkspaceMemberId?: InputMaybe<Scalars['UUID']['input']>;
@@ -8303,6 +8332,14 @@ 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 RemoveAgentChatMessageReactionMutationVariables = Exact<{
+ messageId: Scalars['UUID']['input'];
+ emoji: Scalars['String']['input'];
+}>;
+
+
+export type RemoveAgentChatMessageReactionMutation = { __typename?: 'Mutation', removeAgentChatMessageReaction: Array<{ __typename?: 'AgentMessageReactionSummary', emoji: string, workspaceMemberIds: Array<string> }> };
+
export type RetryChatMessageMutationVariables = Exact<{
threadId: Scalars['UUID']['input'];
modelId?: InputMaybe<Scalars['String']['input']>;
@@ -8405,7 +8442,7 @@ export type GetChatMessagesQueryVariables = Exact<{
}>;
-export type GetChatMessagesQuery = { __typename?: 'Query', chatMessages: Array<{ __typename?: 'AgentMessage', id: string, threadId: string, turnId?: string | null, senderWorkspaceMemberId?: string | null, role: string, status: string, createdAt: string, processedAt?: string | null, parts: Array<{ __typename?: 'AgentMessagePart', id: string, messageId: string, orderIndex: number, type: string, textContent?: string | null, reasoningContent?: string | null, toolName?: string | null, toolCallId?: string | null, toolInput?: any | null, toolOutput?: any | null, state?: string | null, providerExecuted?: boolean | null, errorMessage?: string | null, sourceUrlSourceId?: string | null, sourceUrlUrl?: string | null, sourceUrlTitle?: string | null, sourceDocumentSourceId?: string | null, sourceDocumentMediaType?: string | null, sourceDocumentTitle?: string | null, sourceDocumentFilename?: string | null, fileMediaType?: string | null, fileFilename?: string | null, fileUrl?: string | null, fileId?: string | null, providerMetadata?: any | null, createdAt: string }> }>, chatStreamCatchupChunks: { __typename?: 'ChatStreamCatchupChunks', chunks: Array<any>, maxSeq: number, error?: { __typename?: 'ChatStreamError', code: string, message: string } | null } };
+export type GetChatMessagesQuery = { __typename?: 'Query', chatMessages: Array<{ __typename?: 'AgentMessage', id: string, threadId: string, turnId?: string | null, senderWorkspaceMemberId?: string | null, role: string, status: string, createdAt: string, processedAt?: string | null, parts: Array<{ __typename?: 'AgentMessagePart', id: string, messageId: string, orderIndex: number, type: string, textContent?: string | null, reasoningContent?: string | null, toolName?: string | null, toolCallId?: string | null, toolInput?: any | null, toolOutput?: any | null, state?: string | null, providerExecuted?: boolean | null, errorMessage?: string | null, sourceUrlSourceId?: string | null, sourceUrlUrl?: string | null, sourceUrlTitle?: string | null, sourceDocumentSourceId?: string | null, sourceDocumentMediaType?: string | null, sourceDocumentTitle?: string | null, sourceDocumentFilename?: string | null, fileMediaType?: string | null, fileFilename?: string | null, fileUrl?: string | null, fileId?: string | null, providerMetadata?: any | null, createdAt: string }>, reactions: Array<{ __typename?: 'AgentMessageReactionSummary', emoji: string, workspaceMemberIds: Array<string> }> }>, chatStreamCatchupChunks: { __typename?: 'ChatStreamCatchupChunks', chunks: Array<any>, maxSeq: number, error?: { __typename?: 'ChatStreamError', code: string, message: string } | null } };
export type GetToolIndexQueryVariables = Exact<{ [key: string]: never; }>;
@@ -10927,6 +10964,7 @@ export const ResetTimelineActivityTypeDocument = {"kind":"Document","definitions
export 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 AddAgentChatMessageReactionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAgentChatMessageReaction"},"variableDefinitions":[{"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":"emoji"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAgentChatMessageReaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"messageId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}}},{"kind":"Argument","name":{"kind":"Name","value":"emoji"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emoji"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"emoji"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberIds"}}]}}]}}]} as unknown as DocumentNode<AddAgentChatMessageReactionMutation, AddAgentChatMessageReactionMutationVariables>;
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 CreateOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateAgentInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneAgent"},"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<CreateOneAgentMutation, CreateOneAgentMutationVariables>;
@@ -10935,6 +10973,7 @@ 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 RemoveAgentChatMessageReactionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveAgentChatMessageReaction"},"variableDefinitions":[{"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":"emoji"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeAgentChatMessageReaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"messageId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}}},{"kind":"Argument","name":{"kind":"Name","value":"emoji"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emoji"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"emoji"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberIds"}}]}}]}}]} as unknown as DocumentNode<RemoveAgentChatMessageReactionMutation, RemoveAgentChatMessageReactionMutationVariables>;
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 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>;
@@ -10949,7 +10988,7 @@ export const FindOneSkillDocument = {"kind":"Document","definitions":[{"kind":"O
export const GetAgentChatOpenThreadsSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatOpenThreadsSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatOpenThreadsSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"openThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"needsInputThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadOpenThread"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadMentionThread"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadAssignedThread"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatOpenThreadsSummaryQuery, GetAgentChatOpenThreadsSummaryQueryVariables>;
export const GetAgentRunsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentRuns"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentRuns"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"agentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"threadTitle"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"errorMessage"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"inputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"outputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"credits"}},{"kind":"Field","name":{"kind":"Name","value":"creatorSource"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}},{"kind":"Field","name":{"kind":"Name","value":"input"}},{"kind":"Field","name":{"kind":"Name","value":"reply"}},{"kind":"Field","name":{"kind":"Name","value":"toolNames"}}]}}]}}]} as unknown as DocumentNode<GetAgentRunsQuery, GetAgentRunsQueryVariables>;
export const GetAiChatUsageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAiChatUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aiChatUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"limitValue"}},{"kind":"Field","name":{"kind":"Name","value":"consumedValue"}},{"kind":"Field","name":{"kind":"Name","value":"periodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}}]}}]} as unknown as DocumentNode<GetAiChatUsageQuery, GetAiChatUsageQueryVariables>;
-export const GetChatMessagesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetChatMessages"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chatMessages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"turnId"}},{"kind":"Field","name":{"kind":"Name","value":"senderWorkspaceMemberId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"processedAt"}},{"kind":"Field","name":{"kind":"Name","value":"parts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"orderIndex"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"textContent"}},{"kind":"Field","name":{"kind":"Name","value":"reasoningContent"}},{"kind":"Field","name":{"kind":"Name","value":"toolName"}},{"kind":"Field","name":{"kind":"Name","value":"toolCallId"}},{"kind":"Field","name":{"kind":"Name","value":"toolInput"}},{"kind":"Field","name":{"kind":"Name","value":"toolOutput"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"providerExecuted"}},{"kind":"Field","name":{"kind":"Name","value":"errorMessage"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrlSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrlUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrlTitle"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentMediaType"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentTitle"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentFilename"}},{"kind":"Field","name":{"kind":"Name","value":"fileMediaType"}},{"kind":"Field","name":{"kind":"Name","value":"fileFilename"}},{"kind":"Field","name":{"kind":"Name","value":"fileUrl"}},{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"providerMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"chatStreamCatchupChunks"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chunks"}},{"kind":"Field","name":{"kind":"Name","value":"maxSeq"}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<GetChatMessagesQuery, GetChatMessagesQueryVariables>;
+export const GetChatMessagesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetChatMessages"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chatMessages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"turnId"}},{"kind":"Field","name":{"kind":"Name","value":"senderWorkspaceMemberId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"processedAt"}},{"kind":"Field","name":{"kind":"Name","value":"parts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"orderIndex"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"textContent"}},{"kind":"Field","name":{"kind":"Name","value":"reasoningContent"}},{"kind":"Field","name":{"kind":"Name","value":"toolName"}},{"kind":"Field","name":{"kind":"Name","value":"toolCallId"}},{"kind":"Field","name":{"kind":"Name","value":"toolInput"}},{"kind":"Field","name":{"kind":"Name","value":"toolOutput"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"providerExecuted"}},{"kind":"Field","name":{"kind":"Name","value":"errorMessage"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrlSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrlUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrlTitle"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentMediaType"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentTitle"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDocumentFilename"}},{"kind":"Field","name":{"kind":"Name","value":"fileMediaType"}},{"kind":"Field","name":{"kind":"Name","value":"fileFilename"}},{"kind":"Field","name":{"kind":"Name","value":"fileUrl"}},{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"providerMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"emoji"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberIds"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"chatStreamCatchupChunks"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chunks"}},{"kind":"Field","name":{"kind":"Name","value":"maxSeq"}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<GetChatMessagesQuery, GetChatMessagesQueryVariables>;
export const GetToolIndexDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetToolIndex"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getToolIndex"},"selectionSet":{"kind":"SelectionSet","selections":[{"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":"category"}},{"kind":"Field","name":{"kind":"Name","value":"objectName"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"widgetName"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}}]} as unknown as DocumentNode<GetToolIndexQuery, GetToolIndexQueryVariables>;
export const GetToolInputSchemaDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetToolInputSchema"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toolName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getToolInputSchema"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"toolName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toolName"}}}]}]}}]} as unknown as DocumentNode<GetToolInputSchemaQuery, GetToolInputSchemaQueryVariables>;
export const OnAgentChatEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"OnAgentChatEvent"},"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":"onAgentChatEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"event"}}]}}]}}]} as unknown as DocumentNode<OnAgentChatEventSubscription, OnAgentChatEventSubscriptionVariables>;
diff --git a/packages/twenty-front/src/modules/ai/components/AgentChatMessagesFetchEffect.tsx b/packages/twenty-front/src/modules/ai/components/AgentChatMessagesFetchEffect.tsx
index aa9db0cf73f..98b2899fa89 100644
--- a/packages/twenty-front/src/modules/ai/components/AgentChatMessagesFetchEffect.tsx
+++ b/packages/twenty-front/src/modules/ai/components/AgentChatMessagesFetchEffect.tsx
@@ -6,6 +6,8 @@ import { isDefined } from 'twenty-shared/utils';
import { AGENT_CHAT_REFETCH_MESSAGES_EVENT_NAME } from '@/ai/constants/AgentChatRefetchMessagesEventName';
import { useIsOnNewAiChatSlot } from '@/ai/hooks/useIsOnNewAiChatSlot';
+import { agentChatLiveReactionRevisionsFamilyState } from '@/ai/states/agentChatLiveReactionRevisionsFamilyState';
+import { agentChatMessageReactionsFamilyState } from '@/ai/states/agentChatMessageReactionsFamilyState';
import { agentChatErrorFamilyState } from '@/ai/states/agentChatErrorFamilyState';
import { agentChatFetchedMessagesFamilyState } from '@/ai/states/agentChatFetchedMessagesFamilyState';
import { agentChatFirstLiveSeqFamilyState } from '@/ai/states/agentChatFirstLiveSeqFamilyState';
@@ -72,6 +74,25 @@ export const AgentChatMessagesFetchEffect = () => {
return;
}
const uiMessages = mapDBMessagesToUIMessages(data.chatMessages ?? []);
+ // A live snapshot is at least as recent as a fetch, which may have been read before it
+ const liveReactionRevisions = store.get(
+ agentChatLiveReactionRevisionsFamilyState.atomFamily({
+ threadId: currentAiChatThread,
+ }),
+ );
+
+ for (const message of data.chatMessages ?? []) {
+ if (isDefined(liveReactionRevisions[message.id])) {
+ continue;
+ }
+
+ store.set(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: message.id,
+ }),
+ message.reactions,
+ );
+ }
setAgentChatFetchedMessages(
uiMessages.filter((message) => message.status !== 'queued'),
);
@@ -167,9 +188,19 @@ export const AgentChatMessagesFetchEffect = () => {
onBrowserEvent: handleRefetchMessages,
});
+ const handleSseClientReconnected = useCallback(() => {
+ store.set(
+ agentChatLiveReactionRevisionsFamilyState.atomFamily({
+ threadId: currentAiChatThread,
+ }),
+ {},
+ );
+ handleRefetchMessages();
+ }, [currentAiChatThread, handleRefetchMessages, store]);
+
useListenToBrowserEvent({
eventName: SSE_CLIENT_RECONNECTED_EVENT_NAME,
- onBrowserEvent: handleRefetchMessages,
+ onBrowserEvent: handleSseClientReconnected,
});
return null;
diff --git a/packages/twenty-front/src/modules/ai/components/AiChatMessage.tsx b/packages/twenty-front/src/modules/ai/components/AiChatMessage.tsx
index 8cff69f20e0..ba37ae73d32 100644
--- a/packages/twenty-front/src/modules/ai/components/AiChatMessage.tsx
+++ b/packages/twenty-front/src/modules/ai/components/AiChatMessage.tsx
@@ -11,6 +11,8 @@ import { AGENT_MESSAGE_ROLE } from '@/ai/constants/AgentMessageRole';
import { AiChatAssistantAvatar } from '@/ai/components/AiChatAssistantAvatar';
import { AiChatAssistantMessageRenderer } from '@/ai/components/AiChatAssistantMessageRenderer';
import { AiChatMessageHeader } from '@/ai/components/AiChatMessageHeader';
+import { AiChatMessageReactionPicker } from '@/ai/components/AiChatMessageReactionPicker';
+import { AiChatMessageReactions } from '@/ai/components/AiChatMessageReactions';
import { AGENT_CHAT_ASSISTANT_NAME } from '@/ai/constants/AgentChatAssistantName';
import { AiChatErrorRenderer } from '@/ai/components/AiChatErrorRenderer';
import { agentChatFirstUnreadMessageIdSelector } from '@/ai/states/selectors/agentChatFirstUnreadMessageIdSelector';
@@ -301,6 +303,9 @@ export const AiChatMessage = ({
</StyledFilesContainer>
)}
{shouldShowError && <AiChatErrorRenderer error={error} />}
+ {isAiChatInboxEnabled && (
+ <AiChatMessageReactions messageId={messageId} />
+ )}
</StyledMessageContainer>
{agentChatMessage.parts.length > 0 && (
<StyledMessageFooter
@@ -318,6 +323,9 @@ export const AiChatMessage = ({
?.text ?? ''
}
/>
+ {isAiChatInboxEnabled && !isLastMessageStreaming && (
+ <AiChatMessageReactionPicker messageId={messageId} />
+ )}
</StyledMessageFooter>
)}
</StyledMessageBubble>
diff --git a/packages/twenty-front/src/modules/ai/components/AiChatMessageReactionPicker.tsx b/packages/twenty-front/src/modules/ai/components/AiChatMessageReactionPicker.tsx
new file mode 100644
index 00000000000..29d0fb2ab8a
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/components/AiChatMessageReactionPicker.tsx
@@ -0,0 +1,167 @@
+import { styled } from '@linaria/react';
+import { useLingui } from '@lingui/react/macro';
+import { EmojiPicker } from 'frimousse';
+import { useId } from 'react';
+import { LightIconButton } from 'twenty-ui/components/input';
+import { Dropdown } from 'twenty-ui/components/navigation';
+import { IconMoodSmile } from 'twenty-ui/icon';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+import { AGENT_CHAT_EMOJIBASE_URL } from '@/ai/constants/AgentChatEmojibaseUrl';
+import { AGENT_CHAT_QUICK_REACTION_EMOJIS } from '@/ai/constants/AgentChatQuickReactionEmojis';
+import { useToggleAgentChatMessageReaction } from '@/ai/hooks/useToggleAgentChatMessageReaction';
+import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
+import { DropdownRoot } from '@/ui/layout/dropdown/components/DropdownRoot';
+import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown';
+
+const AI_CHAT_MESSAGE_REACTION_PICKER_WIDTH_PX = 296;
+
+const StyledQuickReactions = styled.div`
+ border-bottom: 1px solid ${themeCssVariables.border.color.light};
+ display: flex;
+ justify-content: space-between;
+ padding: ${themeCssVariables.spacing[1]};
+`;
+
+const StyledEmojiButton = styled.button`
+ align-items: center;
+ background: none;
+ border: none;
+ border-radius: ${themeCssVariables.border.radius.sm};
+ cursor: pointer;
+ display: flex;
+ font-size: ${themeCssVariables.font.size.lg};
+ height: ${themeCssVariables.spacing[8]};
+ justify-content: center;
+ width: ${themeCssVariables.spacing[8]};
+
+ &:hover {
+ background: ${themeCssVariables.background.transparent.light};
+ }
+`;
+
+const StyledEmojiPicker = styled.div`
+ [frimousse-root] {
+ display: flex;
+ flex-direction: column;
+ height: 280px;
+ }
+
+ [frimousse-search] {
+ background: ${themeCssVariables.background.transparent.lighter};
+ border: 1px solid ${themeCssVariables.border.color.medium};
+ border-radius: ${themeCssVariables.border.radius.sm};
+ color: ${themeCssVariables.font.color.primary};
+ font-family: inherit;
+ font-size: ${themeCssVariables.font.size.md};
+ margin: ${themeCssVariables.spacing[2]};
+ padding: ${themeCssVariables.spacing[1]} ${themeCssVariables.spacing[2]};
+ }
+
+ [frimousse-viewport] {
+ flex: 1;
+ outline: none;
+ }
+
+ [frimousse-category-header] {
+ background: ${themeCssVariables.background.primary};
+ color: ${themeCssVariables.font.color.tertiary};
+ font-size: ${themeCssVariables.font.size.xs};
+ padding: ${themeCssVariables.spacing[1]} ${themeCssVariables.spacing[2]};
+ }
+
+ [frimousse-row] {
+ padding: 0 ${themeCssVariables.spacing[1]};
+ }
+
+ [frimousse-emoji] {
+ background: none;
+ border: none;
+ border-radius: ${themeCssVariables.border.radius.sm};
+ cursor: pointer;
+ font-size: ${themeCssVariables.font.size.lg};
+ height: ${themeCssVariables.spacing[8]};
+ width: ${themeCssVariables.spacing[8]};
+
+ &[data-active] {
+ background: ${themeCssVariables.background.transparent.light};
+ }
+ }
+`;
+
+const StyledPickerMessage = styled.div`
+ color: ${themeCssVariables.font.color.tertiary};
+ font-size: ${themeCssVariables.font.size.sm};
+ padding: ${themeCssVariables.spacing[3]};
+ text-align: center;
+`;
+
+type AiChatMessageReactionPickerProps = {
+ messageId: string;
+};
+
+export const AiChatMessageReactionPicker = ({
+ messageId,
+}: AiChatMessageReactionPickerProps) => {
+ const { t } = useLingui();
+ const instanceId = useId();
+ const dropdownId = `ai-chat-message-reaction-picker-${instanceId}`;
+ const { closeDropdown } = useCloseDropdown();
+ const { toggleAgentChatMessageReaction } =
+ useToggleAgentChatMessageReaction();
+
+ const react = (emoji: string) => {
+ closeDropdown(dropdownId);
+ void toggleAgentChatMessageReaction({ messageId, emoji });
+ };
+
+ return (
+ <DropdownRoot dropdownId={dropdownId} type="panel">
+ <Dropdown.Trigger
+ render={
+ <LightIconButton aria-label={t`Add reaction`}>
+ <IconMoodSmile />
+ </LightIconButton>
+ }
+ />
+ <DropdownContent
+ width={AI_CHAT_MESSAGE_REACTION_PICKER_WIDTH_PX}
+ side="top"
+ align="start"
+ sideOffset={4}
+ aria-label={t`Add reaction`}
+ >
+ <StyledQuickReactions>
+ {AGENT_CHAT_QUICK_REACTION_EMOJIS.map((emoji) => (
+ <StyledEmojiButton
+ key={emoji}
+ type="button"
+ aria-label={emoji}
+ onClick={() => react(emoji)}
+ >
+ {emoji}
+ </StyledEmojiButton>
+ ))}
+ </StyledQuickReactions>
+ <StyledEmojiPicker>
+ <EmojiPicker.Root
+ emojibaseUrl={AGENT_CHAT_EMOJIBASE_URL}
+ columns={8}
+ onEmojiSelect={({ emoji }) => react(emoji)}
+ >
+ <EmojiPicker.Search placeholder={t`Search emojis`} />
+ <EmojiPicker.Viewport>
+ <EmojiPicker.Loading>
+ <StyledPickerMessage>{t`Loading emojis`}</StyledPickerMessage>
+ </EmojiPicker.Loading>
+ <EmojiPicker.Empty>
+ <StyledPickerMessage>{t`No emoji found`}</StyledPickerMessage>
+ </EmojiPicker.Empty>
+ <EmojiPicker.List />
+ </EmojiPicker.Viewport>
+ </EmojiPicker.Root>
+ </StyledEmojiPicker>
+ </DropdownContent>
+ </DropdownRoot>
+ );
+};
diff --git a/packages/twenty-front/src/modules/ai/components/AiChatMessageReactions.tsx b/packages/twenty-front/src/modules/ai/components/AiChatMessageReactions.tsx
new file mode 100644
index 00000000000..07b97f1def0
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/components/AiChatMessageReactions.tsx
@@ -0,0 +1,106 @@
+import { styled } from '@linaria/react';
+import { useLingui } from '@lingui/react/macro';
+import { isDefined } from 'twenty-shared/utils';
+import { themeCssVariables } from 'twenty-ui/theme';
+
+import { useToggleAgentChatMessageReaction } from '@/ai/hooks/useToggleAgentChatMessageReaction';
+import { agentChatMessageReactionsFamilyState } from '@/ai/states/agentChatMessageReactionsFamilyState';
+import { getAgentChatSenderLabel } from '@/ai/utils/getAgentChatSenderLabel';
+import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
+import { currentWorkspaceMembersState } from '@/auth/states/currentWorkspaceMembersState';
+import { useAtomFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilyStateValue';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+
+const StyledReactions = styled.div`
+ display: flex;
+ flex-wrap: wrap;
+ gap: ${themeCssVariables.spacing[1]};
+ margin-top: ${themeCssVariables.spacing[2]};
+`;
+
+const StyledReaction = styled.button<{ isSelected: boolean }>`
+ align-items: center;
+ background: ${({ isSelected }) =>
+ isSelected
+ ? themeCssVariables.accent.tertiary
+ : themeCssVariables.background.transparent.lighter};
+ border: 1px solid
+ ${({ isSelected }) =>
+ isSelected
+ ? themeCssVariables.border.color.blue
+ : themeCssVariables.border.color.medium};
+ border-radius: ${themeCssVariables.border.radius.pill};
+ color: ${themeCssVariables.font.color.secondary};
+ cursor: pointer;
+ display: flex;
+ font-family: inherit;
+ font-size: ${themeCssVariables.font.size.sm};
+ gap: ${themeCssVariables.spacing[1]};
+ height: ${themeCssVariables.spacing[6]};
+ padding: 0 ${themeCssVariables.spacing[2]};
+
+ &:hover {
+ background: ${themeCssVariables.background.transparent.light};
+ }
+`;
+
+type AiChatMessageReactionsProps = {
+ messageId: string;
+};
+
+export const AiChatMessageReactions = ({
+ messageId,
+}: AiChatMessageReactionsProps) => {
+ const { t } = useLingui();
+ const agentChatMessageReactions = useAtomFamilyStateValue(
+ agentChatMessageReactionsFamilyState,
+ { messageId },
+ );
+ const currentWorkspaceMember = useAtomStateValue(currentWorkspaceMemberState);
+ const currentWorkspaceMembers = useAtomStateValue(
+ currentWorkspaceMembersState,
+ );
+ const { toggleAgentChatMessageReaction } =
+ useToggleAgentChatMessageReaction();
+
+ if (agentChatMessageReactions.length === 0) {
+ return null;
+ }
+
+ return (
+ <StyledReactions>
+ {agentChatMessageReactions.map(({ emoji, workspaceMemberIds }) => {
+ const reactorNames = workspaceMemberIds
+ .map((workspaceMemberId) =>
+ getAgentChatSenderLabel({
+ sender: currentWorkspaceMembers.find(
+ ({ id }) => id === workspaceMemberId,
+ ),
+ isCurrentWorkspaceMember:
+ workspaceMemberId === currentWorkspaceMember?.id,
+ }),
+ )
+ .join(', ');
+ const isSelected =
+ isDefined(currentWorkspaceMember) &&
+ workspaceMemberIds.includes(currentWorkspaceMember.id);
+ const reactionCount = workspaceMemberIds.length;
+
+ return (
+ <StyledReaction
+ key={emoji}
+ type="button"
+ isSelected={isSelected}
+ aria-pressed={isSelected}
+ title={reactorNames}
+ aria-label={t`${emoji} by ${reactorNames}`}
+ onClick={() => toggleAgentChatMessageReaction({ messageId, emoji })}
+ >
+ <span aria-hidden>{emoji}</span>
+ <span aria-hidden>{reactionCount}</span>
+ </StyledReaction>
+ );
+ })}
+ </StyledReactions>
+ );
+};
diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AgentChatMessagesFetchEffect.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AgentChatMessagesFetchEffect.test.tsx
new file mode 100644
index 00000000000..298727dc00c
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AgentChatMessagesFetchEffect.test.tsx
@@ -0,0 +1,109 @@
+import { MockedProvider } from '@apollo/client/testing/react';
+import { render, waitFor } from '@testing-library/react';
+import { createStore, Provider as JotaiProvider } from 'jotai';
+
+import { AgentChatMessagesFetchEffect } from '@/ai/components/AgentChatMessagesFetchEffect';
+import { agentChatFetchedMessagesFamilyState } from '@/ai/states/agentChatFetchedMessagesFamilyState';
+import { agentChatLiveReactionRevisionsFamilyState } from '@/ai/states/agentChatLiveReactionRevisionsFamilyState';
+import { agentChatMessageReactionsFamilyState } from '@/ai/states/agentChatMessageReactionsFamilyState';
+import { currentAiChatThreadState } from '@/ai/states/currentAiChatThreadState';
+import { GetChatMessagesDocument } from '~/generated-metadata/graphql';
+
+const THREAD_ID = '20202020-0000-4000-8000-0000000000aa';
+const LIVE_MESSAGE_ID = '20202020-0000-4000-8000-0000000000bb';
+const FETCHED_MESSAGE_ID = '20202020-0000-4000-8000-0000000000cc';
+
+const buildFetchedMessage = (id: string) => ({
+ __typename: 'AgentMessage',
+ id,
+ threadId: THREAD_ID,
+ turnId: null,
+ senderWorkspaceMemberId: null,
+ role: 'user',
+ status: null,
+ createdAt: '2026-10-01T10:00:00.000Z',
+ processedAt: null,
+ parts: [],
+ reactions: [
+ {
+ __typename: 'AgentMessageReactionSummary',
+ emoji: 'πŸ‘',
+ workspaceMemberIds: ['julia'],
+ },
+ ],
+});
+
+const CHAT_MESSAGES_MOCK = {
+ request: {
+ query: GetChatMessagesDocument,
+ variables: { threadId: THREAD_ID },
+ },
+ result: {
+ data: {
+ chatMessages: [
+ buildFetchedMessage(LIVE_MESSAGE_ID),
+ buildFetchedMessage(FETCHED_MESSAGE_ID),
+ ],
+ chatStreamCatchupChunks: null,
+ },
+ },
+};
+
+describe('AgentChatMessagesFetchEffect', () => {
+ it('keeps reactions received live over the ones a fetch read', async () => {
+ const store = createStore();
+ const liveReactions = [
+ { emoji: 'πŸ‘', workspaceMemberIds: ['julia'] },
+ { emoji: 'πŸŽ‰', workspaceMemberIds: ['tom'] },
+ ];
+
+ store.set(currentAiChatThreadState.atom, THREAD_ID);
+ store.set(
+ agentChatLiveReactionRevisionsFamilyState.atomFamily({
+ threadId: THREAD_ID,
+ }),
+ { [LIVE_MESSAGE_ID]: 2 },
+ );
+ store.set(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: LIVE_MESSAGE_ID,
+ }),
+ liveReactions,
+ );
+
+ render(
+ <JotaiProvider store={store}>
+ <MockedProvider mocks={[CHAT_MESSAGES_MOCK]}>
+ <AgentChatMessagesFetchEffect />
+ </MockedProvider>
+ </JotaiProvider>,
+ );
+
+ await waitFor(() =>
+ expect(
+ store.get(
+ agentChatFetchedMessagesFamilyState.atomFamily({
+ threadId: THREAD_ID,
+ }),
+ ),
+ ).toHaveLength(2),
+ );
+
+ expect(
+ store.get(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: LIVE_MESSAGE_ID,
+ }),
+ ),
+ ).toEqual(liveReactions);
+ expect(
+ store.get(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: FETCHED_MESSAGE_ID,
+ }),
+ ),
+ ).toEqual([
+ expect.objectContaining({ emoji: 'πŸ‘', workspaceMemberIds: ['julia'] }),
+ ]);
+ });
+});
diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatMessage.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatMessage.test.tsx
index c920e18b759..796868bad81 100644
--- a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatMessage.test.tsx
+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatMessage.test.tsx
@@ -32,6 +32,14 @@ jest.mock('@/ai/components/AiChatAssistantMessageRenderer', () => ({
),
}));
+jest.mock('@/ai/components/AiChatMessageReactionPicker', () => ({
+ AiChatMessageReactionPicker: () => null,
+}));
+
+jest.mock('@/ai/components/AiChatMessageReactions', () => ({
+ AiChatMessageReactions: () => null,
+}));
+
jest.mock('@/ai/components/AiChatErrorRenderer', () => ({
AiChatErrorRenderer: ({ error }: { error: Error }) => <>{error.message}</>,
}));
diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatMessageReactions.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatMessageReactions.test.tsx
new file mode 100644
index 00000000000..8751d425bec
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatMessageReactions.test.tsx
@@ -0,0 +1,116 @@
+import { i18n } from '@lingui/core';
+import { I18nProvider } from '@lingui/react';
+import { render, screen } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
+import { Provider as JotaiProvider } from 'jotai';
+import { SOURCE_LOCALE } from 'twenty-shared/translations';
+
+import { AiChatMessageReactions } from '@/ai/components/AiChatMessageReactions';
+import { agentChatMessageReactionsFamilyState } from '@/ai/states/agentChatMessageReactionsFamilyState';
+import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
+import { currentWorkspaceMembersState } from '@/auth/states/currentWorkspaceMembersState';
+import {
+ jotaiStore,
+ resetJotaiStore,
+} from '@/ui/utilities/state/jotai/jotaiStore';
+import { messages } from '~/locales/generated/en';
+
+i18n.load({ [SOURCE_LOCALE]: messages });
+i18n.activate(SOURCE_LOCALE);
+
+const mockToggleAgentChatMessageReaction = jest.fn();
+
+jest.mock('@/ai/hooks/useToggleAgentChatMessageReaction', () => ({
+ useToggleAgentChatMessageReaction: () => ({
+ toggleAgentChatMessageReaction: mockToggleAgentChatMessageReaction,
+ }),
+}));
+
+const MESSAGE_ID = 'message-id';
+const CURRENT_MEMBER_ID = '2a7c9e1f-3b4d-4e5f-8a6b-1c2d3e4f5a6b';
+const OTHER_MEMBER_ID = '9f8e7d6c-5b4a-4c3d-9e2f-1a0b9c8d7e6f';
+
+const buildWorkspaceMember = (id: string, firstName: string) => ({
+ id,
+ userId: `user-${id}`,
+ name: { firstName, lastName: 'Martin' },
+ colorScheme: 'Light' as const,
+ locale: 'en',
+ userEmail: `${firstName.toLowerCase()}@example.com`,
+ avatarUrl: null,
+});
+
+const renderReactions = () =>
+ render(
+ <JotaiProvider store={jotaiStore}>
+ <I18nProvider i18n={i18n}>
+ <AiChatMessageReactions messageId={MESSAGE_ID} />
+ </I18nProvider>
+ </JotaiProvider>,
+ );
+
+describe('AiChatMessageReactions', () => {
+ beforeEach(() => {
+ resetJotaiStore();
+ mockToggleAgentChatMessageReaction.mockClear();
+
+ jotaiStore.set(
+ currentWorkspaceMemberState.atom,
+ buildWorkspaceMember(CURRENT_MEMBER_ID, 'Julia'),
+ );
+ jotaiStore.set(currentWorkspaceMembersState.atom, [
+ buildWorkspaceMember(CURRENT_MEMBER_ID, 'Julia'),
+ buildWorkspaceMember(OTHER_MEMBER_ID, 'Tom'),
+ ]);
+ });
+
+ it('shows nothing without reactions', () => {
+ const { container } = renderReactions();
+
+ expect(container).toBeEmptyDOMElement();
+ });
+
+ it('shows each emoji with who used it and marks your own', () => {
+ jotaiStore.set(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: MESSAGE_ID,
+ }),
+ [
+ {
+ emoji: 'πŸ‘',
+ workspaceMemberIds: [OTHER_MEMBER_ID, CURRENT_MEMBER_ID],
+ },
+ { emoji: 'πŸŽ‰', workspaceMemberIds: [OTHER_MEMBER_ID] },
+ ],
+ );
+
+ renderReactions();
+
+ expect(
+ screen.getByRole('button', { name: 'πŸ‘ by Tom Martin, You' }),
+ ).toHaveAttribute('aria-pressed', 'true');
+ expect(
+ screen.getByRole('button', { name: 'πŸŽ‰ by Tom Martin' }),
+ ).toHaveAttribute('aria-pressed', 'false');
+ });
+
+ it('toggles your reaction when you click an emoji', async () => {
+ jotaiStore.set(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: MESSAGE_ID,
+ }),
+ [{ emoji: 'πŸŽ‰', workspaceMemberIds: [OTHER_MEMBER_ID] }],
+ );
+
+ renderReactions();
+
+ await userEvent.click(
+ screen.getByRole('button', { name: 'πŸŽ‰ by Tom Martin' }),
+ );
+
+ expect(mockToggleAgentChatMessageReaction).toHaveBeenCalledWith({
+ messageId: MESSAGE_ID,
+ emoji: 'πŸŽ‰',
+ });
+ });
+});
diff --git a/packages/twenty-front/src/modules/ai/constants/AgentChatEmojibaseUrl.ts b/packages/twenty-front/src/modules/ai/constants/AgentChatEmojibaseUrl.ts
new file mode 100644
index 00000000000..e0045a37cee
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/constants/AgentChatEmojibaseUrl.ts
@@ -0,0 +1 @@
+export const AGENT_CHAT_EMOJIBASE_URL = '/emojibase';
diff --git a/packages/twenty-front/src/modules/ai/constants/AgentChatQuickReactionEmojis.ts b/packages/twenty-front/src/modules/ai/constants/AgentChatQuickReactionEmojis.ts
new file mode 100644
index 00000000000..b843627eb29
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/constants/AgentChatQuickReactionEmojis.ts
@@ -0,0 +1,8 @@
+export const AGENT_CHAT_QUICK_REACTION_EMOJIS = [
+ 'πŸ‘',
+ '❀️',
+ 'πŸ˜‚',
+ 'πŸŽ‰',
+ 'πŸ‘€',
+ 'πŸ™',
+];
diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/addAgentChatMessageReaction.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/addAgentChatMessageReaction.ts
new file mode 100644
index 00000000000..01be047d35e
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/graphql/mutations/addAgentChatMessageReaction.ts
@@ -0,0 +1,10 @@
+import { gql } from '@apollo/client';
+
+export const ADD_AGENT_CHAT_MESSAGE_REACTION = gql`
+ mutation AddAgentChatMessageReaction($messageId: UUID!, $emoji: String!) {
+ addAgentChatMessageReaction(messageId: $messageId, emoji: $emoji) {
+ emoji
+ workspaceMemberIds
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/removeAgentChatMessageReaction.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/removeAgentChatMessageReaction.ts
new file mode 100644
index 00000000000..f987dc79084
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/graphql/mutations/removeAgentChatMessageReaction.ts
@@ -0,0 +1,10 @@
+import { gql } from '@apollo/client';
+
+export const REMOVE_AGENT_CHAT_MESSAGE_REACTION = gql`
+ mutation RemoveAgentChatMessageReaction($messageId: UUID!, $emoji: String!) {
+ removeAgentChatMessageReaction(messageId: $messageId, emoji: $emoji) {
+ emoji
+ workspaceMemberIds
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/ai/graphql/queries/getChatMessages.ts b/packages/twenty-front/src/modules/ai/graphql/queries/getChatMessages.ts
index 5772120a8cf..e71b72e54b2 100644
--- a/packages/twenty-front/src/modules/ai/graphql/queries/getChatMessages.ts
+++ b/packages/twenty-front/src/modules/ai/graphql/queries/getChatMessages.ts
@@ -39,6 +39,10 @@ export const GET_CHAT_MESSAGES = gql`
providerMetadata
createdAt
}
+ reactions {
+ emoji
+ workspaceMemberIds
+ }
}
chatStreamCatchupChunks(threadId: $threadId) {
chunks
diff --git a/packages/twenty-front/src/modules/ai/hooks/__tests__/useAgentChatSubscription.test.tsx b/packages/twenty-front/src/modules/ai/hooks/__tests__/useAgentChatSubscription.test.tsx
index bd71667bd82..a26f695f2a8 100644
--- a/packages/twenty-front/src/modules/ai/hooks/__tests__/useAgentChatSubscription.test.tsx
+++ b/packages/twenty-front/src/modules/ai/hooks/__tests__/useAgentChatSubscription.test.tsx
@@ -4,6 +4,7 @@ import { type ReactNode } from 'react';
import { AGENT_CHAT_REFETCH_MESSAGES_EVENT_NAME } from '@/ai/constants/AgentChatRefetchMessagesEventName';
import { useAgentChatSubscription } from '@/ai/hooks/useAgentChatSubscription';
+import { agentChatMessageReactionsFamilyState } from '@/ai/states/agentChatMessageReactionsFamilyState';
import { agentChatMessagesFamilyState } from '@/ai/states/agentChatMessagesFamilyState';
import { agentChatFetchedMessagesFamilyState } from '@/ai/states/agentChatFetchedMessagesFamilyState';
import { agentChatQueuedMessagesFamilyState } from '@/ai/states/agentChatQueuedMessagesFamilyState';
@@ -280,3 +281,53 @@ describe('Stream liveness', () => {
expect(jotaiStore.get(errorAtom)).toBeNull();
});
});
+
+describe('Message reactions', () => {
+ beforeEach(() => {
+ jest.clearAllMocks();
+ resetJotaiStore();
+ subscribe.mockReturnValue(disconnect);
+ jotaiStore.set(sseClientState.atom, { subscribe } as never);
+ });
+
+ it('keeps the newest snapshot when snapshots arrive out of order', () => {
+ const { unmount } = renderHook(() => useAgentChatSubscription('thread'), {
+ wrapper: Wrapper,
+ });
+ const sendReactions = (
+ revision: number,
+ reactions: { emoji: string; workspaceMemberIds: string[] }[],
+ ) =>
+ subscribe.mock.calls[0][1].next({
+ data: {
+ onAgentChatEvent: {
+ threadId: 'thread',
+ event: {
+ type: 'message-reactions-updated',
+ messageId: 'message',
+ reactions,
+ revision,
+ },
+ },
+ },
+ });
+ const newerReactions = [
+ { emoji: 'πŸ‘', workspaceMemberIds: ['julia'] },
+ { emoji: 'πŸŽ‰', workspaceMemberIds: ['tom'] },
+ ];
+
+ act(() => {
+ sendReactions(2, newerReactions);
+ sendReactions(1, [{ emoji: 'πŸ‘', workspaceMemberIds: ['julia'] }]);
+ });
+
+ expect(
+ jotaiStore.get(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: 'message',
+ }),
+ ),
+ ).toEqual(newerReactions);
+ unmount();
+ });
+});
diff --git a/packages/twenty-front/src/modules/ai/hooks/__tests__/useToggleAgentChatMessageReaction.test.tsx b/packages/twenty-front/src/modules/ai/hooks/__tests__/useToggleAgentChatMessageReaction.test.tsx
new file mode 100644
index 00000000000..b33bd7bc7d7
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/hooks/__tests__/useToggleAgentChatMessageReaction.test.tsx
@@ -0,0 +1,186 @@
+import { act, renderHook } from '@testing-library/react';
+import { createStore, Provider } from 'jotai';
+import { type ReactNode } from 'react';
+
+import { useToggleAgentChatMessageReaction } from '@/ai/hooks/useToggleAgentChatMessageReaction';
+import { agentChatLiveReactionRevisionsFamilyState } from '@/ai/states/agentChatLiveReactionRevisionsFamilyState';
+import { agentChatMessageReactionsFamilyState } from '@/ai/states/agentChatMessageReactionsFamilyState';
+import { currentAiChatThreadState } from '@/ai/states/currentAiChatThreadState';
+import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
+
+const THREAD_ID = 'thread-id';
+const MESSAGE_ID = 'message-id';
+const WORKSPACE_MEMBER_ID = 'julia';
+
+const mutate = jest.fn();
+const enqueueToast = jest.fn();
+
+jest.mock('@apollo/client/react', () => ({
+ ...jest.requireActual('@apollo/client/react'),
+ useApolloClient: () => ({ mutate }),
+}));
+
+jest.mock('twenty-ui/components/feedback', () => ({
+ ...jest.requireActual('twenty-ui/components/feedback'),
+ useToast: () => ({ enqueueToast }),
+}));
+
+const renderToggleReaction = () => {
+ const store = createStore();
+
+ store.set(currentWorkspaceMemberState.atom, {
+ id: WORKSPACE_MEMBER_ID,
+ } as never);
+ store.set(currentAiChatThreadState.atom, THREAD_ID);
+
+ const { result } = renderHook(() => useToggleAgentChatMessageReaction(), {
+ wrapper: ({ children }: { children: ReactNode }) => (
+ <Provider store={store}>{children}</Provider>
+ ),
+ });
+
+ const getReactions = () =>
+ store.get(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: MESSAGE_ID,
+ }),
+ );
+
+ return { result, getReactions, store };
+};
+
+describe('useToggleAgentChatMessageReaction', () => {
+ beforeEach(() => {
+ jest.clearAllMocks();
+ });
+
+ it('takes back only the refused reaction when another one was added meanwhile', async () => {
+ let refuseThumbsUp: (error: Error) => void = () => undefined;
+
+ mutate
+ .mockReturnValueOnce(
+ new Promise((_resolve, reject) => {
+ refuseThumbsUp = reject;
+ }),
+ )
+ .mockResolvedValueOnce({ data: {} });
+
+ const { result, getReactions } = renderToggleReaction();
+
+ let thumbsUpToggle: Promise<void> = Promise.resolve();
+
+ await act(async () => {
+ thumbsUpToggle = result.current.toggleAgentChatMessageReaction({
+ messageId: MESSAGE_ID,
+ emoji: 'πŸ‘',
+ });
+ await result.current.toggleAgentChatMessageReaction({
+ messageId: MESSAGE_ID,
+ emoji: 'πŸŽ‰',
+ });
+ });
+
+ expect(getReactions()).toEqual([
+ { emoji: 'πŸ‘', workspaceMemberIds: [WORKSPACE_MEMBER_ID] },
+ { emoji: 'πŸŽ‰', workspaceMemberIds: [WORKSPACE_MEMBER_ID] },
+ ]);
+
+ await act(async () => {
+ refuseThumbsUp(new Error('Network error'));
+ await thumbsUpToggle;
+ });
+
+ expect(getReactions()).toEqual([
+ { emoji: 'πŸŽ‰', workspaceMemberIds: [WORKSPACE_MEMBER_ID] },
+ ]);
+ expect(enqueueToast).toHaveBeenCalledTimes(1);
+ });
+
+ it('sends changes to one emoji in order and keeps the newest choice when an older one fails', async () => {
+ let refuseAdd: (error: Error) => void = () => undefined;
+
+ mutate
+ .mockReturnValueOnce(
+ new Promise((_resolve, reject) => {
+ refuseAdd = reject;
+ }),
+ )
+ .mockResolvedValueOnce({ data: {} });
+
+ const { result, getReactions } = renderToggleReaction();
+
+ let addToggle: Promise<void> = Promise.resolve();
+ let removeToggle: Promise<void> = Promise.resolve();
+
+ await act(async () => {
+ addToggle = result.current.toggleAgentChatMessageReaction({
+ messageId: MESSAGE_ID,
+ emoji: 'πŸ‘',
+ });
+ removeToggle = result.current.toggleAgentChatMessageReaction({
+ messageId: MESSAGE_ID,
+ emoji: 'πŸ‘',
+ });
+ });
+
+ expect(mutate).toHaveBeenCalledTimes(1);
+ expect(getReactions()).toEqual([]);
+
+ await act(async () => {
+ refuseAdd(new Error('Network error'));
+ await Promise.all([addToggle, removeToggle]);
+ });
+
+ expect(mutate).toHaveBeenCalledTimes(2);
+ expect(mutate.mock.calls[1][0].variables).toEqual({
+ messageId: MESSAGE_ID,
+ emoji: 'πŸ‘',
+ });
+ expect(getReactions()).toEqual([]);
+ expect(enqueueToast).toHaveBeenCalledTimes(1);
+ });
+
+ it('keeps the state a live snapshot showed when the request then fails', async () => {
+ let failAdd: (error: Error) => void = () => undefined;
+
+ mutate.mockReturnValueOnce(
+ new Promise((_resolve, reject) => {
+ failAdd = reject;
+ }),
+ );
+
+ const { result, getReactions, store } = renderToggleReaction();
+ const confirmedReactions = [
+ { emoji: 'πŸ‘', workspaceMemberIds: [WORKSPACE_MEMBER_ID] },
+ ];
+
+ let addToggle: Promise<void> = Promise.resolve();
+
+ await act(async () => {
+ addToggle = result.current.toggleAgentChatMessageReaction({
+ messageId: MESSAGE_ID,
+ emoji: 'πŸ‘',
+ });
+ });
+
+ await act(async () => {
+ store.set(
+ agentChatLiveReactionRevisionsFamilyState.atomFamily({
+ threadId: THREAD_ID,
+ }),
+ { [MESSAGE_ID]: 1 },
+ );
+ store.set(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: MESSAGE_ID,
+ }),
+ confirmedReactions,
+ );
+ failAdd(new Error('Network error'));
+ await addToggle;
+ });
+
+ expect(getReactions()).toEqual(confirmedReactions);
+ expect(enqueueToast).toHaveBeenCalledTimes(1);
+ });
+});
diff --git a/packages/twenty-front/src/modules/ai/hooks/useAgentChatSubscription.ts b/packages/twenty-front/src/modules/ai/hooks/useAgentChatSubscription.ts
index cc0f0367b0f..9d8e338e888 100644
--- a/packages/twenty-front/src/modules/ai/hooks/useAgentChatSubscription.ts
+++ b/packages/twenty-front/src/modules/ai/hooks/useAgentChatSubscription.ts
@@ -1,6 +1,8 @@
import { useRefreshAgentChatThreadPermissions } from '@/ai/hooks/useRefreshAgentChatThreadPermissions';
import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState';
import { isGraphqlErrorOfType } from '~/utils/is-graphql-error-of-type.util';
+import { agentChatMessageReactionsFamilyState } from '@/ai/states/agentChatMessageReactionsFamilyState';
+import { agentChatLiveReactionRevisionsFamilyState } from '@/ai/states/agentChatLiveReactionRevisionsFamilyState';
import { agentChatFetchedMessagesFamilyState } from '@/ai/states/agentChatFetchedMessagesFamilyState';
import { agentChatQueuedMessagesFamilyState } from '@/ai/states/agentChatQueuedMessagesFamilyState';
import { useRefreshAgentChatThreads } from '@/ai/hooks/useRefreshAgentChatThreads';
@@ -87,6 +89,11 @@ export const useAgentChatSubscription = (threadId: string | null) => {
const queuedMessagesAtom =
agentChatQueuedMessagesFamilyState.atomFamily(familyKey);
const usageAtom = agentChatUsageFamilyState.atomFamily(familyKey);
+ const liveReactionRevisionsAtom =
+ agentChatLiveReactionRevisionsFamilyState.atomFamily(familyKey);
+
+ // Changes made while unsubscribed were missed, so fetches must fill them in again
+ store.set(liveReactionRevisionsAtom, {});
let bridge: TransformStream<UIMessageChunk> | null = null;
let throttleTimer: ReturnType<typeof setTimeout> | null = null;
@@ -260,6 +267,27 @@ export const useAgentChatSubscription = (threadId: string | null) => {
break;
}
+ case 'message-reactions-updated': {
+ const liveRevisions = store.get(liveReactionRevisionsAtom);
+ const appliedRevision = liveRevisions[event.messageId];
+
+ if (isDefined(appliedRevision) && event.revision < appliedRevision) {
+ break;
+ }
+
+ store.set(liveReactionRevisionsAtom, {
+ ...liveRevisions,
+ [event.messageId]: event.revision,
+ });
+ store.set(
+ agentChatMessageReactionsFamilyState.atomFamily({
+ messageId: event.messageId,
+ }),
+ event.reactions,
+ );
+ break;
+ }
+
case 'queue-updated': {
dispatchBrowserEvent(AGENT_CHAT_REFETCH_MESSAGES_EVENT_NAME);
break;
diff --git a/packages/twenty-front/src/modules/ai/hooks/useToggleAgentChatMessageReaction.ts b/packages/twenty-front/src/modules/ai/hooks/useToggleAgentChatMessageReaction.ts
new file mode 100644
index 00000000000..b9878dad62d
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/hooks/useToggleAgentChatMessageReaction.ts
@@ -0,0 +1,112 @@
+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 { agentChatLiveReactionRevisionsFamilyState } from '@/ai/states/agentChatLiveReactionRevisionsFamilyState';
+import { agentChatMessageReactionsFamilyState } from '@/ai/states/agentChatMessageReactionsFamilyState';
+import { currentAiChatThreadState } from '@/ai/states/currentAiChatThreadState';
+import { setAgentMessageReaction } from '@/ai/utils/setAgentMessageReaction';
+import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
+import { getToastOptionsFromError } from '@/error-handler/utils/getToastOptionsFromError';
+import {
+ AddAgentChatMessageReactionDocument,
+ RemoveAgentChatMessageReactionDocument,
+} from '~/generated-metadata/graphql';
+
+type ReactionRequestQueue = {
+ lastRequest: Promise<void>;
+ isConfirmedReacted: boolean;
+};
+
+// Shared by every caller so one emoji's changes reach the server in the order they were made
+const reactionRequestQueues = new Map<string, ReactionRequestQueue>();
+
+export const useToggleAgentChatMessageReaction = () => {
+ const apolloClient = useApolloClient();
+ const store = useStore();
+ const { enqueueToast } = useToast();
+
+ // Live snapshots carry the server's state, so a refused change only takes back its own reaction
+ const toggleAgentChatMessageReaction = useCallback(
+ async ({ messageId, emoji }: { messageId: string; emoji: string }) => {
+ const workspaceMemberId = store.get(currentWorkspaceMemberState.atom)?.id;
+
+ if (!isDefined(workspaceMemberId)) {
+ return;
+ }
+
+ const reactionsAtom = agentChatMessageReactionsFamilyState.atomFamily({
+ messageId,
+ });
+ const hasReacted = store
+ .get(reactionsAtom)
+ .some(
+ (reaction) =>
+ reaction.emoji === emoji &&
+ reaction.workspaceMemberIds.includes(workspaceMemberId),
+ );
+
+ const setOwnReaction = (isReacted: boolean) =>
+ store.set(
+ reactionsAtom,
+ setAgentMessageReaction({
+ reactions: store.get(reactionsAtom),
+ emoji,
+ workspaceMemberId,
+ isReacted,
+ }),
+ );
+
+ setOwnReaction(!hasReacted);
+
+ const queueKey = `${messageId}:${emoji}`;
+ const queue = reactionRequestQueues.get(queueKey) ?? {
+ lastRequest: Promise.resolve(),
+ isConfirmedReacted: hasReacted,
+ };
+
+ const liveRevisionsAtom =
+ agentChatLiveReactionRevisionsFamilyState.atomFamily({
+ threadId: store.get(currentAiChatThreadState.atom),
+ });
+ const readLiveRevision = () => store.get(liveRevisionsAtom)[messageId];
+
+ const request = queue.lastRequest.then(async () => {
+ const liveRevisionBeforeRequest = readLiveRevision();
+
+ try {
+ await apolloClient.mutate({
+ mutation: hasReacted
+ ? RemoveAgentChatMessageReactionDocument
+ : AddAgentChatMessageReactionDocument,
+ variables: { messageId, emoji },
+ });
+ queue.isConfirmedReacted = !hasReacted;
+ } catch (error) {
+ // A newer change, or a live snapshot of the server's state, settles the reaction instead
+ if (
+ queue.lastRequest === request &&
+ readLiveRevision() === liveRevisionBeforeRequest
+ ) {
+ setOwnReaction(queue.isConfirmedReacted);
+ }
+ enqueueToast(getToastOptionsFromError({ error }));
+ }
+ });
+
+ queue.lastRequest = request;
+ reactionRequestQueues.set(queueKey, queue);
+
+ await request;
+
+ if (queue.lastRequest === request) {
+ reactionRequestQueues.delete(queueKey);
+ }
+ },
+ [apolloClient, enqueueToast, store],
+ );
+
+ return { toggleAgentChatMessageReaction };
+};
diff --git a/packages/twenty-front/src/modules/ai/states/agentChatLiveReactionRevisionsFamilyState.ts b/packages/twenty-front/src/modules/ai/states/agentChatLiveReactionRevisionsFamilyState.ts
new file mode 100644
index 00000000000..67c9de7ebb8
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/states/agentChatLiveReactionRevisionsFamilyState.ts
@@ -0,0 +1,9 @@
+import { createAtomFamilyState } from '@/ui/utilities/state/jotai/utils/createAtomFamilyState';
+
+export const agentChatLiveReactionRevisionsFamilyState = createAtomFamilyState<
+ Record<string, number>,
+ { threadId: string | null }
+>({
+ key: 'agentChatLiveReactionRevisionsFamilyState',
+ defaultValue: {},
+});
diff --git a/packages/twenty-front/src/modules/ai/states/agentChatMessageReactionsFamilyState.ts b/packages/twenty-front/src/modules/ai/states/agentChatMessageReactionsFamilyState.ts
new file mode 100644
index 00000000000..b56cdef3e78
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/states/agentChatMessageReactionsFamilyState.ts
@@ -0,0 +1,12 @@
+import { type AgentMessageReactionSummary } from 'twenty-shared/ai';
+
+import { createAtomFamilyState } from '@/ui/utilities/state/jotai/utils/createAtomFamilyState';
+
+// Kept apart from the messages, which a stream or a refetch replaces wholesale
+export const agentChatMessageReactionsFamilyState = createAtomFamilyState<
+ AgentMessageReactionSummary[],
+ { messageId: string }
+>({
+ key: 'agentChatMessageReactionsFamilyState',
+ defaultValue: [],
+});
diff --git a/packages/twenty-front/src/modules/ai/utils/__tests__/setAgentMessageReaction.test.ts b/packages/twenty-front/src/modules/ai/utils/__tests__/setAgentMessageReaction.test.ts
new file mode 100644
index 00000000000..b410181b7e3
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/utils/__tests__/setAgentMessageReaction.test.ts
@@ -0,0 +1,77 @@
+import { setAgentMessageReaction } from '@/ai/utils/setAgentMessageReaction';
+
+const JULIA_ID = 'julia';
+const TOM_ID = 'tom';
+
+describe('setAgentMessageReaction', () => {
+ it('adds a new emoji after the existing ones', () => {
+ expect(
+ setAgentMessageReaction({
+ reactions: [{ emoji: 'πŸ‘', workspaceMemberIds: [TOM_ID] }],
+ emoji: 'πŸŽ‰',
+ workspaceMemberId: JULIA_ID,
+ isReacted: true,
+ }),
+ ).toEqual([
+ { emoji: 'πŸ‘', workspaceMemberIds: [TOM_ID] },
+ { emoji: 'πŸŽ‰', workspaceMemberIds: [JULIA_ID] },
+ ]);
+ });
+
+ it('joins an emoji someone else used', () => {
+ expect(
+ setAgentMessageReaction({
+ reactions: [{ emoji: 'πŸ‘', workspaceMemberIds: [TOM_ID] }],
+ emoji: 'πŸ‘',
+ workspaceMemberId: JULIA_ID,
+ isReacted: true,
+ }),
+ ).toEqual([{ emoji: 'πŸ‘', workspaceMemberIds: [TOM_ID, JULIA_ID] }]);
+ });
+
+ it('removes the member from an emoji they used', () => {
+ expect(
+ setAgentMessageReaction({
+ reactions: [{ emoji: 'πŸ‘', workspaceMemberIds: [TOM_ID, JULIA_ID] }],
+ emoji: 'πŸ‘',
+ workspaceMemberId: JULIA_ID,
+ isReacted: false,
+ }),
+ ).toEqual([{ emoji: 'πŸ‘', workspaceMemberIds: [TOM_ID] }]);
+ });
+
+ it('drops an emoji nobody uses anymore', () => {
+ expect(
+ setAgentMessageReaction({
+ reactions: [
+ { emoji: 'πŸ‘', workspaceMemberIds: [JULIA_ID] },
+ { emoji: 'πŸŽ‰', workspaceMemberIds: [TOM_ID] },
+ ],
+ emoji: 'πŸ‘',
+ workspaceMemberId: JULIA_ID,
+ isReacted: false,
+ }),
+ ).toEqual([{ emoji: 'πŸŽ‰', workspaceMemberIds: [TOM_ID] }]);
+ });
+
+ it('leaves the reactions as they are when they already match', () => {
+ const reactions = [{ emoji: 'πŸ‘', workspaceMemberIds: [JULIA_ID] }];
+
+ expect(
+ setAgentMessageReaction({
+ reactions,
+ emoji: 'πŸ‘',
+ workspaceMemberId: JULIA_ID,
+ isReacted: true,
+ }),
+ ).toBe(reactions);
+ expect(
+ setAgentMessageReaction({
+ reactions,
+ emoji: 'πŸŽ‰',
+ workspaceMemberId: JULIA_ID,
+ isReacted: false,
+ }),
+ ).toBe(reactions);
+ });
+});
diff --git a/packages/twenty-front/src/modules/ai/utils/setAgentMessageReaction.ts b/packages/twenty-front/src/modules/ai/utils/setAgentMessageReaction.ts
new file mode 100644
index 00000000000..8e1155ceae2
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/utils/setAgentMessageReaction.ts
@@ -0,0 +1,46 @@
+import { type AgentMessageReactionSummary } from 'twenty-shared/ai';
+import { isDefined } from 'twenty-shared/utils';
+
+export const setAgentMessageReaction = ({
+ reactions,
+ emoji,
+ workspaceMemberId,
+ isReacted,
+}: {
+ reactions: AgentMessageReactionSummary[];
+ emoji: string;
+ workspaceMemberId: string;
+ isReacted: boolean;
+}): AgentMessageReactionSummary[] => {
+ const existingReaction = reactions.find(
+ (reaction) => reaction.emoji === emoji,
+ );
+
+ if (!isDefined(existingReaction)) {
+ return isReacted
+ ? [...reactions, { emoji, workspaceMemberIds: [workspaceMemberId] }]
+ : reactions;
+ }
+
+ if (
+ existingReaction.workspaceMemberIds.includes(workspaceMemberId) ===
+ isReacted
+ ) {
+ return reactions;
+ }
+
+ return reactions
+ .map((reaction) =>
+ reaction.emoji !== emoji
+ ? reaction
+ : {
+ emoji,
+ workspaceMemberIds: isReacted
+ ? [...reaction.workspaceMemberIds, workspaceMemberId]
+ : reaction.workspaceMemberIds.filter(
+ (id) => id !== workspaceMemberId,
+ ),
+ },
+ )
+ .filter((reaction) => reaction.workspaceMemberIds.length > 0);
+};
diff --git a/packages/twenty-front/vite.config.ts b/packages/twenty-front/vite.config.ts
index 661970f0cb1..0aa50f782f5 100644
--- a/packages/twenty-front/vite.config.ts
+++ b/packages/twenty-front/vite.config.ts
@@ -3,6 +3,7 @@ import { isNonEmptyString } from '@sniptt/guards';
import react from '@vitejs/plugin-react-swc';
import wyw from '@wyw-in-js/vite';
import fs from 'fs';
+import { createRequire } from 'module';
import { Features } from 'lightningcss';
import path from 'path';
import { visualizer } from 'rollup-plugin-visualizer';
@@ -21,6 +22,45 @@ import {
buildApiProxyMatcher,
} from './src/config/apiProxyPrefixes';
+const EMOJIBASE_DATA_FILE_NAMES = ['data.json', 'messages.json'];
+
+// The emoji picker fetches Emojibase data at runtime; serving it ourselves
+// keeps it working where its default CDN is unreachable
+const emojibaseDataPlugin = (): PluginOption => {
+ const emojibaseDataDirectory = path.dirname(
+ createRequire(import.meta.url).resolve('emojibase-data/en/data.json'),
+ );
+
+ return {
+ name: 'emojibase-data',
+ configureServer: (server) => {
+ server.middlewares.use('/emojibase/en', (request, response, next) => {
+ const fileName = (request.url ?? '').replace(/^\//, '');
+
+ if (!EMOJIBASE_DATA_FILE_NAMES.includes(fileName)) {
+ next();
+
+ return;
+ }
+
+ response.setHeader('Content-Type', 'application/json');
+ response.end(
+ fs.readFileSync(path.join(emojibaseDataDirectory, fileName)),
+ );
+ });
+ },
+ generateBundle() {
+ for (const fileName of EMOJIBASE_DATA_FILE_NAMES) {
+ this.emitFile({
+ type: 'asset',
+ fileName: `emojibase/en/${fileName}`,
+ source: fs.readFileSync(path.join(emojibaseDataDirectory, fileName)),
+ });
+ }
+ },
+ };
+};
+
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, __dirname, '');
@@ -93,6 +133,7 @@ export default defineConfig(({ mode }) => {
plugins: [['@lingui/swc-plugin', {}]],
}),
svgr(),
+ emojibaseDataPlugin(),
lingui({
configPath: path.resolve(__dirname, './lingui.config.ts'),
}),
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-48/2-48-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-48/2-48-upgrade-version-command.module.ts
index e20ce8921e6..7c44566a405 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-48/2-48-upgrade-version-command.module.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-48/2-48-upgrade-version-command.module.ts
@@ -10,6 +10,7 @@ import { RemoveWorkflowRunIndexWorkflowVersionColumnCommand } from 'src/database
import { SyncCampaignComposerStandardMetadataCommand } from 'src/database/commands/upgrade-version-command/2-48/2-48-workspace-command-1792064982496-sync-campaign-composer-standard-metadata.command';
import { FlushWorkflowAutomatedTriggerMapsCommand } from 'src/database/commands/upgrade-version-command/2-48/2-48-workspace-command-1792068879353-flush-workflow-automated-trigger-maps.command';
import { CopyMorphRelationReferencesToHeadsCommand } from 'src/database/commands/upgrade-version-command/2-48/2-48-workspace-command-1792070263989-copy-morph-relation-references-to-heads.command';
+import { AddAgentMessageReactionObjectCommand } from 'src/database/commands/upgrade-version-command/2-48/2-48-workspace-command-1792072097024-add-agent-message-reaction-object.command';
import { ApplicationModule } from 'src/engine/core-modules/application/application.module';
import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache.module';
import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace-migration/workspace-migration.module';
@@ -31,6 +32,7 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace
SyncCampaignComposerStandardMetadataCommand,
FlushWorkflowAutomatedTriggerMapsCommand,
CopyMorphRelationReferencesToHeadsCommand,
+ AddAgentMessageReactionObjectCommand,
],
})
export class V2_48_UpgradeVersionCommandModule {}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-48/2-48-workspace-command-1792072097024-add-agent-message-reaction-object.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-48/2-48-workspace-command-1792072097024-add-agent-message-reaction-object.command.ts
new file mode 100644
index 00000000000..01b7af481ba
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-48/2-48-workspace-command-1792072097024-add-agent-message-reaction-object.command.ts
@@ -0,0 +1,230 @@
+import { Command } from 'nest-commander';
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import { isDefined } from 'twenty-shared/utils';
+
+import { ProvisionedWorkspaceCommandRunner } from 'src/database/commands/command-runners/provisioned-workspace.command-runner';
+import { WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service';
+import { type RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspace.command-runner';
+import { getStandardFlatEntitiesToCreateOrThrow } from 'src/database/commands/upgrade-version-command/2-10/utils/get-standard-flat-entities-to-create-or-throw.util';
+import { ApplicationService } from 'src/engine/core-modules/application/application.service';
+import { RegisteredWorkspaceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-workspace-command.decorator';
+import { findFlatEntityByUniversalIdentifier } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-universal-identifier.util';
+import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
+import { type FlatIndexMetadata } from 'src/engine/metadata-modules/flat-index-metadata/types/flat-index-metadata.type';
+import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object-metadata/types/flat-object-metadata.type';
+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';
+import { WorkspaceMigrationBuilderException } from 'src/engine/workspace-manager/workspace-migration/exceptions/workspace-migration-builder-exception';
+import { WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service';
+
+const REACTION_OBJECT_UNIVERSAL_IDENTIFIER =
+ STANDARD_OBJECTS.agentMessageReaction.universalIdentifier;
+
+const EXISTING_OBJECT_FIELD_UNIVERSAL_IDENTIFIERS = [
+ STANDARD_OBJECTS.agentMessage.fields.reactions.universalIdentifier,
+ STANDARD_OBJECTS.workspaceMember.fields.agentMessageReactions
+ .universalIdentifier,
+];
+
+@RegisteredWorkspaceCommand('2.48.0', 1792072097024)
+@Command({
+ name: 'upgrade:2-48:add-agent-message-reaction-object',
+ description:
+ 'Create the agentMessageReaction object holding emoji reactions to chat messages',
+})
+export class AddAgentMessageReactionObjectCommand extends ProvisionedWorkspaceCommandRunner {
+ constructor(
+ protected readonly workspaceIteratorService: WorkspaceIteratorService,
+ private readonly applicationService: ApplicationService,
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService,
+ ) {
+ super(workspaceIteratorService);
+ }
+
+ override async runOnWorkspace(args: RunOnWorkspaceArgs): Promise<void> {
+ await this.up(args);
+ }
+
+ async up({ workspaceId, options }: RunOnWorkspaceArgs): Promise<void> {
+ const { flatObjectMetadataMaps, flatFieldMetadataMaps, flatIndexMaps } =
+ await this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'flatObjectMetadataMaps',
+ 'flatFieldMetadataMaps',
+ 'flatIndexMaps',
+ ]);
+
+ if (
+ !isDefined(
+ flatObjectMetadataMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS.agentMessage.universalIdentifier
+ ],
+ )
+ ) {
+ this.logger.log(
+ `agentMessage object not found for workspace ${workspaceId}, skipping`,
+ );
+
+ return;
+ }
+
+ const { twentyStandardFlatApplication } =
+ await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
+ { workspaceId },
+ );
+ const { allFlatEntityMaps: standardAllFlatEntityMaps } =
+ computeTwentyStandardApplicationAllFlatEntityMaps({
+ now: new Date().toISOString(),
+ workspaceId,
+ twentyStandardApplicationId: twentyStandardFlatApplication.id,
+ });
+
+ const objectsToCreate =
+ getStandardFlatEntitiesToCreateOrThrow<FlatObjectMetadata>({
+ standardFlatEntityMaps:
+ standardAllFlatEntityMaps.flatObjectMetadataMaps,
+ existingFlatEntityMaps: flatObjectMetadataMaps,
+ universalIdentifiers: [REACTION_OBJECT_UNIVERSAL_IDENTIFIER],
+ });
+ const fieldsToCreate =
+ getStandardFlatEntitiesToCreateOrThrow<FlatFieldMetadata>({
+ standardFlatEntityMaps: standardAllFlatEntityMaps.flatFieldMetadataMaps,
+ existingFlatEntityMaps: flatFieldMetadataMaps,
+ universalIdentifiers: [
+ ...Object.values(STANDARD_OBJECTS.agentMessageReaction.fields).map(
+ (field) => field.universalIdentifier,
+ ),
+ ...EXISTING_OBJECT_FIELD_UNIVERSAL_IDENTIFIERS,
+ ],
+ });
+ const indexesToCreate =
+ getStandardFlatEntitiesToCreateOrThrow<FlatIndexMetadata>({
+ standardFlatEntityMaps: standardAllFlatEntityMaps.flatIndexMaps,
+ existingFlatEntityMaps: flatIndexMaps,
+ universalIdentifiers: Object.values(
+ STANDARD_OBJECTS.agentMessageReaction.indexes,
+ ).map((index) => index.universalIdentifier),
+ });
+
+ const operationCount =
+ objectsToCreate.length + fieldsToCreate.length + indexesToCreate.length;
+
+ if (operationCount === 0) {
+ return;
+ }
+
+ if (options.dryRun ?? false) {
+ this.logger.log(
+ `[DRY RUN] Would create ${objectsToCreate.length} object(s), ${fieldsToCreate.length} field(s) and ${indexesToCreate.length} index(es) for workspace ${workspaceId}`,
+ );
+
+ return;
+ }
+
+ const result =
+ await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunLegacyWorkspaceMigration(
+ {
+ workspaceId,
+ isSystemBuild: true,
+ applicationUniversalIdentifier:
+ twentyStandardFlatApplication.universalIdentifier,
+ allFlatEntityOperationByMetadataName: {
+ objectMetadata: {
+ flatEntityToCreate: objectsToCreate,
+ flatEntityToDelete: [],
+ flatEntityToUpdate: [],
+ },
+ fieldMetadata: {
+ flatEntityToCreate: fieldsToCreate,
+ flatEntityToDelete: [],
+ flatEntityToUpdate: [],
+ },
+ index: {
+ flatEntityToCreate: indexesToCreate,
+ flatEntityToDelete: [],
+ flatEntityToUpdate: [],
+ },
+ },
+ },
+ );
+
+ if (result.status === 'fail') {
+ throw new WorkspaceMigrationBuilderException(
+ result,
+ `Failed to create the agentMessageReaction object for workspace ${workspaceId}`,
+ );
+ }
+ }
+
+ async down({ workspaceId, options }: RunOnWorkspaceArgs): Promise<void> {
+ const { flatObjectMetadataMaps, flatFieldMetadataMaps } =
+ await this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'flatObjectMetadataMaps',
+ 'flatFieldMetadataMaps',
+ ]);
+
+ const reactionObject =
+ findFlatEntityByUniversalIdentifier<FlatObjectMetadata>({
+ flatEntityMaps: flatObjectMetadataMaps,
+ universalIdentifier: REACTION_OBJECT_UNIVERSAL_IDENTIFIER,
+ });
+ const existingObjectFieldsToDelete =
+ EXISTING_OBJECT_FIELD_UNIVERSAL_IDENTIFIERS.map((universalIdentifier) =>
+ findFlatEntityByUniversalIdentifier<FlatFieldMetadata>({
+ flatEntityMaps: flatFieldMetadataMaps,
+ universalIdentifier,
+ }),
+ ).filter(isDefined);
+
+ if (
+ !isDefined(reactionObject) &&
+ existingObjectFieldsToDelete.length === 0
+ ) {
+ return;
+ }
+
+ if (options.dryRun ?? false) {
+ this.logger.log(
+ `[DRY RUN] Would delete the agentMessageReaction object and ${existingObjectFieldsToDelete.length} field(s) for workspace ${workspaceId}`,
+ );
+
+ return;
+ }
+
+ const { twentyStandardFlatApplication } =
+ await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
+ { workspaceId },
+ );
+
+ const result =
+ await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunLegacyWorkspaceMigration(
+ {
+ workspaceId,
+ isSystemBuild: true,
+ applicationUniversalIdentifier:
+ twentyStandardFlatApplication.universalIdentifier,
+ allFlatEntityOperationByMetadataName: {
+ objectMetadata: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: isDefined(reactionObject)
+ ? [reactionObject]
+ : [],
+ flatEntityToUpdate: [],
+ },
+ fieldMetadata: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: existingObjectFieldsToDelete,
+ flatEntityToUpdate: [],
+ },
+ },
+ },
+ );
+
+ if (result.status === 'fail') {
+ throw new WorkspaceMigrationBuilderException(
+ result,
+ `Failed to delete the agentMessageReaction object for workspace ${workspaceId}`,
+ );
+ }
+ }
+}
diff --git a/packages/twenty-server/src/engine/core-modules/user/utils/__tests__/build-flat-workspace-member-maps.util.spec.ts b/packages/twenty-server/src/engine/core-modules/user/utils/__tests__/build-flat-workspace-member-maps.util.spec.ts
index c3645405a0c..0f147880e37 100644
--- a/packages/twenty-server/src/engine/core-modules/user/utils/__tests__/build-flat-workspace-member-maps.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/user/utils/__tests__/build-flat-workspace-member-maps.util.spec.ts
@@ -37,6 +37,7 @@ const buildWorkspaceMember = ({
agentMessages: [],
agentChatThreads: [],
agentChatThreadParticipants: [],
+ agentMessageReactions: [],
assignedAgentChatThreads: [],
ownedOpportunities: [],
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message-reaction-summary.dto.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message-reaction-summary.dto.ts
new file mode 100644
index 00000000000..2d02a1a38e8
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message-reaction-summary.dto.ts
@@ -0,0 +1,12 @@
+import { Field, ObjectType } from '@nestjs/graphql';
+
+import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
+
+@ObjectType('AgentMessageReactionSummary')
+export class AgentMessageReactionSummaryDTO {
+ @Field(() => String)
+ emoji: string;
+
+ @Field(() => [UUIDScalarType])
+ workspaceMemberIds: string[];
+}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message.dto.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message.dto.ts
index 8da9c1ad5c7..33143f51f8a 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message.dto.ts
@@ -4,6 +4,7 @@ import { IsDateString } from 'class-validator';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
import { AgentMessagePartDTO } from 'src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message-part.dto';
+import { AgentMessageReactionSummaryDTO } from 'src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message-reaction-summary.dto';
@ObjectType('AgentMessage')
export class AgentMessageDTO {
@@ -36,6 +37,9 @@ export class AgentMessageDTO {
@Field(() => [AgentMessagePartDTO])
parts: AgentMessagePartDTO[];
+ @Field(() => [AgentMessageReactionSummaryDTO])
+ reactions: AgentMessageReactionSummaryDTO[];
+
@IsDateString()
@Field(() => Date, { nullable: true })
processedAt: Date | null;
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/ai-chat.module.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/ai-chat.module.ts
index 88b45d1334b..32f9dce2e23 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/ai-chat.module.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/ai-chat.module.ts
@@ -30,6 +30,8 @@ import { AgentInboxProposalService } from 'src/engine/metadata-modules/ai/ai-cha
import { StreamAgentChatJob } from 'src/engine/metadata-modules/ai/ai-chat/jobs/stream-agent-chat.job';
import { AgentChatResolver } from 'src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat.resolver';
import { AgentChatThreadParticipantResolver } from 'src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-thread-participant.resolver';
+import { AgentChatMessageReactionResolver } from 'src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-message-reaction.resolver';
+import { AgentChatMessageReactionService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-message-reaction.service';
import { AgentChatSubscriptionResolver } from 'src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-subscription.resolver';
import { AgentInboxResolver } from 'src/engine/metadata-modules/ai/ai-chat/resolvers/agent-inbox.resolver';
import { WorkspaceSetupChatResolver } from 'src/engine/metadata-modules/ai/ai-chat/resolvers/workspace-setup-chat.resolver';
@@ -73,6 +75,8 @@ import { SystemPromptBuilderService } from 'src/engine/metadata-modules/ai/ai-ch
AgentChatCancelSubscriberService,
AgentChatResolver,
AgentChatThreadParticipantResolver,
+ AgentChatMessageReactionResolver,
+ AgentChatMessageReactionService,
AgentChatSubscriptionResolver,
WorkspaceSetupChatResolver,
AgentInboxResolver,
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/__tests__/agent-chat.resolver.sharing.spec.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/__tests__/agent-chat.resolver.sharing.spec.ts
index bcb2c02ebb4..276ea765ea9 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/__tests__/agent-chat.resolver.sharing.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/__tests__/agent-chat.resolver.sharing.spec.ts
@@ -106,6 +106,9 @@ const buildResolver = () => {
{} as never,
{} as never,
);
+ const messageReactions = {
+ findReactionsByMessageId: jest.fn().mockResolvedValue(new Map()),
+ };
const resolver = new AgentChatResolver(
chatService,
threadService,
@@ -132,6 +135,7 @@ const buildResolver = () => {
},
}),
} as never,
+ messageReactions as never,
);
return {
resolver,
@@ -465,11 +469,13 @@ describe('Shared conversation API boundaries', () => {
id: 'from-member',
senderWorkspaceMemberId: 'sender-member',
senderUserWorkspaceId: 'sender-user-workspace',
+ reactions: [],
},
{
id: 'from-agent',
senderWorkspaceMemberId: null,
senderUserWorkspaceId: null,
+ reactions: [],
},
]);
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-message-reaction.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-message-reaction.resolver.ts
new file mode 100644
index 00000000000..0e37b898ab7
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-message-reaction.resolver.ts
@@ -0,0 +1,69 @@
+import { UseFilters, UseGuards, UseInterceptors } from '@nestjs/common';
+import { Args, Mutation } from '@nestjs/graphql';
+
+import { PermissionFlagType } from 'twenty-shared/constants';
+
+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';
+import { AuthGraphqlApiExceptionFilter } from 'src/engine/core-modules/auth/filters/auth-graphql-api-exception.filter';
+import { type WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
+import { AuthWorkspaceMemberId } from 'src/engine/decorators/auth/auth-workspace-member-id.decorator';
+import { AuthWorkspace } from 'src/engine/decorators/auth/auth-workspace.decorator';
+import { AuthPrincipalGuard } from 'src/engine/guards/auth-principal.guard';
+import { SettingsPermissionGuard } from 'src/engine/guards/settings-permission.guard';
+import { AgentMessageReactionSummaryDTO } from 'src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message-reaction-summary.dto';
+import { AgentChatMessageReactionService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-message-reaction.service';
+import { AiGraphqlApiExceptionInterceptor } from 'src/engine/metadata-modules/ai/interceptors/ai-graphql-api-exception.interceptor';
+
+@UseGuards(
+ AuthPrincipalGuard({
+ userSession: {
+ standard: true,
+ impersonated: true,
+ playground: true,
+ workspaceAgnostic: false,
+ },
+ apiKey: false,
+ oauthClient: { withUser: true, withoutUser: false },
+ application: { withUser: true, withoutUser: false },
+ }),
+ SettingsPermissionGuard(PermissionFlagType.AI),
+)
+@UseInterceptors(AiGraphqlApiExceptionInterceptor)
+@UseFilters(AuthGraphqlApiExceptionFilter)
+@MetadataResolver(() => AgentMessageReactionSummaryDTO)
+export class AgentChatMessageReactionResolver {
+ constructor(
+ private readonly messageReactionService: AgentChatMessageReactionService,
+ ) {}
+
+ @Mutation(() => [AgentMessageReactionSummaryDTO])
+ async addAgentChatMessageReaction(
+ @Args('messageId', { type: () => UUIDScalarType }) messageId: string,
+ @Args('emoji', { type: () => String }) emoji: string,
+ @AuthWorkspaceMemberId() workspaceMemberId: string,
+ @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
+ ): Promise<AgentMessageReactionSummaryDTO[]> {
+ return this.messageReactionService.addReaction({
+ messageId,
+ emoji,
+ workspaceMemberId,
+ workspaceId,
+ });
+ }
+
+ @Mutation(() => [AgentMessageReactionSummaryDTO])
+ async removeAgentChatMessageReaction(
+ @Args('messageId', { type: () => UUIDScalarType }) messageId: string,
+ @Args('emoji', { type: () => String }) emoji: string,
+ @AuthWorkspaceMemberId() workspaceMemberId: string,
+ @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
+ ): Promise<AgentMessageReactionSummaryDTO[]> {
+ return this.messageReactionService.removeReaction({
+ messageId,
+ emoji,
+ workspaceMemberId,
+ workspaceId,
+ });
+ }
+}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat.resolver.ts
index d5bb12be4c8..3f450624c57 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat.resolver.ts
@@ -36,6 +36,7 @@ import { AgentChatStreamRecoveryService } from 'src/engine/metadata-modules/ai/a
import { AgentChatStreamingService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-streaming.service';
import { AgentChatTurnPreflightService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-turn-preflight.service';
import { AgentChatService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat.service';
+import { AgentChatMessageReactionService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-message-reaction.service';
import { AgentChatThreadService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread.service';
import { SystemPromptBuilderService } from 'src/engine/metadata-modules/ai/ai-chat/services/system-prompt-builder.service';
import { tagAiChatStreamScope } from 'src/engine/metadata-modules/ai/ai-chat/utils/tag-ai-chat-stream-scope.util';
@@ -84,6 +85,7 @@ export class AgentChatResolver {
private readonly threadLifecycleService: AgentChatThreadLifecycleService,
private readonly turnRecorderService: AgentTurnRecorderService,
private readonly workspaceCacheService: WorkspaceCacheService,
+ private readonly messageReactionService: AgentChatMessageReactionService,
) {}
@Query(() => AgentChatThreadDTO)
@@ -112,9 +114,15 @@ export class AgentChatResolver {
workspaceMemberId,
workspaceId,
});
- const { flatWorkspaceMemberMaps } =
- await this.workspaceCacheService.getOrRecompute(workspaceId, [
- 'flatWorkspaceMemberMaps',
+ const [{ flatWorkspaceMemberMaps }, reactionsByMessageId] =
+ await Promise.all([
+ this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'flatWorkspaceMemberMaps',
+ ]),
+ this.messageReactionService.findReactionsByMessageId({
+ workspaceId,
+ messageIds: messages.map(({ id }) => id),
+ }),
]);
// Fronts cached from the release before still name senders by their
@@ -126,6 +134,7 @@ export class AgentChatResolver {
return {
...message,
+ reactions: reactionsByMessageId.get(message.id) ?? [],
senderUserWorkspaceId: isDefined(senderUserId)
? (flatWorkspaceMemberMaps.userWorkspaceIdByUserId[senderUserId] ??
null)
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-message-reaction.service.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-message-reaction.service.ts
new file mode 100644
index 00000000000..be80c727fc7
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-message-reaction.service.ts
@@ -0,0 +1,278 @@
+import { Injectable, Logger } from '@nestjs/common';
+
+import {
+ AGENT_MESSAGE_REACTION_EMOJI_MAX_LENGTH,
+ type AgentMessageReactionSummary,
+ isValidAgentMessageReactionEmoji,
+} from 'twenty-shared/ai';
+import { isDefined } from 'twenty-shared/utils';
+import { type EntityManager } from 'typeorm';
+
+import { AgentChatEventPublisherService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-event-publisher.service';
+import { AgentChatSharingService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-sharing.service';
+import { findAgentChatFlatObjectMetadata } from 'src/engine/metadata-modules/ai/ai-chat/utils/find-agent-chat-flat-object-metadata.util';
+import { getAgentMessageReactionTable } from 'src/engine/metadata-modules/ai/ai-chat/utils/get-agent-message-reaction-table.util';
+import { throwAgentChatMessageNotFound } from 'src/engine/metadata-modules/ai/ai-chat/utils/throw-agent-chat-message-not-found.util';
+import { AgentMessageRole } from 'src/engine/metadata-modules/ai/ai-history/enums/agent-message-role.enum';
+import { AgentHistoryRepository } from 'src/engine/metadata-modules/ai/ai-history/repositories/agent-history-repository';
+import { InjectAgentHistoryRepository } from 'src/engine/metadata-modules/ai/ai-history/repositories/inject-agent-history-repository.decorator';
+import { AgentHistoryWorkspaceStorageService } from 'src/engine/metadata-modules/ai/ai-history/services/agent-history-workspace-storage.service';
+import { AgentMessageWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity';
+import {
+ AiException,
+ AiExceptionCode,
+} from 'src/engine/metadata-modules/ai/ai.exception';
+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+
+type AgentMessageReactionArgs = {
+ messageId: string;
+ emoji: string;
+ workspaceMemberId: string;
+ workspaceId: string;
+};
+
+type AgentMessageReactionSummaryRow = AgentMessageReactionSummary & {
+ messageId: string;
+};
+
+type BuildReactionWriteQuery = (reactionTable: string) => string;
+
+const buildAddReactionQuery: BuildReactionWriteQuery = (reactionTable) =>
+ `WITH inserted AS (
+ INSERT INTO ${reactionTable} ("messageId", "workspaceMemberId", emoji)
+ VALUES ($1, $2, $3)
+ ON CONFLICT ("messageId", "workspaceMemberId", emoji) WHERE "deletedAt" IS NULL DO NOTHING
+ RETURNING id
+ )
+ SELECT COUNT(*)::int AS "changedCount" FROM inserted`;
+
+const buildRemoveReactionQuery: BuildReactionWriteQuery = (reactionTable) =>
+ `WITH deleted AS (
+ DELETE FROM ${reactionTable}
+ WHERE "messageId" = $1 AND "workspaceMemberId" = $2 AND emoji = $3
+ RETURNING id
+ )
+ SELECT COUNT(*)::int AS "changedCount" FROM deleted`;
+
+@Injectable()
+export class AgentChatMessageReactionService {
+ private readonly logger = new Logger(AgentChatMessageReactionService.name);
+
+ constructor(
+ @InjectAgentHistoryRepository('agentMessage')
+ private readonly messageRepository: AgentHistoryRepository<AgentMessageWorkspaceEntity>,
+ private readonly storageService: AgentHistoryWorkspaceStorageService,
+ private readonly sharingService: AgentChatSharingService,
+ private readonly eventPublisherService: AgentChatEventPublisherService,
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ ) {}
+
+ addReaction(
+ args: AgentMessageReactionArgs,
+ ): Promise<AgentMessageReactionSummary[]> {
+ return this.writeReaction({ ...args, buildQuery: buildAddReactionQuery });
+ }
+
+ removeReaction(
+ args: AgentMessageReactionArgs,
+ ): Promise<AgentMessageReactionSummary[]> {
+ return this.writeReaction({
+ ...args,
+ buildQuery: buildRemoveReactionQuery,
+ });
+ }
+
+ async findReactionsByMessageId({
+ workspaceId,
+ messageIds,
+ }: {
+ workspaceId: string;
+ messageIds: string[];
+ }): Promise<Map<string, AgentMessageReactionSummary[]>> {
+ if (
+ messageIds.length === 0 ||
+ !(await this.isReactionObjectProvisioned(workspaceId))
+ ) {
+ return new Map();
+ }
+
+ return this.findReactionSummaries({
+ manager: this.storageService.getContext(workspaceId).manager,
+ workspaceId,
+ messageIds,
+ });
+ }
+
+ private async writeReaction({
+ messageId,
+ emoji,
+ workspaceMemberId,
+ workspaceId,
+ buildQuery,
+ }: AgentMessageReactionArgs & {
+ buildQuery: BuildReactionWriteQuery;
+ }): Promise<AgentMessageReactionSummary[]> {
+ if (!isValidAgentMessageReactionEmoji(emoji)) {
+ throw new AiException(
+ `A reaction must contain an emoji, no whitespace and at most ${AGENT_MESSAGE_REACTION_EMOJI_MAX_LENGTH} characters`,
+ AiExceptionCode.INVALID_CHAT_MESSAGE_REACTION_EMOJI,
+ );
+ }
+
+ const message = await this.messageRepository.findOne(workspaceId, {
+ where: { id: messageId },
+ select: ['id', 'threadId', 'role'],
+ });
+
+ // Contexts given to the model are never shown, so cannot be reacted to
+ if (!isDefined(message) || message.role === AgentMessageRole.SYSTEM) {
+ return throwAgentChatMessageNotFound();
+ }
+
+ await this.sharingService.getReadableThread({
+ threadId: message.threadId,
+ workspaceMemberId,
+ workspaceId,
+ });
+
+ // Created by an upgrade command that may not have reached this workspace yet
+ if (!(await this.isReactionObjectProvisioned(workspaceId))) {
+ return throwAgentChatMessageNotFound();
+ }
+
+ const { changedCount, reactions, revision } = await this.storageService.run(
+ workspaceId,
+ async ({ manager, table }) => {
+ // Serializes the reactions to one message so each change sees the ones before it
+ const lockedMessages = await manager.query<{ id: string }[]>(
+ `SELECT id FROM ${table('agentMessage')} WHERE id = $1 FOR NO KEY UPDATE`,
+ [messageId],
+ );
+
+ if (lockedMessages.length === 0) {
+ return throwAgentChatMessageNotFound();
+ }
+
+ // Read under the lock, so it orders snapshots published out of order
+ const [{ revision }] = await manager.query<{ revision: string }[]>(
+ `SELECT floor(extract(epoch FROM clock_timestamp()) * 1000000)::bigint AS revision`,
+ );
+
+ const [{ changedCount }] = await manager.query<
+ { changedCount: number }[]
+ >(buildQuery(getAgentMessageReactionTable(workspaceId)), [
+ messageId,
+ workspaceMemberId,
+ emoji,
+ ]);
+
+ const reactionsByMessageId = await this.findReactionSummaries({
+ manager,
+ workspaceId,
+ messageIds: [messageId],
+ });
+
+ return {
+ changedCount,
+ reactions: reactionsByMessageId.get(messageId) ?? [],
+ revision: Number(revision),
+ };
+ },
+ );
+
+ if (changedCount > 0) {
+ await this.publishReactionsUpdated({
+ threadId: message.threadId,
+ messageId,
+ reactions,
+ revision,
+ workspaceId,
+ });
+ }
+
+ return reactions;
+ }
+
+ private async findReactionSummaries({
+ manager,
+ workspaceId,
+ messageIds,
+ }: {
+ manager: EntityManager;
+ workspaceId: string;
+ messageIds: string[];
+ }): Promise<Map<string, AgentMessageReactionSummary[]>> {
+ const rows = await manager.query<AgentMessageReactionSummaryRow[]>(
+ `SELECT "messageId", emoji,
+ array_agg("workspaceMemberId" ORDER BY "createdAt", "workspaceMemberId") AS "workspaceMemberIds"
+ FROM ${getAgentMessageReactionTable(workspaceId)}
+ WHERE "messageId" = ANY($1::uuid[]) AND "deletedAt" IS NULL
+ GROUP BY "messageId", emoji
+ ORDER BY "messageId", MIN("createdAt"), emoji`,
+ [messageIds],
+ );
+
+ const reactionsByMessageId = new Map<
+ string,
+ AgentMessageReactionSummary[]
+ >();
+
+ for (const { messageId, emoji, workspaceMemberIds } of rows) {
+ const reactions = reactionsByMessageId.get(messageId) ?? [];
+
+ reactions.push({ emoji, workspaceMemberIds });
+ reactionsByMessageId.set(messageId, reactions);
+ }
+
+ return reactionsByMessageId;
+ }
+
+ private async isReactionObjectProvisioned(
+ workspaceId: string,
+ ): Promise<boolean> {
+ const { flatObjectMetadataMaps } =
+ await this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'flatObjectMetadataMaps',
+ ]);
+
+ return isDefined(
+ findAgentChatFlatObjectMetadata(
+ flatObjectMetadataMaps,
+ 'agentMessageReaction',
+ ),
+ );
+ }
+
+ // The write has committed, so a failure to publish must not fail the request
+ private async publishReactionsUpdated({
+ threadId,
+ messageId,
+ reactions,
+ revision,
+ workspaceId,
+ }: {
+ threadId: string;
+ messageId: string;
+ reactions: AgentMessageReactionSummary[];
+ revision: number;
+ workspaceId: string;
+ }): Promise<void> {
+ try {
+ await this.eventPublisherService.publish({
+ threadId,
+ workspaceId,
+ event: {
+ type: 'message-reactions-updated',
+ messageId,
+ reactions,
+ revision,
+ },
+ });
+ } catch (error) {
+ this.logger.error(
+ `Could not send the reactions of chat message ${messageId} in workspace ${workspaceId}`,
+ error,
+ );
+ }
+ }
+}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/find-agent-chat-flat-object-metadata.util.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/find-agent-chat-flat-object-metadata.util.ts
index 2de8716543e..6393c9d0d04 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/find-agent-chat-flat-object-metadata.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/find-agent-chat-flat-object-metadata.util.ts
@@ -5,7 +5,10 @@ import { type FlatObjectMetadata } from 'src/engine/metadata-modules/flat-object
export const findAgentChatFlatObjectMetadata = (
flatObjectMetadataMaps: FlatEntityMaps<FlatObjectMetadata>,
- standardObjectName: 'agentChatThread' | 'agentChatThreadParticipant',
+ standardObjectName:
+ | 'agentChatThread'
+ | 'agentChatThreadParticipant'
+ | 'agentMessageReaction',
) =>
flatObjectMetadataMaps.byUniversalIdentifier[
STANDARD_OBJECTS[standardObjectName].universalIdentifier
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/get-agent-message-reaction-table.util.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/get-agent-message-reaction-table.util.ts
new file mode 100644
index 00000000000..f5ca57fce90
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/get-agent-message-reaction-table.util.ts
@@ -0,0 +1,5 @@
+import { getWorkspaceSchemaName } from 'src/engine/workspace-datasource/utils/get-workspace-schema-name.util';
+import { escapeIdentifier } from 'src/engine/workspace-manager/workspace-migration/utils/remove-sql-injection.util';
+
+export const getAgentMessageReactionTable = (workspaceId: string) =>
+ `${escapeIdentifier(getWorkspaceSchemaName(workspaceId))}.${escapeIdentifier('agentMessageReaction')}`;
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/throw-agent-chat-message-not-found.util.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/throw-agent-chat-message-not-found.util.ts
new file mode 100644
index 00000000000..c9bfcf2897c
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/utils/throw-agent-chat-message-not-found.util.ts
@@ -0,0 +1,11 @@
+import {
+ AiException,
+ AiExceptionCode,
+} from 'src/engine/metadata-modules/ai/ai.exception';
+
+export const throwAgentChatMessageNotFound = (): never => {
+ throw new AiException(
+ 'Chat message not found',
+ AiExceptionCode.MESSAGE_NOT_FOUND,
+ );
+};
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/services/__tests__/agent-conversation-reader.service.spec.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/services/__tests__/agent-conversation-reader.service.spec.ts
index 265911b0bc0..93239f97471 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/services/__tests__/agent-conversation-reader.service.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/services/__tests__/agent-conversation-reader.service.spec.ts
@@ -128,6 +128,36 @@ describe('AgentConversationReaderService', () => {
]);
});
+ it('leaves reactions out of the conversation given to the model', async () => {
+ const [userMessage, assistantMessage] = buildTurn({
+ turnId: 'turn-1',
+ senderWorkspaceMemberId: MEMBER_A,
+ question: 'Who is our biggest customer?',
+ answer: 'Private Co',
+ });
+ const { service, messageRepository } = buildService([
+ userMessage,
+ {
+ ...assistantMessage,
+ reactions: [{ emoji: 'πŸ‘', workspaceMemberId: MEMBER_B }],
+ },
+ ]);
+
+ const messages = await service.loadMessages({
+ workspaceId: WORKSPACE_ID,
+ threadId: THREAD_ID,
+ });
+
+ expect(messageRepository.find).toHaveBeenCalledWith(
+ WORKSPACE_ID,
+ expect.objectContaining({ relations: ['parts', 'parts.file'] }),
+ );
+ expect(messages.map((message) => Object.keys(message).sort())).toEqual([
+ ['id', 'parts', 'role'],
+ ['id', 'parts', 'role'],
+ ]);
+ });
+
it('keeps every part when no actor is given', async () => {
const { service } = buildService([
...buildTurn({
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message-reaction.workspace-entity.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message-reaction.workspace-entity.ts
new file mode 100644
index 00000000000..5966bcfbe3d
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message-reaction.workspace-entity.ts
@@ -0,0 +1,12 @@
+import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
+import { type AgentMessageWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity';
+import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
+import { type WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/standard-objects/workspace-member.workspace-entity';
+
+export class AgentMessageReactionWorkspaceEntity extends BaseWorkspaceEntity {
+ message: EntityRelation<AgentMessageWorkspaceEntity>;
+ messageId: string;
+ workspaceMember: EntityRelation<WorkspaceMemberWorkspaceEntity>;
+ workspaceMemberId: string;
+ emoji: string;
+}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity.ts
index b0457c6df05..1751db0a19a 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity.ts
@@ -3,6 +3,7 @@ import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migr
import { type AgentChatThreadWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity';
import { type AgentTurnWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity';
import { type AgentMessagePartWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message-part.workspace-entity';
+import { type AgentMessageReactionWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message-reaction.workspace-entity';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
import { type AgentMessageRole } from 'src/engine/metadata-modules/ai/ai-history/enums/agent-message-role.enum';
import { type AgentMessageStatus } from 'src/engine/metadata-modules/ai/ai-history/enums/agent-message-status.enum';
@@ -11,6 +12,7 @@ export class AgentMessageWorkspaceEntity extends BaseWorkspaceEntity {
thread: EntityRelation<AgentChatThreadWorkspaceEntity>;
turn: EntityRelation<AgentTurnWorkspaceEntity> | null;
parts: EntityRelation<AgentMessagePartWorkspaceEntity[]>;
+ reactions: EntityRelation<AgentMessageReactionWorkspaceEntity[]>;
threadId: string;
turnId: string | null;
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai.exception.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai.exception.ts
index 05bb21e79a8..bb1db4a388b 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai.exception.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai.exception.ts
@@ -15,6 +15,7 @@ export enum AiExceptionCode {
WORKSPACE_NOT_FOUND = 'WORKSPACE_NOT_FOUND',
CONTEXT_WINDOW_EXCEEDED = 'CONTEXT_WINDOW_EXCEEDED',
INVALID_CHAT_THREAD_SNOOZE_TIME = 'INVALID_CHAT_THREAD_SNOOZE_TIME',
+ INVALID_CHAT_MESSAGE_REACTION_EMOJI = 'INVALID_CHAT_MESSAGE_REACTION_EMOJI',
CHAT_THREAD_ASSIGNEE_CANNOT_REPLY = 'CHAT_THREAD_ASSIGNEE_CANNOT_REPLY',
CHAT_THREAD_ASSIGNEE_CANNOT_UNSUBSCRIBE = 'CHAT_THREAD_ASSIGNEE_CANNOT_UNSUBSCRIBE',
MESSAGE_NOT_FOUND = 'MESSAGE_NOT_FOUND',
@@ -58,6 +59,8 @@ const getAiExceptionUserFriendlyMessage = (code: AiExceptionCode) => {
return msg`This conversation is too long for the model. Start a new thread to continue.`;
case AiExceptionCode.INVALID_CHAT_THREAD_SNOOZE_TIME:
return msg`Snooze time must be in the future.`;
+ case AiExceptionCode.INVALID_CHAT_MESSAGE_REACTION_EMOJI:
+ return msg`React with an emoji.`;
case AiExceptionCode.CHAT_THREAD_ASSIGNEE_CANNOT_REPLY:
return msg`This member can't reply in this chat, so it can't be assigned to them.`;
case AiExceptionCode.CHAT_THREAD_ASSIGNEE_CANNOT_UNSUBSCRIBE:
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/utils/ai-graphql-api-exception-handler.util.ts b/packages/twenty-server/src/engine/metadata-modules/ai/utils/ai-graphql-api-exception-handler.util.ts
index a392c7b5d45..74d258172d1 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/utils/ai-graphql-api-exception-handler.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/utils/ai-graphql-api-exception-handler.util.ts
@@ -28,6 +28,7 @@ export const aiGraphqlApiExceptionHandler = (error: Error) => {
case AiExceptionCode.CONTEXT_WINDOW_EXCEEDED:
case AiExceptionCode.INVALID_AGENT_INPUT:
case AiExceptionCode.INVALID_CHAT_THREAD_SNOOZE_TIME:
+ case AiExceptionCode.INVALID_CHAT_MESSAGE_REACTION_EMOJI:
case AiExceptionCode.INVALID_TOOL_CALL_OUTPUT:
case AiExceptionCode.TOOL_CALL_NOT_PENDING:
case AiExceptionCode.EVALUATION_QUESTION_UNSUPPORTED:
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts
index 0090b08ce51..6f01431f70b 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts
@@ -10,6 +10,7 @@ export const SEARCH_FIELDS_BY_STANDARD_OBJECT_NAME = {
agentTurn: [],
agentMessage: [],
agentMessagePart: [],
+ agentMessageReaction: [],
attachment: [{ name: 'name', type: FieldMetadataType.TEXT }],
blocklist: [{ name: 'handle', type: FieldMetadataType.TEXT }],
calendarChannelEventAssociation: [
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
index abb3373a480..8495dcd0ef7 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
@@ -5,355 +5,385 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"agentChatThread": {
"fields": {
"activeStreamId": {
- "id": "00000000-0000-0000-0000-000000001048",
+ "id": "00000000-0000-0000-0000-000000001049",
},
"archivedAt": {
- "id": "00000000-0000-0000-0000-000000001037",
+ "id": "00000000-0000-0000-0000-000000001038",
},
"assignee": {
- "id": "00000000-0000-0000-0000-000000001055",
+ "id": "00000000-0000-0000-0000-000000001056",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000001052",
+ "id": "00000000-0000-0000-0000-000000001053",
},
"contextWindowTokens": {
- "id": "00000000-0000-0000-0000-000000001042",
+ "id": "00000000-0000-0000-0000-000000001043",
},
"conversationSize": {
- "id": "00000000-0000-0000-0000-000000001043",
+ "id": "00000000-0000-0000-0000-000000001044",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001034",
+ "id": "00000000-0000-0000-0000-000000001035",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001036",
+ "id": "00000000-0000-0000-0000-000000001037",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001033",
+ "id": "00000000-0000-0000-0000-000000001034",
},
"lastActivityAt": {
- "id": "00000000-0000-0000-0000-000000001056",
+ "id": "00000000-0000-0000-0000-000000001057",
},
"lastMessageSenderWorkspaceMemberId": {
- "id": "00000000-0000-0000-0000-000000001058",
+ "id": "00000000-0000-0000-0000-000000001059",
},
"lastMessageText": {
- "id": "00000000-0000-0000-0000-000000001057",
+ "id": "00000000-0000-0000-0000-000000001058",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000001051",
+ "id": "00000000-0000-0000-0000-000000001052",
},
"participants": {
- "id": "00000000-0000-0000-0000-000000001054",
+ "id": "00000000-0000-0000-0000-000000001055",
},
"pendingQuestionMessageId": {
- "id": "00000000-0000-0000-0000-000000001049",
+ "id": "00000000-0000-0000-0000-000000001050",
},
"recordTargets": {
- "id": "00000000-0000-0000-0000-000000001053",
+ "id": "00000000-0000-0000-0000-000000001054",
},
"title": {
- "id": "00000000-0000-0000-0000-000000001039",
+ "id": "00000000-0000-0000-0000-000000001040",
},
"totalCacheCreationTokens": {
- "id": "00000000-0000-0000-0000-000000001047",
+ "id": "00000000-0000-0000-0000-000000001048",
},
"totalCacheReadTokens": {
- "id": "00000000-0000-0000-0000-000000001046",
+ "id": "00000000-0000-0000-0000-000000001047",
},
"totalInputCredits": {
- "id": "00000000-0000-0000-0000-000000001044",
+ "id": "00000000-0000-0000-0000-000000001045",
},
"totalInputTokens": {
- "id": "00000000-0000-0000-0000-000000001040",
+ "id": "00000000-0000-0000-0000-000000001041",
},
"totalOutputCredits": {
- "id": "00000000-0000-0000-0000-000000001045",
+ "id": "00000000-0000-0000-0000-000000001046",
},
"totalOutputTokens": {
- "id": "00000000-0000-0000-0000-000000001041",
+ "id": "00000000-0000-0000-0000-000000001042",
},
"turns": {
- "id": "00000000-0000-0000-0000-000000001050",
+ "id": "00000000-0000-0000-0000-000000001051",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001035",
+ "id": "00000000-0000-0000-0000-000000001036",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000001038",
+ "id": "00000000-0000-0000-0000-000000001039",
},
"writerWorkspaceMemberIds": {
- "id": "00000000-0000-0000-0000-000000001059",
+ "id": "00000000-0000-0000-0000-000000001060",
},
},
- "id": "00000000-0000-0000-0000-000000001060",
+ "id": "00000000-0000-0000-0000-000000001061",
"views": undefined,
},
"agentChatThreadParticipant": {
"fields": {
"archivedAt": {
- "id": "00000000-0000-0000-0000-000000001068",
+ "id": "00000000-0000-0000-0000-000000001069",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001062",
+ "id": "00000000-0000-0000-0000-000000001063",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001064",
+ "id": "00000000-0000-0000-0000-000000001065",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001061",
+ "id": "00000000-0000-0000-0000-000000001062",
},
"isSubscribed": {
- "id": "00000000-0000-0000-0000-000000001070",
+ "id": "00000000-0000-0000-0000-000000001071",
},
"lastMentionedAt": {
- "id": "00000000-0000-0000-0000-000000001071",
+ "id": "00000000-0000-0000-0000-000000001072",
},
"lastReadAt": {
- "id": "00000000-0000-0000-0000-000000001067",
+ "id": "00000000-0000-0000-0000-000000001068",
},
"snoozedUntil": {
- "id": "00000000-0000-0000-0000-000000001069",
+ "id": "00000000-0000-0000-0000-000000001070",
},
"thread": {
- "id": "00000000-0000-0000-0000-000000001065",
+ "id": "00000000-0000-0000-0000-000000001066",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001063",
+ "id": "00000000-0000-0000-0000-000000001064",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000001066",
+ "id": "00000000-0000-0000-0000-000000001067",
},
},
- "id": "00000000-0000-0000-0000-000000001072",
+ "id": "00000000-0000-0000-0000-000000001073",
"views": undefined,
},
"agentChatThreadTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001075",
+ "id": "00000000-0000-0000-0000-000000001076",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001077",
+ "id": "00000000-0000-0000-0000-000000001078",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001074",
+ "id": "00000000-0000-0000-0000-000000001075",
},
"target": {
- "id": "00000000-0000-0000-0000-000000001073",
+ "id": "00000000-0000-0000-0000-000000001074",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000001080",
+ "id": "00000000-0000-0000-0000-000000001081",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000001081",
+ "id": "00000000-0000-0000-0000-000000001082",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000001079",
+ "id": "00000000-0000-0000-0000-000000001080",
},
"thread": {
- "id": "00000000-0000-0000-0000-000000001078",
+ "id": "00000000-0000-0000-0000-000000001079",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001076",
+ "id": "00000000-0000-0000-0000-000000001077",
},
},
- "id": "00000000-0000-0000-0000-000000001082",
+ "id": "00000000-0000-0000-0000-000000001083",
"views": {},
},
"agentMessage": {
"fields": {
"agentId": {
- "id": "00000000-0000-0000-0000-000000001107",
+ "id": "00000000-0000-0000-0000-000000001108",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001104",
+ "id": "00000000-0000-0000-0000-000000001105",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001106",
+ "id": "00000000-0000-0000-0000-000000001107",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001103",
+ "id": "00000000-0000-0000-0000-000000001104",
},
"parts": {
- "id": "00000000-0000-0000-0000-000000001115",
+ "id": "00000000-0000-0000-0000-000000001116",
},
"processedAt": {
- "id": "00000000-0000-0000-0000-000000001112",
+ "id": "00000000-0000-0000-0000-000000001113",
+ },
+ "reactions": {
+ "id": "00000000-0000-0000-0000-000000001117",
},
"role": {
- "id": "00000000-0000-0000-0000-000000001110",
+ "id": "00000000-0000-0000-0000-000000001111",
},
"senderApplicationId": {
- "id": "00000000-0000-0000-0000-000000001109",
+ "id": "00000000-0000-0000-0000-000000001110",
},
"senderWorkspaceMember": {
- "id": "00000000-0000-0000-0000-000000001108",
+ "id": "00000000-0000-0000-0000-000000001109",
},
"status": {
- "id": "00000000-0000-0000-0000-000000001111",
+ "id": "00000000-0000-0000-0000-000000001112",
},
"thread": {
- "id": "00000000-0000-0000-0000-000000001113",
+ "id": "00000000-0000-0000-0000-000000001114",
},
"turn": {
- "id": "00000000-0000-0000-0000-000000001114",
+ "id": "00000000-0000-0000-0000-000000001115",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001105",
+ "id": "00000000-0000-0000-0000-000000001106",
},
},
- "id": "00000000-0000-0000-0000-000000001116",
+ "id": "00000000-0000-0000-0000-000000001118",
"views": undefined,
},
"agentMessagePart": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001118",
+ "id": "00000000-0000-0000-0000-000000001128",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001120",
+ "id": "00000000-0000-0000-0000-000000001130",
},
"errorDetails": {
- "id": "00000000-0000-0000-0000-000000001132",
+ "id": "00000000-0000-0000-0000-000000001142",
},
"errorMessage": {
- "id": "00000000-0000-0000-0000-000000001131",
+ "id": "00000000-0000-0000-0000-000000001141",
},
"fileFilename": {
- "id": "00000000-0000-0000-0000-000000001140",
+ "id": "00000000-0000-0000-0000-000000001150",
},
"fileId": {
- "id": "00000000-0000-0000-0000-000000001141",
+ "id": "00000000-0000-0000-0000-000000001151",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001117",
+ "id": "00000000-0000-0000-0000-000000001127",
},
"message": {
- "id": "00000000-0000-0000-0000-000000001143",
+ "id": "00000000-0000-0000-0000-000000001153",
},
"orderIndex": {
- "id": "00000000-0000-0000-0000-000000001121",
+ "id": "00000000-0000-0000-0000-000000001131",
},
"providerExecuted": {
- "id": "00000000-0000-0000-0000-000000001130",
+ "id": "00000000-0000-0000-0000-000000001140",
},
"providerMetadata": {
- "id": "00000000-0000-0000-0000-000000001142",
+ "id": "00000000-0000-0000-0000-000000001152",
},
"reasoningContent": {
- "id": "00000000-0000-0000-0000-000000001124",
+ "id": "00000000-0000-0000-0000-000000001134",
},
"sourceDocumentFilename": {
- "id": "00000000-0000-0000-0000-000000001139",
+ "id": "00000000-0000-0000-0000-000000001149",
},
"sourceDocumentMediaType": {
- "id": "00000000-0000-0000-0000-000000001137",
+ "id": "00000000-0000-0000-0000-000000001147",
},
"sourceDocumentSourceId": {
- "id": "00000000-0000-0000-0000-000000001136",
+ "id": "00000000-0000-0000-0000-000000001146",
},
"sourceDocumentTitle": {
- "id": "00000000-0000-0000-0000-000000001138",
+ "id": "00000000-0000-0000-0000-000000001148",
},
"sourceUrlSourceId": {
- "id": "00000000-0000-0000-0000-000000001133",
+ "id": "00000000-0000-0000-0000-000000001143",
},
"sourceUrlTitle": {
- "id": "00000000-0000-0000-0000-000000001135",
+ "id": "00000000-0000-0000-0000-000000001145",
},
"sourceUrlUrl": {
- "id": "00000000-0000-0000-0000-000000001134",
+ "id": "00000000-0000-0000-0000-000000001144",
},
"state": {
- "id": "00000000-0000-0000-0000-000000001129",
+ "id": "00000000-0000-0000-0000-000000001139",
},
"textContent": {
- "id": "00000000-0000-0000-0000-000000001123",
+ "id": "00000000-0000-0000-0000-000000001133",
},
"toolCallId": {
- "id": "00000000-0000-0000-0000-000000001126",
+ "id": "00000000-0000-0000-0000-000000001136",
},
"toolInput": {
- "id": "00000000-0000-0000-0000-000000001127",
+ "id": "00000000-0000-0000-0000-000000001137",
},
"toolName": {
- "id": "00000000-0000-0000-0000-000000001125",
+ "id": "00000000-0000-0000-0000-000000001135",
},
"toolOutput": {
- "id": "00000000-0000-0000-0000-000000001128",
+ "id": "00000000-0000-0000-0000-000000001138",
},
"type": {
- "id": "00000000-0000-0000-0000-000000001122",
+ "id": "00000000-0000-0000-0000-000000001132",
},
"updatedAt": {
+ "id": "00000000-0000-0000-0000-000000001129",
+ },
+ },
+ "id": "00000000-0000-0000-0000-000000001154",
+ "views": undefined,
+ },
+ "agentMessageReaction": {
+ "fields": {
+ "createdAt": {
+ "id": "00000000-0000-0000-0000-000000001120",
+ },
+ "deletedAt": {
+ "id": "00000000-0000-0000-0000-000000001122",
+ },
+ "emoji": {
+ "id": "00000000-0000-0000-0000-000000001125",
+ },
+ "id": {
"id": "00000000-0000-0000-0000-000000001119",
},
+ "message": {
+ "id": "00000000-0000-0000-0000-000000001123",
+ },
+ "updatedAt": {
+ "id": "00000000-0000-0000-0000-000000001121",
+ },
+ "workspaceMember": {
+ "id": "00000000-0000-0000-0000-000000001124",
+ },
},
- "id": "00000000-0000-0000-0000-000000001144",
+ "id": "00000000-0000-0000-0000-000000001126",
"views": undefined,
},
"agentTurn": {
"fields": {
"agentId": {
- "id": "00000000-0000-0000-0000-000000001087",
+ "id": "00000000-0000-0000-0000-000000001088",
},
"cacheCreationTokens": {
- "id": "00000000-0000-0000-0000-000000001098",
+ "id": "00000000-0000-0000-0000-000000001099",
},
"cacheReadTokens": {
- "id": "00000000-0000-0000-0000-000000001097",
+ "id": "00000000-0000-0000-0000-000000001098",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001084",
+ "id": "00000000-0000-0000-0000-000000001085",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000001101",
+ "id": "00000000-0000-0000-0000-000000001102",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001086",
+ "id": "00000000-0000-0000-0000-000000001087",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000001093",
+ "id": "00000000-0000-0000-0000-000000001094",
},
"error": {
- "id": "00000000-0000-0000-0000-000000001091",
+ "id": "00000000-0000-0000-0000-000000001092",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001083",
+ "id": "00000000-0000-0000-0000-000000001084",
},
"inputCredits": {
- "id": "00000000-0000-0000-0000-000000001099",
+ "id": "00000000-0000-0000-0000-000000001100",
},
"inputTokens": {
- "id": "00000000-0000-0000-0000-000000001095",
+ "id": "00000000-0000-0000-0000-000000001096",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000001089",
+ "id": "00000000-0000-0000-0000-000000001090",
},
"modelId": {
- "id": "00000000-0000-0000-0000-000000001094",
+ "id": "00000000-0000-0000-0000-000000001095",
},
"outputCredits": {
- "id": "00000000-0000-0000-0000-000000001100",
+ "id": "00000000-0000-0000-0000-000000001101",
},
"outputTokens": {
- "id": "00000000-0000-0000-0000-000000001096",
+ "id": "00000000-0000-0000-0000-000000001097",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000001092",
+ "id": "00000000-0000-0000-0000-000000001093",
},
"status": {
- "id": "00000000-0000-0000-0000-000000001090",
+ "id": "00000000-0000-0000-0000-000000001091",
},
"thread": {
- "id": "00000000-0000-0000-0000-000000001088",
+ "id": "00000000-0000-0000-0000-000000001089",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001085",
+ "id": "00000000-0000-0000-0000-000000001086",
},
},
- "id": "00000000-0000-0000-0000-000000001102",
+ "id": "00000000-0000-0000-0000-000000001103",
"views": undefined,
},
"attachment": {
@@ -1117,64 +1147,64 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"campaignDelivery": {
"fields": {
"bouncedAt": {
- "id": "00000000-0000-0000-0000-000000001160",
+ "id": "00000000-0000-0000-0000-000000001170",
},
"campaignId": {
- "id": "00000000-0000-0000-0000-000000001149",
+ "id": "00000000-0000-0000-0000-000000001159",
},
"claimExpiresAt": {
- "id": "00000000-0000-0000-0000-000000001156",
+ "id": "00000000-0000-0000-0000-000000001166",
},
"claimToken": {
- "id": "00000000-0000-0000-0000-000000001155",
+ "id": "00000000-0000-0000-0000-000000001165",
},
"complainedAt": {
- "id": "00000000-0000-0000-0000-000000001161",
+ "id": "00000000-0000-0000-0000-000000001171",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001146",
+ "id": "00000000-0000-0000-0000-000000001156",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001148",
+ "id": "00000000-0000-0000-0000-000000001158",
},
"deliveredAt": {
- "id": "00000000-0000-0000-0000-000000001159",
+ "id": "00000000-0000-0000-0000-000000001169",
},
"failureReason": {
- "id": "00000000-0000-0000-0000-000000001154",
+ "id": "00000000-0000-0000-0000-000000001164",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001145",
+ "id": "00000000-0000-0000-0000-000000001155",
},
"personId": {
- "id": "00000000-0000-0000-0000-000000001150",
+ "id": "00000000-0000-0000-0000-000000001160",
},
"providerMessageId": {
- "id": "00000000-0000-0000-0000-000000001157",
+ "id": "00000000-0000-0000-0000-000000001167",
},
"recipientEmail": {
- "id": "00000000-0000-0000-0000-000000001151",
+ "id": "00000000-0000-0000-0000-000000001161",
},
"rejectedAt": {
- "id": "00000000-0000-0000-0000-000000001162",
+ "id": "00000000-0000-0000-0000-000000001172",
},
"renderingFailedAt": {
- "id": "00000000-0000-0000-0000-000000001163",
+ "id": "00000000-0000-0000-0000-000000001173",
},
"sentAt": {
- "id": "00000000-0000-0000-0000-000000001158",
+ "id": "00000000-0000-0000-0000-000000001168",
},
"skipReason": {
- "id": "00000000-0000-0000-0000-000000001153",
+ "id": "00000000-0000-0000-0000-000000001163",
},
"state": {
- "id": "00000000-0000-0000-0000-000000001152",
+ "id": "00000000-0000-0000-0000-000000001162",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001147",
+ "id": "00000000-0000-0000-0000-000000001157",
},
},
- "id": "00000000-0000-0000-0000-000000001164",
+ "id": "00000000-0000-0000-0000-000000001174",
"views": undefined,
},
"company": {
@@ -2171,34 +2201,34 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageSuppression": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001166",
+ "id": "00000000-0000-0000-0000-000000001176",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001168",
+ "id": "00000000-0000-0000-0000-000000001178",
},
"emailAddress": {
- "id": "00000000-0000-0000-0000-000000001169",
+ "id": "00000000-0000-0000-0000-000000001179",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001165",
+ "id": "00000000-0000-0000-0000-000000001175",
},
"providerEventId": {
- "id": "00000000-0000-0000-0000-000000001172",
+ "id": "00000000-0000-0000-0000-000000001182",
},
"reason": {
- "id": "00000000-0000-0000-0000-000000001170",
+ "id": "00000000-0000-0000-0000-000000001180",
},
"source": {
- "id": "00000000-0000-0000-0000-000000001171",
+ "id": "00000000-0000-0000-0000-000000001181",
},
"unsubscribeTopicId": {
- "id": "00000000-0000-0000-0000-000000001173",
+ "id": "00000000-0000-0000-0000-000000001183",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001167",
+ "id": "00000000-0000-0000-0000-000000001177",
},
},
- "id": "00000000-0000-0000-0000-000000001174",
+ "id": "00000000-0000-0000-0000-000000001184",
"views": undefined,
},
"messageThread": {
@@ -3787,11 +3817,14 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"agentChatThreads": {
"id": "00000000-0000-0000-0000-000000001019",
},
+ "agentMessageReactions": {
+ "id": "00000000-0000-0000-0000-000000001021",
+ },
"agentMessages": {
"id": "00000000-0000-0000-0000-000000001018",
},
"assignedAgentChatThreads": {
- "id": "00000000-0000-0000-0000-000000001021",
+ "id": "00000000-0000-0000-0000-000000001022",
},
"assignedTasks": {
"id": "00000000-0000-0000-0000-000000001011",
@@ -3806,7 +3839,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000001016",
},
"calendarStartDay": {
- "id": "00000000-0000-0000-0000-000000001025",
+ "id": "00000000-0000-0000-0000-000000001026",
},
"colorScheme": {
"id": "00000000-0000-0000-0000-000000001003",
@@ -3818,7 +3851,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000000998",
},
"dateFormat": {
- "id": "00000000-0000-0000-0000-000000001023",
+ "id": "00000000-0000-0000-0000-000000001024",
},
"deletedAt": {
"id": "00000000-0000-0000-0000-000000000997",
@@ -3839,7 +3872,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000001002",
},
"numberFormat": {
- "id": "00000000-0000-0000-0000-000000001026",
+ "id": "00000000-0000-0000-0000-000000001027",
},
"openRecordIn": {
"id": "00000000-0000-0000-0000-000000001005",
@@ -3854,10 +3887,10 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000001001",
},
"timeFormat": {
- "id": "00000000-0000-0000-0000-000000001024",
+ "id": "00000000-0000-0000-0000-000000001025",
},
"timeZone": {
- "id": "00000000-0000-0000-0000-000000001022",
+ "id": "00000000-0000-0000-0000-000000001023",
},
"timelineActivities": {
"id": "00000000-0000-0000-0000-000000001017",
@@ -3878,23 +3911,23 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000001010",
},
},
- "id": "00000000-0000-0000-0000-000000001032",
+ "id": "00000000-0000-0000-0000-000000001033",
"views": {
"allWorkspaceMembers": {
- "id": "00000000-0000-0000-0000-000000001031",
+ "id": "00000000-0000-0000-0000-000000001032",
"viewFieldGroups": {},
"viewFields": {
"assignedTasks": {
- "id": "00000000-0000-0000-0000-000000001030",
+ "id": "00000000-0000-0000-0000-000000001031",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001028",
+ "id": "00000000-0000-0000-0000-000000001029",
},
"name": {
- "id": "00000000-0000-0000-0000-000000001027",
+ "id": "00000000-0000-0000-0000-000000001028",
},
"ownedOpportunities": {
- "id": "00000000-0000-0000-0000-000000001029",
+ "id": "00000000-0000-0000-0000-000000001030",
},
},
"viewGroups": {},
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-history-standard-metadata.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-history-standard-metadata.spec.ts
index 312a04860b3..e97df774f65 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-history-standard-metadata.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-history-standard-metadata.spec.ts
@@ -17,6 +17,7 @@ const OBJECT_NAMES = [
'agentChatThreadParticipant',
'agentMessage',
'agentMessagePart',
+ 'agentMessageReaction',
'agentTurn',
] as const;
@@ -171,6 +172,42 @@ describe('agent history workspace metadata', () => {
});
});
+ it('removes reactions with their message or their member, one per member and emoji', () => {
+ const { fields, indexes } = STANDARD_OBJECTS.agentMessageReaction;
+
+ for (const [field, joinColumnName] of [
+ [fields.message, 'messageId'],
+ [fields.workspaceMember, 'workspaceMemberId'],
+ ] as const) {
+ expect(
+ allFlatEntityMaps.flatFieldMetadataMaps.byUniversalIdentifier[
+ field.universalIdentifier
+ ],
+ ).toMatchObject({
+ isNullable: false,
+ settings: { onDelete: 'CASCADE', joinColumnName },
+ });
+ }
+ expect(
+ allFlatEntityMaps.flatIndexMaps.byUniversalIdentifier[
+ indexes.messageWorkspaceMemberEmojiUniqueIndex.universalIdentifier
+ ],
+ ).toMatchObject({
+ isUnique: true,
+ indexWhereClause: '"deletedAt" IS NULL',
+ universalFlatIndexFieldMetadatas: [
+ {
+ fieldMetadataUniversalIdentifier: fields.message.universalIdentifier,
+ },
+ {
+ fieldMetadataUniversalIdentifier:
+ fields.workspaceMember.universalIdentifier,
+ },
+ { fieldMetadataUniversalIdentifier: fields.emoji.universalIdentifier },
+ ],
+ });
+ });
+
it('retains exact precision for credits and cache token counts', () => {
for (const name of [
'totalInputCredits',
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-field-writability.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-field-writability.spec.ts
index 2e04e688adc..ace4160c6d3 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-field-writability.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-field-writability.spec.ts
@@ -45,6 +45,7 @@ describe('Standard field writability', () => {
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
STANDARD_OBJECTS.agentMessage.universalIdentifier,
STANDARD_OBJECTS.agentMessagePart.universalIdentifier,
+ STANDARD_OBJECTS.agentMessageReaction.universalIdentifier,
STANDARD_OBJECTS.agentTurn.universalIdentifier,
STANDARD_OBJECTS.agentChatThreadParticipant.universalIdentifier,
STANDARD_OBJECTS.campaignDelivery.universalIdentifier,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts
index 4eb7ad7942b..03407ad38a2 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts
@@ -65,6 +65,7 @@ describe('Standard object readability', () => {
const nonOpenObjectUniversalIdentifiers: string[] = [
STANDARD_OBJECTS.agentMessage.universalIdentifier,
STANDARD_OBJECTS.agentMessagePart.universalIdentifier,
+ STANDARD_OBJECTS.agentMessageReaction.universalIdentifier,
STANDARD_OBJECTS.agentTurn.universalIdentifier,
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
STANDARD_OBJECTS.agentChatThreadParticipant.universalIdentifier,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-writability.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-writability.spec.ts
index 1450a707838..dc86fad7b4c 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-writability.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-writability.spec.ts
@@ -13,6 +13,7 @@ const SYSTEM_WRITABILITY_STANDARD_OBJECT_NAMES = [
'agentChatThreadParticipant',
'agentMessage',
'agentMessagePart',
+ 'agentMessageReaction',
'agentTurn',
'calendarChannelEventAssociation',
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts
index fbb92d6caa4..eab3b9a328c 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts
@@ -1,6 +1,7 @@
import { buildCampaignDeliveryStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-campaign-delivery-standard-flat-field-metadata.util';
import { buildMessageSuppressionStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-message-suppression-standard-flat-field-metadata.util';
import { buildAgentMessagePartStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-part-standard-flat-field-metadata.util';
+import { buildAgentMessageReactionStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-reaction-standard-flat-field-metadata.util';
import { buildAgentMessageStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-standard-flat-field-metadata.util';
import { buildAgentTurnStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-standard-flat-field-metadata.util';
import { buildAgentChatThreadStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util';
@@ -55,6 +56,7 @@ const STANDARD_FLAT_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = {
campaignDelivery: buildCampaignDeliveryStandardFlatFieldMetadatas,
messageSuppression: buildMessageSuppressionStandardFlatFieldMetadatas,
agentMessagePart: buildAgentMessagePartStandardFlatFieldMetadatas,
+ agentMessageReaction: buildAgentMessageReactionStandardFlatFieldMetadatas,
agentMessage: buildAgentMessageStandardFlatFieldMetadatas,
agentTurn: buildAgentTurnStandardFlatFieldMetadatas,
agentChatThread: buildAgentChatThreadStandardFlatFieldMetadatas,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-reaction-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-reaction-standard-flat-field-metadata.util.ts
new file mode 100644
index 00000000000..e4f3dfbb257
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-reaction-standard-flat-field-metadata.util.ts
@@ -0,0 +1,199 @@
+import { type AllStandardObjectFieldName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-field-name.type';
+import { msg } from '@lingui/core/macro';
+import {
+ FieldMetadataType,
+ MetadataWritability,
+ RelationType,
+ RelationOnDeleteAction,
+} from 'twenty-shared/types';
+import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
+import {
+ type CreateStandardFieldArgs,
+ createStandardFieldFlatMetadata,
+} from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util';
+import { createStandardRelationFieldFlatMetadata } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-relation-field-flat-metadata.util';
+import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';
+
+export const buildAgentMessageReactionStandardFlatFieldMetadatas = (
+ args: Omit<
+ CreateStandardFieldArgs<'agentMessageReaction', FieldMetadataType>,
+ 'context'
+ >,
+): Record<
+ AllStandardObjectFieldName<'agentMessageReaction'>,
+ FlatFieldMetadata
+> => ({
+ id: {
+ ...createStandardFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'id',
+ type: FieldMetadataType.UUID,
+ label: i18nLabel(
+ msg({ message: 'ID', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({ message: 'ID', context: 'fieldMetadata.description' }),
+ ),
+ icon: 'IconId',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: false,
+ defaultValue: 'uuid',
+ },
+ }),
+ writability: MetadataWritability.SYSTEM,
+ isAuditLogged: false,
+ },
+ createdAt: {
+ ...createStandardFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'createdAt',
+ type: FieldMetadataType.DATE_TIME,
+ label: i18nLabel(
+ msg({ message: 'Created At', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({ message: 'Created At', context: 'fieldMetadata.description' }),
+ ),
+ icon: 'IconCalendar',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: false,
+ defaultValue: 'now',
+ },
+ }),
+ writability: MetadataWritability.SYSTEM,
+ isAuditLogged: false,
+ },
+ updatedAt: {
+ ...createStandardFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'updatedAt',
+ type: FieldMetadataType.DATE_TIME,
+ label: i18nLabel(
+ msg({ message: 'Updated At', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({ message: 'Updated At', context: 'fieldMetadata.description' }),
+ ),
+ icon: 'IconCalendar',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: false,
+ defaultValue: 'now',
+ },
+ }),
+ writability: MetadataWritability.SYSTEM,
+ isAuditLogged: false,
+ },
+ deletedAt: {
+ ...createStandardFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'deletedAt',
+ type: FieldMetadataType.DATE_TIME,
+ label: i18nLabel(
+ msg({ message: 'Deleted At', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({ message: 'Deleted At', context: 'fieldMetadata.description' }),
+ ),
+ icon: 'IconCalendar',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: true,
+ },
+ }),
+ writability: MetadataWritability.SYSTEM,
+ isAuditLogged: false,
+ },
+ message: {
+ ...createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'message',
+ type: FieldMetadataType.RELATION,
+ label: i18nLabel(
+ msg({ message: 'Message', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Chat message this reaction is on',
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconMessage',
+ isUIEditable: false,
+ isNullable: false,
+ targetObjectName: 'agentMessage',
+ targetFieldName: 'reactions',
+ morphId: null,
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'messageId',
+ },
+ },
+ }),
+ writability: MetadataWritability.SYSTEM,
+ isAuditLogged: false,
+ },
+ workspaceMember: {
+ ...createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'workspaceMember',
+ type: FieldMetadataType.RELATION,
+ label: i18nLabel(
+ msg({ message: 'Workspace Member', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Workspace member who reacted',
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconUser',
+ isUIEditable: false,
+ isNullable: false,
+ targetObjectName: 'workspaceMember',
+ targetFieldName: 'agentMessageReactions',
+ morphId: null,
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'workspaceMemberId',
+ },
+ },
+ }),
+ writability: MetadataWritability.SYSTEM,
+ isAuditLogged: false,
+ },
+ emoji: {
+ ...createStandardFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'emoji',
+ type: FieldMetadataType.TEXT,
+ label: i18nLabel(
+ msg({ message: 'Emoji', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Emoji the member reacted with',
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconMoodSmile',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: false,
+ },
+ }),
+ writability: MetadataWritability.SYSTEM,
+ isAuditLogged: false,
+ },
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-standard-flat-field-metadata.util.ts
index bfacd4f4f0b..9d8ad18ec8b 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-standard-flat-field-metadata.util.ts
@@ -336,4 +336,34 @@ export const buildAgentMessageStandardFlatFieldMetadatas = (
writability: MetadataWritability.SYSTEM,
isAuditLogged: false,
},
+ reactions: {
+ ...createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'reactions',
+ type: FieldMetadataType.RELATION,
+ label: i18nLabel(
+ msg({ message: 'Reactions', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Emoji reactions of workspace members to this message',
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconMoodSmile',
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'agentMessageReaction',
+ targetFieldName: 'message',
+ morphId: null,
+ settings: {
+ relationType: RelationType.ONE_TO_MANY,
+ joinColumnName: null,
+ },
+ },
+ }),
+ writability: MetadataWritability.SYSTEM,
+ isAuditLogged: false,
+ },
});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-workspace-member-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-workspace-member-standard-flat-field-metadata.util.ts
index e9394c2c7bd..f9426213add 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-workspace-member-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-workspace-member-standard-flat-field-metadata.util.ts
@@ -944,6 +944,39 @@ export const buildWorkspaceMemberStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
+ agentMessageReactions: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'agentMessageReactions',
+ label: i18nLabel(
+ msg({
+ message: `Chat message reactions`,
+ context: 'fieldMetadata.label',
+ }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Emoji reactions of the workspace member to AI chat messages`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconMoodSmile',
+ isNullable: true,
+ isUIEditable: false,
+ targetObjectName: 'agentMessageReaction',
+ targetFieldName: 'workspaceMember',
+ settings: {
+ relationType: RelationType.ONE_TO_MANY,
+ },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
assignedAgentChatThreads: createStandardRelationFieldFlatMetadata({
objectName,
workspaceId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts
index dbc12dbacf8..3feb6b4cb6e 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts
@@ -2,6 +2,7 @@ import { buildCampaignDeliveryStandardFlatIndexMetadatas } from 'src/engine/work
import { buildMessageSuppressionStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-message-suppression-standard-flat-index-metadata.util';
import { buildAgentChatThreadParticipantStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-chat-thread-participant-standard-flat-index-metadata.util';
import { buildAgentMessagePartStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-message-part-standard-flat-index-metadata.util';
+import { buildAgentMessageReactionStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-message-reaction-standard-flat-index-metadata.util';
import { buildAgentMessageStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-message-standard-flat-index-metadata.util';
import { buildAgentTurnStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-turn-standard-flat-index-metadata.util';
import { buildAgentChatThreadStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-chat-thread-standard-flat-index-metadata.util';
@@ -51,6 +52,7 @@ const STANDARD_FLAT_INDEX_METADATA_BUILDERS_BY_OBJECT_NAME = {
campaignDelivery: buildCampaignDeliveryStandardFlatIndexMetadatas,
messageSuppression: buildMessageSuppressionStandardFlatIndexMetadatas,
agentMessagePart: buildAgentMessagePartStandardFlatIndexMetadatas,
+ agentMessageReaction: buildAgentMessageReactionStandardFlatIndexMetadatas,
agentMessage: buildAgentMessageStandardFlatIndexMetadatas,
agentTurn: buildAgentTurnStandardFlatIndexMetadatas,
agentChatThread: buildAgentChatThreadStandardFlatIndexMetadatas,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-message-reaction-standard-flat-index-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-message-reaction-standard-flat-index-metadata.util.ts
new file mode 100644
index 00000000000..4783933340d
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-message-reaction-standard-flat-index-metadata.util.ts
@@ -0,0 +1,28 @@
+import { type FlatIndexMetadata } from 'src/engine/metadata-modules/flat-index-metadata/types/flat-index-metadata.type';
+import {
+ type CreateStandardIndexArgs,
+ createStandardIndexFlatMetadata,
+} from 'src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util';
+
+export const buildAgentMessageReactionStandardFlatIndexMetadatas = (
+ args: Omit<CreateStandardIndexArgs<'agentMessageReaction'>, 'context'>,
+): Record<string, FlatIndexMetadata> => ({
+ messageWorkspaceMemberEmojiUniqueIndex: createStandardIndexFlatMetadata({
+ ...args,
+ context: {
+ indexName: 'messageWorkspaceMemberEmojiUniqueIndex',
+ relatedFieldNames: ['message', 'workspaceMember', 'emoji'],
+ isUnique: true,
+ indexWhereClause: '"deletedAt" IS NULL',
+ },
+ }),
+ workspaceMemberIndex: createStandardIndexFlatMetadata({
+ ...args,
+ context: {
+ indexName: 'workspaceMemberIndex',
+ relatedFieldNames: ['workspaceMember'],
+ isUnique: false,
+ indexWhereClause: null,
+ },
+ }),
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts
index fc4e985161c..735379c6bfe 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts
@@ -224,6 +224,51 @@ export const STANDARD_FLAT_OBJECT_METADATA_BUILDERS_BY_OBJECT_NAME = {
labelIdentifierFieldMetadataName: 'id',
},
}),
+ agentMessageReaction: (
+ args: Omit<
+ CreateStandardObjectArgs<'agentMessageReaction'>,
+ 'context' | 'objectName'
+ >,
+ ) =>
+ createStandardObjectFlatMetadata({
+ ...args,
+ objectName: 'agentMessageReaction',
+ context: {
+ universalIdentifier:
+ STANDARD_OBJECTS.agentMessageReaction.universalIdentifier,
+ nameSingular: 'agentMessageReaction',
+ namePlural: 'agentMessageReactions',
+ labelSingular: i18nLabel(
+ msg({
+ message: 'Chat message reaction',
+ context: 'objectMetadata.labelSingular',
+ }),
+ ),
+ labelPlural: i18nLabel(
+ msg({
+ message: 'Chat message reactions',
+ context: 'objectMetadata.labelPlural',
+ }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Emoji reaction of a workspace member to a chat message',
+ context: 'objectMetadata.description',
+ }),
+ ),
+ icon: 'IconMoodSmile',
+ isSystem: true,
+ isSearchable: false,
+ isAuditLogged: false,
+ isUIEditable: false,
+ isUICreatable: false,
+ // Read and written only through the chat resolvers, which check the
+ // member can read the message's thread
+ readability: MetadataReadability.SYSTEM,
+ writability: MetadataWritability.SYSTEM,
+ labelIdentifierFieldMetadataName: 'id',
+ },
+ }),
agentChatThreadParticipant: (
args: Omit<
CreateStandardObjectArgs<'agentChatThreadParticipant'>,
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts
index adf172582e3..ba868c0a6b9 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts
@@ -3,6 +3,7 @@ export const STANDARD_OBJECT_ICONS = {
activity: 'IconCheckbox',
agentChatThreadTarget: 'IconMessage',
agentChatThreadParticipant: 'IconMessage',
+ agentMessageReaction: 'IconMoodSmile',
apiKey: 'IconRobot',
attachment: 'IconFileImport',
blocklist: 'IconForbid2',
diff --git a/packages/twenty-server/src/modules/workspace-member/standard-objects/workspace-member.workspace-entity.ts b/packages/twenty-server/src/modules/workspace-member/standard-objects/workspace-member.workspace-entity.ts
index e865b18e663..b8428d0f8a8 100644
--- a/packages/twenty-server/src/modules/workspace-member/standard-objects/workspace-member.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/workspace-member/standard-objects/workspace-member.workspace-entity.ts
@@ -7,6 +7,7 @@ import { type Relation } from 'typeorm';
import { type AgentChatThreadParticipantWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread-participant.workspace-entity';
import { type AgentChatThreadWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity';
+import { type AgentMessageReactionWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message-reaction.workspace-entity';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-objects/attachment.workspace-entity';
import { type BlocklistWorkspaceEntity } from 'src/modules/blocklist/standard-objects/blocklist.workspace-entity';
@@ -85,6 +86,7 @@ export class WorkspaceMemberWorkspaceEntity extends BaseWorkspaceEntity {
agentChatThreadParticipants: Relation<
AgentChatThreadParticipantWorkspaceEntity[]
>;
+ agentMessageReactions: Relation<AgentMessageReactionWorkspaceEntity[]>;
ownedOpportunities: Relation<OpportunityWorkspaceEntity[]>;
searchVector: string;
numberFormat: string;
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.snap
index fb3967cc075..727687af1c0 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
@@ -61,6 +61,8 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an
"AdminPanelUsageLimitResolver.deleteWorkspaceUsageLimit {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AdminPanelUsageLimitResolver.updateWorkspaceUsageLimit {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AdminPanelUsageLimitResolver.workspaceUsageLimits {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
+ "AgentChatMessageReactionResolver.addAgentChatMessageReaction {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
+ "AgentChatMessageReactionResolver.removeAgentChatMessageReaction {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AgentChatResolver.chatMessages {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AgentChatResolver.chatStreamCatchupChunks {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AgentChatResolver.chatThread {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
diff --git a/packages/twenty-server/test/integration/graphql/suites/chat-message-reaction.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/chat-message-reaction.integration-spec.ts
new file mode 100644
index 00000000000..62084cffc05
--- /dev/null
+++ b/packages/twenty-server/test/integration/graphql/suites/chat-message-reaction.integration-spec.ts
@@ -0,0 +1,323 @@
+import { randomUUID } from 'node:crypto';
+
+import { parse } from 'graphql';
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import {
+ RecordShareAccessLevel,
+ RecordSharePrincipalType,
+} from 'twenty-shared/types';
+
+import { makeMetadataApiRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
+import { destroyAgentChatThread } from 'test/integration/utils/destroy-agent-chat-thread.util';
+import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';
+import { setManualRecordShare } from 'test/integration/utils/set-manual-record-share.util';
+
+import { type AgentChatEventPublisherService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-event-publisher.service';
+import { type AgentChatThreadService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread.service';
+import { type WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { getWorkspaceSchemaName } from 'src/engine/workspace-datasource/utils/get-workspace-schema-name.util';
+import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';
+import { WORKSPACE_MEMBER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/data/constants/workspace-member-data-seeds.constant';
+
+const SCHEMA = getWorkspaceSchemaName(SEED_APPLE_WORKSPACE_ID);
+
+const REACTION_FIELDS = 'emoji workspaceMemberIds';
+
+const ADD_REACTION = parse(
+ `mutation AddReaction($messageId: UUID!, $emoji: String!) { addAgentChatMessageReaction(messageId: $messageId, emoji: $emoji) { ${REACTION_FIELDS} } }`,
+);
+
+const REMOVE_REACTION = parse(
+ `mutation RemoveReaction($messageId: UUID!, $emoji: String!) { removeAgentChatMessageReaction(messageId: $messageId, emoji: $emoji) { ${REACTION_FIELDS} } }`,
+);
+
+const CHAT_MESSAGES = parse(
+ `query ChatMessages($threadId: UUID!) { chatMessages(threadId: $threadId) { id reactions { ${REACTION_FIELDS} } } }`,
+);
+
+type Reaction = { emoji: string; workspaceMemberIds: string[] };
+
+const react = (
+ mutation: typeof ADD_REACTION,
+ messageId: string,
+ emoji: string,
+ token: string = APPLE_JANE_ADMIN_ACCESS_TOKEN,
+) =>
+ makeMetadataApiRequest(
+ { query: mutation, variables: { messageId, emoji } },
+ token,
+ );
+
+const addReaction = (messageId: string, emoji: string, token?: string) =>
+ react(ADD_REACTION, messageId, emoji, token);
+
+const removeReaction = (messageId: string, emoji: string, token?: string) =>
+ react(REMOVE_REACTION, messageId, emoji, token);
+
+const findMessageReactions = async (
+ threadId: string,
+ messageId: string,
+): Promise<Reaction[]> => {
+ const response = await makeMetadataApiRequest(
+ { query: CHAT_MESSAGES, variables: { threadId } },
+ APPLE_JANE_ADMIN_ACCESS_TOKEN,
+ );
+
+ expect(response.body.errors).toBeUndefined();
+
+ return response.body.data.chatMessages.find(
+ ({ id }: { id: string }) => id === messageId,
+ ).reactions;
+};
+
+const insertMessage = async ({
+ threadId,
+ role = 'user',
+}: {
+ threadId: string;
+ role?: string;
+}): Promise<string> => {
+ const messageId = randomUUID();
+
+ await global.testDataSource.query(
+ `INSERT INTO ${SCHEMA}."agentMessage" (id, "threadId", role, status, "senderWorkspaceMemberId", "processedAt")
+ VALUES ($1, $2, $3, 'sent', $4, now())`,
+ [messageId, threadId, role, WORKSPACE_MEMBER_DATA_SEED_IDS.JANE],
+ );
+
+ return messageId;
+};
+
+const readThreadActivity = async (threadId: string) => {
+ const [row]: { lastActivityAt: Date; updatedAt: Date }[] =
+ await global.testDataSource.query(
+ `SELECT "lastActivityAt", "updatedAt" FROM ${SCHEMA}."agentChatThread" WHERE id = $1`,
+ [threadId],
+ );
+
+ return row;
+};
+
+const setShareWithJony = async (threadId: string, enabled: boolean) => {
+ const { flatObjectMetadataMaps } =
+ await getAppProviderByClassName<WorkspaceCacheService>(
+ 'WorkspaceCacheService',
+ ).getOrRecompute(SEED_APPLE_WORKSPACE_ID, ['flatObjectMetadataMaps']);
+
+ await setManualRecordShare({
+ workspaceId: SEED_APPLE_WORKSPACE_ID,
+ share: {
+ objectMetadataId:
+ flatObjectMetadataMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS.agentChatThread.universalIdentifier
+ ]!.id,
+ recordId: threadId,
+ principalId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY,
+ principalType: RecordSharePrincipalType.WORKSPACE_MEMBER,
+ accessLevel: RecordShareAccessLevel.READ,
+ sourceId: WORKSPACE_MEMBER_DATA_SEED_IDS.JANE,
+ },
+ enabled,
+ });
+};
+
+describe('Chat message reactions through the authenticated API', () => {
+ let threadId: string;
+ let messageId: string;
+ let isSharedWithJony: boolean;
+
+ beforeEach(async () => {
+ threadId = randomUUID();
+ isSharedWithJony = false;
+
+ await getAppProviderByClassName<AgentChatThreadService>(
+ 'AgentChatThreadService',
+ ).createThread({
+ workspaceId: SEED_APPLE_WORKSPACE_ID,
+ workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JANE,
+ id: threadId,
+ title: 'Reactions',
+ });
+ messageId = await insertMessage({ threadId });
+ });
+
+ afterEach(async () => {
+ jest.restoreAllMocks();
+
+ if (isSharedWithJony) {
+ await setShareWithJony(threadId, false);
+ }
+ await destroyAgentChatThread({ threadId });
+ });
+
+ const spyOnPublishedReactions = () => {
+ const publishSpy = jest.spyOn(
+ getAppProviderByClassName<AgentChatEventPublisherService>(
+ 'AgentChatEventPublisherService',
+ ),
+ 'publish',
+ );
+
+ return () =>
+ publishSpy.mock.calls
+ .map(([args]) => args)
+ .filter(({ event }) => event.type === 'message-reactions-updated');
+ };
+
+ it('adds a reaction once, sends it to the chat viewers and shows it on the message', async () => {
+ const findPublishedReactions = spyOnPublishedReactions();
+ const activityBefore = await readThreadActivity(threadId);
+
+ const added = await addReaction(messageId, 'πŸ‘');
+
+ expect(added.body.errors).toBeUndefined();
+ expect(added.body.data.addAgentChatMessageReaction).toEqual([
+ {
+ emoji: 'πŸ‘',
+ workspaceMemberIds: [WORKSPACE_MEMBER_DATA_SEED_IDS.JANE],
+ },
+ ]);
+ expect(findPublishedReactions()).toEqual([
+ {
+ threadId,
+ workspaceId: SEED_APPLE_WORKSPACE_ID,
+ event: {
+ type: 'message-reactions-updated',
+ messageId,
+ reactions: added.body.data.addAgentChatMessageReaction,
+ revision: expect.any(Number),
+ },
+ },
+ ]);
+
+ const addedAgain = await addReaction(messageId, 'πŸ‘');
+
+ expect(addedAgain.body.errors).toBeUndefined();
+ expect(addedAgain.body.data.addAgentChatMessageReaction).toEqual(
+ added.body.data.addAgentChatMessageReaction,
+ );
+ expect(findPublishedReactions()).toHaveLength(1);
+ expect(await findMessageReactions(threadId, messageId)).toEqual(
+ added.body.data.addAgentChatMessageReaction,
+ );
+ expect(await readThreadActivity(threadId)).toEqual(activityBefore);
+ });
+
+ it('removes a reaction, and removing it again changes nothing', async () => {
+ const findPublishedReactions = spyOnPublishedReactions();
+
+ await addReaction(messageId, 'πŸ‘');
+ await addReaction(messageId, 'πŸŽ‰');
+
+ const removed = await removeReaction(messageId, 'πŸ‘');
+
+ expect(removed.body.errors).toBeUndefined();
+ expect(removed.body.data.removeAgentChatMessageReaction).toEqual([
+ {
+ emoji: 'πŸŽ‰',
+ workspaceMemberIds: [WORKSPACE_MEMBER_DATA_SEED_IDS.JANE],
+ },
+ ]);
+ const revisions = findPublishedReactions().map(({ event }) =>
+ event.type === 'message-reactions-updated' ? event.revision : 0,
+ );
+
+ expect(revisions).toHaveLength(3);
+ expect([...revisions].sort((a, b) => a - b)).toEqual(revisions);
+ expect(new Set(revisions).size).toBe(3);
+
+ const removedAgain = await removeReaction(messageId, 'πŸ‘');
+
+ expect(removedAgain.body.errors).toBeUndefined();
+ expect(removedAgain.body.data.removeAgentChatMessageReaction).toEqual(
+ removed.body.data.removeAgentChatMessageReaction,
+ );
+ expect(findPublishedReactions()).toHaveLength(3);
+ expect(await findMessageReactions(threadId, messageId)).toEqual(
+ removed.body.data.removeAgentChatMessageReaction,
+ );
+ });
+
+ it('refuses a member who cannot read the thread, then lets them react once it is shared', async () => {
+ const refused = await addReaction(
+ messageId,
+ 'πŸ‘',
+ APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ );
+
+ expect(refused.body.errors[0].extensions.code).toBe('NOT_FOUND');
+ expect(await findMessageReactions(threadId, messageId)).toEqual([]);
+
+ const refusedRemoval = await removeReaction(
+ messageId,
+ 'πŸ‘',
+ APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ );
+
+ expect(refusedRemoval.body.errors[0].extensions.code).toBe('NOT_FOUND');
+
+ isSharedWithJony = true;
+ await setShareWithJony(threadId, true);
+ await addReaction(messageId, 'πŸŽ‰');
+
+ const added = await addReaction(
+ messageId,
+ 'πŸ‘',
+ APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ );
+
+ expect(added.body.errors).toBeUndefined();
+ await addReaction(messageId, 'πŸ‘');
+
+ // Each emoji keeps the place of its first use, each member the order they reacted in
+ expect(await findMessageReactions(threadId, messageId)).toEqual([
+ {
+ emoji: 'πŸŽ‰',
+ workspaceMemberIds: [WORKSPACE_MEMBER_DATA_SEED_IDS.JANE],
+ },
+ {
+ emoji: 'πŸ‘',
+ workspaceMemberIds: [
+ WORKSPACE_MEMBER_DATA_SEED_IDS.JONY,
+ WORKSPACE_MEMBER_DATA_SEED_IDS.JANE,
+ ],
+ },
+ ]);
+ });
+
+ it.each([
+ ['an empty emoji', ''],
+ ['text', 'nice'],
+ ['an emoji with whitespace', 'πŸ‘ πŸŽ‰'],
+ ['a value over 32 characters', 'πŸ‘'.repeat(17)],
+ ])('refuses %s', async (_label, emoji) => {
+ const response = await addReaction(messageId, emoji);
+
+ expect(response.body.errors[0].extensions.code).toBe('BAD_USER_INPUT');
+ expect(await findMessageReactions(threadId, messageId)).toEqual([]);
+ });
+
+ it('refuses a message that does not exist or is never shown', async () => {
+ const contextMessageId = await insertMessage({ threadId, role: 'system' });
+
+ for (const unknownMessageId of [randomUUID(), contextMessageId]) {
+ const response = await addReaction(unknownMessageId, 'πŸ‘');
+
+ expect(response.body.errors[0].extensions.code).toBe('NOT_FOUND');
+ }
+ });
+
+ it('shows the reactions of each message on its own', async () => {
+ const otherMessageId = await insertMessage({ threadId });
+
+ await addReaction(otherMessageId, 'πŸš€');
+
+ expect(await findMessageReactions(threadId, messageId)).toEqual([]);
+ expect(await findMessageReactions(threadId, otherMessageId)).toEqual([
+ {
+ emoji: 'πŸš€',
+ workspaceMemberIds: [WORKSPACE_MEMBER_DATA_SEED_IDS.JANE],
+ },
+ ]);
+ });
+});
diff --git a/packages/twenty-server/test/integration/upgrade/suites/2-48-workspace-command-1792072097024-add-agent-message-reaction-object.integration-spec.ts b/packages/twenty-server/test/integration/upgrade/suites/2-48-workspace-command-1792072097024-add-agent-message-reaction-object.integration-spec.ts
new file mode 100644
index 00000000000..88283acb0ea
--- /dev/null
+++ b/packages/twenty-server/test/integration/upgrade/suites/2-48-workspace-command-1792072097024-add-agent-message-reaction-object.integration-spec.ts
@@ -0,0 +1,141 @@
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+
+import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';
+
+import { type AddAgentMessageReactionObjectCommand } from 'src/database/commands/upgrade-version-command/2-48/2-48-workspace-command-1792072097024-add-agent-message-reaction-object.command';
+import { findFlatEntityByUniversalIdentifier } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-universal-identifier.util';
+import { type WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { getWorkspaceSchemaName } from 'src/engine/workspace-datasource/utils/get-workspace-schema-name.util';
+import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';
+
+const RUN_ON_WORKSPACE_ARGS = {
+ workspaceId: SEED_APPLE_WORKSPACE_ID,
+ options: {},
+ index: 0,
+ total: 1,
+};
+
+const FIELD_UNIVERSAL_IDENTIFIERS = [
+ ...Object.values(STANDARD_OBJECTS.agentMessageReaction.fields).map(
+ ({ universalIdentifier }) => universalIdentifier,
+ ),
+ STANDARD_OBJECTS.agentMessage.fields.reactions.universalIdentifier,
+ STANDARD_OBJECTS.workspaceMember.fields.agentMessageReactions
+ .universalIdentifier,
+];
+
+const INDEX_UNIVERSAL_IDENTIFIERS = Object.values(
+ STANDARD_OBJECTS.agentMessageReaction.indexes,
+).map(({ universalIdentifier }) => universalIdentifier);
+
+describe('2-48 workspace command - add agent message reaction object (integration)', () => {
+ let command: AddAgentMessageReactionObjectCommand;
+ let workspaceCacheService: WorkspaceCacheService;
+
+ const findReactionMetadata = async () => {
+ const { flatObjectMetadataMaps, flatFieldMetadataMaps, flatIndexMaps } =
+ await workspaceCacheService.getOrRecompute(SEED_APPLE_WORKSPACE_ID, [
+ 'flatObjectMetadataMaps',
+ 'flatFieldMetadataMaps',
+ 'flatIndexMaps',
+ ]);
+
+ return {
+ hasObject:
+ findFlatEntityByUniversalIdentifier({
+ flatEntityMaps: flatObjectMetadataMaps,
+ universalIdentifier:
+ STANDARD_OBJECTS.agentMessageReaction.universalIdentifier,
+ }) !== undefined,
+ fieldCount: FIELD_UNIVERSAL_IDENTIFIERS.filter(
+ (universalIdentifier) =>
+ findFlatEntityByUniversalIdentifier({
+ flatEntityMaps: flatFieldMetadataMaps,
+ universalIdentifier,
+ }) !== undefined,
+ ).length,
+ indexCount: INDEX_UNIVERSAL_IDENTIFIERS.filter(
+ (universalIdentifier) =>
+ findFlatEntityByUniversalIdentifier({
+ flatEntityMaps: flatIndexMaps,
+ universalIdentifier,
+ }) !== undefined,
+ ).length,
+ };
+ };
+
+ const hasReactionTable = async (): Promise<boolean> => {
+ const tables: unknown[] = await global.testDataSource.query(
+ `SELECT 1 FROM information_schema.tables
+ WHERE table_schema = $1 AND table_name = 'agentMessageReaction'`,
+ [getWorkspaceSchemaName(SEED_APPLE_WORKSPACE_ID)],
+ );
+
+ return tables.length === 1;
+ };
+
+ beforeAll(() => {
+ command = getAppProviderByClassName<AddAgentMessageReactionObjectCommand>(
+ 'AddAgentMessageReactionObjectCommand',
+ );
+ workspaceCacheService = getAppProviderByClassName<WorkspaceCacheService>(
+ 'WorkspaceCacheService',
+ );
+ });
+
+ // Leaves the workspace as it found it, with the object provisioned
+ afterAll(async () => {
+ await command.up(RUN_ON_WORKSPACE_ARGS);
+ });
+
+ it('changes nothing on a dry run', async () => {
+ await command.down({ ...RUN_ON_WORKSPACE_ARGS, options: { dryRun: true } });
+
+ expect(await findReactionMetadata()).toEqual({
+ hasObject: true,
+ fieldCount: FIELD_UNIVERSAL_IDENTIFIERS.length,
+ indexCount: INDEX_UNIVERSAL_IDENTIFIERS.length,
+ });
+ });
+
+ it('removes the object, its inverse relations and indexes on down', async () => {
+ await command.down(RUN_ON_WORKSPACE_ARGS);
+
+ expect(await findReactionMetadata()).toEqual({
+ hasObject: false,
+ fieldCount: 0,
+ indexCount: 0,
+ });
+ expect(await hasReactionTable()).toBe(false);
+ });
+
+ it('only reports what it would create on a dry run', async () => {
+ await command.up({ ...RUN_ON_WORKSPACE_ARGS, options: { dryRun: true } });
+
+ expect(await findReactionMetadata()).toEqual({
+ hasObject: false,
+ fieldCount: 0,
+ indexCount: 0,
+ });
+ });
+
+ it('creates them back on up', async () => {
+ await command.up(RUN_ON_WORKSPACE_ARGS);
+
+ expect(await findReactionMetadata()).toEqual({
+ hasObject: true,
+ fieldCount: FIELD_UNIVERSAL_IDENTIFIERS.length,
+ indexCount: INDEX_UNIVERSAL_IDENTIFIERS.length,
+ });
+ expect(await hasReactionTable()).toBe(true);
+ });
+
+ it('changes nothing when it runs again', async () => {
+ await expect(command.up(RUN_ON_WORKSPACE_ARGS)).resolves.toBeUndefined();
+ expect(await findReactionMetadata()).toEqual({
+ hasObject: true,
+ fieldCount: FIELD_UNIVERSAL_IDENTIFIERS.length,
+ indexCount: INDEX_UNIVERSAL_IDENTIFIERS.length,
+ });
+ });
+});
diff --git a/packages/twenty-shared/src/ai/constants/agent-message-reaction-emoji-max-length.const.ts b/packages/twenty-shared/src/ai/constants/agent-message-reaction-emoji-max-length.const.ts
new file mode 100644
index 00000000000..b0abfa2a82e
--- /dev/null
+++ b/packages/twenty-shared/src/ai/constants/agent-message-reaction-emoji-max-length.const.ts
@@ -0,0 +1,2 @@
+// Room for multi-codepoint emojis (skin tones, ZWJ sequences, flags)
+export const AGENT_MESSAGE_REACTION_EMOJI_MAX_LENGTH = 32;
diff --git a/packages/twenty-shared/src/ai/index.ts b/packages/twenty-shared/src/ai/index.ts
index 5978f18a1f4..aa9f74a1914 100644
--- a/packages/twenty-shared/src/ai/index.ts
+++ b/packages/twenty-shared/src/ai/index.ts
@@ -7,6 +7,7 @@
* |___/
*/
+export { AGENT_MESSAGE_REACTION_EMOJI_MAX_LENGTH } from './constants/agent-message-reaction-emoji-max-length.const';
export type { AiEvaluationQuestionType } from './constants/ai-evaluation-question-type.const';
export { AI_EVALUATION_QUESTION_TYPES } from './constants/ai-evaluation-question-type.const';
export { AI_MODEL_EFFORT_LABELS } from './constants/ai-model-effort-labels.const';
@@ -42,6 +43,7 @@ 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 { AgentMessageReactionSummary } from './types/AgentMessageReactionSummary';
export type {
AgentResponseFormatType,
AgentTextResponseFormat,
@@ -116,5 +118,6 @@ export { isNoReplyToolPart } from './utils/is-no-reply-tool-part.util';
export { isPausingToolPart } from './utils/is-pausing-tool-part.util';
export { isSilentAgentChatMessageParts } from './utils/is-silent-agent-chat-message-parts.util';
export { isSucceededCompleteWorkspaceSetupToolPart } from './utils/is-succeeded-complete-workspace-setup-tool-part.util';
+export { isValidAgentMessageReactionEmoji } from './utils/is-valid-agent-message-reaction-emoji.util';
export { isValidAgentResponseSchemaPropertyKey } from './utils/is-valid-agent-response-schema-property-key.util';
export { parseAiModelVariantId } from './utils/parse-ai-model-variant-id.util';
diff --git a/packages/twenty-shared/src/ai/types/AgentChatSubscriptionEvent.ts b/packages/twenty-shared/src/ai/types/AgentChatSubscriptionEvent.ts
index 85952be1e47..1e15e9ea58f 100644
--- a/packages/twenty-shared/src/ai/types/AgentChatSubscriptionEvent.ts
+++ b/packages/twenty-shared/src/ai/types/AgentChatSubscriptionEvent.ts
@@ -1,9 +1,17 @@
+import { type AgentMessageReactionSummary } from '@/ai/types/AgentMessageReactionSummary';
+
// Not UIMessageChunk, to keep the `ai` package out of twenty-shared.
export type AgentChatSubscriptionEvent =
| { type: 'stream-chunk'; chunk: Record<string, unknown>; seq?: number }
| { type: 'message-persisted'; messageId: string }
| { type: 'queue-updated' }
| { type: 'tool-call-resolved'; toolCallId: string }
+ | {
+ type: 'message-reactions-updated';
+ messageId: string;
+ reactions: AgentMessageReactionSummary[];
+ revision: number;
+ }
| { type: 'stream-error'; code: string; message: string }
| { type: 'credits-exhausted' }
| { type: 'keepalive' };
diff --git a/packages/twenty-shared/src/ai/types/AgentMessageReactionSummary.ts b/packages/twenty-shared/src/ai/types/AgentMessageReactionSummary.ts
new file mode 100644
index 00000000000..ec3893eab7c
--- /dev/null
+++ b/packages/twenty-shared/src/ai/types/AgentMessageReactionSummary.ts
@@ -0,0 +1,4 @@
+export type AgentMessageReactionSummary = {
+ emoji: string;
+ workspaceMemberIds: string[];
+};
diff --git a/packages/twenty-shared/src/ai/utils/__tests__/is-valid-agent-message-reaction-emoji.util.spec.ts b/packages/twenty-shared/src/ai/utils/__tests__/is-valid-agent-message-reaction-emoji.util.spec.ts
new file mode 100644
index 00000000000..dd19f29ee62
--- /dev/null
+++ b/packages/twenty-shared/src/ai/utils/__tests__/is-valid-agent-message-reaction-emoji.util.spec.ts
@@ -0,0 +1,21 @@
+import { isValidAgentMessageReactionEmoji } from '../is-valid-agent-message-reaction-emoji.util';
+
+describe('isValidAgentMessageReactionEmoji', () => {
+ it.each(['πŸ‘', '❀️', 'πŸŽ‰', 'πŸ‘πŸ½', 'πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦', 'πŸ³οΈβ€πŸŒˆ', 'πŸ‡«πŸ‡·', '1️⃣'])(
+ 'should accept "%s"',
+ (emoji) => {
+ expect(isValidAgentMessageReactionEmoji(emoji)).toBe(true);
+ },
+ );
+
+ it.each([
+ ['an empty string', ''],
+ ['plain text', 'ok'],
+ ['a digit', '1'],
+ ['an emoji followed by a space', 'πŸ‘ '],
+ ['two emojis split by a newline', 'πŸ‘\nπŸŽ‰'],
+ ['over 32 characters', 'πŸ‘'.repeat(17)],
+ ])('should reject %s', (_label, emoji) => {
+ expect(isValidAgentMessageReactionEmoji(emoji)).toBe(false);
+ });
+});
diff --git a/packages/twenty-shared/src/ai/utils/is-valid-agent-message-reaction-emoji.util.ts b/packages/twenty-shared/src/ai/utils/is-valid-agent-message-reaction-emoji.util.ts
new file mode 100644
index 00000000000..5976a0c65cd
--- /dev/null
+++ b/packages/twenty-shared/src/ai/utils/is-valid-agent-message-reaction-emoji.util.ts
@@ -0,0 +1,13 @@
+import { AGENT_MESSAGE_REACTION_EMOJI_MAX_LENGTH } from '@/ai/constants/agent-message-reaction-emoji-max-length.const';
+
+// Flags are regional indicator pairs and keycaps end with U+20E3, neither is
+// Extended_Pictographic
+const EMOJI_PATTERN =
+ /\p{Extended_Pictographic}|\p{Regional_Indicator}|\u20E3/u;
+const WHITESPACE_PATTERN = /\s/u;
+
+export const isValidAgentMessageReactionEmoji = (emoji: string): boolean =>
+ emoji.length > 0 &&
+ emoji.length <= AGENT_MESSAGE_REACTION_EMOJI_MAX_LENGTH &&
+ EMOJI_PATTERN.test(emoji) &&
+ !WHITESPACE_PATTERN.test(emoji);
diff --git a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
index 12b5ccb778b..43d55b325f8 100644
--- a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
+++ b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
@@ -223,6 +223,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"processedAt": {
"universalIdentifier": "b1a72274-095e-41f6-95d3-e5b407ff3f0b",
},
+ "reactions": {
+ "universalIdentifier": "945e1e83-af08-45c9-8d6c-fb49f1e4a21c",
+ },
"role": {
"universalIdentifier": "5dc985f3-edad-4ebf-9844-b34ca686855b",
},
@@ -352,6 +355,40 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
},
"universalIdentifier": "214bacb0-df89-494e-be42-e5b11c99cff6",
},
+ "agentMessageReaction": {
+ "fields": {
+ "createdAt": {
+ "universalIdentifier": "f7d1a78c-7a05-5f20-9d7f-c53adcb5a8d3",
+ },
+ "deletedAt": {
+ "universalIdentifier": "05ea3618-9342-5067-b98c-250bddc14152",
+ },
+ "emoji": {
+ "universalIdentifier": "88eeecdd-08a7-4744-bdd1-86b7f4a14394",
+ },
+ "id": {
+ "universalIdentifier": "a147d91d-7109-526a-bebe-3a0eb81f251f",
+ },
+ "message": {
+ "universalIdentifier": "18fec29f-89bd-4f33-8b80-f7a83a9a2e31",
+ },
+ "updatedAt": {
+ "universalIdentifier": "e149d3c2-4a6a-5f01-b156-c6a63550c59e",
+ },
+ "workspaceMember": {
+ "universalIdentifier": "77265b6b-b634-426a-8972-8601947ca6ad",
+ },
+ },
+ "indexes": {
+ "messageWorkspaceMemberEmojiUniqueIndex": {
+ "universalIdentifier": "4089a239-e2d0-4e3e-83e8-e9b555a8a31d",
+ },
+ "workspaceMemberIndex": {
+ "universalIdentifier": "565d89ab-2c11-4ebe-aaaf-8dbc4d79a9e5",
+ },
+ },
+ "universalIdentifier": "7d34e524-cbaf-4a53-b021-eb0313397f22",
+ },
"agentTurn": {
"fields": {
"agentId": {
@@ -4190,6 +4227,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"agentChatThreads": {
"universalIdentifier": "fbaf92a6-44ae-4b6d-9d10-2c15d84eaea1",
},
+ "agentMessageReactions": {
+ "universalIdentifier": "9242d7b0-bb3a-4bb6-a830-5e84e722c684",
+ },
"agentMessages": {
"universalIdentifier": "211b2717-450a-4f5f-808f-39695c819319",
},
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts
index 0b553f8d14e..172376b96c9 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts
@@ -189,6 +189,17 @@ export const STANDARD_OBJECT_FIELDS = {
thread: { universalIdentifier: '48ea202f-ed6d-4ad9-8c9b-71a419b96237' },
turn: { universalIdentifier: 'b36513fc-ffaf-4e99-8686-b1aefca70b76' },
parts: { universalIdentifier: '017e4930-118d-4624-8ce4-4e574f89f86d' },
+ reactions: { universalIdentifier: '945e1e83-af08-45c9-8d6c-fb49f1e4a21c' },
+ },
+ agentMessageReaction: {
+ ...buildStandardObjectBaseFields(
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentMessageReaction,
+ ),
+ message: { universalIdentifier: '18fec29f-89bd-4f33-8b80-f7a83a9a2e31' },
+ workspaceMember: {
+ universalIdentifier: '77265b6b-b634-426a-8972-8601947ca6ad',
+ },
+ emoji: { universalIdentifier: '88eeecdd-08a7-4744-bdd1-86b7f4a14394' },
},
agentMessagePart: {
...buildStandardObjectBaseFields(
@@ -1630,6 +1641,9 @@ export const STANDARD_OBJECT_FIELDS = {
agentChatThreadParticipants: {
universalIdentifier: 'd1de909f-a0eb-4e94-8903-abec012864c9',
},
+ agentMessageReactions: {
+ universalIdentifier: '9242d7b0-bb3a-4bb6-a830-5e84e722c684',
+ },
assignedAgentChatThreads: {
universalIdentifier: 'a89c46f5-cdb7-40e9-9a87-a8ecf0818c3c',
},
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts
index 1fd05b68eec..3a72fc89980 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts
@@ -6,6 +6,7 @@ export const STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS = {
agentTurn: '63697477-8606-415e-86cb-be078d7fcf7e',
agentMessage: '62d0354c-3b99-4769-b0f5-4e2651c2ca7d',
agentMessagePart: '214bacb0-df89-494e-be42-e5b11c99cff6',
+ agentMessageReaction: '7d34e524-cbaf-4a53-b021-eb0313397f22',
campaignDelivery: '0c76066d-26f7-4f57-b0bd-0eb61465fb1a',
messageSuppression: '41410724-723c-48ab-8312-9b85131b4d84',
timelineActivity: '20202020-6736-4337-b5c4-8b39fae325a5',
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
index 8448d8741d0..9d3d0856bc6 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
@@ -1540,6 +1540,19 @@ export const STANDARD_OBJECTS = {
},
},
},
+ agentMessageReaction: {
+ universalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentMessageReaction,
+ fields: STANDARD_OBJECT_FIELDS.agentMessageReaction,
+ indexes: {
+ messageWorkspaceMemberEmojiUniqueIndex: {
+ universalIdentifier: '4089a239-e2d0-4e3e-83e8-e9b555a8a31d',
+ },
+ workspaceMemberIndex: {
+ universalIdentifier: '565d89ab-2c11-4ebe-aaaf-8dbc4d79a9e5',
+ },
+ },
+ },
agentMessagePart: {
universalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentMessagePart,
fields: STANDARD_OBJECT_FIELDS.agentMessagePart,
diff --git a/yarn.lock b/yarn.lock
index 9c334ea600c..ef7aea580cb 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -30179,6 +30179,15 @@ __metadata:
languageName: node
linkType: hard
+"emojibase-data@npm:^17.0.0":
+ version: 17.0.0
+ resolution: "emojibase-data@npm:17.0.0"
+ peerDependencies:
+ emojibase: "*"
+ checksum: 10c0/c1373438ac52e943a7953ce2315c0da4e29a6552a0ee9ae18a22dbf824a6b428d25655c55e2e48c69900358052408496807cdf7af12a43a0a1b39fb369cbf4a0
+ languageName: node
+ linkType: hard
+
"emojilib@npm:^2.4.0":
version: 2.4.0
resolution: "emojilib@npm:2.4.0"
@@ -32388,6 +32397,19 @@ __metadata:
languageName: node
linkType: hard
+"frimousse@npm:^0.4.0":
+ version: 0.4.0
+ resolution: "frimousse@npm:0.4.0"
+ peerDependencies:
+ react: ^18 || ^19
+ typescript: ">=5.1.0"
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ checksum: 10c0/5793a3098f8b1ff17d16f59109c9da7486837e999d5b52305890d4eef6f787f9452746175c33717aab2b6b4e3f178d6e9f0f6ca6d3aa213b46edddfce09cff21
+ languageName: node
+ linkType: hard
+
"front-matter@npm:4.0.2":
version: 4.0.2
resolution: "front-matter@npm:4.0.2"
@@ -50469,9 +50491,11 @@ __metadata:
date-fns-tz: "npm:^3.2.0"
deep-equal: "npm:^2.2.2"
dotenv-cli: "npm:^7.4.4"
+ emojibase-data: "npm:^17.0.0"
esbuild: "npm:^0.28.1"
file-saver: "npm:^2.0.5"
framer-motion: "npm:^11.18.0"
+ frimousse: "npm:^0.4.0"
fuse.js: "npm:^7.1.0"
graphiql: "npm:^5.2.3"
graphql: "npm:16.8.1"