Skip to content

The open alternative to Salesforce, designed for AI.

Drop isCustom from agent, skill, view, index and agentChatChannel (#29052)

Félix Malfaitf30dcf596410
diff --git a/packages/twenty-cli/docs/commands.md b/packages/twenty-cli/docs/commands.md
index ee487f4f565..fbccbf5f591 100644
--- a/packages/twenty-cli/docs/commands.md
+++ b/packages/twenty-cli/docs/commands.md
@@ -432,7 +432,7 @@ failures restore the previous files and baseline.
Failures in reconciliation report `error.details.outcome`: `unchanged` after an acknowledged refusal, cancellation before writing or successful rollback; `unknown` if a worker stops without acknowledging completion or rollback fails; `pulled` if writes and baseline completed but temporary-file cleanup failed. An interrupted worker can leave files partially written; inspect the changes and retained `.twenty/cli/pull-backup-*` files before retrying. A failed rollback also reports `backupDirectory`. Ctrl+C exits 130 unless the worker acknowledges a completed commit, in which case pull returns its result.
-The current export contains metadata and translations, not application source assets or dependency files. Workflows are written as `defineWorkflow` files in `src/workflows`; a workflow changed in the workflow builder, or one using steps or references an application cannot declare, is reported as a coverage gap and its local file is kept. Skills and agents are written as `defineSkill` and `defineAgent` files in `src/skills` and `src/agents`; one the server cannot reproduce from a definition, such as an agent created in the workspace, is reported as a coverage gap and its local file is kept. Logic-function/front-component code and unsupported metadata are not regenerated. An export with nonempty `files` is refused before writing. Package files, dependency pins and the installed generated client are left alone; pull never installs dependencies. Each export response is limited to 16 MiB. See the [pull implementation](../src/app/pull/README.md) for reconciliation and compatibility details.
+The current export contains metadata and translations, not application source assets or dependency files. Workflows are written as `defineWorkflow` files in `src/workflows`; a workflow changed in the workflow builder, or one using steps or references an application cannot declare, is reported as a coverage gap and its local file is kept. Skills and agents are written as `defineSkill` and `defineAgent` files in `src/skills` and `src/agents`; one the server cannot reproduce from a definition, such as an agent on more than one role, is reported as a coverage gap and its local file is kept. Logic-function/front-component code and unsupported metadata are not regenerated. An export with nonempty `files` is refused before writing. Package files, dependency pins and the installed generated client are left alone; pull never installs dependencies. Each export response is limited to 16 MiB. See the [pull implementation](../src/app/pull/README.md) for reconciliation and compatibility details.
## Install a registered app
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index e9df26184ea..ff166a39642 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -17,7 +17,7 @@ type Agent {
description: String
icon: String
id: UUID!
- isCustom: Boolean!
+ isCustom: Boolean! @deprecated(reason: "Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead.")
isSystem: Boolean!
label: String!
modelConfiguration: JSON
@@ -31,11 +31,12 @@ type Agent {
}
type AgentChatChannel {
+ applicationId: UUID!
color: String
icon: String
id: UUID!
isAccessible: Boolean
- isCustom: Boolean!
+ isCustom: Boolean! @deprecated(reason: "Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead.")
name: String!
position: Float!
roleIds: [UUID!]!
@@ -2608,12 +2609,14 @@ type Impersonate {
}
type Index {
+ applicationId: UUID!
createdAt: DateTime!
id: UUID!
indexFieldMetadataList: [IndexField!]!
indexType: IndexType!
indexWhereClause: String
- isCustom: Boolean
+ isCustom: Boolean @deprecated(reason: "Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead.")
+ isSystemSideEffect: Boolean!
isUnique: Boolean!
name: String!
updatedAt: DateTime!
@@ -2639,7 +2642,7 @@ type IndexField {
input IndexFilter {
and: [IndexFilter!]
id: UUIDFilterComparison
- isCustom: BooleanFieldComparison
+ isCustom: BooleanFieldComparison @deprecated(reason: "Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead.")
or: [IndexFilter!]
}
@@ -4664,7 +4667,7 @@ type Skill {
icon: String
id: UUID!
isActive: Boolean!
- isCustom: Boolean!
+ isCustom: Boolean! @deprecated(reason: "Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead.")
isSystem: Boolean!
label: String!
name: String!
@@ -5872,7 +5875,7 @@ type View {
id: UUID!
isActive: Boolean!
isCompact: Boolean!
- isCustom: Boolean!
+ isCustom: Boolean! @deprecated(reason: "Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead.")
isSystemSideEffect: Boolean!
kanbanAggregateOperation: AggregateOperations
kanbanAggregateOperationFieldMetadataId: UUID
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 1369db00350..71dc679e987 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -20,6 +20,7 @@ export interface Agent {
description?: Scalars['String']
icon?: Scalars['String']
id: Scalars['UUID']
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom: Scalars['Boolean']
isSystem: Scalars['Boolean']
label: Scalars['String']
@@ -35,10 +36,12 @@ export interface Agent {
}
export interface AgentChatChannel {
+ applicationId: Scalars['UUID']
color?: Scalars['String']
icon?: Scalars['String']
id: Scalars['UUID']
isAccessible?: Scalars['Boolean']
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom: Scalars['Boolean']
name: Scalars['String']
position: Scalars['Float']
@@ -1746,12 +1749,15 @@ export interface Impersonate {
}
export interface Index {
+ applicationId: Scalars['UUID']
createdAt: Scalars['DateTime']
id: Scalars['UUID']
indexFieldMetadataList: IndexField[]
indexType: IndexType
indexWhereClause?: Scalars['String']
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom?: Scalars['Boolean']
+ isSystemSideEffect: Scalars['Boolean']
isUnique: Scalars['Boolean']
name: Scalars['String']
updatedAt: Scalars['DateTime']
@@ -3409,6 +3415,7 @@ export interface Skill {
icon?: Scalars['String']
id: Scalars['UUID']
isActive: Scalars['Boolean']
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom: Scalars['Boolean']
isSystem: Scalars['Boolean']
label: Scalars['String']
@@ -3848,6 +3855,7 @@ export interface View {
id: Scalars['UUID']
isActive: Scalars['Boolean']
isCompact: Scalars['Boolean']
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom: Scalars['Boolean']
isSystemSideEffect: Scalars['Boolean']
kanbanAggregateOperation?: AggregateOperations
@@ -4207,6 +4215,7 @@ export interface AgentGenqlSelection{
description?: boolean | number
icon?: boolean | number
id?: boolean | number
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom?: boolean | number
isSystem?: boolean | number
label?: boolean | number
@@ -4223,10 +4232,12 @@ export interface AgentGenqlSelection{
}
export interface AgentChatChannelGenqlSelection{
+ applicationId?: boolean | number
color?: boolean | number
icon?: boolean | number
id?: boolean | number
isAccessible?: boolean | number
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom?: boolean | number
name?: boolean | number
position?: boolean | number
@@ -6212,12 +6223,15 @@ export interface ImpersonateGenqlSelection{
}
export interface IndexGenqlSelection{
+ applicationId?: boolean | number
createdAt?: boolean | number
id?: boolean | number
indexFieldMetadataList?: IndexFieldGenqlSelection
indexType?: boolean | number
indexWhereClause?: boolean | number
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom?: boolean | number
+ isSystemSideEffect?: boolean | number
isUnique?: boolean | number
name?: boolean | number
updatedAt?: boolean | number
@@ -7988,6 +8002,7 @@ export interface SkillGenqlSelection{
icon?: boolean | number
id?: boolean | number
isActive?: boolean | number
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom?: boolean | number
isSystem?: boolean | number
label?: boolean | number
@@ -8704,6 +8719,7 @@ export interface ViewGenqlSelection{
id?: boolean | number
isActive?: boolean | number
isCompact?: boolean | number
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom?: boolean | number
isSystemSideEffect?: boolean | number
kanbanAggregateOperation?: boolean | number
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index 964b94e78ea..b33c9e700c0 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -202,6 +202,9 @@ export default {
},
"Boolean": {},
"AgentChatChannel": {
+ "applicationId": [
+ 524
+ ],
"color": [
1
],
@@ -5399,6 +5402,9 @@ export default {
]
},
"Index": {
+ "applicationId": [
+ 524
+ ],
"createdAt": [
209
],
@@ -5417,6 +5423,9 @@ export default {
"isCustom": [
4
],
+ "isSystemSideEffect": [
+ 4
+ ],
"isUnique": [
4
],
diff --git a/packages/twenty-docs/developers/extend/apps/logic/logic-functions.mdx b/packages/twenty-docs/developers/extend/apps/logic/logic-functions.mdx
index 0ee1fafc1a4..4bf26d17eb7 100644
--- a/packages/twenty-docs/developers/extend/apps/logic/logic-functions.mdx
+++ b/packages/twenty-docs/developers/extend/apps/logic/logic-functions.mdx
@@ -1116,7 +1116,7 @@ const { objects } = await metadataClient.query({
nameSingular: true,
namePlural: true,
labelSingular: true,
- isCustom: true,
+ applicationId: true,
},
},
__args: {
diff --git a/packages/twenty-docs/developers/extend/apps/operations/sync-and-recovery.mdx b/packages/twenty-docs/developers/extend/apps/operations/sync-and-recovery.mdx
index 94619897a04..ebe7c1dce93 100644
--- a/packages/twenty-docs/developers/extend/apps/operations/sync-and-recovery.mdx
+++ b/packages/twenty-docs/developers/extend/apps/operations/sync-and-recovery.mdx
@@ -145,7 +145,7 @@ Each entity goes to the file that already defines it, so a second pull rewrites
- **Placed on a default or foreign page layout** — tabs and widgets added to an engine default page layout, or to one owned by another application, are written as standalone `definePageLayoutTab()` and `definePageLayoutWidget()` files, since the identifier they attach to is known.
- **Widgets the export cannot carry yet** — on any layout, including your own, a widget of the deprecated `VIEW` type, a widget showing one of your app's own front components or command menu items, or a widget without a position for its tab's layout mode is reported, and the layout or tab is written without it.
- **Workflows the export cannot carry yet** — a workflow changed in the workflow builder since the last sync, one built in the workspace, a system or private workflow, one with a Code or chat message step, which application workflows don't support, or an email or calendar step, which export doesn't carry yet, and one calling another app's workflow action are reported and left in place. The workspace custom application is the exception for that last case: its workflows may call any app's actions, so they are pulled.
-- **Agents and skills the export cannot carry yet** — agents and skills created in the workspace rather than by your app, a deactivated skill, and an agent with a model configuration or bound to a role pull does not write are reported and left in place.
+- **Agents and skills the export cannot carry yet** — a deactivated skill, and an agent on more than one role or bound to a role pull does not write, are reported and left in place.
- **Workspace runtime state** — member and API-key role assignments, webhooks, per-user navigation and navigation items pinned to a record, all excluded by design.
- **Owned by another application** — reported, never pulled.
diff --git a/packages/twenty-front/scripts/mock-data/generate-object-metadata.ts b/packages/twenty-front/scripts/mock-data/generate-object-metadata.ts
index 3e81106dbcf..737e8290c0e 100644
--- a/packages/twenty-front/scripts/mock-data/generate-object-metadata.ts
+++ b/packages/twenty-front/scripts/mock-data/generate-object-metadata.ts
@@ -52,7 +52,8 @@ const METADATA_QUERY = `
indexWhereClause
indexType
isUnique
- isCustom
+ applicationId
+ isSystemSideEffect
indexFieldMetadataList {
__typename
id
diff --git a/packages/twenty-front/scripts/mock-data/generate-roles.ts b/packages/twenty-front/scripts/mock-data/generate-roles.ts
index bca260dfcf3..02d7bbd2028 100644
--- a/packages/twenty-front/scripts/mock-data/generate-roles.ts
+++ b/packages/twenty-front/scripts/mock-data/generate-roles.ts
@@ -44,7 +44,6 @@ const GET_ROLES_QUERY = `
modelId
responseFormat
roleId
- isCustom
modelConfiguration
applicationId
createdAt
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 81292a13782..580653f112c 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -40,6 +40,7 @@ export type Agent = {
description?: Maybe<Scalars['String']['output']>;
icon?: Maybe<Scalars['String']['output']>;
id: Scalars['UUID']['output'];
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom: Scalars['Boolean']['output'];
isSystem: Scalars['Boolean']['output'];
label: Scalars['String']['output'];
@@ -55,10 +56,12 @@ export type Agent = {
export type AgentChatChannel = {
__typename?: 'AgentChatChannel';
+ applicationId: Scalars['UUID']['output'];
color?: Maybe<Scalars['String']['output']>;
icon?: Maybe<Scalars['String']['output']>;
id: Scalars['UUID']['output'];
isAccessible?: Maybe<Scalars['Boolean']['output']>;
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom: Scalars['Boolean']['output'];
name: Scalars['String']['output'];
position: Scalars['Float']['output'];
@@ -2769,12 +2772,15 @@ export type Impersonate = {
export type Index = {
__typename?: 'Index';
+ applicationId: Scalars['UUID']['output'];
createdAt: Scalars['DateTime']['output'];
id: Scalars['UUID']['output'];
indexFieldMetadataList: Array<IndexField>;
indexType: IndexType;
indexWhereClause?: Maybe<Scalars['String']['output']>;
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom?: Maybe<Scalars['Boolean']['output']>;
+ isSystemSideEffect: Scalars['Boolean']['output'];
isUnique: Scalars['Boolean']['output'];
name: Scalars['String']['output'];
updatedAt: Scalars['DateTime']['output'];
@@ -2801,7 +2807,6 @@ export type IndexField = {
export type IndexFilter = {
and?: InputMaybe<Array<IndexFilter>>;
id?: InputMaybe<UuidFilterComparison>;
- isCustom?: InputMaybe<BooleanFieldComparison>;
or?: InputMaybe<Array<IndexFilter>>;
};
@@ -6907,6 +6912,7 @@ export type Skill = {
icon?: Maybe<Scalars['String']['output']>;
id: Scalars['UUID']['output'];
isActive: Scalars['Boolean']['output'];
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom: Scalars['Boolean']['output'];
isSystem: Scalars['Boolean']['output'];
label: Scalars['String']['output'];
@@ -8144,6 +8150,7 @@ export type View = {
id: Scalars['UUID']['output'];
isActive: Scalars['Boolean']['output'];
isCompact: Scalars['Boolean']['output'];
+ /** @deprecated Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead. */
isCustom: Scalars['Boolean']['output'];
isSystemSideEffect: Scalars['Boolean']['output'];
kanbanAggregateOperation?: Maybe<AggregateOperations>;
@@ -8696,16 +8703,16 @@ export type FindManyTimelineActivityTypesQuery = { __typename?: 'Query', timelin
export type AgentChatThreadParticipantFieldsFragment = { __typename?: 'AgentChatThreadParticipant', id: string, threadId: string, lastReadAt?: string | null, archivedAt?: string | null, snoozedUntil?: string | null, isSubscribed: boolean, lastMentionedAt?: 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, triggers: Array<any>, 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, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, 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 };
+export type SkillFieldsFragment = { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string };
export type ActivateSkillMutationVariables = Exact<{
id: Scalars['UUID']['input'];
}>;
-export type ActivateSkillMutation = { __typename?: 'Mutation', activateSkill: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isCustom: boolean, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } };
+export type ActivateSkillMutation = { __typename?: 'Mutation', activateSkill: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type AddAgentChatMessageReactionMutationVariables = Exact<{
messageId: Scalars['UUID']['input'];
@@ -8743,21 +8750,21 @@ 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, triggers: Array<any>, 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, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type CreateSkillMutationVariables = Exact<{
input: CreateSkillInput;
}>;
-export type CreateSkillMutation = { __typename?: 'Mutation', createSkill: { __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 CreateSkillMutation = { __typename?: 'Mutation', createSkill: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type DeactivateSkillMutationVariables = Exact<{
id: Scalars['UUID']['input'];
}>;
-export type DeactivateSkillMutation = { __typename?: 'Mutation', deactivateSkill: { __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 DeactivateSkillMutation = { __typename?: 'Mutation', deactivateSkill: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type DeleteAgentChatChannelMutationVariables = Exact<{
channelId: Scalars['UUID']['input'];
@@ -8772,7 +8779,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, triggers: Array<any>, 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, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type DeleteQueuedChatMessageMutationVariables = Exact<{
messageId: Scalars['UUID']['input'];
@@ -8786,7 +8793,7 @@ 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 DeleteSkillMutation = { __typename?: 'Mutation', deleteSkill: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type MarkAgentChatThreadAsDoneInChannelMutationVariables = Exact<{
threadId: Scalars['UUID']['input'];
@@ -8878,24 +8885,24 @@ 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, triggers: Array<any>, 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, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type UpdateSkillMutationVariables = Exact<{
input: UpdateSkillInput;
}>;
-export type UpdateSkillMutation = { __typename?: 'Mutation', updateSkill: { __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 UpdateSkillMutation = { __typename?: 'Mutation', updateSkill: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } };
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, triggers: Array<any>, 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, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string }> };
export type FindManySkillsQueryVariables = Exact<{ [key: string]: never; }>;
-export type FindManySkillsQuery = { __typename?: 'Query', skills: Array<{ __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 FindManySkillsQuery = { __typename?: 'Query', skills: Array<{ __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string }> };
export type FindManySkillsForSuggestionQueryVariables = Exact<{ [key: string]: never; }>;
@@ -8907,14 +8914,14 @@ 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, triggers: Array<any>, 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, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string } };
export type FindOneSkillQueryVariables = Exact<{
id: Scalars['UUID']['input'];
}>;
-export type FindOneSkillQuery = { __typename?: 'Query', skill?: { __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 } | null };
+export type FindOneSkillQuery = { __typename?: 'Query', skill?: { __typename?: 'Skill', id: string, name: string, label: string, description?: string | null, icon?: string | null, content: string, isSystem: boolean, isActive: boolean, applicationId?: string | null, createdAt: string, updatedAt: string } | null };
export type GetAgentChatChannelRolesQueryVariables = Exact<{ [key: string]: never; }>;
@@ -8940,7 +8947,7 @@ export type GetAgentChatChannelThreadIdsQuery = { __typename?: 'Query', agentCha
export type GetAgentChatChannelsQueryVariables = Exact<{ [key: string]: never; }>;
-export type GetAgentChatChannelsQuery = { __typename?: 'Query', agentChatChannels: Array<{ __typename?: 'AgentChatChannel', id: string, name: string, icon?: string | null, color?: string | null, position: number, roleIds: Array<string>, isCustom: boolean, isAccessible?: boolean | null }> };
+export type GetAgentChatChannelsQuery = { __typename?: 'Query', agentChatChannels: Array<{ __typename?: 'AgentChatChannel', id: string, name: string, icon?: string | null, color?: string | null, position: number, roleIds: Array<string>, applicationId: string, isAccessible?: boolean | null }> };
export type GetAgentChatOpenThreadsSummaryQueryVariables = Exact<{ [key: string]: never; }>;
@@ -8995,7 +9002,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, createdAt: string, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null, scope: ApplicationVariableScope }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isAuditLogged: 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, createdAt: string, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null, scope: ApplicationVariableScope }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isAuditLogged: 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, applicationId: string, isSystemSideEffect: boolean, 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'];
@@ -9014,7 +9021,7 @@ export type FindOneApplicationQueryVariables = Exact<{
}>;
-export type FindOneApplicationQuery = { __typename?: 'Query', findOneApplication: { __typename?: 'Application', isUninstallBlockedByOtherWorkspaceInstallations: boolean, id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, createdAt: string, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null, scope: ApplicationVariableScope }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isCustom: boolean, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isAuditLogged: 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', isUninstallBlockedByOtherWorkspaceInstallations: boolean, id: string, name: string, description?: string | null, logoUrl?: string | null, version?: string | null, universalIdentifier: string, applicationRegistrationId?: string | null, canBeUninstalled: boolean, autoUpgrade: boolean, createdAt: string, defaultRoleId?: string | null, settingsCustomTabFrontComponentId?: string | null, healthCheckLogicFunctionId?: string | null, availablePackages: any, applicationRegistration?: { __typename?: 'ApplicationRegistrationSummary', id: string, latestAvailableVersion?: string | null, sourceType: ApplicationRegistrationSourceType, logoUrl?: string | null } | null, applicationVariables: Array<{ __typename?: 'ApplicationVariable', id: string, key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null, scope: ApplicationVariableScope }>, agents: Array<{ __typename?: 'Agent', id: string, name: string, label: string, description?: string | null, icon?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: string | null, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, applicationId?: string | null, createdAt: string, updatedAt: string }>, frontComponents: Array<{ __typename?: 'FrontComponent', id: string, name: string, description?: string | null, applicationId: string, componentName: string, builtComponentChecksum: string, universalIdentifier?: string | null, isHeadless: boolean, usesSdkClient: boolean, frontComponentSharedDependenciesChecksum?: string | null, createdAt: string, updatedAt: string }>, commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, label: string, shortLabel?: string | null, icon?: string | null, isPinned: boolean, availabilityType: CommandMenuItemAvailabilityType, conditionalAvailabilityExpression?: string | null, frontComponentId?: string | null, universalIdentifier?: string | null, applicationId?: string | null, createdAt: string, updatedAt: string }>, settingsMenuItems?: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }> | null, objects: Array<{ __typename?: 'Object', id: string, universalIdentifier: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, color?: string | null, description?: string | null, icon?: string | null, isRemote: boolean, isActive: boolean, isSystem: boolean, isAuditLogged: 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, applicationId: string, isSystemSideEffect: boolean, 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'];
@@ -9737,7 +9744,7 @@ export type FindManyNavigationMenuItemsQueryVariables = Exact<{ [key: string]: n
export type FindManyNavigationMenuItemsQuery = { __typename?: 'Query', navigationMenuItems: Array<{ __typename?: 'NavigationMenuItem', id: string, type: NavigationMenuItemType, userWorkspaceId?: string | null, targetRecordId?: string | null, targetObjectMetadataId?: string | null, viewId?: string | null, folderId?: string | null, name?: string | null, link?: string | null, icon?: string | null, color?: string | null, pageLayoutId?: string | null, agentChatChannelId?: string | null, position: number, applicationId?: string | null, createdAt: string, updatedAt: string, targetRecordIdentifier?: { __typename?: 'RecordIdentifier', id: string, labelIdentifier: string, imageIdentifier?: string | null } | null }> };
-export type ObjectMetadataFieldsFragment = { __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, isAuditLogged: 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 }> };
+export type ObjectMetadataFieldsFragment = { __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, isAuditLogged: 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, applicationId: string, isSystemSideEffect: boolean, 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 }> };
export type CreateOneObjectMetadataItemMutationVariables = Exact<{
input: CreateOneObjectInput;
@@ -9788,7 +9795,7 @@ export type CreateOneIndexMetadataItemMutationVariables = Exact<{
}>;
-export type CreateOneIndexMetadataItemMutation = { __typename?: 'Mutation', createOneIndex: { __typename?: 'Index', id: string, name: string, indexType: IndexType, isUnique: boolean, isCustom?: boolean | null, indexWhereClause?: string | null, createdAt: string, updatedAt: string, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> } };
+export type CreateOneIndexMetadataItemMutation = { __typename?: 'Mutation', createOneIndex: { __typename?: 'Index', id: string, name: string, indexType: IndexType, isUnique: boolean, applicationId: string, isSystemSideEffect: boolean, indexWhereClause?: string | null, createdAt: string, updatedAt: string, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: string, fieldMetadataId: string, subFieldName?: string | null, createdAt: string, updatedAt: string, order: number }> } };
export type DeleteOneIndexMetadataItemMutationVariables = Exact<{
idToDelete: Scalars['UUID']['input'];
@@ -9800,7 +9807,7 @@ export type DeleteOneIndexMetadataItemMutation = { __typename?: 'Mutation', dele
export type ObjectMetadataItemsQueryVariables = Exact<{ [key: string]: never; }>;
-export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', edges: Array<{ __typename?: 'ObjectEdge', node: { __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, isAuditLogged: 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 }> } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } };
+export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', edges: Array<{ __typename?: 'ObjectEdge', node: { __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, isAuditLogged: 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, applicationId: string, isSystemSideEffect: boolean, 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 }> } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } };
export type ObjectRecordCountsQueryVariables = Exact<{ [key: string]: never; }>;
@@ -10973,7 +10980,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, canAccessAllAgentChatChannels: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean, applicationId: string, universalIdentifier?: string | null, 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, triggers: Array<any>, 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, canAccessAllAgentChatChannels: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, canBeAssignedToUsers: boolean, canBeAssignedToAgents: boolean, canBeAssignedToApiKeys: boolean, applicationId: string, universalIdentifier?: string | null, 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, isSystem: boolean, modelConfiguration?: any | null, triggers: Array<any>, 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;
@@ -11467,11 +11474,11 @@ export type FindManyMarketplaceAppsForToolTableQueryVariables = Exact<{ [key: st
export type FindManyMarketplaceAppsForToolTableQuery = { __typename?: 'Query', findManyMarketplaceApps: Array<{ __typename?: 'MarketplaceApp', id: string, logoUrl?: string | null }> };
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":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"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":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<AgentFieldsFragment, unknown>;
-export const ObjectMetadataFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isAuditLogged"}},{"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 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":"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":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<AgentFieldsFragment, unknown>;
+export const ObjectMetadataFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isAuditLogged"}},{"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":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"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":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isAuditLogged"}},{"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":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isAuditLogged"}},{"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":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"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>;
@@ -11527,18 +11534,18 @@ export const SendMessageCampaignTestDocument = {"kind":"Document","definitions":
export const ResetTimelineActivityTypeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetTimelineActivityType"},"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":"resetTimelineActivityType"},"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":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]}}]} as unknown as DocumentNode<ResetTimelineActivityTypeMutation, ResetTimelineActivityTypeMutationVariables>;
export const UpdateTimelineActivityTypeIsActiveDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateTimelineActivityTypeIsActive"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateTimelineActivityTypeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateTimelineActivityType"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]}}]} as unknown as DocumentNode<UpdateTimelineActivityTypeIsActiveMutation, UpdateTimelineActivityTypeIsActiveMutationVariables>;
export const FindManyTimelineActivityTypesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyTimelineActivityTypes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"timelineActivityTypes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"emit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"on"}},{"kind":"Field","name":{"kind":"Name","value":"objectUniversalIdentifier"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentUniversalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]}}]} as unknown as DocumentNode<FindManyTimelineActivityTypesQuery, FindManyTimelineActivityTypesQueryVariables>;
-export const ActivateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ActivateSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activateSkill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ActivateSkillMutation, ActivateSkillMutationVariables>;
+export const ActivateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ActivateSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activateSkill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<ActivateSkillMutation, ActivateSkillMutationVariables>;
export const AddAgentChatMessageReactionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddAgentChatMessageReaction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"emoji"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addAgentChatMessageReaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"messageId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}}},{"kind":"Argument","name":{"kind":"Name","value":"emoji"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emoji"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"emoji"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberIds"}},{"kind":"Field","name":{"kind":"Name","value":"agentIds"}},{"kind":"Field","name":{"kind":"Name","value":"hasAssistantReacted"}}]}}]}}]} as unknown as DocumentNode<AddAgentChatMessageReactionMutation, AddAgentChatMessageReactionMutationVariables>;
export const AssignAgentChatThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AssignAgentChatThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"assigneeWorkspaceMemberId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"assignAgentChatThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}},{"kind":"Argument","name":{"kind":"Name","value":"assigneeWorkspaceMemberId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"assigneeWorkspaceMemberId"}}}]}]}}]} as unknown as DocumentNode<AssignAgentChatThreadMutation, AssignAgentChatThreadMutationVariables>;
export const AssignRoleToAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AssignRoleToAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"assignRoleToAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"agentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"roleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"roleId"}}}]}]}}]} as unknown as DocumentNode<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>;
export const CreateAgentChatChannelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateAgentChatChannel"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateAgentChatChannelInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createAgentChatChannel"},"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"}}]}}]}}]} as unknown as DocumentNode<CreateAgentChatChannelMutation, CreateAgentChatChannelMutationVariables>;
-export const CreateOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateAgentInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<CreateOneAgentMutation, CreateOneAgentMutationVariables>;
-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 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":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<CreateOneAgentMutation, CreateOneAgentMutationVariables>;
+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":"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":"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 DeleteAgentChatChannelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteAgentChatChannel"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"destinationChannelId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteAgentChatChannel"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"channelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}}},{"kind":"Argument","name":{"kind":"Name","value":"destinationChannelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"destinationChannelId"}}}]}]}}]} as unknown as DocumentNode<DeleteAgentChatChannelMutation, DeleteAgentChatChannelMutationVariables>;
-export const DeleteOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentIdInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<DeleteOneAgentMutation, DeleteOneAgentMutationVariables>;
+export const 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":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<DeleteOneAgentMutation, DeleteOneAgentMutationVariables>;
export const DeleteQueuedChatMessageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteQueuedChatMessage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteQueuedChatMessage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"messageId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}}}]}]}}]} as unknown as DocumentNode<DeleteQueuedChatMessageMutation, DeleteQueuedChatMessageMutationVariables>;
-export const DeleteSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteSkill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<DeleteSkillMutation, DeleteSkillMutationVariables>;
+export const 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":"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 MarkAgentChatThreadAsDoneInChannelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MarkAgentChatThreadAsDoneInChannel"},"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":"markAgentChatThreadAsDoneInChannel"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}]}]}}]} as unknown as DocumentNode<MarkAgentChatThreadAsDoneInChannelMutation, MarkAgentChatThreadAsDoneInChannelMutationVariables>;
export const MoveAgentChatThreadToChannelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MoveAgentChatThreadToChannel"},"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":"channelId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"moveAgentChatThreadToChannel"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}},{"kind":"Argument","name":{"kind":"Name","value":"channelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}}}]}]}}]} as unknown as DocumentNode<MoveAgentChatThreadToChannelMutation, MoveAgentChatThreadToChannelMutationVariables>;
export const RemoveAgentChatMessageReactionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveAgentChatMessageReaction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"emoji"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeAgentChatMessageReaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"messageId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageId"}}},{"kind":"Argument","name":{"kind":"Name","value":"emoji"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emoji"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"emoji"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceMemberIds"}},{"kind":"Field","name":{"kind":"Name","value":"agentIds"}},{"kind":"Field","name":{"kind":"Name","value":"hasAssistantReacted"}}]}}]}}]} as unknown as DocumentNode<RemoveAgentChatMessageReactionMutation, RemoveAgentChatMessageReactionMutationVariables>;
@@ -11549,17 +11556,17 @@ export const SnoozeAgentChatThreadInChannelDocument = {"kind":"Document","defini
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 UpdateAgentChatChannelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateAgentChatChannel"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateAgentChatChannelInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateAgentChatChannel"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"channelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}}},{"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"}}]}}]}}]} as unknown as DocumentNode<UpdateAgentChatChannelMutation, UpdateAgentChatChannelMutationVariables>;
export const UpdateAgentChatThreadInboxStateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateAgentChatThreadInboxState"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"action"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatInboxAction"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"snoozedUntil"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateAgentChatThreadInboxState"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadIds"}}},{"kind":"Argument","name":{"kind":"Name","value":"action"},"value":{"kind":"Variable","name":{"kind":"Name","value":"action"}}},{"kind":"Argument","name":{"kind":"Name","value":"snoozedUntil"},"value":{"kind":"Variable","name":{"kind":"Name","value":"snoozedUntil"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentChatThreadParticipantFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatThreadParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"lastReadAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedUntil"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscribed"}},{"kind":"Field","name":{"kind":"Name","value":"lastMentionedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateAgentChatThreadInboxStateMutation, UpdateAgentChatThreadInboxStateMutationVariables>;
-export const UpdateOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateAgentInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>;
-export const UpdateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateSkillInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateSkill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateSkillMutation, UpdateSkillMutationVariables>;
-export const FindManyAgentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyAgents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyAgents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindManyAgentsQuery, FindManyAgentsQueryVariables>;
-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 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":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>;
+export const UpdateSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateSkillInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateSkill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"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":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindManyAgentsQuery, FindManyAgentsQueryVariables>;
+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":"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":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneAgentQuery, FindOneAgentQueryVariables>;
-export const FindOneSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"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 FindOneAgentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneAgent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneAgent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneAgentQuery, FindOneAgentQueryVariables>;
+export const FindOneSkillDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneSkill"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"skill"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SkillFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SkillFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Skill"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<FindOneSkillQuery, FindOneSkillQueryVariables>;
export const GetAgentChatChannelRolesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannelRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"canAccessAllAgentChatChannels"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelRolesQuery, GetAgentChatChannelRolesQueryVariables>;
export const GetAgentChatChannelSummariesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannelSummaries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelSummaries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"openCount"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadOpen"}},{"kind":"Field","name":{"kind":"Name","value":"assignedToMeCount"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadAssignedToMe"}},{"kind":"Field","name":{"kind":"Name","value":"snoozedCount"}},{"kind":"Field","name":{"kind":"Name","value":"doneCount"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelSummariesQuery, GetAgentChatChannelSummariesQueryVariables>;
export const GetAgentChatChannelThreadIdsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannelThreadIds"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"status"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatChannelThreadStatus"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"assignment"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AgentChatChannelAssignmentFilter"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannelThreadIds"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"channelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"channelId"}}},{"kind":"Argument","name":{"kind":"Name","value":"status"},"value":{"kind":"Variable","name":{"kind":"Name","value":"status"}}},{"kind":"Argument","name":{"kind":"Name","value":"assignment"},"value":{"kind":"Variable","name":{"kind":"Name","value":"assignment"}}},{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threadIds"}},{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelThreadIdsQuery, GetAgentChatChannelThreadIdsQueryVariables>;
-export const GetAgentChatChannelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"roleIds"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isAccessible"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelsQuery, GetAgentChatChannelsQueryVariables>;
+export const GetAgentChatChannelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatChannels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatChannels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"roleIds"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isAccessible"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatChannelsQuery, GetAgentChatChannelsQueryVariables>;
export const GetAgentChatOpenThreadsSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentChatOpenThreadsSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentChatOpenThreadsSummary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"openThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"needsInputThreadCount"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadOpenThread"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadMentionThread"}},{"kind":"Field","name":{"kind":"Name","value":"hasUnreadAssignedThread"}}]}}]}}]} as unknown as DocumentNode<GetAgentChatOpenThreadsSummaryQuery, GetAgentChatOpenThreadsSummaryQueryVariables>;
export const GetAgentRunsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAgentRuns"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agentRuns"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"agentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"agentId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"threadTitle"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"errorMessage"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"inputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"outputTokens"}},{"kind":"Field","name":{"kind":"Name","value":"credits"}},{"kind":"Field","name":{"kind":"Name","value":"creatorSource"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}},{"kind":"Field","name":{"kind":"Name","value":"input"}},{"kind":"Field","name":{"kind":"Name","value":"reply"}},{"kind":"Field","name":{"kind":"Name","value":"toolNames"}}]}}]}}]} as unknown as DocumentNode<GetAgentRunsQuery, GetAgentRunsQueryVariables>;
export const GetAiChatUsageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetAiChatUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aiChatUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"limitValue"}},{"kind":"Field","name":{"kind":"Name","value":"consumedValue"}},{"kind":"Field","name":{"kind":"Name","value":"periodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}},{"kind":"Field","name":{"kind":"Name","value":"aiChatUserCreditsUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"limitValue"}},{"kind":"Field","name":{"kind":"Name","value":"consumedValue"}},{"kind":"Field","name":{"kind":"Name","value":"periodEnd"}}]}}]}}]} as unknown as DocumentNode<GetAiChatUsageQuery, GetAiChatUsageQueryVariables>;
@@ -11570,7 +11577,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"}}]}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}}]}}]}}]} 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":"Field","name":{"kind":"Name","value":"isUninstallBlockedByOtherWorkspaceInstallations"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isAuditLogged"}},{"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":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationQuery, FindOneApplicationQueryVariables>;
+export const 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":"Field","name":{"kind":"Name","value":"isUninstallBlockedByOtherWorkspaceInstallations"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AgentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Agent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"prompt"}},{"kind":"Field","name":{"kind":"Name","value":"modelId"}},{"kind":"Field","name":{"kind":"Name","value":"responseFormat"}},{"kind":"Field","name":{"kind":"Name","value":"roleId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ObjectMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isAuditLogged"}},{"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":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"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":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsCustomTabFrontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"healthCheckLogicFunctionId"}},{"kind":"Field","name":{"kind":"Name","value":"availablePackages"}},{"kind":"Field","name":{"kind":"Name","value":"applicationVariables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AgentFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"frontComponents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"componentName"}},{"kind":"Field","name":{"kind":"Name","value":"builtComponentChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}},{"kind":"Field","name":{"kind":"Name","value":"usesSdkClient"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentSharedDependenciesChecksum"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"objects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"logicFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LogicFunctionFields"}}]}}]}}]} as unknown as DocumentNode<FindOneApplicationQuery, FindOneApplicationQueryVariables>;
export const FindOneApplicationByUniversalIdentifierDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneApplicationByUniversalIdentifier"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"universalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"universalIdentifier"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]} 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>;
@@ -11656,9 +11663,9 @@ export const UpdateOneFieldMetadataItemDocument = {"kind":"Document","definition
export const UpdateOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateObjectPayload"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneObject"},"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":"idToUpdate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"update"},"value":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}}}]}}],"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":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"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":"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":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}}]}}]}}]} as unknown as DocumentNode<UpdateOneObjectMetadataItemMutation, UpdateOneObjectMetadataItemMutationVariables>;
export const DeleteOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneObject"},"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":"idToDelete"}}}]}}],"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":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"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":"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":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}}]}}]}}]} as unknown as DocumentNode<DeleteOneObjectMetadataItemMutation, DeleteOneObjectMetadataItemMutationVariables>;
export const DeleteOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneField"},"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":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"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":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"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":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"object"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode<DeleteOneFieldMetadataItemMutation, DeleteOneFieldMetadataItemMutationVariables>;
-export const CreateOneIndexMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneIndexMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateOneIndexInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneIndex"},"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":"name"}},{"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":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"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"}}]}}]}}]}}]} as unknown as DocumentNode<CreateOneIndexMetadataItemMutation, CreateOneIndexMetadataItemMutationVariables>;
+export const CreateOneIndexMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneIndexMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateOneIndexInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneIndex"},"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":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"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"}}]}}]}}]}}]} as unknown as DocumentNode<CreateOneIndexMetadataItemMutation, CreateOneIndexMetadataItemMutationVariables>;
export const DeleteOneIndexMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneIndexMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneIndex"},"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":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<DeleteOneIndexMetadataItemMutation, DeleteOneIndexMetadataItemMutationVariables>;
-export const ObjectMetadataItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectMetadataItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}},{"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":"isAuditLogged"}},{"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<ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables>;
+export const ObjectMetadataItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectMetadataItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ObjectMetadataFields"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}},{"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":"isAuditLogged"}},{"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":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"isSystemSideEffect"}},{"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<ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables>;
export const ObjectRecordCountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectRecordCounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectRecordCounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectNamePlural"}},{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}}]}}]} as unknown as DocumentNode<ObjectRecordCountsQuery, ObjectRecordCountsQueryVariables>;
export const MostlyEmptyFieldMetadataIdsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MostlyEmptyFieldMetadataIds"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"objectMetadataId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mostlyEmptyFieldMetadataIds"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"objectMetadataId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"objectMetadataId"}}}]}]}}]} as unknown as DocumentNode<MostlyEmptyFieldMetadataIdsQuery, MostlyEmptyFieldMetadataIdsQueryVariables>;
export const RemoveRecordShareDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveRecordShare"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"target"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTargetInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"principal"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharePrincipalInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeRecordShare"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"target"},"value":{"kind":"Variable","name":{"kind":"Name","value":"target"}}},{"kind":"Argument","name":{"kind":"Name","value":"principal"},"value":{"kind":"Variable","name":{"kind":"Name","value":"principal"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RecordSharingFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RecordSharingFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordSharingDTO"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sharingMode"}},{"kind":"Field","name":{"kind":"Name","value":"canManageSharing"}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"canDelete"}},{"kind":"Field","name":{"kind":"Name","value":"canSoftDelete"}}]}},{"kind":"Field","name":{"kind":"Name","value":"generalAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"defaultGeneralAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"hasManagedGeneralAccess"}},{"kind":"Field","name":{"kind":"Name","value":"shares"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"principalType"}},{"kind":"Field","name":{"kind":"Name","value":"principalRoleId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"rowCause"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"canRead"}},{"kind":"Field","name":{"kind":"Name","value":"canUpdate"}}]}}]}}]} as unknown as DocumentNode<RemoveRecordShareMutation, RemoveRecordShareMutationVariables>;
@@ -11787,7 +11794,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":"canAccessAllAgentChatChannels"}},{"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":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}}]}},{"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":"canAccessAllAgentChatChannels"}},{"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":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}}]}},{"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":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"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":"canAccessAllAgentChatChannels"}},{"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":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}}]}},{"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":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"modelConfiguration"}},{"kind":"Field","name":{"kind":"Name","value":"triggers"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"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/components/NavigationDrawerAiChatChannelActionsDropdown.tsx b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelActionsDropdown.tsx
index 6f90a8f9daa..14fe9868228 100644
--- a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelActionsDropdown.tsx
+++ b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelActionsDropdown.tsx
@@ -14,12 +14,11 @@ import { NavigationDrawerAiChatChannelRolesSubmenu } from '@/ai/components/Navig
import { useAddAgentChatChannelToFavorites } from '@/ai/hooks/useAddAgentChatChannelToFavorites';
import { useIsAgentChatChannelFavorite } from '@/ai/hooks/useIsAgentChatChannelFavorite';
import { useRemoveAgentChatChannelFromFavorites } from '@/ai/hooks/useRemoveAgentChatChannelFromFavorites';
+import { useGetIsMetadataItemCustom } from '@/object-metadata/hooks/useGetIsMetadataItemCustom';
import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
import { DropdownRoot } from '@/ui/layout/dropdown/components/DropdownRoot';
-import {
- type AgentChatChannel,
- type UpdateAgentChatChannelInput,
-} from '~/generated-metadata/graphql';
+import { type AgentChatChannel } from '@/ai/types/AgentChatChannel';
+import { type UpdateAgentChatChannelInput } from '~/generated-metadata/graphql';
type NavigationDrawerAiChatChannelActionsDropdownProps = {
channel: AgentChatChannel;
@@ -43,6 +42,7 @@ export const NavigationDrawerAiChatChannelActionsDropdown = ({
onDelete,
}: NavigationDrawerAiChatChannelActionsDropdownProps) => {
const { t } = useLingui();
+ const getIsMetadataItemCustom = useGetIsMetadataItemCustom();
const isAgentChatChannelFavorite = useIsAgentChatChannelFavorite(channel.id);
const { addAgentChatChannelToFavorites } =
useAddAgentChatChannelToFavorites();
@@ -91,7 +91,7 @@ export const NavigationDrawerAiChatChannelActionsDropdown = ({
roleIds={channel.roleIds}
onChange={(roleIds) => onUpdate({ roleIds })}
/>
- {channel.isCustom &&
+ {getIsMetadataItemCustom(channel) &&
(destinationChannels.length === 0 ? (
<Dropdown.ActionItem
color="danger"
diff --git a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelItem.tsx b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelItem.tsx
index ce337667b33..c33c0ab670e 100644
--- a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelItem.tsx
+++ b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelItem.tsx
@@ -22,7 +22,7 @@ import { isDropdownOpenComponentState } from '@/ui/layout/dropdown/states/isDrop
import { NavigationDrawerInput } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerInput';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { type AgentChatChannel } from '~/generated-metadata/graphql';
+import { type AgentChatChannel } from '@/ai/types/AgentChatChannel';
import { isAiChatInboxPath } from '~/utils/isAiChatInboxPath';
const StyledIconPickerTrigger = styled.div`
diff --git a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelNavigation.tsx b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelNavigation.tsx
index dcdc2120b63..d8b61ac579b 100644
--- a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelNavigation.tsx
+++ b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatChannelNavigation.tsx
@@ -9,12 +9,12 @@ import { type AgentChatChannelSummary } from '@/ai/types/AgentChatChannelSummary
import { type AgentChatChannelView } from '@/ai/types/AgentChatChannelView';
import { getAgentChatChannelNavigationItemOrThrow } from '@/ai/utils/getAgentChatChannelNavigationItemOrThrow';
import { getAgentChatChannelViewKey } from '@/ai/utils/getAgentChatChannelViewKey';
+import { type AgentChatChannel } from '@/ai/types/AgentChatChannel';
import { NavigationMenuItemFolderChevron } from '@/navigation-menu-item/display/folder/components/NavigationMenuItemFolderChevron';
import { NavigationDrawerItem } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerItem';
import { NavigationDrawerItemGroup } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerItemGroup';
import { useIsNavigationDrawerContentExpanded } from '@/ui/navigation/navigation-drawer/hooks/useIsNavigationDrawerContentExpanded';
import { getNavigationSubItemLeftAdornment } from '@/ui/navigation/navigation-drawer/utils/getNavigationSubItemLeftAdornment';
-import { type AgentChatChannel } from '~/generated-metadata/graphql';
type NavigationDrawerAiChatChannelNavigationProps = {
channel: AgentChatChannel;
diff --git a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatFavoritesSection.tsx b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatFavoritesSection.tsx
index 1735cb30336..34d81580cd0 100644
--- a/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatFavoritesSection.tsx
+++ b/packages/twenty-front/src/modules/ai/components/NavigationDrawerAiChatFavoritesSection.tsx
@@ -8,10 +8,8 @@ import { type AgentChatThreadListItem } from '@/ai/types/AgentChatThreadListItem
import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFlag';
import { CollapsibleNavigationDrawerSection } from '@/ui/navigation/navigation-drawer/components/CollapsibleNavigationDrawerSection';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import {
- type AgentChatChannel,
- PermissionFlagType,
-} from '~/generated-metadata/graphql';
+import { type AgentChatChannel } from '@/ai/types/AgentChatChannel';
+import { PermissionFlagType } from '~/generated-metadata/graphql';
const AI_CHAT_FAVORITES_NAVIGATION_SECTION_ID = 'AiChatFavorites';
diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxChannelViewDropdown.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxChannelViewDropdown.stories.tsx
index 5b2c66f4f32..4c808c2d79e 100644
--- a/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxChannelViewDropdown.stories.tsx
+++ b/packages/twenty-front/src/modules/ai/components/__stories__/AiChatInboxChannelViewDropdown.stories.tsx
@@ -83,7 +83,7 @@ const meta = {
icon: 'IconBrandShopee',
color: 'green',
isAccessible: true,
- isCustom: true,
+ applicationId: 'workspace-custom-application-id',
position: 1,
roleIds: [],
},
diff --git a/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatChannelNavigation.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatChannelNavigation.stories.tsx
index b358eeabb8a..57f1a57583d 100644
--- a/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatChannelNavigation.stories.tsx
+++ b/packages/twenty-front/src/modules/ai/components/__stories__/NavigationDrawerAiChatChannelNavigation.stories.tsx
@@ -92,7 +92,7 @@ const meta = {
icon: 'IconBrandShopee',
color: 'green',
isAccessible: true,
- isCustom: true,
+ applicationId: 'workspace-custom-application-id',
position: 1,
roleIds: [],
},
diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItem.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItem.test.tsx
index dc43013d46c..249bc0f37bc 100644
--- a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItem.test.tsx
+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItem.test.tsx
@@ -60,7 +60,7 @@ const SALES_CHANNEL = {
icon: 'IconCoins',
color: 'green',
position: 1,
- isCustom: true,
+ applicationId: 'workspace-custom-application-id',
isAccessible: true,
roleIds: [],
};
diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItemActions.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItemActions.test.tsx
index 471e8f68a15..6a977aa85ae 100644
--- a/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItemActions.test.tsx
+++ b/packages/twenty-front/src/modules/ai/components/__tests__/AiChatThreadListItemActions.test.tsx
@@ -43,7 +43,7 @@ const SALES_CHANNEL = {
icon: 'IconCoins',
color: 'green',
position: 1,
- isCustom: true,
+ applicationId: 'workspace-custom-application-id',
isAccessible: true,
roleIds: [],
};
diff --git a/packages/twenty-front/src/modules/ai/components/__tests__/NavigationDrawerAiChatContent.test.tsx b/packages/twenty-front/src/modules/ai/components/__tests__/NavigationDrawerAiChatContent.test.tsx
index 4d938131777..c690d31f79c 100644
--- a/packages/twenty-front/src/modules/ai/components/__tests__/NavigationDrawerAiChatContent.test.tsx
+++ b/packages/twenty-front/src/modules/ai/components/__tests__/NavigationDrawerAiChatContent.test.tsx
@@ -12,7 +12,7 @@ import {
jotaiStore,
resetJotaiStore,
} from '@/ui/utilities/state/jotai/jotaiStore';
-import { type AgentChatChannel } from '~/generated-metadata/graphql';
+import { type AgentChatChannel } from '@/ai/types/AgentChatChannel';
import { messages } from '~/locales/generated/en';
i18n.load({ [SOURCE_LOCALE]: messages });
@@ -177,7 +177,7 @@ describe('NavigationDrawerAiChatContent', () => {
color: null,
position: 1,
roleIds: [],
- isCustom: true,
+ applicationId: 'workspace-custom-application-id',
isAccessible: true,
},
]);
@@ -207,7 +207,7 @@ describe('NavigationDrawerAiChatContent', () => {
color: null,
position: 1,
roleIds: [],
- isCustom: true,
+ applicationId: 'workspace-custom-application-id',
isAccessible: true,
},
]);
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 2db0f6505c5..2110afb4731 100644
--- a/packages/twenty-front/src/modules/ai/graphql/fragments/agentFragment.ts
+++ b/packages/twenty-front/src/modules/ai/graphql/fragments/agentFragment.ts
@@ -11,7 +11,6 @@ export const AGENT_FRAGMENT = gql`
modelId
responseFormat
roleId
- isCustom
isSystem
modelConfiguration
triggers
diff --git a/packages/twenty-front/src/modules/ai/graphql/fragments/skillFragment.ts b/packages/twenty-front/src/modules/ai/graphql/fragments/skillFragment.ts
index 74b0ec9eb3b..b6d186196cb 100644
--- a/packages/twenty-front/src/modules/ai/graphql/fragments/skillFragment.ts
+++ b/packages/twenty-front/src/modules/ai/graphql/fragments/skillFragment.ts
@@ -8,7 +8,6 @@ export const SKILL_FRAGMENT = gql`
description
icon
content
- isCustom
isSystem
isActive
applicationId
diff --git a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannels.ts b/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannels.ts
index c6c69ed4fba..d3d4bf5ef72 100644
--- a/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannels.ts
+++ b/packages/twenty-front/src/modules/ai/graphql/queries/getAgentChatChannels.ts
@@ -9,7 +9,7 @@ export const GET_AGENT_CHAT_CHANNELS = gql`
color
position
roleIds
- isCustom
+ applicationId
isAccessible
}
}
diff --git a/packages/twenty-front/src/modules/ai/states/agentChatChannelsState.ts b/packages/twenty-front/src/modules/ai/states/agentChatChannelsState.ts
index 96b74ee245e..f871c292a23 100644
--- a/packages/twenty-front/src/modules/ai/states/agentChatChannelsState.ts
+++ b/packages/twenty-front/src/modules/ai/states/agentChatChannelsState.ts
@@ -1,5 +1,5 @@
import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
-import { type AgentChatChannel } from '~/generated-metadata/graphql';
+import { type AgentChatChannel } from '@/ai/types/AgentChatChannel';
export const agentChatChannelsState = createAtomState<
AgentChatChannel[] | null
diff --git a/packages/twenty-front/src/modules/ai/states/selectors/agentChatAccessibleChannelsSelector.ts b/packages/twenty-front/src/modules/ai/states/selectors/agentChatAccessibleChannelsSelector.ts
index e5bc39959fd..2a90d2a0145 100644
--- a/packages/twenty-front/src/modules/ai/states/selectors/agentChatAccessibleChannelsSelector.ts
+++ b/packages/twenty-front/src/modules/ai/states/selectors/agentChatAccessibleChannelsSelector.ts
@@ -1,6 +1,6 @@
import { agentChatChannelsState } from '@/ai/states/agentChatChannelsState';
import { createAtomSelector } from '@/ui/utilities/state/jotai/utils/createAtomSelector';
-import { type AgentChatChannel } from '~/generated-metadata/graphql';
+import { type AgentChatChannel } from '@/ai/types/AgentChatChannel';
export const agentChatAccessibleChannelsSelector = createAtomSelector<
AgentChatChannel[]
diff --git a/packages/twenty-front/src/modules/ai/states/selectors/agentChatFavoriteChannelsSelector.ts b/packages/twenty-front/src/modules/ai/states/selectors/agentChatFavoriteChannelsSelector.ts
index acba682d7a2..93c9881082d 100644
--- a/packages/twenty-front/src/modules/ai/states/selectors/agentChatFavoriteChannelsSelector.ts
+++ b/packages/twenty-front/src/modules/ai/states/selectors/agentChatFavoriteChannelsSelector.ts
@@ -4,7 +4,7 @@ import { isDefined } from 'twenty-shared/utils';
import { agentChatAccessibleChannelsSelector } from '@/ai/states/selectors/agentChatAccessibleChannelsSelector';
import { navigationMenuItemsSelector } from '@/navigation-menu-item/common/states/navigationMenuItemsSelector';
import { createAtomSelector } from '@/ui/utilities/state/jotai/utils/createAtomSelector';
-import { type AgentChatChannel } from '~/generated-metadata/graphql';
+import { type AgentChatChannel } from '@/ai/types/AgentChatChannel';
export const agentChatFavoriteChannelsSelector = createAtomSelector<
AgentChatChannel[]
diff --git a/packages/twenty-front/src/modules/ai/types/AgentChatChannel.ts b/packages/twenty-front/src/modules/ai/types/AgentChatChannel.ts
new file mode 100644
index 00000000000..27e46dc9c8a
--- /dev/null
+++ b/packages/twenty-front/src/modules/ai/types/AgentChatChannel.ts
@@ -0,0 +1,3 @@
+import { type AgentChatChannel as AgentChatChannelRow } from '~/generated-metadata/graphql';
+
+export type AgentChatChannel = Omit<AgentChatChannelRow, 'isCustom'>;
diff --git a/packages/twenty-front/src/modules/metadata-store/types/FlatAgent.ts b/packages/twenty-front/src/modules/metadata-store/types/FlatAgent.ts
index 692934965b9..e96c238f566 100644
--- a/packages/twenty-front/src/modules/metadata-store/types/FlatAgent.ts
+++ b/packages/twenty-front/src/modules/metadata-store/types/FlatAgent.ts
@@ -1,3 +1,3 @@
import { type Agent } from '~/generated-metadata/graphql';
-export type FlatAgent = Agent;
+export type FlatAgent = Omit<Agent, 'isCustom'>;
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 6da52a08a53..0bfb858a182 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
@@ -41,6 +41,7 @@ import { type CoreAgentFormValues } from '@/object-core/agents/validation-schema
import { getCoreAgentInitialFormValues } from '@/object-core/agents/utils/getCoreAgentInitialFormValues';
import { isCoreAgentRoleDirty } from '@/object-core/agents/utils/isCoreAgentRoleDirty';
import { isOwnedByInstalledApplication } from '@/applications/utils/isOwnedByInstalledApplication';
+import { getIsMetadataItemCustom } from '@/object-metadata/utils/getIsMetadataItemCustom';
const StyledContentContainer = styled.div`
display: flex;
@@ -154,7 +155,12 @@ export const CoreAgentFormContent = ({ agent }: CoreAgentFormContentProps) => {
isAiChatInboxEnabled &&
activeTabId === CORE_AGENT_DETAIL_TABS.TABS_IDS.RUNS;
- const isFormDisabled = isReadonlyMode || !agent.isCustom;
+ const isFormDisabled =
+ isReadonlyMode ||
+ !getIsMetadataItemCustom(
+ agent,
+ currentWorkspace?.workspaceCustomApplication?.id,
+ );
return (
<>
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentSettingsTab.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentSettingsTab.tsx
index 09e9638b694..330ca354428 100644
--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentSettingsTab.tsx
+++ b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentSettingsTab.tsx
@@ -13,11 +13,12 @@ import { Section } from 'twenty-ui/components/layout';
import { IconTrash } from 'twenty-ui/icon';
import { Button } from 'twenty-ui/primitives/input';
import { themeCssVariables } from 'twenty-ui/theme';
-import { type Agent } from '~/generated-metadata/graphql';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
import { CoreAgentDeleteConfirmationModal } from '@/object-core/agents/components/CoreAgentDeleteConfirmationModal';
import { computeMetadataNameFromLabel } from '@/object-metadata/utils/computeMetadataNameFromLabel';
import { type CoreAgentFormValues } from '@/object-core/agents/validation-schemas/coreAgentFormSchema';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { useGetIsMetadataItemCustom } from '@/object-metadata/hooks/useGetIsMetadataItemCustom';
const StyledFormContainer = styled.div`
display: flex;
@@ -50,7 +51,7 @@ type CoreAgentSettingsTabProps = {
value: CoreAgentFormValues[keyof CoreAgentFormValues],
) => void;
disabled: boolean;
- agent?: Agent;
+ agent?: FlatAgent;
};
export const CoreAgentSettingsTab = ({
@@ -61,6 +62,7 @@ export const CoreAgentSettingsTab = ({
}: CoreAgentSettingsTabProps) => {
const { t } = useLingui();
const { openDialog } = useDialog();
+ const getIsMetadataItemCustom = useGetIsMetadataItemCustom();
const aiModels = useAtomStateValue(aiModelsState);
const noModelsAvailable = aiModels.length === 0;
@@ -145,7 +147,7 @@ export const CoreAgentSettingsTab = ({
disabled={disabled}
/>
</StyledFormContainer>
- {!disabled && agent && formValues.isCustom && (
+ {!disabled && isDefined(agent) && getIsMetadataItemCustom(agent) && (
<Section.Root>
<Section.Header
title={t`Danger zone`}
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 062d7a96e14..a596f273acd 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
@@ -38,7 +38,6 @@ describe('getCoreAgentInitialFormValues', () => {
modelId: 'anthropic/claude-sonnet-5',
role: 'role-id',
prompt: 'You qualify leads.',
- isCustom: true,
modelConfiguration: { webSearch: { enabled: true } },
triggers: [
{
diff --git a/packages/twenty-front/src/modules/object-core/agents/utils/__tests__/isCoreAgentMatchingFilterSettings.test.ts b/packages/twenty-front/src/modules/object-core/agents/utils/__tests__/isCoreAgentMatchingFilterSettings.test.ts
index 5a7430bbb0e..37e593caf62 100644
--- a/packages/twenty-front/src/modules/object-core/agents/utils/__tests__/isCoreAgentMatchingFilterSettings.test.ts
+++ b/packages/twenty-front/src/modules/object-core/agents/utils/__tests__/isCoreAgentMatchingFilterSettings.test.ts
@@ -14,7 +14,6 @@ const buildAgent = (overrides: Partial<CoreAgent>): CoreAgent => ({
label: 'Lead qualifier',
prompt: 'Prompt',
modelId: 'workspace-default-model',
- isCustom: true,
isSystem: false,
triggers: [],
createdAt: '2026-01-01T00:00:00.000Z',
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 48a8589ad41..f289c6561b5 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
@@ -22,7 +22,6 @@ export const getCoreAgentInitialFormValues = (
modelId: agent.modelId,
role: agent.roleId,
prompt: agent.prompt,
- isCustom: agent.isCustom,
modelConfiguration: agent.modelConfiguration || {},
triggers: parseAgentTriggers(agent.triggers ?? []),
};
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 591b5250aac..a1d8b4d4c93 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
@@ -12,7 +12,6 @@ export const coreAgentFormSchema = z.object({
modelId: z.string().min(1, { error: () => t`Model is required` }),
role: z.string().nullish(),
prompt: zodNonEmptyString,
- isCustom: z.boolean().default(true),
modelConfiguration: z
.object({
webSearch: z
diff --git a/packages/twenty-front/src/modules/object-metadata/graphql/fragment.ts b/packages/twenty-front/src/modules/object-metadata/graphql/fragment.ts
index d7c08fbbacc..be83e5788a8 100644
--- a/packages/twenty-front/src/modules/object-metadata/graphql/fragment.ts
+++ b/packages/twenty-front/src/modules/object-metadata/graphql/fragment.ts
@@ -46,7 +46,8 @@ export const OBJECT_METADATA_FRAGMENT = gql`
indexWhereClause
indexType
isUnique
- isCustom
+ applicationId
+ isSystemSideEffect
indexFieldMetadataList {
id
fieldMetadataId
diff --git a/packages/twenty-front/src/modules/object-metadata/graphql/mutations.ts b/packages/twenty-front/src/modules/object-metadata/graphql/mutations.ts
index a7f2b6bd4de..2eab1368c93 100644
--- a/packages/twenty-front/src/modules/object-metadata/graphql/mutations.ts
+++ b/packages/twenty-front/src/modules/object-metadata/graphql/mutations.ts
@@ -286,7 +286,8 @@ export const CREATE_ONE_INDEX_METADATA_ITEM = gql`
name
indexType
isUnique
- isCustom
+ applicationId
+ isSystemSideEffect
indexWhereClause
createdAt
updatedAt
diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts
index 86aab71d84a..f856e6e321f 100644
--- a/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts
+++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts
@@ -14,6 +14,7 @@ export const indexMetadataItemSchema = z.object({
indexType: z.enum(IndexType),
indexWhereClause: z.string().nullable(),
isUnique: z.boolean(),
- isCustom: z.boolean().nullable().optional(),
+ applicationId: z.uuid(),
+ isSystemSideEffect: z.boolean(),
objectMetadata: z.any().optional(),
}) satisfies z.ZodType<IndexMetadataItem>;
diff --git a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/spreadsheetImportGetUnicityTableHook.test.ts b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/spreadsheetImportGetUnicityTableHook.test.ts
index 59e8ce61dfd..2fd6754f7ff 100644
--- a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/spreadsheetImportGetUnicityTableHook.test.ts
+++ b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/spreadsheetImportGetUnicityTableHook.test.ts
@@ -31,6 +31,8 @@ describe('spreadsheetImportGetUnicityTableHook', () => {
name: 'unique_name_idx',
indexType: IndexType.BTREE,
isUnique: true,
+ applicationId: 'application-id',
+ isSystemSideEffect: false,
createdAt: '2024-01-01T00:00:00.000Z',
updatedAt: '2024-01-01T00:00:00.000Z',
indexFieldMetadatas: [
@@ -48,6 +50,8 @@ describe('spreadsheetImportGetUnicityTableHook', () => {
name: 'unique_domain_name_idx',
indexType: IndexType.BTREE,
isUnique: true,
+ applicationId: 'application-id',
+ isSystemSideEffect: false,
createdAt: '2024-01-01T00:00:00.000Z',
updatedAt: '2024-01-01T00:00:00.000Z',
indexFieldMetadatas: [
diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIsUniqueForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIsUniqueForm.tsx
index 5b83ce38f8a..9bae63ba399 100644
--- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIsUniqueForm.tsx
+++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIsUniqueForm.tsx
@@ -1,6 +1,7 @@
import { Controller, useFormContext } from 'react-hook-form';
import { useFieldMetadataItemById } from '@/object-metadata/hooks/useFieldMetadataItemById';
+import { useGetIsMetadataItemCustom } from '@/object-metadata/hooks/useGetIsMetadataItemCustom';
import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';
import { SettingsOptionCardContentSelect } from '@/settings/components/SettingsOptions/SettingsOptionCardContentSelect';
import { canBeUnique } from '@/settings/data-model/fields/forms/utils/canBeUnique';
@@ -29,6 +30,8 @@ export const SettingsDataModelFieldIsUniqueForm = ({
const { control } =
useFormContext<SettingsDataModelFieldIsUniqueFormValues>();
+ const getIsMetadataItemCustom = useGetIsMetadataItemCustom();
+
const { objectMetadataItem } = useObjectMetadataItem({
objectNameSingular,
});
@@ -40,7 +43,7 @@ export const SettingsDataModelFieldIsUniqueForm = ({
const hasStandardUniqueIndex = objectMetadataItem.indexMetadatas.some(
(index) =>
index.isUnique &&
- !index.isCustom &&
+ !getIsMetadataItemCustom(index) &&
index.indexFieldMetadatas?.some(
(field) => field.fieldMetadataId === existingFieldMetadataId,
),
diff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectIndexesSection.tsx b/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectIndexesSection.tsx
index 005f815daf2..805be965c43 100644
--- a/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectIndexesSection.tsx
+++ b/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectIndexesSection.tsx
@@ -1,3 +1,4 @@
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
import { useDeleteOneIndexMetadataItem } from '@/object-metadata/hooks/useDeleteOneIndexMetadataItem';
import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';
import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/EnrichedObjectMetadataItem';
@@ -5,6 +6,7 @@ import { getCompositeSubFieldLabel } from '@/object-record/object-filter-dropdow
import { type CompositeFieldSubFieldName } from '@/settings/data-model/types/CompositeFieldSubFieldName';
import { type CompositeFieldType } from '@/settings/data-model/types/CompositeFieldType';
import { NavigationButton } from '@/ui/input/components/NavigationButton';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { ConfirmationDialog } from '@/ui/layout/dialog/components/ConfirmationDialog';
import { useDialog } from '@/ui/layout/dialog/hooks/useDialog';
import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
@@ -14,6 +16,7 @@ import { useLingui } from '@lingui/react/macro';
import { isNonEmptyString } from '@sniptt/guards';
import { useMemo, useState } from 'react';
import { MAX_CUSTOM_INDEXES_PER_OBJECT } from 'twenty-shared/constants';
+import { isWorkspaceCustomIndex } from 'twenty-shared/metadata';
import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
import { useToast } from 'twenty-ui/components/feedback';
@@ -58,6 +61,8 @@ export const SettingsObjectIndexesSection = ({
const { enqueueToast } = useToast();
const { deleteOneIndexMetadataItem } = useDeleteOneIndexMetadataItem();
const { objectMetadataItems } = useObjectMetadataItems();
+ const workspaceCustomApplicationId = useAtomStateValue(currentWorkspaceState)
+ ?.workspaceCustomApplication?.id;
const [searchTerm, setSearchTerm] = useState('');
const [hideSystemIndexes, setHideSystemIndexes] = useState(false);
@@ -90,7 +95,10 @@ export const SettingsObjectIndexesSection = ({
id: indexMetadataItem.id,
name: indexMetadataItem.name,
isUnique: indexMetadataItem.isUnique,
- isCustom: indexMetadataItem.isCustom ?? false,
+ isCustom: isWorkspaceCustomIndex({
+ indexMetadata: indexMetadataItem,
+ workspaceCustomApplicationId,
+ }),
indexType: indexMetadataItem.indexType,
indexWhereClause: indexMetadataItem.indexWhereClause,
indexFields:
@@ -120,6 +128,7 @@ export const SettingsObjectIndexesSection = ({
objectMetadataItem.indexMetadatas,
objectMetadataItem.fields,
objectMetadataItems,
+ workspaceCustomApplicationId,
]);
const filteredItems = useMemo(() => {
diff --git a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateAgentRole.ts b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateAgentRole.ts
index 7e954c70fcc..8c3d653ab97 100644
--- a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateAgentRole.ts
+++ b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateAgentRole.ts
@@ -2,10 +2,8 @@ import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDr
import { useAtomFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilyStateValue';
import { useSetAtomFamilyState } from '@/ui/utilities/state/jotai/hooks/useSetAtomFamilyState';
import { useMutation } from '@apollo/client/react';
-import {
- type Agent,
- AssignRoleToAgentDocument,
-} from '~/generated-metadata/graphql';
+import { AssignRoleToAgentDocument } from '~/generated-metadata/graphql';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
export const useUpdateAgentRole = (roleId: string) => {
const settingsDraftRole = useAtomFamilyStateValue(
@@ -19,7 +17,7 @@ export const useUpdateAgentRole = (roleId: string) => {
const [assignRoleToAgentMutation] = useMutation(AssignRoleToAgentDocument);
- const updateAgentRoleDraftState = ({ agent }: { agent: Agent }) => {
+ const updateAgentRoleDraftState = ({ agent }: { agent: FlatAgent }) => {
setSettingsDraftRole({
...settingsDraftRole,
agents: [...settingsDraftRole.agents, agent],
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx
index 3d2fe1874ae..9e6b4e963a4 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx
@@ -12,7 +12,8 @@ import { IconPlus } from 'twenty-ui/icon';
import { Tooltip } from 'twenty-ui/primitives/surfaces';
import { Button } from 'twenty-ui/primitives/input';
import { themeCssVariables } from 'twenty-ui/theme';
-import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
+import { type ApiKeyForRole } from '~/generated-metadata/graphql';
import {
type PartialWorkspaceMember,
type RoleWithPartialMembers,
@@ -32,7 +33,7 @@ type RoleAssignmentSectionProps = {
settingsDraftRole: RoleWithPartialMembers;
currentWorkspaceMember?: CurrentWorkspaceMember;
onSelect: (
- roleTarget: PartialWorkspaceMember | Agent | ApiKeyForRole,
+ roleTarget: PartialWorkspaceMember | FlatAgent | ApiKeyForRole,
roleTargetType: keyof typeof ROLE_TARGET_CONFIG,
) => void;
allWorkspaceMembersHaveThisRole?: boolean;
@@ -109,7 +110,7 @@ export const RoleAssignmentSection = ({
<SettingsRoleAssignmentEntityPickerDropdown
entityType={roleTargetType}
excludedIds={excludedIds}
- onSelect={(roleTarget: Agent | ApiKeyForRole) =>
+ onSelect={(roleTarget: FlatAgent | ApiKeyForRole) =>
onSelect(roleTarget, roleTargetType)
}
/>
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx
index 84a881219a9..3da46f815b2 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx
@@ -17,8 +17,8 @@ import { useState } from 'react';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import { SettingsPath } from 'twenty-shared/types';
import { useQuery } from '@apollo/client/react';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
import {
- type Agent,
type ApiKeyForRole,
FindManyAgentsDocument,
GetApiKeysDocument,
@@ -174,7 +174,7 @@ export const SettingsRoleAssignment = ({
};
const handleSelectEntity = (
- entity: PartialWorkspaceMember | Agent | ApiKeyForRole,
+ entity: PartialWorkspaceMember | FlatAgent | ApiKeyForRole,
entityType: keyof typeof ROLE_TARGET_CONFIG,
) => {
const config = ROLE_TARGET_CONFIG[entityType];
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx
index 9ecedcf4caa..6a30f9928e4 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx
@@ -1,16 +1,17 @@
import { useLingui } from '@lingui/react/macro';
import { useMemo, useState } from 'react';
import { useQuery } from '@apollo/client/react';
+import { useGetIsMetadataItemCustom } from '@/object-metadata/hooks/useGetIsMetadataItemCustom';
import { Dropdown } from 'twenty-ui/components/navigation';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
import {
- type Agent,
type ApiKeyForRole,
FindManyAgentsDocument,
GetApiKeysDocument,
} from '~/generated-metadata/graphql';
import { normalizeSearchText } from 'twenty-ui/utilities';
-type EntityData = Agent | ApiKeyForRole;
+type EntityData = FlatAgent | ApiKeyForRole;
type SettingsRoleAssignmentEntityPickerDropdownProps = {
entityType: 'agent' | 'apiKey';
@@ -25,6 +26,7 @@ export const SettingsRoleAssignmentEntityPickerDropdown = ({
}: SettingsRoleAssignmentEntityPickerDropdownProps) => {
const [searchFilter, setSearchFilter] = useState('');
const { t } = useLingui();
+ const getIsMetadataItemCustom = useGetIsMetadataItemCustom();
const isAgent = entityType === 'agent';
const shouldShowSystemAgents = searchFilter !== '';
@@ -48,7 +50,8 @@ export const SettingsRoleAssignmentEntityPickerDropdown = ({
return ((isAgent
? agentsData?.findManyAgents.filter(
(agent) =>
- agent.isCustom && (!agent.isSystem || shouldShowSystemAgents),
+ getIsMetadataItemCustom(agent) &&
+ (!agent.isSystem || shouldShowSystemAgents),
)
: apiKeysData?.apiKeys) || []) as EntityData[];
}, [
@@ -56,6 +59,7 @@ export const SettingsRoleAssignmentEntityPickerDropdown = ({
agentsData?.findManyAgents,
apiKeysData?.apiKeys,
shouldShowSystemAgents,
+ getIsMetadataItemCustom,
]);
const placeholder = isAgent ? t`Search agents` : t`Search API keys`;
@@ -80,7 +84,7 @@ export const SettingsRoleAssignmentEntityPickerDropdown = ({
}
if (isAgent) {
- const agent = entity as Agent;
+ const agent = entity as FlatAgent;
return (
normalizeSearchText(agent.name).includes(searchTerm) ||
normalizeSearchText(agent.label).includes(searchTerm)
@@ -113,7 +117,7 @@ export const SettingsRoleAssignmentEntityPickerDropdown = ({
key={entity.id}
onClick={() => onSelect(entity)}
>
- {isAgent ? (entity as Agent).label : entity.name}
+ {isAgent ? (entity as FlatAgent).label : entity.name}
</Dropdown.ActionItem>
))}
</Dropdown.Section>
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx
index a75001b931f..15ce6169a40 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx
@@ -14,7 +14,8 @@ import { useMemo, useState } from 'react';
import { Section } from 'twenty-ui/components/layout';
import { IconSearch } from 'twenty-ui/icon';
-import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
+import { type ApiKeyForRole } from '~/generated-metadata/graphql';
import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers';
import { themeCssVariables } from 'twenty-ui/theme';
import { normalizeSearchText } from 'twenty-ui/utilities';
@@ -89,7 +90,7 @@ export const SettingsRoleAssignmentTable = <T extends RoleTargetType>({
if (!searchFilter) return roleTargets;
const getSearchableFields = (
- roleTarget: PartialWorkspaceMember | Agent | ApiKeyForRole,
+ roleTarget: PartialWorkspaceMember | FlatAgent | ApiKeyForRole,
): string[] => {
switch (roleTargetType) {
case 'member': {
@@ -101,7 +102,7 @@ export const SettingsRoleAssignmentTable = <T extends RoleTargetType>({
];
}
case 'agent': {
- const agent = roleTarget as Agent;
+ const agent = roleTarget as FlatAgent;
return [
normalizeSearchText(agent.name),
normalizeSearchText(agent.label),
@@ -123,7 +124,7 @@ export const SettingsRoleAssignmentTable = <T extends RoleTargetType>({
}, [roleTargets, searchFilter, roleTargetType]);
const createRoleTarget = (
- roleTarget: PartialWorkspaceMember | Agent | ApiKeyForRole,
+ roleTarget: PartialWorkspaceMember | FlatAgent | ApiKeyForRole,
): RoleTarget => {
switch (roleTargetType) {
case 'member':
@@ -132,7 +133,7 @@ export const SettingsRoleAssignmentTable = <T extends RoleTargetType>({
data: roleTarget as PartialWorkspaceMember,
};
case 'agent':
- return { type: roleTargetType, data: roleTarget as Agent };
+ return { type: roleTargetType, data: roleTarget as FlatAgent };
case 'apiKey':
return { type: roleTargetType, data: roleTarget as ApiKeyForRole };
}
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx
index 0f5633f85b8..a67c8642497 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx
@@ -11,7 +11,8 @@ import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';
import { IconKey, useIcons } from 'twenty-ui/icon';
import { Avatar } from 'twenty-ui/primitives/data-display';
import { useTheme, themeCssVariables } from 'twenty-ui/theme';
-import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
+import { type ApiKeyForRole } from '~/generated-metadata/graphql';
import { dateLocaleState } from '@/localization/states/dateLocaleState';
import { getAbsoluteImageUrl } from '~/utils/image/getAbsoluteImageUrl';
import { formatDateString } from '@/object-record/record-field/ui/utils/formatDateString';
@@ -38,7 +39,7 @@ const StyledNameContainer = styled.div`
export type RoleTarget =
| { type: 'member'; data: PartialWorkspaceMember }
- | { type: 'agent'; data: Agent }
+ | { type: 'agent'; data: FlatAgent }
| { type: 'apiKey'; data: ApiKeyForRole };
type SettingsRoleAssignmentTableRowProps = {
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts b/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts
index f7a2f5e24be..c021a91ecab 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts
@@ -1,6 +1,7 @@
import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMemberState';
import { t } from '@lingui/core/macro';
-import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
+import { type ApiKeyForRole } from '~/generated-metadata/graphql';
import {
type PartialWorkspaceMember,
type RoleWithPartialMembers,
@@ -32,9 +33,9 @@ export const ROLE_TARGET_CONFIG = {
agent: {
dropdownId: 'role-agent-select',
getRoleMap: (maps: RoleMaps) => maps.agent,
- getName: (entity: Agent) => entity.label,
+ getName: (entity: FlatAgent) => entity.label,
getAssignedIds: (settingsDraftRole: RoleWithPartialMembers) =>
- (settingsDraftRole.agents ?? []).map((agent: Agent) => agent.id),
+ (settingsDraftRole.agents ?? []).map((agent: FlatAgent) => agent.id),
getExcludedIds: (assignedIds: string[]) => assignedIds,
canBeAssigned: (settingsDraftRole: RoleWithPartialMembers) =>
settingsDraftRole.canBeAssignedToAgents,
diff --git a/packages/twenty-front/src/modules/settings/roles/types/RoleWithPartialMembers.ts b/packages/twenty-front/src/modules/settings/roles/types/RoleWithPartialMembers.ts
index 8528e4ad61c..51edb0ed204 100644
--- a/packages/twenty-front/src/modules/settings/roles/types/RoleWithPartialMembers.ts
+++ b/packages/twenty-front/src/modules/settings/roles/types/RoleWithPartialMembers.ts
@@ -1,3 +1,4 @@
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
import { type Role, type WorkspaceMember } from '~/generated-metadata/graphql';
export type PartialWorkspaceMember = Omit<
@@ -14,6 +15,10 @@ export type PartialWorkspaceMember = Omit<
| 'updatedAt'
>;
-export type RoleWithPartialMembers = Omit<Role, 'workspaceMembers'> & {
+export type RoleWithPartialMembers = Omit<
+ Role,
+ 'workspaceMembers' | 'agents'
+> & {
workspaceMembers: PartialWorkspaceMember[];
+ agents: FlatAgent[];
};
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionsTab.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionsTab.tsx
index bf7d71254c6..f22defad26a 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionsTab.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionsTab.tsx
@@ -14,7 +14,8 @@ import { styled } from '@linaria/react';
import { t } from '@lingui/core/macro';
import { useState } from 'react';
import { isDefined } from 'twenty-shared/utils';
-import { type Agent, GetRoleDocument } from '~/generated-metadata/graphql';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
+import { GetRoleDocument } from '~/generated-metadata/graphql';
import { SidePanelSkeletonLoader } from '~/loading/components/SidePanelSkeletonLoader';
import { filterBySearchQuery } from '~/utils/filterBySearchQuery';
@@ -63,7 +64,7 @@ type WorkflowAiAgentPermissionsTabProps = {
stepId: string;
readonly: boolean;
isAgentLoading: boolean;
- refetchAgent: () => Promise<{ data?: { findOneAgent?: Agent } }>;
+ refetchAgent: () => Promise<{ data?: { findOneAgent?: FlatAgent } }>;
};
export const WorkflowAiAgentPermissionsTab = ({
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useWorkflowAiAgentPermissionActions.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useWorkflowAiAgentPermissionActions.ts
index 37c95679d94..62d10263d97 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useWorkflowAiAgentPermissionActions.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useWorkflowAiAgentPermissionActions.ts
@@ -16,8 +16,8 @@ import { doNotTranslate } from 'twenty-shared/i18n';
import { isDefined } from 'twenty-shared/utils';
import { useToast } from 'twenty-ui/components/feedback';
import { v4 } from 'uuid';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
import {
- type Agent,
type ObjectPermission,
AssignRoleToAgentDocument,
CreateOneRoleDocument,
@@ -30,7 +30,7 @@ type UseWorkflowAiAgentPermissionActionsParams = {
readonly: boolean;
objectPermissions: ObjectPermission[];
permissionFlagKeys: string[];
- refetchAgentAndRoles: () => Promise<{ refetchedAgent?: Agent }>;
+ refetchAgentAndRoles: () => Promise<{ refetchedAgent?: FlatAgent }>;
};
export const useWorkflowAiAgentPermissionActions = ({
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/states/workflowAiAgentActionAgentState.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/states/workflowAiAgentActionAgentState.ts
index ad83f693913..346923edbe7 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/states/workflowAiAgentActionAgentState.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/states/workflowAiAgentActionAgentState.ts
@@ -1,9 +1,9 @@
-import { type Agent } from '~/generated-metadata/graphql';
+import { type FlatAgent } from '@/metadata-store/types/FlatAgent';
import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
export const workflowAiAgentActionAgentState = createAtomState<
- Agent | undefined
+ FlatAgent | undefined
>({
key: 'workflowAiAgentActionAgentState',
defaultValue: undefined,
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSkillsTable.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSkillsTable.tsx
index 7471a45bdd4..9129f9be504 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSkillsTable.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSkillsTable.tsx
@@ -1,6 +1,7 @@
import { styled } from '@linaria/react';
import { useLingui } from '@lingui/react/macro';
+import { useGetIsMetadataItemCustom } from '@/object-metadata/hooks/useGetIsMetadataItemCustom';
import { SkeletonLine } from '@/ui/feedback/skeleton/components/SkeletonLine';
import { SortableTableHeader } from '@/ui/layout/table/components/SortableTableHeader';
import { Table } from '@/ui/layout/table/components/Table';
@@ -35,6 +36,7 @@ export const SettingsAgentSkillsTable = ({
}: SettingsAgentSkillsTableProps) => {
const theme = useTheme();
const { t } = useLingui();
+ const getIsMetadataItemCustom = useGetIsMetadataItemCustom();
const showSkeleton = loading && skills.length === 0;
@@ -73,7 +75,7 @@ export const SettingsAgentSkillsTable = ({
/>
) : (
<SettingsSkillInactiveMenuDropDown
- isCustomSkill={skill.isCustom}
+ isCustomSkill={getIsMetadataItemCustom(skill)}
skillId={skill.id}
onActivate={() => onActivate(skill.id)}
onDelete={() => onDelete(skill.id)}
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillDangerZone.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillDangerZone.tsx
index e6ac625144b..fd0747fd327 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillDangerZone.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillDangerZone.tsx
@@ -12,6 +12,7 @@ import { themeCssVariables } from 'twenty-ui/theme';
import { getToastOptionsFromError } from '@/error-handler/utils/getToastOptionsFromError';
import { ConfirmationDialog } from '@/ui/layout/dialog/components/ConfirmationDialog';
import { useDialog } from '@/ui/layout/dialog/hooks/useDialog';
+import { useGetIsMetadataItemCustom } from '@/object-metadata/hooks/useGetIsMetadataItemCustom';
import {
ActivateSkillDocument,
DeactivateSkillDocument,
@@ -30,7 +31,7 @@ const DELETE_SKILL_MODAL_ID = 'delete-skill-modal';
type SettingsSkillDangerZoneProps = {
skill: Pick<
NonNullable<FindOneSkillQuery['skill']>,
- 'id' | 'isActive' | 'isCustom'
+ 'id' | 'isActive' | 'applicationId'
>;
};
@@ -41,6 +42,7 @@ export const SettingsSkillDangerZone = ({
const { enqueueToast } = useToast();
const { openDialog, closeDialog } = useDialog();
const [isSubmitting, setIsSubmitting] = useState(false);
+ const getIsMetadataItemCustom = useGetIsMetadataItemCustom();
const [deleteSkill] = useMutation(DeleteSkillDocument);
const [activateSkill] = useMutation(ActivateSkillDocument);
@@ -85,7 +87,7 @@ export const SettingsSkillDangerZone = ({
>
{skill.isActive ? t`Deactivate` : t`Activate`}
</Button>
- {skill.isCustom && (
+ {getIsMetadataItemCustom(skill) && (
<Button
startIcon={<IconTrash />}
size="sm"
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx
index 8c5bd02a3f5..78d9970febf 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx
@@ -28,6 +28,7 @@ import { type SettingsSkillFormValues } from '~/pages/settings/ai/types/Settings
import { getSettingsAiBreadcrumbLinks } from '~/pages/settings/ai/utils/getSettingsAiBreadcrumbLinks';
import { getSettingsSkillInitialFormValues } from '~/pages/settings/ai/utils/getSettingsSkillInitialFormValues';
import { computeMetadataNameFromLabel } from '@/object-metadata/utils/computeMetadataNameFromLabel';
+import { useGetIsMetadataItemCustom } from '@/object-metadata/hooks/useGetIsMetadataItemCustom';
const StyledFormContainer = styled.div`
display: flex;
@@ -60,8 +61,10 @@ export const SettingsSkillFormContent = ({
const { getIcon } = useIcons();
const navigate = useNavigateSettings();
+ const getIsMetadataItemCustom = useGetIsMetadataItemCustom();
+
const isCreateMode = !isDefined(skill);
- const isReadonlyMode = isDefined(skill) && !skill.isCustom;
+ const isReadonlyMode = isDefined(skill) && !getIsMetadataItemCustom(skill);
const [initialFormValues] = useState(() =>
getSettingsSkillInitialFormValues(skill),
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx
index 8d97311a53d..5614351e167 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillTableRow.tsx
@@ -11,7 +11,7 @@ import { useTheme, themeCssVariables } from 'twenty-ui/theme';
import { type Skill } from '~/generated-metadata/graphql';
export type SettingsSkillTableRowProps = {
- skill: Skill;
+ skill: Omit<Skill, 'isCustom'>;
action?: ReactNode;
link?: string;
};
diff --git a/packages/twenty-front/src/pages/settings/data-model/new-index/SettingsObjectNewIndex.tsx b/packages/twenty-front/src/pages/settings/data-model/new-index/SettingsObjectNewIndex.tsx
index adf17fce965..7bfa7611a4a 100644
--- a/packages/twenty-front/src/pages/settings/data-model/new-index/SettingsObjectNewIndex.tsx
+++ b/packages/twenty-front/src/pages/settings/data-model/new-index/SettingsObjectNewIndex.tsx
@@ -1,4 +1,5 @@
import { WorkspaceRouteUnavailable } from '@/ui/layout/page/components/WorkspaceRouteUnavailable';
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
import { isDDLLockedState } from '@/client-config/states/isDDLLockedState';
import { useCreateOneIndexMetadataItem } from '@/object-metadata/hooks/useCreateOneIndexMetadataItem';
import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilteredObjectMetadataItems';
@@ -17,6 +18,7 @@ import { useEffect, useMemo } from 'react';
import { FormProvider, useForm } from 'react-hook-form';
import { useParams } from 'react-router-dom';
import { MAX_CUSTOM_INDEXES_PER_OBJECT } from 'twenty-shared/constants';
+import { isWorkspaceCustomIndex } from 'twenty-shared/metadata';
import { AppPath, RelationType, SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
import { Callout, useToast } from 'twenty-ui/components/feedback';
@@ -81,6 +83,7 @@ export const SettingsObjectNewIndex = () => {
}, [activeObjectMetadataItem, navigateApp, workspaceSurface.type]);
const isDDLLocked = useAtomStateValue(isDDLLockedState);
+ const currentWorkspace = useAtomStateValue(currentWorkspaceState);
const indexableFields = useMemo(
() =>
@@ -97,7 +100,12 @@ export const SettingsObjectNewIndex = () => {
}
const customIndexCount = activeObjectMetadataItem.indexMetadatas.filter(
- (indexMetadata) => indexMetadata.isCustom,
+ (indexMetadata) =>
+ isWorkspaceCustomIndex({
+ indexMetadata,
+ workspaceCustomApplicationId:
+ currentWorkspace?.workspaceCustomApplication?.id,
+ }),
).length;
const reachedCap = customIndexCount >= MAX_CUSTOM_INDEXES_PER_OBJECT;
diff --git a/packages/twenty-front/src/testing/mock-data/generated/metadata/objects/mock-objects-metadata.ts b/packages/twenty-front/src/testing/mock-data/generated/metadata/objects/mock-objects-metadata.ts
index 46cfb913a10..1a8d42d6a31 100644
--- a/packages/twenty-front/src/testing/mock-data/generated/metadata/objects/mock-objects-metadata.ts
+++ b/packages/twenty-front/src/testing/mock-data/generated/metadata/objects/mock-objects-metadata.ts
@@ -1093,7 +1093,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -1114,7 +1115,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -1553,7 +1555,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -2351,7 +2354,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -2372,7 +2376,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -2393,7 +2398,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -2414,7 +2420,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3692,7 +3699,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3713,7 +3721,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3734,7 +3743,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3755,7 +3765,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3776,7 +3787,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3797,7 +3809,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3818,7 +3831,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3839,7 +3853,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3860,7 +3875,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -3881,7 +3897,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -4527,7 +4544,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -5348,7 +5366,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -5369,7 +5388,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": true,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -5944,7 +5964,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -5965,7 +5986,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -5986,7 +6008,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -6007,7 +6030,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -6560,7 +6584,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -6581,7 +6606,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -6602,7 +6628,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -7389,7 +7416,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -7410,7 +7438,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -7431,7 +7460,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -7452,7 +7482,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -7473,7 +7504,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -7494,7 +7526,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -7515,7 +7548,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -7918,7 +7952,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -8497,7 +8532,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -8518,7 +8554,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -8539,7 +8576,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -9102,7 +9140,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -9123,7 +9162,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -9144,7 +9184,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": "\"deletedAt\" IS NULL",
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -9771,7 +9812,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -9792,7 +9834,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": true,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -10442,7 +10485,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -10463,7 +10507,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -10484,7 +10529,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -11511,7 +11557,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": true,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -11532,7 +11579,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -12794,7 +12842,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -12815,7 +12864,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": true,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -12836,7 +12886,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": true,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -13459,7 +13510,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -13480,7 +13532,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": true,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -13501,7 +13554,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": true,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -13522,7 +13576,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": true,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -13884,7 +13939,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -13905,7 +13961,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -13926,7 +13983,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": "\"deletedAt\" IS NULL",
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -14556,7 +14614,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -14577,7 +14636,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -15152,7 +15212,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -15173,7 +15234,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -16401,7 +16463,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -16422,7 +16485,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": true,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -16443,7 +16507,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -17018,7 +17083,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -17039,7 +17105,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -17060,7 +17127,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -17081,7 +17149,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -18186,7 +18255,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -18207,7 +18277,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": true,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -18228,7 +18299,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -18721,7 +18793,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -19267,7 +19340,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -19629,7 +19703,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "dd6a5463-023d-4a10-855f-a4abaf32c1ec",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -20224,7 +20299,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "GIN",
"isUnique": false,
- "isCustom": false,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -20245,7 +20321,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": true,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
@@ -20266,7 +20343,8 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
"indexWhereClause": null,
"indexType": "BTREE",
"isUnique": false,
- "isCustom": true,
+ "applicationId": "029204a9-b419-41d8-a483-57690c3d1a18",
+ "isSystemSideEffect": true,
"indexFieldMetadataList": [
{
"__typename": "IndexField",
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-21/1-21-workspace-command-1775500008000-migrate-ai-agent-text-to-json-response-format.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-21/1-21-workspace-command-1775500008000-migrate-ai-agent-text-to-json-response-format.command.ts
index 0fd8daa2632..8228d8488f9 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/1-21/1-21-workspace-command-1775500008000-migrate-ai-agent-text-to-json-response-format.command.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/1-21/1-21-workspace-command-1775500008000-migrate-ai-agent-text-to-json-response-format.command.ts
@@ -7,6 +7,7 @@ import { type RunOnWorkspaceArgs } from 'src/database/commands/command-runners/w
import { RegisteredWorkspaceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-workspace-command.decorator';
import { ApplicationService } from 'src/engine/core-modules/application/application.service';
import { type FlatAgent } from 'src/engine/metadata-modules/flat-agent/types/flat-agent.type';
+import { belongsToTwentyStandardApp } from 'src/engine/metadata-modules/utils/belongs-to-twenty-standard-app.util';
import { WorkspaceOrmManager } from 'src/engine/twenty-orm/workspace-orm.manager';
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';
@@ -103,7 +104,7 @@ export class MigrateAiAgentTextToJsonResponseFormatCommand extends ProvisionedWo
}
private isTextFormatCustomAgent(flatAgent: FlatAgent): boolean {
- if (!flatAgent.isCustom) {
+ if (belongsToTwentyStandardApp(flatAgent)) {
return false;
}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-42/utils/__tests__/build-missing-system-relation-indexes.util.spec.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-42/utils/__tests__/build-missing-system-relation-indexes.util.spec.ts
index cd5f974f34b..899c34a4696 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-42/utils/__tests__/build-missing-system-relation-indexes.util.spec.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-42/utils/__tests__/build-missing-system-relation-indexes.util.spec.ts
@@ -186,7 +186,6 @@ describe('buildMissingSystemRelationIndexes', () => {
expect(universalFlatIndexMetadata).toMatchObject({
indexType: IndexType.BTREE,
indexWhereClause: null,
- isCustom: true,
isUnique: false,
isSystemSideEffect: true,
objectMetadataUniversalIdentifier:
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-54/2-54-instance-command-fast-1793139794914-drop-is-custom-from-agent-skill-view-index-and-agent-chat-channel.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-54/2-54-instance-command-fast-1793139794914-drop-is-custom-from-agent-skill-view-index-and-agent-chat-channel.ts
new file mode 100644
index 00000000000..2a8da165fc7
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-54/2-54-instance-command-fast-1793139794914-drop-is-custom-from-agent-skill-view-index-and-agent-chat-channel.ts
@@ -0,0 +1,63 @@
+import { type QueryRunner } from 'typeorm';
+
+import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-instance-command.decorator';
+import { type FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
+
+const TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER =
+ '20202020-64aa-4b6f-b003-9c74b97cee20';
+
+// Dropped one release after 2.53 stopped reading isCustom, since 2.52 pods still select it
+@RegisteredInstanceCommand('2.54.0', 1793139794914)
+export class DropIsCustomFromAgentSkillViewIndexAndAgentChatChannelFastInstanceCommand
+ implements FastInstanceCommand
+{
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ for (const tableName of [
+ 'agent',
+ 'skill',
+ 'view',
+ 'indexMetadata',
+ 'agentChatChannel',
+ ]) {
+ await queryRunner.query(
+ `ALTER TABLE "core"."${tableName}" DROP COLUMN IF EXISTS "isCustom"`,
+ );
+ }
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ for (const tableName of ['agent', 'skill', 'agentChatChannel']) {
+ await queryRunner.query(
+ `ALTER TABLE "core"."${tableName}" ADD COLUMN IF NOT EXISTS "isCustom" boolean NOT NULL DEFAULT false`,
+ );
+ await queryRunner.query(
+ `UPDATE "core"."${tableName}" "entity"
+ SET "isCustom" = ("entity"."applicationId" = "workspace"."workspaceCustomApplicationId")
+ FROM "core"."workspace" "workspace"
+ WHERE "workspace"."id" = "entity"."workspaceId"`,
+ );
+ }
+
+ await queryRunner.query(
+ 'ALTER TABLE "core"."view" ADD COLUMN IF NOT EXISTS "isCustom" boolean NOT NULL DEFAULT false',
+ );
+ await queryRunner.query(
+ `UPDATE "core"."view" "view"
+ SET "isCustom" = ("view"."applicationId" <> "standardApplication"."id")
+ FROM "core"."application" "standardApplication"
+ WHERE "standardApplication"."workspaceId" = "view"."workspaceId"
+ AND "standardApplication"."universalIdentifier" = $1`,
+ [TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER],
+ );
+
+ await queryRunner.query(
+ 'ALTER TABLE "core"."indexMetadata" ADD COLUMN IF NOT EXISTS "isCustom" boolean NOT NULL DEFAULT false',
+ );
+ await queryRunner.query(
+ `UPDATE "core"."indexMetadata" "indexMetadata"
+ SET "isCustom" = ("indexMetadata"."applicationId" = "workspace"."workspaceCustomApplicationId" AND NOT "indexMetadata"."isSystemSideEffect")
+ FROM "core"."workspace" "workspace"
+ WHERE "workspace"."id" = "indexMetadata"."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 c5bc26f5cd2..3a877e11a32 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
@@ -262,6 +262,7 @@ import { AddObjectMetadataDisabledObjectPermissionActionsFastInstanceCommand } f
import { BackfillApplicationAutoUpgradeSlowInstanceCommand } from 'src/database/commands/upgrade-version-command/2-53/2-53-instance-command-slow-1793170402367-backfill-application-auto-upgrade';
import { AddMessagingProviderFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-52/2-52-instance-command-fast-1793032438837-add-messaging-provider';
import { AddMcpServerFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-53/2-53-instance-command-fast-1793150000000-add-mcp-server';
+import { DropIsCustomFromAgentSkillViewIndexAndAgentChatChannelFastInstanceCommand } from 'src/database/commands/upgrade-version-command/2-54/2-54-instance-command-fast-1793139794914-drop-is-custom-from-agent-skill-view-index-and-agent-chat-channel';
export const INSTANCE_COMMANDS = [
AddViewFieldGroupIdIndexOnViewFieldFastInstanceCommand,
@@ -526,4 +527,5 @@ export const INSTANCE_COMMANDS = [
AddMcpServerFastInstanceCommand,
AddObjectMetadataDisabledObjectPermissionActionsFastInstanceCommand,
BackfillApplicationAutoUpgradeSlowInstanceCommand,
+ DropIsCustomFromAgentSkillViewIndexAndAgentChatChannelFastInstanceCommand,
];
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-flat-view-to-view-manifest.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-flat-view-to-view-manifest.util.spec.ts
index 28b2e08c3f4..9fbb54bff71 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-flat-view-to-view-manifest.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-flat-view-to-view-manifest.util.spec.ts
@@ -162,7 +162,6 @@ describe('fromFlatViewToViewManifest', () => {
icon: 'IconCalendar',
position: 1,
isCompact: false,
- isCustom: true,
visibility: ViewVisibility.WORKSPACE,
openRecordIn: ViewOpenRecordIn.SIDE_PANEL,
key: null,
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-index-manifest-to-universal-flat-index.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-index-manifest-to-universal-flat-index.util.spec.ts
index 48bb4081180..a6b04d9d79e 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-index-manifest-to-universal-flat-index.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-index-manifest-to-universal-flat-index.util.spec.ts
@@ -55,7 +55,6 @@ describe('fromIndexManifestToUniversalFlatIndex', () => {
expect(result.indexType).toBe(IndexType.BTREE);
expect(result.isUnique).toBe(false);
expect(result.indexWhereClause).toBeNull();
- expect(result.isCustom).toBe(false);
expect(result.universalFlatIndexFieldMetadatas).toHaveLength(1);
expect(result.universalFlatIndexFieldMetadatas[0]).toMatchObject({
order: 0,
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-view-manifest-to-universal-flat-view.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-view-manifest-to-universal-flat-view.util.spec.ts
index 8c0083b74da..8081a4ee4fb 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-view-manifest-to-universal-flat-view.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-view-manifest-to-universal-flat-view.util.spec.ts
@@ -42,7 +42,6 @@ describe('fromViewManifestToUniversalFlatView', () => {
expect(result.isCompact).toBe(false);
expect(result.shouldHideEmptyGroups).toBe(false);
expect(result.groupLoadLimit).toBe(DEFAULT_VIEW_GROUP_LOAD_LIMIT);
- expect(result.isCustom).toBe(true);
expect(result.visibility).toBe(ViewVisibility.WORKSPACE);
expect(result.openRecordIn).toBe(ViewOpenRecordIn.SIDE_PANEL);
expect(result.key).toBeNull();
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-index-manifest-to-universal-flat-index.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-index-manifest-to-universal-flat-index.util.ts
index fb640b9172c..e9f21b38065 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-index-manifest-to-universal-flat-index.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-index-manifest-to-universal-flat-index.util.ts
@@ -127,7 +127,6 @@ export const fromIndexManifestToUniversalFlatIndex = ({
objectMetadataUniversalIdentifier: flatObjectMetadata.universalIdentifier,
indexType: resolvedIndexType,
indexWhereClause: null,
- isCustom: false,
isUnique: indexManifest.isUnique ?? false,
isSystemSideEffect: false,
universalFlatIndexFieldMetadatas,
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-skill-manifest-to-universal-flat-skill.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-skill-manifest-to-universal-flat-skill.util.ts
index 81e32552e75..044a598d1d2 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-skill-manifest-to-universal-flat-skill.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-skill-manifest-to-universal-flat-skill.util.ts
@@ -19,7 +19,6 @@ export const fromSkillManifestToUniversalFlatSkill = ({
icon: skillManifest.icon ?? null,
description: skillManifest.description ?? null,
content: skillManifest.content,
- isCustom: false,
isSystem: false,
isActive: true,
createdAt: now,
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-view-manifest-to-universal-flat-view.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-view-manifest-to-universal-flat-view.util.ts
index 74cd78fc96a..3ecbc514e0b 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-view-manifest-to-universal-flat-view.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-view-manifest-to-universal-flat-view.util.ts
@@ -56,7 +56,6 @@ export const fromViewManifestToUniversalFlatView = ({
icon: viewManifest.icon ?? 'IconList',
position: viewManifest.position ?? 0,
isCompact: viewManifest.isCompact ?? false,
- isCustom: true,
visibility: viewManifest.visibility ?? ViewVisibility.WORKSPACE,
openRecordIn: viewManifest.openRecordIn ?? ViewOpenRecordIn.SIDE_PANEL,
key: null,
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-agents-manifest.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-agents-manifest.util.spec.ts
index 8d1c488bd28..34b86bcc13a 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-agents-manifest.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-agents-manifest.util.spec.ts
@@ -48,8 +48,6 @@ const FOREIGN_AGENT_UNIVERSAL_IDENTIFIER =
'30000000-0000-4000-8000-000000000009';
const UNASSIGNED_AGENT_UNIVERSAL_IDENTIFIER =
'30000000-0000-4000-8000-00000000000a';
-const WORKSPACE_AGENT_UNIVERSAL_IDENTIFIER =
- '30000000-0000-4000-8000-00000000000b';
const WORKSPACE_ROLE_TARGET_UNIVERSAL_IDENTIFIER =
'40000000-0000-4000-8000-000000000001';
const SECOND_ROLE_TARGET_UNIVERSAL_IDENTIFIER =
@@ -176,10 +174,6 @@ const applicationAgents = [
}),
buildFlatAgent(DELETED_AGENT_UNIVERSAL_IDENTIFIER, { deletedAt: NOW }),
buildFlatAgent(UNASSIGNED_AGENT_UNIVERSAL_IDENTIFIER),
- buildFlatAgent(WORKSPACE_AGENT_UNIVERSAL_IDENTIFIER, {
- isCustom: true,
- isSystem: false,
- }),
];
const applicationRoles = [
buildFlatRole({ universalIdentifier: SUPPORT_ROLE_UNIVERSAL_IDENTIFIER }),
@@ -334,7 +328,6 @@ describe('reconstructAgentsManifest', () => {
});
it.each([
- [WORKSPACE_AGENT_UNIVERSAL_IDENTIFIER, 'agent created in the workspace'],
[
UNSUPPORTED_ROLE_AGENT_UNIVERSAL_IDENTIFIER,
'agent on an unsupported role',
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-data-model-manifest.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-data-model-manifest.util.spec.ts
index c2ab56a61bf..7844705bd28 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-data-model-manifest.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-data-model-manifest.util.spec.ts
@@ -116,7 +116,6 @@ const buildIndex = (overrides: Partial<FlatIndexMetadata>): FlatIndexMetadata =>
objectMetadataUniversalIdentifier: PET_UID,
indexType: IndexType.BTREE,
indexWhereClause: null,
- isCustom: false,
isUnique: false,
isSystemSideEffect: false,
createdAt: '2026-09-03T10:00:00.000Z',
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-skills-manifest.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-skills-manifest.util.spec.ts
index f672e388047..9e657f5f7aa 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-skills-manifest.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/__tests__/reconstruct-skills-manifest.util.spec.ts
@@ -15,8 +15,6 @@ const DEACTIVATED_SKILL_UNIVERSAL_IDENTIFIER =
'20000000-0000-4000-8000-000000000002';
const SYSTEM_SKILL_UNIVERSAL_IDENTIFIER =
'20000000-0000-4000-8000-000000000003';
-const WORKSPACE_SKILL_UNIVERSAL_IDENTIFIER =
- '20000000-0000-4000-8000-000000000004';
const buildSkillManifest = (universalIdentifier: string): SkillManifest => ({
universalIdentifier,
@@ -49,9 +47,6 @@ const { skills, coverage } = reconstructSkillsManifest({
isActive: false,
}),
buildFlatSkill(SYSTEM_SKILL_UNIVERSAL_IDENTIFIER, { isSystem: true }),
- buildFlatSkill(WORKSPACE_SKILL_UNIVERSAL_IDENTIFIER, {
- isCustom: true,
- }),
],
flatEntityMaps: createEmptyAllFlatEntityMaps().flatSkillMaps,
}),
@@ -71,7 +66,6 @@ describe('reconstructSkillsManifest', () => {
});
it.each([
- [WORKSPACE_SKILL_UNIVERSAL_IDENTIFIER, 'skill created in the workspace'],
[
DEACTIVATED_SKILL_UNIVERSAL_IDENTIFIER,
'skill deactivated in this workspace',
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/reconstruct-agents-manifest.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/reconstruct-agents-manifest.util.ts
index 5b846f635fa..bce8943130d 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/reconstruct-agents-manifest.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/reconstruct-agents-manifest.util.ts
@@ -55,10 +55,6 @@ export const reconstructAgentsManifest = ({
flatAgent: FlatAgent;
flatRoleTargets: FlatRoleTarget[];
}): { manifest: AgentManifest } | { reason: string } => {
- if (flatAgent.isCustom) {
- return { reason: 'agent created in the workspace' };
- }
-
if (flatRoleTargets.length > 1) {
return { reason: 'agent with more than one role' };
}
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/reconstruct-skills-manifest.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/reconstruct-skills-manifest.util.ts
index 06d6410cb54..9fd2b327b03 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/reconstruct-skills-manifest.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/utils/reconstruct-skills-manifest.util.ts
@@ -14,10 +14,6 @@ import { type FlatSkill } from 'src/engine/metadata-modules/flat-skill/types/fla
const convertFlatSkill = (
flatSkill: FlatSkill,
): { manifest: SkillManifest } | { reason: string } => {
- if (flatSkill.isCustom) {
- return { reason: 'skill created in the workspace' };
- }
-
// A skill has no overrides, so apply would reactivate it
if (!flatSkill.isActive) {
return { reason: 'skill deactivated in this workspace' };
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 53e5fcd3700..3f653c44dae 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
@@ -35,7 +35,6 @@ export const fromAgentManifestToUniversalFlatAgent = ({
instructions: isDefined(instructions) ? instructions : null,
}),
),
- isCustom: false,
isSystem: agentManifest.isSystem ?? false,
createdAt: now,
updatedAt: now,
diff --git a/packages/twenty-server/src/engine/dataloaders/factories/index-metadata-connection-loader.factory.ts b/packages/twenty-server/src/engine/dataloaders/factories/index-metadata-connection-loader.factory.ts
index b502a5caa28..1089d46f115 100644
--- a/packages/twenty-server/src/engine/dataloaders/factories/index-metadata-connection-loader.factory.ts
+++ b/packages/twenty-server/src/engine/dataloaders/factories/index-metadata-connection-loader.factory.ts
@@ -1,6 +1,7 @@
import { Injectable } from '@nestjs/common';
import DataLoader from 'dataloader';
+import { isWorkspaceCustomIndex } from 'twenty-shared/metadata';
import { WorkspaceManyOrAllFlatEntityMapsCacheService } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.service';
import { findFlatEntityByIdInFlatEntityMapsOrThrow } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-id-in-flat-entity-maps-or-throw.util';
@@ -18,6 +19,7 @@ import { findManyItemsWithCursorPagination } from 'src/engine/metadata-modules/p
export type IndexMetadataConnectionLoaderPayload = {
workspaceId: string;
+ workspaceCustomApplicationId: string;
objectMetadata: Pick<ObjectMetadataEntity, 'id'>;
filter: IndexFilterInput;
paging: CursorPagingInput;
@@ -46,42 +48,50 @@ export class IndexMetadataConnectionLoaderFactory {
},
);
- return dataLoaderParams.map(({ objectMetadata, paging, filter }) => {
- const flatObjectMetadata = findFlatEntityByIdInFlatEntityMapsOrThrow({
- flatEntityId: objectMetadata.id,
- flatEntityMaps: flatObjectMetadataMaps,
- });
- const flatIndexMetadatas =
- findManyFlatEntityByIdInFlatEntityMapsOrThrow({
- flatEntityIds: flatObjectMetadata.indexMetadataIds,
- flatEntityMaps: flatIndexMaps,
+ return dataLoaderParams.map(
+ ({ objectMetadata, paging, filter, workspaceCustomApplicationId }) => {
+ const flatObjectMetadata = findFlatEntityByIdInFlatEntityMapsOrThrow({
+ flatEntityId: objectMetadata.id,
+ flatEntityMaps: flatObjectMetadataMaps,
+ });
+ const flatIndexMetadatas =
+ findManyFlatEntityByIdInFlatEntityMapsOrThrow({
+ flatEntityIds: flatObjectMetadata.indexMetadataIds,
+ flatEntityMaps: flatIndexMaps,
+ });
+ const filteredFlatIndexMetadatas = applyMetadataFilterToItems({
+ items: flatIndexMetadatas.map((flatIndex) => ({
+ ...flatIndex,
+ isCustom: isWorkspaceCustomIndex({
+ indexMetadata: flatIndex,
+ workspaceCustomApplicationId,
+ }),
+ })),
+ filter,
+ columnByFilterField: INDEX_FILTER_COLUMN_BY_FILTER_FIELD,
+ });
+ const connection = findManyItemsWithCursorPagination({
+ items: filteredFlatIndexMetadatas,
+ paging,
});
- const filteredFlatIndexMetadatas = applyMetadataFilterToItems({
- items: flatIndexMetadatas,
- filter,
- columnByFilterField: INDEX_FILTER_COLUMN_BY_FILTER_FIELD,
- });
- const connection = findManyItemsWithCursorPagination({
- items: filteredFlatIndexMetadatas,
- paging,
- });
- return {
- ...connection,
- edges: connection.edges.map((edge) => ({
- ...edge,
- node: {
- ...edge.node,
- indexFieldMetadatas: edge.node.flatIndexFieldMetadatas,
- createdAt: new Date(edge.node.createdAt),
- updatedAt: new Date(edge.node.updatedAt),
- indexWhereClause: edge.node.indexWhereClause ?? undefined,
- objectMetadataId: objectMetadata.id,
- workspaceId,
- },
- })),
- };
- });
+ return {
+ ...connection,
+ edges: connection.edges.map((edge) => ({
+ ...edge,
+ node: {
+ ...edge.node,
+ indexFieldMetadatas: edge.node.flatIndexFieldMetadatas,
+ createdAt: new Date(edge.node.createdAt),
+ updatedAt: new Date(edge.node.updatedAt),
+ indexWhereClause: edge.node.indexWhereClause ?? undefined,
+ objectMetadataId: objectMetadata.id,
+ workspaceId,
+ },
+ })),
+ };
+ },
+ );
});
}
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/agent-chat-channel/entities/agent-chat-channel.entity.ts b/packages/twenty-server/src/engine/metadata-modules/agent-chat-channel/entities/agent-chat-channel.entity.ts
index 675547a95c6..0289844fa93 100644
--- a/packages/twenty-server/src/engine/metadata-modules/agent-chat-channel/entities/agent-chat-channel.entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/agent-chat-channel/entities/agent-chat-channel.entity.ts
@@ -13,6 +13,7 @@ import { ADD_AGENT_CHAT_CHANNEL_UPGRADE_COMMAND_NAME } from 'src/database/comman
import { NavigationMenuItemEntity } from 'src/engine/metadata-modules/navigation-menu-item/entities/navigation-menu-item.entity';
import { AgentChatChannelRoleEntity } from 'src/engine/metadata-modules/agent-chat-channel/entities/agent-chat-channel-role.entity';
import { WasIntroducedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-introduced-in-upgrade.decorator';
+import { WasRemovedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-removed-in-upgrade.decorator';
import { SyncableEntity } from 'src/engine/workspace-manager/types/syncable-entity.interface';
@Entity({ name: 'agentChatChannel', schema: 'core' })
@@ -49,8 +50,8 @@ export class AgentChatChannelEntity
@Column({ nullable: false, type: 'float', default: 0 })
position: number;
- @Column({ nullable: false, default: false })
- isCustom: boolean;
+ @Column({ nullable: false, default: false, type: 'boolean' })
+ isCustom: WasRemovedInUpgrade<boolean>;
@OneToMany(
() => AgentChatChannelRoleEntity,
diff --git a/packages/twenty-server/src/engine/metadata-modules/agent-chat-channel/services/agent-chat-channel-metadata.service.ts b/packages/twenty-server/src/engine/metadata-modules/agent-chat-channel/services/agent-chat-channel-metadata.service.ts
index 543bdc1e38a..93e475ea0c5 100644
--- a/packages/twenty-server/src/engine/metadata-modules/agent-chat-channel/services/agent-chat-channel-metadata.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/agent-chat-channel/services/agent-chat-channel-metadata.service.ts
@@ -121,7 +121,6 @@ export class AgentChatChannelMetadataService {
icon,
color,
position: lastPosition + 1,
- isCustom: true,
channelRoleUniversalIdentifiers: [],
navigationMenuItemUniversalIdentifiers: [],
applicationUniversalIdentifier:
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/agent.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/agent.resolver.ts
index 69706563dad..cb2ea65e23b 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/agent.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/agent.resolver.ts
@@ -1,5 +1,5 @@
import { UseGuards, UseInterceptors, UseFilters } from '@nestjs/common';
-import { Args, Mutation, Query } from '@nestjs/graphql';
+import { Args, Mutation, Parent, Query, ResolveField } from '@nestjs/graphql';
import { PermissionFlagType } from 'twenty-shared/constants';
import { isNonEmptyString } from '@sniptt/guards';
@@ -17,6 +17,7 @@ import { AuthPrincipalGuard } from 'src/engine/guards/auth-principal.guard';
import { fromFlatAgentWithRoleIdToAgentDto } from 'src/engine/metadata-modules/flat-agent/utils/from-agent-entity-to-agent-dto.util';
import { WorkspaceMigrationGraphqlApiExceptionInterceptor } from 'src/engine/workspace-manager/workspace-migration/interceptors/workspace-migration-graphql-api-exception.interceptor';
import { AiModelRegistryService } from 'src/engine/metadata-modules/ai/ai-models/services/ai-model-registry.service';
+import { IS_CUSTOM_DEPRECATION_REASON } from 'src/engine/metadata-modules/utils/constants/is-custom-deprecation-reason.constant';
import { AgentService } from './agent.service';
@@ -46,7 +47,7 @@ import { ApplicationTargetGuard } from 'src/engine/guards/application-target.gua
WorkspaceMigrationGraphqlApiExceptionInterceptor,
AiGraphqlApiExceptionInterceptor,
)
-@MetadataResolver()
+@MetadataResolver(() => AgentDTO)
@UseFilters(ApplicationExceptionFilter, AuthGraphqlApiExceptionFilter)
export class AgentResolver {
constructor(
@@ -54,6 +55,16 @@ export class AgentResolver {
private readonly aiModelRegistryService: AiModelRegistryService,
) {}
+ @ResolveField(() => Boolean, {
+ deprecationReason: IS_CUSTOM_DEPRECATION_REASON,
+ })
+ isCustom(
+ @Parent() agent: AgentDTO,
+ @AuthWorkspace() workspace: WorkspaceEntity,
+ ): boolean {
+ return agent.applicationId === workspace.workspaceCustomApplicationId;
+ }
+
@Query(() => [AgentDTO])
async findManyAgents(
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
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 f6ab3ff397d..55ef1264d60 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
@@ -51,10 +51,6 @@ export class AgentDTO {
@Field(() => UUIDScalarType, { nullable: true })
roleId?: string;
- @IsBoolean()
- @Field()
- isCustom: boolean;
-
@IsBoolean()
@Field()
isSystem: boolean;
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 b6dde4fe2ad..ca345eb204b 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
@@ -60,8 +60,8 @@ export class AgentEntity
@Column({ nullable: true, type: 'jsonb', default: { type: 'text' } })
responseFormat: JsonbProperty<AgentResponseFormat>;
- @Column({ default: false })
- isCustom: boolean;
+ @Column({ type: 'boolean', default: false })
+ isCustom: WasRemovedInUpgrade<boolean>;
@WasIntroducedInUpgrade({
upgradeCommandName:
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/tools/__tests__/agent-tools.spec.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/tools/__tests__/agent-tools.spec.ts
index 0dcc63809e8..cef9ee02574 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/tools/__tests__/agent-tools.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/tools/__tests__/agent-tools.spec.ts
@@ -38,7 +38,6 @@ const buildAgent = (overrides: Record<string, unknown> = {}) => ({
roleId,
triggers: [],
applicationId: workspaceCustomApplicationId,
- isCustom: true,
isSystem: false,
...overrides,
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/tools/utils/to-agent-summary.util.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/tools/utils/to-agent-summary.util.ts
index 883eebe5d23..6b5a49e9dc6 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/tools/utils/to-agent-summary.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-agent/tools/utils/to-agent-summary.util.ts
@@ -11,5 +11,4 @@ export const toAgentSummary = (agent: FlatAgentWithRoleId) => ({
roleId: agent.roleId,
triggers: agent.triggers,
applicationId: agent.applicationId,
- isCustom: agent.isCustom,
});
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 3f95d0dce16..16f4c98d9b2 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
@@ -52,7 +52,6 @@ export const fromCreateAgentInputToFlatAgent = ({
modelId: createAgentInput.modelId,
responseFormat: createAgentInput.responseFormat ?? { type: 'text' },
workspaceId,
- isCustom: true,
isSystem,
universalIdentifier: v4(),
applicationId: flatApplication.id,
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel.dto.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel.dto.ts
index 17b60fa22d8..e9cf39a80e9 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/dtos/agent-chat-channel.dto.ts
@@ -22,8 +22,8 @@ export class AgentChatChannelDTO {
@Field(() => [UUIDScalarType])
roleIds: string[];
- @Field(() => Boolean)
- isCustom: boolean;
+ @Field(() => UUIDScalarType)
+ applicationId: string;
@Field(() => Boolean, { nullable: true })
isAccessible?: boolean;
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-channel.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-channel.resolver.ts
index 206eb6411dd..0b27c619bf3 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-channel.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/resolvers/agent-chat-channel.resolver.ts
@@ -1,5 +1,12 @@
import { UseFilters, UseGuards, UseInterceptors } from '@nestjs/common';
-import { Args, Int, Mutation, Query } from '@nestjs/graphql';
+import {
+ Args,
+ Int,
+ Mutation,
+ Parent,
+ Query,
+ ResolveField,
+} from '@nestjs/graphql';
import { PermissionFlagType } from 'twenty-shared/constants';
@@ -28,6 +35,7 @@ import { AgentChatChannelThreadsService } from 'src/engine/metadata-modules/ai/a
import { AgentChatThreadTriageService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread-triage.service';
import { AgentChatThreadService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-chat-thread.service';
import { PermissionsService } from 'src/engine/metadata-modules/permissions/permissions.service';
+import { IS_CUSTOM_DEPRECATION_REASON } from 'src/engine/metadata-modules/utils/constants/is-custom-deprecation-reason.constant';
import { AiGraphqlApiExceptionInterceptor } from 'src/engine/metadata-modules/ai/interceptors/ai-graphql-api-exception.interceptor';
import { WorkspaceMigrationGraphqlApiExceptionInterceptor } from 'src/engine/workspace-manager/workspace-migration/interceptors/workspace-migration-graphql-api-exception.interceptor';
@@ -60,6 +68,16 @@ export class AgentChatChannelResolver {
private readonly permissionsService: PermissionsService,
) {}
+ @ResolveField(() => Boolean, {
+ deprecationReason: IS_CUSTOM_DEPRECATION_REASON,
+ })
+ isCustom(
+ @Parent() channel: AgentChatChannelDTO,
+ @AuthWorkspace() workspace: WorkspaceEntity,
+ ): boolean {
+ return channel.applicationId === workspace.workspaceCustomApplicationId;
+ }
+
@Query(() => AgentChatChannelThreadIdsDTO)
async agentChatChannelThreadIds(
@Args('channelId', { type: () => UUIDScalarType }) channelId: string,
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-channel.service.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-channel.service.ts
index f104a59def2..a1219807af9 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-channel.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/services/agent-chat-channel.service.ts
@@ -23,6 +23,7 @@ import {
AiException,
AiExceptionCode,
} from 'src/engine/metadata-modules/ai/ai.exception';
+import { belongsToTwentyStandardApp } from 'src/engine/metadata-modules/utils/belongs-to-twenty-standard-app.util';
import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
type ChannelChanges = {
@@ -149,7 +150,7 @@ export class AgentChatChannelService {
});
// The standard sync would bring a standard channel back, so its chats stay
- if (!channel.isCustom) {
+ if (belongsToTwentyStandardApp(channel)) {
throw new AiException(
'A standard channel cannot be deleted',
AiExceptionCode.CHAT_CHANNEL_IS_STANDARD,
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 6246765c2ee..164c7ecf0fa 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
@@ -7,7 +7,6 @@ export const fromFlatAgentWithRoleIdToAgentDto = ({
description,
icon,
id,
- isCustom,
isSystem,
label,
modelConfiguration,
@@ -23,7 +22,6 @@ export const fromFlatAgentWithRoleIdToAgentDto = ({
createdAt: new Date(createdAt),
description: description ?? undefined,
id,
- isCustom,
isSystem,
label,
modelConfiguration: modelConfiguration ?? undefined,
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 57d5ae245ad..6e01d5a191d 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
@@ -34,7 +34,6 @@ export const transformAgentEntityToFlatAgent = ({
modelId: agentEntity.modelId,
responseFormat: agentEntity.responseFormat,
workspaceId: agentEntity.workspaceId,
- isCustom: agentEntity.isCustom,
isSystem: agentEntity.isSystem,
universalIdentifier: agentEntity.universalIdentifier,
applicationId: agentEntity.applicationId,
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 4682d79c37b..c7d4f2a8c37 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
@@ -477,11 +477,6 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toStringify: false,
universalProperty: 'objectMetadataUniversalIdentifier',
},
- isCustom: {
- toCompare: false,
- toStringify: false,
- universalProperty: undefined,
- },
createdAt: {
toCompare: false,
toStringify: false,
@@ -686,11 +681,6 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toStringify: false,
universalProperty: 'objectMetadataUniversalIdentifier',
},
- isCustom: {
- toCompare: false,
- toStringify: false,
- universalProperty: undefined,
- },
createdAt: {
toCompare: false,
toStringify: false,
@@ -1001,11 +991,6 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toStringify: false,
universalProperty: undefined,
},
- isCustom: {
- toCompare: false,
- toStringify: false,
- universalProperty: undefined,
- },
createdAt: {
toCompare: false,
toStringify: false,
@@ -1230,11 +1215,6 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toStringify: false,
universalProperty: undefined,
},
- isCustom: {
- toCompare: false,
- toStringify: false,
- universalProperty: undefined,
- },
createdAt: {
toCompare: false,
toStringify: false,
@@ -2347,11 +2327,6 @@ export const ALL_ENTITY_PROPERTIES_CONFIGURATION_BY_METADATA_NAME = {
toStringify: false,
universalProperty: undefined,
},
- isCustom: {
- toCompare: false,
- toStringify: false,
- universalProperty: undefined,
- },
createdAt: {
toCompare: false,
toStringify: false,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/__snapshots__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts.snap b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/__snapshots__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts.snap
index 1a73b133c0f..3828fc93427 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/__snapshots__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts.snap
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/__tests__/__snapshots__/morph-relation-from-create-field-input-to-flat-field-metadatas-to-create.spec.ts.snap
@@ -286,7 +286,6 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_f687e4e4252800dddd8e5518362",
@@ -309,7 +308,6 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_cb15d901e889e25d0a9acecb595",
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/generate-deterministic-index-for-flat-field-metadata-or-throw.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/generate-deterministic-index-for-flat-field-metadata-or-throw.util.ts
index a5dd3302f66..d4b6e654eae 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/generate-deterministic-index-for-flat-field-metadata-or-throw.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/generate-deterministic-index-for-flat-field-metadata-or-throw.util.ts
@@ -32,7 +32,6 @@ export const generateDeterministicIndexForFlatFieldMetadataOrThrow = ({
],
indexType: IndexType.BTREE,
indexWhereClause: null,
- isCustom: true,
isUnique: flatFieldMetadata.isUnique ?? false,
isSystemSideEffect: true,
objectMetadataUniversalIdentifier: flatObjectMetadata.universalIdentifier,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/generate-index-for-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/generate-index-for-flat-field-metadata.util.ts
index 8684fa6fe09..b84951a88e3 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/generate-index-for-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils/generate-index-for-flat-field-metadata.util.ts
@@ -36,7 +36,6 @@ export const generateIndexForFlatFieldMetadata = ({
],
indexType: IndexType.BTREE,
indexWhereClause: null,
- isCustom: true,
isUnique: flatFieldMetadata.isUnique ?? false,
isSystemSideEffect: true,
objectMetadataUniversalIdentifier:
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-index-metadata/__mocks__/get-flat-index-metadata.mock.ts b/packages/twenty-server/src/engine/metadata-modules/flat-index-metadata/__mocks__/get-flat-index-metadata.mock.ts
index 2e197faf516..63a8c7e8222 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-index-metadata/__mocks__/get-flat-index-metadata.mock.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-index-metadata/__mocks__/get-flat-index-metadata.mock.ts
@@ -25,7 +25,6 @@ export const getFlatIndexMetadataMock = (
id: faker.string.uuid(),
indexType: IndexType.BTREE,
indexWhereClause: null,
- isCustom: false,
isUnique: false,
isSystemSideEffect: false,
name: 'defaultFlatIndexMetadataName',
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-index-metadata/utils/from-flat-index-metadata-to-index-metadata-dto.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-index-metadata/utils/from-flat-index-metadata-to-index-metadata-dto.util.ts
index 03368cdbe6d..61dfe9c8642 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-index-metadata/utils/from-flat-index-metadata-to-index-metadata-dto.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-index-metadata/utils/from-flat-index-metadata-to-index-metadata-dto.util.ts
@@ -7,8 +7,9 @@ export const fromFlatIndexMetadataToIndexMetadataDto = (
return {
id: flatIndexMetadata.id,
name: flatIndexMetadata.name,
- isCustom: flatIndexMetadata.isCustom,
isUnique: flatIndexMetadata.isUnique,
+ applicationId: flatIndexMetadata.applicationId,
+ isSystemSideEffect: flatIndexMetadata.isSystemSideEffect,
indexWhereClause: flatIndexMetadata.indexWhereClause ?? undefined,
indexType: flatIndexMetadata.indexType,
objectMetadataId: flatIndexMetadata.objectMetadataId,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-create-skill-input-to-flat-skill-to-create.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-create-skill-input-to-flat-skill-to-create.util.ts
index 67c1c660fe7..c6fe89f43d9 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-create-skill-input-to-flat-skill-to-create.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-create-skill-input-to-flat-skill-to-create.util.ts
@@ -33,7 +33,6 @@ export const fromCreateSkillInputToUniversalFlatSkillToCreate = ({
icon: icon ?? null,
description: description ?? null,
content,
- isCustom: true,
isSystem: false,
isActive: true,
createdAt: now,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-delete-skill-input-to-flat-skill-or-throw.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-delete-skill-input-to-flat-skill-or-throw.util.ts
index 26e9f07db56..2be29f13847 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-delete-skill-input-to-flat-skill-or-throw.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-delete-skill-input-to-flat-skill-or-throw.util.ts
@@ -11,9 +11,11 @@ import {
export const fromDeleteSkillInputToFlatSkillOrThrow = ({
flatSkillMaps,
skillId,
+ workspaceCustomApplicationId,
}: {
flatSkillMaps: FlatEntityMaps<FlatSkill>;
skillId: string;
+ workspaceCustomApplicationId: string;
}): FlatSkill => {
const existingFlatSkill = findFlatEntityByIdInFlatEntityMaps({
flatEntityId: skillId,
@@ -27,7 +29,7 @@ export const fromDeleteSkillInputToFlatSkillOrThrow = ({
);
}
- if (!existingFlatSkill.isCustom) {
+ if (existingFlatSkill.applicationId !== workspaceCustomApplicationId) {
throw new SkillException(
'Cannot delete standard skill',
SkillExceptionCode.SKILL_IS_STANDARD,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-flat-skill-to-skill-dto.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-flat-skill-to-skill-dto.util.ts
index 76d75fdd925..85d80db1234 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-flat-skill-to-skill-dto.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-flat-skill-to-skill-dto.util.ts
@@ -8,7 +8,6 @@ export const fromFlatSkillToSkillDto = (flatSkill: FlatSkill): SkillDTO => ({
icon: flatSkill.icon ?? undefined,
description: flatSkill.description ?? undefined,
content: flatSkill.content,
- isCustom: flatSkill.isCustom,
isSystem: flatSkill.isSystem,
isActive: flatSkill.isActive,
workspaceId: flatSkill.workspaceId,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-update-skill-input-to-flat-skill-to-update-or-throw.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-update-skill-input-to-flat-skill-to-update-or-throw.util.ts
index 7c2d40b7c0c..62a61a26a84 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-update-skill-input-to-flat-skill-to-update-or-throw.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-skill/utils/from-update-skill-input-to-flat-skill-to-update-or-throw.util.ts
@@ -14,9 +14,11 @@ import { mergeUpdateInExistingRecord } from 'src/utils/merge-update-in-existing-
export const fromUpdateSkillInputToFlatSkillToUpdateOrThrow = ({
flatSkillMaps,
updateSkillInput,
+ workspaceCustomApplicationId,
}: {
flatSkillMaps: FlatEntityMaps<FlatSkill>;
updateSkillInput: UpdateSkillInput;
+ workspaceCustomApplicationId: string;
}): FlatSkill => {
const existingFlatSkill = findFlatEntityByIdInFlatEntityMaps({
flatEntityId: updateSkillInput.id,
@@ -30,7 +32,7 @@ export const fromUpdateSkillInputToFlatSkillToUpdateOrThrow = ({
);
}
- if (!existingFlatSkill.isCustom) {
+ if (existingFlatSkill.applicationId !== workspaceCustomApplicationId) {
throw new SkillException(
'Cannot update standard skill',
SkillExceptionCode.SKILL_IS_STANDARD,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/__tests__/from-update-view-input-to-flat-view-to-update-or-throw.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/__tests__/from-update-view-input-to-flat-view-to-update-or-throw.util.spec.ts
index cb3a2be53c7..98be763307a 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/__tests__/from-update-view-input-to-flat-view-to-update-or-throw.util.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/__tests__/from-update-view-input-to-flat-view-to-update-or-throw.util.spec.ts
@@ -97,7 +97,6 @@ const updateView = ({
key: null,
position: 0,
isCompact: false,
- isCustom: false,
isActive: true,
openRecordIn: ViewOpenRecordIn.SIDE_PANEL,
visibility: ViewVisibility.WORKSPACE,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/__tests__/view-group-load-limit-validation.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/__tests__/view-group-load-limit-validation.util.spec.ts
index fc23e66603d..f4633e1f368 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/__tests__/view-group-load-limit-validation.util.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/__tests__/view-group-load-limit-validation.util.spec.ts
@@ -55,7 +55,6 @@ const existingFlatView: FlatView = {
key: null,
position: 0,
isCompact: false,
- isCustom: true,
openRecordIn: ViewOpenRecordIn.SIDE_PANEL,
kanbanAggregateOperation: null,
kanbanAggregateOperationFieldMetadataId: null,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/from-create-view-input-to-flat-view-to-create.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/from-create-view-input-to-flat-view-to-create.util.ts
index a069cdda00e..a4a676d6ebe 100644
--- a/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/from-create-view-input-to-flat-view-to-create.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-view/utils/from-create-view-input-to-flat-view-to-create.util.ts
@@ -75,7 +75,6 @@ export const fromCreateViewInputToFlatViewToCreate = ({
createdAt,
updatedAt: createdAt,
deletedAt: null,
- isCustom: true,
anyFieldFilterValue: createViewInput.anyFieldFilterValue ?? null,
calendarFieldMetadataUniversalIdentifier,
calendarEndFieldMetadataUniversalIdentifier,
diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-filter.input.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-filter.input.ts
index f4cd4c3192d..e77ccd879c5 100644
--- a/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-filter.input.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-filter.input.ts
@@ -3,6 +3,7 @@ import { Field, InputType } from '@nestjs/graphql';
import { BooleanFieldComparisonInput } from 'src/engine/metadata-modules/pagination/dtos/boolean-field-comparison.input';
import { UUIDFilterComparisonInput } from 'src/engine/metadata-modules/pagination/dtos/uuid-filter-comparison.input';
import { type MetadataFilterColumn } from 'src/engine/metadata-modules/pagination/types/metadata-filter-column.type';
+import { IS_CUSTOM_DEPRECATION_REASON } from 'src/engine/metadata-modules/utils/constants/is-custom-deprecation-reason.constant';
@InputType('IndexFilter')
export class IndexFilterInput {
@@ -15,7 +16,10 @@ export class IndexFilterInput {
@Field(() => UUIDFilterComparisonInput, { nullable: true })
id?: UUIDFilterComparisonInput;
- @Field(() => BooleanFieldComparisonInput, { nullable: true })
+ @Field(() => BooleanFieldComparisonInput, {
+ nullable: true,
+ deprecationReason: IS_CUSTOM_DEPRECATION_REASON,
+ })
isCustom?: BooleanFieldComparisonInput;
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto.ts
index 94ceb3d1009..13097b4a7b9 100644
--- a/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto.ts
@@ -37,16 +37,19 @@ export class IndexMetadataDTO {
@IsValidMetadataName()
name: string;
- @IsBoolean()
- @IsOptional()
- @Field({ nullable: true })
- isCustom?: boolean;
-
@IsBoolean()
@IsNotEmpty()
@Field()
isUnique: boolean;
+ @IsUUID()
+ @Field(() => UUIDScalarType)
+ applicationId: string;
+
+ @IsBoolean()
+ @Field()
+ isSystemSideEffect: boolean;
+
@IsString()
@IsOptional()
@Field({ nullable: true })
diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.entity.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.entity.ts
index 897ba86bf71..b322d9667c8 100644
--- a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.entity.ts
@@ -13,6 +13,7 @@ import {
} from 'typeorm';
import { WasIntroducedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-introduced-in-upgrade.decorator';
+import { WasRemovedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-removed-in-upgrade.decorator';
import { ADD_IS_SYSTEM_SIDE_EFFECT_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-15/is-system-side-effect-upgrade-command-name.constant';
import { IndexFieldMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-field-metadata.entity';
import { IndexType } from 'twenty-shared/types';
@@ -65,8 +66,8 @@ export class IndexMetadataEntity
)
indexFieldMetadatas: Relation<IndexFieldMetadataEntity[]>;
- @Column({ default: false })
- isCustom: boolean;
+ @Column({ type: 'boolean', default: false })
+ isCustom: WasRemovedInUpgrade<boolean>;
@Column({ nullable: false, default: false })
isUnique: boolean;
diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.resolver.ts
index a7af446c5fd..c8b0cbc6dd5 100644
--- a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.resolver.ts
@@ -2,6 +2,7 @@ import { UseFilters, UseGuards, UsePipes } from '@nestjs/common';
import { Args, Context, Mutation, Parent, ResolveField } from '@nestjs/graphql';
import { PermissionFlagType } from 'twenty-shared/constants';
+import { isWorkspaceCustomIndex } from 'twenty-shared/metadata';
import { MetadataResolver } from 'src/engine/api/graphql/graphql-config/decorators/metadata-resolver.decorator';
import { PreventNestToAutoLogGraphqlErrorsFilter } from 'src/engine/core-modules/graphql/filters/prevent-nest-to-auto-log-graphql-errors.filter';
@@ -17,6 +18,7 @@ import { DeleteOneIndexInput } from 'src/engine/metadata-modules/index-metadata/
import { IndexFieldMetadataDTO } from 'src/engine/metadata-modules/index-metadata/dtos/index-field-metadata.dto';
import { IndexMetadataDTO } from 'src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto';
import { IndexMetadataService } from 'src/engine/metadata-modules/index-metadata/services/index-metadata.service';
+import { IS_CUSTOM_DEPRECATION_REASON } from 'src/engine/metadata-modules/utils/constants/is-custom-deprecation-reason.constant';
import { indexMetadataGraphqlApiExceptionHandler } from 'src/engine/metadata-modules/index-metadata/utils/index-metadata-graphql-api-exception-handler.util';
import { objectMetadataGraphqlApiExceptionHandler } from 'src/engine/metadata-modules/object-metadata/utils/object-metadata-graphql-api-exception-handler.util';
import { PermissionsGraphqlApiExceptionFilter } from 'src/engine/metadata-modules/permissions/utils/permissions-graphql-api-exception.filter';
@@ -45,6 +47,20 @@ import { AuthGraphqlApiExceptionFilter } from 'src/engine/core-modules/auth/filt
export class IndexMetadataResolver {
constructor(private readonly indexMetadataService: IndexMetadataService) {}
+ @ResolveField(() => Boolean, {
+ nullable: true,
+ deprecationReason: IS_CUSTOM_DEPRECATION_REASON,
+ })
+ isCustom(
+ @Parent() indexMetadata: IndexMetadataDTO,
+ @AuthWorkspace() workspace: WorkspaceEntity,
+ ): boolean {
+ return isWorkspaceCustomIndex({
+ indexMetadata,
+ workspaceCustomApplicationId: workspace.workspaceCustomApplicationId,
+ });
+ }
+
@ResolveField(() => [IndexFieldMetadataDTO], { nullable: false })
async indexFieldMetadataList(
@AuthWorkspace() workspace: WorkspaceEntity,
diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/services/index-metadata.service.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/services/index-metadata.service.ts
index 5c89e1cdccb..bf083bebd68 100644
--- a/packages/twenty-server/src/engine/metadata-modules/index-metadata/services/index-metadata.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/services/index-metadata.service.ts
@@ -3,6 +3,7 @@ import { Injectable } from '@nestjs/common';
import { msg } from '@lingui/core/macro';
import { compositeTypeDefinitions, RelationType } from 'twenty-shared/types';
import { isNonEmptyString } from '@sniptt/guards';
+import { isWorkspaceCustomIndex } from 'twenty-shared/metadata';
import { isDefined } from 'twenty-shared/utils';
import { v4 } from 'uuid';
@@ -200,6 +201,11 @@ export class IndexMetadataService {
objectMetadataId: createIndexInput.objectMetadataId,
});
+ const { workspaceCustomFlatApplication } =
+ await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
+ { workspaceId },
+ );
+
const existingCustomIndexCount = Object.values(
existingFlatIndexMaps.byUniversalIdentifier,
)
@@ -207,7 +213,10 @@ export class IndexMetadataService {
.filter(
(flatIndex) =>
flatIndex.objectMetadataId === createIndexInput.objectMetadataId &&
- flatIndex.isCustom,
+ isWorkspaceCustomIndex({
+ indexMetadata: flatIndex,
+ workspaceCustomApplicationId: workspaceCustomFlatApplication.id,
+ }),
).length;
if (existingCustomIndexCount >= MAX_CUSTOM_INDEXES_PER_OBJECT) {
@@ -220,11 +229,6 @@ export class IndexMetadataService {
);
}
- const { workspaceCustomFlatApplication } =
- await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
- { workspaceId },
- );
-
const indexMetadataUniversalIdentifier = v4();
const createdAt = new Date().toISOString();
@@ -238,7 +242,6 @@ export class IndexMetadataService {
indexType: createIndexInput.indexType,
// WHERE clause is system-only — see CreateIndexInput for rationale.
indexWhereClause: null,
- isCustom: true,
isUnique: false,
isSystemSideEffect: false,
objectMetadataUniversalIdentifier:
@@ -338,9 +341,19 @@ export class IndexMetadataService {
);
}
+ const { workspaceCustomFlatApplication } =
+ await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
+ { workspaceId },
+ );
+
// Protect system indexes — they back uniqueness constraints, FK lookups,
// and search performance. Dropping one corrupts the data model.
- if (!flatIndexToDelete.isCustom) {
+ if (
+ !isWorkspaceCustomIndex({
+ indexMetadata: flatIndexToDelete,
+ workspaceCustomApplicationId: workspaceCustomFlatApplication.id,
+ })
+ ) {
throw new IndexMetadataException(
`Index ${id} is a system index and cannot be deleted`,
IndexMetadataExceptionCode.CANNOT_DELETE_SYSTEM_INDEX,
@@ -350,11 +363,6 @@ export class IndexMetadataService {
);
}
- const { workspaceCustomFlatApplication } =
- await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
- { workspaceId },
- );
-
const validateAndBuildResult =
await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration(
{
diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/utils/__tests__/generate-flat-index.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/utils/__tests__/generate-flat-index.util.spec.ts
index d9584dbead9..297013227a3 100644
--- a/packages/twenty-server/src/engine/metadata-modules/index-metadata/utils/__tests__/generate-flat-index.util.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/utils/__tests__/generate-flat-index.util.spec.ts
@@ -67,7 +67,6 @@ describe('generateFlatIndexMetadataWithNameOrThrow', () => {
indexType: overrides.indexType,
indexWhereClause: overrides.indexWhereClause ?? null,
isUnique: overrides.isUnique,
- isCustom: false,
isSystemSideEffect: false,
universalFlatIndexFieldMetadatas: overrides.fieldIds.map((id, order) => ({
createdAt: now,
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.resolver.ts
index 8891eee47df..076c0edafce 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.resolver.ts
@@ -208,6 +208,7 @@ export class ObjectMetadataResolver {
return context.loaders.indexMetadataConnectionLoader.load({
objectMetadata,
workspaceId: workspace.id,
+ workspaceCustomApplicationId: workspace.workspaceCustomApplicationId,
filter,
paging,
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-search-vector-gin-index-for-custom-object.util.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-search-vector-gin-index-for-custom-object.util.ts
index 91ea4850a70..ea17fca0191 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-search-vector-gin-index-for-custom-object.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-search-vector-gin-index-for-custom-object.util.ts
@@ -29,7 +29,6 @@ export const buildSearchVectorGinIndexForCustomObject = ({
],
indexType: IndexType.GIN,
indexWhereClause: null,
- isCustom: false,
isUnique: false,
isSystemSideEffect: true,
objectMetadataUniversalIdentifier: flatObjectMetadata.universalIdentifier,
diff --git a/packages/twenty-server/src/engine/metadata-modules/skill/__tests__/skill.resolver.spec.ts b/packages/twenty-server/src/engine/metadata-modules/skill/__tests__/skill.resolver.spec.ts
index d3fba889d06..b4b5dad5960 100644
--- a/packages/twenty-server/src/engine/metadata-modules/skill/__tests__/skill.resolver.spec.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/skill/__tests__/skill.resolver.spec.ts
@@ -39,7 +39,6 @@ describe('SkillResolver translatable fields', () => {
label: SKILL_LABEL,
description: SKILL_DESCRIPTION,
content: 'Skill content',
- isCustom: false,
isSystem: false,
isActive: true,
workspaceId: WORKSPACE_ID,
@@ -103,7 +102,6 @@ describe('SkillResolver translatable fields', () => {
const { resolver } = buildResolver();
const skill = aSkill({
applicationId: CUSTOM_APPLICATION_ID,
- isCustom: true,
label: 'Lead triage',
description: 'Routes inbound leads to the right owner',
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/skill/dtos/skill.dto.ts b/packages/twenty-server/src/engine/metadata-modules/skill/dtos/skill.dto.ts
index 75186a3a49b..9f1d03b7452 100644
--- a/packages/twenty-server/src/engine/metadata-modules/skill/dtos/skill.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/skill/dtos/skill.dto.ts
@@ -38,10 +38,6 @@ export class SkillDTO {
@Field()
content: string;
- @IsBoolean()
- @Field()
- isCustom: boolean;
-
@IsBoolean()
@Field()
isSystem: boolean;
diff --git a/packages/twenty-server/src/engine/metadata-modules/skill/entities/skill.entity.ts b/packages/twenty-server/src/engine/metadata-modules/skill/entities/skill.entity.ts
index c079a75f875..d3d8d2c19e6 100644
--- a/packages/twenty-server/src/engine/metadata-modules/skill/entities/skill.entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/skill/entities/skill.entity.ts
@@ -9,6 +9,7 @@ import {
import { ADD_IS_SYSTEM_TO_SKILL_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-40/add-is-system-to-skill-upgrade-command-name.constant';
import { WasIntroducedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-introduced-in-upgrade.decorator';
+import { WasRemovedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-removed-in-upgrade.decorator';
import { SyncableEntity } from 'src/engine/workspace-manager/types/syncable-entity.interface';
@Entity('skill')
@@ -40,8 +41,8 @@ export class SkillEntity
@Column({ nullable: false, type: 'text' })
content: string;
- @Column({ default: false })
- isCustom: boolean;
+ @Column({ type: 'boolean', default: false })
+ isCustom: WasRemovedInUpgrade<boolean>;
@WasIntroducedInUpgrade({
upgradeCommandName: ADD_IS_SYSTEM_TO_SKILL_UPGRADE_COMMAND_NAME,
diff --git a/packages/twenty-server/src/engine/metadata-modules/skill/skill.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/skill/skill.resolver.ts
index a21cb8d6f54..257bdd5a2eb 100644
--- a/packages/twenty-server/src/engine/metadata-modules/skill/skill.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/skill/skill.resolver.ts
@@ -29,6 +29,7 @@ import { resolveEffectiveEntityProperty } from 'src/engine/metadata-modules/over
import { CreateSkillInput } from 'src/engine/metadata-modules/skill/dtos/create-skill.input';
import { SkillDTO } from 'src/engine/metadata-modules/skill/dtos/skill.dto';
import { UpdateSkillInput } from 'src/engine/metadata-modules/skill/dtos/update-skill.input';
+import { IS_CUSTOM_DEPRECATION_REASON } from 'src/engine/metadata-modules/utils/constants/is-custom-deprecation-reason.constant';
import { SkillGraphqlApiExceptionInterceptor } from 'src/engine/metadata-modules/skill/interceptors/skill-graphql-api-exception.interceptor';
import { SkillService } from 'src/engine/metadata-modules/skill/skill.service';
import { WorkspaceMigrationGraphqlApiExceptionInterceptor } from 'src/engine/workspace-manager/workspace-migration/interceptors/workspace-migration-graphql-api-exception.interceptor';
@@ -94,6 +95,16 @@ export class SkillResolver {
});
}
+ @ResolveField(() => Boolean, {
+ deprecationReason: IS_CUSTOM_DEPRECATION_REASON,
+ })
+ isCustom(
+ @Parent() skill: SkillDTO,
+ @AuthWorkspace() workspace: WorkspaceEntity,
+ ): boolean {
+ return skill.applicationId === workspace.workspaceCustomApplicationId;
+ }
+
@Query(() => [SkillDTO])
async skills(
@AuthWorkspace() workspace: WorkspaceEntity,
diff --git a/packages/twenty-server/src/engine/metadata-modules/skill/skill.service.ts b/packages/twenty-server/src/engine/metadata-modules/skill/skill.service.ts
index 6e487b103ca..b616050daa7 100644
--- a/packages/twenty-server/src/engine/metadata-modules/skill/skill.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/skill/skill.service.ts
@@ -140,6 +140,7 @@ export class SkillService {
const flatSkillToUpdate = fromUpdateSkillInputToFlatSkillToUpdateOrThrow({
flatSkillMaps: existingFlatSkillMaps,
updateSkillInput: input,
+ workspaceCustomApplicationId: workspaceCustomFlatApplication.id,
});
const validateAndBuildResult =
@@ -199,6 +200,7 @@ export class SkillService {
const flatSkillToDelete = fromDeleteSkillInputToFlatSkillOrThrow({
flatSkillMaps: existingFlatSkillMaps,
skillId: id,
+ workspaceCustomApplicationId: workspaceCustomFlatApplication.id,
});
const validateAndBuildResult =
diff --git a/packages/twenty-server/src/engine/metadata-modules/utils/constants/is-custom-deprecation-reason.constant.ts b/packages/twenty-server/src/engine/metadata-modules/utils/constants/is-custom-deprecation-reason.constant.ts
new file mode 100644
index 00000000000..67849eccf4c
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/utils/constants/is-custom-deprecation-reason.constant.ts
@@ -0,0 +1,2 @@
+export const IS_CUSTOM_DEPRECATION_REASON =
+ 'Derived from applicationId and removed in 2.54: compare applicationId with the workspace custom application instead.';
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/controllers/view.controller.ts b/packages/twenty-server/src/engine/metadata-modules/view/controllers/view.controller.ts
index 6a94b863100..a343a0027f2 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/controllers/view.controller.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/controllers/view.controller.ts
@@ -31,6 +31,7 @@ import { findFlatEntityByIdInFlatEntityMaps } from 'src/engine/metadata-modules/
import { ApplicationTranslationCatalogService } from 'src/engine/metadata-modules/application-translation-catalog/services/application-translation-catalog.service';
import { buildViewNameObjectLabels } from 'src/engine/metadata-modules/view/utils/build-view-name-object-labels.util';
import { resolveViewName } from 'src/engine/metadata-modules/view/utils/resolve-view-name.util';
+import { getTwentyStandardApplicationIdOrThrow } from 'src/engine/metadata-modules/utils/get-twenty-standard-application-id-or-throw.util';
import { belongsToTwentyStandardApp } from 'src/engine/metadata-modules/utils/belongs-to-twenty-standard-app.util';
import { CreateViewInput } from 'src/engine/metadata-modules/view/dtos/inputs/create-view.input';
import { UpdateViewInput } from 'src/engine/metadata-modules/view/dtos/inputs/update-view.input';
@@ -212,18 +213,24 @@ export class ViewController {
hasObjectMetadataLabelPlaceholder(view.name),
);
- if (!hasTemplates && views.every((view) => view.isCustom)) {
- return views;
- }
-
- const { flatObjectMetadataMaps } =
+ const { flatObjectMetadataMaps, flatApplicationMaps } =
await this.flatEntityMapsCacheService.getOrRecomputeManyOrAllFlatEntityMaps(
{
workspaceId,
- flatMapsKeys: ['flatObjectMetadataMaps'],
+ flatMapsKeys: ['flatObjectMetadataMaps', 'flatApplicationMaps'],
},
);
+ const twentyStandardApplicationId =
+ getTwentyStandardApplicationIdOrThrow(flatApplicationMaps);
+
+ if (
+ !hasTemplates &&
+ views.every((view) => view.applicationId !== twentyStandardApplicationId)
+ ) {
+ return views;
+ }
+
const getI18nContext =
await this.applicationTranslationCatalogService.getI18nContextByApplicationId(
{
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/dtos/view.dto.ts b/packages/twenty-server/src/engine/metadata-modules/view/dtos/view.dto.ts
index 69a59356263..799b5eae960 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/dtos/view.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/dtos/view.dto.ts
@@ -66,9 +66,6 @@ export class ViewDTO {
@Field({ nullable: false, defaultValue: false })
isCompact: boolean;
- @Field({ nullable: false, defaultValue: false })
- isCustom: boolean;
-
@Field(() => ViewOpenRecordIn, {
nullable: false,
defaultValue: ViewOpenRecordIn.SIDE_PANEL,
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/entities/view.entity.ts b/packages/twenty-server/src/engine/metadata-modules/view/entities/view.entity.ts
index 69fea2107f1..6710370d5ed 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/entities/view.entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/entities/view.entity.ts
@@ -24,6 +24,7 @@ import {
} from 'twenty-shared/types';
import { WasIntroducedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-introduced-in-upgrade.decorator';
+import { WasRemovedInUpgrade } from 'src/engine/core-modules/upgrade/decorators/was-removed-in-upgrade.decorator';
import { UserWorkspaceEntity } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
import { ADD_IS_SYSTEM_SIDE_EFFECT_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-15/is-system-side-effect-upgrade-command-name.constant';
import { ADD_VIEW_KANBAN_COLUMN_WIDTH_UPGRADE_COMMAND_NAME } from 'src/database/commands/upgrade-version-command/2-15/add-view-kanban-column-width-upgrade-command-name.constant';
@@ -125,7 +126,7 @@ export class ViewEntity
isCompact: boolean;
@Column({ nullable: false, default: false, type: 'boolean' })
- isCustom: boolean;
+ isCustom: WasRemovedInUpgrade<boolean>;
// Deprecated: superseded by objectMetadata.openRecordIn and the member preference.
@Column({
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts
index c4c7a5738b5..52d3b3d8e1c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/resolvers/view.resolver.ts
@@ -40,6 +40,7 @@ import { CreateViewInput } from 'src/engine/metadata-modules/view/dtos/inputs/cr
import { UpdateViewInput } from 'src/engine/metadata-modules/view/dtos/inputs/update-view.input';
import { UpsertViewWidgetInput } from 'src/engine/metadata-modules/view/dtos/inputs/upsert-view-widget.input';
import { ViewDTO } from 'src/engine/metadata-modules/view/dtos/view.dto';
+import { IS_CUSTOM_DEPRECATION_REASON } from 'src/engine/metadata-modules/utils/constants/is-custom-deprecation-reason.constant';
import { type ViewEntity } from 'src/engine/metadata-modules/view/entities/view.entity';
import { ViewWidgetUpsertService } from 'src/engine/metadata-modules/view/services/view-widget-upsert.service';
import { ViewService } from 'src/engine/metadata-modules/view/services/view.service';
@@ -99,6 +100,16 @@ export class ViewResolver {
});
}
+ @ResolveField(() => Boolean, {
+ deprecationReason: IS_CUSTOM_DEPRECATION_REASON,
+ })
+ isCustom(
+ @Parent() view: ViewDTO,
+ @AuthWorkspace() workspace: WorkspaceEntity,
+ ): boolean {
+ return view.applicationId === workspace.workspaceCustomApplicationId;
+ }
+
// A workspace-custom view can point at a standard object, so the label resolves against the object's application
private async resolveObjectLabelPlaceholderValues({
view,
diff --git a/packages/twenty-server/src/engine/metadata-modules/view/utils/build-base-universal-flat-view.util.ts b/packages/twenty-server/src/engine/metadata-modules/view/utils/build-base-universal-flat-view.util.ts
index 8ea86094180..bab76d88882 100644
--- a/packages/twenty-server/src/engine/metadata-modules/view/utils/build-base-universal-flat-view.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/view/utils/build-base-universal-flat-view.util.ts
@@ -38,7 +38,6 @@ export const buildBaseUniversalFlatView = ({
createdAt,
updatedAt: createdAt,
deletedAt: null,
- isCustom: true,
anyFieldFilterValue: null,
calendarFieldMetadataUniversalIdentifier: null,
calendarEndFieldMetadataUniversalIdentifier: null,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-chat-channel/build-standard-flat-agent-chat-channel-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-chat-channel/build-standard-flat-agent-chat-channel-maps.util.ts
index dabba8d7156..a20e47fd650 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-chat-channel/build-standard-flat-agent-chat-channel-maps.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/agent-chat-channel/build-standard-flat-agent-chat-channel-maps.util.ts
@@ -27,7 +27,6 @@ export const buildStandardFlatAgentChatChannelMaps = ({
icon: channel.icon,
color: channel.color,
position: channel.position,
- isCustom: false,
channelRoleIds: [],
channelRoleUniversalIdentifiers: [],
navigationMenuItemIds: [],
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 7b5dd85800f..a96ca9af679 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
@@ -18,7 +18,6 @@ export type CreateStandardAgentContext = {
prompt: string;
modelId: ModelId;
responseFormat: AgentResponseFormat;
- isCustom: boolean;
isSystem: boolean;
modelConfiguration: ModelConfiguration | null;
};
@@ -37,7 +36,6 @@ export const createStandardAgentFlatMetadata = ({
prompt,
modelId,
responseFormat,
- isCustom,
isSystem,
modelConfiguration,
},
@@ -57,7 +55,6 @@ export const createStandardAgentFlatMetadata = ({
prompt,
modelId,
responseFormat,
- isCustom,
isSystem,
modelConfiguration,
triggers: [],
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 1ca73495bff..3f01ef1e066 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
@@ -42,7 +42,6 @@ Response format:
Always base answers on official Twenty documentation. Be patient and helpful.`,
modelId: AUTO_SELECT_WORKSPACE_DEFAULT_MODEL_ID,
responseFormat: { type: 'text' },
- isCustom: false,
isSystem: false,
modelConfiguration: {},
},
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util.ts
index 160a26c6e91..c88d43c948b 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util.ts
@@ -118,7 +118,6 @@ export const createStandardIndexFlatMetadata = <
TWENTY_STANDARD_APPLICATION.universalIdentifier,
indexType,
indexWhereClause,
- isCustom: false,
isUnique,
isSystemSideEffect: true,
name: computedIndexName,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/skill-metadata/create-standard-flat-skill-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/skill-metadata/create-standard-flat-skill-metadata.util.ts
index d40a45ac4a1..4f9ae951446 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/skill-metadata/create-standard-flat-skill-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/skill-metadata/create-standard-flat-skill-metadata.util.ts
@@ -154,7 +154,6 @@ Do NOT call \`validate_workflow\` after every change. Call it exactly ONCE at th
- Ensure workflow logic remains coherent
Prioritize user understanding and workflow effectiveness.`,
- isCustom: false,
isSystem: true,
},
}),
@@ -290,7 +289,6 @@ This is free — it runs before the sandbox and does not add a code_interpreter
Every tool round-trip re-sends the ENTIRE conversation (system prompt, loaded skills, and all prior tool inputs/outputs) as new input tokens, so a long thread makes every later step progressively more expensive. When the user finishes an import and moves on to a distinct objective (e.g. field configuration, segmentation, dashboards, or a second unrelated import), suggest starting a NEW thread for it rather than continuing in the same one, which resets the context and keeps cost low. Keep a single import (inspect, confirm, validate, write, report) within one thread.
Prioritize data integrity and provide clear feedback on operations performed.`,
- isCustom: false,
isSystem: true,
},
}),
@@ -418,7 +416,6 @@ Share links to the configured objects and views so the user can open them when r
Loop STEP 6 for all the custom objects
`,
- isCustom: false,
isSystem: true,
},
}),
@@ -582,7 +579,6 @@ After creating a tab, use its returned tabId as pageLayoutTabId when calling add
- Start simple, add complexity as needed
- When modifying a chart, confirm whether the user wants to change settings or change chart type
- Use RECORD_TABLE widgets to give users direct access to filtered record lists without leaving the dashboard`,
- isCustom: false,
isSystem: true,
},
}),
@@ -669,7 +665,6 @@ You help users manage their workspace data model by creating, updating, and orga
- Provide clear feedback on operations performed
Prioritize data model integrity and user understanding.`,
- isCustom: false,
isSystem: true,
},
}),
@@ -841,7 +836,6 @@ company_ids = twenty.lookup_by('companies', 'name', ['Acme', 'Globex'])
\`\`\`
For importing CSV/Excel/spreadsheet data, load the \`data-manipulation\` skill for the full recipe.`,
- isCustom: false,
isSystem: true,
},
}),
@@ -985,7 +979,6 @@ If errors found, fix them and recalculate again.
| Create Excel | openpyxl | \`Workbook()\` |
| Add formula | openpyxl | \`sheet['B2'] = '=SUM(A1:A10)'\` |
| Recalculate | script | \`python /home/user/scripts/xlsx/recalc.py file.xlsx\` |`,
- isCustom: false,
isSystem: true,
},
}),
@@ -1129,7 +1122,6 @@ writer.write('/home/user/output/page1.pdf')
| Validate fill | script | \`python create_validation_image.py filled.pdf\` |
| Create PDF | reportlab | \`canvas.Canvas('out.pdf')\` |
| Merge PDFs | PyPDF2 | \`PdfMerger()\` |`,
- isCustom: false,
isSystem: true,
},
}),
@@ -1294,7 +1286,6 @@ para.paragraph_format.space_after = Pt(12)
| Unpack for editing | script | \`python unpack.py doc.docx ./out/\` |
| Repack | script | \`python pack.py ./out/ doc.docx\` |
| Validate | script | \`python validate.py doc.docx\` |`,
- isCustom: false,
isSystem: true,
},
}),
@@ -1437,7 +1428,6 @@ Some fields carry sub-fields you filter on directly:
- Suggest the most relevant view type based on the object's fields
- After creating a view, configure useful view fields and share a clickable view reference
- Explain what each view type does so users can make informed choices`,
- isCustom: false,
isSystem: true,
},
}),
@@ -1620,7 +1610,6 @@ python /home/user/scripts/pptx/replace.py input.pptx '{"{{company}}": "Acme Corp
| Get slide inventory | script | \`python inventory.py pres.pptx\` |
| Reorder slides | script | \`python rearrange.py pres.pptx '[2,1,3]' out.pptx\` |
| Find/replace | script | \`python replace.py pres.pptx '{...}' out.pptx\` |`,
- isCustom: false,
isSystem: true,
},
}),
@@ -1725,7 +1714,6 @@ When the user names a person, resolve them to a workspace member first and resta
## After mutating
Report what changed in plain terms: which role, what it can now do, and who is affected. If you changed overrides, restate the objects that are still overridden so the user can see nothing was dropped.`,
- isCustom: false,
isSystem: true,
},
}),
@@ -1779,7 +1767,6 @@ Reference every record you name so the user can click through to it.
- This skill only reads. Do not create or update anything.
- If the user has not said who the meeting is with, ask before gathering.
- Keep it short. A brief nobody finishes is a brief nobody uses.`,
- isCustom: false,
isSystem: false,
},
}),
@@ -1831,7 +1818,6 @@ Say which signals you could not evaluate and why. A review that hides its gaps i
- This skill only reads. Propose the next step and let the user ask you to create the task.
- Never call a deal at risk without naming the signal that says so.
- Never guess at an amount or a date that is missing. Report it as missing.`,
- isCustom: false,
isSystem: false,
},
}),
@@ -1885,7 +1871,6 @@ Always confirm before writing. Show what you will change and wait.
- Never delete a record in this skill, and never fake a merge by copying fields across and deleting the loser.
- Never confirm on the user's behalf, and never read a general yes as approval for a second batch.
- If there is nothing wrong, say so. A clean workspace is a valid result.`,
- isCustom: false,
isSystem: false,
},
}),
@@ -1937,7 +1922,6 @@ Anything you found that has no field to live in belongs in a note on the record,
- Never invent a value to fill a gap. An empty field beats a wrong one.
- Confidence matters: if the search returned a different person who shares the name, say so and stop.
- Do not enrich a large set of records unless the user asked for exactly that, and confirm the scope before you start.`,
- isCustom: false,
isSystem: false,
},
}),
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/skill-metadata/create-standard-skill-flat-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/skill-metadata/create-standard-skill-flat-metadata.util.ts
index 7f37a96ac83..6eff4f46ba5 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/skill-metadata/create-standard-skill-flat-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/skill-metadata/create-standard-skill-flat-metadata.util.ts
@@ -13,7 +13,6 @@ export type CreateStandardSkillContext = {
icon: string | null;
description: string | null;
content: string;
- isCustom: boolean;
isSystem: boolean;
isActive?: boolean;
};
@@ -30,7 +29,6 @@ export const createStandardSkillFlatMetadata = ({
icon,
description,
content,
- isCustom,
isSystem,
isActive = true,
},
@@ -48,7 +46,6 @@ export const createStandardSkillFlatMetadata = ({
icon,
description,
content,
- isCustom,
isSystem,
isActive,
workspaceId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/create-standard-view-flat-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/create-standard-view-flat-metadata.util.ts
index 119a6e87f01..128d4cdf725 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/create-standard-view-flat-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/create-standard-view-flat-metadata.util.ts
@@ -24,7 +24,6 @@ export type CreateStandardViewOptions<O extends AllStandardObjectName> = {
position: number;
icon: string;
isCompact?: boolean;
- isCustom?: boolean;
openRecordIn?: ViewOpenRecordIn;
kanbanAggregateOperation?: AggregateOperations | null;
kanbanAggregateOperationFieldName?: AllStandardObjectFieldName<O>;
@@ -53,7 +52,6 @@ export const createStandardViewFlatMetadata = <
position,
icon,
isCompact = false,
- isCustom = false,
openRecordIn = ViewOpenRecordIn.SIDE_PANEL,
kanbanAggregateOperation = null,
kanbanAggregateOperationFieldName,
@@ -147,7 +145,6 @@ export const createStandardViewFlatMetadata = <
icon,
position,
isCompact,
- isCustom,
openRecordIn,
kanbanAggregateOperation,
kanbanAggregateOperationFieldMetadataId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/action-handlers/index/utils/from-universal-flat-index-to-flat-index.util.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/action-handlers/index/utils/from-universal-flat-index-to-flat-index.util.ts
index 7acb034d0b5..a41cc8855b9 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/action-handlers/index/utils/from-universal-flat-index-to-flat-index.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-runner/action-handlers/index/utils/from-universal-flat-index-to-flat-index.util.ts
@@ -80,7 +80,6 @@ export const fromUniversalFlatIndexToFlatIndex = ({
objectMetadataUniversalIdentifier:
universalFlatIndexMetadata.objectMetadataUniversalIdentifier,
name: universalFlatIndexMetadata.name,
- isCustom: universalFlatIndexMetadata.isCustom,
isUnique: universalFlatIndexMetadata.isUnique,
isSystemSideEffect: universalFlatIndexMetadata.isSystemSideEffect,
indexWhereClause: universalFlatIndexMetadata.indexWhereClause,
diff --git a/packages/twenty-server/test/integration/graphql/suites/chat-channel.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/chat-channel.integration-spec.ts
index 3611d6b567d..a918c4440d4 100644
--- a/packages/twenty-server/test/integration/graphql/suites/chat-channel.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/chat-channel.integration-spec.ts
@@ -59,7 +59,7 @@ type ChannelThreadMutationName =
| 'reopenAgentChatThreadInChannel';
const CREATE_CHANNEL = parse(
- `mutation CreateChannel($input: CreateAgentChatChannelInput!) { createAgentChatChannel(input: $input) { id name icon color roleIds isCustom } }`,
+ `mutation CreateChannel($input: CreateAgentChatChannelInput!) { createAgentChatChannel(input: $input) { id name icon color roleIds applicationId } }`,
);
const UPDATE_CHANNEL = parse(
@@ -75,7 +75,7 @@ const CHANNEL_ROLES = parse(
);
const CHANNELS = parse(
- `query Channels { agentChatChannels { id name isCustom isAccessible } }`,
+ `query Channels { agentChatChannels { id name applicationId isCustom isAccessible } }`,
);
const CREATE_THREAD = parse(
@@ -225,6 +225,7 @@ const listChannels = async (
{
id: string;
name: string;
+ applicationId: string;
isCustom: boolean;
isAccessible: boolean;
}[]
@@ -618,12 +619,15 @@ describe('Chat channels through the authenticated API', () => {
const channels = await listChannels(APPLE_JONY_MEMBER_ACCESS_TOKEN);
+ const createdChannel = channels[channels.length - 1];
+
expect(channels[0]).toMatchObject({ name: 'General', isCustom: false });
- expect(channels[channels.length - 1]).toMatchObject({
+ expect(createdChannel).toMatchObject({
id: channelId,
isCustom: true,
isAccessible: true,
});
+ expect(createdChannel.applicationId).not.toBe(channels[0].applicationId);
});
it('refuses a channel without a name, or with the name of another one', async () => {
@@ -678,7 +682,7 @@ describe('Chat channels through the authenticated API', () => {
it('keeps General and its chats, as the standard sync would bring it back', async () => {
const [general] = await listChannels();
- expect(general).toMatchObject({ name: 'General', isCustom: false });
+ expect(general).toMatchObject({ name: 'General' });
const destinationChannelId = await createChannel();
const threadId = await createThreadInChannel(general.id);
diff --git a/packages/twenty-server/test/integration/metadata/suites/agent/failing-agent-deletion.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/agent/failing-agent-deletion.integration-spec.ts
index cdb28453f0e..a28506f1a1b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/agent/failing-agent-deletion.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/agent/failing-agent-deletion.integration-spec.ts
@@ -47,11 +47,11 @@ describe('Agent deletion should fail', () => {
const { data } = await findAgents({
expectToFail: false,
input: undefined,
- gqlFields: 'id name isCustom',
+ gqlFields: 'id name',
});
const helperAgent = data.findManyAgents.find(
- (agent) => agent.name === 'helper' && agent.isCustom === false,
+ (agent) => agent.name === 'helper',
);
expect(helperAgent).toBeDefined();
diff --git a/packages/twenty-server/test/integration/metadata/suites/agent/failing-agent-update.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/agent/failing-agent-update.integration-spec.ts
index 923a0e2a26e..384f1e28a75 100644
--- a/packages/twenty-server/test/integration/metadata/suites/agent/failing-agent-update.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/agent/failing-agent-update.integration-spec.ts
@@ -220,11 +220,11 @@ describe('Agent update should fail', () => {
const { data } = await findAgents({
expectToFail: false,
input: undefined,
- gqlFields: 'id name isCustom',
+ gqlFields: 'id name',
});
const helperAgent = data.findManyAgents.find(
- (agent) => agent.name === 'helper' && agent.isCustom === false,
+ (agent) => agent.name === 'helper',
);
expect(helperAgent).toBeDefined();
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 71c27b36733..47a5c834a09 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
@@ -43,7 +43,6 @@ describe('Agent creation should succeed', () => {
modelId: TEST_AI_MODEL_ID,
responseFormat: { type: 'text' },
roleId: null,
- isCustom: true,
modelConfiguration: null,
});
});
@@ -205,7 +204,6 @@ describe('Agent creation should succeed', () => {
prompt: 'Agent with role assignment',
modelId: TEST_AI_MODEL_ID,
roleId: createdRoleId,
- isCustom: true,
});
// Deleting the role first would refuse to orphan the agent, since the default role isn't agent-assignable.
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 7f98c62be38..dde554492e9 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
@@ -15,7 +15,6 @@ const DEFAULT_AGENT_GQL_FIELDS = `
modelId
responseFormat
roleId
- isCustom
applicationId
modelConfiguration
triggers
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 6eec38e261c..247dab08b9b 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
@@ -11,7 +11,6 @@ const DEFAULT_AGENT_GQL_FIELDS = `
modelId
responseFormat
roleId
- isCustom
applicationId
modelConfiguration
triggers
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 916f7a973ec..d509d221b6f 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
@@ -15,7 +15,6 @@ const DEFAULT_AGENT_GQL_FIELDS = `
modelId
responseFormat
roleId
- isCustom
applicationId
modelConfiguration
triggers
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 84d191ac14c..cdc98f355f7 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
@@ -15,7 +15,6 @@ const DEFAULT_AGENT_GQL_FIELDS = `
modelId
responseFormat
roleId
- isCustom
applicationId
modelConfiguration
triggers
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-sync-application-unique-index-duplicate-data.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-sync-application-unique-index-duplicate-data.integration-spec.ts.snap
index d317c7755ad..3b5634d1786 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-sync-application-unique-index-duplicate-data.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-sync-application-unique-index-duplicate-data.integration-spec.ts.snap
@@ -10,7 +10,6 @@ exports[`Sync application should surface the root cause when a unique index cann
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": true,
"name": "IDX_UNIQUE_85951922a2bfc9f7811d8c5cdb8",
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
index dc9707d091e..907b27d46d1 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
@@ -815,7 +815,6 @@ exports[`syncApplication should delete old field and create equivalent one when
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_8da02734dc044074a6a2c224f2a",
@@ -843,7 +842,6 @@ exports[`syncApplication should delete old field and create equivalent one when
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_890a5ffa99e9b995803d50f2298",
@@ -871,7 +869,6 @@ exports[`syncApplication should delete old field and create equivalent one when
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_d2022a25ca76206ddf16d88efd5",
@@ -899,7 +896,6 @@ exports[`syncApplication should delete old field and create equivalent one when
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_7d7a4e9e0805030aee982fdfa31",
@@ -927,7 +923,6 @@ exports[`syncApplication should delete old field and create equivalent one when
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_974911afcc7d3f9bbfedee071cf",
@@ -955,7 +950,6 @@ exports[`syncApplication should delete old field and create equivalent one when
"createdAt": Any<String>,
"indexType": "GIN",
"indexWhereClause": null,
- "isCustom": false,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_72b74c26016bcd3cd20b85c4a28",
@@ -992,7 +986,6 @@ exports[`syncApplication should delete old field and create equivalent one when
"id": Any<String>,
"isActive": true,
"isCompact": false,
- "isCustom": true,
"isSystemSideEffect": true,
"kanbanAggregateOperation": null,
"kanbanAggregateOperationFieldMetadataUniversalIdentifier": null,
@@ -1029,7 +1022,6 @@ exports[`syncApplication should delete old field and create equivalent one when
"id": Any<String>,
"isActive": true,
"isCompact": false,
- "isCustom": true,
"isSystemSideEffect": true,
"kanbanAggregateOperation": null,
"kanbanAggregateOperationFieldMetadataUniversalIdentifier": null,
@@ -2561,7 +2553,6 @@ exports[`syncApplication should return workspace migration actions on initial sy
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_8da02734dc044074a6a2c224f2a",
@@ -2589,7 +2580,6 @@ exports[`syncApplication should return workspace migration actions on initial sy
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_890a5ffa99e9b995803d50f2298",
@@ -2617,7 +2607,6 @@ exports[`syncApplication should return workspace migration actions on initial sy
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_d2022a25ca76206ddf16d88efd5",
@@ -2645,7 +2634,6 @@ exports[`syncApplication should return workspace migration actions on initial sy
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_7d7a4e9e0805030aee982fdfa31",
@@ -2673,7 +2661,6 @@ exports[`syncApplication should return workspace migration actions on initial sy
"createdAt": Any<String>,
"indexType": "BTREE",
"indexWhereClause": null,
- "isCustom": true,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_974911afcc7d3f9bbfedee071cf",
@@ -2701,7 +2688,6 @@ exports[`syncApplication should return workspace migration actions on initial sy
"createdAt": Any<String>,
"indexType": "GIN",
"indexWhereClause": null,
- "isCustom": false,
"isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_72b74c26016bcd3cd20b85c4a28",
@@ -2738,7 +2724,6 @@ exports[`syncApplication should return workspace migration actions on initial sy
"id": Any<String>,
"isActive": true,
"isCompact": false,
- "isCustom": true,
"isSystemSideEffect": true,
"kanbanAggregateOperation": null,
"kanbanAggregateOperationFieldMetadataUniversalIdentifier": null,
@@ -2775,7 +2760,6 @@ exports[`syncApplication should return workspace migration actions on initial sy
"id": Any<String>,
"isActive": true,
"isCompact": false,
- "isCustom": true,
"isSystemSideEffect": true,
"kanbanAggregateOperation": null,
"kanbanAggregateOperationFieldMetadataUniversalIdentifier": null,
@@ -3074,7 +3058,6 @@ This is a test skill.",
"description": "A skill for testing",
"icon": "IconBrain",
"isActive": true,
- "isCustom": false,
"isSystem": false,
"label": "Test Skill",
"name": "test-skill",
diff --git a/packages/twenty-server/test/integration/metadata/suites/field-metadata/successful-update-one-standard-field-metadata.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/field-metadata/successful-update-one-standard-field-metadata.integration-spec.ts
index 58247ad927d..d352a9ce7cb 100644
--- a/packages/twenty-server/test/integration/metadata/suites/field-metadata/successful-update-one-standard-field-metadata.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/field-metadata/successful-update-one-standard-field-metadata.integration-spec.ts
@@ -347,6 +347,6 @@ describe('Standard field isUnique update should succeed', () => {
jestExpectToBeDefined(nameFieldIndex);
expect(nameFieldIndex.isUnique).toBe(true);
- expect(nameFieldIndex.isCustom).toBe(true);
+ expect(nameFieldIndex.isSystemSideEffect).toBe(true);
});
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/graphql-operation-cache/metadata-graphql-operations-cache-dependencies.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/graphql-operation-cache/metadata-graphql-operations-cache-dependencies.integration-spec.ts
index 2496e42aa5d..2bebbffa5b3 100644
--- a/packages/twenty-server/test/integration/metadata/suites/graphql-operation-cache/metadata-graphql-operations-cache-dependencies.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/graphql-operation-cache/metadata-graphql-operations-cache-dependencies.integration-spec.ts
@@ -52,7 +52,7 @@ const OBJECT_METADATA_ITEMS_QUERY = gql`
indexWhereClause
indexType
isUnique
- isCustom
+ isSystemSideEffect
indexFieldMetadataList {
id
fieldMetadataId
diff --git a/packages/twenty-server/test/integration/metadata/suites/index/__snapshots__/successful-index-creation-on-object-creation-v2.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/index/__snapshots__/successful-index-creation-on-object-creation-v2.integration-spec.ts.snap
index ea0c6535c21..b6ead712a11 100644
--- a/packages/twenty-server/test/integration/metadata/suites/index/__snapshots__/successful-index-creation-on-object-creation-v2.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/index/__snapshots__/successful-index-creation-on-object-creation-v2.integration-spec.ts.snap
@@ -3,7 +3,7 @@
exports[`Index metadata creation through object metadata creation v2 Should create an index on ts-search-vector standard field when creating a custom object 1`] = `
{
"indexType": "GIN",
- "isCustom": false,
+ "isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_be6fe08944beb9886fb83dfbbf1",
}
@@ -12,7 +12,7 @@ exports[`Index metadata creation through object metadata creation v2 Should crea
exports[`Index metadata creation through object metadata creation v2 Should update index on related object name singular update 1`] = `
{
"indexType": "GIN",
- "isCustom": false,
+ "isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_be6fe08944beb9886fb83dfbbf1",
}
@@ -21,7 +21,7 @@ exports[`Index metadata creation through object metadata creation v2 Should upda
exports[`Index metadata creation through object metadata creation v2 Should update index on related object name singular update 2`] = `
{
"indexType": "GIN",
- "isCustom": false,
+ "isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_e1506c1b3612d7f73c39fcaae6e",
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/index/__snapshots__/successful-index-on-relation-field-v2.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/index/__snapshots__/successful-index-on-relation-field-v2.integration-spec.ts.snap
index abfbd4c1533..f589dffbed7 100644
--- a/packages/twenty-server/test/integration/metadata/suites/index/__snapshots__/successful-index-on-relation-field-v2.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/index/__snapshots__/successful-index-on-relation-field-v2.integration-spec.ts.snap
@@ -12,7 +12,7 @@ exports[`Index metadata creation on relation field creation v2 Should create and
},
],
"indexType": "BTREE",
- "isCustom": true,
+ "isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_c7afa9b8a4109b84530eafdacdb",
}
@@ -30,7 +30,7 @@ exports[`Index metadata creation on relation field creation v2 Should create and
},
],
"indexType": "BTREE",
- "isCustom": true,
+ "isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_9343d8f57e4835944dffb85d501",
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/object-metadata/morph-relation/__snapshots__/rename-object-metadata-with-morph-relation-v2.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/object-metadata/morph-relation/__snapshots__/rename-object-metadata-with-morph-relation-v2.integration-spec.ts.snap
index 04c1e2edb7c..ae9905f1c94 100644
--- a/packages/twenty-server/test/integration/metadata/suites/object-metadata/morph-relation/__snapshots__/rename-object-metadata-with-morph-relation-v2.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/object-metadata/morph-relation/__snapshots__/rename-object-metadata-with-morph-relation-v2.integration-spec.ts.snap
@@ -12,7 +12,7 @@ exports[`Rename an object metadata with morph relation should succeed should upd
},
],
"indexType": "BTREE",
- "isCustom": true,
+ "isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_d46ee05346f12228875612c7a2a",
}
@@ -30,7 +30,7 @@ exports[`Rename an object metadata with morph relation should succeed should upd
},
],
"indexType": "BTREE",
- "isCustom": true,
+ "isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_270c22872e92d429bb4f07a15dd",
}
@@ -48,7 +48,7 @@ exports[`Rename an object metadata with morph relation should succeed should upd
},
],
"indexType": "BTREE",
- "isCustom": true,
+ "isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_aabda09e5917c5a7cbe5b6c84fc",
}
@@ -66,7 +66,7 @@ exports[`Rename an object metadata with morph relation should succeed should upd
},
],
"indexType": "BTREE",
- "isCustom": true,
+ "isSystemSideEffect": true,
"isUnique": false,
"name": "IDX_270c22872e92d429bb4f07a15dd",
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata-with-indexes.util.ts b/packages/twenty-server/test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata-with-indexes.util.ts
index 49ce444b896..b25a118f8dc 100644
--- a/packages/twenty-server/test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata-with-indexes.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/object-metadata/utils/find-many-object-metadata-with-indexes.util.ts
@@ -57,7 +57,7 @@ export const findManyObjectMetadataWithIndexes = async ({
indexMetadataList {
name
isUnique
- isCustom
+ isSystemSideEffect
indexType
indexFieldMetadataList {
id
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/failing-skill-deletion.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/skill/failing-skill-deletion.integration-spec.ts
index fddf485e21b..a52a2c360a1 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/failing-skill-deletion.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/failing-skill-deletion.integration-spec.ts
@@ -1,4 +1,5 @@
import { faker } from '@faker-js/faker';
+import { STANDARD_SKILL } from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-skill.constant';
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { deleteSkill } from 'test/integration/metadata/suites/skill/utils/delete-skill.util';
import { findSkills } from 'test/integration/metadata/suites/skill/utils/find-skills.util';
@@ -47,10 +48,12 @@ describe('Skill deletion should fail', () => {
const { data } = await findSkills({
expectToFail: false,
input: undefined,
- gqlFields: 'id name isCustom',
+ gqlFields: 'id name',
});
- const standardSkill = data.skills.find((skill) => skill.isCustom === false);
+ const standardSkill = data.skills.find((skill) =>
+ Object.keys(STANDARD_SKILL).includes(skill.name),
+ );
if (!standardSkill) {
return;
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/failing-skill-update.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/skill/failing-skill-update.integration-spec.ts
index ae447bc5cb1..30292156c20 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/failing-skill-update.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/failing-skill-update.integration-spec.ts
@@ -1,4 +1,5 @@
import { faker } from '@faker-js/faker';
+import { STANDARD_SKILL } from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-skill.constant';
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { createSkill } from 'test/integration/metadata/suites/skill/utils/create-skill.util';
import { deleteSkill } from 'test/integration/metadata/suites/skill/utils/delete-skill.util';
@@ -139,10 +140,12 @@ describe('Skill update should fail', () => {
const { data } = await findSkills({
expectToFail: false,
input: undefined,
- gqlFields: 'id name isCustom',
+ gqlFields: 'id name',
});
- const standardSkill = data.skills.find((skill) => skill.isCustom === false);
+ const standardSkill = data.skills.find((skill) =>
+ Object.keys(STANDARD_SKILL).includes(skill.name),
+ );
if (!standardSkill) {
return;
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/successful-skill-activation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/skill/successful-skill-activation.integration-spec.ts
index a197dca404e..7bf353b48dc 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/successful-skill-activation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/successful-skill-activation.integration-spec.ts
@@ -41,7 +41,6 @@ describe('Skill activation should succeed', () => {
expect(data.createSkill).toMatchObject({
id: skillId,
isActive: true,
- isCustom: true,
});
await deleteSkill({
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/successful-skill-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/skill/successful-skill-creation.integration-spec.ts
index 7690cd02cd6..d70a8504401 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/successful-skill-creation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/successful-skill-creation.integration-spec.ts
@@ -34,7 +34,6 @@ describe('Skill creation should succeed', () => {
icon: null,
description: null,
content: 'This is the skill content with instructions',
- isCustom: true,
isActive: true,
});
});
@@ -58,7 +57,6 @@ describe('Skill creation should succeed', () => {
expect(data.createSkill).toMatchObject({
id: expect.any(String),
...input,
- isCustom: true,
isActive: true,
});
});
@@ -107,7 +105,6 @@ describe('Skill creation should succeed', () => {
name: 'longContentSkill',
label: 'Long Content Skill',
content: longContent,
- isCustom: true,
isActive: true,
});
});
@@ -140,7 +137,6 @@ Do the second thing.
name: 'markdownSkill',
label: 'Markdown Skill',
content: markdownContent,
- isCustom: true,
isActive: true,
});
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/utils/activate-skill-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/skill/utils/activate-skill-query-factory.util.ts
index 97993102aff..a2ee8cdb5ef 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/utils/activate-skill-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/utils/activate-skill-query-factory.util.ts
@@ -12,7 +12,6 @@ const DEFAULT_SKILL_GQL_FIELDS = `
icon
description
content
- isCustom
isActive
applicationId
createdAt
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/utils/create-skill-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/skill/utils/create-skill-query-factory.util.ts
index a6d4ab85863..daad88d0bd6 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/utils/create-skill-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/utils/create-skill-query-factory.util.ts
@@ -12,7 +12,6 @@ const DEFAULT_SKILL_GQL_FIELDS = `
icon
description
content
- isCustom
isActive
applicationId
createdAt
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/utils/deactivate-skill-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/skill/utils/deactivate-skill-query-factory.util.ts
index 8b5d7cc5b2b..2c9a43248d1 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/utils/deactivate-skill-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/utils/deactivate-skill-query-factory.util.ts
@@ -12,7 +12,6 @@ const DEFAULT_SKILL_GQL_FIELDS = `
icon
description
content
- isCustom
isActive
applicationId
createdAt
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/utils/find-skill-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/skill/utils/find-skill-query-factory.util.ts
index 1399939692a..6ceb72bf0ac 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/utils/find-skill-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/utils/find-skill-query-factory.util.ts
@@ -12,7 +12,6 @@ const DEFAULT_SKILL_GQL_FIELDS = `
icon
description
content
- isCustom
isActive
applicationId
createdAt
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/utils/find-skills-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/skill/utils/find-skills-query-factory.util.ts
index 7726d2f8487..61dd090cd2d 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/utils/find-skills-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/utils/find-skills-query-factory.util.ts
@@ -8,7 +8,6 @@ const DEFAULT_SKILL_GQL_FIELDS = `
icon
description
content
- isCustom
applicationId
createdAt
updatedAt
diff --git a/packages/twenty-server/test/integration/metadata/suites/skill/utils/update-skill-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/skill/utils/update-skill-query-factory.util.ts
index 4d24515a861..4d58d4acc32 100644
--- a/packages/twenty-server/test/integration/metadata/suites/skill/utils/update-skill-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/skill/utils/update-skill-query-factory.util.ts
@@ -12,7 +12,6 @@ const DEFAULT_SKILL_GQL_FIELDS = `
icon
description
content
- isCustom
isActive
applicationId
createdAt
diff --git a/packages/twenty-server/test/integration/upgrade/suites/2-51-workspace-command-1792686629823-add-agent-chat-channels.integration-spec.ts b/packages/twenty-server/test/integration/upgrade/suites/2-51-workspace-command-1792686629823-add-agent-chat-channels.integration-spec.ts
index 58b225f7c37..89ed03b7f98 100644
--- a/packages/twenty-server/test/integration/upgrade/suites/2-51-workspace-command-1792686629823-add-agent-chat-channels.integration-spec.ts
+++ b/packages/twenty-server/test/integration/upgrade/suites/2-51-workspace-command-1792686629823-add-agent-chat-channels.integration-spec.ts
@@ -10,6 +10,7 @@ import { findFlatEntityByUniversalIdentifier } from 'src/engine/metadata-modules
import { type WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';
import { STANDARD_AGENT_CHAT_CHANNEL } from 'src/engine/workspace-manager/twenty-standard-application/constants/standard-agent-chat-channel.constant';
+import { TWENTY_STANDARD_APPLICATION } from 'src/engine/workspace-manager/twenty-standard-application/constants/twenty-standard-applications';
const RUN_ON_WORKSPACE_ARGS = {
workspaceId: SEED_APPLE_WORKSPACE_ID,
@@ -30,7 +31,8 @@ const ADDED_STATE = {
hasThreadIndex: true,
generalChannel: {
name: 'General',
- isCustom: false,
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION.universalIdentifier,
},
};
@@ -73,7 +75,8 @@ describe('2-51 workspace command - add agent chat channels (integration)', () =>
generalChannel: isDefined(generalChannel)
? {
name: generalChannel.name,
- isCustom: generalChannel.isCustom,
+ applicationUniversalIdentifier:
+ generalChannel.applicationUniversalIdentifier,
}
: null,
};
diff --git a/packages/twenty-shared/src/metadata/__tests__/isWorkspaceCustomIndex.test.ts b/packages/twenty-shared/src/metadata/__tests__/isWorkspaceCustomIndex.test.ts
new file mode 100644
index 00000000000..b59a8004cfe
--- /dev/null
+++ b/packages/twenty-shared/src/metadata/__tests__/isWorkspaceCustomIndex.test.ts
@@ -0,0 +1,53 @@
+import { isWorkspaceCustomIndex } from '@/metadata/utils/is-workspace-custom-index.util';
+
+const WORKSPACE_CUSTOM_APPLICATION_ID = 'workspace-custom-application-id';
+
+describe('isWorkspaceCustomIndex', () => {
+ it('should be true for an index created by the workspace', () => {
+ expect(
+ isWorkspaceCustomIndex({
+ indexMetadata: {
+ applicationId: WORKSPACE_CUSTOM_APPLICATION_ID,
+ isSystemSideEffect: false,
+ },
+ workspaceCustomApplicationId: WORKSPACE_CUSTOM_APPLICATION_ID,
+ }),
+ ).toBe(true);
+ });
+
+ it('should be false for an index backing a custom unique field', () => {
+ expect(
+ isWorkspaceCustomIndex({
+ indexMetadata: {
+ applicationId: WORKSPACE_CUSTOM_APPLICATION_ID,
+ isSystemSideEffect: true,
+ },
+ workspaceCustomApplicationId: WORKSPACE_CUSTOM_APPLICATION_ID,
+ }),
+ ).toBe(false);
+ });
+
+ it('should be false for an index owned by another application', () => {
+ expect(
+ isWorkspaceCustomIndex({
+ indexMetadata: {
+ applicationId: 'standard-application-id',
+ isSystemSideEffect: false,
+ },
+ workspaceCustomApplicationId: WORKSPACE_CUSTOM_APPLICATION_ID,
+ }),
+ ).toBe(false);
+ });
+
+ it('should be false when the workspace custom application is unknown', () => {
+ expect(
+ isWorkspaceCustomIndex({
+ indexMetadata: {
+ applicationId: WORKSPACE_CUSTOM_APPLICATION_ID,
+ isSystemSideEffect: false,
+ },
+ workspaceCustomApplicationId: undefined,
+ }),
+ ).toBe(false);
+ });
+});
diff --git a/packages/twenty-shared/src/metadata/index.ts b/packages/twenty-shared/src/metadata/index.ts
index 28e5817e3dd..4042f155514 100644
--- a/packages/twenty-shared/src/metadata/index.ts
+++ b/packages/twenty-shared/src/metadata/index.ts
@@ -32,3 +32,4 @@ export type { SyncAction } from './types/SyncAction';
export { addCustomSuffixIfIsReserved } from './utils/add-custom-suffix-if-reserved.util';
export { computeMetadataNameFromLabel } from './utils/compute-metadata-name-from-label.util';
export { computeMetadataNamesFromLabelsOrThrow } from './utils/compute-metadata-names-from-labels-or-throw.util';
+export { isWorkspaceCustomIndex } from './utils/is-workspace-custom-index.util';
diff --git a/packages/twenty-shared/src/metadata/utils/is-workspace-custom-index.util.ts b/packages/twenty-shared/src/metadata/utils/is-workspace-custom-index.util.ts
new file mode 100644
index 00000000000..b1de11cbe99
--- /dev/null
+++ b/packages/twenty-shared/src/metadata/utils/is-workspace-custom-index.util.ts
@@ -0,0 +1,13 @@
+import { type Nullable } from '@/types';
+
+// Indexes backing a custom field's isUnique share the workspace custom
+// application but are system-managed, hence the isSystemSideEffect check.
+export const isWorkspaceCustomIndex = ({
+ indexMetadata,
+ workspaceCustomApplicationId,
+}: {
+ indexMetadata: { applicationId: string; isSystemSideEffect: boolean };
+ workspaceCustomApplicationId: Nullable<string>;
+}): boolean =>
+ indexMetadata.applicationId === workspaceCustomApplicationId &&
+ !indexMetadata.isSystemSideEffect;