Skip to content

The open alternative to Salesforce, designed for AI.

Remove agent evaluations and the agent Logs tab (#27320)

Félix Malfaiteacedf0bf0f2
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index b4f358c1389..69d8fe7bcb3 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -71,7 +71,6 @@ type Agent {
createdAt: DateTime!
updatedAt: DateTime!
modelConfiguration: JSON
- evaluationInputs: [String!]!
}
type AuthToken {
@@ -3620,23 +3619,6 @@ type RecordExport {
downloadPath: String
}
-type AgentTurnEvaluation {
- id: UUID!
- turnId: UUID!
- score: Int!
- comment: String
- createdAt: DateTime!
-}
-
-type AgentTurn {
- id: UUID!
- threadId: UUID!
- agentId: UUID
- evaluations: [AgentTurnEvaluation!]!
- messages: [AgentMessage!]!
- createdAt: DateTime!
-}
-
type WorkspaceAiStats {
conversationsCount: Int!
skillsCount: Int!
@@ -4012,7 +3994,6 @@ type Query {
getAiSystemPromptPreview: AiSystemPromptPreview!
skills: [Skill!]!
skill(id: UUID!): Skill
- agentTurns(agentId: UUID!): [AgentTurn!]!
validationRules(objectMetadataId: UUID!): [ValidationRule!]!
timelineActivityTypes: [TimelineActivityType!]!
metadataTranslations(input: MetadataTranslationsInput!): [MetadataTranslation!]!
@@ -4381,8 +4362,6 @@ type Mutation {
deleteSkill(id: UUID!): Skill!
activateSkill(id: UUID!): Skill!
deactivateSkill(id: UUID!): Skill!
- evaluateAgentTurn(turnId: UUID!): AgentTurnEvaluation!
- runEvaluationInput(agentId: UUID!, input: String!): AgentTurn!
createValidationRule(input: CreateValidationRuleInput!): ValidationRule!
updateValidationRule(input: UpdateValidationRuleInput!): ValidationRule!
deleteValidationRule(id: UUID!): ValidationRule!
@@ -4909,7 +4888,6 @@ input CreateAgentInput {
roleId: UUID
responseFormat: JSON
modelConfiguration: JSON
- evaluationInputs: [String!]
}
input UpdateAgentInput {
@@ -4923,7 +4901,6 @@ input UpdateAgentInput {
roleId: UUID
responseFormat: JSON
modelConfiguration: JSON
- evaluationInputs: [String!]
}
input CreateOneObjectInput {
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index d653118f332..cad8ca95fa6 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -67,7 +67,6 @@ export interface Agent {
createdAt: Scalars['DateTime']
updatedAt: Scalars['DateTime']
modelConfiguration?: Scalars['JSON']
- evaluationInputs: Scalars['String'][]
__typename: 'Agent'
}
@@ -3178,25 +3177,6 @@ export interface RecordExport {
__typename: 'RecordExport'
}
-export interface AgentTurnEvaluation {
- id: Scalars['UUID']
- turnId: Scalars['UUID']
- score: Scalars['Int']
- comment?: Scalars['String']
- createdAt: Scalars['DateTime']
- __typename: 'AgentTurnEvaluation'
-}
-
-export interface AgentTurn {
- id: Scalars['UUID']
- threadId: Scalars['UUID']
- agentId?: Scalars['UUID']
- evaluations: AgentTurnEvaluation[]
- messages: AgentMessage[]
- createdAt: Scalars['DateTime']
- __typename: 'AgentTurn'
-}
-
export interface WorkspaceAiStats {
conversationsCount: Scalars['Int']
skillsCount: Scalars['Int']
@@ -3499,7 +3479,6 @@ export interface Query {
getAiSystemPromptPreview: AiSystemPromptPreview
skills: Skill[]
skill?: Skill
- agentTurns: AgentTurn[]
validationRules: ValidationRule[]
timelineActivityTypes: TimelineActivityType[]
metadataTranslations: MetadataTranslation[]
@@ -3746,8 +3725,6 @@ export interface Mutation {
deleteSkill: Skill
activateSkill: Skill
deactivateSkill: Skill
- evaluateAgentTurn: AgentTurnEvaluation
- runEvaluationInput: AgentTurn
createValidationRule: ValidationRule
updateValidationRule: ValidationRule
deleteValidationRule: ValidationRule
@@ -3891,7 +3868,6 @@ export interface AgentGenqlSelection{
createdAt?: boolean | number
updatedAt?: boolean | number
modelConfiguration?: boolean | number
- evaluationInputs?: boolean | number
__typename?: boolean | number
__scalar?: boolean | number
}
@@ -7142,27 +7118,6 @@ export interface RecordExportGenqlSelection{
__scalar?: boolean | number
}
-export interface AgentTurnEvaluationGenqlSelection{
- id?: boolean | number
- turnId?: boolean | number
- score?: boolean | number
- comment?: boolean | number
- createdAt?: boolean | number
- __typename?: boolean | number
- __scalar?: boolean | number
-}
-
-export interface AgentTurnGenqlSelection{
- id?: boolean | number
- threadId?: boolean | number
- agentId?: boolean | number
- evaluations?: AgentTurnEvaluationGenqlSelection
- messages?: AgentMessageGenqlSelection
- createdAt?: boolean | number
- __typename?: boolean | number
- __scalar?: boolean | number
-}
-
export interface WorkspaceAiStatsGenqlSelection{
conversationsCount?: boolean | number
skillsCount?: boolean | number
@@ -7473,7 +7428,6 @@ export interface QueryGenqlSelection{
getAiSystemPromptPreview?: AiSystemPromptPreviewGenqlSelection
skills?: SkillGenqlSelection
skill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
- agentTurns?: (AgentTurnGenqlSelection & { __args: {agentId: Scalars['UUID']} })
validationRules?: (ValidationRuleGenqlSelection & { __args: {objectMetadataId: Scalars['UUID']} })
timelineActivityTypes?: TimelineActivityTypeGenqlSelection
metadataTranslations?: (MetadataTranslationGenqlSelection & { __args: {input: MetadataTranslationsInput} })
@@ -7759,8 +7713,6 @@ export interface MutationGenqlSelection{
deleteSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
activateSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
deactivateSkill?: (SkillGenqlSelection & { __args: {id: Scalars['UUID']} })
- evaluateAgentTurn?: (AgentTurnEvaluationGenqlSelection & { __args: {turnId: Scalars['UUID']} })
- runEvaluationInput?: (AgentTurnGenqlSelection & { __args: {agentId: Scalars['UUID'], input: Scalars['String']} })
createValidationRule?: (ValidationRuleGenqlSelection & { __args: {input: CreateValidationRuleInput} })
updateValidationRule?: (ValidationRuleGenqlSelection & { __args: {input: UpdateValidationRuleInput} })
deleteValidationRule?: (ValidationRuleGenqlSelection & { __args: {id: Scalars['UUID']} })
@@ -7993,9 +7945,9 @@ viewFieldId?: (Scalars['UUID'] | null),
/** The id of the field metadata. Used to create a new view field when viewFieldId is not provided. */
fieldMetadataId?: (Scalars['UUID'] | null),isVisible: Scalars['Boolean'],position: Scalars['Float']}
-export interface CreateAgentInput {name?: (Scalars['String'] | null),label: Scalars['String'],icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),prompt: Scalars['String'],modelId: Scalars['String'],roleId?: (Scalars['UUID'] | null),responseFormat?: (Scalars['JSON'] | null),modelConfiguration?: (Scalars['JSON'] | null),evaluationInputs?: (Scalars['String'][] | null)}
+export interface CreateAgentInput {name?: (Scalars['String'] | null),label: Scalars['String'],icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),prompt: Scalars['String'],modelId: Scalars['String'],roleId?: (Scalars['UUID'] | null),responseFormat?: (Scalars['JSON'] | null),modelConfiguration?: (Scalars['JSON'] | null)}
-export interface UpdateAgentInput {id: Scalars['UUID'],name?: (Scalars['String'] | null),label?: (Scalars['String'] | null),icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),prompt?: (Scalars['String'] | null),modelId?: (Scalars['String'] | null),roleId?: (Scalars['UUID'] | null),responseFormat?: (Scalars['JSON'] | null),modelConfiguration?: (Scalars['JSON'] | null),evaluationInputs?: (Scalars['String'][] | null)}
+export interface UpdateAgentInput {id: Scalars['UUID'],name?: (Scalars['String'] | null),label?: (Scalars['String'] | null),icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),prompt?: (Scalars['String'] | null),modelId?: (Scalars['String'] | null),roleId?: (Scalars['UUID'] | null),responseFormat?: (Scalars['JSON'] | null),modelConfiguration?: (Scalars['JSON'] | null)}
export interface CreateOneObjectInput {
/** The object to create */
@@ -10664,22 +10616,6 @@ export interface CreateRecordExportInput {objectMetadataId: Scalars['UUID'],fiel
- const AgentTurnEvaluation_possibleTypes: string[] = ['AgentTurnEvaluation']
- export const isAgentTurnEvaluation = (obj?: { __typename?: any } | null): obj is AgentTurnEvaluation => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAgentTurnEvaluation"')
- return AgentTurnEvaluation_possibleTypes.includes(obj.__typename)
- }
-
-
-
- const AgentTurn_possibleTypes: string[] = ['AgentTurn']
- export const isAgentTurn = (obj?: { __typename?: any } | null): obj is AgentTurn => {
- if (!obj?.__typename) throw new Error('__typename is missing in "isAgentTurn"')
- return AgentTurn_possibleTypes.includes(obj.__typename)
- }
-
-
-
const WorkspaceAiStats_possibleTypes: string[] = ['WorkspaceAiStats']
export const isWorkspaceAiStats = (obj?: { __typename?: any } | null): obj is WorkspaceAiStats => {
if (!obj?.__typename) throw new Error('__typename is missing in "isWorkspaceAiStats"')
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index a951eae700a..aa5d373b2ad 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -99,20 +99,20 @@ export default {
356,
359,
394,
+ 405,
407,
+ 408,
409,
410,
- 411,
412,
414,
- 416,
- 423,
- 441,
- 445,
- 456,
- 576,
- 583,
- 611
+ 421,
+ 439,
+ 443,
+ 454,
+ 574,
+ 581,
+ 609
],
"types": {
"BillingProductDTO": {
@@ -268,9 +268,6 @@ export default {
"modelConfiguration": [
9
],
- "evaluationInputs": [
- 1
- ],
"__typename": [
1
]
@@ -7099,49 +7096,6 @@ export default {
1
]
},
- "AgentTurnEvaluation": {
- "id": [
- 3
- ],
- "turnId": [
- 3
- ],
- "score": [
- 31
- ],
- "comment": [
- 1
- ],
- "createdAt": [
- 4
- ],
- "__typename": [
- 1
- ]
- },
- "AgentTurn": {
- "id": [
- 3
- ],
- "threadId": [
- 3
- ],
- "agentId": [
- 3
- ],
- "evaluations": [
- 401
- ],
- "messages": [
- 370
- ],
- "createdAt": [
- 4
- ],
- "__typename": [
- 1
- ]
- },
"WorkspaceAiStats": {
"conversationsCount": [
31
@@ -7195,7 +7149,7 @@ export default {
9
],
"scope": [
- 407
+ 405
],
"__typename": [
1
@@ -7210,19 +7164,19 @@ export default {
1
],
"syncStatus": [
- 409
+ 407
],
"syncStage": [
- 410
+ 408
],
"visibility": [
- 411
+ 409
],
"isContactAutoCreationEnabled": [
8
],
"contactAutoCreationPolicy": [
- 412
+ 410
],
"isSyncEnabled": [
8
@@ -7273,7 +7227,7 @@ export default {
1
],
"pendingSyncAction": [
- 414
+ 412
],
"messageChannelId": [
3
@@ -7315,7 +7269,7 @@ export default {
1
],
"provenance": [
- 416
+ 414
],
"__typename": [
1
@@ -7344,7 +7298,7 @@ export default {
3
],
"through": [
- 417
+ 415
],
"__typename": [
1
@@ -7364,7 +7318,7 @@ export default {
1
],
"emit": [
- 418
+ 416
],
"action": [
1
@@ -7466,7 +7420,7 @@ export default {
},
"CollectionHash": {
"collectionName": [
- 423
+ 421
],
"hash": [
1
@@ -7530,13 +7484,13 @@ export default {
},
"MinimalMetadata": {
"objectMetadataItems": [
- 424
+ 422
],
"views": [
- 425
+ 423
],
"collectionHashes": [
- 422
+ 420
],
"__typename": [
1
@@ -7547,7 +7501,7 @@ export default {
178,
{
"target": [
- 428,
+ 426,
"RecordTargetInput!"
]
}
@@ -7556,7 +7510,7 @@ export default {
180,
{
"targets": [
- 428,
+ 426,
"[RecordTargetInput!]!"
]
}
@@ -7623,7 +7577,7 @@ export default {
164,
{
"input": [
- 429,
+ 427,
"UsageQuotaScopeInput!"
]
}
@@ -7782,7 +7736,7 @@ export default {
10,
{
"input": [
- 430,
+ 428,
"AgentIdInput!"
]
}
@@ -7795,7 +7749,7 @@ export default {
"CursorPaging!"
],
"filter": [
- 431,
+ 429,
"ObjectFilter!"
]
}
@@ -7828,7 +7782,7 @@ export default {
23,
{
"input": [
- 432,
+ 430,
"LogicFunctionIdInput!"
]
}
@@ -7840,7 +7794,7 @@ export default {
9,
{
"input": [
- 432,
+ 430,
"LogicFunctionIdInput!"
]
}
@@ -7849,7 +7803,7 @@ export default {
1,
{
"input": [
- 432,
+ 430,
"LogicFunctionIdInput!"
]
}
@@ -7894,7 +7848,7 @@ export default {
200,
{
"input": [
- 433
+ 431
]
}
],
@@ -7943,7 +7897,7 @@ export default {
2,
{
"input": [
- 434,
+ 432,
"GetApiKeyInput!"
]
}
@@ -8185,7 +8139,7 @@ export default {
349,
{
"input": [
- 435,
+ 433,
"PreviewMessageCampaignAudienceInput!"
]
}
@@ -8194,7 +8148,7 @@ export default {
357,
{
"input": [
- 436,
+ 434,
"FindMessageSuppressionsInput!"
]
}
@@ -8214,7 +8168,7 @@ export default {
338,
{
"filter": [
- 437
+ 435
]
}
],
@@ -8246,7 +8200,7 @@ export default {
}
],
"myMessageFolders": [
- 413,
+ 411,
{
"messageChannelId": [
3
@@ -8254,7 +8208,7 @@ export default {
}
],
"myCalendarChannels": [
- 408,
+ 406,
{
"connectedAccountId": [
3
@@ -8262,20 +8216,20 @@ export default {
}
],
"getPermissionFlags": [
- 421
+ 419
],
"minimalMetadata": [
- 426
+ 424
],
"appKeyValue": [
- 406,
+ 404,
{
"key": [
1,
"String!"
],
"scope": [
- 407
+ 405
]
}
],
@@ -8292,7 +8246,7 @@ export default {
246,
{
"filter": [
- 438
+ 436
]
}
],
@@ -8306,7 +8260,7 @@ export default {
}
],
"findWorkspaceAiStats": [
- 403
+ 401
],
"aiChatUsage": [
382
@@ -8353,17 +8307,8 @@ export default {
]
}
],
- "agentTurns": [
- 402,
- {
- "agentId": [
- 3,
- "UUID!"
- ]
- }
- ],
"validationRules": [
- 420,
+ 418,
{
"objectMetadataId": [
3,
@@ -8372,13 +8317,13 @@ export default {
}
],
"timelineActivityTypes": [
- 419
+ 417
],
"metadataTranslations": [
- 415,
+ 413,
{
"input": [
- 439,
+ 437,
"MetadataTranslationsInput!"
]
}
@@ -8444,7 +8389,7 @@ export default {
399,
{
"input": [
- 440,
+ 438,
"EventLogQueryInput!"
]
}
@@ -8453,7 +8398,7 @@ export default {
380,
{
"input": [
- 446,
+ 444,
"PieChartDataInput!"
]
}
@@ -8462,7 +8407,7 @@ export default {
378,
{
"input": [
- 447,
+ 445,
"LineChartDataInput!"
]
}
@@ -8471,7 +8416,7 @@ export default {
375,
{
"input": [
- 448,
+ 446,
"BarChartDataInput!"
]
}
@@ -8598,10 +8543,10 @@ export default {
},
"ObjectFilter": {
"and": [
- 431
+ 429
],
"or": [
- 431
+ 429
],
"id": [
34
@@ -8736,10 +8681,10 @@ export default {
},
"EventLogQueryInput": {
"table": [
- 441
+ 439
],
"filters": [
- 442
+ 440
],
"first": [
31
@@ -8760,7 +8705,7 @@ export default {
1
],
"dateRange": [
- 443
+ 441
],
"recordId": [
1
@@ -8769,7 +8714,7 @@ export default {
1
],
"fieldFilters": [
- 444
+ 442
],
"__typename": [
1
@@ -8791,7 +8736,7 @@ export default {
1
],
"operand": [
- 445
+ 443
],
"values": [
1
@@ -8839,7 +8784,7 @@ export default {
8,
{
"input": [
- 450,
+ 448,
"AddQuerySubscriptionInput!"
]
}
@@ -8848,7 +8793,7 @@ export default {
8,
{
"input": [
- 451,
+ 449,
"RemoveQueryFromEventStreamInput!"
]
}
@@ -8857,7 +8802,7 @@ export default {
178,
{
"target": [
- 428,
+ 426,
"RecordTargetInput!"
],
"accessLevel": [
@@ -8870,11 +8815,11 @@ export default {
178,
{
"target": [
- 428,
+ 426,
"RecordTargetInput!"
],
"principal": [
- 452,
+ 450,
"RecordSharePrincipalInput!"
],
"accessLevel": [
@@ -8887,11 +8832,11 @@ export default {
178,
{
"target": [
- 428,
+ 426,
"RecordTargetInput!"
],
"principal": [
- 452,
+ 450,
"RecordSharePrincipalInput!"
]
}
@@ -8900,7 +8845,7 @@ export default {
169,
{
"inputs": [
- 453,
+ 451,
"[CreateNavigationMenuItemInput!]!"
]
}
@@ -8909,7 +8854,7 @@ export default {
169,
{
"input": [
- 453,
+ 451,
"CreateNavigationMenuItemInput!"
]
}
@@ -8918,7 +8863,7 @@ export default {
169,
{
"inputs": [
- 454,
+ 452,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
@@ -8927,7 +8872,7 @@ export default {
169,
{
"input": [
- 454,
+ 452,
"UpdateOneNavigationMenuItemInput!"
]
}
@@ -9001,7 +8946,7 @@ export default {
166,
{
"file": [
- 456,
+ 454,
"Upload!"
]
}
@@ -9010,7 +8955,7 @@ export default {
166,
{
"file": [
- 456,
+ 454,
"Upload!"
]
}
@@ -9037,7 +8982,7 @@ export default {
166,
{
"file": [
- 456,
+ 454,
"Upload!"
],
"fieldMetadataUniversalIdentifier": [
@@ -9050,7 +8995,7 @@ export default {
165,
{
"input": [
- 457,
+ 455,
"CreateUsageLimitInput!"
]
}
@@ -9059,7 +9004,7 @@ export default {
165,
{
"input": [
- 458,
+ 456,
"UpdateUsageLimitInput!"
]
}
@@ -9077,7 +9022,7 @@ export default {
103,
{
"input": [
- 459,
+ 457,
"CreatePageLayoutWidgetInput!"
]
}
@@ -9090,7 +9035,7 @@ export default {
"String!"
],
"input": [
- 460,
+ 458,
"UpdatePageLayoutWidgetInput!"
]
}
@@ -9108,7 +9053,7 @@ export default {
149,
{
"input": [
- 461,
+ 459,
"CreatePageLayoutTabInput!"
]
}
@@ -9121,7 +9066,7 @@ export default {
"String!"
],
"input": [
- 462,
+ 460,
"UpdatePageLayoutTabInput!"
]
}
@@ -9139,7 +9084,7 @@ export default {
150,
{
"input": [
- 463,
+ 461,
"CreatePageLayoutInput!"
]
}
@@ -9152,7 +9097,7 @@ export default {
"String!"
],
"input": [
- 464,
+ 462,
"UpdatePageLayoutInput!"
]
}
@@ -9174,7 +9119,7 @@ export default {
"String!"
],
"input": [
- 465,
+ 463,
"UpdatePageLayoutWithTabsInput!"
]
}
@@ -9210,7 +9155,7 @@ export default {
66,
{
"input": [
- 468,
+ 466,
"CreateViewInput!"
]
}
@@ -9223,7 +9168,7 @@ export default {
"String!"
],
"input": [
- 469,
+ 467,
"UpdateViewInput!"
]
}
@@ -9250,7 +9195,7 @@ export default {
66,
{
"input": [
- 470,
+ 468,
"UpsertViewWidgetInput!"
]
}
@@ -9259,7 +9204,7 @@ export default {
63,
{
"input": [
- 476,
+ 474,
"CreateViewSortInput!"
]
}
@@ -9268,7 +9213,7 @@ export default {
63,
{
"input": [
- 477,
+ 475,
"UpdateViewSortInput!"
]
}
@@ -9277,7 +9222,7 @@ export default {
8,
{
"input": [
- 479,
+ 477,
"DeleteViewSortInput!"
]
}
@@ -9286,7 +9231,7 @@ export default {
8,
{
"input": [
- 480,
+ 478,
"DestroyViewSortInput!"
]
}
@@ -9295,7 +9240,7 @@ export default {
60,
{
"input": [
- 481,
+ 479,
"CreateViewFilterInput!"
]
}
@@ -9304,7 +9249,7 @@ export default {
60,
{
"input": [
- 482,
+ 480,
"UpdateViewFilterInput!"
]
}
@@ -9313,7 +9258,7 @@ export default {
60,
{
"input": [
- 484,
+ 482,
"DeleteViewFilterInput!"
]
}
@@ -9322,7 +9267,7 @@ export default {
60,
{
"input": [
- 485,
+ 483,
"DestroyViewFilterInput!"
]
}
@@ -9331,7 +9276,7 @@ export default {
56,
{
"input": [
- 486,
+ 484,
"UpdateViewFieldInput!"
]
}
@@ -9340,7 +9285,7 @@ export default {
56,
{
"input": [
- 488,
+ 486,
"CreateViewFieldInput!"
]
}
@@ -9349,7 +9294,7 @@ export default {
56,
{
"inputs": [
- 488,
+ 486,
"[CreateViewFieldInput!]!"
]
}
@@ -9358,7 +9303,7 @@ export default {
56,
{
"input": [
- 489,
+ 487,
"DeleteViewFieldInput!"
]
}
@@ -9367,7 +9312,7 @@ export default {
56,
{
"input": [
- 490,
+ 488,
"DestroyViewFieldInput!"
]
}
@@ -9376,7 +9321,7 @@ export default {
65,
{
"input": [
- 491,
+ 489,
"UpdateViewFieldGroupInput!"
]
}
@@ -9385,7 +9330,7 @@ export default {
65,
{
"input": [
- 493,
+ 491,
"CreateViewFieldGroupInput!"
]
}
@@ -9394,7 +9339,7 @@ export default {
65,
{
"inputs": [
- 493,
+ 491,
"[CreateViewFieldGroupInput!]!"
]
}
@@ -9403,7 +9348,7 @@ export default {
65,
{
"input": [
- 494,
+ 492,
"DeleteViewFieldGroupInput!"
]
}
@@ -9412,7 +9357,7 @@ export default {
65,
{
"input": [
- 495,
+ 493,
"DestroyViewFieldGroupInput!"
]
}
@@ -9421,7 +9366,7 @@ export default {
66,
{
"input": [
- 496,
+ 494,
"UpsertFieldsWidgetInput!"
]
}
@@ -9430,7 +9375,7 @@ export default {
10,
{
"input": [
- 499,
+ 497,
"CreateAgentInput!"
]
}
@@ -9439,7 +9384,7 @@ export default {
10,
{
"input": [
- 500,
+ 498,
"UpdateAgentInput!"
]
}
@@ -9448,7 +9393,7 @@ export default {
10,
{
"input": [
- 430,
+ 428,
"AgentIdInput!"
]
}
@@ -9457,7 +9402,7 @@ export default {
25,
{
"input": [
- 501,
+ 499,
"CreateOneObjectInput!"
]
}
@@ -9466,7 +9411,7 @@ export default {
25,
{
"input": [
- 503,
+ 501,
"DeleteOneObjectInput!"
]
}
@@ -9475,7 +9420,7 @@ export default {
25,
{
"input": [
- 504,
+ 502,
"UpdateOneObjectInput!"
]
}
@@ -9484,7 +9429,7 @@ export default {
25,
{
"inputs": [
- 504,
+ 502,
"[UpdateOneObjectInput!]!"
]
}
@@ -9493,7 +9438,7 @@ export default {
279,
{
"input": [
- 507,
+ 505,
"CreateOneIndexInput!"
]
}
@@ -9502,7 +9447,7 @@ export default {
279,
{
"input": [
- 510,
+ 508,
"DeleteOneIndexInput!"
]
}
@@ -9523,7 +9468,7 @@ export default {
23,
{
"input": [
- 432,
+ 430,
"LogicFunctionIdInput!"
]
}
@@ -9532,7 +9477,7 @@ export default {
23,
{
"input": [
- 511,
+ 509,
"CreateLogicFunctionFromSourceInput!"
]
}
@@ -9541,7 +9486,7 @@ export default {
154,
{
"input": [
- 512,
+ 510,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -9550,7 +9495,7 @@ export default {
8,
{
"input": [
- 513,
+ 511,
"UpdateLogicFunctionFromSourceInput!"
]
}
@@ -9559,7 +9504,7 @@ export default {
14,
{
"input": [
- 515,
+ 513,
"CreateCommandMenuItemInput!"
]
}
@@ -9568,7 +9513,7 @@ export default {
14,
{
"input": [
- 516,
+ 514,
"UpdateCommandMenuItemInput!"
]
}
@@ -9604,7 +9549,7 @@ export default {
13,
{
"input": [
- 517,
+ 515,
"CreateFrontComponentInput!"
]
}
@@ -9613,7 +9558,7 @@ export default {
13,
{
"input": [
- 518,
+ 516,
"UpdateFrontComponentInput!"
]
}
@@ -9789,7 +9734,7 @@ export default {
201,
{
"input": [
- 520,
+ 518,
"CreateApprovedAccessDomainInput!"
]
}
@@ -9798,7 +9743,7 @@ export default {
8,
{
"input": [
- 521,
+ 519,
"DeleteApprovedAccessDomainInput!"
]
}
@@ -9807,7 +9752,7 @@ export default {
201,
{
"input": [
- 522,
+ 520,
"ValidateApprovedAccessDomainInput!"
]
}
@@ -9829,7 +9774,7 @@ export default {
51,
{
"createRoleInput": [
- 523,
+ 521,
"CreateRoleInput!"
]
}
@@ -9838,7 +9783,7 @@ export default {
51,
{
"updateRoleInput": [
- 524,
+ 522,
"UpdateRoleInput!"
]
}
@@ -9856,7 +9801,7 @@ export default {
48,
{
"upsertObjectPermissionsInput": [
- 526,
+ 524,
"UpsertObjectPermissionsInput!"
]
}
@@ -9865,7 +9810,7 @@ export default {
49,
{
"upsertPermissionFlagsInput": [
- 528,
+ 526,
"UpsertPermissionFlagsInput!"
]
}
@@ -9874,7 +9819,7 @@ export default {
43,
{
"upsertFieldPermissionsInput": [
- 529,
+ 527,
"UpsertFieldPermissionsInput!"
]
}
@@ -9883,7 +9828,7 @@ export default {
292,
{
"input": [
- 531,
+ 529,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
@@ -9914,7 +9859,7 @@ export default {
2,
{
"input": [
- 534,
+ 532,
"CreateApiKeyInput!"
]
}
@@ -9923,7 +9868,7 @@ export default {
2,
{
"input": [
- 535,
+ 533,
"UpdateApiKeyInput!"
]
}
@@ -9932,7 +9877,7 @@ export default {
2,
{
"input": [
- 536,
+ 534,
"RevokeApiKeyInput!"
]
}
@@ -9954,7 +9899,7 @@ export default {
58,
{
"input": [
- 537,
+ 535,
"CreateViewFilterGroupInput!"
]
}
@@ -9967,7 +9912,7 @@ export default {
"String!"
],
"input": [
- 538,
+ 536,
"UpdateViewFilterGroupInput!"
]
}
@@ -10012,7 +9957,7 @@ export default {
72,
{
"data": [
- 539,
+ 537,
"ActivateWorkspaceInput!"
]
}
@@ -10021,7 +9966,7 @@ export default {
72,
{
"data": [
- 540,
+ 538,
"UpdateWorkspaceInput!"
]
}
@@ -10030,7 +9975,7 @@ export default {
72,
{
"data": [
- 541,
+ 539,
"UpdateWorkspaceAllowedIframeOriginsInput!"
]
}
@@ -10061,7 +10006,7 @@ export default {
243,
{
"input": [
- 542,
+ 540,
"CreateApplicationRegistrationInput!"
]
}
@@ -10070,7 +10015,7 @@ export default {
79,
{
"input": [
- 543,
+ 541,
"UpdateApplicationRegistrationInput!"
]
}
@@ -10097,7 +10042,7 @@ export default {
215,
{
"input": [
- 545,
+ 543,
"UpdateApplicationRegistrationVariableInput!"
]
}
@@ -10115,7 +10060,7 @@ export default {
79,
{
"file": [
- 456,
+ 454,
"Upload!"
],
"universalIdentifier": [
@@ -10149,7 +10094,7 @@ export default {
267,
{
"input": [
- 547,
+ 545,
"GrantApplicationCapabilitiesInput!"
]
}
@@ -10182,7 +10127,7 @@ export default {
265,
{
"input": [
- 548,
+ 546,
"TriggerInstallApplicationJobInput!"
]
}
@@ -10191,7 +10136,7 @@ export default {
266,
{
"input": [
- 549,
+ 547,
"TriggerUninstallApplicationJobInput!"
]
}
@@ -10204,7 +10149,7 @@ export default {
"UUID!"
],
"input": [
- 550,
+ 548,
"UpdateApplicationInput!"
]
}
@@ -10234,7 +10179,7 @@ export default {
271,
{
"input": [
- 551,
+ 549,
"CreateOneFieldMetadataInput!"
]
}
@@ -10243,7 +10188,7 @@ export default {
271,
{
"input": [
- 553,
+ 551,
"UpdateOneFieldMetadataInput!"
]
}
@@ -10252,7 +10197,7 @@ export default {
271,
{
"input": [
- 555,
+ 553,
"DeleteOneFieldInput!"
]
}
@@ -10261,7 +10206,7 @@ export default {
62,
{
"input": [
- 556,
+ 554,
"CreateViewGroupInput!"
]
}
@@ -10270,7 +10215,7 @@ export default {
62,
{
"inputs": [
- 556,
+ 554,
"[CreateViewGroupInput!]!"
]
}
@@ -10279,7 +10224,7 @@ export default {
62,
{
"input": [
- 557,
+ 555,
"UpdateViewGroupInput!"
]
}
@@ -10288,7 +10233,7 @@ export default {
62,
{
"inputs": [
- 557,
+ 555,
"[UpdateViewGroupInput!]!"
]
}
@@ -10297,7 +10242,7 @@ export default {
62,
{
"input": [
- 559,
+ 557,
"DeleteViewGroupInput!"
]
}
@@ -10306,7 +10251,7 @@ export default {
62,
{
"input": [
- 560,
+ 558,
"DestroyViewGroupInput!"
]
}
@@ -10315,7 +10260,7 @@ export default {
352,
{
"input": [
- 561,
+ 559,
"SendMessageCampaignInput!"
]
}
@@ -10324,7 +10269,7 @@ export default {
350,
{
"input": [
- 562,
+ 560,
"CancelMessageCampaignInput!"
]
}
@@ -10333,7 +10278,7 @@ export default {
351,
{
"input": [
- 563,
+ 561,
"SendMessageCampaignTestInput!"
]
}
@@ -10351,7 +10296,7 @@ export default {
354,
{
"input": [
- 564,
+ 562,
"CreateMessageSuppressionInput!"
]
}
@@ -10369,7 +10314,7 @@ export default {
358,
{
"input": [
- 565,
+ 563,
"CreateUnsubscribeTopicInput!"
]
}
@@ -10378,7 +10323,7 @@ export default {
358,
{
"input": [
- 566,
+ 564,
"UpdateUnsubscribeTopicInput!"
]
}
@@ -10396,7 +10341,7 @@ export default {
338,
{
"input": [
- 567,
+ 565,
"UpdateMessageChannelInput!"
]
}
@@ -10405,7 +10350,7 @@ export default {
348,
{
"input": [
- 569,
+ 567,
"CreateEmailGroupChannelInput!"
]
}
@@ -10414,7 +10359,7 @@ export default {
338,
{
"input": [
- 570,
+ 568,
"UpdateEmailGroupChannelInput!"
]
}
@@ -10432,7 +10377,7 @@ export default {
338,
{
"input": [
- 571,
+ 569,
"CreateAppMessageChannelInput!"
]
}
@@ -10441,7 +10386,7 @@ export default {
338,
{
"input": [
- 572,
+ 570,
"UpdateAppMessageChannelInput!"
]
}
@@ -10459,7 +10404,7 @@ export default {
347,
{
"input": [
- 573,
+ 571,
"IngestAppMessagesInput!"
]
}
@@ -10468,7 +10413,7 @@ export default {
334,
{
"input": [
- 577,
+ 575,
"CreateEmailingDomainInput!"
]
}
@@ -10495,7 +10440,7 @@ export default {
367,
{
"input": [
- 578,
+ 576,
"CreateWebhookInput!"
]
}
@@ -10504,7 +10449,7 @@ export default {
367,
{
"input": [
- 579,
+ 577,
"UpdateWebhookInput!"
]
}
@@ -10522,43 +10467,43 @@ export default {
371,
{
"input": [
- 581,
+ 579,
"RunAgentInput!"
]
}
],
"updateMessageFolder": [
- 413,
+ 411,
{
"input": [
- 586,
+ 584,
"UpdateMessageFolderInput!"
]
}
],
"updateMessageFolders": [
- 413,
+ 411,
{
"input": [
- 588,
+ 586,
"UpdateMessageFoldersInput!"
]
}
],
"updateCalendarChannel": [
- 408,
+ 406,
{
"input": [
- 589,
+ 587,
"UpdateCalendarChannelInput!"
]
}
],
"setAppKeyValue": [
- 406,
+ 404,
{
"input": [
- 591,
+ 589,
"SetAppKeyValueInput!"
]
}
@@ -10571,24 +10516,24 @@ export default {
"String!"
],
"scope": [
- 407
+ 405
]
}
],
"enqueueJob": [
- 404,
+ 402,
{
"input": [
- 592,
+ 590,
"EnqueueJobInput!"
]
}
],
"enqueueJobs": [
- 405,
+ 403,
{
"input": [
- 593,
+ 591,
"EnqueueJobsInput!"
]
}
@@ -10597,7 +10542,7 @@ export default {
8,
{
"input": [
- 595,
+ 593,
"ReportAppConnectionAuthFailureInput!"
]
}
@@ -10627,7 +10572,7 @@ export default {
1
],
"fileAttachments": [
- 596,
+ 594,
"[FileAttachmentInput!]"
]
}
@@ -10739,7 +10684,7 @@ export default {
392,
{
"input": [
- 597,
+ 595,
"SendInboxMessageInput!"
]
}
@@ -10748,7 +10693,7 @@ export default {
383,
{
"input": [
- 598,
+ 596,
"CreateSkillInput!"
]
}
@@ -10757,7 +10702,7 @@ export default {
383,
{
"input": [
- 599,
+ 597,
"UpdateSkillInput!"
]
}
@@ -10789,48 +10734,26 @@ export default {
]
}
],
- "evaluateAgentTurn": [
- 401,
- {
- "turnId": [
- 3,
- "UUID!"
- ]
- }
- ],
- "runEvaluationInput": [
- 402,
- {
- "agentId": [
- 3,
- "UUID!"
- ],
- "input": [
- 1,
- "String!"
- ]
- }
- ],
"createValidationRule": [
- 420,
+ 418,
{
"input": [
- 600,
+ 598,
"CreateValidationRuleInput!"
]
}
],
"updateValidationRule": [
- 420,
+ 418,
{
"input": [
- 601,
+ 599,
"UpdateValidationRuleInput!"
]
}
],
"deleteValidationRule": [
- 420,
+ 418,
{
"id": [
3,
@@ -10839,16 +10762,16 @@ export default {
}
],
"updateTimelineActivityType": [
- 419,
+ 417,
{
"input": [
- 603,
+ 601,
"UpdateTimelineActivityTypeInput!"
]
}
],
"resetTimelineActivityType": [
- 419,
+ 417,
{
"id": [
3,
@@ -10860,7 +10783,7 @@ export default {
301,
{
"input": [
- 604,
+ 602,
"GetAuthorizationUrlForSSOInput!"
]
}
@@ -11026,7 +10949,7 @@ export default {
304,
{
"input": [
- 605
+ 603
]
}
],
@@ -11038,7 +10961,7 @@ export default {
"String!"
],
"file": [
- 456,
+ 454,
"Upload!"
]
}
@@ -11234,7 +11157,7 @@ export default {
8,
{
"input": [
- 606,
+ 604,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -11268,7 +11191,7 @@ export default {
252,
{
"input": [
- 607,
+ 605,
"SetupOIDCSsoInput!"
]
}
@@ -11277,7 +11200,7 @@ export default {
252,
{
"input": [
- 608,
+ 606,
"SetupSAMLSsoInput!"
]
}
@@ -11286,7 +11209,7 @@ export default {
248,
{
"input": [
- 609,
+ 607,
"DeleteSsoInput!"
]
}
@@ -11295,7 +11218,7 @@ export default {
249,
{
"input": [
- 610,
+ 608,
"EditSsoInput!"
]
}
@@ -11324,7 +11247,7 @@ export default {
396,
{
"type": [
- 611,
+ 609,
"AnalyticsType!"
],
"name": [
@@ -11367,7 +11290,7 @@ export default {
373,
{
"input": [
- 612,
+ 610,
"CreateCalendarEventInput!"
]
}
@@ -11376,7 +11299,7 @@ export default {
395,
{
"input": [
- 613,
+ 611,
"SendEmailInput!"
]
}
@@ -11398,7 +11321,7 @@ export default {
"String!"
],
"connectionParameters": [
- 615,
+ 613,
"EmailAccountConnectionParameters!"
],
"id": [
@@ -11410,7 +11333,7 @@ export default {
212,
{
"input": [
- 617,
+ 615,
"UpdateLabPublicFeatureFlagInput!"
]
}
@@ -11478,7 +11401,7 @@ export default {
318,
{
"file": [
- 456,
+ 454,
"Upload!"
],
"applicationUniversalIdentifier": [
@@ -11503,7 +11426,7 @@ export default {
"String!"
],
"files": [
- 618,
+ 616,
"[ApplicationFileUploadRequestInput!]!"
]
}
@@ -11628,7 +11551,7 @@ export default {
3
],
"update": [
- 455
+ 453
],
"__typename": [
1
@@ -11701,7 +11624,7 @@ export default {
3
],
"payload": [
- 457
+ 455
],
"__typename": [
1
@@ -11835,7 +11758,7 @@ export default {
8
],
"tabs": [
- 466
+ 464
],
"__typename": [
1
@@ -11858,7 +11781,7 @@ export default {
107
],
"widgets": [
- 467
+ 465
],
"__typename": [
1
@@ -12025,19 +11948,19 @@ export default {
3
],
"view": [
- 471
+ 469
],
"viewFields": [
- 472
+ 470
],
"viewFilters": [
- 473
+ 471
],
"viewFilterGroups": [
- 474
+ 472
],
"viewSorts": [
- 475
+ 473
],
"__typename": [
1
@@ -12186,7 +12109,7 @@ export default {
3
],
"update": [
- 478
+ 476
],
"__typename": [
1
@@ -12256,7 +12179,7 @@ export default {
3
],
"update": [
- 483
+ 481
],
"__typename": [
1
@@ -12309,7 +12232,7 @@ export default {
3
],
"update": [
- 487
+ 485
],
"__typename": [
1
@@ -12385,7 +12308,7 @@ export default {
3
],
"update": [
- 492
+ 490
],
"__typename": [
1
@@ -12449,10 +12372,10 @@ export default {
3
],
"groups": [
- 497
+ 495
],
"fields": [
- 498
+ 496
],
"__typename": [
1
@@ -12472,7 +12395,7 @@ export default {
8
],
"fields": [
- 498
+ 496
],
"__typename": [
1
@@ -12523,9 +12446,6 @@ export default {
"modelConfiguration": [
9
],
- "evaluationInputs": [
- 1
- ],
"__typename": [
1
]
@@ -12561,16 +12481,13 @@ export default {
"modelConfiguration": [
9
],
- "evaluationInputs": [
- 1
- ],
"__typename": [
1
]
},
"CreateOneObjectInput": {
"object": [
- 502
+ 500
],
"__typename": [
1
@@ -12630,7 +12547,7 @@ export default {
},
"UpdateOneObjectInput": {
"update": [
- 505
+ 503
],
"id": [
3
@@ -12689,7 +12606,7 @@ export default {
28
],
"translations": [
- 506
+ 504
],
"__typename": [
1
@@ -12711,7 +12628,7 @@ export default {
},
"CreateOneIndexInput": {
"index": [
- 508
+ 506
],
"__typename": [
1
@@ -12722,7 +12639,7 @@ export default {
3
],
"fields": [
- 509
+ 507
],
"indexType": [
280
@@ -12807,7 +12724,7 @@ export default {
3
],
"update": [
- 514
+ 512
],
"__typename": [
1
@@ -12976,7 +12893,7 @@ export default {
3
],
"update": [
- 519
+ 517
],
"__typename": [
1
@@ -13069,7 +12986,7 @@ export default {
},
"UpdateRoleInput": {
"update": [
- 525
+ 523
],
"id": [
3
@@ -13124,7 +13041,7 @@ export default {
3
],
"objectPermissions": [
- 527
+ 525
],
"__typename": [
1
@@ -13166,7 +13083,7 @@ export default {
3
],
"fieldPermissions": [
- 530
+ 528
],
"__typename": [
1
@@ -13197,10 +13114,10 @@ export default {
3
],
"predicates": [
- 532
+ 530
],
"predicateGroups": [
- 533
+ 531
],
"__typename": [
1
@@ -13467,7 +13384,7 @@ export default {
1
],
"update": [
- 544
+ 542
],
"__typename": [
1
@@ -13492,7 +13409,7 @@ export default {
1
],
"update": [
- 546
+ 544
],
"__typename": [
1
@@ -13549,7 +13466,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 552
+ 550
],
"__typename": [
1
@@ -13628,7 +13545,7 @@ export default {
3
],
"update": [
- 554
+ 552
],
"__typename": [
1
@@ -13693,7 +13610,7 @@ export default {
9
],
"translations": [
- 506
+ 504
],
"__typename": [
1
@@ -13732,7 +13649,7 @@ export default {
3
],
"update": [
- 558
+ 556
],
"__typename": [
1
@@ -13857,7 +13774,7 @@ export default {
3
],
"update": [
- 568
+ 566
],
"__typename": [
1
@@ -13950,7 +13867,7 @@ export default {
3
],
"messages": [
- 574
+ 572
],
"__typename": [
1
@@ -13973,7 +13890,7 @@ export default {
4
],
"participants": [
- 575
+ 573
],
"__typename": [
1
@@ -13981,7 +13898,7 @@ export default {
},
"AppMessageParticipantInput": {
"role": [
- 576
+ 574
],
"handle": [
1
@@ -14033,7 +13950,7 @@ export default {
3
],
"update": [
- 580
+ 578
],
"__typename": [
1
@@ -14067,16 +13984,16 @@ export default {
3
],
"messages": [
- 582
+ 580
],
"input": [
- 582
+ 580
],
"additionalInstructions": [
1
],
"thread": [
- 585
+ 583
],
"__typename": [
1
@@ -14084,13 +14001,13 @@ export default {
},
"RunAgentMessageInput": {
"role": [
- 583
+ 581
],
"content": [
1
],
"attachments": [
- 584
+ 582
],
"__typename": [
1
@@ -14124,7 +14041,7 @@ export default {
3
],
"update": [
- 587
+ 585
],
"__typename": [
1
@@ -14143,7 +14060,7 @@ export default {
3
],
"update": [
- 587
+ 585
],
"__typename": [
1
@@ -14154,7 +14071,7 @@ export default {
3
],
"update": [
- 590
+ 588
],
"__typename": [
1
@@ -14162,13 +14079,13 @@ export default {
},
"UpdateCalendarChannelInputUpdates": {
"visibility": [
- 411
+ 409
],
"isContactAutoCreationEnabled": [
8
],
"contactAutoCreationPolicy": [
- 412
+ 410
],
"isSyncEnabled": [
8
@@ -14185,7 +14102,7 @@ export default {
9
],
"scope": [
- 407
+ 405
],
"__typename": [
1
@@ -14219,7 +14136,7 @@ export default {
9
],
"jobs": [
- 594
+ 592
],
"retryLimit": [
31
@@ -14370,7 +14287,7 @@ export default {
3
],
"update": [
- 602
+ 600
],
"__typename": [
1
@@ -14416,7 +14333,7 @@ export default {
8
],
"translations": [
- 506
+ 504
],
"__typename": [
1
@@ -14582,7 +14499,7 @@ export default {
1
],
"files": [
- 614
+ 612
],
"__typename": [
1
@@ -14604,13 +14521,13 @@ export default {
1
],
"IMAP": [
- 616
+ 614
],
"SMTP": [
- 616
+ 614
],
"CALDAV": [
- 616
+ 614
],
"__typename": [
1
@@ -14675,7 +14592,7 @@ export default {
293,
{
"input": [
- 620,
+ 618,
"LogicFunctionLogsInput!"
]
}
@@ -14693,11 +14610,11 @@ export default {
397,
{
"table": [
- 441,
+ 439,
"EventLogTable!"
],
"fieldFilters": [
- 444,
+ 442,
"[EventLogFieldFilterInput!]"
]
}
@@ -14706,7 +14623,7 @@ export default {
400,
{
"input": [
- 621,
+ 619,
"CreateRecordExportInput!"
]
}
diff --git a/packages/twenty-front/scripts/mock-data/generate-roles.ts b/packages/twenty-front/scripts/mock-data/generate-roles.ts
index cf37da63624..3bba0122e5f 100644
--- a/packages/twenty-front/scripts/mock-data/generate-roles.ts
+++ b/packages/twenty-front/scripts/mock-data/generate-roles.ts
@@ -45,7 +45,6 @@ const GET_ROLES_QUERY = `
roleId
isCustom
modelConfiguration
- evaluationInputs
applicationId
createdAt
updatedAt
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 195fc713330..f54cd046c5d 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -38,7 +38,6 @@ export type Agent = {
applicationId?: Maybe<Scalars['UUID']['output']>;
createdAt: Scalars['DateTime']['output'];
description?: Maybe<Scalars['String']['output']>;
- evaluationInputs: Array<Scalars['String']['output']>;
icon?: Maybe<Scalars['String']['output']>;
id: Scalars['UUID']['output'];
isCustom: Scalars['Boolean']['output'];
@@ -134,25 +133,6 @@ export type AgentMessagePart = {
type: Scalars['String']['output'];
};
-export type AgentTurn = {
- __typename?: 'AgentTurn';
- agentId?: Maybe<Scalars['UUID']['output']>;
- createdAt: Scalars['DateTime']['output'];
- evaluations: Array<AgentTurnEvaluation>;
- id: Scalars['UUID']['output'];
- messages: Array<AgentMessage>;
- threadId: Scalars['UUID']['output'];
-};
-
-export type AgentTurnEvaluation = {
- __typename?: 'AgentTurnEvaluation';
- comment?: Maybe<Scalars['String']['output']>;
- createdAt: Scalars['DateTime']['output'];
- id: Scalars['UUID']['output'];
- score: Scalars['Int']['output'];
- turnId: Scalars['UUID']['output'];
-};
-
export type AggregateChartConfiguration = {
__typename?: 'AggregateChartConfiguration';
aggregateFieldMetadataId: Scalars['UUID']['output'];
@@ -1304,7 +1284,6 @@ export type ConnectionParametersInput = {
export type CreateAgentInput = {
description?: InputMaybe<Scalars['String']['input']>;
- evaluationInputs?: InputMaybe<Array<Scalars['String']['input']>>;
icon?: InputMaybe<Scalars['String']['input']>;
label: Scalars['String']['input'];
modelConfiguration?: InputMaybe<Scalars['JSON']['input']>;
@@ -3196,7 +3175,6 @@ export type Mutation = {
enqueueJob: EnqueueJobResult;
enqueueJobs: EnqueueJobsResult;
enrichWorkspaceCompany: WorkspaceCompanyEnrichmentResult;
- evaluateAgentTurn: AgentTurnEvaluation;
executeOneLogicFunction: LogicFunctionExecutionResult;
generateApiKeyToken: ApiKeyToken;
generateFrontComponentApplicationTokenPair: ApplicationTokenPair;
@@ -3242,7 +3220,6 @@ export type Mutation = {
rotateApplicationRegistrationClientSecret: RotateClientSecret;
runAgent: RunAgentResult;
runApplicationHealthCheck?: Maybe<ApplicationHealthCheckResult>;
- runEvaluationInput: AgentTurn;
saveImapSmtpCaldavAccount: ImapSmtpCaldavConnectionSuccess;
sendChatMessage: SendChatMessageResult;
sendEmail: SendEmailOutput;
@@ -3972,11 +3949,6 @@ export type MutationEnqueueJobsArgs = {
};
-export type MutationEvaluateAgentTurnArgs = {
- turnId: Scalars['UUID']['input'];
-};
-
-
export type MutationExecuteOneLogicFunctionArgs = {
input: ExecuteOneLogicFunctionInput;
};
@@ -4179,12 +4151,6 @@ export type MutationRunApplicationHealthCheckArgs = {
};
-export type MutationRunEvaluationInputArgs = {
- agentId: Scalars['UUID']['input'];
- input: Scalars['String']['input'];
-};
-
-
export type MutationSaveImapSmtpCaldavAccountArgs = {
connectionParameters: EmailAccountConnectionParameters;
handle: Scalars['String']['input'];
@@ -5245,7 +5211,6 @@ export type PublicWorkspaceDataSummary = {
export type Query = {
__typename?: 'Query';
- agentTurns: Array<AgentTurn>;
aiChatUsage?: Maybe<AiChatUsage>;
apiKey?: Maybe<ApiKey>;
apiKeys: Array<ApiKey>;
@@ -5383,11 +5348,6 @@ export type Query = {
};
-export type QueryAgentTurnsArgs = {
- agentId: Scalars['UUID']['input'];
-};
-
-
export type QueryApiKeyArgs = {
input: GetApiKeyInput;
};
@@ -6591,7 +6551,6 @@ export enum UnsubscribeTopicVisibility {
export type UpdateAgentInput = {
description?: InputMaybe<Scalars['String']['input']>;
- evaluationInputs?: InputMaybe<Array<Scalars['String']['input']>>;
icon?: InputMaybe<Scalars['String']['input']>;
id: Scalars['UUID']['input'];
label?: InputMaybe<Scalars['String']['input']>;
@@ -8030,7 +7989,7 @@ export type FindManyTimelineActivityTypesQuery = { __typename?: 'Query', timelin
export type AgentChatThreadParticipantFieldsFragment = { __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, updatedAt: string };
-export type AgentFieldsFragment = { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string };
+export type AgentFieldsFragment = { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string };
export type SkillFieldsFragment = { __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 };
@@ -8074,7 +8033,7 @@ export type CreateOneAgentMutationVariables = Exact<{
}>;
-export type CreateOneAgentMutation = { __typename?: 'Mutation', createOneAgent: { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string } };
+export type CreateOneAgentMutation = { __typename?: 'Mutation', createOneAgent: { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type CreateSkillMutationVariables = Exact<{
input: CreateSkillInput;
@@ -8095,7 +8054,7 @@ export type DeleteOneAgentMutationVariables = Exact<{
}>;
-export type DeleteOneAgentMutation = { __typename?: 'Mutation', deleteOneAgent: { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string } };
+export type DeleteOneAgentMutation = { __typename?: 'Mutation', deleteOneAgent: { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type DeleteQueuedChatMessageMutationVariables = Exact<{
messageId: Scalars['UUID']['input'];
@@ -8111,13 +8070,6 @@ export type DeleteSkillMutationVariables = Exact<{
export type DeleteSkillMutation = { __typename?: 'Mutation', deleteSkill: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isCustom: boolean, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } };
-export type EvaluateAgentTurnMutationVariables = Exact<{
- turnId: Scalars['UUID']['input'];
-}>;
-
-
-export type EvaluateAgentTurnMutation = { __typename?: 'Mutation', evaluateAgentTurn: { __typename?: 'AgentTurnEvaluation', id: string, turnId: string, score: number, comment?: string | null, createdAt: string } };
-
export type MarkAgentChatThreadAsReadMutationVariables = Exact<{
threadId: Scalars['UUID']['input'];
}>;
@@ -8154,14 +8106,6 @@ export type RetryChatMessageMutationVariables = Exact<{
export type RetryChatMessageMutation = { __typename?: 'Mutation', retryChatMessage: { __typename?: 'SendChatMessageResult', messageId?: string | null, queued: boolean, streamId?: string | null } };
-export type RunEvaluationInputMutationVariables = Exact<{
- agentId: Scalars['UUID']['input'];
- input: Scalars['String']['input'];
-}>;
-
-
-export type RunEvaluationInputMutation = { __typename?: 'Mutation', runEvaluationInput: { __typename?: 'AgentTurn', id: string, threadId: string, agentId?: string | null, createdAt: string, evaluations: Array<{ __typename?: 'AgentTurnEvaluation', id: string, score: number, comment?: string | null, createdAt: string }> } };
-
export type SendChatMessageMutationVariables = Exact<{
threadId: Scalars['UUID']['input'];
text: Scalars['String']['input'];
@@ -8194,7 +8138,7 @@ export type UpdateOneAgentMutationVariables = Exact<{
}>;
-export type UpdateOneAgentMutation = { __typename?: 'Mutation', updateOneAgent: { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string } };
+export type UpdateOneAgentMutation = { __typename?: 'Mutation', updateOneAgent: { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type UpdateSkillMutationVariables = Exact<{
input: UpdateSkillInput;
@@ -8206,7 +8150,7 @@ export type UpdateSkillMutation = { __typename?: 'Mutation', updateSkill: { __ty
export type FindManyAgentsQueryVariables = Exact<{ [key: string]: never; }>;
-export type FindManyAgentsQuery = { __typename?: 'Query', findManyAgents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string }> };
+export type FindManyAgentsQuery = { __typename?: 'Query', findManyAgents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string }> };
export type FindManySkillsQueryVariables = Exact<{ [key: string]: never; }>;
@@ -8223,7 +8167,7 @@ export type FindOneAgentQueryVariables = Exact<{
}>;
-export type FindOneAgentQuery = { __typename?: 'Query', findOneAgent: { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string } };
+export type FindOneAgentQuery = { __typename?: 'Query', findOneAgent: { __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type FindOneSkillQueryVariables = Exact<{
id: Scalars['UUID']['input'];
@@ -8237,13 +8181,6 @@ export type FindWorkspaceAiStatsQueryVariables = Exact<{ [key: string]: never; }
export type FindWorkspaceAiStatsQuery = { __typename?: 'Query', findWorkspaceAiStats: { __typename?: 'WorkspaceAiStats', conversationsCount: number, skillsCount: number, toolsCount: number } };
-export type GetAgentTurnsQueryVariables = Exact<{
- agentId: Scalars['UUID']['input'];
-}>;
-
-
-export type GetAgentTurnsQuery = { __typename?: 'Query', agentTurns: Array<{ __typename?: 'AgentTurn', id: string, threadId: string, agentId?: string | null, createdAt: string, evaluations: Array<{ __typename?: 'AgentTurnEvaluation', id: string, score: number, comment?: string | null, createdAt: string }>, messages: Array<{ __typename?: 'AgentMessage', id: string, role: string, createdAt: string, parts: Array<{ __typename?: 'AgentMessagePart', id: string, type: string, textContent?: string | null, reasoningContent?: string | null, toolName?: string | null, toolCallId?: string | null, toolInput?: any | null, toolOutput?: any | null, errorMessage?: string | null, state?: string | null, providerExecuted?: boolean | 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, providerMetadata?: any | null }> }> }> };
-
export type GetAiChatUsageQueryVariables = Exact<{ [key: string]: never; }>;
@@ -8285,7 +8222,7 @@ export type TrackAnalyticsMutationVariables = Exact<{
export type TrackAnalyticsMutation = { __typename?: 'Mutation', trackAnalytics: { __typename?: 'Analytics', success: boolean } };
-export type ApplicationFieldsFragment = { __typename?: 'Application', id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isUIEditable: boolean, isUICreatable: boolean, writability: MetadataWritability, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, applicationId: string, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: ObjectOpenRecordIn, sharingReach: ObjectSharingReach, readability: MetadataReadability, duplicateCriteria?: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename?: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename?: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, isCustom?: boolean | null, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: string, universalIdentifier: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isActive?: boolean | null, isSystem?: boolean | null, isUIEditable?: boolean | null, writability?: MetadataWritability | null, isNullable?: boolean | null, isUnique?: boolean | null, isSearchable?: boolean | null, createdAt: string, updatedAt: string, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, morphId?: string | null, applicationId: string, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } } | null, morphRelations?: Array<{ __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename?: 'LogicFunction', id: string, name: string, description?: string | null, runtime: string, timeoutSeconds: number, executionMode: LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings?: any | null, databaseEventTriggerSettings?: any | null, httpRouteTriggerSettings?: any | null, toolTriggerSettings?: any | null, workflowActionTriggerSettings?: any | null, applicationId?: string | null, universalIdentifier?: string | null, createdAt: string, updatedAt: string }> };
+export type ApplicationFieldsFragment = { __typename?: 'Application', id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isUIEditable: boolean, isUICreatable: boolean, writability: MetadataWritability, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, applicationId: string, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: ObjectOpenRecordIn, sharingReach: ObjectSharingReach, readability: MetadataReadability, duplicateCriteria?: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename?: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename?: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, isCustom?: boolean | null, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: string, universalIdentifier: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isActive?: boolean | null, isSystem?: boolean | null, isUIEditable?: boolean | null, writability?: MetadataWritability | null, isNullable?: boolean | null, isUnique?: boolean | null, isSearchable?: boolean | null, createdAt: string, updatedAt: string, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, morphId?: string | null, applicationId: string, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } } | null, morphRelations?: Array<{ __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename?: 'LogicFunction', id: string, name: string, description?: string | null, runtime: string, timeoutSeconds: number, executionMode: LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings?: any | null, databaseEventTriggerSettings?: any | null, httpRouteTriggerSettings?: any | null, toolTriggerSettings?: any | null, workflowActionTriggerSettings?: any | null, applicationId?: string | null, universalIdentifier?: string | null, createdAt: string, updatedAt: string }> };
export type RunApplicationHealthCheckMutationVariables = Exact<{
applicationId: Scalars['UUID']['input'];
@@ -8304,7 +8241,7 @@ export type FindOneApplicationQueryVariables = Exact<{
}>;
-export type FindOneApplicationQuery = { __typename?: 'Query', findOneApplication: { __typename?: 'Application', id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isUIEditable: boolean, isUICreatable: boolean, writability: MetadataWritability, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, applicationId: string, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: ObjectOpenRecordIn, sharingReach: ObjectSharingReach, readability: MetadataReadability, duplicateCriteria?: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename?: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename?: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, isCustom?: boolean | null, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: string, universalIdentifier: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isActive?: boolean | null, isSystem?: boolean | null, isUIEditable?: boolean | null, writability?: MetadataWritability | null, isNullable?: boolean | null, isUnique?: boolean | null, isSearchable?: boolean | null, createdAt: string, updatedAt: string, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, morphId?: string | null, applicationId: string, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } } | null, morphRelations?: Array<{ __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename?: 'LogicFunction', id: string, name: string, description?: string | null, runtime: string, timeoutSeconds: number, executionMode: LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings?: any | null, databaseEventTriggerSettings?: any | null, httpRouteTriggerSettings?: any | null, toolTriggerSettings?: any | null, workflowActionTriggerSettings?: any | null, applicationId?: string | null, universalIdentifier?: string | null, createdAt: string, updatedAt: string }> } };
+export type FindOneApplicationQuery = { __typename?: 'Query', findOneApplication: { __typename?: 'Application', id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isUIEditable: boolean, isUICreatable: boolean, writability: MetadataWritability, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, applicationId: string, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, openRecordIn: ObjectOpenRecordIn, sharingReach: ObjectSharingReach, readability: MetadataReadability, duplicateCriteria?: Array<Array<string>> | null, searchFieldMetadataList: Array<{ __typename?: 'SearchField', id: string, fieldMetadataId: string, tsVectorFieldMetadataId: string, position: number, createdAt: string, updatedAt: string }>, indexMetadataList: Array<{ __typename?: 'Index', id: string, createdAt: string, updatedAt: string, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, isCustom?: boolean | null, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: string, universalIdentifier: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isActive?: boolean | null, isSystem?: boolean | null, isUIEditable?: boolean | null, writability?: MetadataWritability | null, isNullable?: boolean | null, isUnique?: boolean | null, isSearchable?: boolean | null, createdAt: string, updatedAt: string, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, morphId?: string | null, applicationId: string, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } } | null, morphRelations?: Array<{ __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: string, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: string, name: string }, targetFieldMetadata: { __typename?: 'Field', id: string, name: string } }> | null }> }>, logicFunctions: Array<{ __typename?: 'LogicFunction', id: string, name: string, description?: string | null, runtime: string, timeoutSeconds: number, executionMode: LogicFunctionExecutionMode, sourceHandlerPath: string, handlerName: string, cronTriggerSettings?: any | null, databaseEventTriggerSettings?: any | null, httpRouteTriggerSettings?: any | null, toolTriggerSettings?: any | null, workflowActionTriggerSettings?: any | null, applicationId?: string | null, universalIdentifier?: string | null, createdAt: string, updatedAt: string }> } };
export type FindOneApplicationByUniversalIdentifierQueryVariables = Exact<{
universalIdentifier: Scalars['UUID']['input'];
@@ -10199,7 +10136,7 @@ export type GetRoleQuery = { __typename?: 'Query', getRole: { __typename?: 'Role
export type GetRolesQueryVariables = Exact<{ [key: string]: never; }>;
-export type GetRolesQuery = { __typename?: 'Query', getPermissionFlags: Array<{ __typename?: 'PermissionFlag', id: string, applicationId: string, key: string, label: string, description?: string | null, icon?: string | null, permissionType: string }>, getRoles: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean, workspaceMembers: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, evaluationInputs: Array<string>, applicationId?: string | null, createdAt: string, updatedAt: string }>, apiKeys: Array<{ __typename?: 'ApiKeyForRole', id: string, name: string, expiresAt: string, revokedAt?: string | null }>, permissionFlags?: Array<{ __typename?: 'RolePermissionFlag', id: string, flag: string, roleId: string }> | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null }> | null, fieldPermissions?: Array<{ __typename?: 'FieldPermission', objectMetadataId: string, fieldMetadataId: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null, id: string, roleId: string }> | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> };
+export type GetRolesQuery = { __typename?: 'Query', getPermissionFlags: Array<{ __typename?: 'PermissionFlag', id: string, applicationId: string, key: string, label: string, description?: string | null, icon?: string | null, permissionType: string }>, getRoles: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, canAccessAllTools: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean, workspaceMembers: Array<{ __typename?: 'WorkspaceMember', id: string, avatarUrl?: string | null, userEmail: string, userId: string, userWorkspaceId?: string | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, apiKeys: Array<{ __typename?: 'ApiKeyForRole', id: string, name: string, expiresAt: string, revokedAt?: string | null }>, permissionFlags?: Array<{ __typename?: 'RolePermissionFlag', id: string, flag: string, roleId: string }> | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null, restrictedFields?: any | null }> | null, fieldPermissions?: Array<{ __typename?: 'FieldPermission', objectMetadataId: string, fieldMetadataId: string, canReadFieldValue?: boolean | null, canUpdateFieldValue?: boolean | null, id: string, roleId: string }> | null, rowLevelPermissionPredicates?: Array<{ __typename?: 'RowLevelPermissionPredicate', id: string, fieldMetadataId: string, objectMetadataId: string, operand: RowLevelPermissionPredicateOperand, subFieldName?: string | null, workspaceMemberFieldMetadataId?: string | null, workspaceMemberSubFieldName?: string | null, rowLevelPermissionPredicateGroupId?: string | null, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, value?: any | null }> | null, rowLevelPermissionPredicateGroups?: Array<{ __typename?: 'RowLevelPermissionPredicateGroup', id: string, parentRowLevelPermissionPredicateGroupId?: string | null, logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator, positionInRowLevelPermissionPredicateGroup?: number | null, roleId: string, objectMetadataId: string }> | null }> };
export type CreateApprovedAccessDomainMutationVariables = Exact<{
input: CreateApprovedAccessDomainInput;
@@ -10665,10 +10602,10 @@ export type FindManyMarketplaceAppsForToolTableQuery = { __typename?: 'Query', f
export const AgentChatThreadParticipantFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<AgentChatThreadParticipantFieldsFragment, unknown>;
export const SkillFieldsFragmentDoc = {"kind":"Document","definitions":[{"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<SkillFieldsFragment, unknown>;
-export const AgentFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"evaluationInputs"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<AgentFieldsFragment, unknown>;
+export const AgentFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<AgentFieldsFragment, unknown>;
export const ObjectMetadataFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode<ObjectMetadataFieldsFragment, unknown>;
export const LogicFunctionFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<LogicFunctionFieldsFragment, unknown>;
-export const ApplicationFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"evaluationInputs"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ApplicationFieldsFragment, unknown>;
+export const ApplicationFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ApplicationFieldsFragment, unknown>;
export const AuthTokenFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthToken"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]} as unknown as DocumentNode<AuthTokenFragmentFragment, unknown>;
export const AuthTokenPairFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenPairFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthTokenPair"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessOrWorkspaceAgnosticToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"refreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthToken"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]} as unknown as DocumentNode<AuthTokenPairFragmentFragment, unknown>;
export const AvailableSsoIdentityProvidersFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableSSOIdentityProvidersFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FindAvailableSSOIDP"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"workspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}}]}}]}}]} as unknown as DocumentNode<AvailableSsoIdentityProvidersFragmentFragment, unknown>;
@@ -10728,31 +10665,28 @@ export const AddAgentChatThreadParticipantsDocument = {"kind":"Document","defini
export const ArchiveAgentChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ArchiveAgentChatThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"archiveAgentChatThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ArchiveAgentChatThreadMutation, ArchiveAgentChatThreadMutationVariables>;
export const AssignRoleToAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AssignRoleToAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"assignRoleToAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"agentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"roleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}}}]}]}}]} as unknown as DocumentNode<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>;
export const CreateChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateChatThread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createChatThread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<CreateChatThreadMutation, CreateChatThreadMutationVariables>;
-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":"evaluationInputs"}},{"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>;
+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":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<CreateOneAgentMutation, CreateOneAgentMutationVariables>;
export const CreateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateSkillInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createSkill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<CreateSkillMutation, CreateSkillMutationVariables>;
export const DeactivateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeactivateSkill"},"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":"deactivateSkill"},"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<DeactivateSkillMutation, DeactivateSkillMutationVariables>;
-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":"evaluationInputs"}},{"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 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":"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 EvaluateAgentTurnDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"EvaluateAgentTurn"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"turnId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evaluateAgentTurn"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"turnId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"turnId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"turnId"}},{"kind":"Field","name":{"kind":"Name","value":"score"}},{"kind":"Field","name":{"kind":"Name","value":"comment"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]} as unknown as DocumentNode<EvaluateAgentTurnMutation, EvaluateAgentTurnMutationVariables>;
export const MarkAgentChatThreadAsReadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MarkAgentChatThreadAsRead"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"markAgentChatThreadAsRead"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<MarkAgentChatThreadAsReadMutation, MarkAgentChatThreadAsReadMutationVariables>;
export const MarkAgentChatThreadAsUnreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MarkAgentChatThreadAsUnread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"markAgentChatThreadAsUnread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<MarkAgentChatThreadAsUnreadMutation, MarkAgentChatThreadAsUnreadMutationVariables>;
export const MoveAgentChatThreadToInboxDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MoveAgentChatThreadToInbox"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"moveAgentChatThreadToInbox"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<MoveAgentChatThreadToInboxMutation, MoveAgentChatThreadToInboxMutationVariables>;
export const RemoveRoleFromAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveRoleFromAgent"},"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":"removeRoleFromAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"agentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}}}]}]}}]} as unknown as DocumentNode<RemoveRoleFromAgentMutation, RemoveRoleFromAgentMutationVariables>;
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 RunEvaluationInputDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RunEvaluationInput"},"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":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"runEvaluationInput"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"agentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}}},{"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":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"agentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"evaluations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"score"}},{"kind":"Field","name":{"kind":"Name","value":"comment"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}}]} as unknown as DocumentNode<RunEvaluationInputMutation, RunEvaluationInputMutationVariables>;
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"}}}}}],"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"}}}],"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<SendChatMessageMutation, SendChatMessageMutationVariables>;
export const SnoozeAgentChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SnoozeAgentChatThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"snoozedUntil"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"snoozeAgentChatThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}},{"kind":"Argument","name":{"kind":"Name","value":"snoozedUntil"},"value":{"kind":"Variable","name":{"kind":"Name","value":"snoozedUntil"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<SnoozeAgentChatThreadMutation, SnoozeAgentChatThreadMutationVariables>;
export const StopAgentChatStreamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"StopAgentChatStream"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stopAgentChatStream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}]}]}}]} as unknown as DocumentNode<StopAgentChatStreamMutation, StopAgentChatStreamMutationVariables>;
-export const UpdateOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateAgentInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"evaluationInputs"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>;
+export const UpdateOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateAgentInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>;
export const UpdateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateSkillInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateSkill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateSkillMutation, UpdateSkillMutationVariables>;
-export const FindManyAgentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyAgents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyAgents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"evaluationInputs"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindManyAgentsQuery, FindManyAgentsQueryVariables>;
+export const FindManyAgentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyAgents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyAgents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindManyAgentsQuery, FindManyAgentsQueryVariables>;
export const FindManySkillsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManySkills"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skills"},"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<FindManySkillsQuery, FindManySkillsQueryVariables>;
export const FindManySkillsForSuggestionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManySkillsForSuggestion"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skills"},"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":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}}]}}]}}]} as unknown as DocumentNode<FindManySkillsForSuggestionQuery, FindManySkillsForSuggestionQueryVariables>;
-export const FindOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"evaluationInputs"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneAgentQuery, FindOneAgentQueryVariables>;
+export const FindOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneAgentQuery, FindOneAgentQueryVariables>;
export const FindOneSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"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<FindOneSkillQuery, FindOneSkillQueryVariables>;
export const FindWorkspaceAiStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindWorkspaceAiStats"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findWorkspaceAiStats"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"conversationsCount"}},{"kind":"Field","name":{"kind":"Name","value":"skillsCount"}},{"kind":"Field","name":{"kind":"Name","value":"toolsCount"}}]}}]}}]} as unknown as DocumentNode<FindWorkspaceAiStatsQuery, FindWorkspaceAiStatsQueryVariables>;
-export const GetAgentTurnsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentTurns"},"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":"agentTurns"},"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":"agentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"evaluations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"score"}},{"kind":"Field","name":{"kind":"Name","value":"comment"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"messages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"parts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"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":"errorMessage"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"providerExecuted"}},{"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":"providerMetadata"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetAgentTurnsQuery, GetAgentTurnsQueryVariables>;
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":"senderUserWorkspaceId"}},{"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":"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 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>;
@@ -10761,7 +10695,7 @@ export const OnAgentChatEventDocument = {"kind":"Document","definitions":[{"kind
export const TrackAnalyticsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"TrackAnalytics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"type"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnalyticsType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"event"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"properties"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"trackAnalytics"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"type"}}},{"kind":"Argument","name":{"kind":"Name","value":"event"},"value":{"kind":"Variable","name":{"kind":"Name","value":"event"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"properties"},"value":{"kind":"Variable","name":{"kind":"Name","value":"properties"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>;
export const RunApplicationHealthCheckDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RunApplicationHealthCheck"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"runApplicationHealthCheck"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"location"}}]}}]}}]}}]} as unknown as DocumentNode<RunApplicationHealthCheckMutation, RunApplicationHealthCheckMutationVariables>;
export const FindManyApplicationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyApplications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}}]}}]}}]}}]} as unknown as DocumentNode<FindManyApplicationsQuery, FindManyApplicationsQueryVariables>;
-export const FindOneApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"evaluationInputs"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationQuery, FindOneApplicationQueryVariables>;
+export const FindOneApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApplicationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"isUICreatable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"openRecordIn"}},{"kind":"Field","name":{"kind":"Name","value":"sharingReach"}},{"kind":"Field","name":{"kind":"Name","value":"readability"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"searchFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"tsVectorFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isUIEditable"}},{"kind":"Field","name":{"kind":"Name","value":"writability"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"morphId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"morphRelations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LogicFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LogicFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"executionMode"}},{"kind":"Field","name":{"kind":"Name","value":"sourceHandlerPath"}},{"kind":"Field","name":{"kind":"Name","value":"handlerName"}},{"kind":"Field","name":{"kind":"Name","value":"cronTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"databaseEventTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"httpRouteTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"toolTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"workflowActionTriggerSettings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApplicationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Application"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistrationId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationRegistration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"latestAvailableVersion"}},{"kind":"Field","name":{"kind":"Name","value":"sourceType"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"canBeUninstalled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpgrade"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationQuery, FindOneApplicationQueryVariables>;
export const FindOneApplicationByUniversalIdentifierDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationByUniversalIdentifier"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationByUniversalIdentifierQuery, FindOneApplicationByUniversalIdentifierQueryVariables>;
export const FindOneApplicationNameDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationName"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationNameQuery, FindOneApplicationNameQueryVariables>;
export const FindOneApplicationSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationSummary"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationSummaryQuery, FindOneApplicationSummaryQueryVariables>;
@@ -10971,7 +10905,7 @@ export const UpsertObjectPermissionsDocument = {"kind":"Document","definitions":
export const UpsertPermissionFlagsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertPermissionFlags"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"upsertPermissionFlagsInput"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertPermissionFlagsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertPermissionFlags"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"upsertPermissionFlagsInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"upsertPermissionFlagsInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RolePermissionFlagFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RolePermissionFlagFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RolePermissionFlag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}}]} as unknown as DocumentNode<UpsertPermissionFlagsMutation, UpsertPermissionFlagsMutationVariables>;
export const UpsertRowLevelPermissionPredicatesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpsertRowLevelPermissionPredicates"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpsertRowLevelPermissionPredicatesInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"upsertRowLevelPermissionPredicates"},"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":"predicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"predicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}}]} as unknown as DocumentNode<UpsertRowLevelPermissionPredicatesMutation, UpsertRowLevelPermissionPredicatesMutationVariables>;
export const GetRoleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRole"},"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":"getRole"},"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":"RoleFragment"}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RolePermissionFlagFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"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":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RolePermissionFlagFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RolePermissionFlag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"restrictedFields"}}]}}]} as unknown as DocumentNode<GetRoleQuery, GetRoleQueryVariables>;
-export const GetRolesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPermissionFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"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":"permissionType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"getRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"apiKeys"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApiKeyForRoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RolePermissionFlagFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FieldPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"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":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"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":"evaluationInputs"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApiKeyForRoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApiKeyForRole"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}},{"kind":"Field","name":{"kind":"Name","value":"revokedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RolePermissionFlagFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RolePermissionFlag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"restrictedFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FieldPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}}]} as unknown as DocumentNode<GetRolesQuery, GetRolesQueryVariables>;
+export const GetRolesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPermissionFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"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":"permissionType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"getRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RoleFragment"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"apiKeys"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ApiKeyForRoleFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"permissionFlags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RolePermissionFlagFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objectPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FieldPermissionFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroups"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Role"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"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":"canUpdateAllSettings"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllTools"}},{"kind":"Field","name":{"kind":"Name","value":"isEditable"}},{"kind":"Field","name":{"kind":"Name","value":"canReadAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyAllObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToUsers"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToAgents"}},{"kind":"Field","name":{"kind":"Name","value":"canBeAssignedToApiKeys"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PartialWorkspaceMemberQueryFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceMember"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}},{"kind":"Field","name":{"kind":"Name","value":"userEmail"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}}]}},{"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":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ApiKeyForRoleFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ApiKeyForRole"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}},{"kind":"Field","name":{"kind":"Name","value":"revokedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RolePermissionFlagFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RolePermissionFlag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDeleteObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"canDestroyObjectRecords"}},{"kind":"Field","name":{"kind":"Name","value":"restrictedFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FieldPermissionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"canReadFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdateFieldValue"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"operand"}},{"kind":"Field","name":{"kind":"Name","value":"subFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberSubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"rowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroupFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RowLevelPermissionPredicateGroup"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parentRowLevelPermissionPredicateGroupId"}},{"kind":"Field","name":{"kind":"Name","value":"logicalOperator"}},{"kind":"Field","name":{"kind":"Name","value":"positionInRowLevelPermissionPredicateGroup"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}}]}}]} as unknown as DocumentNode<GetRolesQuery, GetRolesQueryVariables>;
export const CreateApprovedAccessDomainDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateApprovedAccessDomain"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateApprovedAccessDomainInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createApprovedAccessDomain"},"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":"domain"}},{"kind":"Field","name":{"kind":"Name","value":"isValidated"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]} as unknown as DocumentNode<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>;
export const CreateOidcIdentityProviderDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOIDCIdentityProvider"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SetupOIDCSsoInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOIDCIdentityProvider"},"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":"type"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>;
export const CreateSamlIdentityProviderDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateSAMLIdentityProvider"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SetupSAMLSsoInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createSAMLIdentityProvider"},"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":"type"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>;
diff --git a/packages/twenty-front/src/modules/ai/graphql/fragments/agentFragment.ts b/packages/twenty-front/src/modules/ai/graphql/fragments/agentFragment.ts
index e32e2394864..1b80132f921 100644
--- a/packages/twenty-front/src/modules/ai/graphql/fragments/agentFragment.ts
+++ b/packages/twenty-front/src/modules/ai/graphql/fragments/agentFragment.ts
@@ -14,7 +14,6 @@ export const AGENT_FRAGMENT = gql`
isCustom
isSystem
modelConfiguration
- evaluationInputs
applicationId
createdAt
updatedAt
diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/evaluateAgentTurn.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/evaluateAgentTurn.ts
deleted file mode 100644
index 6b681cc78de..00000000000
--- a/packages/twenty-front/src/modules/ai/graphql/mutations/evaluateAgentTurn.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { gql } from '@apollo/client';
-
-export const EVALUATE_AGENT_TURN = gql`
- mutation EvaluateAgentTurn($turnId: UUID!) {
- evaluateAgentTurn(turnId: $turnId) {
- id
- turnId
- score
- comment
- createdAt
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/ai/graphql/mutations/runEvaluationInput.ts b/packages/twenty-front/src/modules/ai/graphql/mutations/runEvaluationInput.ts
deleted file mode 100644
index cba1bae4a28..00000000000
--- a/packages/twenty-front/src/modules/ai/graphql/mutations/runEvaluationInput.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { gql } from '@apollo/client';
-
-export const RUN_EVALUATION_INPUT = gql`
- mutation RunEvaluationInput($agentId: UUID!, $input: String!) {
- runEvaluationInput(agentId: $agentId, input: $input) {
- id
- threadId
- agentId
- createdAt
- evaluations {
- id
- score
- comment
- createdAt
- }
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentTurns.ts b/packages/twenty-front/src/modules/ai/graphql/queries/getAgentTurns.ts
deleted file mode 100644
index 918518a25ae..00000000000
--- a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentTurns.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import { gql } from '@apollo/client';
-
-export const GET_AGENT_TURNS = gql`
- query GetAgentTurns($agentId: UUID!) {
- agentTurns(agentId: $agentId) {
- id
- threadId
- agentId
- createdAt
- evaluations {
- id
- score
- comment
- createdAt
- }
- messages {
- id
- role
- createdAt
- parts {
- id
- type
- textContent
- reasoningContent
- toolName
- toolCallId
- toolInput
- toolOutput
- errorMessage
- state
- providerExecuted
- sourceUrlSourceId
- sourceUrlUrl
- sourceUrlTitle
- sourceDocumentSourceId
- sourceDocumentMediaType
- sourceDocumentTitle
- sourceDocumentFilename
- fileMediaType
- fileFilename
- fileUrl
- providerMetadata
- }
- }
- }
- }
-`;
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentEvalsTab.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentEvalsTab.tsx
deleted file mode 100644
index 0c340bb2fff..00000000000
--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentEvalsTab.tsx
+++ /dev/null
@@ -1,209 +0,0 @@
-import { RUN_EVALUATION_INPUT } from '@/ai/graphql/mutations/runEvaluationInput';
-import { GET_AGENT_TURNS } from '@/ai/graphql/queries/getAgentTurns';
-import { SettingsListCard } from '@/settings/components/SettingsListCard';
-import { TextInput } from '@/ui/input/components/TextInput';
-import { ConfirmationDialog } from '@/ui/layout/dialog/components/ConfirmationDialog';
-import { useDialog } from '@/ui/layout/dialog/hooks/useDialog';
-import { DropdownRoot } from '@/ui/layout/dropdown/components/DropdownRoot';
-import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
-import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState';
-import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
-import { useMutation } from '@apollo/client/react';
-import { styled } from '@linaria/react';
-import { t } from '@lingui/core/macro';
-import { useState } from 'react';
-import { useNavigate } from 'react-router-dom';
-import {
- Dropdown,
- LightIconButton,
- Section,
- useToast,
-} from 'twenty-ui/components';
-import {
- IconDotsVertical,
- IconMessage,
- IconPlayerPlay,
- IconPlus,
- IconTrash,
-} from 'twenty-ui/icon';
-import { Button } from 'twenty-ui/primitives/input';
-import { themeCssVariables } from 'twenty-ui/theme';
-import { CORE_AGENT_DETAIL_TABS } from '@/object-core/agents/constants/CoreAgentDetailTabs';
-import { getOperationName } from '~/utils/getOperationName';
-
-const DELETE_EVAL_INPUT_MODAL_ID = 'delete-eval-input-modal';
-
-const StyledInputContainer = styled.div`
- align-items: center;
- display: flex;
- gap: ${themeCssVariables.spacing[2]};
- margin-bottom: ${themeCssVariables.spacing[6]};
- margin-top: ${themeCssVariables.spacing[4]};
-`;
-
-const StyledEmptyMessage = styled.div`
- color: ${themeCssVariables.font.color.tertiary};
-`;
-
-type CoreAgentEvalsTabProps = {
- agentId: string;
- evaluationInputs: string[];
- onEvaluationInputsChange: (inputs: string[]) => void;
- disabled?: boolean;
-};
-
-type EvalInput = {
- id: string;
- text: string;
-};
-
-export const CoreAgentEvalsTab = ({
- agentId,
- evaluationInputs,
- onEvaluationInputsChange,
- disabled = false,
-}: CoreAgentEvalsTabProps) => {
- const [newInput, setNewInput] = useState('');
- const [inputToDelete, setInputToDelete] = useState<string | null>(null);
- const { openDialog } = useDialog();
- const { enqueueToast } = useToast();
- const navigate = useNavigate();
-
- const tabListComponentId = `${CORE_AGENT_DETAIL_TABS.COMPONENT_INSTANCE_ID}-${agentId}`;
- const setActiveTabId = useSetAtomComponentState(
- activeTabIdComponentState,
- tabListComponentId,
- );
-
- const [runEvaluationInput] = useMutation(RUN_EVALUATION_INPUT, {
- onCompleted: () => {
- const logsTabId = CORE_AGENT_DETAIL_TABS.TABS_IDS.LOGS;
- setActiveTabId(logsTabId);
- navigate(`#${logsTabId}`);
- },
- onError: () => {
- enqueueToast({
- variant: 'error',
- children: t`Failed to execute evaluation input`,
- });
- },
- refetchQueries: [getOperationName(GET_AGENT_TURNS) ?? ''],
- awaitRefetchQueries: false,
- });
-
- const evalInputs: EvalInput[] = evaluationInputs.map((text, index) => ({
- id: index.toString(),
- text,
- }));
-
- const handleAddInput = () => {
- if (newInput.trim() !== '') {
- onEvaluationInputsChange([...evaluationInputs, newInput.trim()]);
- setNewInput('');
- }
- };
-
- const handleDeleteInput = () => {
- if (inputToDelete !== null) {
- const index = evalInputs.findIndex((input) => input.id === inputToDelete);
- if (index !== -1) {
- const newInputs = [...evaluationInputs];
- newInputs.splice(index, 1);
- onEvaluationInputsChange(newInputs);
- }
- setInputToDelete(null);
- }
- };
-
- const openDeleteModal = (id: string) => {
- setInputToDelete(id);
- openDialog(DELETE_EVAL_INPUT_MODAL_ID);
- };
-
- const handleRunInput = (text: string) => {
- runEvaluationInput({
- variables: { agentId, input: text },
- });
- };
-
- return (
- <>
- <Section.Root>
- <StyledInputContainer>
- <TextInput
- placeholder={t`Add test input for evaluation (e.g., "Find all customers in NY")`}
- value={newInput}
- onChange={setNewInput}
- onKeyDown={(e) => {
- if (e.key === 'Enter') {
- e.preventDefault();
- handleAddInput();
- }
- }}
- disabled={disabled}
- fullWidth
- />
- <Button
- startIcon={<IconPlus />}
- size="sm"
- onClick={handleAddInput}
- disabled={disabled || !newInput.trim()}
- variant="solid"
- color="accent"
- >{t`Add`}</Button>
- </StyledInputContainer>
-
- {evalInputs.length > 0 ? (
- <SettingsListCard
- items={evalInputs}
- getItemLabel={(item) => item.text}
- RowIcon={IconMessage}
- RowRightComponent={({ item }) => (
- <DropdownRoot
- type="menu"
- dropdownId={`eval-input-dropdown-${item.id}`}
- >
- <Dropdown.Trigger
- disabled={disabled}
- render={
- <LightIconButton
- emphasis="subtle"
- disabled={disabled}
- aria-label={t`More options`}
- >
- <IconDotsVertical />
- </LightIconButton>
- }
- />
- <DropdownContent side="right">
- <Dropdown.Section>
- <Dropdown.ActionItem
- startIcon={<IconPlayerPlay />}
- onClick={() => handleRunInput(item.text)}
- >{t`Run`}</Dropdown.ActionItem>
- <Dropdown.ActionItem
- color="danger"
- startIcon={<IconTrash />}
- onClick={() => openDeleteModal(item.id)}
- >{t`Delete`}</Dropdown.ActionItem>
- </Dropdown.Section>
- </DropdownContent>
- </DropdownRoot>
- )}
- hasFooter={false}
- />
- ) : (
- <StyledEmptyMessage>{t`No evaluation inputs yet. Add your first test input above.`}</StyledEmptyMessage>
- )}
- </Section.Root>
-
- <ConfirmationDialog
- dialogId={DELETE_EVAL_INPUT_MODAL_ID}
- title={t`Delete Evaluation Input`}
- subtitle={t`Are you sure you want to delete this evaluation input?`}
- onConfirmClick={handleDeleteInput}
- confirmButtonText={t`Delete`}
- />
- </>
- );
-};
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentFormContent.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentFormContent.tsx
index 14d25709a97..d079c1d5484 100644
--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentFormContent.tsx
+++ b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentFormContent.tsx
@@ -3,13 +3,7 @@ import { t } from '@lingui/core/macro';
import { useState } from 'react';
import { isDefined } from 'twenty-shared/utils';
import { Section } from 'twenty-ui/components';
-import {
- IconListCheck,
- IconLock,
- IconSettings,
- IconTerminal,
- useIcons,
-} from 'twenty-ui/icon';
+import { IconLock, IconSettings, useIcons } from 'twenty-ui/icon';
import { useTheme, themeCssVariables } from 'twenty-ui/theme';
import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
@@ -25,8 +19,6 @@ import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/use
import { useAtomFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilyStateValue';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { type FindOneAgentQuery } from '~/generated-metadata/graphql';
-import { CoreAgentEvalsTab } from '@/object-core/agents/components/CoreAgentEvalsTab';
-import { CoreAgentLogsTab } from '@/object-core/agents/components/CoreAgentLogsTab';
import { CoreAgentRoleTab } from '@/object-core/agents/components/CoreAgentRoleTab';
import { CoreAgentSettingsTab } from '@/object-core/agents/components/CoreAgentSettingsTab';
import { CORE_AGENT_DETAIL_TABS } from '@/object-core/agents/constants/CoreAgentDetailTabs';
@@ -115,16 +107,6 @@ export const CoreAgentFormContent = ({ agent }: CoreAgentFormContentProps) => {
title: t`Role`,
Icon: IconLock,
},
- {
- id: CORE_AGENT_DETAIL_TABS.TABS_IDS.EVALS,
- title: t`Evals`,
- Icon: IconListCheck,
- },
- {
- id: CORE_AGENT_DETAIL_TABS.TABS_IDS.LOGS,
- title: t`Logs`,
- Icon: IconTerminal,
- },
];
const title = agent.label;
@@ -133,12 +115,8 @@ export const CoreAgentFormContent = ({ agent }: CoreAgentFormContentProps) => {
const isRoleTab = activeTabId === CORE_AGENT_DETAIL_TABS.TABS_IDS.ROLE;
const isSettingsTab =
activeTabId === CORE_AGENT_DETAIL_TABS.TABS_IDS.SETTINGS;
- const isEvalsTab = activeTabId === CORE_AGENT_DETAIL_TABS.TABS_IDS.EVALS;
- const isLogsTab = activeTabId === CORE_AGENT_DETAIL_TABS.TABS_IDS.LOGS;
const isFormDisabled = isReadonlyMode || !agent.isCustom;
- const isEvalsDisabled =
- process.env.NODE_ENV === 'development' ? isReadonlyMode : isFormDisabled;
return (
<>
@@ -177,17 +155,6 @@ export const CoreAgentFormContent = ({ agent }: CoreAgentFormContentProps) => {
agent={agent}
/>
)}
- {isEvalsTab && (
- <CoreAgentEvalsTab
- agentId={agentId}
- evaluationInputs={formValues.evaluationInputs}
- onEvaluationInputsChange={(inputs) =>
- handleFieldChange('evaluationInputs', inputs)
- }
- disabled={isEvalsDisabled}
- />
- )}
- {isLogsTab && <CoreAgentLogsTab agentId={agentId} />}
</StyledContentContainer>
</Section.Root>
</SettingsPageContainer>
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentLogsTab.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentLogsTab.tsx
deleted file mode 100644
index bd336a02b1c..00000000000
--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentLogsTab.tsx
+++ /dev/null
@@ -1,250 +0,0 @@
-import { getCoreAgentLink } from '@/object-core/agents/utils/getCoreAgentLink';
-import { AnimatedPlaceholder } from '@/ui/feedback/empty-state/components/AnimatedPlaceholder/AnimatedPlaceholder';
-import { EmptyState } from '@/ui/feedback/empty-state/components/EmptyState';
-import { Table } from '@/ui/layout/table/components/Table';
-import { TableCell } from '@/ui/layout/table/components/TableCell';
-import { TableHeader } from '@/ui/layout/table/components/TableHeader';
-import { TableRow } from '@/ui/layout/table/components/TableRow';
-import { useMutation, useQuery } from '@apollo/client/react';
-import { styled } from '@linaria/react';
-import { t } from '@lingui/core/macro';
-import { useEffect, useState } from 'react';
-import Skeleton from 'react-loading-skeleton';
-import { isDefined } from 'twenty-shared/utils';
-import { IconChevronRight } from 'twenty-ui/icon';
-import { Status } from 'twenty-ui/primitives/data-display';
-
-import { UndecoratedLink } from '@/ui/navigation/link/components/UndecoratedLink/UndecoratedLink';
-import { LightIconButton, useToast } from 'twenty-ui/components';
-import { Button } from 'twenty-ui/primitives/input';
-import { themeCssVariables } from 'twenty-ui/theme';
-import {
- EvaluateAgentTurnDocument,
- GetAgentTurnsDocument,
-} from '~/generated-metadata/graphql';
-
-const StyledTableContainer = styled.div`
- margin-top: ${themeCssVariables.spacing[3]};
-`;
-
-const StyledTableHeaderRowContainer = styled.div`
- margin-bottom: ${themeCssVariables.spacing[2]};
-`;
-
-type CoreAgentLogsTabProps = {
- agentId: string;
-};
-
-export const CoreAgentLogsTab = ({ agentId }: CoreAgentLogsTabProps) => {
- const { enqueueToast } = useToast();
- const [evaluatingTurnIds, setEvaluatingTurnIds] = useState<Set<string>>(
- new Set(),
- );
-
- const getLatestEvaluation = (evaluations: any[]) => {
- if (evaluations.length === 0) return null;
- return [...evaluations].sort(
- (a, b) =>
- new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime(),
- )[0];
- };
-
- const computeBackgroundEvaluatingTurnIds = (turnsData: any[]) => {
- const now = Date.now();
- const RECENT_TURN_THRESHOLD = 5 * 60 * 1000;
- const backgroundEvaluatingTurnIds = new Set<string>();
-
- turnsData.forEach((turn: any) => {
- const latestEvaluation = getLatestEvaluation(turn.evaluations);
- const turnAge = now - new Date(turn.createdAt).getTime();
-
- if (!isDefined(latestEvaluation) && turnAge < RECENT_TURN_THRESHOLD) {
- backgroundEvaluatingTurnIds.add(turn.id);
- }
- });
-
- return backgroundEvaluatingTurnIds;
- };
-
- const { data, loading, refetch, startPolling, stopPolling } = useQuery(
- GetAgentTurnsDocument,
- {
- variables: { agentId },
- skip: !agentId,
- },
- );
-
- useEffect(() => {
- if (data) {
- const backgroundIds = computeBackgroundEvaluatingTurnIds(
- data?.agentTurns ?? [],
- );
- if (backgroundIds.size > 0) {
- startPolling(3000);
- } else {
- stopPolling();
- }
- }
- }, [data, startPolling, stopPolling]);
-
- const turns = data?.agentTurns || [];
- const backgroundEvaluatingTurnIds = computeBackgroundEvaluatingTurnIds(turns);
-
- const [evaluateTurn, { loading: evaluating }] = useMutation(
- EvaluateAgentTurnDocument,
- {
- onCompleted: (data) => {
- const turnId = data?.evaluateAgentTurn?.turnId;
- if (isDefined(turnId)) {
- setEvaluatingTurnIds((prev) => {
- const next = new Set(prev);
- next.delete(turnId);
- return next;
- });
- }
- enqueueToast({
- variant: 'success',
- children: t`Turn evaluated successfully`,
- });
- refetch();
- },
- },
- );
-
- const handleEvaluateTurn = (turnId: string) => {
- setEvaluatingTurnIds((prev) => new Set(prev).add(turnId));
- evaluateTurn({ variables: { turnId } }).catch(() => {
- setEvaluatingTurnIds((prev) => {
- const next = new Set(prev);
- next.delete(turnId);
- return next;
- });
- enqueueToast({ variant: 'error', children: t`Failed to evaluate turn` });
- });
- };
-
- const getScoreColor = (score: number) => {
- if (score >= 80) return 'green';
- if (score >= 60) return 'orange';
- return 'red';
- };
-
- const getUserMessageInput = (messages: any[]) => {
- const userMessage = messages?.find((message) => message.role === 'user');
- if (!userMessage) return null;
-
- const textParts = userMessage.parts
- ?.filter((part: any) => part.type === 'text' && part.textContent)
- .map((part: any) => part.textContent);
-
- return textParts?.join(' ') || null;
- };
-
- if (loading) {
- return (
- <StyledTableContainer>
- <Table>
- <StyledTableHeaderRowContainer>
- <TableRow gridTemplateColumns="140px 80px 1fr 40px">
- <TableHeader>{t`Date`}</TableHeader>
- <TableHeader>{t`Score`}</TableHeader>
- <TableHeader>{t`Input`}</TableHeader>
- <TableHeader />
- </TableRow>
- </StyledTableHeaderRowContainer>
- {Array.from({ length: 3 }).map((_, index) => (
- <Skeleton height={48} borderRadius={4} key={index} />
- ))}
- </Table>
- </StyledTableContainer>
- );
- }
-
- if (turns.length === 0) {
- return (
- <EmptyState.Root>
- <AnimatedPlaceholder type="emptyTimeline" />
- <EmptyState.Content>
- <EmptyState.Title>{t`No logs yet`}</EmptyState.Title>
- <EmptyState.Description>
- {t`Agent interactions will appear here once the agent is used in conversations`}
- </EmptyState.Description>
- </EmptyState.Content>
- </EmptyState.Root>
- );
- }
-
- return (
- <StyledTableContainer>
- <Table>
- <StyledTableHeaderRowContainer>
- <TableRow gridTemplateColumns="140px 80px 1fr 40px">
- <TableHeader>{t`Date`}</TableHeader>
- <TableHeader>{t`Score`}</TableHeader>
- <TableHeader>{t`Input`}</TableHeader>
- <TableHeader />
- </TableRow>
- </StyledTableHeaderRowContainer>
- {turns.map((turn: any) => {
- const latestEvaluation = getLatestEvaluation(turn.evaluations);
- const userInput = getUserMessageInput(turn.messages);
-
- return (
- <TableRow key={turn.id} gridTemplateColumns="140px 80px 1fr 40px">
- <TableCell color={themeCssVariables.font.color.tertiary}>
- {new Date(turn.createdAt).toLocaleDateString('en-US', {
- month: 'short',
- day: 'numeric',
- hour: '2-digit',
- minute: '2-digit',
- })}
- </TableCell>
- <TableCell gap={themeCssVariables.spacing[2]}>
- {latestEvaluation ? (
- <Status
- color={getScoreColor(latestEvaluation.score)}
- >{`${latestEvaluation.score}`}</Status>
- ) : evaluatingTurnIds.has(turn.id) ||
- backgroundEvaluatingTurnIds.has(turn.id) ? (
- <Status color="blue" loading>{t`Evaluating`}</Status>
- ) : (
- <Button
- size="sm"
- onClick={() => handleEvaluateTurn(turn.id)}
- disabled={evaluating}
- variant="outline"
- >{t`Evaluate`}</Button>
- )}
- </TableCell>
- <TableCell
- overflow="hidden"
- textOverflow="ellipsis"
- whiteSpace="nowrap"
- >
- {userInput || t`No input`}
- </TableCell>
- <TableCell
- align="right"
- padding={`0 ${themeCssVariables.spacing[2]} 0 0`}
- >
- {latestEvaluation && (
- <UndecoratedLink
- to={getCoreAgentLink(agentId, { turn: turn.id })}
- >
- <LightIconButton
- title={t`View all evaluations`}
- emphasis="subtle"
- aria-label={t`View all evaluations`}
- >
- <IconChevronRight />
- </LightIconButton>
- </UndecoratedLink>
- )}
- </TableCell>
- </TableRow>
- );
- })}
- </Table>
- </StyledTableContainer>
- );
-};
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTurnDetail.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTurnDetail.tsx
deleted file mode 100644
index 06cdd4dcf55..00000000000
--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTurnDetail.tsx
+++ /dev/null
@@ -1,212 +0,0 @@
-import { getCoreAgentBreadcrumbLinks } from '@/object-core/agents/utils/getCoreAgentBreadcrumbLinks';
-import { getCoreAgentLink } from '@/object-core/agents/utils/getCoreAgentLink';
-import { AiChatAssistantMessageRenderer } from '@/ai/components/AiChatAssistantMessageRenderer';
-import { mapDBMessagesToUIMessages } from '@/ai/utils/mapDBMessagesToUIMessages';
-import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
-import { SettingsPageLayout } from '@/settings/components/layout/SettingsPageLayout';
-import { Table } from '@/ui/layout/table/components/Table';
-import { TableCell } from '@/ui/layout/table/components/TableCell';
-import { TableHeader } from '@/ui/layout/table/components/TableHeader';
-import { TableRow } from '@/ui/layout/table/components/TableRow';
-import { useQuery } from '@apollo/client/react';
-import { styled } from '@linaria/react';
-import { t } from '@lingui/core/macro';
-import Skeleton from 'react-loading-skeleton';
-import { Suspense } from 'react';
-import { Section } from 'twenty-ui/components';
-import { Status } from 'twenty-ui/primitives/data-display';
-import { themeCssVariables } from 'twenty-ui/theme';
-import {
- type AgentMessage,
- type FindOneAgentQuery,
- GetAgentTurnsDocument,
-} from '~/generated-metadata/graphql';
-
-const StyledTableContainer = styled.div`
- margin-top: ${themeCssVariables.spacing[3]};
-`;
-
-const StyledTableHeaderRowContainer = styled.div`
- margin-bottom: ${themeCssVariables.spacing[2]};
-`;
-
-const StyledMessagesContainer = styled.div`
- display: flex;
- flex-direction: column;
- gap: ${themeCssVariables.spacing[4]};
-`;
-
-const StyledMessageBubble = styled.div`
- display: flex;
- flex-direction: column;
- gap: ${themeCssVariables.spacing[1]};
-`;
-
-const StyledMessageRole = styled.div`
- color: ${themeCssVariables.font.color.tertiary};
- font-size: ${themeCssVariables.font.size.sm};
- font-weight: ${themeCssVariables.font.weight.medium};
- text-transform: uppercase;
-`;
-
-const StyledMessageContent = styled.div`
- color: ${themeCssVariables.font.color.primary};
- max-width: 100%;
-`;
-
-type CoreAgentTurnDetailProps = {
- agent: Pick<FindOneAgentQuery['findOneAgent'], 'id' | 'label'>;
- turnId: string;
-};
-
-export const CoreAgentTurnDetail = ({
- agent,
- turnId,
-}: CoreAgentTurnDetailProps) => {
- const { data, loading } = useQuery(GetAgentTurnsDocument, {
- variables: { agentId: agent.id },
- });
-
- const links = getCoreAgentBreadcrumbLinks([
- { children: agent.label, href: getCoreAgentLink(agent.id) },
- { children: t`Turn` },
- ]);
-
- const turn = data?.agentTurns?.find((t) => t.id === turnId);
-
- const getScoreColor = (score: number) => {
- if (score >= 80) return 'green';
- if (score >= 60) return 'orange';
- return 'red';
- };
-
- if (loading) {
- return (
- <SettingsPageLayout title={t`Turn Details`} links={links}>
- <SettingsPageContainer>
- <Skeleton height={200} />
- </SettingsPageContainer>
- </SettingsPageLayout>
- );
- }
-
- if (!turn) {
- return (
- <SettingsPageLayout title={t`Turn Not Found`} links={links}>
- <SettingsPageContainer>
- <div>{t`Turn not found`}</div>
- </SettingsPageContainer>
- </SettingsPageLayout>
- );
- }
-
- return (
- <SettingsPageLayout title={t`Turn Details`} links={links}>
- <SettingsPageContainer>
- <Section.Root>
- <Section.Header
- title={t`Messages`}
- description={new Date(turn.createdAt).toLocaleString('en-US', {
- dateStyle: 'medium',
- timeStyle: 'short',
- })}
- />
- {turn.messages.length > 0 ? (
- <Suspense fallback={<Skeleton height={16} width={200} />}>
- <StyledMessagesContainer>
- {mapDBMessagesToUIMessages(
- ([...turn.messages] as AgentMessage[])
- .filter((msg) => msg.parts.length > 0)
- .sort((a, b) => {
- if (a.role === 'user' && b.role === 'assistant')
- return -1;
- if (a.role === 'assistant' && b.role === 'user') return 1;
- return (
- new Date(a.createdAt).getTime() -
- new Date(b.createdAt).getTime()
- );
- }),
- ).map((message) => {
- const roleLabel =
- message.role === 'user'
- ? t`User`
- : message.role === 'system'
- ? t`System`
- : t`Assistant`;
- return (
- <StyledMessageBubble key={message.id}>
- <StyledMessageRole>{roleLabel}</StyledMessageRole>
- <StyledMessageContent>
- <AiChatAssistantMessageRenderer
- messageParts={message.parts}
- isLastMessageStreaming={false}
- />
- </StyledMessageContent>
- </StyledMessageBubble>
- );
- })}
- </StyledMessagesContainer>
- </Suspense>
- ) : (
- <div>{t`No messages found for this turn`}</div>
- )}
- </Section.Root>
-
- <Section.Root>
- <Section.Header title={t`Evaluations`} />
- {turn.evaluations.length > 0 ? (
- <StyledTableContainer>
- <Table>
- <StyledTableHeaderRowContainer>
- <TableRow gridTemplateColumns="140px 80px 1fr">
- <TableHeader>{t`Date`}</TableHeader>
- <TableHeader>{t`Score`}</TableHeader>
- <TableHeader>{t`Comment`}</TableHeader>
- </TableRow>
- </StyledTableHeaderRowContainer>
- {[...turn.evaluations]
- .sort(
- (a, b) =>
- new Date(b.createdAt).getTime() -
- new Date(a.createdAt).getTime(),
- )
- .map((evaluation) => (
- <TableRow
- key={evaluation.id}
- gridTemplateColumns="140px 80px 1fr"
- >
- <TableCell color={themeCssVariables.font.color.tertiary}>
- {new Date(evaluation.createdAt).toLocaleDateString(
- 'en-US',
- {
- month: 'short',
- day: 'numeric',
- hour: '2-digit',
- minute: '2-digit',
- },
- )}
- </TableCell>
- <TableCell gap={themeCssVariables.spacing[2]}>
- <Status
- color={getScoreColor(evaluation.score)}
- >{`${evaluation.score}`}</Status>
- </TableCell>
- <TableCell
- overflow="hidden"
- textOverflow="ellipsis"
- whiteSpace="nowrap"
- >
- {evaluation.comment || t`No comment`}
- </TableCell>
- </TableRow>
- ))}
- </Table>
- </StyledTableContainer>
- ) : (
- <div>{t`No evaluations yet for this turn`}</div>
- )}
- </Section.Root>
- </SettingsPageContainer>
- </SettingsPageLayout>
- );
-};
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/__stories__/CoreAgentEvalsTab.stories.tsx b/packages/twenty-front/src/modules/object-core/agents/components/__stories__/CoreAgentEvalsTab.stories.tsx
deleted file mode 100644
index 5b4c36f250b..00000000000
--- a/packages/twenty-front/src/modules/object-core/agents/components/__stories__/CoreAgentEvalsTab.stories.tsx
+++ /dev/null
@@ -1,119 +0,0 @@
-import { type Meta, type StoryObj } from '@storybook/react-vite';
-import { graphql, HttpResponse } from 'msw';
-import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
-import { ComponentDecorator } from 'twenty-ui/testing';
-
-import {
- type RunEvaluationInputMutation,
- type RunEvaluationInputMutationVariables,
-} from '~/generated-metadata/graphql';
-import { CoreAgentEvalsTab } from '@/object-core/agents/components/CoreAgentEvalsTab';
-import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
-import { ToastDecorator } from '~/testing/decorators/ToastDecorator';
-
-const onRunEvaluationInput = fn();
-const evaluationInput = 'Find all customers in Paris';
-let pendingEvaluation = Promise.resolve();
-let completeEvaluation = () => {};
-
-const meta: Meta<typeof CoreAgentEvalsTab> = {
- title: 'Modules/ObjectCore/Agents/CoreAgentEvalsTab',
- component: CoreAgentEvalsTab,
- decorators: [ComponentDecorator, MemoryRouterDecorator, ToastDecorator],
- args: {
- agentId: 'test-agent',
- evaluationInputs: [evaluationInput],
- onEvaluationInputsChange: fn(),
- },
- beforeEach: () => {
- onRunEvaluationInput.mockClear();
- pendingEvaluation = new Promise<void>((resolve) => {
- completeEvaluation = resolve;
- });
- return () => completeEvaluation();
- },
- parameters: {
- msw: {
- handlers: [
- graphql.mutation<
- RunEvaluationInputMutation,
- RunEvaluationInputMutationVariables
- >('RunEvaluationInput', async ({ variables }) => {
- onRunEvaluationInput(variables);
- await pendingEvaluation;
- return HttpResponse.json({
- data: {
- runEvaluationInput: {
- id: 'evaluation-turn',
- threadId: 'evaluation-thread',
- agentId: variables.agentId,
- createdAt: '2026-09-23T00:00:00.000Z',
- evaluations: [],
- },
- },
- });
- }),
- ],
- },
- },
-};
-
-export default meta;
-type Story = StoryObj<typeof CoreAgentEvalsTab>;
-
-export const RunWhilePending: Story = {
- play: async ({ canvasElement, args }) => {
- const canvas = within(canvasElement.ownerDocument.body);
- const trigger = canvas.getByRole('button', { name: 'More options' });
-
- await userEvent.click(trigger);
- await userEvent.click(canvas.getByRole('menuitem', { name: 'Run' }));
-
- await waitFor(() =>
- expect(onRunEvaluationInput).toHaveBeenCalledWith({
- agentId: args.agentId,
- input: evaluationInput,
- }),
- );
- await waitFor(() =>
- expect(canvas.queryByRole('menu')).not.toBeInTheDocument(),
- );
- await expect(
- canvas.getByRole('button', { name: 'More options' }),
- ).toHaveAttribute('aria-expanded', 'false');
- },
-};
-
-export const DeleteInput: Story = {
- play: async ({ canvasElement, args }) => {
- const canvas = within(canvasElement.ownerDocument.body);
-
- await userEvent.click(canvas.getByRole('button', { name: 'More options' }));
- await userEvent.click(canvas.getByRole('menuitem', { name: 'Delete' }));
-
- const dialog = await canvas.findByRole('dialog', {
- name: 'Delete Evaluation Input',
- });
- await userEvent.click(
- within(dialog).getByRole('button', { name: 'Delete' }),
- );
-
- await waitFor(() =>
- expect(args.onEvaluationInputsChange).toHaveBeenCalledWith([]),
- );
- },
-};
-
-export const Disabled: Story = {
- args: { disabled: true },
- play: async ({ canvasElement }) => {
- const canvas = within(canvasElement.ownerDocument.body);
- const trigger = canvas.getByRole('button', { name: 'More options' });
-
- await expect(trigger).toBeDisabled();
- await userEvent.click(trigger);
-
- await expect(canvas.queryByRole('menu')).not.toBeInTheDocument();
- await expect(onRunEvaluationInput).not.toHaveBeenCalled();
- },
-};
diff --git a/packages/twenty-front/src/modules/object-core/agents/constants/CoreAgentDetailTabs.ts b/packages/twenty-front/src/modules/object-core/agents/constants/CoreAgentDetailTabs.ts
index 60859fa0969..95f7b8e7d91 100644
--- a/packages/twenty-front/src/modules/object-core/agents/constants/CoreAgentDetailTabs.ts
+++ b/packages/twenty-front/src/modules/object-core/agents/constants/CoreAgentDetailTabs.ts
@@ -3,7 +3,5 @@ export const CORE_AGENT_DETAIL_TABS = {
TABS_IDS: {
ROLE: 'role',
SETTINGS: 'settings',
- EVALS: 'evals',
- LOGS: 'logs',
},
};
diff --git a/packages/twenty-front/src/modules/object-core/agents/hooks/__tests__/useCoreAgents.test.tsx b/packages/twenty-front/src/modules/object-core/agents/hooks/__tests__/useCoreAgents.test.tsx
index 0fa6c0cf876..b41c3bc28b1 100644
--- a/packages/twenty-front/src/modules/object-core/agents/hooks/__tests__/useCoreAgents.test.tsx
+++ b/packages/twenty-front/src/modules/object-core/agents/hooks/__tests__/useCoreAgents.test.tsx
@@ -35,7 +35,6 @@ const buildAgent = ({
isCustom: true,
isSystem,
modelConfiguration: null,
- evaluationInputs: [],
applicationId: null,
createdAt: '2026-01-01T00:00:00.000Z',
updatedAt,
diff --git a/packages/twenty-front/src/modules/object-core/agents/hooks/useCoreAgentSave.ts b/packages/twenty-front/src/modules/object-core/agents/hooks/useCoreAgentSave.ts
index 33130734211..e10d9e684bd 100644
--- a/packages/twenty-front/src/modules/object-core/agents/hooks/useCoreAgentSave.ts
+++ b/packages/twenty-front/src/modules/object-core/agents/hooks/useCoreAgentSave.ts
@@ -74,7 +74,6 @@ export const useCoreAgentSave = ({
prompt: formValues.prompt,
modelConfiguration: formValues.modelConfiguration,
responseFormat: formValues.responseFormat,
- evaluationInputs: formValues.evaluationInputs,
});
const autoSave = useDebouncedCallback(async () => {
diff --git a/packages/twenty-front/src/modules/object-core/agents/utils/__tests__/getCoreAgentInitialFormValues.test.ts b/packages/twenty-front/src/modules/object-core/agents/utils/__tests__/getCoreAgentInitialFormValues.test.ts
index 86c34ecacc7..542677cd630 100644
--- a/packages/twenty-front/src/modules/object-core/agents/utils/__tests__/getCoreAgentInitialFormValues.test.ts
+++ b/packages/twenty-front/src/modules/object-core/agents/utils/__tests__/getCoreAgentInitialFormValues.test.ts
@@ -14,7 +14,6 @@ const agent = {
isCustom: true,
isSystem: false,
modelConfiguration: { webSearch: { enabled: true } },
- evaluationInputs: ['Is Acme a good fit?'],
applicationId: 'application-id',
createdAt: '2026-01-01T00:00:00.000Z',
updatedAt: '2026-01-01T00:00:00.000Z',
@@ -33,7 +32,6 @@ describe('getCoreAgentInitialFormValues', () => {
isCustom: true,
modelConfiguration: { webSearch: { enabled: true } },
responseFormat: { type: 'json', schema: {} },
- evaluationInputs: ['Is Acme a good fit?'],
});
});
diff --git a/packages/twenty-front/src/modules/object-core/agents/utils/getCoreAgentInitialFormValues.ts b/packages/twenty-front/src/modules/object-core/agents/utils/getCoreAgentInitialFormValues.ts
index 65709549178..5e802c1de00 100644
--- a/packages/twenty-front/src/modules/object-core/agents/utils/getCoreAgentInitialFormValues.ts
+++ b/packages/twenty-front/src/modules/object-core/agents/utils/getCoreAgentInitialFormValues.ts
@@ -16,6 +16,5 @@ export const getCoreAgentInitialFormValues = (
modelConfiguration: agent.modelConfiguration || {},
// TODO: Fallback can be removed once all text response format agents are migrated.
responseFormat: agent.responseFormat || { type: 'text' },
- evaluationInputs: agent.evaluationInputs ?? [],
};
};
diff --git a/packages/twenty-front/src/modules/object-core/agents/utils/getCoreAgentLink.ts b/packages/twenty-front/src/modules/object-core/agents/utils/getCoreAgentLink.ts
index 2222a8b55f1..55221b48e36 100644
--- a/packages/twenty-front/src/modules/object-core/agents/utils/getCoreAgentLink.ts
+++ b/packages/twenty-front/src/modules/object-core/agents/utils/getCoreAgentLink.ts
@@ -1,7 +1,5 @@
import { AppPath } from 'twenty-shared/types';
import { getAppPath } from 'twenty-shared/utils';
-export const getCoreAgentLink = (
- agentId: string,
- queryParams?: { turn: string },
-) => getAppPath(AppPath.AgentShowPage, { agentId }, queryParams);
+export const getCoreAgentLink = (agentId: string) =>
+ getAppPath(AppPath.AgentShowPage, { agentId });
diff --git a/packages/twenty-front/src/modules/object-core/agents/validation-schemas/coreAgentFormSchema.ts b/packages/twenty-front/src/modules/object-core/agents/validation-schemas/coreAgentFormSchema.ts
index 17199f53e28..cda906f9f77 100644
--- a/packages/twenty-front/src/modules/object-core/agents/validation-schemas/coreAgentFormSchema.ts
+++ b/packages/twenty-front/src/modules/object-core/agents/validation-schemas/coreAgentFormSchema.ts
@@ -33,7 +33,6 @@ export const coreAgentFormSchema = z.object({
schema: z.custom<AgentResponseSchema>().optional(),
})
.optional(),
- evaluationInputs: z.array(z.string()).default([]),
});
export type CoreAgentFormValues = z.infer<typeof coreAgentFormSchema>;
diff --git a/packages/twenty-front/src/pages/object-core/AgentCoreShowPage.tsx b/packages/twenty-front/src/pages/object-core/AgentCoreShowPage.tsx
index e300ced3151..e79bfe27589 100644
--- a/packages/twenty-front/src/pages/object-core/AgentCoreShowPage.tsx
+++ b/packages/twenty-front/src/pages/object-core/AgentCoreShowPage.tsx
@@ -1,6 +1,6 @@
import { useQuery } from '@apollo/client/react';
import { t } from '@lingui/core/macro';
-import { useParams, useSearchParams } from 'react-router-dom';
+import { useParams } from 'react-router-dom';
import { isDefined } from 'twenty-shared/utils';
import { Section } from 'twenty-ui/components';
import { useIcons } from 'twenty-ui/icon';
@@ -12,15 +12,12 @@ import { SettingsPageLayout } from '@/settings/components/layout/SettingsPageLay
import { FindOneAgentDocument } from '~/generated-metadata/graphql';
import { CoreAgentDetailSkeletonLoader } from '@/object-core/agents/components/CoreAgentDetailSkeletonLoader';
import { CoreAgentFormContent } from '@/object-core/agents/components/CoreAgentFormContent';
-import { CoreAgentTurnDetail } from '@/object-core/agents/components/CoreAgentTurnDetail';
import { useNavigateToNotFoundOnLoadFailure } from '~/pages/settings/ai/hooks/useNavigateToNotFoundOnLoadFailure';
export const AgentCoreShowPage = () => {
const { agentId = '' } = useParams<{ agentId: string }>();
const theme = useTheme();
const { getIcon } = useIcons();
- const [searchParams] = useSearchParams();
- const turnId = searchParams.get('turn');
const { data, loading, error } = useQuery(FindOneAgentDocument, {
variables: { id: agentId },
@@ -59,9 +56,5 @@ export const AgentCoreShowPage = () => {
);
}
- if (isDefined(turnId)) {
- return <CoreAgentTurnDetail agent={agent} turnId={turnId} />;
- }
-
return <CoreAgentFormContent key={agent.id} agent={agent} />;
};
diff --git a/packages/twenty-server/src/database/commands/agent-history/__tests__/agent-history-migration.postgres.spec.ts b/packages/twenty-server/src/database/commands/agent-history/__tests__/agent-history-migration.postgres.spec.ts
index 6f1a21b468a..5aaa8c646c2 100644
--- a/packages/twenty-server/src/database/commands/agent-history/__tests__/agent-history-migration.postgres.spec.ts
+++ b/packages/twenty-server/src/database/commands/agent-history/__tests__/agent-history-migration.postgres.spec.ts
@@ -42,7 +42,7 @@ import { isDefined } from 'twenty-shared/utils';
import { AgentHistoryMigrationStateService } from 'src/database/commands/agent-history/agent-history-migration-state.service';
import { AgentHistoryMigrationService } from 'src/database/commands/agent-history/agent-history-migration.service';
-import { AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
+import { ACTIVE_AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
import { AGENT_HISTORY_TEST_SCHEMA } from 'src/database/commands/agent-history/__tests__/agent-history-test-schema.constant';
import { AgentHistoryUpgradeStorageService } from 'src/database/commands/agent-history/agent-history-upgrade-storage.service';
import { AGENT_HISTORY_MIGRATION_STORAGE_KEY } from 'src/database/commands/agent-history/agent-history-migration-storage-key.constant';
@@ -310,7 +310,7 @@ const SCHEMA = getWorkspaceSchemaName(WORKSPACE_ID);
const runner = dataSource.createQueryRunner();
await runner.connect();
try {
- for (const table of AGENT_HISTORY_TABLES) {
+ for (const table of ACTIVE_AGENT_HISTORY_TABLES) {
const object = Object.values(
metadata.flatObjectMetadataMaps.byUniversalIdentifier,
)
@@ -343,7 +343,7 @@ const SCHEMA = getWorkspaceSchemaName(WORKSPACE_ID);
.filter(isDefined)
.find((object) => object.id === index.objectMetadataId)!;
if (
- !AGENT_HISTORY_TABLES.some(
+ !ACTIVE_AGENT_HISTORY_TABLES.some(
(table) => table.name === object.nameSingular,
)
)
@@ -368,7 +368,6 @@ const SCHEMA = getWorkspaceSchemaName(WORKSPACE_ID);
['agentMessage', 'threadId', 'agentChatThread'],
['agentMessage', 'turnId', 'agentTurn'],
['agentMessagePart', 'messageId', 'agentMessage'],
- ['agentTurnEvaluation', 'turnId', 'agentTurn'],
]) {
await runner.query(
`ALTER TABLE "${SCHEMA}"."${child}" ADD FOREIGN KEY ("${column}") REFERENCES "${SCHEMA}"."${parent}" (id) ON DELETE CASCADE`,
@@ -499,7 +498,7 @@ const SCHEMA = getWorkspaceSchemaName(WORKSPACE_ID);
}
});
- it('copies all five tables, exact credits and archive state before changing the route', async () => {
+ it('copies every history table, exact credits and archive state before changing the route', async () => {
await migration.migrate({
workspaceId: WORKSPACE_ID,
target: 'workspace',
@@ -511,7 +510,7 @@ const SCHEMA = getWorkspaceSchemaName(WORKSPACE_ID);
expect(rows[0].totalInputCredits).toBe('9007199254740993');
expect(rows[0].archivedAt).toEqual(new Date('2026-01-01T00:00:00.000Z'));
expect(await readRoute()).toBe('workspace');
- for (const table of AGENT_HISTORY_TABLES) {
+ for (const table of ACTIVE_AGENT_HISTORY_TABLES) {
expect(
(
await dataSource.query(
@@ -583,7 +582,6 @@ const SCHEMA = getWorkspaceSchemaName(WORKSPACE_ID);
await dataSource.query(
`UPDATE "${SCHEMA}"."agentChatThread" SET title = 'Updated after cutover'`,
);
- await dataSource.query(`DELETE FROM "${SCHEMA}"."agentTurnEvaluation"`);
await migration.migrate({
workspaceId: WORKSPACE_ID,
target: 'core',
diff --git a/packages/twenty-server/src/database/commands/agent-history/agent-history-migration-data.service.ts b/packages/twenty-server/src/database/commands/agent-history/agent-history-migration-data.service.ts
index 8c7f46cabe7..daa39872a80 100644
--- a/packages/twenty-server/src/database/commands/agent-history/agent-history-migration-data.service.ts
+++ b/packages/twenty-server/src/database/commands/agent-history/agent-history-migration-data.service.ts
@@ -2,7 +2,11 @@ import { Injectable } from '@nestjs/common';
import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';
import { type QueryRunner } from 'typeorm';
-import { AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
+import {
+ AGENT_HISTORY_TABLES,
+ ACTIVE_AGENT_HISTORY_TABLES,
+ type ActiveAgentHistoryTable,
+} from 'src/database/commands/agent-history/agent-history-tables.constant';
import { getAgentHistoryColumn } from 'src/database/commands/agent-history/utils/get-agent-history-column.util';
import { getAgentHistoryMigrationColumns } from 'src/database/commands/agent-history/utils/get-agent-history-migration-columns.util';
import { getAgentHistoryTable } from 'src/database/commands/agent-history/utils/get-agent-history-table.util';
@@ -10,7 +14,7 @@ import { type AgentHistoryMigrationState } from 'src/database/commands/agent-his
import { escapeIdentifier } from 'src/engine/workspace-manager/workspace-migration/utils/remove-sql-injection.util';
type Storage = AgentHistoryMigrationState['storage'];
-type HistoryTable = (typeof AGENT_HISTORY_TABLES)[number];
+type HistoryTable = ActiveAgentHistoryTable;
@Injectable()
export class AgentHistoryMigrationDataService {
@@ -23,7 +27,10 @@ export class AgentHistoryMigrationDataService {
workspaceId: string;
storage: Storage;
}): Promise<void> {
- for (const table of [...AGENT_HISTORY_TABLES].reverse()) {
+ const tables =
+ storage === 'core' ? AGENT_HISTORY_TABLES : ACTIVE_AGENT_HISTORY_TABLES;
+
+ for (const table of [...tables].reverse()) {
let rows: { id: string }[];
do {
rows = await runner.query(
diff --git a/packages/twenty-server/src/database/commands/agent-history/agent-history-migration-validation.service.ts b/packages/twenty-server/src/database/commands/agent-history/agent-history-migration-validation.service.ts
index 4d8853fa787..b33ba817876 100644
--- a/packages/twenty-server/src/database/commands/agent-history/agent-history-migration-validation.service.ts
+++ b/packages/twenty-server/src/database/commands/agent-history/agent-history-migration-validation.service.ts
@@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
import { isNonEmptyArray } from 'twenty-shared/utils';
import { type QueryRunner } from 'typeorm';
-import { AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
+import { ACTIVE_AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
import { getAgentHistoryColumn } from 'src/database/commands/agent-history/utils/get-agent-history-column.util';
import { getAgentHistoryMigrationColumns } from 'src/database/commands/agent-history/utils/get-agent-history-migration-columns.util';
import { getAgentHistoryTable } from 'src/database/commands/agent-history/utils/get-agent-history-table.util';
@@ -59,7 +59,7 @@ export class AgentHistoryMigrationValidationService {
runner: QueryRunner;
workspaceId: string;
}): Promise<void> {
- for (const table of AGENT_HISTORY_TABLES) {
+ for (const table of ACTIVE_AGENT_HISTORY_TABLES) {
const [{ collision }] = await runner.query(
`SELECT EXISTS (SELECT 1 FROM ${getAgentHistoryTable({ workspaceId, storage: 'workspace', name: table.name })} source JOIN core.${escapeIdentifier(table.name)} target USING (id) WHERE target."workspaceId" <> $1) AS collision`,
[workspaceId],
@@ -99,7 +99,7 @@ export class AgentHistoryMigrationValidationService {
runner: QueryRunner;
workspaceId: string;
}): Promise<void> {
- for (const table of AGENT_HISTORY_TABLES) {
+ for (const table of ACTIVE_AGENT_HISTORY_TABLES) {
const coreColumns = await getAgentHistoryMigrationColumns({
runner,
table,
@@ -141,7 +141,7 @@ export class AgentHistoryMigrationValidationService {
runner: QueryRunner;
workspaceId: string;
}): Promise<void> {
- for (const table of AGENT_HISTORY_TABLES) {
+ for (const table of ACTIVE_AGENT_HISTORY_TABLES) {
const rows: { column_name: string }[] = await runner.query(
'SELECT column_name FROM information_schema.columns WHERE table_schema = $1 AND table_name = $2',
['core', table.name],
@@ -251,7 +251,6 @@ export class AgentHistoryMigrationValidationService {
['agentMessage', 'threadId', 'agentChatThread'],
['agentMessage', 'turnId', 'agentTurn'],
['agentMessagePart', 'messageId', 'agentMessage'],
- ['agentTurnEvaluation', 'turnId', 'agentTurn'],
]) {
const [{ invalid }]: { invalid: boolean }[] = await runner.query(
`SELECT EXISTS (
diff --git a/packages/twenty-server/src/database/commands/agent-history/agent-history-migration.service.ts b/packages/twenty-server/src/database/commands/agent-history/agent-history-migration.service.ts
index 05290a6c4a8..b62366d0468 100644
--- a/packages/twenty-server/src/database/commands/agent-history/agent-history-migration.service.ts
+++ b/packages/twenty-server/src/database/commands/agent-history/agent-history-migration.service.ts
@@ -5,7 +5,11 @@ import { DataSource, type QueryRunner } from 'typeorm';
import { AgentHistoryMigrationDataService } from 'src/database/commands/agent-history/agent-history-migration-data.service';
import { AgentHistoryMigrationValidationService } from 'src/database/commands/agent-history/agent-history-migration-validation.service';
-import { AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
+import {
+ AGENT_HISTORY_TABLES,
+ ACTIVE_AGENT_HISTORY_TABLES,
+ isActiveAgentHistoryTable,
+} from 'src/database/commands/agent-history/agent-history-tables.constant';
import { getAgentHistoryTable } from 'src/database/commands/agent-history/utils/get-agent-history-table.util';
import { AGENT_HISTORY_MIGRATION_STORAGE_KEY } from 'src/database/commands/agent-history/agent-history-migration-storage-key.constant';
import { AgentHistoryMigrationStateService } from 'src/database/commands/agent-history/agent-history-migration-state.service';
@@ -161,15 +165,17 @@ export class AgentHistoryMigrationService {
throw new Error('Migration state changed unexpectedly');
}
const table = AGENT_HISTORY_TABLES[progress.tableIndex];
- const ids = await this.dataService.copyBatch({
- runner,
- workspaceId,
- table,
- source: current.storage,
- target,
- lastId: progress.lastId,
- batchSize,
- });
+ const ids = isActiveAgentHistoryTable(table)
+ ? await this.dataService.copyBatch({
+ runner,
+ workspaceId,
+ table,
+ source: current.storage,
+ target,
+ lastId: progress.lastId,
+ batchSize,
+ })
+ : [];
const next: AgentHistoryMigrationState = {
...current,
migration: {
@@ -314,7 +320,7 @@ export class AgentHistoryMigrationService {
workspaceId,
storage: state.storage,
});
- for (const table of AGENT_HISTORY_TABLES) {
+ for (const table of ACTIVE_AGENT_HISTORY_TABLES) {
const [{ count }] = await runner.query(
`SELECT count(*) FROM ${getAgentHistoryTable({ workspaceId, storage: state.storage, name: table.name })} ${state.storage === 'core' ? 'WHERE "workspaceId" = $1' : ''}`,
state.storage === 'core' ? [workspaceId] : [],
diff --git a/packages/twenty-server/src/database/commands/agent-history/agent-history-tables.constant.ts b/packages/twenty-server/src/database/commands/agent-history/agent-history-tables.constant.ts
index 55fb6322563..b64e945ad70 100644
--- a/packages/twenty-server/src/database/commands/agent-history/agent-history-tables.constant.ts
+++ b/packages/twenty-server/src/database/commands/agent-history/agent-history-tables.constant.ts
@@ -77,3 +77,21 @@ export const AGENT_HISTORY_TABLES = [
columns: ['id', 'turnId', 'score', 'comment', 'createdAt'],
},
] as const;
+
+type AgentHistoryTable = (typeof AGENT_HISTORY_TABLES)[number];
+
+// Turn evaluations were removed after 2.42 shipped. Their entry keeps the cursor
+// order, but nothing is copied to workspace storage and their core rows go with
+// the core tables.
+export type ActiveAgentHistoryTable = Exclude<
+ AgentHistoryTable,
+ { name: 'agentTurnEvaluation' }
+>;
+
+export const isActiveAgentHistoryTable = (
+ table: AgentHistoryTable,
+): table is ActiveAgentHistoryTable => table.name !== 'agentTurnEvaluation';
+
+export const ACTIVE_AGENT_HISTORY_TABLES = AGENT_HISTORY_TABLES.filter(
+ isActiveAgentHistoryTable,
+);
diff --git a/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts b/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts
index 5bc08c4c446..e0d4ff98f91 100644
--- a/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts
+++ b/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts
@@ -17,7 +17,6 @@ const HISTORY_IDENTIFIERS: string[] = [
STANDARD_OBJECTS.agentTurn.universalIdentifier,
STANDARD_OBJECTS.agentMessage.universalIdentifier,
STANDARD_OBJECTS.agentMessagePart.universalIdentifier,
- STANDARD_OBJECTS.agentTurnEvaluation.universalIdentifier,
];
// A workspace about to be migrated: every other standard object is installed.
diff --git a/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts b/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts
index 63e3be7cf84..b1a2ee50fd4 100644
--- a/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts
+++ b/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts
@@ -2,7 +2,7 @@ import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
import { MetadataReadability, MetadataWritability } from 'twenty-shared/types';
import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';
-import { AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
+import { ACTIVE_AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
import { type AllFlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/all-flat-entity-maps.type';
type AgentHistorySchemaMaps = Pick<
@@ -18,7 +18,7 @@ export const getAgentHistorySchemaAdditions = ({
standard: AgentHistorySchemaMaps;
}) => {
const objectIdentifiers = new Set<string>(
- AGENT_HISTORY_TABLES.map(
+ ACTIVE_AGENT_HISTORY_TABLES.map(
({ name }) => STANDARD_OBJECTS[name].universalIdentifier,
),
);
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791216099453-drop-agent-evaluation-inputs.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791216099453-drop-agent-evaluation-inputs.ts
new file mode 100644
index 00000000000..8f9729b1472
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791216099453-drop-agent-evaluation-inputs.ts
@@ -0,0 +1,19 @@
+import { QueryRunner } from 'typeorm';
+
+import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-instance-command.decorator';
+import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
+
+@RegisteredInstanceCommand('2.46.0', 1791216099453)
+export class DropAgentEvaluationInputsFastInstanceCommand implements FastInstanceCommand {
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `ALTER TABLE "core"."agent" DROP COLUMN IF EXISTS "evaluationInputs"`,
+ );
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(
+ `ALTER TABLE "core"."agent" ADD COLUMN IF NOT EXISTS "evaluationInputs" text array NOT NULL DEFAULT '{}'`,
+ );
+ }
+}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-upgrade-version-command.module.ts
index 32f7520d3f0..38e1624062e 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-upgrade-version-command.module.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-upgrade-version-command.module.ts
@@ -8,6 +8,7 @@ import { AddAiChatInboxCommandMenuItemsCommand } from 'src/database/commands/upg
import { AllowAiChatInboxCommandsOnSeveralChatsCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791009973891-allow-ai-chat-inbox-commands-on-several-chats.command';
import { MakeAgentChatThreadParticipantsPrivateCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791056679663-make-agent-chat-thread-participants-private.command';
import { DropWorkflowRunFromChatThreadsCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791208395308-drop-workflow-run-from-chat-threads.command';
+import { DropAgentTurnEvaluationObjectCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791216273979-drop-agent-turn-evaluation-object.command';
import { BackfillAgentAndWorkflowIsSystemCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791130332894-backfill-agent-and-workflow-is-system.command';
import { ScheduleAgentChatThreadSnoozeEndsCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791093059050-schedule-agent-chat-thread-snooze-ends.command';
import { UnpinNewAiChatCommandMenuItemCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1790942019634-unpin-new-ai-chat-command-menu-item.command';
@@ -35,6 +36,7 @@ import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace
BackfillAgentAndWorkflowIsSystemCommand,
TurnHiddenAgentMessagesIntoSystemMessagesCommand,
DropWorkflowRunFromChatThreadsCommand,
+ DropAgentTurnEvaluationObjectCommand,
],
})
export class V2_46_UpgradeVersionCommandModule {}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791216273979-drop-agent-turn-evaluation-object.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791216273979-drop-agent-turn-evaluation-object.command.ts
new file mode 100644
index 00000000000..fdfeea44e2b
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791216273979-drop-agent-turn-evaluation-object.command.ts
@@ -0,0 +1,123 @@
+import { Command } from 'nest-commander';
+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 { 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 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 { WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service';
+
+// Kept as literals because the standard definitions no longer include them.
+const AGENT_TURN_EVALUATION_OBJECT_UNIVERSAL_IDENTIFIER =
+ '73741409-7835-426f-8425-9de13af22302';
+const AGENT_TURN_EVALUATIONS_FIELD_UNIVERSAL_IDENTIFIER =
+ '282b4815-9c5e-4897-8f9a-a4587af6b0e2';
+
+@RegisteredWorkspaceCommand('2.46.0', 1791216273979)
+@Command({
+ name: 'upgrade:2-46:drop-agent-turn-evaluation-object',
+ description:
+ 'Drop the agentTurnEvaluation standard object now that agent evaluations are removed',
+})
+export class DropAgentTurnEvaluationObjectCommand extends ProvisionedWorkspaceCommandRunner {
+ constructor(
+ protected readonly workspaceIteratorService: WorkspaceIteratorService,
+ private readonly applicationService: ApplicationService,
+ private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService,
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ ) {
+ super(workspaceIteratorService);
+ }
+
+ override async runOnWorkspace({
+ workspaceId,
+ options,
+ }: RunOnWorkspaceArgs): Promise<void> {
+ const { flatObjectMetadataMaps, flatFieldMetadataMaps } =
+ await this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'flatObjectMetadataMaps',
+ 'flatFieldMetadataMaps',
+ ]);
+
+ const evaluationObject =
+ findFlatEntityByUniversalIdentifier<FlatObjectMetadata>({
+ flatEntityMaps: flatObjectMetadataMaps,
+ universalIdentifier: AGENT_TURN_EVALUATION_OBJECT_UNIVERSAL_IDENTIFIER,
+ });
+ const evaluationsField =
+ findFlatEntityByUniversalIdentifier<FlatFieldMetadata>({
+ flatEntityMaps: flatFieldMetadataMaps,
+ universalIdentifier: AGENT_TURN_EVALUATIONS_FIELD_UNIVERSAL_IDENTIFIER,
+ });
+
+ if (!isDefined(evaluationObject) && !isDefined(evaluationsField)) {
+ this.logger.log(
+ `agentTurnEvaluation object already absent for workspace ${workspaceId}, skipping`,
+ );
+
+ return;
+ }
+
+ if (options.dryRun ?? false) {
+ this.logger.log(
+ `[DRY RUN] Would delete the agentTurnEvaluation object and the agentTurn evaluations field for workspace ${workspaceId}`,
+ );
+
+ return;
+ }
+
+ const { twentyStandardFlatApplication } =
+ await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
+ { workspaceId },
+ );
+
+ const result =
+ await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunLegacyWorkspaceMigration(
+ {
+ isSystemBuild: true,
+ allFlatEntityOperationByMetadataName: {
+ ...(isDefined(evaluationObject)
+ ? {
+ objectMetadata: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: [evaluationObject],
+ flatEntityToUpdate: [],
+ },
+ }
+ : {}),
+ ...(isDefined(evaluationsField)
+ ? {
+ fieldMetadata: {
+ flatEntityToCreate: [],
+ flatEntityToDelete: [evaluationsField],
+ flatEntityToUpdate: [],
+ },
+ }
+ : {}),
+ },
+ workspaceId,
+ applicationUniversalIdentifier:
+ twentyStandardFlatApplication.universalIdentifier,
+ },
+ );
+
+ if (result.status === 'fail') {
+ this.logger.error(
+ `Failed to delete the agentTurnEvaluation object:\n${JSON.stringify(result, null, 2)}`,
+ );
+
+ throw new Error(
+ `Failed to delete the agentTurnEvaluation object for workspace ${workspaceId}`,
+ );
+ }
+
+ this.logger.log(
+ `Deleted the agentTurnEvaluation object for workspace ${workspaceId}`,
+ );
+ }
+}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts
index e3f9b03de8f..98ec72fb013 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/instance-commands.constant.ts
@@ -224,6 +224,7 @@ import { CreateWorkflowStepWaitTableFastInstanceCommand } from 'src/database/com
import { DropCoreAgentHistoryTablesFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-47/2-47-instance-command-fast-1791094130961-drop-core-agent-history-tables';
import { RenameUsageLimitMeterToUnitFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791186790123-rename-usage-limit-meter-to-unit';
import { AddUpgradeMigrationWorkspaceIdCreatedAtIndexFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791215192958-add-upgrade-migration-workspace-id-created-at-index';
+import { DropAgentEvaluationInputsFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-instance-command-fast-1791216099453-drop-agent-evaluation-inputs';
export const INSTANCE_COMMANDS = [
AddViewFieldGroupIdIndexOnViewFieldFastInstanceCommand,
@@ -450,4 +451,5 @@ export const INSTANCE_COMMANDS = [
DropCoreAgentHistoryTablesFastInstanceCommand,
RenameUsageLimitMeterToUnitFastInstanceCommand,
AddUpgradeMigrationWorkspaceIdCreatedAtIndexFastInstanceCommand,
+ DropAgentEvaluationInputsFastInstanceCommand,
];
diff --git a/packages/twenty-server/src/engine/core-modules/application/utils/from-agent-manifest-to-universal-flat-agent.util.ts b/packages/twenty-server/src/engine/core-modules/application/utils/from-agent-manifest-to-universal-flat-agent.util.ts
index 8c0e2eea945..9955ff48e55 100644
--- a/packages/twenty-server/src/engine/core-modules/application/utils/from-agent-manifest-to-universal-flat-agent.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/utils/from-agent-manifest-to-universal-flat-agent.util.ts
@@ -26,7 +26,6 @@ export const fromAgentManifestToUniversalFlatAgent = ({
AUTO_SELECT_WORKSPACE_DEFAULT_MODEL_ID,
responseFormat: agentManifest.responseFormat ?? { type: 'text' },
modelConfiguration: null,
- evaluationInputs: [],
isCustom: false,
isSystem: true,
createdAt: now,
diff --git a/packages/twenty-server/src/engine/core-modules/message-queue/jobs.module.ts b/packages/twenty-server/src/engine/core-modules/message-queue/jobs.module.ts
index 3f3656ec02b..26ff1bc0917 100644
--- a/packages/twenty-server/src/engine/core-modules/message-queue/jobs.module.ts
+++ b/packages/twenty-server/src/engine/core-modules/message-queue/jobs.module.ts
@@ -52,7 +52,6 @@ import { HandleWorkspaceMemberDeletedJob } from 'src/engine/core-modules/workspa
import { WorkspaceDeletionApplicationUninstallJob } from 'src/engine/core-modules/workspace/jobs/workspace-deletion-application-uninstall.job';
import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
import { WorkspaceModule } from 'src/engine/core-modules/workspace/workspace.module';
-import { AiAgentMonitorModule } from 'src/engine/metadata-modules/ai/ai-agent-monitor/ai-agent-monitor.module';
import { AiChatModule } from 'src/engine/metadata-modules/ai/ai-chat/ai-chat.module';
import { LogicFunctionPrebuiltWarmUpModule } from 'src/engine/core-modules/logic-function/logic-function-prebuilt-warm-up/logic-function-prebuilt-warm-up.module';
import { WarmUpApplicationLogicFunctionsJob } from 'src/engine/core-modules/logic-function/logic-function-prebuilt-warm-up/jobs/warm-up-application-logic-functions.job';
@@ -110,7 +109,6 @@ import { WorkflowModule } from 'src/modules/workflow/workflow.module';
WorkspaceCacheModule,
SubscriptionsModule,
EventLogIngestionModule,
- AiAgentMonitorModule,
AiChatModule,
LogicFunctionModule,
LogicFunctionPrebuiltWarmUpModule,
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-turn.dto.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-turn.dto.ts
deleted file mode 100644
index 70dea7ee604..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-turn.dto.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { Field, ObjectType } from '@nestjs/graphql';
-
-import { IsDateString } from 'class-validator';
-
-import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
-import { AgentMessageDTO } from 'src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-message.dto';
-import { AgentTurnEvaluationDTO } from 'src/engine/metadata-modules/ai/ai-agent-monitor/dtos/agent-turn-evaluation.dto';
-
-@ObjectType('AgentTurn')
-export class AgentTurnDTO {
- @Field(() => UUIDScalarType)
- id: string;
-
- @Field(() => UUIDScalarType)
- threadId: string;
-
- @Field(() => UUIDScalarType, { nullable: true })
- agentId: string | null;
-
- @Field(() => [AgentTurnEvaluationDTO])
- evaluations: AgentTurnEvaluationDTO[];
-
- @Field(() => [AgentMessageDTO])
- messages: AgentMessageDTO[];
-
- @IsDateString()
- @Field()
- createdAt: Date;
-}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/ai-agent-monitor.module.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/ai-agent-monitor.module.ts
deleted file mode 100644
index 954f600cdfb..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/ai-agent-monitor.module.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache.module';
-import { AgentHistoryModule } from 'src/engine/metadata-modules/ai/ai-history/ai-history.module';
-import { Module } from '@nestjs/common';
-import { TypeOrmModule } from '@nestjs/typeorm';
-
-import { AiAgentExecutionModule } from 'src/engine/metadata-modules/ai/ai-agent-execution/ai-agent-execution.module';
-import { AiAgentModule } from 'src/engine/metadata-modules/ai/ai-agent/ai-agent.module';
-import { AgentEntity } from 'src/engine/metadata-modules/ai/ai-agent/entities/agent.entity';
-import { AiChatModule } from 'src/engine/metadata-modules/ai/ai-chat/ai-chat.module';
-import { AiModelsModule } from 'src/engine/metadata-modules/ai/ai-models/ai-models.module';
-import { PermissionsModule } from 'src/engine/metadata-modules/permissions/permissions.module';
-import { provideWorkspaceScopedRepository } from 'src/engine/twenty-orm/workspace-scoped-repository/provide-workspace-scoped-repository';
-import { EvaluateAgentTurnJob } from './jobs/evaluate-agent-turn.job';
-import { RunEvaluationInputJob } from './jobs/run-evaluation-input.job';
-import { AgentTurnResolver } from './resolvers/agent-turn.resolver';
-import { AgentTurnGraderService } from './services/agent-turn-grader.service';
-
-@Module({
- imports: [
- WorkspaceCacheModule,
- AgentHistoryModule,
- TypeOrmModule.forFeature([AgentEntity]),
- AiAgentModule,
- AiAgentExecutionModule,
- AiChatModule,
- AiModelsModule,
- PermissionsModule,
- ],
- providers: [
- AgentTurnGraderService,
- AgentTurnResolver,
- EvaluateAgentTurnJob,
- RunEvaluationInputJob,
- provideWorkspaceScopedRepository(AgentEntity),
- ],
- exports: [AgentTurnGraderService],
-})
-export class AiAgentMonitorModule {}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/dtos/agent-turn-evaluation.dto.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/dtos/agent-turn-evaluation.dto.ts
deleted file mode 100644
index 125b10df421..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/dtos/agent-turn-evaluation.dto.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { Field, Int, ObjectType } from '@nestjs/graphql';
-
-import { IsDateString } from 'class-validator';
-
-import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
-
-@ObjectType('AgentTurnEvaluation')
-export class AgentTurnEvaluationDTO {
- @Field(() => UUIDScalarType)
- id: string;
-
- @Field(() => UUIDScalarType)
- turnId: string;
-
- @Field(() => Int)
- score: number;
-
- @Field(() => String, { nullable: true })
- comment: string | null;
-
- @IsDateString()
- @Field()
- createdAt: Date;
-}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/jobs/evaluate-agent-turn.job.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/jobs/evaluate-agent-turn.job.ts
deleted file mode 100644
index 1d6aa91ce3a..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/jobs/evaluate-agent-turn.job.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Logger } from '@nestjs/common';
-
-import { Process } from 'src/engine/core-modules/message-queue/decorators/process.decorator';
-import { Processor } from 'src/engine/core-modules/message-queue/decorators/processor.decorator';
-import { MessageQueue } from 'src/engine/core-modules/message-queue/message-queue.constants';
-import { AgentTurnGraderService } from 'src/engine/metadata-modules/ai/ai-agent-monitor/services/agent-turn-grader.service';
-
-export type EvaluateAgentTurnJobData = {
- turnId: string;
- workspaceId: string;
-};
-
-@Processor(MessageQueue.aiQueue)
-export class EvaluateAgentTurnJob {
- private readonly logger = new Logger(EvaluateAgentTurnJob.name);
-
- constructor(private readonly graderService: AgentTurnGraderService) {}
-
- @Process(EvaluateAgentTurnJob.name)
- async handle(data: EvaluateAgentTurnJobData): Promise<void> {
- if (!data.turnId) {
- throw new Error('Turn ID is required');
- }
-
- if (!data.workspaceId) {
- throw new Error('Workspace ID is required');
- }
-
- const evaluation = await this.graderService.evaluateTurn({
- turnId: data.turnId,
- workspaceId: data.workspaceId,
- });
-
- this.logger.log(
- `Evaluation completed for turn ${data.turnId}: score=${evaluation.score}`,
- );
- }
-}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/jobs/run-evaluation-input.job.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/jobs/run-evaluation-input.job.ts
deleted file mode 100644
index f27dae5dd1c..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/jobs/run-evaluation-input.job.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-import { Logger } from '@nestjs/common';
-
-import { InjectMessageQueue } from 'src/engine/core-modules/message-queue/decorators/message-queue.decorator';
-import { Process } from 'src/engine/core-modules/message-queue/decorators/process.decorator';
-import { Processor } from 'src/engine/core-modules/message-queue/decorators/processor.decorator';
-import { MessageQueue } from 'src/engine/core-modules/message-queue/message-queue.constants';
-import { MessageQueueService } from 'src/engine/core-modules/message-queue/services/message-queue.service';
-import { AgentAsyncExecutorService } from 'src/engine/metadata-modules/ai/ai-agent-execution/services/agent-async-executor.service';
-import { AGENT_RUN_BASE_SYSTEM_PROMPT } from 'src/engine/metadata-modules/ai/ai-agent/constants/agent-run-base-system-prompt.const';
-import { AgentEntity } from 'src/engine/metadata-modules/ai/ai-agent/entities/agent.entity';
-import { AgentChatService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat.service';
-import { InjectWorkspaceScopedRepository } from 'src/engine/twenty-orm/workspace-scoped-repository/inject-workspace-scoped-repository.decorator';
-import { WorkspaceScopedRepository } from 'src/engine/twenty-orm/workspace-scoped-repository/workspace-scoped-repository';
-import { EvaluateAgentTurnJob } from './evaluate-agent-turn.job';
-
-export type RunEvaluationInputJobData = {
- turnId: string;
- threadId: string;
- agentId: string;
- input: string;
- workspaceId: string;
-};
-
-@Processor(MessageQueue.aiQueue)
-export class RunEvaluationInputJob {
- private readonly logger = new Logger(RunEvaluationInputJob.name);
-
- constructor(
- @InjectWorkspaceScopedRepository(AgentEntity)
- private readonly agentRepository: WorkspaceScopedRepository<AgentEntity>,
- private readonly agentChatService: AgentChatService,
- private readonly aiAgentExecutorService: AgentAsyncExecutorService,
- @InjectMessageQueue(MessageQueue.aiQueue)
- private readonly messageQueueService: MessageQueueService,
- ) {}
-
- @Process(RunEvaluationInputJob.name)
- async handle(data: RunEvaluationInputJobData): Promise<void> {
- await this.agentChatService.addMessage({
- threadId: data.threadId,
- turnId: data.turnId,
- uiMessage: {
- role: 'user',
- parts: [{ type: 'text', text: data.input }],
- },
- workspaceId: data.workspaceId,
- });
-
- const agent = await this.agentRepository.findOne(data.workspaceId, {
- where: { id: data.agentId },
- });
-
- if (!agent) {
- throw new Error(`Agent ${data.agentId} not found`);
- }
-
- const executionResult = await this.aiAgentExecutorService.executeAgent({
- agent,
- messages: [{ role: 'user', content: data.input }],
- baseSystemPrompt: AGENT_RUN_BASE_SYSTEM_PROMPT,
- workspaceId: data.workspaceId,
- userWorkspaceId: null,
- });
-
- await this.agentChatService.addMessage({
- threadId: data.threadId,
- turnId: data.turnId,
- agentId: agent.id,
- uiMessage: {
- role: 'assistant',
- parts: [
- {
- type: 'text',
- text: JSON.stringify(executionResult.result) || '',
- },
- ],
- },
- workspaceId: data.workspaceId,
- });
-
- await this.messageQueueService.add<{
- turnId: string;
- workspaceId: string;
- }>(EvaluateAgentTurnJob.name, {
- turnId: data.turnId,
- workspaceId: data.workspaceId,
- });
- }
-}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/__tests__/agent-turn-evaluation.spec.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/__tests__/agent-turn-evaluation.spec.ts
deleted file mode 100644
index 62163304f6a..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/__tests__/agent-turn-evaluation.spec.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import { AgentTurnResolver } from 'src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/agent-turn.resolver';
-
-it('creates private evaluation history', async () => {
- const turn = { id: 'turn', threadId: 'thread' };
- const turns = {
- insertAndReturnOne: jest.fn().mockResolvedValue(turn),
- findOne: jest.fn().mockResolvedValue(turn),
- };
- const threads = {
- insertAndReturnOne: jest.fn().mockResolvedValue({ id: 'thread' }),
- };
- const queue = { add: jest.fn() };
- const agent = {
- findOneAgentById: jest.fn().mockResolvedValue({ id: 'agent' }),
- };
- const resolver = new AgentTurnResolver(
- turns as never,
- threads as never,
- queue as never,
- {} as never,
- agent as never,
- );
-
- await expect(
- resolver.runEvaluationInput(
- 'agent',
- 'Evaluate this',
- { id: 'workspace' } as never,
- 'member',
- 'membership',
- ),
- ).resolves.toEqual(turn);
- expect(threads.insertAndReturnOne).toHaveBeenCalledWith('workspace', {
- workspaceMemberId: 'member',
- userWorkspaceId: 'membership',
- title: 'Eval: Evaluate this...',
- });
- expect(agent.findOneAgentById).toHaveBeenCalledWith({
- id: 'agent',
- workspaceId: 'workspace',
- });
- expect(queue.add).toHaveBeenCalledWith(
- 'RunEvaluationInputJob',
- expect.objectContaining({
- workspaceId: 'workspace',
- threadId: 'thread',
- turnId: 'turn',
- }),
- );
-});
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/__tests__/agent-turn-schema.spec.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/__tests__/agent-turn-schema.spec.ts
deleted file mode 100644
index edb0168067b..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/__tests__/agent-turn-schema.spec.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { NestFactory } from '@nestjs/core';
-import {
- GraphQLSchemaBuilderModule,
- GraphQLSchemaFactory,
-} from '@nestjs/graphql';
-import { validateSchema } from 'graphql';
-
-import { AgentTurnResolver } from 'src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/agent-turn.resolver';
-
-it('builds the agent turn schema with its field resolvers', async () => {
- const application = await NestFactory.createApplicationContext(
- GraphQLSchemaBuilderModule,
- { logger: false },
- );
- try {
- const schema = await application
- .get(GraphQLSchemaFactory)
- .create([AgentTurnResolver]);
- expect(validateSchema(schema)).toEqual([]);
- expect(schema.getQueryType()?.getFields()).toHaveProperty('agentTurns');
- expect(schema.getMutationType()?.getFields()).toHaveProperty(
- 'runEvaluationInput',
- );
- } finally {
- await application.close();
- }
-});
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/agent-turn.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/agent-turn.resolver.ts
deleted file mode 100644
index 75b0234b1c1..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/resolvers/agent-turn.resolver.ts
+++ /dev/null
@@ -1,170 +0,0 @@
-import { InjectAgentHistoryRepository } from 'src/engine/metadata-modules/ai/ai-history/repositories/inject-agent-history-repository.decorator';
-import { AgentHistoryRepository } from 'src/engine/metadata-modules/ai/ai-history/repositories/agent-history-repository';
-import { Logger, UseGuards, UseFilters } from '@nestjs/common';
-import { Args, Mutation, Query, Parent, ResolveField } from '@nestjs/graphql';
-
-import { msg } from '@lingui/core/macro';
-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 { NotFoundError } from 'src/engine/core-modules/graphql/utils/graphql-errors.util';
-import { InjectMessageQueue } from 'src/engine/core-modules/message-queue/decorators/message-queue.decorator';
-import { MessageQueue } from 'src/engine/core-modules/message-queue/message-queue.constants';
-import { MessageQueueService } from 'src/engine/core-modules/message-queue/services/message-queue.service';
-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 { SettingsPermissionGuard } from 'src/engine/guards/settings-permission.guard';
-import { AuthPrincipalGuard } from 'src/engine/guards/auth-principal.guard';
-import { AgentTurnDTO } from 'src/engine/metadata-modules/ai/ai-agent-execution/dtos/agent-turn.dto';
-import { AgentTurnWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity';
-import { AgentTurnEvaluationDTO } from 'src/engine/metadata-modules/ai/ai-agent-monitor/dtos/agent-turn-evaluation.dto';
-import { RunEvaluationInputJob } from 'src/engine/metadata-modules/ai/ai-agent-monitor/jobs/run-evaluation-input.job';
-import { AgentTurnGraderService } from 'src/engine/metadata-modules/ai/ai-agent-monitor/services/agent-turn-grader.service';
-import { AgentService } from 'src/engine/metadata-modules/ai/ai-agent/agent.service';
-import { AgentChatThreadWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity';
-import { AuthUserWorkspaceId } from 'src/engine/decorators/auth/auth-user-workspace-id.decorator';
-import { AuthGraphqlApiExceptionFilter } from 'src/engine/core-modules/auth/filters/auth-graphql-api-exception.filter';
-@UseGuards(
- AuthPrincipalGuard({
- userSession: {
- standard: true,
- impersonated: true,
- playground: true,
- workspaceAgnostic: false,
- },
- apiKey: true,
- oauthClient: true,
- application: true,
- }),
- SettingsPermissionGuard(PermissionFlagType.AI_SETTINGS),
-)
-@MetadataResolver(() => AgentTurnDTO)
-@UseFilters(AuthGraphqlApiExceptionFilter)
-export class AgentTurnResolver {
- private readonly logger = new Logger(AgentTurnResolver.name);
-
- constructor(
- @InjectAgentHistoryRepository('agentTurn')
- private readonly turnRepository: AgentHistoryRepository<AgentTurnWorkspaceEntity>,
- @InjectAgentHistoryRepository('agentChatThread')
- private readonly threadRepository: AgentHistoryRepository<AgentChatThreadWorkspaceEntity>,
- @InjectMessageQueue(MessageQueue.aiQueue)
- private readonly messageQueueService: MessageQueueService,
- private readonly graderService: AgentTurnGraderService,
- private readonly agentService: AgentService,
- ) {}
-
- @ResolveField(() => Date)
- createdAt(@Parent() turn: AgentTurnWorkspaceEntity): Date {
- return new Date(turn.createdAt);
- }
-
- @ResolveField(() => [AgentTurnEvaluationDTO])
- evaluations(
- @Parent() turn: AgentTurnWorkspaceEntity,
- ): AgentTurnEvaluationDTO[] {
- return (turn.evaluations ?? []).map((evaluation) => ({
- ...evaluation,
- createdAt: new Date(evaluation.createdAt),
- }));
- }
-
- @Query(() => [AgentTurnDTO])
- async agentTurns(
- @Args('agentId', { type: () => UUIDScalarType }) agentId: string,
- @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
- ): Promise<AgentTurnWorkspaceEntity[]> {
- return this.turnRepository.find(workspaceId, {
- where: { agentId },
- relations: ['evaluations', 'messages', 'messages.parts'],
- order: { createdAt: 'DESC' },
- });
- }
-
- @Mutation(() => AgentTurnEvaluationDTO)
- async evaluateAgentTurn(
- @Args('turnId', { type: () => UUIDScalarType }) turnId: string,
- @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
- ): Promise<AgentTurnEvaluationDTO> {
- const evaluation = await this.graderService.evaluateTurn({
- turnId,
- workspaceId,
- });
- return { ...evaluation, createdAt: new Date(evaluation.createdAt) };
- }
-
- @Mutation(() => AgentTurnDTO)
- @UseGuards(
- AuthPrincipalGuard({
- userSession: {
- standard: true,
- impersonated: true,
- playground: true,
- workspaceAgnostic: false,
- },
- apiKey: false,
- oauthClient: { withUser: true, withoutUser: false },
- application: { withUser: true, withoutUser: false },
- }),
- )
- async runEvaluationInput(
- @Args('agentId', { type: () => UUIDScalarType }) agentId: string,
- @Args('input') input: string,
- @AuthWorkspace() workspace: WorkspaceEntity,
- @AuthWorkspaceMemberId() workspaceMemberId: string,
- @AuthUserWorkspaceId() userWorkspaceId: string,
- ): Promise<AgentTurnWorkspaceEntity> {
- // defense in depth: the job also re-fetches the agent workspace-scoped
- await this.agentService.findOneAgentById({
- id: agentId,
- workspaceId: workspace.id,
- });
-
- // Evaluation history stays outside the user's chat list: no share or broadcast.
- const savedThread = await this.threadRepository.insertAndReturnOne(
- workspace.id,
- {
- workspaceMemberId,
- userWorkspaceId,
- title: `Eval: ${input.substring(0, 50)}...`,
- },
- );
-
- const savedTurn = await this.turnRepository.insertAndReturnOne(
- workspace.id,
- {
- threadId: savedThread.id,
- agentId,
- },
- );
-
- await this.messageQueueService.add<{
- turnId: string;
- threadId: string;
- agentId: string;
- input: string;
- workspaceId: string;
- }>(RunEvaluationInputJob.name, {
- turnId: savedTurn.id,
- threadId: savedThread.id,
- agentId,
- input,
- workspaceId: workspace.id,
- });
-
- const turnWithRelations = await this.turnRepository.findOne(workspace.id, {
- where: { id: savedTurn.id },
- relations: ['evaluations', 'messages', 'messages.parts'],
- });
-
- if (!turnWithRelations) {
- throw new NotFoundError('Turn not found after creation', {
- userFriendlyMessage: msg`Failed to create evaluation. Please try again.`,
- });
- }
-
- return turnWithRelations;
- }
-}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/services/agent-turn-grader.service.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/services/agent-turn-grader.service.ts
deleted file mode 100644
index 6f2e23b1151..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent-monitor/services/agent-turn-grader.service.ts
+++ /dev/null
@@ -1,206 +0,0 @@
-import { InjectAgentHistoryRepository } from 'src/engine/metadata-modules/ai/ai-history/repositories/inject-agent-history-repository.decorator';
-import { AgentHistoryRepository } from 'src/engine/metadata-modules/ai/ai-history/repositories/agent-history-repository';
-import { Injectable, Logger } from '@nestjs/common';
-
-import { msg } from '@lingui/core/macro';
-import { generateText } from 'ai';
-
-import { NotFoundError } from 'src/engine/core-modules/graphql/utils/graphql-errors.util';
-import { AgentMessageWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity';
-import { AgentTurnWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity';
-import { AgentTurnEvaluationWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn-evaluation.workspace-entity';
-import { buildAiTelemetry } from 'src/engine/metadata-modules/ai/ai-models/utils/build-ai-telemetry.util';
-import { AiModelRegistryService } from 'src/engine/metadata-modules/ai/ai-models/services/ai-model-registry.service';
-import { buildReasoningProviderOptions } from 'src/engine/metadata-modules/ai/ai-models/utils/build-reasoning-provider-options.util';
-@Injectable()
-export class AgentTurnGraderService {
- private readonly logger = new Logger(AgentTurnGraderService.name);
-
- constructor(
- @InjectAgentHistoryRepository('agentTurn')
- private readonly turnRepository: AgentHistoryRepository<AgentTurnWorkspaceEntity>,
- @InjectAgentHistoryRepository('agentTurnEvaluation')
- private readonly evaluationRepository: AgentHistoryRepository<AgentTurnEvaluationWorkspaceEntity>,
- private readonly aiModelRegistryService: AiModelRegistryService,
- ) {}
-
- async evaluateTurn({
- turnId,
- workspaceId,
- }: {
- turnId: string;
- workspaceId: string;
- }): Promise<AgentTurnEvaluationWorkspaceEntity> {
- const turn = await this.turnRepository.findOne(workspaceId, {
- where: { id: turnId },
- relations: ['messages', 'messages.parts'],
- });
-
- if (!turn) {
- throw new NotFoundError(`Turn ${turnId} not found`, {
- userFriendlyMessage: msg`This evaluation target could not be found.`,
- });
- }
-
- const { score, comment } = await this.evaluateWithAI(turn, workspaceId);
-
- return this.evaluationRepository.insertAndReturnOne(workspaceId, {
- turnId,
- score,
- comment,
- });
- }
-
- private async evaluateWithAI(
- turn: AgentTurnWorkspaceEntity & {
- messages: AgentMessageWorkspaceEntity[];
- },
- workspaceId: string,
- ): Promise<{ score: number; comment: string }> {
- try {
- const defaultModel =
- this.aiModelRegistryService.getDefaultModelForTier('fast');
-
- if (!defaultModel) {
- this.logger.warn('No default AI model available for evaluation');
-
- return this.getFallbackEvaluation(turn);
- }
-
- const evaluationContext = this.buildEvaluationContext(turn);
-
- const prompt = `You are evaluating an AI agent's performance on a single turn (user request + agent response).
-
-${evaluationContext}
-
-Evaluate this agent turn based on:
-1. **Task Completion**: Did the agent accomplish what the user asked?
-2. **Tool Usage**: Were tools used correctly and appropriately?
-3. **Response Quality**: Is the response clear, accurate, and helpful?
-4. **Error Handling**: Were errors handled gracefully?
-
-Provide:
-- A score from 0 to 100 (0 = complete failure, 100 = perfect)
-- A brief comment explaining the score (max 200 characters)
-
-Respond ONLY with valid JSON in this exact format:
-{"score": <number>, "comment": "<string>"}`;
-
- const result = await generateText({
- model: defaultModel.model,
- providerOptions: buildReasoningProviderOptions(defaultModel),
- prompt,
- temperature: 0.3,
- ...buildAiTelemetry({
- functionId: 'agent-turn-grading',
- workspaceId,
- agentId: turn.agentId,
- threadId: turn.threadId,
- turnId: turn.id,
- }),
- });
-
- const parsed = JSON.parse(result.text);
-
- return {
- score: Math.max(0, Math.min(100, Math.round(parsed.score))),
- comment: (parsed.comment || 'Evaluation completed').substring(0, 500),
- };
- } catch (error) {
- this.logger.error('Failed to evaluate turn with AI:', error);
-
- return this.getFallbackEvaluation(turn);
- }
- }
-
- private buildEvaluationContext(
- turn: AgentTurnWorkspaceEntity & {
- messages: AgentMessageWorkspaceEntity[];
- },
- ): string {
- const userMessages = turn.messages.filter((m) => m.role === 'user');
- const assistantMessages = turn.messages.filter(
- (m) => m.role === 'assistant',
- );
-
- const userText = userMessages
- .flatMap((m) => m.parts || [])
- .filter((p) => p.textContent)
- .map((p) => p.textContent)
- .join('\n');
-
- const assistantParts = assistantMessages.flatMap((m) => m.parts || []);
-
- const assistantText = assistantParts
- .filter((p) => p.textContent)
- .map((p) => p.textContent)
- .join('\n');
-
- const toolCalls = assistantParts
- .filter((p) => p.toolName)
- .map((p) => ({
- tool: p.toolName,
- hasError: !!p.errorMessage,
- error: p.errorMessage,
- }));
-
- const errors = assistantParts
- .filter((p) => p.errorMessage)
- .map((p) => p.errorMessage);
-
- let context = `**User Request:**\n${userText || '(no text)'}\n\n`;
-
- context += `**Agent Response:**\n${assistantText || '(no text response)'}\n\n`;
-
- if (toolCalls.length > 0) {
- context += `**Tools Used:**\n${toolCalls.map((t) => `- ${t.tool}${t.hasError ? ' (FAILED)' : ''}`).join('\n')}\n\n`;
- }
-
- if (errors.length > 0) {
- context += `**Errors:**\n${errors.map((e) => `- ${e}`).join('\n')}\n\n`;
- }
-
- return context;
- }
-
- private getFallbackEvaluation(
- turn: AgentTurnWorkspaceEntity & {
- messages: AgentMessageWorkspaceEntity[];
- },
- ): {
- score: number;
- comment: string;
- } {
- const parts = turn.messages.flatMap((m) => m.parts || []);
- const errorCount = parts.filter((p) => p.errorMessage).length;
- const hasResponse = parts.some((p) => p.textContent);
- const toolCount = parts.filter((p) => p.toolName).length;
-
- let score = 100;
-
- if (errorCount > 0) {
- score -= errorCount * 30;
- }
-
- if (!hasResponse) {
- score -= 50;
- }
-
- const comments = [];
-
- if (errorCount > 0) {
- comments.push(`${errorCount} error(s)`);
- }
- if (toolCount > 0) {
- comments.push(`${toolCount} tool(s) used`);
- }
- if (!hasResponse) {
- comments.push('No response');
- }
-
- return {
- score: Math.max(0, score),
- comment: comments.length > 0 ? comments.join('; ') : 'Completed',
- };
- }
-}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/constants/agent-run-base-system-prompt.const.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/constants/agent-run-base-system-prompt.const.ts
index 0848af5dda9..964dc03f0dd 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/constants/agent-run-base-system-prompt.const.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/constants/agent-run-base-system-prompt.const.ts
@@ -1,4 +1,4 @@
-// Base system prompt for programmatic agent runs outside workflows (runAgent API, evaluations)
+// Base system prompt for programmatic agent runs outside workflows (runAgent API)
// NOTE: For user-facing chat, use CHAT_SYSTEM_PROMPTS from ai-chat/constants
import { TOOL_USAGE_STRATEGY } from 'src/engine/metadata-modules/ai/ai-agent/constants/tool-usage-strategy.const';
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/agent.dto.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/agent.dto.ts
index 8dd7fbabdff..33d6b9590dc 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/agent.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/agent.dto.ts
@@ -74,7 +74,4 @@ export class AgentDTO {
@Field(() => GraphQLJSON, { nullable: true })
modelConfiguration?: ModelConfiguration;
-
- @Field(() => [String])
- evaluationInputs: string[];
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/create-agent.input.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/create-agent.input.ts
index d85c24e635c..396d1f95e20 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/create-agent.input.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/create-agent.input.ts
@@ -2,7 +2,6 @@ import { Field, HideField, InputType } from '@nestjs/graphql';
import { Type } from 'class-transformer';
import {
- IsArray,
IsNotEmpty,
IsObject,
IsOptional,
@@ -76,12 +75,6 @@ export class CreateAgentInput {
@Field(() => GraphQLJSON, { nullable: true })
modelConfiguration?: ModelConfiguration;
- @IsArray()
- @IsString({ each: true })
- @IsOptional()
- @Field(() => [String], { nullable: true })
- evaluationInputs?: string[];
-
@HideField()
applicationId?: string;
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/update-agent.input.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/update-agent.input.ts
index 1d0c0d8f900..cacc6582906 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/update-agent.input.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/dtos/update-agent.input.ts
@@ -2,7 +2,6 @@ import { Field, InputType } from '@nestjs/graphql';
import { Type } from 'class-transformer';
import {
- IsArray,
IsNotEmpty,
IsObject,
IsOptional,
@@ -80,10 +79,4 @@ export class UpdateAgentInput {
@IsOptional()
@Field(() => GraphQLJSON, { nullable: true })
modelConfiguration?: ModelConfiguration;
-
- @IsArray()
- @IsString({ each: true })
- @IsOptional()
- @Field(() => [String], { nullable: true })
- evaluationInputs?: string[];
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/entities/agent.entity.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/entities/agent.entity.ts
index 2cb017a4d52..5279618b047 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/entities/agent.entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/entities/agent.entity.ts
@@ -77,7 +77,4 @@ export class AgentEntity
@Column({ nullable: true, type: 'jsonb' })
modelConfiguration: JsonbProperty<ModelConfiguration> | null;
-
- @Column({ type: 'text', array: true, default: '{}' })
- evaluationInputs: string[];
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/utils/__tests__/get-database-crud-tool-flat-objects.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/utils/__tests__/get-database-crud-tool-flat-objects.util.spec.ts
index 29e441dbab3..33b2795ade2 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/utils/__tests__/get-database-crud-tool-flat-objects.util.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/utils/__tests__/get-database-crud-tool-flat-objects.util.spec.ts
@@ -21,7 +21,6 @@ describe('getDatabaseCrudToolFlatObjects', () => {
STANDARD_OBJECTS.agentMessage,
STANDARD_OBJECTS.agentMessagePart,
STANDARD_OBJECTS.agentTurn,
- STANDARD_OBJECTS.agentTurnEvaluation,
STANDARD_OBJECTS.recordShare,
].map(({ universalIdentifier }) =>
createObject(universalIdentifier, MetadataReadability.SYSTEM),
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/utils/from-create-agent-input-to-flat-agent.util.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/utils/from-create-agent-input-to-flat-agent.util.ts
index 7acd7f5e915..5c01d1007aa 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/utils/from-create-agent-input-to-flat-agent.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/utils/from-create-agent-input-to-flat-agent.util.ts
@@ -58,7 +58,6 @@ export const fromCreateAgentInputToFlatAgent = ({
applicationId: flatApplication.id,
applicationUniversalIdentifier: flatApplication.universalIdentifier,
modelConfiguration: createAgentInput.modelConfiguration ?? null,
- evaluationInputs: createAgentInput.evaluationInputs ?? [],
createdAt,
updatedAt: createdAt,
deletedAt: null,
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/constants/agent-history-object-names.constant.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/constants/agent-history-object-names.constant.ts
index 8ef0f676e5a..244375ea082 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/constants/agent-history-object-names.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/constants/agent-history-object-names.constant.ts
@@ -4,5 +4,4 @@ export const AGENT_HISTORY_OBJECT_NAMES = [
'agentTurn',
'agentMessage',
'agentMessagePart',
- 'agentTurnEvaluation',
] as const;
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn-evaluation.workspace-entity.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn-evaluation.workspace-entity.ts
deleted file mode 100644
index 4d664a6048d..00000000000
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn-evaluation.workspace-entity.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
-import { type AgentTurnWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity';
-import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
-
-export class AgentTurnEvaluationWorkspaceEntity extends BaseWorkspaceEntity {
- turn: EntityRelation<AgentTurnWorkspaceEntity>;
-
- turnId: string;
- score: number;
- comment: string | null;
-}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity.ts
index 22a6e4dba42..b1f67bc7934 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity.ts
@@ -1,13 +1,11 @@
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type AgentChatThreadWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity';
import { type AgentMessageWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity';
-import { type AgentTurnEvaluationWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn-evaluation.workspace-entity';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
export class AgentTurnWorkspaceEntity extends BaseWorkspaceEntity {
thread: EntityRelation<AgentChatThreadWorkspaceEntity>;
messages: EntityRelation<AgentMessageWorkspaceEntity[]>;
- evaluations: EntityRelation<AgentTurnEvaluationWorkspaceEntity[]>;
threadId: string;
agentId: string | null;
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/utils/hydrate-agent-history-files.util.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/utils/hydrate-agent-history-files.util.ts
index 475de087c61..a6e7bf0a011 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/utils/hydrate-agent-history-files.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/utils/hydrate-agent-history-files.util.ts
@@ -16,7 +16,7 @@ export const hydrateAgentHistoryFiles = async ({
if ('fileId' in record) {
parts.push(record);
}
- for (const relation of ['parts', 'messages', 'turns', 'evaluations']) {
+ for (const relation of ['parts', 'messages', 'turns']) {
if (Array.isArray(record[relation])) {
record[relation].forEach(collectParts);
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-agent/constants/flat-agent-editable-properties.constant.ts b/packages/twenty-server/src/engine/metadata-modules/flat-agent/constants/flat-agent-editable-properties.constant.ts
index f5e396e5812..a0f6a3b3e7a 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-agent/constants/flat-agent-editable-properties.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-agent/constants/flat-agent-editable-properties.constant.ts
@@ -9,5 +9,4 @@ export const FLAT_AGENT_EDITABLE_PROPERTIES = [
'modelId',
'responseFormat',
'modelConfiguration',
- 'evaluationInputs',
] as const satisfies MetadataEntityPropertyName<'agent'>[];
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-agent/utils/from-agent-entity-to-agent-dto.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-agent/utils/from-agent-entity-to-agent-dto.util.ts
index a8457665e22..f8480153d52 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-agent/utils/from-agent-entity-to-agent-dto.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-agent/utils/from-agent-entity-to-agent-dto.util.ts
@@ -5,7 +5,6 @@ export const fromFlatAgentWithRoleIdToAgentDto = ({
applicationId,
createdAt,
description,
- evaluationInputs,
icon,
id,
isCustom,
@@ -22,7 +21,6 @@ export const fromFlatAgentWithRoleIdToAgentDto = ({
}: FlatAgentWithRoleId): AgentDTO => ({
createdAt: new Date(createdAt),
description: description ?? undefined,
- evaluationInputs,
id,
isCustom,
isSystem,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-agent/utils/transform-agent-entity-to-flat-agent.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-agent/utils/transform-agent-entity-to-flat-agent.util.ts
index 3af206e2898..83b9920d347 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-agent/utils/transform-agent-entity-to-flat-agent.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-agent/utils/transform-agent-entity-to-flat-agent.util.ts
@@ -39,7 +39,6 @@ export const transformAgentEntityToFlatAgent = ({
universalIdentifier: agentEntity.universalIdentifier,
applicationId: agentEntity.applicationId,
modelConfiguration: agentEntity.modelConfiguration,
- evaluationInputs: agentEntity.evaluationInputs,
applicationUniversalIdentifier,
};
};
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
index c3c34975b04..23899907bd7 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/__tests__/__snapshots__/all-universal-flat-entity-properties-to-compare-and-stringify.constant.spec.ts.snap
@@ -12,13 +12,11 @@ exports[`ALL_UNIVERSAL_FLAT_ENTITY_PROPERTIES_TO_COMPARE_AND_STRINGIFY should ma
"modelId",
"responseFormat",
"modelConfiguration",
- "evaluationInputs",
"isSystem",
],
"propertiesToStringify": [
"responseFormat",
"modelConfiguration",
- "evaluationInputs",
],
},
"applicationVariable": {
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
index c9b2408e954..1e403b5c436 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-entity/constant/all-entity-properties-configuration-by-metadata-name.constant.ts
@@ -979,11 +979,6 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toStringify: true,
universalProperty: undefined,
},
- evaluationInputs: {
- toCompare: true,
- toStringify: true,
- universalProperty: undefined,
- },
isSystem: {
toCompare: true,
toStringify: false,
diff --git a/packages/twenty-server/src/engine/metadata-modules/metadata-engine.module.ts b/packages/twenty-server/src/engine/metadata-modules/metadata-engine.module.ts
index e041c50b7d7..68da45510a8 100644
--- a/packages/twenty-server/src/engine/metadata-modules/metadata-engine.module.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/metadata-engine.module.ts
@@ -2,7 +2,6 @@ import { RecordPermissionsModule } from 'src/engine/metadata-modules/record-perm
import { Module } from '@nestjs/common';
import { APP_FILTER } from '@nestjs/core';
-import { AiAgentMonitorModule } from 'src/engine/metadata-modules/ai/ai-agent-monitor/ai-agent-monitor.module';
import { AiAgentModule } from 'src/engine/metadata-modules/ai/ai-agent/ai-agent.module';
import { AiChatModule } from 'src/engine/metadata-modules/ai/ai-chat/ai-chat.module';
import { AiGenerateTextModule } from 'src/engine/metadata-modules/ai/ai-generate-text/ai-generate-text.module';
@@ -56,7 +55,6 @@ import { WorkspaceMetadataVersionModule } from 'src/engine/metadata-modules/work
TimelineActivityTypeModule,
ValidationRuleModule,
AiAgentModule,
- AiAgentMonitorModule,
AiChatModule,
AiGenerateTextModule,
AiWorkspaceStatsModule,
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 4ebcb599070..0090b08ce51 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,7 +10,6 @@ export const SEARCH_FIELDS_BY_STANDARD_OBJECT_NAME = {
agentTurn: [],
agentMessage: [],
agentMessagePart: [],
- agentTurnEvaluation: [],
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 0a86845cf96..9587cc9b92f 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
@@ -158,139 +158,139 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"agentMessage": {
"fields": {
"agentId": {
- "id": "00000000-0000-0000-0000-000000001075",
+ "id": "00000000-0000-0000-0000-000000001074",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001072",
+ "id": "00000000-0000-0000-0000-000000001071",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001074",
+ "id": "00000000-0000-0000-0000-000000001073",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001071",
+ "id": "00000000-0000-0000-0000-000000001070",
},
"isHidden": {
- "id": "00000000-0000-0000-0000-000000001081",
+ "id": "00000000-0000-0000-0000-000000001080",
},
"parts": {
- "id": "00000000-0000-0000-0000-000000001085",
+ "id": "00000000-0000-0000-0000-000000001084",
},
"processedAt": {
- "id": "00000000-0000-0000-0000-000000001082",
+ "id": "00000000-0000-0000-0000-000000001081",
},
"role": {
- "id": "00000000-0000-0000-0000-000000001079",
+ "id": "00000000-0000-0000-0000-000000001078",
},
"senderApplicationId": {
- "id": "00000000-0000-0000-0000-000000001078",
+ "id": "00000000-0000-0000-0000-000000001077",
},
"senderUserWorkspaceId": {
- "id": "00000000-0000-0000-0000-000000001077",
+ "id": "00000000-0000-0000-0000-000000001076",
},
"senderWorkspaceMember": {
- "id": "00000000-0000-0000-0000-000000001076",
+ "id": "00000000-0000-0000-0000-000000001075",
},
"status": {
- "id": "00000000-0000-0000-0000-000000001080",
+ "id": "00000000-0000-0000-0000-000000001079",
},
"thread": {
- "id": "00000000-0000-0000-0000-000000001083",
+ "id": "00000000-0000-0000-0000-000000001082",
},
"turn": {
- "id": "00000000-0000-0000-0000-000000001084",
+ "id": "00000000-0000-0000-0000-000000001083",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001073",
+ "id": "00000000-0000-0000-0000-000000001072",
},
},
- "id": "00000000-0000-0000-0000-000000001086",
+ "id": "00000000-0000-0000-0000-000000001085",
"views": undefined,
},
"agentMessagePart": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001088",
+ "id": "00000000-0000-0000-0000-000000001087",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001090",
+ "id": "00000000-0000-0000-0000-000000001089",
},
"errorDetails": {
- "id": "00000000-0000-0000-0000-000000001102",
+ "id": "00000000-0000-0000-0000-000000001101",
},
"errorMessage": {
- "id": "00000000-0000-0000-0000-000000001101",
+ "id": "00000000-0000-0000-0000-000000001100",
},
"fileFilename": {
- "id": "00000000-0000-0000-0000-000000001110",
+ "id": "00000000-0000-0000-0000-000000001109",
},
"fileId": {
- "id": "00000000-0000-0000-0000-000000001111",
+ "id": "00000000-0000-0000-0000-000000001110",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001087",
+ "id": "00000000-0000-0000-0000-000000001086",
},
"message": {
- "id": "00000000-0000-0000-0000-000000001113",
+ "id": "00000000-0000-0000-0000-000000001112",
},
"orderIndex": {
- "id": "00000000-0000-0000-0000-000000001091",
+ "id": "00000000-0000-0000-0000-000000001090",
},
"providerExecuted": {
- "id": "00000000-0000-0000-0000-000000001100",
+ "id": "00000000-0000-0000-0000-000000001099",
},
"providerMetadata": {
- "id": "00000000-0000-0000-0000-000000001112",
+ "id": "00000000-0000-0000-0000-000000001111",
},
"reasoningContent": {
- "id": "00000000-0000-0000-0000-000000001094",
+ "id": "00000000-0000-0000-0000-000000001093",
},
"sourceDocumentFilename": {
- "id": "00000000-0000-0000-0000-000000001109",
+ "id": "00000000-0000-0000-0000-000000001108",
},
"sourceDocumentMediaType": {
- "id": "00000000-0000-0000-0000-000000001107",
+ "id": "00000000-0000-0000-0000-000000001106",
},
"sourceDocumentSourceId": {
- "id": "00000000-0000-0000-0000-000000001106",
+ "id": "00000000-0000-0000-0000-000000001105",
},
"sourceDocumentTitle": {
- "id": "00000000-0000-0000-0000-000000001108",
+ "id": "00000000-0000-0000-0000-000000001107",
},
"sourceUrlSourceId": {
- "id": "00000000-0000-0000-0000-000000001103",
+ "id": "00000000-0000-0000-0000-000000001102",
},
"sourceUrlTitle": {
- "id": "00000000-0000-0000-0000-000000001105",
+ "id": "00000000-0000-0000-0000-000000001104",
},
"sourceUrlUrl": {
- "id": "00000000-0000-0000-0000-000000001104",
+ "id": "00000000-0000-0000-0000-000000001103",
},
"state": {
- "id": "00000000-0000-0000-0000-000000001099",
+ "id": "00000000-0000-0000-0000-000000001098",
},
"textContent": {
- "id": "00000000-0000-0000-0000-000000001093",
+ "id": "00000000-0000-0000-0000-000000001092",
},
"toolCallId": {
- "id": "00000000-0000-0000-0000-000000001096",
+ "id": "00000000-0000-0000-0000-000000001095",
},
"toolInput": {
- "id": "00000000-0000-0000-0000-000000001097",
+ "id": "00000000-0000-0000-0000-000000001096",
},
"toolName": {
- "id": "00000000-0000-0000-0000-000000001095",
+ "id": "00000000-0000-0000-0000-000000001094",
},
"toolOutput": {
- "id": "00000000-0000-0000-0000-000000001098",
+ "id": "00000000-0000-0000-0000-000000001097",
},
"type": {
- "id": "00000000-0000-0000-0000-000000001092",
+ "id": "00000000-0000-0000-0000-000000001091",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001089",
+ "id": "00000000-0000-0000-0000-000000001088",
},
},
- "id": "00000000-0000-0000-0000-000000001114",
+ "id": "00000000-0000-0000-0000-000000001113",
"views": undefined,
},
"agentTurn": {
@@ -304,9 +304,6 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"deletedAt": {
"id": "00000000-0000-0000-0000-000000001065",
},
- "evaluations": {
- "id": "00000000-0000-0000-0000-000000001069",
- },
"id": {
"id": "00000000-0000-0000-0000-000000001062",
},
@@ -320,34 +317,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000001064",
},
},
- "id": "00000000-0000-0000-0000-000000001070",
- "views": undefined,
- },
- "agentTurnEvaluation": {
- "fields": {
- "comment": {
- "id": "00000000-0000-0000-0000-000000001120",
- },
- "createdAt": {
- "id": "00000000-0000-0000-0000-000000001116",
- },
- "deletedAt": {
- "id": "00000000-0000-0000-0000-000000001118",
- },
- "id": {
- "id": "00000000-0000-0000-0000-000000001115",
- },
- "score": {
- "id": "00000000-0000-0000-0000-000000001119",
- },
- "turn": {
- "id": "00000000-0000-0000-0000-000000001121",
- },
- "updatedAt": {
- "id": "00000000-0000-0000-0000-000000001117",
- },
- },
- "id": "00000000-0000-0000-0000-000000001122",
+ "id": "00000000-0000-0000-0000-000000001069",
"views": undefined,
},
"attachment": {
@@ -1105,64 +1075,64 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"campaignDelivery": {
"fields": {
"bouncedAt": {
- "id": "00000000-0000-0000-0000-000000001138",
+ "id": "00000000-0000-0000-0000-000000001129",
},
"campaignId": {
- "id": "00000000-0000-0000-0000-000000001127",
+ "id": "00000000-0000-0000-0000-000000001118",
},
"claimExpiresAt": {
- "id": "00000000-0000-0000-0000-000000001134",
+ "id": "00000000-0000-0000-0000-000000001125",
},
"claimToken": {
- "id": "00000000-0000-0000-0000-000000001133",
+ "id": "00000000-0000-0000-0000-000000001124",
},
"complainedAt": {
- "id": "00000000-0000-0000-0000-000000001139",
+ "id": "00000000-0000-0000-0000-000000001130",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001124",
+ "id": "00000000-0000-0000-0000-000000001115",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001126",
+ "id": "00000000-0000-0000-0000-000000001117",
},
"deliveredAt": {
- "id": "00000000-0000-0000-0000-000000001137",
+ "id": "00000000-0000-0000-0000-000000001128",
},
"failureReason": {
- "id": "00000000-0000-0000-0000-000000001132",
+ "id": "00000000-0000-0000-0000-000000001123",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001123",
+ "id": "00000000-0000-0000-0000-000000001114",
},
"personId": {
- "id": "00000000-0000-0000-0000-000000001128",
+ "id": "00000000-0000-0000-0000-000000001119",
},
"providerMessageId": {
- "id": "00000000-0000-0000-0000-000000001135",
+ "id": "00000000-0000-0000-0000-000000001126",
},
"recipientEmail": {
- "id": "00000000-0000-0000-0000-000000001129",
+ "id": "00000000-0000-0000-0000-000000001120",
},
"rejectedAt": {
- "id": "00000000-0000-0000-0000-000000001140",
+ "id": "00000000-0000-0000-0000-000000001131",
},
"renderingFailedAt": {
- "id": "00000000-0000-0000-0000-000000001141",
+ "id": "00000000-0000-0000-0000-000000001132",
},
"sentAt": {
- "id": "00000000-0000-0000-0000-000000001136",
+ "id": "00000000-0000-0000-0000-000000001127",
},
"skipReason": {
- "id": "00000000-0000-0000-0000-000000001131",
+ "id": "00000000-0000-0000-0000-000000001122",
},
"state": {
- "id": "00000000-0000-0000-0000-000000001130",
+ "id": "00000000-0000-0000-0000-000000001121",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001125",
+ "id": "00000000-0000-0000-0000-000000001116",
},
},
- "id": "00000000-0000-0000-0000-000000001142",
+ "id": "00000000-0000-0000-0000-000000001133",
"views": undefined,
},
"company": {
@@ -2119,34 +2089,34 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageSuppression": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001144",
+ "id": "00000000-0000-0000-0000-000000001135",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001146",
+ "id": "00000000-0000-0000-0000-000000001137",
},
"emailAddress": {
- "id": "00000000-0000-0000-0000-000000001147",
+ "id": "00000000-0000-0000-0000-000000001138",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001143",
+ "id": "00000000-0000-0000-0000-000000001134",
},
"providerEventId": {
- "id": "00000000-0000-0000-0000-000000001150",
+ "id": "00000000-0000-0000-0000-000000001141",
},
"reason": {
- "id": "00000000-0000-0000-0000-000000001148",
+ "id": "00000000-0000-0000-0000-000000001139",
},
"source": {
- "id": "00000000-0000-0000-0000-000000001149",
+ "id": "00000000-0000-0000-0000-000000001140",
},
"unsubscribeTopicId": {
- "id": "00000000-0000-0000-0000-000000001151",
+ "id": "00000000-0000-0000-0000-000000001142",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001145",
+ "id": "00000000-0000-0000-0000-000000001136",
},
},
- "id": "00000000-0000-0000-0000-000000001152",
+ "id": "00000000-0000-0000-0000-000000001143",
"views": undefined,
},
"messageThread": {
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 0d23e297046..4531c48264c 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
@@ -18,7 +18,6 @@ const OBJECT_NAMES = [
'agentMessage',
'agentMessagePart',
'agentTurn',
- 'agentTurnEvaluation',
] as const;
const { allFlatEntityMaps } = computeTwentyStandardApplicationAllFlatEntityMaps(
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 a30f31fab6a..2e04e688adc 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
@@ -46,7 +46,6 @@ describe('Standard field writability', () => {
STANDARD_OBJECTS.agentMessage.universalIdentifier,
STANDARD_OBJECTS.agentMessagePart.universalIdentifier,
STANDARD_OBJECTS.agentTurn.universalIdentifier,
- STANDARD_OBJECTS.agentTurnEvaluation.universalIdentifier,
STANDARD_OBJECTS.agentChatThreadParticipant.universalIdentifier,
STANDARD_OBJECTS.campaignDelivery.universalIdentifier,
STANDARD_OBJECTS.messageSuppression.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 0747f512ce5..4eb7ad7942b 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
@@ -66,7 +66,6 @@ describe('Standard object readability', () => {
STANDARD_OBJECTS.agentMessage.universalIdentifier,
STANDARD_OBJECTS.agentMessagePart.universalIdentifier,
STANDARD_OBJECTS.agentTurn.universalIdentifier,
- STANDARD_OBJECTS.agentTurnEvaluation.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 4823d42b7c0..1450a707838 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
@@ -14,7 +14,6 @@ const SYSTEM_WRITABILITY_STANDARD_OBJECT_NAMES = [
'agentMessage',
'agentMessagePart',
'agentTurn',
- 'agentTurnEvaluation',
'calendarChannelEventAssociation',
'campaignDelivery',
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-metadata/create-standard-agent-flat-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-metadata/create-standard-agent-flat-metadata.util.ts
index b23102e60c8..ff810f0dd49 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-metadata/create-standard-agent-flat-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-metadata/create-standard-agent-flat-metadata.util.ts
@@ -21,7 +21,6 @@ export type CreateStandardAgentContext = {
isCustom: boolean;
isSystem: boolean;
modelConfiguration: ModelConfiguration | null;
- evaluationInputs: string[];
};
export type CreateStandardAgentArgs = StandardBuilderArgs<'agent'> & {
@@ -41,7 +40,6 @@ export const createStandardAgentFlatMetadata = ({
isCustom,
isSystem,
modelConfiguration,
- evaluationInputs,
},
workspaceId,
twentyStandardApplicationId,
@@ -62,7 +60,6 @@ export const createStandardAgentFlatMetadata = ({
isCustom,
isSystem,
modelConfiguration,
- evaluationInputs,
workspaceId,
applicationId: twentyStandardApplicationId,
applicationUniversalIdentifier:
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-metadata/create-standard-flat-agent-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-metadata/create-standard-flat-agent-metadata.util.ts
index 942dab3a23c..1ca73495bff 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-metadata/create-standard-flat-agent-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-metadata/create-standard-flat-agent-metadata.util.ts
@@ -45,7 +45,6 @@ Always base answers on official Twenty documentation. Be patient and helpful.`,
isCustom: false,
isSystem: false,
modelConfiguration: {},
- evaluationInputs: [],
},
}),
} satisfies {
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 7190d469800..fbb92d6caa4 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,5 @@
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 { buildAgentTurnEvaluationStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-evaluation-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 { 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';
@@ -53,7 +52,6 @@ type StandardFieldBuilder<P extends AllStandardObjectName> = (
) => Record<string, FlatFieldMetadata>;
const STANDARD_FLAT_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = {
- agentTurnEvaluation: buildAgentTurnEvaluationStandardFlatFieldMetadatas,
campaignDelivery: buildCampaignDeliveryStandardFlatFieldMetadatas,
messageSuppression: buildMessageSuppressionStandardFlatFieldMetadatas,
agentMessagePart: buildAgentMessagePartStandardFlatFieldMetadatas,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-evaluation-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-evaluation-standard-flat-field-metadata.util.ts
deleted file mode 100644
index fc6c1b82aba..00000000000
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-evaluation-standard-flat-field-metadata.util.ts
+++ /dev/null
@@ -1,183 +0,0 @@
-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 buildAgentTurnEvaluationStandardFlatFieldMetadatas = (
- args: Omit<
- CreateStandardFieldArgs<'agentTurnEvaluation', FieldMetadataType>,
- 'context'
- >,
-): Record<
- AllStandardObjectFieldName<'agentTurnEvaluation'>,
- 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,
- },
- score: {
- ...createStandardFieldFlatMetadata({
- ...args,
- context: {
- fieldName: 'score',
- type: FieldMetadataType.NUMBER,
- label: i18nLabel(
- msg({ message: 'Score', context: 'fieldMetadata.label' }),
- ),
- description: i18nLabel(
- msg({ message: 'Score', context: 'fieldMetadata.description' }),
- ),
- icon: 'IconNumber',
- isSystem: true,
- isUIEditable: false,
- isNullable: false,
- },
- }),
- writability: MetadataWritability.SYSTEM,
- isAuditLogged: false,
- },
- comment: {
- ...createStandardFieldFlatMetadata({
- ...args,
- context: {
- fieldName: 'comment',
- type: FieldMetadataType.TEXT,
- label: i18nLabel(
- msg({ message: 'Comment', context: 'fieldMetadata.label' }),
- ),
- description: i18nLabel(
- msg({ message: 'Comment', context: 'fieldMetadata.description' }),
- ),
- icon: 'IconText',
- isSystem: true,
- isUIEditable: false,
- isNullable: true,
- },
- }),
- 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,
- },
- turn: {
- ...createStandardRelationFieldFlatMetadata({
- ...args,
- context: {
- fieldName: 'turn',
- type: FieldMetadataType.RELATION,
- label: i18nLabel(
- msg({ message: 'Turn', context: 'fieldMetadata.label' }),
- ),
- description: i18nLabel(
- msg({ message: 'Turn', context: 'fieldMetadata.description' }),
- ),
- icon: 'IconRelationOneToMany',
- isUIEditable: false,
- isNullable: false,
- targetObjectName: 'agentTurn',
- targetFieldName: 'evaluations',
- morphId: null,
- settings: {
- relationType: RelationType.MANY_TO_ONE,
- onDelete: RelationOnDeleteAction.CASCADE,
- joinColumnName: 'turnId',
- },
- },
- }),
- writability: MetadataWritability.SYSTEM,
- isAuditLogged: false,
- },
-});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-standard-flat-field-metadata.util.ts
index 862338b59fa..211398c8eb6 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-standard-flat-field-metadata.util.ts
@@ -183,31 +183,4 @@ export const buildAgentTurnStandardFlatFieldMetadatas = (
writability: MetadataWritability.SYSTEM,
isAuditLogged: false,
},
- evaluations: {
- ...createStandardRelationFieldFlatMetadata({
- ...args,
- context: {
- fieldName: 'evaluations',
- type: FieldMetadataType.RELATION,
- label: i18nLabel(
- msg({ message: 'Evaluations', context: 'fieldMetadata.label' }),
- ),
- description: i18nLabel(
- msg({ message: 'Evaluations', context: 'fieldMetadata.description' }),
- ),
- icon: 'IconRelationOneToMany',
- isUIEditable: false,
- isNullable: true,
- targetObjectName: 'agentTurnEvaluation',
- targetFieldName: 'turn',
- 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/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 e9131f7530b..dbc12dbacf8 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
@@ -1,7 +1,6 @@
import { buildCampaignDeliveryStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-campaign-delivery-standard-flat-index-metadata.util';
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 { buildAgentTurnEvaluationStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-turn-evaluation-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 { 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';
@@ -49,7 +48,6 @@ type StandardIndexBuilder<P extends AllStandardObjectName> = (
) => Record<string, FlatIndexMetadata>;
const STANDARD_FLAT_INDEX_METADATA_BUILDERS_BY_OBJECT_NAME = {
- agentTurnEvaluation: buildAgentTurnEvaluationStandardFlatIndexMetadatas,
campaignDelivery: buildCampaignDeliveryStandardFlatIndexMetadatas,
messageSuppression: buildMessageSuppressionStandardFlatIndexMetadatas,
agentMessagePart: buildAgentMessagePartStandardFlatIndexMetadatas,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-turn-evaluation-standard-flat-index-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-turn-evaluation-standard-flat-index-metadata.util.ts
deleted file mode 100644
index 41f6e3bdb1b..00000000000
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-turn-evaluation-standard-flat-index-metadata.util.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-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 buildAgentTurnEvaluationStandardFlatIndexMetadatas = (
- args: Omit<CreateStandardIndexArgs<'agentTurnEvaluation'>, 'context'>,
-): Record<string, FlatIndexMetadata> => ({
- turnIndex: createStandardIndexFlatMetadata({
- ...args,
- context: {
- indexName: 'turnIndex',
- relatedFieldNames: ['turn'],
- 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 ed6ad72e92e..8a17fc66ee0 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
@@ -269,49 +269,6 @@ export const STANDARD_FLAT_OBJECT_METADATA_BUILDERS_BY_OBJECT_NAME = {
labelIdentifierFieldMetadataName: 'id',
},
}),
- agentTurnEvaluation: (
- args: Omit<
- CreateStandardObjectArgs<'agentTurnEvaluation'>,
- 'context' | 'objectName'
- >,
- ) =>
- createStandardObjectFlatMetadata({
- ...args,
- objectName: 'agentTurnEvaluation',
- context: {
- universalIdentifier:
- STANDARD_OBJECTS.agentTurnEvaluation.universalIdentifier,
- nameSingular: 'agentTurnEvaluation',
- namePlural: 'agentTurnEvaluations',
- labelSingular: i18nLabel(
- msg({
- message: 'Agent turn evaluation',
- context: 'objectMetadata.labelSingular',
- }),
- ),
- labelPlural: i18nLabel(
- msg({
- message: 'Agent turn evaluations',
- context: 'objectMetadata.labelPlural',
- }),
- ),
- description: i18nLabel(
- msg({
- message: 'Agent turn evaluation',
- context: 'objectMetadata.description',
- }),
- ),
- icon: 'IconLego',
- isSystem: true,
- isSearchable: false,
- isAuditLogged: false,
- isUIEditable: false,
- isUICreatable: false,
- readability: MetadataReadability.SYSTEM,
- writability: MetadataWritability.SYSTEM,
- labelIdentifierFieldMetadataName: 'id',
- },
- }),
campaignDelivery: (
args: Omit<
CreateStandardObjectArgs<'campaignDelivery'>,
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 50cb1131745..463cf41c7b7 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
@@ -84,9 +84,6 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an
"AgentResolver.findOneAgent {"applicationTarget":{"argName":"input","idKey":"id","kind":"applicationOwnedEntity","metadataName":"agent","requireApplicationRegistrationOwnership":false,"source":"graphqlArg"},"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AgentResolver.updateOneAgent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AgentRunResolver.runAgent {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
- "AgentTurnResolver.agentTurns {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
- "AgentTurnResolver.evaluateAgentTurn {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
- "AgentTurnResolver.runEvaluationInput {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AiChatUsageResolver.aiChatUsage {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AiGenerateTextController.handleGenerateText {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"AiWorkspaceStatsResolver.findWorkspaceAiStats {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
diff --git a/packages/twenty-server/test/integration/metadata/suites/agent/successful-agent-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/agent/successful-agent-creation.integration-spec.ts
index a1d98012cc3..71c27b36733 100644
--- a/packages/twenty-server/test/integration/metadata/suites/agent/successful-agent-creation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/agent/successful-agent-creation.integration-spec.ts
@@ -45,7 +45,6 @@ describe('Agent creation should succeed', () => {
roleId: null,
isCustom: true,
modelConfiguration: null,
- evaluationInputs: [],
});
});
@@ -71,7 +70,6 @@ describe('Agent creation should succeed', () => {
configuration: {},
},
},
- evaluationInputs: ['test input 1', 'test input 2'],
} as const satisfies CreateAgentInput;
const { data } = await createOneAgent({
expectToFail: false,
diff --git a/packages/twenty-server/test/integration/metadata/suites/agent/successful-agent-update.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/agent/successful-agent-update.integration-spec.ts
index f21a6929524..3394489b4f2 100644
--- a/packages/twenty-server/test/integration/metadata/suites/agent/successful-agent-update.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/agent/successful-agent-update.integration-spec.ts
@@ -21,7 +21,6 @@ describe('Agent update should succeed', () => {
prompt: 'Original prompt',
modelId: TEST_AI_MODEL_ID,
responseFormat: { type: 'text' },
- evaluationInputs: ['input 1'],
},
});
@@ -206,21 +205,6 @@ describe('Agent update should succeed', () => {
});
});
- it('should update agent evaluationInputs', async () => {
- const { data } = await updateOneAgent({
- expectToFail: false,
- input: {
- id: testAgentId,
- evaluationInputs: ['new input 1', 'new input 2', 'new input 3'],
- },
- });
-
- expect(data.updateOneAgent).toMatchObject({
- id: testAgentId,
- evaluationInputs: ['new input 1', 'new input 2', 'new input 3'],
- });
- });
-
it('should update multiple agent properties at once', async () => {
const { data } = await updateOneAgent({
expectToFail: false,
@@ -235,7 +219,6 @@ describe('Agent update should succeed', () => {
type: 'json',
schema: DEFAULT_TOOL_INPUT_SCHEMA as AgentResponseSchema,
},
- evaluationInputs: ['eval 1', 'eval 2'],
},
});
@@ -250,7 +233,6 @@ describe('Agent update should succeed', () => {
type: 'json',
schema: { type: 'object' },
},
- evaluationInputs: ['eval 1', 'eval 2'],
});
});
@@ -293,19 +275,4 @@ describe('Agent update should succeed', () => {
modelConfiguration: null,
});
});
-
- it('should clear evaluationInputs by setting to empty array', async () => {
- const { data } = await updateOneAgent({
- expectToFail: false,
- input: {
- id: testAgentId,
- evaluationInputs: [],
- },
- });
-
- expect(data.updateOneAgent).toMatchObject({
- id: testAgentId,
- evaluationInputs: [],
- });
- });
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/agent/utils/create-one-agent-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/agent/utils/create-one-agent-query-factory.util.ts
index 9e8507ee3c5..7b7db0fabf6 100644
--- a/packages/twenty-server/test/integration/metadata/suites/agent/utils/create-one-agent-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/agent/utils/create-one-agent-query-factory.util.ts
@@ -18,7 +18,6 @@ const DEFAULT_AGENT_GQL_FIELDS = `
isCustom
applicationId
modelConfiguration
- evaluationInputs
createdAt
updatedAt
`;
diff --git a/packages/twenty-server/test/integration/metadata/suites/agent/utils/find-agents-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/agent/utils/find-agents-query-factory.util.ts
index e98a6f0e43c..dd54154d17e 100644
--- a/packages/twenty-server/test/integration/metadata/suites/agent/utils/find-agents-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/agent/utils/find-agents-query-factory.util.ts
@@ -14,7 +14,6 @@ const DEFAULT_AGENT_GQL_FIELDS = `
isCustom
applicationId
modelConfiguration
- evaluationInputs
createdAt
updatedAt
`;
diff --git a/packages/twenty-server/test/integration/metadata/suites/agent/utils/find-one-agent-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/agent/utils/find-one-agent-query-factory.util.ts
index c77c43bbe6d..08bd7d84a15 100644
--- a/packages/twenty-server/test/integration/metadata/suites/agent/utils/find-one-agent-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/agent/utils/find-one-agent-query-factory.util.ts
@@ -18,7 +18,6 @@ const DEFAULT_AGENT_GQL_FIELDS = `
isCustom
applicationId
modelConfiguration
- evaluationInputs
createdAt
updatedAt
`;
diff --git a/packages/twenty-server/test/integration/metadata/suites/agent/utils/update-one-agent-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/agent/utils/update-one-agent-query-factory.util.ts
index 8d4e613fd84..1f571c506ab 100644
--- a/packages/twenty-server/test/integration/metadata/suites/agent/utils/update-one-agent-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/agent/utils/update-one-agent-query-factory.util.ts
@@ -18,7 +18,6 @@ const DEFAULT_AGENT_GQL_FIELDS = `
isCustom
applicationId
modelConfiguration
- evaluationInputs
createdAt
updatedAt
`;
diff --git a/packages/twenty-server/test/integration/upgrade/suites/2-42-workspace-command-1789914239896-migrate-agent-history-to-workspace.integration-spec.ts b/packages/twenty-server/test/integration/upgrade/suites/2-42-workspace-command-1789914239896-migrate-agent-history-to-workspace.integration-spec.ts
index 5a6e2930cb5..30da1176c1e 100644
--- a/packages/twenty-server/test/integration/upgrade/suites/2-42-workspace-command-1789914239896-migrate-agent-history-to-workspace.integration-spec.ts
+++ b/packages/twenty-server/test/integration/upgrade/suites/2-42-workspace-command-1789914239896-migrate-agent-history-to-workspace.integration-spec.ts
@@ -10,7 +10,7 @@ import { getAppProviderByClassName } from 'test/integration/utils/get-app-provid
import { getCoreRepository } from 'test/integration/utils/get-core-repository.util';
import { type DataSource } from 'typeorm';
-import { AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
+import { ACTIVE_AGENT_HISTORY_TABLES } from 'src/database/commands/agent-history/agent-history-tables.constant';
import { type MigrateAgentHistoryToWorkspaceCommand } from 'src/database/commands/upgrade-version-command/2-42/2-42-workspace-command-1789914239896-migrate-agent-history-to-workspace.command';
import { DropCoreAgentHistoryTablesFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-47/2-47-instance-command-fast-1791094130961-drop-core-agent-history-tables';
import { type ProvisionAgentChatThreadTargetCommand } from 'src/database/commands/upgrade-version-command/2-43/2-43-workspace-command-1790317893308-provision-agent-chat-thread-target.command';
@@ -157,7 +157,9 @@ describe('versioned agent history upgrade (integration)', () => {
await describeAgentChatThreadTarget(dataSource);
// Later objects relate into history and would be stranded when the thread object is deleted.
- const historyObjectNames = AGENT_HISTORY_TABLES.map(({ name }) => name);
+ const historyObjectNames = ACTIVE_AGENT_HISTORY_TABLES.map(
+ ({ name }) => name,
+ );
const laterObjectNames = (
await dataSource.query<{ nameSingular: string }[]>(
`SELECT DISTINCT objectMetadata."nameSingular"
@@ -192,7 +194,7 @@ describe('versioned agent history upgrade (integration)', () => {
for (const { typname } of laterObjectEnumTypes) {
await dataSource.query(`DROP TYPE "${SCHEMA}"."${typname}"`);
}
- for (const { name } of [...AGENT_HISTORY_TABLES].reverse()) {
+ for (const { name } of [...ACTIVE_AGENT_HISTORY_TABLES].reverse()) {
await dataSource.query(`DROP TABLE "${SCHEMA}"."${name}" CASCADE`);
}
// Pre-upgrade workspaces lack the attachment side too, and the deletion above only cascades its metadata.
@@ -398,7 +400,7 @@ describe('versioned agent history upgrade (integration)', () => {
expect(
await dataSource.query(
'SELECT id FROM core."objectMetadata" WHERE "workspaceId" = $1 AND "nameSingular" = ANY($2)',
- [WORKSPACE_ID, AGENT_HISTORY_TABLES.map(({ name }) => name)],
+ [WORKSPACE_ID, ACTIVE_AGENT_HISTORY_TABLES.map(({ name }) => name)],
),
).toHaveLength(0);
@@ -414,9 +416,9 @@ describe('versioned agent history upgrade (integration)', () => {
expect(
await dataSource.query(
'SELECT id FROM core."objectMetadata" WHERE "workspaceId" = $1 AND "nameSingular" = ANY($2)',
- [WORKSPACE_ID, AGENT_HISTORY_TABLES.map(({ name }) => name)],
+ [WORKSPACE_ID, ACTIVE_AGENT_HISTORY_TABLES.map(({ name }) => name)],
),
- ).toHaveLength(5);
+ ).toHaveLength(ACTIVE_AGENT_HISTORY_TABLES.length);
await heartbeat.clear(streamId);
await runCommand('up');
diff --git a/packages/twenty-server/test/integration/upgrade/suites/2-46-workspace-command-1791216273979-drop-agent-turn-evaluation-object.integration-spec.ts b/packages/twenty-server/test/integration/upgrade/suites/2-46-workspace-command-1791216273979-drop-agent-turn-evaluation-object.integration-spec.ts
new file mode 100644
index 00000000000..b52079e13f5
--- /dev/null
+++ b/packages/twenty-server/test/integration/upgrade/suites/2-46-workspace-command-1791216273979-drop-agent-turn-evaluation-object.integration-spec.ts
@@ -0,0 +1,99 @@
+import { createOneObjectMetadata } from 'test/integration/metadata/suites/object-metadata/utils/create-one-object-metadata.util';
+import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';
+
+import { type DropAgentTurnEvaluationObjectCommand } from 'src/database/commands/upgrade-version-command/2-46/2-46-workspace-command-1791216273979-drop-agent-turn-evaluation-object.command';
+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 AGENT_TURN_EVALUATION_OBJECT_UNIVERSAL_IDENTIFIER =
+ '73741409-7835-426f-8425-9de13af22302';
+
+const RUN_ON_WORKSPACE_ARGS = {
+ workspaceId: SEED_APPLE_WORKSPACE_ID,
+ options: {},
+ index: 0,
+ total: 1,
+};
+
+describe('2-46 workspace command - drop agent turn evaluation object (integration)', () => {
+ let command: DropAgentTurnEvaluationObjectCommand;
+ let workspaceCacheService: WorkspaceCacheService;
+ let objectMetadataId: string;
+
+ const findEvaluationObject = async () => {
+ const { flatObjectMetadataMaps } =
+ await workspaceCacheService.getOrRecompute(SEED_APPLE_WORKSPACE_ID, [
+ 'flatObjectMetadataMaps',
+ ]);
+
+ return flatObjectMetadataMaps.byUniversalIdentifier[
+ AGENT_TURN_EVALUATION_OBJECT_UNIVERSAL_IDENTIFIER
+ ];
+ };
+
+ const countEvaluationTables = async () => {
+ const [{ count }] = await global.testDataSource.query(
+ `SELECT count(*) FROM information_schema.tables
+ WHERE table_schema = $1 AND table_name ILIKE '%legacyTurnEvaluation%'`,
+ [getWorkspaceSchemaName(SEED_APPLE_WORKSPACE_ID)],
+ );
+
+ return Number(count);
+ };
+
+ beforeAll(async () => {
+ command = getAppProviderByClassName<DropAgentTurnEvaluationObjectCommand>(
+ 'DropAgentTurnEvaluationObjectCommand',
+ );
+ workspaceCacheService = getAppProviderByClassName<WorkspaceCacheService>(
+ 'WorkspaceCacheService',
+ );
+
+ const { data } = await createOneObjectMetadata({
+ expectToFail: false,
+ input: {
+ nameSingular: 'legacyTurnEvaluation',
+ namePlural: 'legacyTurnEvaluations',
+ labelSingular: 'Legacy turn evaluation',
+ labelPlural: 'Legacy turn evaluations',
+ icon: 'IconLego',
+ },
+ });
+
+ objectMetadataId = data.createOneObject.id;
+
+ // Stands in for the object a workspace provisioned before 2.46
+ await global.testDataSource.query(
+ `UPDATE core."objectMetadata" SET "universalIdentifier" = $1 WHERE id = $2`,
+ [AGENT_TURN_EVALUATION_OBJECT_UNIVERSAL_IDENTIFIER, objectMetadataId],
+ );
+ await workspaceCacheService.invalidateAndRecompute(
+ SEED_APPLE_WORKSPACE_ID,
+ ['flatObjectMetadataMaps'],
+ );
+ });
+
+ it('deletes the object and its table', async () => {
+ expect(await findEvaluationObject()).toBeDefined();
+ expect(await countEvaluationTables()).toBe(1);
+
+ await command.runOnWorkspace(RUN_ON_WORKSPACE_ARGS);
+
+ expect(await findEvaluationObject()).toBeUndefined();
+ expect(await countEvaluationTables()).toBe(0);
+ expect(
+ await global.testDataSource.query(
+ `SELECT id FROM core."objectMetadata" WHERE id = $1`,
+ [objectMetadataId],
+ ),
+ ).toEqual([]);
+ });
+
+ it('changes nothing when it runs again', async () => {
+ await expect(
+ command.runOnWorkspace(RUN_ON_WORKSPACE_ARGS),
+ ).resolves.toBeUndefined();
+ expect(await findEvaluationObject()).toBeUndefined();
+ });
+});
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 eec10538805..89c226de916 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
@@ -366,9 +366,6 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"deletedAt": {
"universalIdentifier": "daf50675-315c-51af-95a1-e05dd59989ce",
},
- "evaluations": {
- "universalIdentifier": "282b4815-9c5e-4897-8f9a-a4587af6b0e2",
- },
"id": {
"universalIdentifier": "6dd07216-fc15-54d1-ba30-2748dcf55720",
},
@@ -392,37 +389,6 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
},
"universalIdentifier": "63697477-8606-415e-86cb-be078d7fcf7e",
},
- "agentTurnEvaluation": {
- "fields": {
- "comment": {
- "universalIdentifier": "f5531d3b-c8f5-4d92-bf72-d5fd8e2697b0",
- },
- "createdAt": {
- "universalIdentifier": "a0e7e222-4d22-59b2-9d4a-108193e3e3ab",
- },
- "deletedAt": {
- "universalIdentifier": "128e9ba5-d735-5f2c-8a86-437af196f4c5",
- },
- "id": {
- "universalIdentifier": "f100558f-f1cd-5e5e-a3c6-c214227f2850",
- },
- "score": {
- "universalIdentifier": "a4313259-d43b-4d10-abf5-2426e152c10b",
- },
- "turn": {
- "universalIdentifier": "c67ddcf0-2812-476a-87dc-cf8a683805aa",
- },
- "updatedAt": {
- "universalIdentifier": "6cd30693-18b4-509b-9418-a185f98d0c03",
- },
- },
- "indexes": {
- "turnIndex": {
- "universalIdentifier": "f85d8283-84ae-4343-8328-8c4e21c5b984",
- },
- },
- "universalIdentifier": "73741409-7835-426f-8425-9de13af22302",
- },
"attachment": {
"fields": {
"createdAt": {
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 a068f871d8e..349a78bb8e1 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
@@ -141,9 +141,6 @@ export const STANDARD_OBJECT_FIELDS = {
agentId: { universalIdentifier: '4ac55a9a-95e8-4fd9-8c03-47ee3b618ae7' },
thread: { universalIdentifier: '4e9b4f1f-c1bb-42d0-bb38-eb2b2f830e64' },
messages: { universalIdentifier: '737c3559-ea1a-4269-aea4-e672b17afbb1' },
- evaluations: {
- universalIdentifier: '282b4815-9c5e-4897-8f9a-a4587af6b0e2',
- },
},
agentMessage: {
...buildStandardObjectBaseFields(
@@ -225,14 +222,6 @@ export const STANDARD_OBJECT_FIELDS = {
},
message: { universalIdentifier: 'efd41407-a49d-4a3a-97b4-94fd180e7652' },
},
- agentTurnEvaluation: {
- ...buildStandardObjectBaseFields(
- STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentTurnEvaluation,
- ),
- score: { universalIdentifier: 'a4313259-d43b-4d10-abf5-2426e152c10b' },
- comment: { universalIdentifier: 'f5531d3b-c8f5-4d92-bf72-d5fd8e2697b0' },
- turn: { universalIdentifier: 'c67ddcf0-2812-476a-87dc-cf8a683805aa' },
- },
campaignDelivery: {
...buildStandardObjectBaseFields(
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.campaignDelivery,
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 f1fddd1e87f..1fd05b68eec 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,7 +6,6 @@ export const STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS = {
agentTurn: '63697477-8606-415e-86cb-be078d7fcf7e',
agentMessage: '62d0354c-3b99-4769-b0f5-4e2651c2ca7d',
agentMessagePart: '214bacb0-df89-494e-be42-e5b11c99cff6',
- agentTurnEvaluation: '73741409-7835-426f-8425-9de13af22302',
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 a566e5aec31..6ef68768183 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
@@ -1503,16 +1503,6 @@ export const STANDARD_OBJECTS = {
},
},
},
- agentTurnEvaluation: {
- universalIdentifier:
- STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentTurnEvaluation,
- fields: STANDARD_OBJECT_FIELDS.agentTurnEvaluation,
- indexes: {
- turnIndex: {
- universalIdentifier: 'f85d8283-84ae-4343-8328-8c4e21c5b984',
- },
- },
- },
campaignDelivery: {
universalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.campaignDelivery,
fields: STANDARD_OBJECT_FIELDS.campaignDelivery,