Skip to content

The open alternative to Salesforce, designed for AI.

Stop agent code from depending on workflow code (#27407)

Félix Malfait99ed9252cfa2
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index cefacccefcb..dea86ec62ac 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -3937,13 +3937,27 @@ type Query {
getViewField(id: String!): ViewField
getViewFieldGroups(viewId: String!): [ViewFieldGroup!]!
getViewFieldGroup(id: String!): ViewFieldGroup
+ getViewFilterGroups(viewId: String): [ViewFilterGroup!]!
+ getViewFilterGroup(id: String!): ViewFilterGroup
+ apiKeys: [ApiKey!]!
+ getApiKeyRoles: [Role!]!
+ apiKey(input: GetApiKeyInput!): ApiKey
+ currentUserSessions: [UserSession!]!
+ billingPortalSession(returnUrlPath: String, forPaymentMethodUpdate: Boolean): BillingSession!
+ listPlans: [BillingPlan!]!
+ getResourceCreditUsage: [BillingResourceCreditUsage!]!
+ myConnectedAccounts: [ConnectedAccountPublicDTO!]!
+ applicationConnectedAccounts(applicationId: UUID!): [ApplicationConnectedAccountDTO!]!
+ applicationConnectionProviders(applicationId: UUID!): [ApplicationConnectionProvider!]!
+ getInviteSuggestions: [InviteSuggestion!]!
+ findWorkspaceInvitations: [WorkspaceInvitation!]!
+ getApprovedAccessDomains: [ApprovedAccessDomain!]!
findManyAgents: [Agent!]!
findOneAgent(input: AgentIdInput!): Agent!
findOneLogicFunction(input: LogicFunctionIdInput!): LogicFunction!
findManyLogicFunctions: [LogicFunction!]!
getAvailablePackages(input: LogicFunctionIdInput!): JSON!
getLogicFunctionSourceCode(input: LogicFunctionIdInput!): String
- currentUserSessions: [UserSession!]!
commandMenuItems: [CommandMenuItem!]!
commandMenuItem(id: UUID!): CommandMenuItem
frontComponents: [FrontComponent!]!
@@ -3961,22 +3975,8 @@ type Query {
): Object!
objectRecordCounts: [ObjectRecordCount!]!
mostlyEmptyFieldMetadataIds(objectMetadataId: UUID!): [UUID!]!
- getInviteSuggestions: [InviteSuggestion!]!
- applicationConnectionProviders(applicationId: UUID!): [ApplicationConnectionProvider!]!
- billingPortalSession(returnUrlPath: String, forPaymentMethodUpdate: Boolean): BillingSession!
- listPlans: [BillingPlan!]!
- getResourceCreditUsage: [BillingResourceCreditUsage!]!
- findWorkspaceInvitations: [WorkspaceInvitation!]!
- getApprovedAccessDomains: [ApprovedAccessDomain!]!
getRoles: [Role!]!
getRole(id: UUID!): Role!
- apiKeys: [ApiKey!]!
- getApiKeyRoles: [Role!]!
- apiKey(input: GetApiKeyInput!): ApiKey
- getViewFilterGroups(viewId: String): [ViewFilterGroup!]!
- getViewFilterGroup(id: String!): ViewFilterGroup
- myConnectedAccounts: [ConnectedAccountPublicDTO!]!
- applicationConnectedAccounts(applicationId: UUID!): [ApplicationConnectedAccountDTO!]!
currentWorkspace: Workspace!
getPublicWorkspaceDataByDomain(origin: String): PublicWorkspaceData!
getPublicWorkspaceDataById(id: UUID!): PublicWorkspaceDataSummary!
@@ -4083,6 +4083,10 @@ input UsageAnalyticsInput {
operationTypes: [UsageOperationType!]
}
+input GetApiKeyInput {
+ id: UUID!
+}
+
input AgentIdInput {
"""The id of the agent."""
id: UUID!
@@ -4107,10 +4111,6 @@ input ObjectFilter {
isUIReadOnly: BooleanFieldComparison
}
-input GetApiKeyInput {
- id: UUID!
-}
-
input PreviewMessageCampaignAudienceInput {
listId: String!
unsubscribeTopicId: String
@@ -4257,6 +4257,38 @@ type Mutation {
deleteViewFieldGroup(input: DeleteViewFieldGroupInput!): ViewFieldGroup!
destroyViewFieldGroup(input: DestroyViewFieldGroupInput!): ViewFieldGroup!
upsertFieldsWidget(input: UpsertFieldsWidgetInput!): View!
+ createViewFilterGroup(input: CreateViewFilterGroupInput!): ViewFilterGroup!
+ updateViewFilterGroup(id: String!, input: UpdateViewFilterGroupInput!): ViewFilterGroup!
+ deleteViewFilterGroup(id: String!): Boolean!
+ destroyViewFilterGroup(id: String!): Boolean!
+ createApiKey(input: CreateApiKeyInput!): ApiKey!
+ updateApiKey(input: UpdateApiKeyInput!): ApiKey
+ revokeApiKey(input: RevokeApiKeyInput!): ApiKey
+ assignRoleToApiKey(apiKeyId: UUID!, roleId: UUID!): Boolean!
+ revokeUserSession(userSessionId: UUID!): Boolean!
+ revokeAllOtherUserSessions: Int!
+ checkoutSession(recurringInterval: SubscriptionInterval!, plan: BillingPlanKey! = PRO, requirePaymentMethod: Boolean! = true, successUrlPath: String): BillingSession!
+ createSubscriptionPaymentIntent(recurringInterval: SubscriptionInterval!, plan: BillingPlanKey! = PRO, requirePaymentMethod: Boolean! = true, successUrlPath: String, idempotencyKey: String!): BillingPaymentIntent!
+ createBillingPaymentMethodSetupIntent: BillingPaymentIntent!
+ switchSubscriptionInterval: BillingUpdate!
+ switchBillingPlan: BillingUpdate!
+ cancelSwitchBillingPlan: BillingUpdate!
+ cancelSwitchBillingInterval: BillingUpdate!
+ setResourceCreditSubscriptionPrice(priceId: String!): BillingUpdate!
+ endSubscriptionTrialPeriod: BillingEndTrialPeriod!
+ cancelSwitchResourceCreditPrice: BillingUpdate!
+ deleteConnectedAccount(id: UUID!): ConnectedAccountPublicDTO!
+ disconnectConnectedAccount(id: UUID!): ConnectedAccountPublicDTO!
+ updateOneApplicationVariable(key: String!, value: String!, applicationId: UUID): Boolean!
+ skipSyncEmailOnboardingStep(isAutoSkipped: Boolean! = false): OnboardingStepSuccess!
+ completeBookCallOnboardingStep(hasBookedCall: Boolean! = false, isAutoSkipped: Boolean! = false): OnboardingStepSuccess!
+ goBackToPreviousOnboardingStep: OnboardingStepNavigation!
+ deleteWorkspaceInvitation(appTokenId: String!): String!
+ resendWorkspaceInvitation(appTokenId: String!): SendInvitations!
+ sendInvitations(emails: [String!]!, roleId: UUID): SendInvitations!
+ createApprovedAccessDomain(input: CreateApprovedAccessDomainInput!): ApprovedAccessDomain!
+ deleteApprovedAccessDomain(input: DeleteApprovedAccessDomainInput!): Boolean!
+ validateApprovedAccessDomain(input: ValidateApprovedAccessDomainInput!): ApprovedAccessDomain!
createOneAgent(input: CreateAgentInput!): Agent!
updateOneAgent(input: UpdateAgentInput!): Agent!
deleteOneAgent(input: AgentIdInput!): Agent!
@@ -4264,8 +4296,6 @@ type Mutation {
createOneLogicFunction(input: CreateLogicFunctionFromSourceInput!): LogicFunction!
executeOneLogicFunction(input: ExecuteOneLogicFunctionInput!): LogicFunctionExecutionResult!
updateOneLogicFunction(input: UpdateLogicFunctionFromSourceInput!): Boolean!
- revokeUserSession(userSessionId: UUID!): Boolean!
- revokeAllOtherUserSessions: Int!
createCommandMenuItem(input: CreateCommandMenuItemInput!): CommandMenuItem!
updateCommandMenuItem(input: UpdateCommandMenuItemInput!): CommandMenuItem!
resetCommandMenuItem(id: UUID!): CommandMenuItem!
@@ -4274,32 +4304,12 @@ type Mutation {
createFrontComponent(input: CreateFrontComponentInput!): FrontComponent!
updateFrontComponent(input: UpdateFrontComponentInput!): FrontComponent!
deleteFrontComponent(id: UUID!): FrontComponent!
- updateOneApplicationVariable(key: String!, value: String!, applicationId: UUID): Boolean!
createOneObject(input: CreateOneObjectInput!): Object!
deleteOneObject(input: DeleteOneObjectInput!): Object!
updateOneObject(input: UpdateOneObjectInput!): Object!
updateManyObjects(inputs: [UpdateOneObjectInput!]!): [Object!]!
createOneIndex(input: CreateOneIndexInput!): Index!
deleteOneIndex(input: DeleteOneIndexInput!): Index!
- skipSyncEmailOnboardingStep(isAutoSkipped: Boolean! = false): OnboardingStepSuccess!
- completeBookCallOnboardingStep(hasBookedCall: Boolean! = false, isAutoSkipped: Boolean! = false): OnboardingStepSuccess!
- goBackToPreviousOnboardingStep: OnboardingStepNavigation!
- checkoutSession(recurringInterval: SubscriptionInterval!, plan: BillingPlanKey! = PRO, requirePaymentMethod: Boolean! = true, successUrlPath: String): BillingSession!
- createSubscriptionPaymentIntent(recurringInterval: SubscriptionInterval!, plan: BillingPlanKey! = PRO, requirePaymentMethod: Boolean! = true, successUrlPath: String, idempotencyKey: String!): BillingPaymentIntent!
- createBillingPaymentMethodSetupIntent: BillingPaymentIntent!
- switchSubscriptionInterval: BillingUpdate!
- switchBillingPlan: BillingUpdate!
- cancelSwitchBillingPlan: BillingUpdate!
- cancelSwitchBillingInterval: BillingUpdate!
- setResourceCreditSubscriptionPrice(priceId: String!): BillingUpdate!
- endSubscriptionTrialPeriod: BillingEndTrialPeriod!
- cancelSwitchResourceCreditPrice: BillingUpdate!
- deleteWorkspaceInvitation(appTokenId: String!): String!
- resendWorkspaceInvitation(appTokenId: String!): SendInvitations!
- sendInvitations(emails: [String!]!, roleId: UUID): SendInvitations!
- createApprovedAccessDomain(input: CreateApprovedAccessDomainInput!): ApprovedAccessDomain!
- deleteApprovedAccessDomain(input: DeleteApprovedAccessDomainInput!): Boolean!
- validateApprovedAccessDomain(input: ValidateApprovedAccessDomainInput!): ApprovedAccessDomain!
updateWorkspaceMemberRole(workspaceMemberId: UUID!, roleId: UUID!): WorkspaceMember!
createOneRole(createRoleInput: CreateRoleInput!): Role!
updateOneRole(updateRoleInput: UpdateRoleInput!): Role!
@@ -4310,16 +4320,6 @@ type Mutation {
upsertRowLevelPermissionPredicates(input: UpsertRowLevelPermissionPredicatesInput!): UpsertRowLevelPermissionPredicatesResult!
assignRoleToAgent(agentId: UUID!, roleId: UUID!): Boolean!
removeRoleFromAgent(agentId: UUID!): Boolean!
- createApiKey(input: CreateApiKeyInput!): ApiKey!
- updateApiKey(input: UpdateApiKeyInput!): ApiKey
- revokeApiKey(input: RevokeApiKeyInput!): ApiKey
- assignRoleToApiKey(apiKeyId: UUID!, roleId: UUID!): Boolean!
- createViewFilterGroup(input: CreateViewFilterGroupInput!): ViewFilterGroup!
- updateViewFilterGroup(id: String!, input: UpdateViewFilterGroupInput!): ViewFilterGroup!
- deleteViewFilterGroup(id: String!): Boolean!
- destroyViewFilterGroup(id: String!): Boolean!
- deleteConnectedAccount(id: UUID!): ConnectedAccountPublicDTO!
- disconnectConnectedAccount(id: UUID!): ConnectedAccountPublicDTO!
activateWorkspace(data: ActivateWorkspaceInput!): Workspace!
updateWorkspace(data: UpdateWorkspaceInput!): Workspace!
updateWorkspaceAllowedIframeOrigins(data: UpdateWorkspaceAllowedIframeOriginsInput!): Workspace!
@@ -4920,6 +4920,54 @@ input UpsertFieldsWidgetFieldInput {
position: Float!
}
+input CreateViewFilterGroupInput {
+ id: UUID
+ parentViewFilterGroupId: UUID
+ logicalOperator: ViewFilterGroupLogicalOperator = AND
+ positionInViewFilterGroup: Float
+ viewId: UUID!
+}
+
+input UpdateViewFilterGroupInput {
+ id: UUID
+ parentViewFilterGroupId: UUID
+ logicalOperator: ViewFilterGroupLogicalOperator = AND
+ positionInViewFilterGroup: Float
+ viewId: UUID
+}
+
+input CreateApiKeyInput {
+ name: String!
+ expiresAt: String!
+ revokedAt: String
+ roleId: UUID!
+}
+
+input UpdateApiKeyInput {
+ id: UUID!
+ name: String
+ expiresAt: String
+ revokedAt: String
+}
+
+input RevokeApiKeyInput {
+ id: UUID!
+}
+
+input CreateApprovedAccessDomainInput {
+ domain: String!
+ email: String!
+}
+
+input DeleteApprovedAccessDomainInput {
+ id: UUID!
+}
+
+input ValidateApprovedAccessDomainInput {
+ validationToken: String!
+ approvedAccessDomainId: UUID!
+}
+
input CreateAgentInput {
name: String
label: String!
@@ -5129,20 +5177,6 @@ input DeleteOneIndexInput {
id: UUID!
}
-input CreateApprovedAccessDomainInput {
- domain: String!
- email: String!
-}
-
-input DeleteApprovedAccessDomainInput {
- id: UUID!
-}
-
-input ValidateApprovedAccessDomainInput {
- validationToken: String!
- approvedAccessDomainId: UUID!
-}
-
input CreateRoleInput {
id: String
label: String!
@@ -5238,40 +5272,6 @@ input RowLevelPermissionPredicateGroupInput {
positionInRowLevelPermissionPredicateGroup: Float
}
-input CreateApiKeyInput {
- name: String!
- expiresAt: String!
- revokedAt: String
- roleId: UUID!
-}
-
-input UpdateApiKeyInput {
- id: UUID!
- name: String
- expiresAt: String
- revokedAt: String
-}
-
-input RevokeApiKeyInput {
- id: UUID!
-}
-
-input CreateViewFilterGroupInput {
- id: UUID
- parentViewFilterGroupId: UUID
- logicalOperator: ViewFilterGroupLogicalOperator = AND
- positionInViewFilterGroup: Float
- viewId: UUID!
-}
-
-input UpdateViewFilterGroupInput {
- id: UUID
- parentViewFilterGroupId: UUID
- logicalOperator: ViewFilterGroupLogicalOperator = AND
- positionInViewFilterGroup: Float
- viewId: UUID
-}
-
input ActivateWorkspaceInput {
"""
Deprecated: the workspace name is set at creation (signUpInNewWorkspace) and this field is ignored during activation. Kept for backward compatibility.
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 4e756e4d0b1..fb7dcc830e3 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -3434,13 +3434,27 @@ export interface Query {
getViewField?: ViewField
getViewFieldGroups: ViewFieldGroup[]
getViewFieldGroup?: ViewFieldGroup
+ getViewFilterGroups: ViewFilterGroup[]
+ getViewFilterGroup?: ViewFilterGroup
+ apiKeys: ApiKey[]
+ getApiKeyRoles: Role[]
+ apiKey?: ApiKey
+ currentUserSessions: UserSession[]
+ billingPortalSession: BillingSession
+ listPlans: BillingPlan[]
+ getResourceCreditUsage: BillingResourceCreditUsage[]
+ myConnectedAccounts: ConnectedAccountPublicDTO[]
+ applicationConnectedAccounts: ApplicationConnectedAccountDTO[]
+ applicationConnectionProviders: ApplicationConnectionProvider[]
+ getInviteSuggestions: InviteSuggestion[]
+ findWorkspaceInvitations: WorkspaceInvitation[]
+ getApprovedAccessDomains: ApprovedAccessDomain[]
findManyAgents: Agent[]
findOneAgent: Agent
findOneLogicFunction: LogicFunction
findManyLogicFunctions: LogicFunction[]
getAvailablePackages: Scalars['JSON']
getLogicFunctionSourceCode?: Scalars['String']
- currentUserSessions: UserSession[]
commandMenuItems: CommandMenuItem[]
commandMenuItem?: CommandMenuItem
frontComponents: FrontComponent[]
@@ -3449,22 +3463,8 @@ export interface Query {
object: Object
objectRecordCounts: ObjectRecordCount[]
mostlyEmptyFieldMetadataIds: Scalars['UUID'][]
- getInviteSuggestions: InviteSuggestion[]
- applicationConnectionProviders: ApplicationConnectionProvider[]
- billingPortalSession: BillingSession
- listPlans: BillingPlan[]
- getResourceCreditUsage: BillingResourceCreditUsage[]
- findWorkspaceInvitations: WorkspaceInvitation[]
- getApprovedAccessDomains: ApprovedAccessDomain[]
getRoles: Role[]
getRole: Role
- apiKeys: ApiKey[]
- getApiKeyRoles: Role[]
- apiKey?: ApiKey
- getViewFilterGroups: ViewFilterGroup[]
- getViewFilterGroup?: ViewFilterGroup
- myConnectedAccounts: ConnectedAccountPublicDTO[]
- applicationConnectedAccounts: ApplicationConnectedAccountDTO[]
currentWorkspace: Workspace
getPublicWorkspaceDataByDomain: PublicWorkspaceData
getPublicWorkspaceDataById: PublicWorkspaceDataSummary
@@ -3611,6 +3611,38 @@ export interface Mutation {
deleteViewFieldGroup: ViewFieldGroup
destroyViewFieldGroup: ViewFieldGroup
upsertFieldsWidget: View
+ createViewFilterGroup: ViewFilterGroup
+ updateViewFilterGroup: ViewFilterGroup
+ deleteViewFilterGroup: Scalars['Boolean']
+ destroyViewFilterGroup: Scalars['Boolean']
+ createApiKey: ApiKey
+ updateApiKey?: ApiKey
+ revokeApiKey?: ApiKey
+ assignRoleToApiKey: Scalars['Boolean']
+ revokeUserSession: Scalars['Boolean']
+ revokeAllOtherUserSessions: Scalars['Int']
+ checkoutSession: BillingSession
+ createSubscriptionPaymentIntent: BillingPaymentIntent
+ createBillingPaymentMethodSetupIntent: BillingPaymentIntent
+ switchSubscriptionInterval: BillingUpdate
+ switchBillingPlan: BillingUpdate
+ cancelSwitchBillingPlan: BillingUpdate
+ cancelSwitchBillingInterval: BillingUpdate
+ setResourceCreditSubscriptionPrice: BillingUpdate
+ endSubscriptionTrialPeriod: BillingEndTrialPeriod
+ cancelSwitchResourceCreditPrice: BillingUpdate
+ deleteConnectedAccount: ConnectedAccountPublicDTO
+ disconnectConnectedAccount: ConnectedAccountPublicDTO
+ updateOneApplicationVariable: Scalars['Boolean']
+ skipSyncEmailOnboardingStep: OnboardingStepSuccess
+ completeBookCallOnboardingStep: OnboardingStepSuccess
+ goBackToPreviousOnboardingStep: OnboardingStepNavigation
+ deleteWorkspaceInvitation: Scalars['String']
+ resendWorkspaceInvitation: SendInvitations
+ sendInvitations: SendInvitations
+ createApprovedAccessDomain: ApprovedAccessDomain
+ deleteApprovedAccessDomain: Scalars['Boolean']
+ validateApprovedAccessDomain: ApprovedAccessDomain
createOneAgent: Agent
updateOneAgent: Agent
deleteOneAgent: Agent
@@ -3618,8 +3650,6 @@ export interface Mutation {
createOneLogicFunction: LogicFunction
executeOneLogicFunction: LogicFunctionExecutionResult
updateOneLogicFunction: Scalars['Boolean']
- revokeUserSession: Scalars['Boolean']
- revokeAllOtherUserSessions: Scalars['Int']
createCommandMenuItem: CommandMenuItem
updateCommandMenuItem: CommandMenuItem
resetCommandMenuItem: CommandMenuItem
@@ -3628,32 +3658,12 @@ export interface Mutation {
createFrontComponent: FrontComponent
updateFrontComponent: FrontComponent
deleteFrontComponent: FrontComponent
- updateOneApplicationVariable: Scalars['Boolean']
createOneObject: Object
deleteOneObject: Object
updateOneObject: Object
updateManyObjects: Object[]
createOneIndex: Index
deleteOneIndex: Index
- skipSyncEmailOnboardingStep: OnboardingStepSuccess
- completeBookCallOnboardingStep: OnboardingStepSuccess
- goBackToPreviousOnboardingStep: OnboardingStepNavigation
- checkoutSession: BillingSession
- createSubscriptionPaymentIntent: BillingPaymentIntent
- createBillingPaymentMethodSetupIntent: BillingPaymentIntent
- switchSubscriptionInterval: BillingUpdate
- switchBillingPlan: BillingUpdate
- cancelSwitchBillingPlan: BillingUpdate
- cancelSwitchBillingInterval: BillingUpdate
- setResourceCreditSubscriptionPrice: BillingUpdate
- endSubscriptionTrialPeriod: BillingEndTrialPeriod
- cancelSwitchResourceCreditPrice: BillingUpdate
- deleteWorkspaceInvitation: Scalars['String']
- resendWorkspaceInvitation: SendInvitations
- sendInvitations: SendInvitations
- createApprovedAccessDomain: ApprovedAccessDomain
- deleteApprovedAccessDomain: Scalars['Boolean']
- validateApprovedAccessDomain: ApprovedAccessDomain
updateWorkspaceMemberRole: WorkspaceMember
createOneRole: Role
updateOneRole: Role
@@ -3664,16 +3674,6 @@ export interface Mutation {
upsertRowLevelPermissionPredicates: UpsertRowLevelPermissionPredicatesResult
assignRoleToAgent: Scalars['Boolean']
removeRoleFromAgent: Scalars['Boolean']
- createApiKey: ApiKey
- updateApiKey?: ApiKey
- revokeApiKey?: ApiKey
- assignRoleToApiKey: Scalars['Boolean']
- createViewFilterGroup: ViewFilterGroup
- updateViewFilterGroup: ViewFilterGroup
- deleteViewFilterGroup: Scalars['Boolean']
- destroyViewFilterGroup: Scalars['Boolean']
- deleteConnectedAccount: ConnectedAccountPublicDTO
- disconnectConnectedAccount: ConnectedAccountPublicDTO
activateWorkspace: Workspace
updateWorkspace: Workspace
updateWorkspaceAllowedIframeOrigins: Workspace
@@ -7405,13 +7405,27 @@ export interface QueryGenqlSelection{
getViewField?: (ViewFieldGenqlSelection & { __args: {id: Scalars['String']} })
getViewFieldGroups?: (ViewFieldGroupGenqlSelection & { __args: {viewId: Scalars['String']} })
getViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {id: Scalars['String']} })
+ getViewFilterGroups?: (ViewFilterGroupGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
+ getViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String']} })
+ apiKeys?: ApiKeyGenqlSelection
+ getApiKeyRoles?: RoleGenqlSelection
+ apiKey?: (ApiKeyGenqlSelection & { __args: {input: GetApiKeyInput} })
+ currentUserSessions?: UserSessionGenqlSelection
+ billingPortalSession?: (BillingSessionGenqlSelection & { __args?: {returnUrlPath?: (Scalars['String'] | null), forPaymentMethodUpdate?: (Scalars['Boolean'] | null)} })
+ listPlans?: BillingPlanGenqlSelection
+ getResourceCreditUsage?: BillingResourceCreditUsageGenqlSelection
+ myConnectedAccounts?: ConnectedAccountPublicDTOGenqlSelection
+ applicationConnectedAccounts?: (ApplicationConnectedAccountDTOGenqlSelection & { __args: {applicationId: Scalars['UUID']} })
+ applicationConnectionProviders?: (ApplicationConnectionProviderGenqlSelection & { __args: {applicationId: Scalars['UUID']} })
+ getInviteSuggestions?: InviteSuggestionGenqlSelection
+ findWorkspaceInvitations?: WorkspaceInvitationGenqlSelection
+ getApprovedAccessDomains?: ApprovedAccessDomainGenqlSelection
findManyAgents?: AgentGenqlSelection
findOneAgent?: (AgentGenqlSelection & { __args: {input: AgentIdInput} })
findOneLogicFunction?: (LogicFunctionGenqlSelection & { __args: {input: LogicFunctionIdInput} })
findManyLogicFunctions?: LogicFunctionGenqlSelection
getAvailablePackages?: { __args: {input: LogicFunctionIdInput} }
getLogicFunctionSourceCode?: { __args: {input: LogicFunctionIdInput} }
- currentUserSessions?: UserSessionGenqlSelection
commandMenuItems?: CommandMenuItemGenqlSelection
commandMenuItem?: (CommandMenuItemGenqlSelection & { __args: {id: Scalars['UUID']} })
frontComponents?: FrontComponentGenqlSelection
@@ -7426,22 +7440,8 @@ export interface QueryGenqlSelection{
id: Scalars['UUID']} })
objectRecordCounts?: ObjectRecordCountGenqlSelection
mostlyEmptyFieldMetadataIds?: { __args: {objectMetadataId: Scalars['UUID']} }
- getInviteSuggestions?: InviteSuggestionGenqlSelection
- applicationConnectionProviders?: (ApplicationConnectionProviderGenqlSelection & { __args: {applicationId: Scalars['UUID']} })
- billingPortalSession?: (BillingSessionGenqlSelection & { __args?: {returnUrlPath?: (Scalars['String'] | null), forPaymentMethodUpdate?: (Scalars['Boolean'] | null)} })
- listPlans?: BillingPlanGenqlSelection
- getResourceCreditUsage?: BillingResourceCreditUsageGenqlSelection
- findWorkspaceInvitations?: WorkspaceInvitationGenqlSelection
- getApprovedAccessDomains?: ApprovedAccessDomainGenqlSelection
getRoles?: RoleGenqlSelection
getRole?: (RoleGenqlSelection & { __args: {id: Scalars['UUID']} })
- apiKeys?: ApiKeyGenqlSelection
- getApiKeyRoles?: RoleGenqlSelection
- apiKey?: (ApiKeyGenqlSelection & { __args: {input: GetApiKeyInput} })
- getViewFilterGroups?: (ViewFilterGroupGenqlSelection & { __args?: {viewId?: (Scalars['String'] | null)} })
- getViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String']} })
- myConnectedAccounts?: ConnectedAccountPublicDTOGenqlSelection
- applicationConnectedAccounts?: (ApplicationConnectedAccountDTOGenqlSelection & { __args: {applicationId: Scalars['UUID']} })
currentWorkspace?: WorkspaceGenqlSelection
getPublicWorkspaceDataByDomain?: (PublicWorkspaceDataGenqlSelection & { __args?: {origin?: (Scalars['String'] | null)} })
getPublicWorkspaceDataById?: (PublicWorkspaceDataSummaryGenqlSelection & { __args: {id: Scalars['UUID']} })
@@ -7532,6 +7532,8 @@ export interface UsageQuotaScopeInput {resourceType: UsageResourceType,operation
export interface UsageAnalyticsInput {periodStart?: (Scalars['DateTime'] | null),periodEnd?: (Scalars['DateTime'] | null),userWorkspaceId?: (Scalars['String'] | null),operationTypes?: (UsageOperationType[] | null)}
+export interface GetApiKeyInput {id: Scalars['UUID']}
+
export interface AgentIdInput {
/** The id of the agent. */
id: Scalars['UUID']}
@@ -7542,8 +7544,6 @@ id: Scalars['ID']}
export interface ObjectFilter {and?: (ObjectFilter[] | null),or?: (ObjectFilter[] | null),id?: (UUIDFilterComparison | null),universalIdentifier?: (UUIDFilterComparison | null),isActive?: (BooleanFieldComparison | null),isRemote?: (BooleanFieldComparison | null),isSearchable?: (BooleanFieldComparison | null),isSystem?: (BooleanFieldComparison | null),isUICreatable?: (BooleanFieldComparison | null),isUIEditable?: (BooleanFieldComparison | null),isUIReadOnly?: (BooleanFieldComparison | null)}
-export interface GetApiKeyInput {id: Scalars['UUID']}
-
export interface PreviewMessageCampaignAudienceInput {listId: Scalars['String'],unsubscribeTopicId?: (Scalars['String'] | null)}
export interface FindMessageSuppressionsInput {reason?: (MessageSuppressionReason | null),searchTerm?: (Scalars['String'] | null),unsubscribeTopicId?: (Scalars['UUID'] | null),limit: Scalars['Int'],offset: Scalars['Int']}
@@ -7633,6 +7633,38 @@ export interface MutationGenqlSelection{
deleteViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: DeleteViewFieldGroupInput} })
destroyViewFieldGroup?: (ViewFieldGroupGenqlSelection & { __args: {input: DestroyViewFieldGroupInput} })
upsertFieldsWidget?: (ViewGenqlSelection & { __args: {input: UpsertFieldsWidgetInput} })
+ createViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {input: CreateViewFilterGroupInput} })
+ updateViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewFilterGroupInput} })
+ deleteViewFilterGroup?: { __args: {id: Scalars['String']} }
+ destroyViewFilterGroup?: { __args: {id: Scalars['String']} }
+ createApiKey?: (ApiKeyGenqlSelection & { __args: {input: CreateApiKeyInput} })
+ updateApiKey?: (ApiKeyGenqlSelection & { __args: {input: UpdateApiKeyInput} })
+ revokeApiKey?: (ApiKeyGenqlSelection & { __args: {input: RevokeApiKeyInput} })
+ assignRoleToApiKey?: { __args: {apiKeyId: Scalars['UUID'], roleId: Scalars['UUID']} }
+ revokeUserSession?: { __args: {userSessionId: Scalars['UUID']} }
+ revokeAllOtherUserSessions?: boolean | number
+ checkoutSession?: (BillingSessionGenqlSelection & { __args: {recurringInterval: SubscriptionInterval, plan: BillingPlanKey, requirePaymentMethod: Scalars['Boolean'], successUrlPath?: (Scalars['String'] | null)} })
+ createSubscriptionPaymentIntent?: (BillingPaymentIntentGenqlSelection & { __args: {recurringInterval: SubscriptionInterval, plan: BillingPlanKey, requirePaymentMethod: Scalars['Boolean'], successUrlPath?: (Scalars['String'] | null), idempotencyKey: Scalars['String']} })
+ createBillingPaymentMethodSetupIntent?: BillingPaymentIntentGenqlSelection
+ switchSubscriptionInterval?: BillingUpdateGenqlSelection
+ switchBillingPlan?: BillingUpdateGenqlSelection
+ cancelSwitchBillingPlan?: BillingUpdateGenqlSelection
+ cancelSwitchBillingInterval?: BillingUpdateGenqlSelection
+ setResourceCreditSubscriptionPrice?: (BillingUpdateGenqlSelection & { __args: {priceId: Scalars['String']} })
+ endSubscriptionTrialPeriod?: BillingEndTrialPeriodGenqlSelection
+ cancelSwitchResourceCreditPrice?: BillingUpdateGenqlSelection
+ deleteConnectedAccount?: (ConnectedAccountPublicDTOGenqlSelection & { __args: {id: Scalars['UUID']} })
+ disconnectConnectedAccount?: (ConnectedAccountPublicDTOGenqlSelection & { __args: {id: Scalars['UUID']} })
+ updateOneApplicationVariable?: { __args: {key: Scalars['String'], value: Scalars['String'], applicationId?: (Scalars['UUID'] | null)} }
+ skipSyncEmailOnboardingStep?: (OnboardingStepSuccessGenqlSelection & { __args: {isAutoSkipped: Scalars['Boolean']} })
+ completeBookCallOnboardingStep?: (OnboardingStepSuccessGenqlSelection & { __args: {hasBookedCall: Scalars['Boolean'], isAutoSkipped: Scalars['Boolean']} })
+ goBackToPreviousOnboardingStep?: OnboardingStepNavigationGenqlSelection
+ deleteWorkspaceInvitation?: { __args: {appTokenId: Scalars['String']} }
+ resendWorkspaceInvitation?: (SendInvitationsGenqlSelection & { __args: {appTokenId: Scalars['String']} })
+ sendInvitations?: (SendInvitationsGenqlSelection & { __args: {emails: Scalars['String'][], roleId?: (Scalars['UUID'] | null)} })
+ createApprovedAccessDomain?: (ApprovedAccessDomainGenqlSelection & { __args: {input: CreateApprovedAccessDomainInput} })
+ deleteApprovedAccessDomain?: { __args: {input: DeleteApprovedAccessDomainInput} }
+ validateApprovedAccessDomain?: (ApprovedAccessDomainGenqlSelection & { __args: {input: ValidateApprovedAccessDomainInput} })
createOneAgent?: (AgentGenqlSelection & { __args: {input: CreateAgentInput} })
updateOneAgent?: (AgentGenqlSelection & { __args: {input: UpdateAgentInput} })
deleteOneAgent?: (AgentGenqlSelection & { __args: {input: AgentIdInput} })
@@ -7640,8 +7672,6 @@ export interface MutationGenqlSelection{
createOneLogicFunction?: (LogicFunctionGenqlSelection & { __args: {input: CreateLogicFunctionFromSourceInput} })
executeOneLogicFunction?: (LogicFunctionExecutionResultGenqlSelection & { __args: {input: ExecuteOneLogicFunctionInput} })
updateOneLogicFunction?: { __args: {input: UpdateLogicFunctionFromSourceInput} }
- revokeUserSession?: { __args: {userSessionId: Scalars['UUID']} }
- revokeAllOtherUserSessions?: boolean | number
createCommandMenuItem?: (CommandMenuItemGenqlSelection & { __args: {input: CreateCommandMenuItemInput} })
updateCommandMenuItem?: (CommandMenuItemGenqlSelection & { __args: {input: UpdateCommandMenuItemInput} })
resetCommandMenuItem?: (CommandMenuItemGenqlSelection & { __args: {id: Scalars['UUID']} })
@@ -7650,32 +7680,12 @@ export interface MutationGenqlSelection{
createFrontComponent?: (FrontComponentGenqlSelection & { __args: {input: CreateFrontComponentInput} })
updateFrontComponent?: (FrontComponentGenqlSelection & { __args: {input: UpdateFrontComponentInput} })
deleteFrontComponent?: (FrontComponentGenqlSelection & { __args: {id: Scalars['UUID']} })
- updateOneApplicationVariable?: { __args: {key: Scalars['String'], value: Scalars['String'], applicationId?: (Scalars['UUID'] | null)} }
createOneObject?: (ObjectGenqlSelection & { __args: {input: CreateOneObjectInput} })
deleteOneObject?: (ObjectGenqlSelection & { __args: {input: DeleteOneObjectInput} })
updateOneObject?: (ObjectGenqlSelection & { __args: {input: UpdateOneObjectInput} })
updateManyObjects?: (ObjectGenqlSelection & { __args: {inputs: UpdateOneObjectInput[]} })
createOneIndex?: (IndexGenqlSelection & { __args: {input: CreateOneIndexInput} })
deleteOneIndex?: (IndexGenqlSelection & { __args: {input: DeleteOneIndexInput} })
- skipSyncEmailOnboardingStep?: (OnboardingStepSuccessGenqlSelection & { __args: {isAutoSkipped: Scalars['Boolean']} })
- completeBookCallOnboardingStep?: (OnboardingStepSuccessGenqlSelection & { __args: {hasBookedCall: Scalars['Boolean'], isAutoSkipped: Scalars['Boolean']} })
- goBackToPreviousOnboardingStep?: OnboardingStepNavigationGenqlSelection
- checkoutSession?: (BillingSessionGenqlSelection & { __args: {recurringInterval: SubscriptionInterval, plan: BillingPlanKey, requirePaymentMethod: Scalars['Boolean'], successUrlPath?: (Scalars['String'] | null)} })
- createSubscriptionPaymentIntent?: (BillingPaymentIntentGenqlSelection & { __args: {recurringInterval: SubscriptionInterval, plan: BillingPlanKey, requirePaymentMethod: Scalars['Boolean'], successUrlPath?: (Scalars['String'] | null), idempotencyKey: Scalars['String']} })
- createBillingPaymentMethodSetupIntent?: BillingPaymentIntentGenqlSelection
- switchSubscriptionInterval?: BillingUpdateGenqlSelection
- switchBillingPlan?: BillingUpdateGenqlSelection
- cancelSwitchBillingPlan?: BillingUpdateGenqlSelection
- cancelSwitchBillingInterval?: BillingUpdateGenqlSelection
- setResourceCreditSubscriptionPrice?: (BillingUpdateGenqlSelection & { __args: {priceId: Scalars['String']} })
- endSubscriptionTrialPeriod?: BillingEndTrialPeriodGenqlSelection
- cancelSwitchResourceCreditPrice?: BillingUpdateGenqlSelection
- deleteWorkspaceInvitation?: { __args: {appTokenId: Scalars['String']} }
- resendWorkspaceInvitation?: (SendInvitationsGenqlSelection & { __args: {appTokenId: Scalars['String']} })
- sendInvitations?: (SendInvitationsGenqlSelection & { __args: {emails: Scalars['String'][], roleId?: (Scalars['UUID'] | null)} })
- createApprovedAccessDomain?: (ApprovedAccessDomainGenqlSelection & { __args: {input: CreateApprovedAccessDomainInput} })
- deleteApprovedAccessDomain?: { __args: {input: DeleteApprovedAccessDomainInput} }
- validateApprovedAccessDomain?: (ApprovedAccessDomainGenqlSelection & { __args: {input: ValidateApprovedAccessDomainInput} })
updateWorkspaceMemberRole?: (WorkspaceMemberGenqlSelection & { __args: {workspaceMemberId: Scalars['UUID'], roleId: Scalars['UUID']} })
createOneRole?: (RoleGenqlSelection & { __args: {createRoleInput: CreateRoleInput} })
updateOneRole?: (RoleGenqlSelection & { __args: {updateRoleInput: UpdateRoleInput} })
@@ -7686,16 +7696,6 @@ export interface MutationGenqlSelection{
upsertRowLevelPermissionPredicates?: (UpsertRowLevelPermissionPredicatesResultGenqlSelection & { __args: {input: UpsertRowLevelPermissionPredicatesInput} })
assignRoleToAgent?: { __args: {agentId: Scalars['UUID'], roleId: Scalars['UUID']} }
removeRoleFromAgent?: { __args: {agentId: Scalars['UUID']} }
- createApiKey?: (ApiKeyGenqlSelection & { __args: {input: CreateApiKeyInput} })
- updateApiKey?: (ApiKeyGenqlSelection & { __args: {input: UpdateApiKeyInput} })
- revokeApiKey?: (ApiKeyGenqlSelection & { __args: {input: RevokeApiKeyInput} })
- assignRoleToApiKey?: { __args: {apiKeyId: Scalars['UUID'], roleId: Scalars['UUID']} }
- createViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {input: CreateViewFilterGroupInput} })
- updateViewFilterGroup?: (ViewFilterGroupGenqlSelection & { __args: {id: Scalars['String'], input: UpdateViewFilterGroupInput} })
- deleteViewFilterGroup?: { __args: {id: Scalars['String']} }
- destroyViewFilterGroup?: { __args: {id: Scalars['String']} }
- deleteConnectedAccount?: (ConnectedAccountPublicDTOGenqlSelection & { __args: {id: Scalars['UUID']} })
- disconnectConnectedAccount?: (ConnectedAccountPublicDTOGenqlSelection & { __args: {id: Scalars['UUID']} })
activateWorkspace?: (WorkspaceGenqlSelection & { __args: {data: ActivateWorkspaceInput} })
updateWorkspace?: (WorkspaceGenqlSelection & { __args: {data: UpdateWorkspaceInput} })
updateWorkspaceAllowedIframeOrigins?: (WorkspaceGenqlSelection & { __args: {data: UpdateWorkspaceAllowedIframeOriginsInput} })
@@ -8015,6 +8015,22 @@ viewFieldId?: (Scalars['UUID'] | null),
/** The id of the field metadata. Used to create a new view field when viewFieldId is not provided. */
fieldMetadataId?: (Scalars['UUID'] | null),isVisible: Scalars['Boolean'],position: Scalars['Float']}
+export interface CreateViewFilterGroupInput {id?: (Scalars['UUID'] | null),parentViewFilterGroupId?: (Scalars['UUID'] | null),logicalOperator?: (ViewFilterGroupLogicalOperator | null),positionInViewFilterGroup?: (Scalars['Float'] | null),viewId: Scalars['UUID']}
+
+export interface UpdateViewFilterGroupInput {id?: (Scalars['UUID'] | null),parentViewFilterGroupId?: (Scalars['UUID'] | null),logicalOperator?: (ViewFilterGroupLogicalOperator | null),positionInViewFilterGroup?: (Scalars['Float'] | null),viewId?: (Scalars['UUID'] | null)}
+
+export interface CreateApiKeyInput {name: Scalars['String'],expiresAt: Scalars['String'],revokedAt?: (Scalars['String'] | null),roleId: Scalars['UUID']}
+
+export interface UpdateApiKeyInput {id: Scalars['UUID'],name?: (Scalars['String'] | null),expiresAt?: (Scalars['String'] | null),revokedAt?: (Scalars['String'] | null)}
+
+export interface RevokeApiKeyInput {id: Scalars['UUID']}
+
+export interface CreateApprovedAccessDomainInput {domain: Scalars['String'],email: Scalars['String']}
+
+export interface DeleteApprovedAccessDomainInput {id: Scalars['UUID']}
+
+export interface ValidateApprovedAccessDomainInput {validationToken: Scalars['String'],approvedAccessDomainId: Scalars['UUID']}
+
export interface CreateAgentInput {name?: (Scalars['String'] | null),label: Scalars['String'],icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),prompt: Scalars['String'],modelId: Scalars['String'],roleId?: (Scalars['UUID'] | null),responseFormat?: (Scalars['JSON'] | null),modelConfiguration?: (Scalars['JSON'] | null),triggers?: (Scalars['JSON'][] | null)}
export interface UpdateAgentInput {id: Scalars['UUID'],name?: (Scalars['String'] | null),label?: (Scalars['String'] | null),icon?: (Scalars['String'] | null),description?: (Scalars['String'] | null),prompt?: (Scalars['String'] | null),modelId?: (Scalars['String'] | null),roleId?: (Scalars['UUID'] | null),responseFormat?: (Scalars['JSON'] | null),modelConfiguration?: (Scalars['JSON'] | null),triggers?: (Scalars['JSON'][] | null)}
@@ -8079,12 +8095,6 @@ export interface DeleteOneIndexInput {
/** The id of the custom index to delete. */
id: Scalars['UUID']}
-export interface CreateApprovedAccessDomainInput {domain: Scalars['String'],email: Scalars['String']}
-
-export interface DeleteApprovedAccessDomainInput {id: Scalars['UUID']}
-
-export interface ValidateApprovedAccessDomainInput {validationToken: Scalars['String'],approvedAccessDomainId: Scalars['UUID']}
-
export interface CreateRoleInput {id?: (Scalars['String'] | null),label: Scalars['String'],description?: (Scalars['String'] | null),icon?: (Scalars['String'] | null),canUpdateAllSettings?: (Scalars['Boolean'] | null),canAccessAllTools?: (Scalars['Boolean'] | null),canReadAllObjectRecords?: (Scalars['Boolean'] | null),canUpdateAllObjectRecords?: (Scalars['Boolean'] | null),canSoftDeleteAllObjectRecords?: (Scalars['Boolean'] | null),canDestroyAllObjectRecords?: (Scalars['Boolean'] | null),canBeAssignedToUsers?: (Scalars['Boolean'] | null),canBeAssignedToAgents?: (Scalars['Boolean'] | null),canBeAssignedToApiKeys?: (Scalars['Boolean'] | null)}
export interface UpdateRoleInput {update: UpdateRolePayload,
@@ -8109,16 +8119,6 @@ export interface RowLevelPermissionPredicateInput {id?: (Scalars['UUID'] | null)
export interface RowLevelPermissionPredicateGroupInput {id?: (Scalars['UUID'] | null),objectMetadataId: Scalars['UUID'],parentRowLevelPermissionPredicateGroupId?: (Scalars['UUID'] | null),logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator,positionInRowLevelPermissionPredicateGroup?: (Scalars['Float'] | null)}
-export interface CreateApiKeyInput {name: Scalars['String'],expiresAt: Scalars['String'],revokedAt?: (Scalars['String'] | null),roleId: Scalars['UUID']}
-
-export interface UpdateApiKeyInput {id: Scalars['UUID'],name?: (Scalars['String'] | null),expiresAt?: (Scalars['String'] | null),revokedAt?: (Scalars['String'] | null)}
-
-export interface RevokeApiKeyInput {id: Scalars['UUID']}
-
-export interface CreateViewFilterGroupInput {id?: (Scalars['UUID'] | null),parentViewFilterGroupId?: (Scalars['UUID'] | null),logicalOperator?: (ViewFilterGroupLogicalOperator | null),positionInViewFilterGroup?: (Scalars['Float'] | null),viewId: Scalars['UUID']}
-
-export interface UpdateViewFilterGroupInput {id?: (Scalars['UUID'] | null),parentViewFilterGroupId?: (Scalars['UUID'] | null),logicalOperator?: (ViewFilterGroupLogicalOperator | null),positionInViewFilterGroup?: (Scalars['Float'] | null),viewId?: (Scalars['UUID'] | null)}
-
export interface ActivateWorkspaceInput {
/** Deprecated: the workspace name is set at creation (signUpInNewWorkspace) and this field is ignored during activation. Kept for backward compatibility. */
displayName?: (Scalars['String'] | null)}
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index e21ab32eea4..74f4216a492 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -7823,6 +7823,88 @@ export default {
]
}
],
+ "getViewFilterGroups": [
+ 59,
+ {
+ "viewId": [
+ 1
+ ]
+ }
+ ],
+ "getViewFilterGroup": [
+ 59,
+ {
+ "id": [
+ 1,
+ "String!"
+ ]
+ }
+ ],
+ "apiKeys": [
+ 2
+ ],
+ "getApiKeyRoles": [
+ 52
+ ],
+ "apiKey": [
+ 2,
+ {
+ "input": [
+ 433,
+ "GetApiKeyInput!"
+ ]
+ }
+ ],
+ "currentUserSessions": [
+ 157
+ ],
+ "billingPortalSession": [
+ 162,
+ {
+ "returnUrlPath": [
+ 1
+ ],
+ "forPaymentMethodUpdate": [
+ 8
+ ]
+ }
+ ],
+ "listPlans": [
+ 160
+ ],
+ "getResourceCreditUsage": [
+ 159
+ ],
+ "myConnectedAccounts": [
+ 212
+ ],
+ "applicationConnectedAccounts": [
+ 213,
+ {
+ "applicationId": [
+ 3,
+ "UUID!"
+ ]
+ }
+ ],
+ "applicationConnectionProviders": [
+ 154,
+ {
+ "applicationId": [
+ 3,
+ "UUID!"
+ ]
+ }
+ ],
+ "getInviteSuggestions": [
+ 204
+ ],
+ "findWorkspaceInvitations": [
+ 207
+ ],
+ "getApprovedAccessDomains": [
+ 203
+ ],
"findManyAgents": [
11
],
@@ -7830,7 +7912,7 @@ export default {
11,
{
"input": [
- 433,
+ 434,
"AgentIdInput!"
]
}
@@ -7839,7 +7921,7 @@ export default {
24,
{
"input": [
- 434,
+ 435,
"LogicFunctionIdInput!"
]
}
@@ -7851,7 +7933,7 @@ export default {
9,
{
"input": [
- 434,
+ 435,
"LogicFunctionIdInput!"
]
}
@@ -7860,14 +7942,11 @@ export default {
1,
{
"input": [
- 434,
+ 435,
"LogicFunctionIdInput!"
]
}
],
- "currentUserSessions": [
- 157
- ],
"commandMenuItems": [
15
],
@@ -7900,7 +7979,7 @@ export default {
"CursorPaging!"
],
"filter": [
- 435,
+ 436,
"ObjectFilter!"
]
}
@@ -7926,41 +8005,6 @@ export default {
]
}
],
- "getInviteSuggestions": [
- 204
- ],
- "applicationConnectionProviders": [
- 154,
- {
- "applicationId": [
- 3,
- "UUID!"
- ]
- }
- ],
- "billingPortalSession": [
- 162,
- {
- "returnUrlPath": [
- 1
- ],
- "forPaymentMethodUpdate": [
- 8
- ]
- }
- ],
- "listPlans": [
- 160
- ],
- "getResourceCreditUsage": [
- 159
- ],
- "findWorkspaceInvitations": [
- 207
- ],
- "getApprovedAccessDomains": [
- 203
- ],
"getRoles": [
52
],
@@ -7973,50 +8017,6 @@ export default {
]
}
],
- "apiKeys": [
- 2
- ],
- "getApiKeyRoles": [
- 52
- ],
- "apiKey": [
- 2,
- {
- "input": [
- 436,
- "GetApiKeyInput!"
- ]
- }
- ],
- "getViewFilterGroups": [
- 59,
- {
- "viewId": [
- 1
- ]
- }
- ],
- "getViewFilterGroup": [
- 59,
- {
- "id": [
- 1,
- "String!"
- ]
- }
- ],
- "myConnectedAccounts": [
- 212
- ],
- "applicationConnectedAccounts": [
- 213,
- {
- "applicationId": [
- 3,
- "UUID!"
- ]
- }
- ],
"currentWorkspace": [
73
],
@@ -8649,6 +8649,14 @@ export default {
1
]
},
+ "GetApiKeyInput": {
+ "id": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
"AgentIdInput": {
"id": [
3
@@ -8667,10 +8675,10 @@ export default {
},
"ObjectFilter": {
"and": [
- 435
+ 436
],
"or": [
- 435
+ 436
],
"id": [
35
@@ -8703,14 +8711,6 @@ export default {
1
]
},
- "GetApiKeyInput": {
- "id": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
"PreviewMessageCampaignAudienceInput": {
"listId": [
1
@@ -9470,247 +9470,97 @@ export default {
]
}
],
- "createOneAgent": [
- 11,
+ "createViewFilterGroup": [
+ 59,
{
"input": [
501,
- "CreateAgentInput!"
+ "CreateViewFilterGroupInput!"
]
}
],
- "updateOneAgent": [
- 11,
+ "updateViewFilterGroup": [
+ 59,
{
+ "id": [
+ 1,
+ "String!"
+ ],
"input": [
502,
- "UpdateAgentInput!"
+ "UpdateViewFilterGroupInput!"
]
}
],
- "deleteOneAgent": [
- 11,
+ "deleteViewFilterGroup": [
+ 8,
{
- "input": [
- 433,
- "AgentIdInput!"
+ "id": [
+ 1,
+ "String!"
]
}
],
- "deleteOneLogicFunction": [
- 24,
+ "destroyViewFilterGroup": [
+ 8,
{
- "input": [
- 434,
- "LogicFunctionIdInput!"
+ "id": [
+ 1,
+ "String!"
]
}
],
- "createOneLogicFunction": [
- 24,
+ "createApiKey": [
+ 2,
{
"input": [
503,
- "CreateLogicFunctionFromSourceInput!"
+ "CreateApiKeyInput!"
]
}
],
- "executeOneLogicFunction": [
- 155,
+ "updateApiKey": [
+ 2,
{
"input": [
504,
- "ExecuteOneLogicFunctionInput!"
+ "UpdateApiKeyInput!"
]
}
],
- "updateOneLogicFunction": [
- 8,
+ "revokeApiKey": [
+ 2,
{
"input": [
505,
- "UpdateLogicFunctionFromSourceInput!"
+ "RevokeApiKeyInput!"
]
}
],
- "revokeUserSession": [
+ "assignRoleToApiKey": [
8,
{
- "userSessionId": [
+ "apiKeyId": [
+ 3,
+ "UUID!"
+ ],
+ "roleId": [
3,
"UUID!"
]
}
],
- "revokeAllOtherUserSessions": [
- 32
- ],
- "createCommandMenuItem": [
- 15,
- {
- "input": [
- 507,
- "CreateCommandMenuItemInput!"
- ]
- }
- ],
- "updateCommandMenuItem": [
- 15,
- {
- "input": [
- 508,
- "UpdateCommandMenuItemInput!"
- ]
- }
- ],
- "resetCommandMenuItem": [
- 15,
- {
- "id": [
- 3,
- "UUID!"
- ]
- }
- ],
- "deleteCommandMenuItem": [
- 15,
- {
- "id": [
- 3,
- "UUID!"
- ]
- }
- ],
- "generateFrontComponentApplicationTokenPair": [
- 13,
- {
- "applicationId": [
- 3,
- "UUID!"
- ]
- }
- ],
- "createFrontComponent": [
- 14,
- {
- "input": [
- 509,
- "CreateFrontComponentInput!"
- ]
- }
- ],
- "updateFrontComponent": [
- 14,
- {
- "input": [
- 510,
- "UpdateFrontComponentInput!"
- ]
- }
- ],
- "deleteFrontComponent": [
- 14,
+ "revokeUserSession": [
+ 8,
{
- "id": [
+ "userSessionId": [
3,
"UUID!"
]
}
],
- "updateOneApplicationVariable": [
- 8,
- {
- "key": [
- 1,
- "String!"
- ],
- "value": [
- 1,
- "String!"
- ],
- "applicationId": [
- 3
- ]
- }
- ],
- "createOneObject": [
- 26,
- {
- "input": [
- 512,
- "CreateOneObjectInput!"
- ]
- }
- ],
- "deleteOneObject": [
- 26,
- {
- "input": [
- 514,
- "DeleteOneObjectInput!"
- ]
- }
- ],
- "updateOneObject": [
- 26,
- {
- "input": [
- 515,
- "UpdateOneObjectInput!"
- ]
- }
- ],
- "updateManyObjects": [
- 26,
- {
- "inputs": [
- 515,
- "[UpdateOneObjectInput!]!"
- ]
- }
- ],
- "createOneIndex": [
- 281,
- {
- "input": [
- 518,
- "CreateOneIndexInput!"
- ]
- }
- ],
- "deleteOneIndex": [
- 281,
- {
- "input": [
- 521,
- "DeleteOneIndexInput!"
- ]
- }
- ],
- "skipSyncEmailOnboardingStep": [
- 206,
- {
- "isAutoSkipped": [
- 8,
- "Boolean!"
- ]
- }
- ],
- "completeBookCallOnboardingStep": [
- 206,
- {
- "hasBookedCall": [
- 8,
- "Boolean!"
- ],
- "isAutoSkipped": [
- 8,
- "Boolean!"
- ]
- }
- ],
- "goBackToPreviousOnboardingStep": [
- 205
+ "revokeAllOtherUserSessions": [
+ 32
],
"checkoutSession": [
162,
@@ -9786,6 +9636,65 @@ export default {
"cancelSwitchResourceCreditPrice": [
163
],
+ "deleteConnectedAccount": [
+ 212,
+ {
+ "id": [
+ 3,
+ "UUID!"
+ ]
+ }
+ ],
+ "disconnectConnectedAccount": [
+ 212,
+ {
+ "id": [
+ 3,
+ "UUID!"
+ ]
+ }
+ ],
+ "updateOneApplicationVariable": [
+ 8,
+ {
+ "key": [
+ 1,
+ "String!"
+ ],
+ "value": [
+ 1,
+ "String!"
+ ],
+ "applicationId": [
+ 3
+ ]
+ }
+ ],
+ "skipSyncEmailOnboardingStep": [
+ 206,
+ {
+ "isAutoSkipped": [
+ 8,
+ "Boolean!"
+ ]
+ }
+ ],
+ "completeBookCallOnboardingStep": [
+ 206,
+ {
+ "hasBookedCall": [
+ 8,
+ "Boolean!"
+ ],
+ "isAutoSkipped": [
+ 8,
+ "Boolean!"
+ ]
+ }
+ ],
+ "goBackToPreviousOnboardingStep": [
+ 205
+ ],
"deleteWorkspaceInvitation": [
1,
{
@@ -9820,7 +9729,7 @@ export default {
203,
{
"input": [
- 522,
+ 506,
"CreateApprovedAccessDomainInput!"
]
}
@@ -9829,7 +9738,7 @@ export default {
8,
{
"input": [
- 523,
+ 507,
"DeleteApprovedAccessDomainInput!"
]
}
@@ -9838,140 +9747,204 @@ export default {
203,
{
"input": [
- 524,
+ 508,
"ValidateApprovedAccessDomainInput!"
]
}
],
- "updateWorkspaceMemberRole": [
- 39,
+ "createOneAgent": [
+ 11,
{
- "workspaceMemberId": [
- 3,
- "UUID!"
- ],
- "roleId": [
- 3,
- "UUID!"
+ "input": [
+ 509,
+ "CreateAgentInput!"
]
}
],
- "createOneRole": [
- 52,
+ "updateOneAgent": [
+ 11,
{
- "createRoleInput": [
- 525,
- "CreateRoleInput!"
+ "input": [
+ 510,
+ "UpdateAgentInput!"
]
}
],
- "updateOneRole": [
- 52,
+ "deleteOneAgent": [
+ 11,
{
- "updateRoleInput": [
- 526,
- "UpdateRoleInput!"
+ "input": [
+ 434,
+ "AgentIdInput!"
]
}
],
- "deleteOneRole": [
- 1,
+ "deleteOneLogicFunction": [
+ 24,
{
- "roleId": [
- 3,
- "UUID!"
+ "input": [
+ 435,
+ "LogicFunctionIdInput!"
]
}
],
- "upsertObjectPermissions": [
- 49,
+ "createOneLogicFunction": [
+ 24,
{
- "upsertObjectPermissionsInput": [
- 528,
- "UpsertObjectPermissionsInput!"
+ "input": [
+ 511,
+ "CreateLogicFunctionFromSourceInput!"
]
}
],
- "upsertPermissionFlags": [
- 50,
+ "executeOneLogicFunction": [
+ 155,
{
- "upsertPermissionFlagsInput": [
- 530,
- "UpsertPermissionFlagsInput!"
+ "input": [
+ 512,
+ "ExecuteOneLogicFunctionInput!"
]
}
],
- "upsertFieldPermissions": [
- 44,
+ "updateOneLogicFunction": [
+ 8,
{
- "upsertFieldPermissionsInput": [
- 531,
- "UpsertFieldPermissionsInput!"
+ "input": [
+ 513,
+ "UpdateLogicFunctionFromSourceInput!"
]
}
],
- "upsertRowLevelPermissionPredicates": [
- 294,
+ "createCommandMenuItem": [
+ 15,
{
"input": [
- 533,
- "UpsertRowLevelPermissionPredicatesInput!"
+ 515,
+ "CreateCommandMenuItemInput!"
]
}
],
- "assignRoleToAgent": [
- 8,
+ "updateCommandMenuItem": [
+ 15,
{
- "agentId": [
+ "input": [
+ 516,
+ "UpdateCommandMenuItemInput!"
+ ]
+ }
+ ],
+ "resetCommandMenuItem": [
+ 15,
+ {
+ "id": [
3,
"UUID!"
- ],
- "roleId": [
+ ]
+ }
+ ],
+ "deleteCommandMenuItem": [
+ 15,
+ {
+ "id": [
3,
"UUID!"
]
}
],
- "removeRoleFromAgent": [
- 8,
+ "generateFrontComponentApplicationTokenPair": [
+ 13,
{
- "agentId": [
+ "applicationId": [
3,
"UUID!"
]
}
],
- "createApiKey": [
- 2,
+ "createFrontComponent": [
+ 14,
{
"input": [
- 536,
- "CreateApiKeyInput!"
+ 517,
+ "CreateFrontComponentInput!"
]
}
],
- "updateApiKey": [
- 2,
+ "updateFrontComponent": [
+ 14,
{
"input": [
- 537,
- "UpdateApiKeyInput!"
+ 518,
+ "UpdateFrontComponentInput!"
]
}
],
- "revokeApiKey": [
- 2,
+ "deleteFrontComponent": [
+ 14,
+ {
+ "id": [
+ 3,
+ "UUID!"
+ ]
+ }
+ ],
+ "createOneObject": [
+ 26,
{
"input": [
- 538,
- "RevokeApiKeyInput!"
+ 520,
+ "CreateOneObjectInput!"
]
}
],
- "assignRoleToApiKey": [
- 8,
+ "deleteOneObject": [
+ 26,
{
- "apiKeyId": [
+ "input": [
+ 522,
+ "DeleteOneObjectInput!"
+ ]
+ }
+ ],
+ "updateOneObject": [
+ 26,
+ {
+ "input": [
+ 523,
+ "UpdateOneObjectInput!"
+ ]
+ }
+ ],
+ "updateManyObjects": [
+ 26,
+ {
+ "inputs": [
+ 523,
+ "[UpdateOneObjectInput!]!"
+ ]
+ }
+ ],
+ "createOneIndex": [
+ 281,
+ {
+ "input": [
+ 526,
+ "CreateOneIndexInput!"
+ ]
+ }
+ ],
+ "deleteOneIndex": [
+ 281,
+ {
+ "input": [
+ 529,
+ "DeleteOneIndexInput!"
+ ]
+ }
+ ],
+ "updateWorkspaceMemberRole": [
+ 39,
+ {
+ "workspaceMemberId": [
3,
"UUID!"
],
@@ -9981,59 +9954,86 @@ export default {
]
}
],
- "createViewFilterGroup": [
- 59,
+ "createOneRole": [
+ 52,
{
- "input": [
- 539,
- "CreateViewFilterGroupInput!"
+ "createRoleInput": [
+ 530,
+ "CreateRoleInput!"
]
}
],
- "updateViewFilterGroup": [
- 59,
+ "updateOneRole": [
+ 52,
{
- "id": [
- 1,
- "String!"
- ],
- "input": [
- 540,
- "UpdateViewFilterGroupInput!"
+ "updateRoleInput": [
+ 531,
+ "UpdateRoleInput!"
]
}
],
- "deleteViewFilterGroup": [
- 8,
+ "deleteOneRole": [
+ 1,
{
- "id": [
- 1,
- "String!"
+ "roleId": [
+ 3,
+ "UUID!"
]
}
],
- "destroyViewFilterGroup": [
- 8,
+ "upsertObjectPermissions": [
+ 49,
+ {
+ "upsertObjectPermissionsInput": [
+ 533,
+ "UpsertObjectPermissionsInput!"
+ ]
+ }
+ ],
+ "upsertPermissionFlags": [
+ 50,
+ {
+ "upsertPermissionFlagsInput": [
+ 535,
+ "UpsertPermissionFlagsInput!"
+ ]
+ }
+ ],
+ "upsertFieldPermissions": [
+ 44,
+ {
+ "upsertFieldPermissionsInput": [
+ 536,
+ "UpsertFieldPermissionsInput!"
+ ]
+ }
+ ],
+ "upsertRowLevelPermissionPredicates": [
+ 294,
{
- "id": [
- 1,
- "String!"
+ "input": [
+ 538,
+ "UpsertRowLevelPermissionPredicatesInput!"
]
}
],
- "deleteConnectedAccount": [
- 212,
+ "assignRoleToAgent": [
+ 8,
{
- "id": [
+ "agentId": [
+ 3,
+ "UUID!"
+ ],
+ "roleId": [
3,
"UUID!"
]
}
],
- "disconnectConnectedAccount": [
- 212,
+ "removeRoleFromAgent": [
+ 8,
{
- "id": [
+ "agentId": [
3,
"UUID!"
]
@@ -12504,6 +12504,118 @@ export default {
1
]
},
+ "CreateViewFilterGroupInput": {
+ "id": [
+ 3
+ ],
+ "parentViewFilterGroupId": [
+ 3
+ ],
+ "logicalOperator": [
+ 60
+ ],
+ "positionInViewFilterGroup": [
+ 16
+ ],
+ "viewId": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdateViewFilterGroupInput": {
+ "id": [
+ 3
+ ],
+ "parentViewFilterGroupId": [
+ 3
+ ],
+ "logicalOperator": [
+ 60
+ ],
+ "positionInViewFilterGroup": [
+ 16
+ ],
+ "viewId": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "CreateApiKeyInput": {
+ "name": [
+ 1
+ ],
+ "expiresAt": [
+ 1
+ ],
+ "revokedAt": [
+ 1
+ ],
+ "roleId": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "UpdateApiKeyInput": {
+ "id": [
+ 3
+ ],
+ "name": [
+ 1
+ ],
+ "expiresAt": [
+ 1
+ ],
+ "revokedAt": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "RevokeApiKeyInput": {
+ "id": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "CreateApprovedAccessDomainInput": {
+ "domain": [
+ 1
+ ],
+ "email": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "DeleteApprovedAccessDomainInput": {
+ "id": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "ValidateApprovedAccessDomainInput": {
+ "validationToken": [
+ 1
+ ],
+ "approvedAccessDomainId": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
"CreateAgentInput": {
"name": [
1
@@ -12634,7 +12746,7 @@ export default {
3
],
"update": [
- 506
+ 514
],
"__typename": [
1
@@ -12803,7 +12915,7 @@ export default {
3
],
"update": [
- 511
+ 519
],
"__typename": [
1
@@ -12822,7 +12934,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 513
+ 521
],
"__typename": [
1
@@ -12882,7 +12994,7 @@ export default {
},
"UpdateOneObjectInput": {
"update": [
- 516
+ 524
],
"id": [
3
@@ -12941,7 +13053,7 @@ export default {
29
],
"translations": [
- 517
+ 525
],
"__typename": [
1
@@ -12963,7 +13075,7 @@ export default {
},
"CreateOneIndexInput": {
"index": [
- 519
+ 527
],
"__typename": [
1
@@ -12974,7 +13086,7 @@ export default {
3
],
"fields": [
- 520
+ 528
],
"indexType": [
282
@@ -13002,36 +13114,6 @@ export default {
1
]
},
- "CreateApprovedAccessDomainInput": {
- "domain": [
- 1
- ],
- "email": [
- 1
- ],
- "__typename": [
- 1
- ]
- },
- "DeleteApprovedAccessDomainInput": {
- "id": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
- "ValidateApprovedAccessDomainInput": {
- "validationToken": [
- 1
- ],
- "approvedAccessDomainId": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
"CreateRoleInput": {
"id": [
1
@@ -13078,7 +13160,7 @@ export default {
},
"UpdateRoleInput": {
"update": [
- 527
+ 532
],
"id": [
3
@@ -13133,7 +13215,7 @@ export default {
3
],
"objectPermissions": [
- 529
+ 534
],
"__typename": [
1
@@ -13175,7 +13257,7 @@ export default {
3
],
"fieldPermissions": [
- 532
+ 537
],
"__typename": [
1
@@ -13206,10 +13288,10 @@ export default {
3
],
"predicates": [
- 534
+ 539
],
"predicateGroups": [
- 535
+ 540
],
"__typename": [
1
@@ -13267,88 +13349,6 @@ export default {
1
]
},
- "CreateApiKeyInput": {
- "name": [
- 1
- ],
- "expiresAt": [
- 1
- ],
- "revokedAt": [
- 1
- ],
- "roleId": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
- "UpdateApiKeyInput": {
- "id": [
- 3
- ],
- "name": [
- 1
- ],
- "expiresAt": [
- 1
- ],
- "revokedAt": [
- 1
- ],
- "__typename": [
- 1
- ]
- },
- "RevokeApiKeyInput": {
- "id": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
- "CreateViewFilterGroupInput": {
- "id": [
- 3
- ],
- "parentViewFilterGroupId": [
- 3
- ],
- "logicalOperator": [
- 60
- ],
- "positionInViewFilterGroup": [
- 16
- ],
- "viewId": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
- "UpdateViewFilterGroupInput": {
- "id": [
- 3
- ],
- "parentViewFilterGroupId": [
- 3
- ],
- "logicalOperator": [
- 60
- ],
- "positionInViewFilterGroup": [
- 16
- ],
- "viewId": [
- 3
- ],
- "__typename": [
- 1
- ]
- },
"ActivateWorkspaceInput": {
"displayName": [
1
@@ -13702,7 +13702,7 @@ export default {
9
],
"translations": [
- 517
+ 525
],
"__typename": [
1
@@ -14425,7 +14425,7 @@ export default {
8
],
"translations": [
- 517
+ 525
],
"__typename": [
1
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputFieldTypeSelector.tsx b/packages/twenty-front/src/modules/ai/components/AgentOutputFieldTypeSelector.tsx
similarity index 83%
rename from packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputFieldTypeSelector.tsx
rename to packages/twenty-front/src/modules/ai/components/AgentOutputFieldTypeSelector.tsx
index 15aa6c05ec9..3f462a30574 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputFieldTypeSelector.tsx
+++ b/packages/twenty-front/src/modules/ai/components/AgentOutputFieldTypeSelector.tsx
@@ -3,19 +3,19 @@ import { Select } from '@/ui/input/components/Select';
import { t } from '@lingui/core/macro';
import { type AgentResponseFieldType } from 'twenty-shared/ai';
-type WorkflowOutputFieldTypeSelectorProps = {
+type AgentOutputFieldTypeSelectorProps = {
value?: AgentResponseFieldType;
onChange: (value: AgentResponseFieldType) => void;
disabled?: boolean;
dropdownId: string;
};
-export const WorkflowOutputFieldTypeSelector = ({
+export const AgentOutputFieldTypeSelector = ({
value,
onChange,
disabled,
dropdownId,
-}: WorkflowOutputFieldTypeSelectorProps) => {
+}: AgentOutputFieldTypeSelectorProps) => {
return (
<Select
dropdownId={dropdownId}
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputSchemaBuilder.tsx b/packages/twenty-front/src/modules/ai/components/AgentOutputSchemaBuilder.tsx
similarity index 94%
rename from packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputSchemaBuilder.tsx
rename to packages/twenty-front/src/modules/ai/components/AgentOutputSchemaBuilder.tsx
index 33c4634622a..2f4dec2b882 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputSchemaBuilder.tsx
+++ b/packages/twenty-front/src/modules/ai/components/AgentOutputSchemaBuilder.tsx
@@ -12,9 +12,9 @@ import { IconPlus } from 'twenty-ui/icon';
import { Collapsible } from 'twenty-ui/primitives/layout';
import { ListItem } from 'twenty-ui/primitives/navigation';
import { themeCssVariables } from 'twenty-ui/theme';
-import { WorkflowOutputFieldTypeSelector } from './WorkflowOutputFieldTypeSelector';
-import { WorkflowOutputSchemaFieldHeader } from './WorkflowOutputSchemaFieldHeader';
-type WorkflowOutputSchemaBuilderProps = {
+import { AgentOutputFieldTypeSelector } from '@/ai/components/AgentOutputFieldTypeSelector';
+import { AgentOutputSchemaFieldHeader } from '@/ai/components/AgentOutputSchemaFieldHeader';
+type AgentOutputSchemaBuilderProps = {
fields: OutputSchemaField[];
onChange: (fields: OutputSchemaField[]) => void;
readonly?: boolean;
@@ -67,11 +67,11 @@ const StyledMessageDescription = styled.div`
font-weight: ${themeCssVariables.font.weight.regular};
`;
-export const WorkflowOutputSchemaBuilder = ({
+export const AgentOutputSchemaBuilder = ({
fields,
onChange,
readonly,
-}: WorkflowOutputSchemaBuilderProps) => {
+}: AgentOutputSchemaBuilderProps) => {
const [expandedFieldIds, setExpandedFieldIds] = useState<Set<string>>(
() => new Set(fields.map((field) => field.id)),
);
@@ -153,7 +153,7 @@ export const WorkflowOutputSchemaBuilder = ({
return (
<StyledOutputSchemaFieldContainer key={field.id}>
- <WorkflowOutputSchemaFieldHeader
+ <AgentOutputSchemaFieldHeader
name={field.name}
isExpanded={isExpanded}
onToggle={() => toggleField(field.id)}
@@ -179,7 +179,7 @@ export const WorkflowOutputSchemaBuilder = ({
</FormFieldInputContainer>
<FormFieldInputContainer>
- <WorkflowOutputFieldTypeSelector
+ <AgentOutputFieldTypeSelector
onChange={(value) =>
updateField(field.id, { type: value })
}
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputSchemaFieldHeader.tsx b/packages/twenty-front/src/modules/ai/components/AgentOutputSchemaFieldHeader.tsx
similarity index 95%
rename from packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputSchemaFieldHeader.tsx
rename to packages/twenty-front/src/modules/ai/components/AgentOutputSchemaFieldHeader.tsx
index db5c31a7671..fed2e3d8e44 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputSchemaFieldHeader.tsx
+++ b/packages/twenty-front/src/modules/ai/components/AgentOutputSchemaFieldHeader.tsx
@@ -6,7 +6,7 @@ import { LightIconButton } from 'twenty-ui/components/input';
import { IconChevronDown, IconVariable, IconX } from 'twenty-ui/icon';
import { themeCssVariables, useTheme } from 'twenty-ui/theme';
-type WorkflowOutputSchemaFieldHeaderProps = {
+type AgentOutputSchemaFieldHeaderProps = {
name: string;
isExpanded: boolean;
onToggle: () => void;
@@ -88,12 +88,12 @@ const StyledChevron = styled.span`
}
`;
-export const WorkflowOutputSchemaFieldHeader = ({
+export const AgentOutputSchemaFieldHeader = ({
name,
isExpanded,
onToggle,
onRemove,
-}: WorkflowOutputSchemaFieldHeaderProps) => {
+}: AgentOutputSchemaFieldHeaderProps) => {
const theme = useTheme();
return (
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/__stories__/WorkflowOutputSchemaFieldHeader.stories.tsx b/packages/twenty-front/src/modules/ai/components/__stories__/AgentOutputSchemaFieldHeader.stories.tsx
similarity index 88%
rename from packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/__stories__/WorkflowOutputSchemaFieldHeader.stories.tsx
rename to packages/twenty-front/src/modules/ai/components/__stories__/AgentOutputSchemaFieldHeader.stories.tsx
index f2007ed4de1..370ddd5cbfe 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/__stories__/WorkflowOutputSchemaFieldHeader.stories.tsx
+++ b/packages/twenty-front/src/modules/ai/components/__stories__/AgentOutputSchemaFieldHeader.stories.tsx
@@ -1,12 +1,12 @@
-import { WorkflowOutputSchemaFieldHeader } from '@/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputSchemaFieldHeader';
+import { AgentOutputSchemaFieldHeader } from '@/ai/components/AgentOutputSchemaFieldHeader';
import { type Meta, type StoryObj } from '@storybook/react-vite';
import { useState } from 'react';
import { expect, fn, userEvent, within } from 'storybook/test';
import { ComponentDecorator } from 'twenty-ui/testing';
-const meta: Meta<typeof WorkflowOutputSchemaFieldHeader> = {
- title: 'Modules/Workflow/WorkflowOutputSchemaFieldHeader',
- component: WorkflowOutputSchemaFieldHeader,
+const meta: Meta<typeof AgentOutputSchemaFieldHeader> = {
+ title: 'Modules/AI/AgentOutputSchemaFieldHeader',
+ component: AgentOutputSchemaFieldHeader,
decorators: [ComponentDecorator],
parameters: { container: { width: 320 } },
args: {
@@ -18,7 +18,7 @@ const meta: Meta<typeof WorkflowOutputSchemaFieldHeader> = {
};
export default meta;
-type Story = StoryObj<typeof WorkflowOutputSchemaFieldHeader>;
+type Story = StoryObj<typeof AgentOutputSchemaFieldHeader>;
const expectRowHeight = async (canvasElement: HTMLElement) => {
const header = within(canvasElement).getByRole('button', {
@@ -46,7 +46,7 @@ export const KeyboardExpansion: Story = {
const [isExpanded, setIsExpanded] = useState(args.isExpanded);
return (
- <WorkflowOutputSchemaFieldHeader
+ <AgentOutputSchemaFieldHeader
{...args}
isExpanded={isExpanded}
onToggle={() => {
diff --git a/packages/twenty-front/src/modules/ai/components/internal/AiChatToolCallApprovalArgumentsEditor.tsx b/packages/twenty-front/src/modules/ai/components/internal/AiChatToolCallApprovalArgumentsEditor.tsx
index 424f585f02a..3619a9b51b6 100644
--- a/packages/twenty-front/src/modules/ai/components/internal/AiChatToolCallApprovalArgumentsEditor.tsx
+++ b/packages/twenty-front/src/modules/ai/components/internal/AiChatToolCallApprovalArgumentsEditor.tsx
@@ -4,7 +4,7 @@ import { useState } from 'react';
import TextareaAutosize from 'react-textarea-autosize';
import { themeCssVariables } from 'twenty-ui/theme';
-import { parseAndValidateVariableFriendlyStringifiedJson } from '@/workflow/utils/parseAndValidateVariableFriendlyStringifiedJson';
+import { parseAndValidateVariableFriendlyStringifiedJson } from '~/utils/parseAndValidateVariableFriendlyStringifiedJson';
const StyledTextarea = styled(TextareaAutosize)`
background: ${themeCssVariables.background.transparent.lighter};
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentResponseFormat.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentResponseFormat.tsx
index 8fbbd8cf0fc..e03f76181de 100644
--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentResponseFormat.tsx
+++ b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentResponseFormat.tsx
@@ -2,7 +2,7 @@ import { type OutputSchemaField } from '@/ai/types/OutputSchemaField';
import { fieldsToSchema } from '@/ai/utils/fieldsToSchema';
import { schemaToFields } from '@/ai/utils/schemaToFields';
import { Select } from '@/ui/input/components/Select';
-import { WorkflowOutputSchemaBuilder } from '@/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputSchemaBuilder';
+import { AgentOutputSchemaBuilder } from '@/ai/components/AgentOutputSchemaBuilder';
import { styled } from '@linaria/react';
import { t } from '@lingui/core/macro';
import { useState } from 'react';
@@ -79,7 +79,7 @@ export const CoreAgentResponseFormat = ({
/>
{formatType === 'json' && (
- <WorkflowOutputSchemaBuilder
+ <AgentOutputSchemaBuilder
fields={visualBuilderFields}
onChange={handleVisualBuilderChange}
readonly={disabled}
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentRunRow.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentRunRow.tsx
index c0685639fc3..245b70eda9b 100644
--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentRunRow.tsx
+++ b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentRunRow.tsx
@@ -11,7 +11,7 @@ import { type CoreAgentRun } from '@/object-core/agents/types/CoreAgentRun';
import { handleCoreAgentRunToggleKeyDown } from '@/object-core/agents/utils/handleCoreAgentRunToggleKeyDown';
import { TableCell } from '@/ui/layout/table/components/TableCell';
import { TableRow } from '@/ui/layout/table/components/TableRow';
-import { formatDuration } from '@/workflow/workflow-steps/workflow-actions/utils/formatDuration';
+import { formatDuration } from '~/utils/format/formatDuration';
import { beautifyPastDateRelativeToNow } from '~/utils/date-utils';
import { formatNumber } from '~/utils/format/formatNumber';
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTriggerCard.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTriggerCard.tsx
index 0abf56a4c63..94b31e5040e 100644
--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTriggerCard.tsx
+++ b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTriggerCard.tsx
@@ -15,8 +15,8 @@ import { SettingsTextInput } from '@/ui/input/components/SettingsTextInput';
import { TextArea } from '@/ui/input/components/TextArea';
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
import { WorkflowFieldsMultiSelect } from '@/workflow/components/WorkflowEditUpdateEventFieldsMultiSelect';
-import { useWorkflowObjectSelectOptions } from '@/workflow/hooks/useWorkflowObjectSelectOptions';
-import { describeCronExpression } from '@/workflow/workflow-trigger/utils/cron-to-human/describeCronExpression';
+import { useObjectMetadataItemSelectOptions } from '@/object-metadata/hooks/useObjectMetadataItemSelectOptions';
+import { describeCronExpression } from '~/utils/cron-to-human/describeCronExpression';
const StyledCard = styled.div`
border: 1px solid ${themeCssVariables.border.color.medium};
@@ -94,7 +94,7 @@ export const CoreAgentTriggerCard = ({
? trigger.settings.eventName.split('.')
: [];
- const objectOptions = useWorkflowObjectSelectOptions({
+ const objectOptions = useObjectMetadataItemSelectOptions({
selectedObjectNameSingular: objectNameSingular,
});
diff --git a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTriggersTab.tsx b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTriggersTab.tsx
index 45dd73be5b6..ebe747c4ff2 100644
--- a/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTriggersTab.tsx
+++ b/packages/twenty-front/src/modules/object-core/agents/components/CoreAgentTriggersTab.tsx
@@ -11,7 +11,7 @@ import { themeCssVariables } from 'twenty-ui/theme';
import { CoreAgentTriggerCard } from '@/object-core/agents/components/CoreAgentTriggerCard';
import { buildDefaultCoreAgentTrigger } from '@/object-core/agents/utils/buildDefaultCoreAgentTrigger';
-import { useWorkflowObjectSelectOptions } from '@/workflow/hooks/useWorkflowObjectSelectOptions';
+import { useObjectMetadataItemSelectOptions } from '@/object-metadata/hooks/useObjectMetadataItemSelectOptions';
const StyledTriggerList = styled.div`
display: flex;
@@ -41,7 +41,7 @@ export const CoreAgentTriggersTab = ({
disabled,
}: CoreAgentTriggersTabProps) => {
const { t } = useLingui();
- const objectOptions = useWorkflowObjectSelectOptions();
+ const objectOptions = useObjectMetadataItemSelectOptions();
const defaultObjectNameSingular =
objectOptions.find((option) => option.value === 'company')?.value ??
diff --git a/packages/twenty-front/src/modules/workflow/hooks/useWorkflowObjectSelectOptions.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadataItemSelectOptions.ts
similarity index 87%
rename from packages/twenty-front/src/modules/workflow/hooks/useWorkflowObjectSelectOptions.ts
rename to packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadataItemSelectOptions.ts
index 48036c94ac6..c33a29fb06c 100644
--- a/packages/twenty-front/src/modules/workflow/hooks/useWorkflowObjectSelectOptions.ts
+++ b/packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadataItemSelectOptions.ts
@@ -2,13 +2,13 @@ import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilte
import { useObjectMetadataSelectHelpers } from '@/object-metadata/hooks/useObjectMetadataSelectHelpers';
import { type SelectOption } from 'twenty-ui/primitives/input';
-type UseWorkflowObjectSelectOptionsProps = {
+type UseObjectMetadataItemSelectOptionsProps = {
selectedObjectNameSingular?: string;
};
-export const useWorkflowObjectSelectOptions = ({
+export const useObjectMetadataItemSelectOptions = ({
selectedObjectNameSingular,
-}: UseWorkflowObjectSelectOptionsProps = {}): SelectOption<string>[] => {
+}: UseObjectMetadataItemSelectOptionsProps = {}): SelectOption<string>[] => {
const { objectMetadataItems } = useFilteredObjectMetadataItems();
const { getSelectIconPropsFromObjectMetadataItem } =
useObjectMetadataSelectHelpers();
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowExpectedOutputBodyInput.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowExpectedOutputBodyInput.tsx
index fc36655e00e..c3c7a23445c 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowExpectedOutputBodyInput.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowExpectedOutputBodyInput.tsx
@@ -1,5 +1,5 @@
import { FormRawJsonFieldInput } from '@/object-record/record-field/ui/form-types/components/FormRawJsonFieldInput';
-import { parseAndValidateVariableFriendlyStringifiedJson } from '@/workflow/utils/parseAndValidateVariableFriendlyStringifiedJson';
+import { parseAndValidateVariableFriendlyStringifiedJson } from '~/utils/parseAndValidateVariableFriendlyStringifiedJson';
import { t } from '@lingui/core/macro';
import { isNonEmptyString } from '@sniptt/guards';
import { useState } from 'react';
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPromptTab.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPromptTab.tsx
index 37fe236246c..4a8fc7db341 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPromptTab.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPromptTab.tsx
@@ -10,7 +10,7 @@ import { FormTextFieldInput } from '@/object-record/record-field/ui/form-types/c
import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';
import { type WorkflowAiAgentAction } from '@/workflow/types/Workflow';
import { WorkflowConversationFields } from '@/workflow/workflow-steps/workflow-actions/components/WorkflowConversationFields';
-import { WorkflowOutputSchemaBuilder } from '@/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowOutputSchemaBuilder';
+import { AgentOutputSchemaBuilder } from '@/ai/components/AgentOutputSchemaBuilder';
import { workflowAiAgentActionAgentState } from '@/workflow/workflow-steps/workflow-actions/ai-agent-action/states/workflowAiAgentActionAgentState';
import { WorkflowVariablePicker } from '@/workflow/workflow-variables/components/WorkflowVariablePicker';
import { useMutation } from '@apollo/client/react';
@@ -201,7 +201,7 @@ export const WorkflowAiAgentPromptTab = ({
disabled={readonly}
/>
- <WorkflowOutputSchemaBuilder
+ <AgentOutputSchemaBuilder
fields={outputSchemaFields}
onChange={handleOutputSchemaChange}
readonly={readonly}
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowRunStepLogsAiAgentDetail.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowRunStepLogsAiAgentDetail.tsx
index 7cbe4b4674d..3d80207b9d3 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowRunStepLogsAiAgentDetail.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowRunStepLogsAiAgentDetail.tsx
@@ -13,7 +13,7 @@ import {
} from 'twenty-ui/icon';
import { themeCssVariables } from 'twenty-ui/theme';
-import { formatDuration } from '@/workflow/workflow-steps/workflow-actions/utils/formatDuration';
+import { formatDuration } from '~/utils/format/formatDuration';
import {
StyledBadgeGroup,
StyledEmptyHint,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowRunStepLogsCodeDetail.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowRunStepLogsCodeDetail.tsx
index 95dabae69f4..76d9a22317b 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowRunStepLogsCodeDetail.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowRunStepLogsCodeDetail.tsx
@@ -11,7 +11,7 @@ import {
import { themeCssVariables } from 'twenty-ui/theme';
import { MONOSPACE_FONT_FAMILY } from '@/ui/theme/constants/MonospaceFontFamily';
-import { formatDuration } from '@/workflow/workflow-steps/workflow-actions/utils/formatDuration';
+import { formatDuration } from '~/utils/format/formatDuration';
import {
StyledErrorCard,
StyledErrorMessageText,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowRunStepLogsEmailDetail.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowRunStepLogsEmailDetail.tsx
index 05c7579a840..844b4bdffb1 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowRunStepLogsEmailDetail.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/WorkflowRunStepLogsEmailDetail.tsx
@@ -12,7 +12,7 @@ import {
} from 'twenty-ui/icon';
import { themeCssVariables } from 'twenty-ui/theme';
-import { formatDuration } from '@/workflow/workflow-steps/workflow-actions/utils/formatDuration';
+import { formatDuration } from '~/utils/format/formatDuration';
import {
StyledBadgeGroup,
StyledBodyMeta,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowEditActionFindRecords.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowEditActionFindRecords.tsx
index ea0f9f9a5f7..cddf4221c3f 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowEditActionFindRecords.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowEditActionFindRecords.tsx
@@ -19,7 +19,7 @@ import { type RecordSort } from '@/object-record/record-sort/types/RecordSort';
import { Select } from '@/ui/input/components/Select';
import { InputLabel } from '@/ui/input/components/internal/InputLabel/InputLabel';
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
-import { useWorkflowObjectSelectOptions } from '@/workflow/hooks/useWorkflowObjectSelectOptions';
+import { useObjectMetadataItemSelectOptions } from '@/object-metadata/hooks/useObjectMetadataItemSelectOptions';
import { type WorkflowFindRecordsAction } from '@/workflow/types/Workflow';
import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';
import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';
@@ -86,7 +86,7 @@ export const WorkflowEditActionFindRecords = ({
const [offsetError, setOffsetError] = useState<string | undefined>(undefined);
const isFormDisabled = actionOptions.readonly ?? false;
const instanceId = `workflow-edit-action-record-find-records-${action.id}-${formData.objectNameSingular}`;
- const objectOptions = useWorkflowObjectSelectOptions({
+ const objectOptions = useObjectMetadataItemSelectOptions({
selectedObjectNameSingular: formData.objectNameSingular,
});
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowRunStepLogsHttpRequestDetail.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowRunStepLogsHttpRequestDetail.tsx
index c35381479bf..e1fd3207202 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowRunStepLogsHttpRequestDetail.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/components/WorkflowRunStepLogsHttpRequestDetail.tsx
@@ -13,7 +13,7 @@ import {
import { themeCssVariables } from 'twenty-ui/theme';
import { MONOSPACE_FONT_FAMILY } from '@/ui/theme/constants/MonospaceFontFamily';
-import { formatDuration } from '@/workflow/workflow-steps/workflow-actions/utils/formatDuration';
+import { formatDuration } from '~/utils/format/formatDuration';
import {
StyledBadgeGroup,
StyledBodyMeta,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useHttpRequestOutputSchema.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useHttpRequestOutputSchema.ts
index fd6864575be..8079b9b09f3 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useHttpRequestOutputSchema.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useHttpRequestOutputSchema.ts
@@ -1,5 +1,5 @@
import { type WorkflowHttpRequestAction } from '@/workflow/types/Workflow';
-import { parseAndValidateVariableFriendlyStringifiedJson } from '@/workflow/utils/parseAndValidateVariableFriendlyStringifiedJson';
+import { parseAndValidateVariableFriendlyStringifiedJson } from '~/utils/parseAndValidateVariableFriendlyStringifiedJson';
import { convertOutputSchemaToJson } from '@/workflow/workflow-steps/workflow-actions/http-request-action/utils/convertOutputSchemaToJson';
import { getHttpRequestOutputSchema } from '@/workflow/workflow-steps/workflow-actions/http-request-action/utils/getHttpRequestOutputSchema';
import { isNonEmptyString } from '@sniptt/guards';
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/pick-record-action/components/WorkflowEditActionPickRecord.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/pick-record-action/components/WorkflowEditActionPickRecord.tsx
index 0d37dff45b8..1879a713561 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/pick-record-action/components/WorkflowEditActionPickRecord.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/pick-record-action/components/WorkflowEditActionPickRecord.tsx
@@ -14,7 +14,7 @@ import { isManyToOneRelationField } from '@/object-metadata/utils/isManyToOneRel
import { FormMultiRecordPicker } from '@/object-record/record-field/ui/form-types/components/FormMultiRecordPicker';
import { Select } from '@/ui/input/components/Select';
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
-import { useWorkflowObjectSelectOptions } from '@/workflow/hooks/useWorkflowObjectSelectOptions';
+import { useObjectMetadataItemSelectOptions } from '@/object-metadata/hooks/useObjectMetadataItemSelectOptions';
import { type WorkflowPickRecordAction } from '@/workflow/types/Workflow';
import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';
import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';
@@ -68,10 +68,10 @@ export const WorkflowEditActionPickRecord = ({
}));
const isFormDisabled = actionOptions.readonly ?? false;
- const objectOptions = useWorkflowObjectSelectOptions({
+ const objectOptions = useObjectMetadataItemSelectOptions({
selectedObjectNameSingular: formData.objectNameSingular,
});
- const loadBalanceObjectOptions = useWorkflowObjectSelectOptions({
+ const loadBalanceObjectOptions = useObjectMetadataItemSelectOptions({
selectedObjectNameSingular: formData.loadBalance?.objectNameSingular,
});
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/send-chat-message-action/components/WorkflowSendChatMessageToolArguments.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/send-chat-message-action/components/WorkflowSendChatMessageToolArguments.tsx
index 2b4bda1cf60..733e8d3a92c 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/send-chat-message-action/components/WorkflowSendChatMessageToolArguments.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/send-chat-message-action/components/WorkflowSendChatMessageToolArguments.tsx
@@ -1,6 +1,6 @@
import { useQuery } from '@apollo/client/react';
import { FormRawJsonFieldInput } from '@/object-record/record-field/ui/form-types/components/FormRawJsonFieldInput';
-import { parseAndValidateVariableFriendlyStringifiedJson } from '@/workflow/utils/parseAndValidateVariableFriendlyStringifiedJson';
+import { parseAndValidateVariableFriendlyStringifiedJson } from '~/utils/parseAndValidateVariableFriendlyStringifiedJson';
import { WorkflowEditActionCodeFieldLeaf } from '@/workflow/workflow-steps/workflow-actions/code-action/components/WorkflowEditActionCodeFieldLeaf';
import { type ToolArgumentField } from '@/workflow/workflow-steps/workflow-actions/send-chat-message-action/types/ToolArgumentField';
import { buildToolArgumentFields } from '@/workflow/workflow-steps/workflow-actions/send-chat-message-action/utils/buildToolArgumentFields';
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/wait-for-event-action/components/WorkflowEditActionWaitForEvent.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/wait-for-event-action/components/WorkflowEditActionWaitForEvent.tsx
index 20799179098..27773d414d2 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/wait-for-event-action/components/WorkflowEditActionWaitForEvent.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/wait-for-event-action/components/WorkflowEditActionWaitForEvent.tsx
@@ -5,7 +5,7 @@ import { type FieldMultiSelectValue } from '@/object-record/record-field/ui/type
import { Select } from '@/ui/input/components/Select';
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
import { WorkflowFieldsMultiSelect } from '@/workflow/components/WorkflowEditUpdateEventFieldsMultiSelect';
-import { useWorkflowObjectSelectOptions } from '@/workflow/hooks/useWorkflowObjectSelectOptions';
+import { useObjectMetadataItemSelectOptions } from '@/object-metadata/hooks/useObjectMetadataItemSelectOptions';
import { type WorkflowWaitForEventAction } from '@/workflow/types/Workflow';
import { splitWorkflowTriggerEventName } from '@/workflow/utils/splitWorkflowTriggerEventName';
import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';
@@ -43,7 +43,7 @@ export const WorkflowEditActionWaitForEvent = ({
const { t } = useLingui();
const { objectMetadataItems } = useFilteredObjectMetadataItems();
- const objectOptions = useWorkflowObjectSelectOptions();
+ const objectOptions = useObjectMetadataItemSelectOptions();
const [timeoutDraft, setTimeoutDraft] = useState<WaitForEventTimeout>(
() => action.settings.input.timeout ?? {},
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/CronExpressionHelper.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/CronExpressionHelper.tsx
index e60b0cffa06..0da89ebb0f0 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/CronExpressionHelper.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/CronExpressionHelper.tsx
@@ -2,9 +2,9 @@ import { useDateTimeFormat } from '@/localization/hooks/useDateTimeFormat';
import { InputHint } from '@/ui/input/components/internal/InputHint/InputHint';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
import type { WorkflowCronTrigger } from '@/workflow/types/Workflow';
-import { calculateNextExecutionsForMinuteInterval } from '@/workflow/workflow-trigger/utils/cron-to-human/utils/calculateNextExecutionsForMinuteInterval';
-import { convertScheduleToCronExpression } from '@/workflow/workflow-trigger/utils/cron-to-human/utils/convertScheduleToCronExpression';
-import { normalizeCronExpression } from '@/workflow/workflow-trigger/utils/cron-to-human/utils/normalizeCronExpression';
+import { calculateNextExecutionsForMinuteInterval } from '~/utils/cron-to-human/utils/calculateNextExecutionsForMinuteInterval';
+import { convertScheduleToCronExpression } from '@/workflow/workflow-trigger/utils/convertScheduleToCronExpression';
+import { normalizeCronExpression } from '~/utils/cron-to-human/utils/normalizeCronExpression';
import { getTriggerScheduleDescription } from '@/workflow/workflow-trigger/utils/getTriggerScheduleDescription';
import { styled } from '@linaria/react';
import { t } from '@lingui/core/macro';
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerDatabaseEventForm.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerDatabaseEventForm.tsx
index b585c674425..931c5e42426 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerDatabaseEventForm.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerDatabaseEventForm.tsx
@@ -2,7 +2,7 @@ import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilte
import { type FieldMultiSelectValue } from '@/object-record/record-field/ui/types/FieldMetadata';
import { Select } from '@/ui/input/components/Select';
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
-import { useWorkflowObjectSelectOptions } from '@/workflow/hooks/useWorkflowObjectSelectOptions';
+import { useObjectMetadataItemSelectOptions } from '@/object-metadata/hooks/useObjectMetadataItemSelectOptions';
import { WorkflowFieldsMultiSelect } from '@/workflow/components/WorkflowEditUpdateEventFieldsMultiSelect';
import { type WorkflowDatabaseEventTrigger } from '@/workflow/types/Workflow';
import { splitWorkflowTriggerEventName } from '@/workflow/utils/splitWorkflowTriggerEventName';
@@ -35,7 +35,7 @@ export const WorkflowEditTriggerDatabaseEventForm = ({
const dropdownId = 'workflow-edit-trigger-record-type';
const { objectMetadataItems } = useFilteredObjectMetadataItems();
- const objectOptions = useWorkflowObjectSelectOptions();
+ const objectOptions = useObjectMetadataItemSelectOptions();
const triggerEvent = splitWorkflowTriggerEventName(
trigger.settings.eventName,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerWebhookForm.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerWebhookForm.tsx
index b621c9d264e..c0dae882877 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerWebhookForm.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerWebhookForm.tsx
@@ -6,7 +6,7 @@ import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/Gene
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { workflowVisualizerWorkflowIdComponentState } from '@/workflow/states/workflowVisualizerWorkflowIdComponentState';
import { type WorkflowWebhookTrigger } from '@/workflow/types/Workflow';
-import { parseAndValidateVariableFriendlyStringifiedJson } from '@/workflow/utils/parseAndValidateVariableFriendlyStringifiedJson';
+import { parseAndValidateVariableFriendlyStringifiedJson } from '~/utils/parseAndValidateVariableFriendlyStringifiedJson';
import { WorkflowStepBody } from '@/workflow/workflow-steps/components/WorkflowStepBody';
import { WorkflowStepFooter } from '@/workflow/workflow-steps/components/WorkflowStepFooter';
import { WEBHOOK_TRIGGER_AUTHENTICATION_OPTIONS } from '@/workflow/workflow-trigger/constants/WebhookTriggerAuthenticationOptions';
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/convertScheduleToCronExpression.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/convertScheduleToCronExpression.ts
similarity index 100%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/convertScheduleToCronExpression.ts
rename to packages/twenty-front/src/modules/workflow/workflow-trigger/utils/convertScheduleToCronExpression.ts
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/getTriggerScheduleDescription.ts b/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/getTriggerScheduleDescription.ts
index d45693714b5..db466d7b3ee 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/getTriggerScheduleDescription.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/getTriggerScheduleDescription.ts
@@ -1,8 +1,8 @@
import { type Locale } from 'date-fns';
import { type WorkflowCronTrigger } from '@/workflow/types/Workflow';
-import { describeCronExpression } from '@/workflow/workflow-trigger/utils/cron-to-human/describeCronExpression';
-import { convertScheduleToCronExpression } from '@/workflow/workflow-trigger/utils/cron-to-human/utils/convertScheduleToCronExpression';
+import { describeCronExpression } from '~/utils/cron-to-human/describeCronExpression';
+import { convertScheduleToCronExpression } from '@/workflow/workflow-trigger/utils/convertScheduleToCronExpression';
import { t } from '@lingui/core/macro';
export const getTriggerScheduleDescription = (
diff --git a/packages/twenty-front/src/modules/workflow/utils/__tests__/parseAndValidateVariableFriendlyStringifiedJson.test.ts b/packages/twenty-front/src/utils/__tests__/parseAndValidateVariableFriendlyStringifiedJson.test.ts
similarity index 98%
rename from packages/twenty-front/src/modules/workflow/utils/__tests__/parseAndValidateVariableFriendlyStringifiedJson.test.ts
rename to packages/twenty-front/src/utils/__tests__/parseAndValidateVariableFriendlyStringifiedJson.test.ts
index a088ceb9c1f..684981c0aef 100644
--- a/packages/twenty-front/src/modules/workflow/utils/__tests__/parseAndValidateVariableFriendlyStringifiedJson.test.ts
+++ b/packages/twenty-front/src/utils/__tests__/parseAndValidateVariableFriendlyStringifiedJson.test.ts
@@ -1,4 +1,4 @@
-import { parseAndValidateVariableFriendlyStringifiedJson } from '@/workflow/utils/parseAndValidateVariableFriendlyStringifiedJson';
+import { parseAndValidateVariableFriendlyStringifiedJson } from '~/utils/parseAndValidateVariableFriendlyStringifiedJson';
describe('parseAndValidateVariableFriendlyStringifiedJson', () => {
describe('Valid JSON with variable-friendly keys', () => {
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/cronstrueComparison.test.ts b/packages/twenty-front/src/utils/cron-to-human/__tests__/cronstrueComparison.test.ts
similarity index 96%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/cronstrueComparison.test.ts
rename to packages/twenty-front/src/utils/cron-to-human/__tests__/cronstrueComparison.test.ts
index ab2b3ad94ee..973e573064b 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/cronstrueComparison.test.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/__tests__/cronstrueComparison.test.ts
@@ -1,4 +1,4 @@
-import { describeCronExpression } from '@/workflow/workflow-trigger/utils/cron-to-human/describeCronExpression';
+import { describeCronExpression } from '~/utils/cron-to-human/describeCronExpression';
describe('cronstrue comparison tests', () => {
describe('comparing with cronstrue examples', () => {
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/describeCronExpression.test.ts b/packages/twenty-front/src/utils/cron-to-human/__tests__/describeCronExpression.test.ts
similarity index 98%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/describeCronExpression.test.ts
rename to packages/twenty-front/src/utils/cron-to-human/__tests__/describeCronExpression.test.ts
index 8bdaffb7e8a..ad358e68737 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/describeCronExpression.test.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/__tests__/describeCronExpression.test.ts
@@ -1,4 +1,4 @@
-import { describeCronExpression } from '@/workflow/workflow-trigger/utils/cron-to-human/describeCronExpression';
+import { describeCronExpression } from '~/utils/cron-to-human/describeCronExpression';
describe('describeCronExpression', () => {
describe('basic expressions', () => {
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getDayOfMonthDescription.test.ts b/packages/twenty-front/src/utils/cron-to-human/__tests__/getDayOfMonthDescription.test.ts
similarity index 92%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getDayOfMonthDescription.test.ts
rename to packages/twenty-front/src/utils/cron-to-human/__tests__/getDayOfMonthDescription.test.ts
index b3e34e4a0c6..b99953b401b 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getDayOfMonthDescription.test.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/__tests__/getDayOfMonthDescription.test.ts
@@ -1,5 +1,5 @@
-import { getDayOfMonthDescription } from '@/workflow/workflow-trigger/utils/cron-to-human/descriptors/getDayOfMonthDescription';
-import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { getDayOfMonthDescription } from '~/utils/cron-to-human/descriptors/getDayOfMonthDescription';
+import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '~/utils/cron-to-human/types/CronDescriptionOptions';
describe('getDayOfMonthDescription', () => {
const options = DEFAULT_CRON_DESCRIPTION_OPTIONS;
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getDayOfWeekDescription.test.ts b/packages/twenty-front/src/utils/cron-to-human/__tests__/getDayOfWeekDescription.test.ts
similarity index 91%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getDayOfWeekDescription.test.ts
rename to packages/twenty-front/src/utils/cron-to-human/__tests__/getDayOfWeekDescription.test.ts
index 041f8ccc2eb..5626173ebf5 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getDayOfWeekDescription.test.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/__tests__/getDayOfWeekDescription.test.ts
@@ -1,5 +1,5 @@
-import { getDayOfWeekDescription } from '@/workflow/workflow-trigger/utils/cron-to-human/descriptors/getDayOfWeekDescription';
-import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { getDayOfWeekDescription } from '~/utils/cron-to-human/descriptors/getDayOfWeekDescription';
+import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '~/utils/cron-to-human/types/CronDescriptionOptions';
describe('getDayOfWeekDescription', () => {
const options = DEFAULT_CRON_DESCRIPTION_OPTIONS;
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getHoursDescription.test.ts b/packages/twenty-front/src/utils/cron-to-human/__tests__/getHoursDescription.test.ts
similarity index 91%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getHoursDescription.test.ts
rename to packages/twenty-front/src/utils/cron-to-human/__tests__/getHoursDescription.test.ts
index 3be2be08961..dea8e840547 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getHoursDescription.test.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/__tests__/getHoursDescription.test.ts
@@ -1,5 +1,5 @@
-import { getHoursDescription } from '@/workflow/workflow-trigger/utils/cron-to-human/descriptors/getHoursDescription';
-import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { getHoursDescription } from '~/utils/cron-to-human/descriptors/getHoursDescription';
+import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '~/utils/cron-to-human/types/CronDescriptionOptions';
describe('getHoursDescription', () => {
const options24 = {
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getMinutesDescription.test.ts b/packages/twenty-front/src/utils/cron-to-human/__tests__/getMinutesDescription.test.ts
similarity index 87%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getMinutesDescription.test.ts
rename to packages/twenty-front/src/utils/cron-to-human/__tests__/getMinutesDescription.test.ts
index 4b76e8150dd..4daf761dfe5 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getMinutesDescription.test.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/__tests__/getMinutesDescription.test.ts
@@ -1,5 +1,5 @@
-import { getMinutesDescription } from '@/workflow/workflow-trigger/utils/cron-to-human/descriptors/getMinutesDescription';
-import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { getMinutesDescription } from '~/utils/cron-to-human/descriptors/getMinutesDescription';
+import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '~/utils/cron-to-human/types/CronDescriptionOptions';
describe('getMinutesDescription', () => {
const options = DEFAULT_CRON_DESCRIPTION_OPTIONS;
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getMonthsDescription.test.ts b/packages/twenty-front/src/utils/cron-to-human/__tests__/getMonthsDescription.test.ts
similarity index 91%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getMonthsDescription.test.ts
rename to packages/twenty-front/src/utils/cron-to-human/__tests__/getMonthsDescription.test.ts
index ee9ca00a0da..53e734c7ca6 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/getMonthsDescription.test.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/__tests__/getMonthsDescription.test.ts
@@ -1,5 +1,5 @@
-import { getMonthsDescription } from '@/workflow/workflow-trigger/utils/cron-to-human/descriptors/getMonthsDescription';
-import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { getMonthsDescription } from '~/utils/cron-to-human/descriptors/getMonthsDescription';
+import { DEFAULT_CRON_DESCRIPTION_OPTIONS } from '~/utils/cron-to-human/types/CronDescriptionOptions';
describe('getMonthsDescription', () => {
const options = DEFAULT_CRON_DESCRIPTION_OPTIONS;
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/parseCronExpression.test.ts b/packages/twenty-front/src/utils/cron-to-human/__tests__/parseCronExpression.test.ts
similarity index 97%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/parseCronExpression.test.ts
rename to packages/twenty-front/src/utils/cron-to-human/__tests__/parseCronExpression.test.ts
index 925bd3c01ea..627ad01aba4 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/__tests__/parseCronExpression.test.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/__tests__/parseCronExpression.test.ts
@@ -1,4 +1,4 @@
-import { parseCronExpression } from '@/workflow/workflow-trigger/utils/cron-to-human/utils/parseCronExpression';
+import { parseCronExpression } from '~/utils/cron-to-human/utils/parseCronExpression';
describe('parseCronExpression', () => {
it('should parse 4-field cron expression', () => {
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/describeCronExpression.ts b/packages/twenty-front/src/utils/cron-to-human/describeCronExpression.ts
similarity index 100%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/describeCronExpression.ts
rename to packages/twenty-front/src/utils/cron-to-human/describeCronExpression.ts
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getDayOfMonthDescription.ts b/packages/twenty-front/src/utils/cron-to-human/descriptors/getDayOfMonthDescription.ts
similarity index 96%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getDayOfMonthDescription.ts
rename to packages/twenty-front/src/utils/cron-to-human/descriptors/getDayOfMonthDescription.ts
index 953af587263..8dd5d0a5ff8 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getDayOfMonthDescription.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/descriptors/getDayOfMonthDescription.ts
@@ -5,7 +5,7 @@ import { getOrdinalNumber } from '~/utils/format/getOrdinalNumber';
import { isListValue } from '~/utils/validation/isListValue';
import { isNumericRange } from '~/utils/validation/isNumericRange';
import { isStepValue } from '~/utils/validation/isStepValue';
-import { type CronDescriptionOptions } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { type CronDescriptionOptions } from '~/utils/cron-to-human/types/CronDescriptionOptions';
export const getDayOfMonthDescription = (
dayOfMonth: string,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getDayOfWeekDescription.ts b/packages/twenty-front/src/utils/cron-to-human/descriptors/getDayOfWeekDescription.ts
similarity index 97%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getDayOfWeekDescription.ts
rename to packages/twenty-front/src/utils/cron-to-human/descriptors/getDayOfWeekDescription.ts
index 29c48b173cc..61f5d758ee2 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getDayOfWeekDescription.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/descriptors/getDayOfWeekDescription.ts
@@ -5,7 +5,7 @@ import { isDefined } from 'twenty-shared/utils';
import { isListValue } from '~/utils/validation/isListValue';
import { isNumericRange } from '~/utils/validation/isNumericRange';
import { isStepValue } from '~/utils/validation/isStepValue';
-import { type CronDescriptionOptions } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { type CronDescriptionOptions } from '~/utils/cron-to-human/types/CronDescriptionOptions';
const getDayName = (
dayNum: number,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getHoursDescription.ts b/packages/twenty-front/src/utils/cron-to-human/descriptors/getHoursDescription.ts
similarity index 95%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getHoursDescription.ts
rename to packages/twenty-front/src/utils/cron-to-human/descriptors/getHoursDescription.ts
index 5f1a92908f9..10b456ad2a7 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getHoursDescription.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/descriptors/getHoursDescription.ts
@@ -5,7 +5,7 @@ import { formatTime as formatCronTime } from '~/utils/format/formatTime';
import { isListValue } from '~/utils/validation/isListValue';
import { isNumericRange } from '~/utils/validation/isNumericRange';
import { isStepValue } from '~/utils/validation/isStepValue';
-import { type CronDescriptionOptions } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { type CronDescriptionOptions } from '~/utils/cron-to-human/types/CronDescriptionOptions';
export const getHoursDescription = (
hours: string,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getMinutesDescription.ts b/packages/twenty-front/src/utils/cron-to-human/descriptors/getMinutesDescription.ts
similarity index 94%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getMinutesDescription.ts
rename to packages/twenty-front/src/utils/cron-to-human/descriptors/getMinutesDescription.ts
index 57b9ef2d384..c14273c8400 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getMinutesDescription.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/descriptors/getMinutesDescription.ts
@@ -4,7 +4,7 @@ import { isDefined } from 'twenty-shared/utils';
import { isListValue } from '~/utils/validation/isListValue';
import { isNumericRange } from '~/utils/validation/isNumericRange';
import { isStepValue } from '~/utils/validation/isStepValue';
-import { type CronDescriptionOptions } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { type CronDescriptionOptions } from '~/utils/cron-to-human/types/CronDescriptionOptions';
export const getMinutesDescription = (
minutes: string,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getMonthsDescription.ts b/packages/twenty-front/src/utils/cron-to-human/descriptors/getMonthsDescription.ts
similarity index 96%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getMonthsDescription.ts
rename to packages/twenty-front/src/utils/cron-to-human/descriptors/getMonthsDescription.ts
index 93868fc547d..d56cbb0df6f 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/descriptors/getMonthsDescription.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/descriptors/getMonthsDescription.ts
@@ -5,7 +5,7 @@ import { isDefined } from 'twenty-shared/utils';
import { isListValue } from '~/utils/validation/isListValue';
import { isNumericRange } from '~/utils/validation/isNumericRange';
import { isStepValue } from '~/utils/validation/isStepValue';
-import { type CronDescriptionOptions } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions';
+import { type CronDescriptionOptions } from '~/utils/cron-to-human/types/CronDescriptionOptions';
const getMonthName = (
monthNum: number,
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions.ts b/packages/twenty-front/src/utils/cron-to-human/types/CronDescriptionOptions.ts
similarity index 100%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/types/CronDescriptionOptions.ts
rename to packages/twenty-front/src/utils/cron-to-human/types/CronDescriptionOptions.ts
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/types/CronExpressionParts.ts b/packages/twenty-front/src/utils/cron-to-human/types/CronExpressionParts.ts
similarity index 100%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/types/CronExpressionParts.ts
rename to packages/twenty-front/src/utils/cron-to-human/types/CronExpressionParts.ts
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/calculateNextExecutionsForMinuteInterval.ts b/packages/twenty-front/src/utils/cron-to-human/utils/calculateNextExecutionsForMinuteInterval.ts
similarity index 100%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/calculateNextExecutionsForMinuteInterval.ts
rename to packages/twenty-front/src/utils/cron-to-human/utils/calculateNextExecutionsForMinuteInterval.ts
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/normalizeCronExpression.ts b/packages/twenty-front/src/utils/cron-to-human/utils/normalizeCronExpression.ts
similarity index 100%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/normalizeCronExpression.ts
rename to packages/twenty-front/src/utils/cron-to-human/utils/normalizeCronExpression.ts
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/normalizeWhitespace.ts b/packages/twenty-front/src/utils/cron-to-human/utils/normalizeWhitespace.ts
similarity index 100%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/normalizeWhitespace.ts
rename to packages/twenty-front/src/utils/cron-to-human/utils/normalizeWhitespace.ts
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/parseCronExpression.ts b/packages/twenty-front/src/utils/cron-to-human/utils/parseCronExpression.ts
similarity index 94%
rename from packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/parseCronExpression.ts
rename to packages/twenty-front/src/utils/cron-to-human/utils/parseCronExpression.ts
index 1f0b1d608d1..2bd0a62dd0a 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/utils/cron-to-human/utils/parseCronExpression.ts
+++ b/packages/twenty-front/src/utils/cron-to-human/utils/parseCronExpression.ts
@@ -1,4 +1,4 @@
-import { type CronExpressionParts } from '@/workflow/workflow-trigger/utils/cron-to-human/types/CronExpressionParts';
+import { type CronExpressionParts } from '~/utils/cron-to-human/types/CronExpressionParts';
import { CronExpressionParser } from 'cron-parser';
import { isDefined } from 'twenty-shared/utils';
import { normalizeWhitespace } from './normalizeWhitespace';
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/formatDuration.ts b/packages/twenty-front/src/utils/format/formatDuration.ts
similarity index 100%
rename from packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/formatDuration.ts
rename to packages/twenty-front/src/utils/format/formatDuration.ts
diff --git a/packages/twenty-front/src/modules/workflow/utils/parseAndValidateVariableFriendlyStringifiedJson.ts b/packages/twenty-front/src/utils/parseAndValidateVariableFriendlyStringifiedJson.ts
similarity index 100%
rename from packages/twenty-front/src/modules/workflow/utils/parseAndValidateVariableFriendlyStringifiedJson.ts
rename to packages/twenty-front/src/utils/parseAndValidateVariableFriendlyStringifiedJson.ts
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/ai-chat.module.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/ai-chat.module.ts
index d5ff651d28b..dc582e9229c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/ai-chat.module.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-chat/ai-chat.module.ts
@@ -26,7 +26,6 @@ import { SkillModule } from 'src/engine/metadata-modules/skill/skill.module';
import { provideWorkspaceScopedRepository } from 'src/engine/twenty-orm/workspace-scoped-repository/provide-workspace-scoped-repository';
import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache.module';
import { DashboardToolsModule } from 'src/modules/dashboard/tools/dashboard-tools.module';
-import { WorkflowToolsModule } from 'src/modules/workflow/workflow-tools/workflow-tools.module';
import { AgentInboxProposalService } from 'src/engine/metadata-modules/ai/ai-chat/services/agent-inbox-proposal.service';
import { StreamAgentChatJob } from 'src/engine/metadata-modules/ai/ai-chat/jobs/stream-agent-chat.job';
@@ -67,7 +66,6 @@ import { SystemPromptBuilderService } from 'src/engine/metadata-modules/ai/ai-ch
MetricsModule,
ToolProviderModule,
DashboardToolsModule,
- WorkflowToolsModule,
],
providers: [
AgentChatActorService,
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-tool-call-answer/resolvers/tool-call-answer.resolver.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-tool-call-answer/resolvers/tool-call-answer.resolver.ts
index 26fec40acd0..6883d815f0c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-tool-call-answer/resolvers/tool-call-answer.resolver.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-tool-call-answer/resolvers/tool-call-answer.resolver.ts
@@ -14,7 +14,6 @@ import { BillingGraphqlApiExceptionFilter } from 'src/engine/core-modules/billin
import { PreventNestToAutoLogGraphqlErrorsFilter } from 'src/engine/core-modules/graphql/filters/prevent-nest-to-auto-log-graphql-errors.filter';
import { ResolverValidationPipe } from 'src/engine/core-modules/graphql/pipes/resolver-validation.pipe';
import { UsageLimitGraphqlApiExceptionFilter } from 'src/engine/core-modules/usage-limit/filters/usage-limit-graphql-api-exception.filter';
-import { WorkflowVersionStepGraphqlApiExceptionFilter } from 'src/engine/core-modules/workflow/filters/workflow-version-step-graphql-api-exception.filter';
import { type WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
import { AuthUserWorkspaceId } from 'src/engine/decorators/auth/auth-user-workspace-id.decorator';
import { AuthWorkspaceMemberId } from 'src/engine/decorators/auth/auth-workspace-member-id.decorator';
@@ -49,7 +48,6 @@ import { PermissionsGraphqlApiExceptionFilter } from 'src/engine/metadata-module
UsageLimitGraphqlApiExceptionFilter,
BillingGraphqlApiExceptionFilter,
PermissionsGraphqlApiExceptionFilter,
- WorkflowVersionStepGraphqlApiExceptionFilter,
PreventNestToAutoLogGraphqlErrorsFilter,
AuthGraphqlApiExceptionFilter,
)
diff --git a/packages/twenty-server/src/modules/workflow/workflow.module.ts b/packages/twenty-server/src/modules/workflow/workflow.module.ts
index 54238b36ad9..7dd315f85f3 100644
--- a/packages/twenty-server/src/modules/workflow/workflow.module.ts
+++ b/packages/twenty-server/src/modules/workflow/workflow.module.ts
@@ -3,6 +3,7 @@ import { Module } from '@nestjs/common';
import { WorkflowCoreSyncModule } from 'src/modules/workflow/workflow-core-sync/workflow-core-sync.module';
import { WorkflowStatusModule } from 'src/modules/workflow/workflow-status/workflow-status.module';
import { WorkflowTriggerModule } from 'src/modules/workflow/workflow-trigger/workflow-trigger.module';
+import { WorkflowToolsModule } from 'src/modules/workflow/workflow-tools/workflow-tools.module';
import { WorkflowWaitModule } from 'src/modules/workflow/workflow-wait/workflow-wait.module';
@Module({
@@ -11,6 +12,7 @@ import { WorkflowWaitModule } from 'src/modules/workflow/workflow-wait/workflow-
WorkflowStatusModule,
WorkflowCoreSyncModule,
WorkflowWaitModule,
+ WorkflowToolsModule,
],
})
export class WorkflowModule {}